remove an unneeded as_a<rtx_insn *> ()
[official-gcc.git] / gcc / ChangeLog
blobc96e021ee601533ad4330775d5e2b5eda36505f8
1 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
4         call that isn't needed.
6 2015-10-09  Jeff Law  <law@redhat.com>
8         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
9         rather than moving each name to the freelist individually.
11 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
13         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
14         * frame-header-opt.c: New file.
15         * config/mips/mips-proto.h (mips_register_frame_header_opt):
16         Add prototype.
17         * config/mips/mips.c (mips_compute_frame_info): Check
18         optimize_call_stack flag.
19         (mips_option_override): Register new frame_header_opt pass.
20         (mips_frame_info, mips_int_mask, mips_shadow_set,
21         machine_function): Move these types to...
22         * config/mips/mips.h: here.
23         (machine_function): Add does_not_use_frame_header and
24         optimize_call_stack fields.
25         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
26         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
27         Document new flags.
28         * config/mips/mips.opt (mframe-header-opt): Add new option.
30 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
32         * config/i386/i386.c
33         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
34         ROUND_DOWN where applicable.
36 2015-10-09  Jeff Law  <law@redhat.com>
38         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
39         correct statement.
41 2015-10-09  Renlin Li  <renlin.li@arm.com>
43         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
44         operands[0] and operands[2].
45         (neon_vtrn<mode>_insn): Likewise.
46         (neon_vzip<mode>_insn): Likewise.
48 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
50         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
51         ((X & C2) << C1): Expand to...
52         (X {&,^,|} C2 << C1): ...This.
53         ((X & C2) >> C1): Expand to...
54         (X {&,^,|} C2 >> C1): ...This.
56 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
58         PR target/67895
59         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
60         Adjust embedded rounding/SAE specifier position.
61         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
62         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
63         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
64         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
65         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
66         Likewise.
67         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
69 2015-10-09  Martin Jambor  <mjambor@suse.cz>
71         tree-optimization/67794
72         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
73         between types of state,ents but accept original definitions as a
74         parameter.
75         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
76         iterate over definitions.
78 2015-10-09  James Norris  <jnorris@codesourcery.com>
80         * config/rs6000/rs6000.c (rs6000_offload_options): New.
81         (TARGET_OFFLOAD_OPTIONS): New.
83 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
85         PR middle-end/67891
86         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
88         PR middle-end/67766
89         * function.c (expand_function_end): Move return value
90         promotion past the handling of PARALLELs and CONCATs.
92         PR rtl-optimization/67828
93         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
94         (tree_may_unswitch_on): Don't unswitch on expressions
95         involving undefined values.
97 2015-10-09  Richard Biener  <rguenther@suse.de>
99         * genmatch.c (print_operand): Fix formatting.
100         (dt_node::append_simplify): Warn for multiple simplifiers
101         that match the same pattern.
102         * match.pd (log (exp @0)): Remove duplicates.
104 2015-10-09  Richard Biener  <rguenth@suse.de>
106         PR target/67366
107         * gimple-fold.c (optabs-query.h): Include
108         (gimple_fold_builtin_memory_op): Allow unaligned stores
109         when movmisalign_optabs are available.
111 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
113         PR target/67366
114         * config/arm/arm.md (movmisalign<mode>): New.
115         * config/arm/iterators.md (HSI): New.
117 2015-10-09  Richard Biener  <rguenther@suse.de>
119         PR tree-optimization/67891
120         * gimple-match.h (gimple_simplified_result_is_gimple_val):
121         New helper.
122         (gimple_resimplify1): Declare.
123         (gimple_resimplify2): Likewise.
124         (gimple_resimplify3): Likewise.
125         * gimple-match-head.c (gimple_resimplify1): Export.
126         (gimple_resimplify2): Likewise.
127         (gimple_resimplify3): Likewise.
128         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
129         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
130         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
131         to avoid creating stmts without VN info.
133 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
135         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
136         of availability.
138 2015-10-08  Jeff Law  <law@redhat.com>
140         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
141         and release_ssa_name in two places.
142         (gimple_stringop_fixed_value): Similarly.
144         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
145         release_defs.
147         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
148         unlink_stmt_vdef and release_ssa_name_fn.
150         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
151         release_defs.
153 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
155         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
156         SSE register save area to 16 bytes only if the incoming stack
157         boundary is no less than 16 bytes.
159 2015-10-08  Jeff Law  <law@redhat.com>
161         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
162         release_ssa_name.  Fix typo in comment.
164 2015-10-08  Nathan Sidwell  <nathan@acm.org>
166         * config/nvptx/nvptx.h (struct machine_function): Add comment.
167         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
168         may return pointer as well as in memory.
169         (nvptx_output_return): Likewise.
171 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
173         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
174         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
175         * match.pd: Add rules previously handled by fold_builtin_sqrt
176         and fold_builtin_cbrt.
178 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
180         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
181         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
182         * fold-const.h (tree_unary_nonnegative_warnv_p)
183         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
184         (tree_expr_nonnegative_warnv_p): Add depth parameters.
185         * fold-const.c: Include gimple-fold.h and params.h.
186         (tree_ssa_name_nonnegative_warnv_p): New function.
187         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
188         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
189         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
190         Add a depth parameter and increment it for recursive calls to
191         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
192         to handle SSA names.
193         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
194         (gimple_stmt_nonnegative_warnv_p): Declare.
195         * tree-vrp.c (remove_range_assertions): Remove assert that condition
196         cannot be proven false.
197         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
198         (gimple_stmt_nonnegative_warnv_p): Move to...
199         * gimple-fold.c: ...here.  Add depth parameters and pass them
200         down to the tree routines.  Accept statements that aren't
201         assignments or calls but just return false for them.
202         (gimple_val_nonnegative_real_p): Delete.
203         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
204         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
205         Check HONOR_NANs first.
207 2015-10-08  Martin Jambor  <mjambor@suse.cz>
209         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
210         unnecessary MIN.
212 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
214         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
215         in the tail of outer-loop.
217 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
219         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
220         return UI_NONE.
222 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
224         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
225         "cfghooks.h", add prototypes for introduced new functions.
226         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
227         checks on ability of loop unswitching to tree_unswitch_single_loop;
228         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
229         on innermost loop check.
230         (tree_unswitch_single_loop): Add all required checks on ability of
231         loop unswitching under zero recursive level guard.
232         (tree_unswitch_outer_loop): New function.
233         (find_loop_guard): Likewise.
234         (empty_bb_without_guard_p): Likewise.
235         (used_outside_loop_p): Likewise.
236         (get_vop_from_header): Likewise.
237         (hoist_guard): Likewise.
238         (check_exit_phi): Likewise.
240 2015-10-08  Marek Polacek  <polacek@redhat.com>
242         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
243         ops element.
245 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
247         PR c/65345
248         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
249         create_tmp_var_raw instead of create_tmp_var.
251 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
253         * expr.c (store_expr_with_bounds): Handle aggregate moves from
254         BLKmode.
255         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
256         to define gimple type system; compare aggregates only by size.
258 2015-10-07  Jeff Law  <law@redhat.com>
260         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
261         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
262         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
263         unnecessarily.
265 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
266             Sebastian Pop  <s.pop@samsung.com>
268         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
269         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
270         (generate_isl_schedule): Same.
271         * graphite-optimize-isl.c (scop_get_domains): Same.
272         (apply_schedule_map_to_scop): Same.
273         * graphite-poly.c (print_iteration_domains): Same.
274         (remove_gbbs_in_scop): Same.
275         (new_scop): Same.
276         (free_scop): Same.
277         (print_scop): Same.
278         * graphite-poly.h (struct scop): Rename bbs to pbbs.
279         (SCOP_BBS): Remove.
280         * graphite-scop-detection.c (compare_bb_depths): Remove.
281         (graphite_sort_dominated_info): Remove.
282         (try_generate_gimple_bb): Move out of scop_detection.
283         (all_non_dominated_preds_marked_p): Remove.
284         (build_scop_bbs_1): Remove.
285         (build_scop_bbs): Remove.
286         (nb_pbbs_in_loops): Do not use SCOP_BBS.
287         (find_scop_parameters): Same.
288         (sese_dom_walker): Rename gather_bbs.
289         (before_dom_children): Call try_generate_gimple_bb and collect gbb
290         and pbb.
291         (build_scops): Call gather_bbs.
292         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
293         (add_conditions_to_constraints): Same.
294         (build_scop_iteration_domain): Same.
295         (build_scop_drs): Same.
296         (new_pbb_from_pbb): Same.
297         * sese.c (new_sese_info): Create bbs.
298         * sese.h (struct sese_info_t): Add bbs.
300 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
302         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
303         encoding in 64-bit mode.
305 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
307         PR target/66697
308         * config/i386/i386.c (ix86_option_override_internal): Always use
309         8-byte minimum stack boundary in 64-bit mode.
310         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
311         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
312         Add a REG_CFA_EXPRESSION note if needed.
313         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
314         (ix86_handle_force_align_arg_pointer_attribute): New.
315         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
316         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
317         with ix86_handle_force_align_arg_pointer_attribute.
318         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
320 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
321             Sebastian Pop  <s.pop@samsung.com>
323         * graphite-scop-detection.c (parameter_index_in_region): Remove
324         use of SESE_ADD_PARAMS.
325         (find_scop_parameters): Same.
326         * sese.c (new_sese_info): Same.
327         * sese.h (struct sese_info_t): Remove add_params.
328         (SESE_ADD_PARAMS): Remove.
330 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
331             Sebastian Pop  <s.pop@samsung.com>
333         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
334         an sese_info_p.
335         (copy_def): Same.
336         (copy_internal_parameters): Same.
337         (translate_isl_ast_to_gimple): Use an sese_l.
338         (build_iv_mapping): Same.
339         * graphite-poly.c (new_sese): Rename new_sese_info.
340         (free_sese): Rename free_sese_info.
341         * graphite-poly.h (struct scop): Use an sese_info_p.
342         (scop_set_region): Same.
343         * graphite-scop-detection.c (struct sese_l): Moved...
344         (get_entry_bb): Moved...
345         (get_exit_bb): Moved...
346         (parameter_index_in_region_1): Use an sese_info_p.
347         (parameter_index_in_region): Same.
348         (scan_tree_for_params): Same.
349         (find_params_in_bb): Same.
350         (sese_dom_walker): Use an sese_l.
351         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
352         (reduction_phi_p): Same.
353         (parameter_index_in_region_1): Use an sese_info_p.
354         (propagate_expr_outside_region): Use an sese_l.
355         * graphite.c: Replace uses of SCOP_REGION.
356         * sese.c (sese_record_loop): Use an sese_info_p.
357         (build_sese_loop_nests): Same.
358         (sese_build_liveouts_use): Same.
359         (sese_build_liveouts_bb): Same.
360         (sese_build_liveouts_bb): Same.
361         (sese_bad_liveouts_use): Same.
362         (sese_reset_debug_liveouts_bb): Same.
363         (sese_build_liveouts): Same.
364         (new_sese): Renamed new_sese_info.
365         (free_sese): Renamed free_sese_info.
366         (set_rename): Use an sese_info_p.
367         (graphite_copy_stmts_from_block): Same.
368         (copy_bb_and_scalar_dependences): Same.
369         (outermost_loop_in_sese_1): Use an sese_l.
370         (outermost_loop_in_sese): Same.
371         (if_region_set_false_region): Use an sese_info_p.
372         (move_sese_in_condition): Same.
373         (scalar_evolution_in_region): Use an sese_l.
374         * sese.h (struct sese_l): ... here.
375         (SESE_ENTRY): Remove.
376         (SESE_ENTRY_BB): Remove.
377         (SESE_EXIT): Remove.
378         (SESE_EXIT_BB): Remove.
379         (sese_contains_loop): Use an sese_info_p.
380         (sese_nb_params): Same.
381         (bb_in_sese_p): Use an sese_l.
382         (stmt_in_sese_p): Same.
383         (defined_in_sese_p): Same.
384         (loop_in_sese_p): Same.
385         (sese_loop_depth): Same.
386         (struct ifsese_s): Use an sese_info_p.
387         (gbb_loop_at_index): Use an sese_l.
388         (nb_common_loops): Same.
389         (scev_analyzable_p): Same.
391 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
393         * config/i386/i386.c (ix86_conditional_register_usage): Use
394         CALL_USED_REGISTERS_MASK.
395         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
397 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
399         PR bootstrap/67385
400         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
401         * configure: Regenerated.
403 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
405         PR target/67850
406         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
407         (ix86_set_current_function): This.
408         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
410 2015-10-07  Richard Biener  <rguenther@suse.de>
412         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
413         (vinfo_for_stmt): Adjust.
414         (set_vinfo_for_stmt): Likewise.
415         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
416         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
417         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
418         of inner loop.
419         (vect_analyze_loop_1): Remove.
420         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
421         inner loop when vectorizing an outer loop by splitting out from ...
422         (vect_analyze_loop_form): ... here.
424 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
426         PR c/65345
427         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
428         Use create_tmp_var_raw instead of create_tmp_var.
430 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
432         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
433         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
434         * real.c (CACHED_FRACTION): New helper macro.
435         (dconst_third_ptr): Use it.
436         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
437         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
438         dconst_sixth.
439         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
441 2015-10-06  Jeff Law  <law@redhat.com>
443         PR tree-optimization/67816
444         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
445         from remove_jump_threads_starting_at.  Accept an edge rather than
446         a basic block.
447         * tree-ssa-threadupdate.c (removed_edges): New hash table.
448         (remove_jump_threads_including): Note edges that get removed from
449         the CFG for later pruning of jump threading paths including them.
450         (thread_through_all_blocks): Remove paths which include edges that
451         have been removed.
452         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
453         on each outgoing edges when optimizing away a control statement.
455 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
457         * reorg.c (emit_delay_sequence): Store list of delay slot insns
458         in a vector instead of rtx_insn_list.
459         (add_to_delay_list): Likewise.
460         (delete_from_delay_slot): Likewise.
461         (optimize_skip): Likewise.
462         (redirect_with_delay_list_safe_p): Likewise.
463         (check_annul_list_true_false): Likewise.
464         (steal_delay_list_from_target): Likewise.
465         (steal_delay_list_from_fallthrough): Likewise.
466         (redundant_insn): Likewise.
467         (fill_simple_delay_slots): Likewise.
468         (fill_slots_from_thread): Likewise.
469         (fill_eager_delay_slots): Likewise.
470         (relax_delay_slots): Likewise.
472 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
474         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
475         For -mgpopt=local, also exclude unintialized common symbols.
476         * doc/invoke.texi (Nios II Options): Document the change.
478 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
480         * config/aarch64/iterators.md (vwcore): Add missing cases for
481          V4HF/V8HF modes.
483 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
484             Sebastian Pop  <s.pop@samsung.com>
486         * graphite-poly.c (new_scop): Initialize drs.
487         * graphite-poly.h (struct dr_info): New.
488         (struct scop): Add drs.
489         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
490         (pdr_add_memory_accesses): Same.
491         (build_poly_dr): Same.
492         (build_alias_set): Same.
493         (build_scop_drs): Same.
494         (build_pbb_drs): Remove.
495         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
496         * tree-data-ref.h (data_reference): Remove alias_set.
498 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
499             Sebastian Pop  <s.pop@samsung.com>
501         * graphite-poly.c (free_data_refs_aux): Remove.
502         (free_gimple_poly_bb): Do not call free_data_refs_aux.
503         * graphite-poly.h (struct base_alias_pair): Remove.
504         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
505         base_alias_pair and dr->aux.
506         (build_alias_set): Same.
507         * tree-data-ref.c (create_data_ref): Initialize alias_set.
508         * tree-data-ref.h (data_reference): Add alias_set.
510 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
511             Sebastian Pop  <s.pop@samsung.com>
513         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
514         Do not set PDR_BASE_OBJECT_SET.
515         * graphite-poly.h (poly_dr): Same.
516         (PDR_BASE_OBJECT_SET): Remove.
517         (new_poly_dr): Update decl.
518         * graphite-sese-to-poly.c (build_poly_dr): Update call to
519         new_poly_dr.
520         (write_alias_graph_to_ascii_dimacs): Remove.
521         (write_alias_graph_to_ascii_dot): Remove.
522         (write_alias_graph_to_ascii_ecc): Remove.
523         (dr_same_base_object_p): Remove.
524         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
525         code.
526         (build_base_obj_set_for_drs): Remove.
527         (dump_alias_graphs): Remove.
528         (build_scop_drs): Remove dead code.
530 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
531             Peter Bergner  <bergner@vnet.ibm.com>
533         PR target/67808
534         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
535         allow registers, but provide insns for the combiner to create for
536         loads from memory. Separate VSX code from non-VSX code. For
537         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
538         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
539         so that registers come before memory operations. Drop support from
540         converting DFmode to TFmode, if the DFmode value is in a GPR
541         register.
542         (extenddftf2_fprs): Likewise.
543         (extenddftf2_internal): Likewise.
544         (extenddftf2_vsx): Likewise.
545         (extendsftf2): In the expander, only allow registers, but provide
546         insns for the combiner to create for stores and loads.
548 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
550         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
551         from the decl parameter.
553 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
555         PR 67861
556         * gimple-fold.c (gimple_fold_builtin): Add break after
557         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
559 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
561         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
562         to scop->isl_context.
564 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
566         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
567         (output_probe_stack_range): Rotate the loop and simplify.
568         (thumb1_expand_prologue): Tweak sorry message.
569         * config/arm/arm.md (probe_stack): Use bare string.
571 2015-10-06  Nick Clifton  <nickc@redhat.com>
573         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
575 2015-10-06  Nick Clifton  <nickc@redhat.com>
577         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
578         (ATTR_PERSIST): New constant.
579         (msp430_data_attr): New function - verifies an attribute that only
580         applies to variables.
581         (msp430_attributes): Add noinit and persistent attributes.
582         (noinit_section): New variable.
583         (presis_section): New variable.
584         (TARGET_ASM_INIT_SECTIONS): Define.
585         (msp430_init_sections): New function - initialises the noinit and
586         persist section variables.
587         (msp430_select_section): Add support for noinit and persist
588         attributes.
589         (msp430_section_type_flags): Likewise.
590         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
591         and persistent attributes.
593 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
594             Sebastian Pop  <s.pop@samsung.com>
596         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
597         (no_violations): Remove.
598         (subtract_commutative_associative_deps): Remove.
599         (compute_deps): Do not call subtract_commutative_associative_deps.
600         (transform_is_safe): Remove.
601         (graphite_legal_transform): Remove.
602         * graphite-poly.h (graphite_legal_transform): Remove.
604 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
606         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
607         which are in this region are passed so gcc_assert and remove redundant
608         computation.
609         * sese.c (sese_build_liveouts): Pass only those bbs which are not
610         in region.
611         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
612         gcc_assert on that and remove unnecessary computation.
613         (sese_build_liveouts_use): Same.
615 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
617         * graphite-dependences.c (scop_get_reads): Renamed scop->context
618         to scop->param_context.
619         (scop_get_must_writes): Same.
620         (scop_get_may_writes): Same.
621         (scop_get_original_schedule): Same.
622         (scop_get_transformed_schedule): Same.
623         (subtract_commutative_associative_deps): Same.
624         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
625         (generate_isl_context): Same.
626         (generate_isl_schedule): Same.
627         (scop_to_isl_ast): Same.
628         (graphite_regenerate_ast_isl): Same.
629         * graphite-optimize-isl.c (scop_get_domains): Same.
630         (optimize_isl): Renamed scop->context to scop->param_context.
631         * graphite-poly.c (new_poly_bb): Change the type of argument to
632         gimple_poly_bb_p.
633         (new_scop): Renamed scop->context to scop->param_context.
634         (free_scop): Same.
635         (print_scop_context): Same.
636         * graphite-poly.h (new_poly_dr): Change the type of argument from
637         void* to data_reference_p.
638         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
639         (new_poly_bb): Change the type of argument from void* to
640         gimple_poly_bb_p.
641         (pbb_set_black_box): Same.
642         (struct scop): Rename context to param_context, ctx to isl_context.
643         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
644         Move declarations closer to assignment.
645         (find_params_in_bb): Same.
646         (find_scop_parameters): Same.
647         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
648         Global to be used for statement IDs.
649         (isl_id_for_pbb): Use ssa_name_version_typesize.
650         (simple_copy_phi_p): Move declarations closer to assignment.
651         (build_pbb_scattering_polyhedrons): Same.
652         (build_scop_scattering): Same.
653         (isl_id_for_ssa_name): Same.
654         (extract_affine_name): Same.
655         (extract_affine_int): Same.
656         (extract_affine): Same.
657         (set_scop_parameter_dim): Use renamed member.
658         (build_loop_iteration_domains): Same.
659         (add_param_constraints): Same.
660         (build_scop_iteration_domain): Same.
661         (pdr_add_data_dimensions): Same.
662         (build_poly_dr): Same.
663         (build_scop_drs): Move declarations closer to assignment.
664         (analyze_drs_in_stmts): Same.
665         (insert_out_of_ssa_copy): Same.
666         (insert_out_of_ssa_copy_on_edge): Same.
667         (propagate_expr_outside_region): Same.
668         (rewrite_phi_out_of_ssa): Same.
669         (rewrite_degenerate_phi): Same.
670         (rewrite_reductions_out_of_ssa): Same.
671         (rewrite_cross_bb_scalar_dependence): Same.
672         (handle_scalar_deps_crossing_scop_limits): Same.
673         (rewrite_cross_bb_scalar_deps): Same.
674         * graphite.c (graphite_transform_loops): Use renamed member.
676 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
678         PR c/65345
679         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
680         create_tmp_var_raw instead of create_tmp_var.
682 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
684         PR c/65345
685         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
686         Use create_tmp_var_raw instead of create_tmp_var.
688 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
690         PR target/67849
691         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
692         split for upper-bank registers when target does not support
693         AVX512VL.
694         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
695         split when target does not support AVX512VL.
697 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
699         PR c/65345
700         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
701         Adjust to use create_tmp_var_raw instead of create_tmp_var.
703 2015-10-06  Nick Clifton  <nickc@redhat.com>
705         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
706         multiplication.
708 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
710         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
711         (case ${target}): Add znver1.
712         * config/i386/cpuid.h(bit_CLZERO):  Define.
713         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
714         -march=native recognize znver1 processors.
715         * config/i386/i386-c.c (ix86_target_macros_internal): Add
716         znver1, clzero def_and_undef.
717         * config/i386/i386.c (struct processor_costs znver1_cost): New.
718         (m_znver1): New definition.
719         (m_AMD_MULTIPLE): Includes m_znver1.
720         (processor_target_table): Add znver1 entry.
721         (ix86_target_string) : Add clzero entry.
722         (static const char *const cpu_names): Add znver1 entry.
723         (ix86_option_override_internal): Add znver1 instruction sets.
724         (PTA_CLZERO) :  New definition.
725         (ix86_option_override_internal): Handle new clzerooption.
726         (ix86_issue_rate): Add znver1.
727         (ix86_adjust_cost): Add znver1.
728         (ia32_multipass_dfa_lookahead): Add znver1.
729         (has_dispatch): Add znver1.
730         * config/i386/i386.h (TARGET_znver1): New definition.
731         (TARGET_CLZERO): Define.
732         (TARGET_CLZERO_P): Define.
733         (struct ix86_size_cost): Add TARGET_ZNVER1.
734         (enum processor_type): Add PROCESSOR_znver1.
735         * config/i386/i386.md (define_attr "cpu"): Add znver1.
736         (set_attr znver1_decode): New definitions for znver1.
737         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
738         (mclzero): New.
739         * config/i386/mmx.md (set_attr znver1_decode): New definitions
740         for znver1.
741         * config/i386/sse.md (set_attr znver1_decode): Likewise.
742         * config/i386/x86-tune.def:  Add znver1 tunings.
743         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
744         * gcc/doc/invoke.texi: Add details about znver1
746 2015-10-06  Richard Biener  <rguenther@suse.de>
748         PR tree-optimization/67859
749         * tree-ssa-pre.c (create_expression_by_pieces): Properly
750         discard not inserted stmts.
752 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
754         * doc/extend.texi (Template Instantiation): Reorder options and
755         de-emphasize -frepo.
756         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
757         example instead of -frepo.
759 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
761         PR c/65345
762         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
763         use create_tmp_var_raw rather than create_tmp_var.
765 2015-10-06  Richard Biener  <rguenther@suse.de>
767         * tree-vectorizer.h (vec_info): New base class for...
768         (_loop_vec_info): ... this and ...
769         (_bb_vec_info): ... this.
770         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
771         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
772         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
773         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
774         vect_destroy_datarefs): Adjust interface to take a vec_info *
775         rather than both a loop_vec_info and a bb_vec_info argument.
776         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
777         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
778         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
779         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
780         accordingly.
781         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
782         (destroy_loop_vec_info, vect_analyze_loop_2,
783         vect_is_simple_reduction_1, get_initial_def_for_induction,
784         vect_create_epilog_for_reduction, vectorizable_reduction,
785         vectorizable_live_operation, vect_transform_loop): Adjust.
786         * tree-vect-patterns.c (type_conversion_p,
787         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
788         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
789         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
790         check_bool_pattern, vect_recog_bool_pattern,
791         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
792         * tree-vect-slp.c (vect_get_and_check_slp_defs,
793         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
794         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
795         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
796         (new_bb_vec_info): Initialize base classs.
797         * tree-vect-stmts.c (record_stmt_cost, process_use,
798         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
799         vectorizable_mask_load_store, vectorizable_call,
800         vectorizable_simd_clone_call, vectorizable_conversion,
801         vectorizable_assignment, vectorizable_shift,
802         vectorizable_operation, vectorizable_store,
803         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
804         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
805         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
807 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
809         PR c/65345
810         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
811         create_tmp_var_raw rather than create_tmp_var.
813 2015-10-05  Marek Polacek  <polacek@redhat.com>
815         * tree-ssa-loop-im.c
816         (move_computations_dom_walker::before_dom_children): Don't set
817         SSA_NAME_ANTI_RANGE_P.
818         * tree-ssa-phiopt.c (value_replacement): Likewise.
820 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
821             Sebastian Pop  <s.pop@samsung.com>
823         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
825 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
826             Sebastian Pop  <s.pop@samsung.com>
828         * graphite-poly.c (new_gimple_poly_bb): ... here.
829         (free_data_refs_aux): ... here.
830         (free_gimple_poly_bb): ... here.
831         (remove_gbbs_in_scop): ... here.
832         (new_scop): Call new_sese.
833         (free_scop): Call remove_gbbs_in_scop and free_sese.
834         * graphite-poly.h (base_alias_pair): ... here.
835         (new_gimple_poly_bb): Declare.
836         (free_gimple_poly_bb): Declare.
837         * graphite-scop-detection.c (parameter_index_in_region_1):
838         (parameter_index_in_region): ... here.
839         (scan_tree_for_params): ... here.
840         (find_params_in_bb): ... here.
841         (find_scop_parameters): ... here.
842         (build_scops): Call find_scop_parameters.
843         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
844         (free_scops): Move...
845         (single_pred_cond_non_loop_exit): Move...
846         (sese_dom_walker::before_dom_children): Move...
847         (sese_dom_walker::after_dom_children): Move...
848         (build_poly_scop): Move...
849         * graphite-sese-to-poly.h (base_alias_pair): Move...
850         * graphite.c (free_scops): ... here.
852 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
853             Sebastian Pop  <s.pop@samsung.com>
855         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
856         (trivially_empty_bb_p): Move...
857         (same_close_phi_node): Move...
858         (new_gimple_poly_bb): Move...
859         (compare_bb_depths): Move...
860         (graphite_sort_dominated_info): Move...
861         (remove_duplicate_close_phi): Move...
862         (make_close_phi_nodes_unique): Move...
863         (canonicalize_loop_closed_ssa): Move...
864         (canonicalize_loop_closed_ssa_form): Move...
865         (loop_ivs_can_be_represented): Move...
866         (single_pred_cond_non_loop_exit): Move...
867         (graphite_can_represent_init): Move...
868         (graphite_can_represent_scev): Move...
869         (stmt_has_simple_data_refs_p): Move...
870         (stmt_has_side_effects):  Move...
871         (graphite_can_represent_stmt): Move...
872         (scop_detection): ... here.
873         (sese_dom_walker): ... and here.
874         (build_scops): Call all moved functions.
875         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
876         (all_non_dominated_preds_marked_p): Move...
877         (build_scop_bbs_1): Move...
878         (build_scop_bbs): Move...
879         (set_scop_parameter_dim): Move...
880         (nb_pbbs_in_loops): Move...
881         (build_poly_scop): Do not call all the moved functions.
883 2015-10-05  Martin Jambor  <mjambor@suse.cz>
884             Jan Hubicka  <hubicka@ucw.cz>
886         * ipa-cp.c (ipcp_alignment_lattice): New type.
887         (ipcp_param_lattices): Use the above to represent alignment.
888         (ipcp_alignment_lattice::print): New function.
889         (print_all_lattices): Use it to print alignment information.
890         (ipcp_alignment_lattice::top_p): New function.
891         (ipcp_alignment_lattice::bottom_p): Likewise.
892         (ipcp_alignment_lattice::set_to_bottom): Likewise.
893         (ipcp_alignment_lattice::meet_with_1): Likewise.
894         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
895         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
896         (initialize_node_lattices): Likewise.
897         (propagate_alignment_accross_jump_function): Work with the new class
898         for alignment lattices.
899         (propagate_constants_accross_call): Pass only the alignment lattice to
900         propagate_alignment_accross_jump_function.
901         (ipcp_store_alignment_results): Work with the new class for alignment
902         lattices.
904 2015-10-05  Marek Polacek  <polacek@redhat.com>
906         PR tree-optimization/67821
907         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
909 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
911         PR other/65021
912         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
913         function to...
914         (mkoffload_cleanup): ... this.  Adjust all users.
915         (maybe_unlink): Look at save_temps and verbose flags instead of
916         debug flag.
917         (main): Parse "-save-temps" flag.
918         (generate_target_descr_file, generate_target_offloadend_file)
919         (generate_host_descr_file, prepare_target_image): Pass it on.
920         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
921         (mkoffload_cleanup): New function.
922         (maybe_unlink): Look at save_temps and verbose flags instead of
923         debug flag.
924         (main): Instead of calling utils_cleanup, register atexit handler
925         for mkoffload_cleanup.
926         (main): Parse "-save-temps" flag.
927         (compile_native, main): Pass it on.
928         * lto-wrapper.c (compile_offload_image): Likewise.
930 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
932         * gimple.h (gimple_op_ptr): Require a non const gimple *.
933         (gimple_assign_lhs_ptr): Likewise.
934         (gimple_assign_rhs1_ptr): Likewise.
935         (gimple_assign_rhs2_ptr): Likewise.
936         (gimple_assign_rhs3_ptr): Likewise.
937         (gimple_call_lhs_ptr): Likewise.
938         (gimple_call_fn_ptr): Likewise.
939         (gimple_call_chain_ptr): Likewise.
940                 (gimple_call_arg_ptr): Likewise.
941                 (gimple_cond_lhs_ptr): Likewise.
942         (gimple_cond_rhs_ptr): Likewise.
943         (gimple_switch_index_ptr): Likewise.
944         (gimple_return_retval_ptr): Likewise.
946 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
948         * gimple.h (gimple_asm_input_op_ptr): Remove.
949         (gimple_asm_output_op_ptr): Likewise.
951 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
953         * gimple.h (gimple_location_ptr): Remove.
954         * tree-vrp.c (check_all_array_refs): Adjust.
956 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
958         * tree-ssa-operands.c (build_uses): store tree * instead of
959         tree.
960         (finalize_ssa_uses): Adjust.
961         (append_use): Likewise.
962         (verify_ssa_operands): Likewise.
964 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
966         * real.h (build_real_truncate): Declare.
967         * tree.c (build_real_truncate): New function.
968         (strip_float_extensions): Use it.
969         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
970         (fold_builtin_hypot, fold_builtin_pow): Likewise.
971         * match.pd: Likewise.
973 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
974            Jiong Wang  <jiong.wang@arm.com>
976         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
978 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
980         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
981         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
982         (aarch64_print_operand, aarch64_float_const_representable_p)
983         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
984         instead of REAL_VALUE_FROM_CONST_DOUBLE.
985         * config/arc/arc.c (arc_print_operand): Likewise.
986         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
987         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
988         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
989         Likewise.
990         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
991         (consttable_16): Likewise.
992         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
993         * config/avr/avr.c (avr_print_operand): Likewise.
994         * config/bfin/bfin.md: Likewise (in a define_split).
995         * config/c6x/c6x.md: Likewise (in a define_split).
996         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
997         (cr16_print_operand): Likewise.
998         * config/cris/cris.c (cris_print_operand): Likewise.
999         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
1000         * config/fr30/fr30.c (fr30_print_operand): Likewise.
1001         (fr30_const_double_is_zero): Likewise.
1002         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
1003         * config/frv/frv.md: Likewise (in a define_split).
1004         * config/frv/predicates.md (int_2word_operand): Likewise.
1005         * config/h8300/h8300.c (h8300_print_operand): Likewise.
1006         * config/i386/i386.c (standard_80387_constant_p): Likewise.
1007         (ix86_print_operand, ix86_split_to_parts): Likewise.
1008         * config/i386/i386.md: Likewise (in a define_split).
1009         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
1010         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
1011         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
1012         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
1013         (print_operand): Likewise.
1014         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
1015         * config/mep/mep.md: Likewise (in define_split).
1016         * config/microblaze/microblaze.c (microblaze_const_double_ok)
1017         (print_operand): Likewise.
1018         * config/mips/mips.md (consttable_float): Likewise.
1019         * config/mmix/mmix.c (mmix_intval): Likewise.
1020         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
1021         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
1022         * config/pa/pa.c (pa_singlemove_string): Likewise.
1023         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
1024         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
1025         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
1026         (output_toc): Likewise.
1027         * config/rs6000/rs6000.md: Likewise (in define_splits).
1028         * config/rx/rx.c (rx_print_operand): Likewise.
1029         * config/s390/s390.c (s390_output_pool_entry): Likewise.
1030         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
1031         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
1032         (and also in define_splits).
1033         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
1034         (fp_high_losum_p): Likewise.
1035         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
1036         (*movsf_high): Likewise.
1037         * config/spu/spu.c (const_double_to_hwint): Likewise.
1038         * config/v850/v850.c (const_double_split): Likewise.
1039         * config/vax/vax.c (vax_float_literal): Likewise.
1040         * config/visium/visium.c (visium_expand_copysign): Likewise.
1041         * config/visium/visium.md: Likewise (in define_split).
1042         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
1043         * config/xtensa/xtensa.c (print_operand): Likewise.
1044         (xtensa_output_literal): Likewise.
1045         * cprop.c (implicit_set_cond_p): Likewise.
1046         * dwarf2out.c (insert_float): Likewise.
1047         * expmed.c (expand_mult, make_tree): Likewise.
1048         * expr.c (compress_float_constant): Likewise.
1049         * rtlanal.c (split_double): Likewise.
1050         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
1051         (simplify_const_unary_operation, simplify_binary_operation_1)
1052         (simplify_const_binary_operation): Likewise.
1053         (simplify_const_relational_operation): Likewise.
1054         * varasm.c (output_constant_pool_2): Likewise.
1056 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
1058         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
1059         instead of CONST_DOUBLE_FROM_REAL_VALUE.
1060         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
1061         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
1062         instead of CONST_DOUBLE_FROM_REAL_VALUE.
1063         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
1064         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
1065         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
1066         (ix86_emit_swsqrtsf): Likewise.
1067         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
1068         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
1069         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
1070         * config/pa/pa.c (pa_expand_builtin): Likewise.
1071         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
1072         (rs6000_scale_v2df): Likewise.
1073         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
1074         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
1075         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
1076         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
1077         (vec_ctul): Likewise.
1078         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
1079         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
1080         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
1081         * cse.c (fold_rtx): Likewise.
1082         * emit-rtl.c (immed_double_const): Likewise (in comments).
1083         (init_emit_once): Likewise.
1084         * expr.c (compress_float_constant, expand_expr_real_1)
1085         (const_vector_from_tree): Likewise.
1086         * optabs.c (expand_float, expand_fix): Likewise.
1087         * reg-stack.c (reg_to_stack): Likewise.
1088         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
1089         (simplify_const_unary_operation, simplify_binary_operation_1)
1090         (simplify_const_binary_operation, simplify_relational_operation)
1091         (simplify_immed_subreg): Likewise.
1093 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
1095         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
1096         * doc/tm.texi: Regenerate.
1097         * real.h (REAL_ARITHMETIC): Delete.
1098         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
1099         (ix86_expand_round_sse4): Use real_arithmetic instead of
1100         REAL_ARITHMETIC.
1101         * config/i386/sse.md (round<mode>2): Likewise.
1102         * rtl.h (rtx_to_tree_code): Likewise (in comment).
1103         * explow.c (rtx_to_tree_code): Likewise (in comment).
1104         * match.pd: Likewise.
1105         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1106         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
1107         (expand_pow_as_sqrts): Likewise.
1108         * tree-pretty-print.c (dump_generic_node): Remove code that
1109         was conditional on REAL_ARITHMETIC being undefined.
1111 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
1113         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
1114         * doc/tm.texi: Regenerate.
1115         * real.h (real_less): Declare.
1116         (REAL_VALUES_LESS): Delete.
1117         * real.c (real_less): New function.
1118         (real_compare): Use it.
1119         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
1120         of REAL_VALUES_LESS.
1121         * config/microblaze/microblaze.c (microblaze_const_double_ok):
1122         Likewise.
1123         * fold-const.c (fold_convert_const_int_from_real): Likewise.
1124         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1125         (simplify_const_relational_operation): Likewise.
1126         * tree-call-cdce.c (check_pow): Likewise.
1127         (gen_conditions_for_pow_cst_base): Likewise.
1129 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
1131         * real.h (REAL_VALUES_IDENTICAL): Delete.
1132         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
1133         instead of REAL_VALUES_IDENTICAL.
1134         * fold-const.c (operand_equal_p): Likewise.
1135         * ipa-icf.c (sem_variable::equals): Likewise.
1136         * tree-complex.c (some_nonzerop): Likewise.
1137         (expand_complex_multiplication): Likewise.
1138         * tree.c (simple_cst_equal): Likewise.
1139         * varasm.c (compare_constant): Likewise.
1141 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
1143         * real.h (real_equal): Declare.
1144         (REAL_VALUES_EQUAL): Delete.
1145         * real.c (real_equal): New function.
1146         (real_compare): Use it.
1147         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
1148         * doc/tm.texi: Regenerate.
1149         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
1150         real_equal instead of REAL_VALUES_EQUAL.
1151         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
1152         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
1153         (fp_const_from_val): Likewise.
1154         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
1155         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
1156         (floating_exact_log2): Likewise.
1157         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
1158         * config/vax/vax.c (vax_float_literal): Likewise.
1159         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
1160         * cprop.c (implicit_set_cond_p): Likewise.
1161         * expmed.c (expand_mult): Likewise.
1162         * fold-const.c (const_binop): Likewise.
1163         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1164         (simplify_const_binary_operation): Likewise.
1165         (simplify_const_relational_operation): Likewise.
1166         * tree-call-cdce.c (check_pow): Likewise.
1167         (gen_conditions_for_pow_cst_base): Likewise.
1168         * tree-inline.c (estimate_num_insns): Likewise.
1169         * tree-ssa-dom.c (record_equality): Likewise.
1170         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
1171         (gimple_expand_builtin_pow): Likewise.
1172         (pass_optimize_widening_mul::execute): Likewise.
1173         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
1174         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
1175         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
1177 2015-10-05  Richard Biener  <rguenther@suse.de>
1179         PR ipa/67783
1180         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
1181         consider loop header PHI defs as IVs.
1183 2015-10-05  Richard Biener  <rguenther@suse.de>
1185         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
1186         call handling ...
1187         (create_expression_by_pieces): ... here and build GIMPLE
1188         calls directly.  Use gimple_build API and avoid force_gimple_operand.
1189         (insert_into_preds_of_block): Simplify.
1190         (do_regular_insertion): Add comment.
1192 2015-10-04  Jason Merrill  <jason@redhat.com>
1194         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
1196 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
1198         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
1199         check for general register.
1200         (ix86_emit_save_regs): Ditto.
1201         (ix86_emit_save_regs_using_mov): Ditto.
1202         (ix86_emit_restore_regs_using_pop): Ditto.
1203         (ix86_emit_restore_regs_using_mov): Ditto.
1205 2015-10-03  Marek Polacek  <polacek@redhat.com>
1207         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
1208         (insn-dfatab.o): Likewise.
1210 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
1212         * config.gcc (xtensa*-*-uclinux*): New configuration.
1213         * config/xtensa/uclinux.h: New file.
1214         * config/xtensa/uclinux.opt: New file.
1216 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
1218         * doc/cpp.texi (Standard Predefined Macros): Document value of
1219         __cplusplus for C++14.
1221 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
1223         * gcc.c (process_command): Use spec_machine rather than
1224         spec_host_machine to build tooldir_prefix2.
1226 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
1227             Bernd Schmidt  <bernds@codesourcery.com>
1229         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
1230         (Token, Stmt): Remove structs.
1231         (decls, vars, fns): Remove variables.
1232         (alloc_comment, append_stmt, is_keyword): Remove macros.
1233         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
1234         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
1235         (parse_init, parse_file): Remove functions.
1236         (read_file): Accept a pointer to a length and store into it.
1237         (process): Don't try to parse the input file, just write it out as
1238         a string, but looking for maps.  Also write out the length.
1239         (main): Don't use "-S" to compile PTX code.
1241 2015-10-02  Jeff Law  <law@redhat.com>
1243         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
1244         fixups.
1246 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
1248         PR target/67822
1249         * config/nvptx/mkoffload.c (main): Scan the argument vector for
1250         -fopenmp, and skip generating an offloading image if specified.
1252 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
1254         * system.h (ROUND_UP): New macro definition.
1255         (ROUND_DOWN): Ditto.
1256         * ggc-page.c (ROUND_UP): Remove local macro definition.
1257         (PAGE_ALIGN): Implement using ROUND_UP macro.
1259         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
1260         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
1261         to align values.
1262         (ix86_compute_frame_layout): Ditto.
1263         (ix86_expand_prologue): Ditto.
1264         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
1265         to round down values.
1266         (expand_set_or_movmem_via_rep): Ditto.
1268 2015-10-02  Marek Polacek  <polacek@redhat.com>
1270         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
1272 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
1274         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
1275         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
1276         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
1277         (free_gimple_bb): Renamed free_gimple_poly_bb.
1278         (try_generate_gimple_bb): Hoist loop invariant code.
1279         (analyze_drs_in_stmts): Same.
1280         (build_scop_drs): Call renamed functions.
1281         (new_pbb_from_pbb): Same.
1282         (scop_ivs_can_be_represented): Delete as functionality now moved to
1283         graphite-scop-detection.c
1284         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
1286 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
1288         * graphite-scop-detection.c (stmt_has_side_effects): New function
1289           outlined from stmt_simple_for_scop_p.
1290         (graphite_can_represent_stmt): Same.
1291         (stmt_simple_for_scop_p): Moved code out of this function for better
1292         readability.
1294 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
1296         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
1297         F_AVX512IFMA.
1298         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
1300 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1302         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
1304 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
1306         PR rtl-optimization/67756
1307         * lra-constraints.c (match_reload): Add a new parameter.  Use it
1308         for creating a pseudo with the same value.
1309         (curr_insn_transform): Pass a new argument to match_reload.
1311 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
1313         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
1314         (expand_vec_perm_even_odd_1): Handle V64QImode.
1315         (ix86_expand_vec_perm_const_1): Try expansion with
1316         expand_vec_perm_even_odd_trunc as well.
1317         * config/i386/sse.md (VI124_AVX512F): Rename to ...
1318         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
1319         to V54QI.
1320         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
1321         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
1322         to V32HI and V16SI.
1323         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
1324         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
1325         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
1326         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
1327         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
1328         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
1330 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
1332         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
1333         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
1335 2015-10-02  Jason Merrill  <jason@redhat.com>
1337         PR c/59218
1338         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
1339         (diagnose_tm_1_op): Also diagnose volatile accesses in
1340         transaction_safe function.
1342 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
1344         * system.h (malloc.h): Don't include obsolete header.
1346 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1348         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
1349         (TLS_SECTION_ASM_FLAG): Delete.
1351 2015-10-02  Marek Polacek  <polacek@redhat.com>
1353         PR c/64249
1354         * doc/invoke.texi: Document -Wduplicated-cond.
1355         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
1356         (insn-dfatab.o): Likewise.
1357         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
1358         warning.
1360 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
1362         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
1363         sequences.
1365 2015-10-02  Renlin Li  <renlin.li@arm.com>
1367         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
1369 2015-10-02  Renlin Li  <renlin.li@arm.com>
1371         PR target/66776
1372         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
1374 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1376         PR rtl-optimization/67786
1377         PR rtl-optimization/67787
1378         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
1379         it modifies a reg used in the condition calculation.
1381 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
1383         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
1384         alternatives for reads from memory and moves from general-purpose
1385         registers.
1386         (*aarch64_combinez_be<mode>): Likewise.
1388 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
1390         PR target/51726
1391         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
1392         selectany within this function without need to keep attribute.
1393         (i386_pe_encode_section_info): Remove selectany-code.
1395 2015-10-02  Richard Biener  <rguenther@suse.de>
1397         * tree-ssa-sccvn.c (has_VN_INFO): New function.
1398         (free_scc_vn): Use it.
1399         (visit_use): Remove dead code and refactor to use gassign
1400         and use less indentation.
1402 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
1404         PR target/67788
1405         PR target/67789
1406         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
1407         (rs6000_cannot_copy_insn_p): New function.
1408         * config/rs6000/rs6000.md (cannot_copy): New attribute.
1409         (load_toc_v4_PIC_1_normal): Set cannot_copy.
1410         (load_toc_v4_PIC_1_476): Ditto.
1412 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
1414         * graphite-scop-detection.c (struct sese_l): New conversion constructor
1415         so that this type can be pushed into a vec.
1416         (class scop_builder): use sese_l to collect scops.
1417         (get_scops): New getter function.
1418         (remove_intersecting_scops): Use sese_l instead of scops_p.
1419         (intersects): Same.
1420         (add_scop): Same.
1421         (subsumes): Same.
1422         (remove_subscops): Same.
1423         (build_scops): Add scops to vec<scops_p> once all the scops have been
1424         detected.
1426 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
1428         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
1429         Renamed type from gimple_bb_p to gimple_poly_bb_p.
1430         (translate_isl_ast_node_user): Same.
1431         * graphite-poly.c (new_poly_bb): Same.
1432         * graphite-poly.h (gbb_from_bb): Same.
1433         * sese.h: Same.
1434         * graphite-sese-to-poly.c (new_gimple_bb):
1435         gimple_bb_p -> gimple_poly_bb_p
1436         (build_scop_scattering): Same.
1437         (find_params_in_bb): Same.
1438         (add_conditions_to_domain): Same.
1439         (sese_dom_walker::before_dom_children): Same.
1440         (analyze_drs_in_stmts): Same.
1441         (new_pbb_from_pbb): Same.
1442         (free_data_refs_aux): New pointer to type base_alias_pair.
1443         * graphite-sese-to-poly.h: Same.
1444         * sese.c (if_region_set_false_region): Fixed Indentation.
1445         (move_sese_in_condition): Same.
1447 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
1448             Aditya Kumar  <aditya.k7@samsung.com>
1450         PR tree-optimization/66980
1451         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
1452         when data reference analysis has failed.
1454 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
1455             Aditya Kumar  <aditya.k7@samsung.com>
1457         PR tree-optimization/67754
1458         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
1459         scev analysis on the same loop nest as analyze_drs_in_stmts.
1460         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
1461         renamed...
1462         (try_generate_gimple_bb): Call outermost_loop_in_sese.
1463         (analyze_drs_in_stmts): Same.
1464         * sese.c (outermost_loop_in_sese): ...here.
1466 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
1467             Aditya Kumar  <aditya.k7@samsung.com>
1469         PR tree-optimization/67754
1470         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
1471         recursion on the inner loops.
1473 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1475         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
1476         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
1477         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
1478         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
1479         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
1481 2015-10-01  Marek Polacek  <polacek@redhat.com>
1483         PR c/65345
1484         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
1485         create_tmp_var_raw rather than create_tmp_var.
1487 2015-10-01  Marek Polacek  <polacek@redhat.com>
1489         PR tree-optimization/67769
1490         * tree-ssa-phiopt.c (conditional_replacement): Call
1491         reset_flow_sensitive_info_in_bb.
1492         (minmax_replacement): Likewise.
1493         (abs_replacement): Likewise.
1495 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
1497         * builtins.c: Don't include gomp-constants.h.
1498         (fold_builtin_1): Don't fold acc_on_device here.
1499         * gimple-fold.c: Include gomp-constants.h.
1500         (gimple_fold_builtin_acc_on_device): New.
1501         (gimple_fold_builtin): Call it.
1503 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1505         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
1506         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
1508 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
1510         * config/arm/aarch-common-protos.h
1511         (aarch_accumulator_forwarding): New.
1512         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
1513         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
1514         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
1515         * config/arm/cortex-a53.md: Rewrite.
1517 2015-10-01  Richard Biener  <rguenther@suse.de>
1519         * gimple-match.h (mprts_hook): Declare.
1520         * gimple-match.head.c (mprts_hook): Define.
1521         (maybe_push_res_to_seq): Use new hook.
1522         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
1523         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
1524         (vn_ssa_aux::has_constants): Remove.
1525         * tree-ssa-sccvn.c: Include gimple-match.h.
1526         (VN_INFO_GET): Assert we don't re-use SSA names.
1527         (vn_get_expr_for): Remove.
1528         (expr_has_constants): Likewise.
1529         (stmt_has_constants): Likewise.
1530         (simplify_binary_expression): Likewise.
1531         (simplify_unary_expression): Likewise.
1532         (vn_lookup_simplify_result): New hook.
1533         (visit_copy): Adjust.
1534         (visit_reference_op_call): Likewise.
1535         (visit_phi): Likewise.
1536         (visit_use): Likewise.
1537         (process_scc): Likewise.
1538         (init_scc_vn): Likewise.
1539         (visit_reference_op_load): Likewise.  Use match-and-simplify and
1540         a gimple seq for inserted expressions.
1541         (try_to_simplify): Remove GENERIC stmt combining code.
1542         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
1543         * tree-ssa-pre.c (eliminate_insert): Adjust.
1544         (eliminate_dom_walker::before_dom_children): Likewise.
1546 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
1548         * doc/invoke.texi (Optimization Options): Add
1549         -freorder-blocks-algorithm=.
1550         (Optimize Options) <-O>: Add -freorder-blocks.
1551         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
1552         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
1553         <-freorder-blocks>: Also enabled at levels -O and -Os.
1554         <-freorder-blocks-algorithm=>: Document new option.
1556 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
1558         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
1559         with flag_reorder_blocks_algorithm.
1560         * common.opt (freorder-blocks-algorithm=): New flag.
1561         (reorder_blocks_algorithm): New enum.
1562         * flag-types.h (reorder_blocks_algorithm): New enum.
1563         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
1564         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
1566 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
1568         * bb-reorder.c: Add intro comment.
1569         (reorder_basic_blocks_software_trace_cache): Print a header to
1570         the dump file.
1571         (edge_order): New function.
1572         (reorder_basic_blocks_simple): New function.
1573         (reorder_basic_blocks): Choose between the STC and the simple
1574         algorithms (always choose the former).
1576 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
1578         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
1579         function, factored out from ...
1580         (reorder_basic_blocks): ... here.
1582 2015-10-01  Tom de Vries  <tom@codesourcery.com>
1584         * tree-cfg.c (dump_function_to_file): Dump function attributes using
1585         __attribute__(()) string.  Move dumping of function attributes to before
1586         function name.
1588 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
1590         PR target/66870
1591         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
1592         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
1593         based on gold linker version.
1594         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
1595         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
1596         * configure, config.in: Regenerate.
1598 2015-10-01  Alan Modra  <amodra@gmail.com>
1600         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
1601         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
1602         (rs6000_output_mi_thunk): Likewise.
1604 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
1606         * config/nvptx/mkoffload.c (process): Change offload data format.
1608 2015-09-30  Jeff Law  <law@redhat.com>
1610         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
1611         with constant conditions.
1612         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
1613         (remove_ctrl_stmt_and_useless_edges): No longer static.
1614         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
1615         (remove_ctrl_stmt_and_useless_edges): Likewise.
1617 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
1618             Cesar Philippidis  <cesar@codesourcery.com>
1620         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
1621         (TARGET_GOACC_VALIDATE_DIMS): Override.
1622         * target.def (TARGET_GOACC): New target hook prefix.
1623         (validate_dims): New hook.
1624         * targhooks.h (default_goacc_validate_dims): New.
1625         * omp-low.c (oacc_validate_dims): New.
1626         (execute_oacc_device_lower): New.
1627         (default_goacc_validate_dims): New.
1628         (pass_data_oacc_device_lower): New.
1629         (pass_oacc_device_lower): New pass.
1630         (make_pass_oacc_device_lower): New.
1631         * tree-pass.h (make_pass_oacc_device_lower): Declare.
1632         * passes.def (pass_oacc_device_lower): Add it.
1633         * doc/tm.texi: Rebuilt.
1634         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
1635         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
1637 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1639         PR rtl-optimization/67037
1640         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
1642 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
1644         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
1645         * passes.c: Include tree-ssanames.h.
1646         (execute_function_todo): Flush the pending free SSA_NAMEs after
1647         eliminating unreachable basic blocks.
1648         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
1649         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
1650         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
1651         (flush_ssanames_freelist): New function.
1652         (release_ssaname_fn): Put released names on the queue.
1653         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
1654         * tree-ssanames.h (flush_ssanames_freelist): Declare.
1656 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
1658         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
1659         (generate_target_descr_file, generate_target_offloadend_file)
1660         (generate_host_descr_file, prepare_target_image): Pass it on.
1661         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
1662         (compile_native, main): Pass it on.
1663         * lto-wrapper.c (compile_offload_image): Likewise.
1665 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
1666             Ilya Verbin  <ilya.verbin@intel.com>
1667             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1669         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
1670         (prepare_target_image, main): Refactor argv building to use
1671         obstacks.
1673 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1675         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
1676         * config/spu/spu.c (spu_expand_atomic_op): New function.
1677         * config/spu/spu.md (AINT): New mode iterator.
1678         (ATOMIC): New code iterator.
1679         (atomic_name, atomic_pred): New code predicates.
1680         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
1681         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
1682         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
1683         "atomic_<atomic_name>_fetch<mode>"): Likewise.
1685 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
1687         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
1688         debug insns.
1689         (scalar_chain::convert_reg): Likewise.
1691 2015-09-30  Richard Biener  <rguenther@suse.de>
1693         * builtins.c: Add comment that no new simplifications should
1694         be added here.
1696 2015-09-30  Marek Polacek  <polacek@redhat.com>
1698         PR tree-optimization/67690
1699         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
1700         reset_flow_sensitive_info_in_bb.
1701         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
1702         * tree-ssanames.c: Include "gimple-iterator.h".
1703         (reset_flow_sensitive_info_in_bb): New function.
1704         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
1706 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
1708         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
1709         variable, replacing it with...
1710         (offload_abi): ... this new variable.  Adjust all users.
1711         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
1713 2015-09-30  Matthias Klose  <doko@ubuntu.com>
1715         * configure.ac: Remove extraneous ;;.
1716         * configure: Regenerate.
1718 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
1720         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
1721         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
1722         predicate, disallow register for operand 2.
1724 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
1726         * graphite-dependences.c (scop_get_dependences): Moved in down
1727         in order to be visible to its caller.
1728         * graphite-poly.h: Removed compute_deps, and extend_schedule.
1730 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
1731             Aditya Kumar  <aditya.k7@samsung.com>
1733         PR tree-optimization/67754
1734         * graphite-optimize-isl.c (optimize_isl): Call
1735         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
1737 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
1739         * builtins.c (expand_builtin_acc_on_device): Delete.
1740         (expand_builtin): Don't call it.
1741         (fold_builtin_1): Fold acc_on_device.
1743 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
1745         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
1746         (ix86_nsaved_sseregs): Likewise.
1748 2015-09-29  Jeff Law  <law@redhat.com>
1750         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
1751         computation of unused value.
1753         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
1754         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
1755         inline macro expansion.
1757         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
1759         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
1760         (gen_shl_sext): Likewise.
1761         * config/sh/sh.md (divsi3): Likewise.
1762         (imm->ext_dest_operand splitter): Likewise.
1764 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
1765             Aditya Kumar  <aditya.k7@samsung.com>
1767         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
1768         (nb_data_writes_in_bb): Remove.
1769         (split_pbb): Remove.
1770         (split_reduction_stmt): Remove.
1771         (is_reduction_operation_p): Remove.
1772         (phi_contains_arg): Remove.
1773         (follow_ssa_with_commutative_ops): Remove.
1774         (detect_commutative_reduction_arg): Remove.
1775         (detect_commutative_reduction_assign): Remove.
1776         (follow_inital_value_to_phi): Remove.
1777         (edge_initial_value_for_loop_phi): Remove.
1778         (initial_value_for_loop_phi): Remove.
1779         (used_outside_reduction): Remove.
1780         (detect_commutative_reduction): Remove.
1781         (translate_scalar_reduction_to_array_for_stmt): Remove.
1782         (remove_phi): Remove.
1783         (dr_indices_valid_in_loop): Remove.
1784         (close_phi_written_to_memory): Remove.
1785         (translate_scalar_reduction_to_array): Remove.
1786         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
1787         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
1788         (rewrite_commutative_reductions_out_of_ssa): Remove.
1789         (build_poly_scop): Remove call to
1790         rewrite_commutative_reductions_out_of_ssa.
1792 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
1794         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
1795         Add new insn types for vector load and store pairs.
1796         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
1797         types "neon_ldp{,_q}".
1798         * config/arm/cortex-a57.md (neon_load_c): Add insn types
1799         "neon_ldp{,_q}".
1800         (neon_store_complex): Add insn types "neon_stp{,_q}".
1801         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
1802         "neon_{ldp,stp}_q".
1804 2015-09-29  Jeff Law  <law@redhat.com>
1806         * config/rx/constraints.md (Int08): Fix undefined left shift
1807         behaviour.
1808         (Sint08, Sint16, Sint24): Likewise.
1809         * config/rx/rx.c (rx_get_stack_layout): Likewise.
1811         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
1812         behaviour.
1814         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
1815         left shift behaviour.
1816         * config/msp430/constraints.md ('L' constraint): Similarly.
1817         ('Ys' constraint): Similarly.
1819 2015-09-29  Richard Biener  <rguenther@suse.de>
1821         PR tree-optimization/67170
1822         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
1823         the translate function pointer parameter to get the
1824         bool whether to disambiguate only by reference.
1825         (walk_non_aliased_vuses): Likewise.
1826         * tree-ssa-alias.c (maybe_skip_until): Adjust.
1827         (get_continuation_for_phi_1): Likewise.
1828         (get_continuation_for_phi): Likewise.
1829         (walk_non_aliased_vuses): Likewise.
1830         * tree-ssa-sccvn.c (const_parms): New bitmap.
1831         (vn_reference_lookup_3): Adjust for interface change.
1832         Disambiguate parameters pointing to readonly memory.
1833         (free_scc_vn): Free const_parms.
1834         (run_scc_vn): Initialize const_parms from a fn spec attribute.
1836 2015-09-29  Richard Biener  <rguenther@suse.de>
1838         PR tree-optimization/67741
1839         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
1840         builtin calls with correct signature.
1842 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
1844         PR target/65105
1845         * config/i386/i386.c: Include dbgcnt.h.
1846         (has_non_address_hard_reg): New.
1847         (convertible_comparison_p): New.
1848         (scalar_to_vector_candidate_p): New.
1849         (remove_non_convertible_regs): New.
1850         (scalar_chain): New.
1851         (scalar_chain::scalar_chain): New.
1852         (scalar_chain::~scalar_chain): New.
1853         (scalar_chain::add_to_queue): New.
1854         (scalar_chain::mark_dual_mode_def): New.
1855         (scalar_chain::analyze_register_chain): New.
1856         (scalar_chain::add_insn): New.
1857         (scalar_chain::build): New.
1858         (scalar_chain::compute_convert_gain): New.
1859         (scalar_chain::replace_with_subreg): New.
1860         (scalar_chain::replace_with_subreg_in_insn): New.
1861         (scalar_chain::emit_conversion_insns): New.
1862         (scalar_chain::make_vector_copies): New.
1863         (scalar_chain::convert_reg): New.
1864         (scalar_chain::convert_op): New.
1865         (scalar_chain::convert_insn): New.
1866         (scalar_chain::convert): New.
1867         (convert_scalars_to_vector): New.
1868         (pass_data_stv): New.
1869         (pass_stv): New.
1870         (make_pass_stv): New.
1871         (ix86_option_override): Created and register stv pass.
1872         (flag_opts): Add -mstv.
1873         (ix86_option_override_internal): Likewise.
1874         * config/i386/i386.md (SWIM1248x): New.
1875         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
1876         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
1877         (*anddi3_doubleword): New.
1878         (*zext<mode>_doubleword): New.
1879         (*zextsi_doubleword): New.
1880         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
1881         (*<code>di3_doubleword): New.
1882         * config/i386/i386.opt (mstv): New.
1883         * dbgcnt.def (stv_conversion): New.
1885 2015-09-29  Tom de Vries  <tom@codesourcery.com>
1887         * tree-cfg.c (dump_function_to_file): Dump function attributes.
1889 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
1891         PR target/67716
1892         * config/sh/sh.c (sh_override_options_after_change): New.
1893         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
1894         (sh_option_override): Move align_loops, align_jumps and
1895         align_functions handling into sh_override_options_after_change.
1897 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
1899         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
1900         (nvptx_record_offload_symbol): Record function execution geometry.
1901         * config/nvptx/mkoffload.c (process): Include launch geometry in
1902         function data.
1903         * omp-low.c (oacc_launch_pack): New.
1904         (replace_oacc_fn_attrib): New.
1905         (set_oacc_fn_attrib): New.
1906         (get_oacc_fn_attrib): New.
1907         (expand_omp_target): Create keyed varargs for GOACC_parallel call
1908         generation.
1909         * omp-low.h (get_oacc_fn_attrib): Declare.
1910         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
1911         (DEF_FUNCTION_TYPE_VAR_11): Delete.
1912         * tree.h (OMP_CLAUSE_EXPR): New.
1913         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
1915 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
1916             Sebastian Pop  <s.pop@samsung.com>
1918         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
1920 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
1921             Sebastian Pop  <s.pop@samsung.com>
1923         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
1924         * graphite-scop-detection.c (struct sese_l): New type.
1925         (get_entry_bb): API for getting entry bb of SESE.
1926         (get_exit_bb): API for getting exit bb of SESE.
1927         (class debug_printer): New type.  Simple printer in debug mode.
1928         (trivially_empty_bb_p): New.  Return true when BB is empty or
1929         contains only debug instructions.
1930         (graphite_can_represent_expr): Call scalar_evoution_in_region
1931         instead of analyze_scalar_evolution.  Pass in scop instead of only
1932         the scop entry.
1933         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
1934         scop entry.
1935         (stmt_simple_for_scop_p): Same.
1936         (harmful_stmt_in_bb): Same.
1937         (graphite_can_represent_loop): Deleted.
1938         (struct scopdet_info): Deleted.
1939         (scopdet_basic_block_info): Deleted.
1940         (build_scops_1): Deleted.
1941         (bb_in_sd_region): Deleted.
1942         (find_single_entry_edge): Deleted.
1943         (find_single_exit_edge): Deleted.
1944         (create_single_entry_edge): Deleted.
1945         (sd_region_without_exit): Deleted.
1946         (create_single_exit_edge): Deleted.
1947         (unmark_exit_edges): Deleted.
1948         (mark_exit_edges): Deleted.
1949         (create_sese_edges): Deleted.
1950         (build_graphite_scops): Deleted.
1951         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
1952         (build_scops): Use the new scop_builder to build scops.
1953         (dot_all_scops_1): Use the new pretty printer.  Print loop father
1954         as well.
1955         (loop_body_is_valid_scop): New.  Return true if loop body is a
1956         valid scop.
1957         (class scop_builder): New.  Builds SCoPs for polyhedral
1958         optimizations.
1959         (scop_builder): New constructor.
1960         (static sese_l invalid_sese): sese_l with invalid edges.
1961         (get_sese): Get an sese (from a loop) if possible, invalid_sese
1962         otherwise.
1963         (get_nearest_dom_with_single_entry): Get nearest dominator of a
1964         basic_block with single entry.  Return NULL if we get to the
1965         beginning of a function.
1966         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
1967         a basic_block with single exit.  Return NULL if we get to the
1968         beginning of a function.
1969         (print_sese): Pretty-print SESE.
1970         (merge_sese): Merge two SESEs if possible and return the new SESE.
1971         (build_scop_depth): Start building the SCoP within a loop nest.
1972         (build_scop_breadth): Start building the SCoP at a single loop
1973         depth.  Merge adjacent SESEs if valid.
1974         (can_represent_loop_1): Returns true if Graphite can represent
1975         loop inside SCoP.  Helper for can_represent_loop.
1976         (can_represent_loop): Returns true if Graphite can represent LOOP
1977         and all its nested loops in SCoP.
1978         (loop_is_valid_scop): Returns true if LOOP and all its nests
1979         constitute a valid SCoP.
1980         (region_has_one_loop): Returns true of a region has only one loop.
1981         (add_scop): Add SCoP to the list of valid scops.  Removes an
1982         already existing scop if it intersects with or subsumed by this one.
1983         (harmful_stmt_in_region): Returns true if SCoP has any statment
1984         which cannot be represented by Graphite.
1985         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
1986         (remove_subscops): Remove any SCoP from the list of already found
1987         SCoPs, if subsumed by S1.
1988         (intersects): Return true if region bounded by SCoPs S1 and S2
1989         intersect.
1990         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
1991         * graphite.c (print_graphite_scop_statistics):
1992         (print_graphite_statistics): Print SCoP info while debugging.
1993         (graphite_initialize): Early exit in case number of loops in a
1994         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
1995         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
1996         (graphite_finalize):
1997         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
1998         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
1999         (recompute_all_dominators): Recalculate POST_DOMINATORS.
2000         * tree-cfg.c (print_loops): Print the function name while printing
2001         loops.
2003 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
2004             Sebastian Pop  <s.pop@samsung.com>
2006         PR tree-optimization/67700
2007         * graphite-sese-to-poly.c (parameter_index_in_region): Call
2008         invariant_in_sese_p_rec.
2009         (extract_affine): Same.
2010         (rewrite_cross_bb_scalar_deps): Call update_ssa.
2011         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
2012         * sese.h (invariant_in_sese_p_rec): Declare.
2014 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
2016         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
2018 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
2020         Revert:
2021         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2022                     Jiong Wang  <jiong.wang@arm.com>
2024         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
2025         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
2026         (REG_CLASS_NAMES): Likewise.
2027         (REG_CLASS_CONTENTS): Likewise.
2028         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
2029         (aarch64_register_move_cost): Likewise.
2030         (aarch64_load_symref_appropriately): Invoke the new added pattern if
2031         possible.
2032         * config/aarch64/constraints.md (Uc0): New constraint.
2034 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
2036         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
2038 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
2040         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
2041         SECTION_EXCLUDE in XO mapping class.
2043 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
2045         PR target/54236
2046         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
2047         and handle ne and eq codes.
2048         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
2049         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
2050         CONST_INT_P.  Use reverse_condition.
2051         (sh_split_treg_set_expr): Likewise.
2053 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
2055         * config/arm/types.md (type): Add rotate_imm.
2056         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
2057         ROR immediate case.
2058         (*rorsi3_insn_uxtw): Likewise.
2059         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
2060         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
2061         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
2063 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2065         PR rtl-optimization/67481
2066         * ifcvt.c (contains_ccmode_rtx_p): New function.
2067         (insn_valid_noce_process_p): Use it.
2069 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2071         PR rtl-optimization/67456
2072         PR rtl-optimization/67464
2073         PR rtl-optimization/67465
2074         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
2075         move in the mode of x.  Handle combination of complex and simple
2076         block pairs as well as the case when one is empty.
2078 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2080         * doc/gimple.texi: Update references to gimple_statement_base.
2081         * gdbhooks.py: Likewise.
2082         * gimple.h: Likewise.
2084 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
2086         * config/sparc/driver-sparc.c: map LEON to leon3
2088 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
2090         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
2091           and make it inverse to change default
2092         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
2093           supervisor mode
2094         * doc/invoke.texi: Document change of default
2096 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
2098         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
2099         true on %f0 for a target without FPU.
2100         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
2101         without FPU.
2102         (untyped_return): Do not load %f0 for a target without FPU.
2104 2015-09-28  Andrew Pinski  <apinski@cavium.com>
2106         * config/aarch64/aarch64.md (prefetch):
2107         Change the predicate of operand 0 to register_operand.
2109 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
2111         * config/i386/predicates.md (register_sse4nonimm_operand): New
2112         predicate.
2113         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
2114         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
2115         Use register_sse4nonimm_operand as operand 0 predicate.
2116         (*vec_extractv8hi_sse2): Remove insn pattern.
2117         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
2118         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
2120 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
2121             Kaz Kojima  <kkojima@gcc.gnu.org>
2123         PR target/67391
2124         * config/sh/sh-protos.h (sh_lra_p): Declare.
2125         * config/sh/sh.c (sh_lra_p): Make non-static.
2126         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
2127         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
2128         Expand into addsi3_scr if operands[2] if needed.
2129         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
2130         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
2131         (addsi3_scr, *addsi3): New insn_and_split patterns.
2133 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
2135         PR rtl-optimization/64164
2136         PR tree-optimization/67312
2137         PR middle-end/67340
2138         PR middle-end/67490
2139         PR bootstrap/67597
2140         * cfgexpand.c (parm_in_stack_slot_p): Remove.
2141         (ssa_default_def_partition): Remove.
2142         (get_rtl_for_parm_ssa_default_def): Remove.
2143         (set_rtl): Check that RTL assignments match expectations.
2144         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
2145         default def location for params and results.  Record SSA names
2146         or types in REG and MEM attrs, respectively.
2147         (set_parm_rtl): New.
2148         (expand_one_ssa_partition): Drop logic that assigned MEMs with
2149         unassigned addresses.
2150         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
2151         deferred stack alloc vars.
2152         (expand_used_vars): Skip partitions holding parm default defs.
2153         Move adjust_one_expanded_partition_var loop...
2154         (pass_expand::execute): ... here.  Drop redundant assert.
2155         Adjust comments before the final loop over all ssa names.
2156         Require assigned rtl of parms and results to match exactly.
2157         Reset its attributes to match them, not any other variables in
2158         the same partition.
2159         (expand_debug_expr): Use entry value for PARM's default defs
2160         only iff they have zero nondebug uses.
2161         * cfgexpand.h (parm_in_stack_slot_p): Remove.
2162         (get_rtl_for_parm_ssa_default_def): Remove.
2163         (set_parm_rtl): Declare.
2164         * doc/invoke.texi: Improve wording.
2165         * explow.c (promote_decl_mode): Fix promote_function_mode for
2166         result decls not by reference.
2167         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
2168         bypass TYPE_MODE to get the actual vector mode.
2169         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
2170         2015-08-19's changes as follows.  Drop include of
2171         basic-block.h and df.h.
2172         (rtl_for_parm): Remove.
2173         (maybe_reset_rtl_for_parm): Remove.
2174         (parm_in_unassigned_mem_p): Remove.
2175         (use_register_for_decl): Add logic for RESULT_DECLs matching
2176         assign_parms' behavior.
2177         (split_complex_args): Revert.
2178         (assign_parms_augmented_arg_list): Revert.  Add comment
2179         referencing the logic above.
2180         (assign_parm_adjust_stack_rtl): Revert.
2181         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
2182         of SET_DECL_RTL.  Set up a REG if the parm demands so.
2183         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
2184         calls into a single set_parm_rtl.  Set up a temporary RTL
2185         temporarily for expand_assignment.
2186         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
2187         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
2188         (assign_bounds): Revert.
2189         (assign_parms): Revert.  Use set_parm_rtl.
2190         (allocate_struct_function): Relayout result and parms of
2191         non-abstruct functions.
2192         (expand_function_start): Revert.  Use set_parm_rtl.  If the
2193         result is not a hard reg, create a pseudo from the promoted
2194         mode of the default def.  Promote static chain mode.
2195         * tree-outof-ssa.c (remove_ssa_form): Drop unused
2196         partition_has_default_def.  Set up
2197         partitions_for_parm_default_defs.
2198         (finish_out_of_ssa): Remove partition_has_default_def.
2199         Release partitions_for_parm_default_defs.
2200         * tree-outof-ssa.h (struct ssaexpand): Remove
2201         partition_has_default_def.  Add
2202         partitions_for_parm_default_defs.
2203         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
2204         stor-layout.h.
2205         (build_ssa_conflict_graph): Fix conflict-detection of default
2206         defs of even unused default defs of params and results.
2207         (for_all_parms): New.
2208         (create_default_def): New.
2209         (register_default_def): New.
2210         (coalesce_with_default): New.
2211         (create_outofssa_var_map): Create default defs for all parms
2212         and results, and register their partitions.  Add GIMPLE_RETURN
2213         operands as coalesce candidates with results.  Add default
2214         defs of each parm or result as coalesce candidates with its
2215         other defs.  Mark each result def, and each default def of
2216         parms, as used_in_copy.
2217         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
2218         with the ssa names, even anonymous ones.  Drop
2219         parm_in_stack_slot_p calls.  Require same signedness and
2220         alignment.
2221         (coalesce_ssa_name): Add coalesce candidates for all defs of
2222         each parm and result, even unused ones.
2223         (parm_default_def_partition_arg): New type.
2224         (set_parm_default_def_partition): New.
2225         (get_parm_default_def_partitions): New.
2226         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
2227         * tree-ssa-live.c (partition_view_init): Regard unused defs of
2228         parms and results as used.
2229         (verify_live_on_entry): Don't error out just because they're
2230         not live.
2232 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
2234         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
2235         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
2236         (output_fde): Don't output length for debug_frame on AIX.
2237         (output_call_frame_info): Don't output length for debug_frame on AIX.
2238         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
2239         HAVE_XCOFF_DWARF_EXTRAS.
2240         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
2241         HAVE_XCOFF_DWARF_EXTRAS.
2242         (output_compilation_unit_header): Don't output length on AIX.
2243         (output_pubnames): Don't output length on AIX.
2244         (output_aranges): Delete argument. Compute length locally. Don't
2245         output length on AIX.
2246         (output_line_info): Don't output length on AIX.
2247         (dwarf2out_finish): Don't compute aranges_length.
2248         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
2249         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
2250         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
2251         symbol decoration for AIX.
2252         (rs6000_xcoff_debug_unwind_info): New.
2253         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
2254         for SECTION_DEBUG.
2255         (rs6000_xcoff_declare_function_name): Emit different
2256         .function pseudo-op when DWARF2_DEBUG. Don't call
2257         xcoffout_declare_function for DWARF2_DEBUG.
2258         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
2259         Redefine.
2260         * config/rs6000/aix71.h: New.
2261         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
2262         locations support.
2263         * configure: Regenerate.
2264         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
2265         DWARF support.
2267 2015-09-26  Jeff Law  <law@redhat.com>
2269         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
2270         behaviour.
2271         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
2272         behaviour.
2274         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
2275         behaviour
2277         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
2278         undefined behaviour.
2280         * config/cris/cris.md (asrandb): Fix left shift undefined
2281         behaviour.
2282         (asrandw): Likewise.
2284 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
2286         PR target/61578
2287         * lra-constarints.c (match_reload): Check presence of the input pseudo
2288         in the output operand.
2290 2015-09-25  Tobias Burnus  <burnus@net-b.de>
2292         * doc/invoke.texi (-fsanitize): Minor wording tweak.
2294 2015-09-25  Tobias Burnus  <burnus@net-b.de>
2296         * doc/invoke.texi (-fsanitize): Update URLs.
2298 2015-09-25  Teresa Johnson  <tejohnson@google.com>
2300         * opts.c (finish_options): Unset -freorder-blocks-and-partition
2301         if not using profile.
2303 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2305         PR pretty-print/67567
2306         * pretty-print.c (pp_string): Add gcc_checking_assert.
2307         * pretty-print.h (output_buffer_append_r): Likewise.
2309 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
2311         PR target/67675
2312         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
2313         addr2 individually.  Don't emit logical or insn if one is known to
2314         be aligned approriately.
2315         (sh_expand_cmpnstr): Likewise.
2317 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
2319         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
2320         __builtin_aarch64_fp[sc]r arguments into a register.
2322 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
2324         * config.gcc (x86_archs): Replace lakemount with lakemont.
2325         (with_cpu): Likewise.
2326         (with_arch): Likewise.
2327         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
2328         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
2329         __tune_lakemount__ with __tune_lakemont__.
2330         * config/i386/i386.c (lakemount_cost): Renamed to ...
2331         (lakemont_cost): This.
2332         (m_LAKEMOUNT): Renamed to ...
2333         (m_LAKEMONT): This.
2334         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
2335         (processor_target_table): Replace "lakemount" with "lakemont".
2336         (processor_alias_table): Likewise.
2337         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
2338         PROCESSOR_LAKEMONT.
2339         (ix86_adjust_cost): Likewise.
2340         (ia32_multipass_dfa_lookahead): Likewise.
2341         * config/i386/i386.h (processor_type): Likewise.
2342         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
2343         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
2344         Lakemount with Lakemont.
2346 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
2348         * config.gcc (x86_archs): Replace iamcu with lakemount.
2349         (with_cpu): Likewise.
2350         (with_arch): Likewise.
2351         * doc/invoke.texi: Likewise.
2352         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
2353         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
2354         __tune_iamcu__ with __tune_lakemount__.
2355         * config/i386/i386.c (iamcu_cost): Renamed to ...
2356         (lakemount_cost): This.
2357         (m_IAMCU): Renamed to ...
2358         (m_LAKEMOUNT): This.
2359         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
2360         (processor_target_table): Replace "iamcu" with "lakemount".
2361         (processor_alias_table): Likewise.
2362         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
2363         PROCESSOR_LAKEMOUNT.
2364         (ix86_adjust_cost): Likewise.
2365         (ia32_multipass_dfa_lookahead): Likewise.
2366         * config/i386/i386.h (processor_type): Likewise.
2367         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
2369 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
2371         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
2372         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
2373         Declare.
2374         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
2375         (pa_expand_compare_and_swap_loop): New.
2376         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
2377         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
2378         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
2379         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
2380         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
2381         Revise.
2383 2015-09-24  Michael Collison  <michael.collison@linaro.org>
2385         PR other/57195
2386         * read-md.c (read_name): Allow mode iterators inside angle
2387         brackets in rtl expressions.
2389 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
2391         PR target/61578
2392         * ira-color.c (update_allocno_cost): Add parameter.
2393         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
2394         parameter.
2396 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2398         PR driver/67640
2399         * opts-common.c (prune_options): Discard all -fdiagnostics-color
2400         but the last one, which is moved to the front to be processed
2401         first.
2402         * opts.c (enable_warning_as_error): Reject options that do not
2403         control warnings.
2405 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
2407         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
2409 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
2411         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
2412         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
2413         (aarch64_cannot_force_const_mem): Likewise.
2414         (aarch64_classify_address): Likewise.
2415         (aarch64_classify_symbolic_expression): Likewise.
2416         (aarch64_print_operand): Likewise.
2417         (aarch64_classify_symbol): Likewise.
2418         (aarch64_mov_operand_p): Likewise.
2419         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
2420         (aarch64_mov_operand): Likewise.
2422 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
2424         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
2425         for info->spe_gp_size.
2427 2015-09-24  Richard Biener  <rguenther@suse.de>
2429         PR lto/67699
2430         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
2431         abstract origins.
2433 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
2435         * tree-object-size.c (plus_stmt_object_size)
2436         (cond_expr_object_size): Change the formal parameters from gimple
2437         to gimple *.
2438         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
2439         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
2440         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
2442 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2444         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
2445         Check for ld -type pie on Solaris 11.x and 12.
2446         * configure: Regenerate.
2447         * config.in: Regenerate.
2449         * gcc.c (LD_PIE_SPEC): Allow redefinition.
2451         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
2452         (STARTFILE_SPEC): Use it.
2453         (ENDFILE_CRTEND_SPEC): Define.
2454         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
2455         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
2456         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
2457         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
2458         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
2459         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
2460         (ENDFILE_ARCH_SPEC): Define.
2461         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
2463 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2465         * configure.ac (gcc_cv_solaris_crts): New test.
2466         * configure. Regenerate.
2467         * config.in: Regenerate.
2468         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
2469         HAVE_SOLARIS_CRTS variant.
2471 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2473         * tree-inline.h (count_insns_seq): Delete prototype.
2474         (estimate_num_insns_seq): Define prototype.
2475         * tree-inline.c (count_insns_seq): Delete.
2476         (estimate_num_insns_seq): Remove static qualifier.
2477         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
2478         with estimate_num_insns_seq.
2480 2015-09-24  Richard Biener  <rguenther@suse.de>
2482         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
2483         members.
2484         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
2485         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
2486         offset.
2487         (ao_ref_init_from_vn_reference): Record clique and base in the
2488         built base.
2489         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
2491 2015-09-24  Richard Biener  <rguenther@suse.de>
2493         PR tree-optimization/48885
2494         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
2495         as not including any restrict tags from other pointers.
2497 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
2499         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
2500         character when appending to offload_targets.
2502         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
2503         offload targets by commas, not colons.
2504         * config.in: Regenerate.
2505         * configure: Likewise.
2506         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
2507         instead of setting up the default offload targets here...
2508         (process_command): ..., do it here.
2509         libgomp/
2510         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
2511         targets are separated by commas.
2512         * config.h.in: Regenerate.
2514 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
2515             Nathan Sidwell  <nathan@codesourcery.com>
2517         * omp-low.h (omp_reduction_init_op): Declare.
2518         * omp-low.c (omp_reduction_init_op): New, broken out of ...
2519         (omp_reduction_init): ... here.  Call it.
2520         * tree-parloops.c (initialize_reductions): Use
2521         omp_reduction_init_op.
2523 2015-09-23   Richard Biener  <rguenther@suse.de>
2525         PR middle-end/67662
2526         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
2527         undefined overflow unless they will cancel out.
2529 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
2531         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
2532         insn emit.
2534 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2536         PR c/49655
2537         * opts.h (write_langs): Declare.
2538         * opts-global.c (write_langs): Make it extern.
2540 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
2542         PR target/67391
2543         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
2544         overlapping regs when matching the pattern.
2546 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
2548         * config/aarch64/aarch64-simd.md
2549         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
2550         (aarch64_float_truncate_hi_v4sf_le): New.
2551         (aarch64_float_truncate_hi_v4sf_be): Likewise.
2553 2015-09-23  Richard Biener  <rguenther@suse.de>
2555         * tree-ssa-structalias.c (intra_create_variable_infos): Build
2556         representatives for all restrict qualified pointer destinations.
2558 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
2560         * config/i386/i386.md (define_code_attr mshift): New.
2561         (define_mode_iterator SWI1248_AVX512BW): Rename ...
2562         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
2563         only.
2564         (define_insn "*k<logic><mode>"): Use new iterator name.
2565         (define_insn "*<mshift><mode>3"): New.
2567 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
2569         PR middle-end/67649
2570         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
2571         mark the block as accessible.
2573 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
2575         * function.c (thread_prologue_and_epilogue_insns): Delete
2576         orig_entry_edge argument to try_shrink_wrapping.
2577         * shrink-wrap.c (can_get_prologue): New function.
2578         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
2579         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
2580         can_get_prologue where needed.  Remove code that finds a single
2581         edge for the prologue.  Remove code that tests if any reg clobbered
2582         by the prologue is live on the prologue edge.  Remove code that finds
2583         the new prologue edge after duplicating blocks.  Make a new prologue
2584         block and edge.
2585         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
2587 2015-09-22  Jeff Law  <law@redhat.com>
2589         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
2590         behavior.
2592 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
2594         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
2595         -Wtemplates, -Wnamespaces): Document.
2597 2015-09-22  Tom de Vries  <tom@codesourcery.com>
2599         PR tree-optimization/67671
2600         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
2601         pointer references as restrict.
2603 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
2605         * config/nios2/nios2.c (nios2_legitimize_address): When handling
2606         'reg + reloc' cases, allow first operand to be non-REG, and use
2607         force_reg() to enforce address pattern.
2609 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
2611         PR target/67480
2612         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
2613         (define_mode_iterator VI12_AVX_AVX512F): New.
2614         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
2615         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
2616         (define_insn "*<code><mode>3"): ... Into new pattern using
2617         VI12_AVX_AVX512F iterators without masking.
2619 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
2621         * config.gcc: Support "skylake-avx512".
2622         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2623         PROCESSOR_SKYLAKE_AVX512.
2624         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
2625         (processor_target_table): Add "skylake-avx512".
2626         (PTA_SKYLAKE_AVX512): Define.
2627         (ix86_option_override_internal): Add "skylake_avx512".
2628         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
2629         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
2630         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
2631         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
2632         * doc/invoke.texi (skylake-avx512): New.
2634 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
2636         * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
2637         operand in pattern.
2638         (define_insn "kunpcksi"): Ditto.
2639         (define_insn "kunpckdi"): Ditto.
2641 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
2643         * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
2644         iterator instead of fixed modes.
2646 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
2648         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
2649         Adjust declaration.
2650         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
2651         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
2652         out_result.  Update to support update-fetch operations.
2653         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
2654         Adjust for change to aarch64_gen_atomic_ldop.
2655         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
2656         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
2657         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
2658         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
2659         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
2661 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
2663         * config/aarch64/aarch64-protos.h
2664         (aarch64_atomic_ldop_supported_p): Declare.
2665         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
2666         (enum aarch64_atomic_load_op_code): New.
2667         (aarch64_emit_atomic_load_op): New.
2668         (aarch64_gen_atomic_ldop): Update to support load-operate
2669         patterns.
2670         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
2671         to an expander.
2672         (aarch64_atomic_<atomic_optab><mode>): New.
2673         (aarch64_atomic_<atomic_optab><mode>_lse): New.
2674         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
2675         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
2676         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
2678 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
2680         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
2681         (UNSPECV_ATOMIC_LDOP_OR): New.
2682         (UNSPECV_ATOMIC_LDOP_BIC): New.
2683         (UNSPECV_ATOMIC_LDOP_XOR): New.
2684         (UNSPECV_ATOMIC_LDOP_PLUS): New.
2685         (ATOMIC_LDOP): New.
2686         (atomic_ldop): New.
2687         (aarch64_atomic_load<atomic_ldop><mode>): New.
2689 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
2691         * config/aarch64/aarch64.md
2692         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
2693         pattern.
2695 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
2697         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
2698         Declare.
2699         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
2700         (aarch64_gen_atomic_ldop): New.
2701         (aarch64_split_atomic_op): Fix whitespace and add a comment.
2702         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
2703         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
2704         (atomic_exchange<mode>): Replace with an expander.
2705         (aarch64_atomic_exchange<mode>): New.
2706         (aarch64_atomic_exchange<mode>_lse): New.
2707         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
2708         (aarch64_atomic_swp<mode>): New.
2710 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2712         * tree-inline.c (expand_call_inline): Use inform for extra note.
2713         Do not give a note with UNKNOWN_LOCATION.
2714         Replace input_location with gimple_location (stmt).
2715         Use true/false instead of TRUE/FALSE.
2717 2015-09-22  Tom de Vries  <tom@codesourcery.com>
2719         PR tree-optimization/67666
2720         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
2721         with single field non-conservative.
2723 2015-09-21  David S. Miller  <davem@davemloft.net>
2725         PR/67622
2726         Revert:
2727         2015-09-11  David S. Miller  <davem@davemloft.net>
2729         * config/sparc/constraints.md: Make "U" constraint a real register
2730         constraint.
2731         * config/sparc/sparc.c (TARGET_LRA_P): Define.
2732         (D_MODES, DF_MODES): Add missing cast.
2733         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
2734         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
2735         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
2736         cost to 8.
2737         * config/sparc/sparc.h (PROMOTE_MODE): Define.
2738         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
2739         provide these insn when flag_pic.
2741         2015-09-17  David S. Miller  <davem@davemloft.net>
2743         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
2744         Declare.
2745         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
2746         function.
2747         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
2748         (HARD_REGNO_CALLER_SAVE_MODE): Define.
2749         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
2750         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
2751         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
2752         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
2753         provide when flag_pic.
2755 2015-09-21  Jeff Law  <law@redhat.com>
2757         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
2758         behavior.
2760 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2762         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
2764 2015-09-21  Richard Biener  <rguenther@suse.de>
2766         * passes.c (rest_of_decl_compilation): Do not call
2767         dwarf2out_early_global_decl for aliases.
2769 2015-09-21  Richard Biener  <rguenther@suse.de>
2771         PR debug/67664
2772         * dwarf2out.c (add_location_or_const_value_attribute): Remove
2773         attribute parameter.  Early exit if either DW_AT_const_value
2774         or DW_AT_location are present already.
2775         (gen_variable_die): Adjust caller.
2776         (dwarf2out_late_global_decl): Likewise.
2778 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
2780         PR target/67657
2781         * config/sh/sh.c (sh_remove_overlapping_post_inc,
2782         sh_peephole_emit_move_insn): Add new functions.
2783         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
2784         sh_peephole_emit_move_insn): Declere them.
2785         * config/sh/sh.md: Use them in various peephole2 patterns.
2787 2015-09-21  Richard Biener  <rguenther@suse.de>
2789         PR middle-end/67651
2790         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
2791         address with -fno-delete-null-pointer-checks.
2793 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
2795         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
2796         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
2797         (reduc_uplus_v16qi): Remove.
2799         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
2800         (reduc_<VEC_reduc_name>_v2df): Remove.
2801         (reduc_<VEC_reduc_name>_v4sf): Remove.
2802         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
2804         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
2805         gen_ function by removing * prefix.
2806         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
2808 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2810         PR middle-end/60832
2811         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
2812         Print i_bound without converting it to a tree.
2814 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
2816         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
2817         operands[4] operands[5] swap with std::swap, removed tmp variable.
2818         (arm_evpc_neon_vzip): Replaced in0/in1 and
2819         out0/out1 swaps with std::swap, removed x variable.
2820         (arm_evpc_neon_vtrn): Replaced in0/int1 and
2821         out0/out1 swaos with std::swap, removed x variable.
2822         (arm_expand_vec_perm_const_1): Replaced
2823         d->op0/d->op1 swap with std::swap, removed x variable.
2824         (arm_evpc_neon_vuzp): Replaced in0/in1 and
2825         out0/out1 swaps with std::swap, removed x variable.
2827 2015-09-21  Jonathan Yong  <10walls@gmail.com>
2829         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
2830         sysroot/usr/lib/32api for additional win32 libraries,
2831         fixes failing Cygwin bootstrapping.
2833 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
2835         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
2837 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
2839         PR target/67126
2840         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
2841         (*mov_t_msb_neg): Rewrite negc pattern.
2843 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
2845         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
2846         immediate generation code.
2848 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
2850         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
2851         redundant immediate generation code.
2853 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
2855         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
2856         (AARCH64_NUM_BITMASKS): Remove.
2857         (aarch64_bitmasks_cmp): Remove.
2858         (aarch64_build_bitmask_table): Remove.
2860 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
2862         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
2863         slow immediate matching loops with a faster algorithm.
2865 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
2867         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
2868         faster algorithm.
2870 2015-09-20  Jeff Law  <law@redhat.com>
2872         PR tree-optimization/47679
2873         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
2874         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
2875         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
2876         (thread_through_normal_block): Use record_temporary_equivalences.
2878 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
2880         * coretypes.h (gimple): Change typedef to be a forward declaration.
2881         * gimple.h (gimple_statement_base): rename to gimple.
2882         * (all functions and types using gimple): Adjust.
2883         * *.[ch]: Likewise.
2885 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
2886             David Edelsohn  <dje.gcc@gmail.com>
2888         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
2889         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2890         (EH_FRAME_THROUGH_COLLECT2): Define.
2891         (EH_TABLES_CAN_BE_READ_ONLY): Define.
2892         (ASM_OUTPUT_DWARF_PCREL): Define.
2893         (ASM_OUTPUT_DWARF_DATAREL): Define.
2895 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
2897         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
2898         of TARGET_ELF32.
2900 2015-09-18  Jeff Law  <law@redhat.com>
2902         PR tree-optimization/47679
2903         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
2904         it here ...
2905         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
2906         object.  Update constructor.
2907         (pass_dominator::execute):  Corresponding chagnes to declaration
2908         and initialization of avail_exprs_stack.  Update constructor call
2909         for dom_opt_dom_walker object.
2910         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
2911         it down to children as needed.
2912         (record_equivalences_from_incoming_edge): Likewise.
2913         (eliminate_redundant_computations): Likewise.
2914         (record_equivalences_from_stmt): Likewise.
2915         (simplify_stmt_for_jump_threading): Likewise.
2916         (record_temporary_equivalences): Likewise.
2917         (optimize_stmt): Likewise.
2918         (dom_opt_dom_walker::thread_across_edge): Update access to
2919         avail_exprs_stack object and pass it to children as needed.
2920         (dom_opt_dom_walker::before_dom_children): Similarly.
2921         (dom_opt_dom_walker::after_dom_children): Similarly.
2922         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
2923         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
2924         Add avail_expr_stack argument.  Pass it to children as needed.
2925         (dummy_simplify): Likewise.
2926         (simplify_control_stmt_condition): Likewise.
2927         (thread_around_empty_blocks): Likewise.
2928         (thread_through_normal_block): Likewise.
2929         (thread_across_edge): Likewise.
2930         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
2931         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
2933         PR tree-optimization/47679
2934         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
2935         it here ...
2936         (dom_opt_dom_walker): New private member holding the const_and_copies
2937         object.  Update constructor.
2938         (pass_dominator::execute): Corresponding changes to declaration
2939         and initialization of const_and_copies.  Update constructor call
2940         for the dom_opt_dom_walker object.
2941         (record_temporary_equivalences): Accept const_and_copies argument
2942         pass it down to children as needed.
2943         (record_equality): Likewise.
2944         (record_equivalences_from_incoming_edge): Likewise.
2945         (cprop_into_successor_phis, optimize_stmt): Likewise.
2946         (eliminate_redundant_computations): Likewise.
2947         (dom_opt_dom_walker::thread_across_edge): Update access to
2948         const_and_copies object and pass it to children as needed.
2949         (dom_opt_dom_walker::before_dom_children): Similarly.
2950         (dom_opt_dom_walker::after_dom_children): Similarly.
2952         PR tree-optimization/47679
2953         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
2954         it into the avail_exprs_stack class.
2955         (pass_dominator::execute): Corresponding changes to declaration
2956         and initialization of avail_exprs.  Pass avail_exprs to
2957         dump_dominator_optimization_stats.
2958         (record_cond): Extract avail_exprs from avail_exprs_stack.
2959         (lookup_avail_expr): Similarly.
2960         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
2961         position in file.
2962         (dump_dominator_optimization_stats): Make static and prototype.
2963         Add argument for the hash table to dump.
2964         (debug_dominator_optimization_stats): Remove.
2965         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
2966         prototype.
2967         (debug_dominator_optimization_stats): Similarly.
2968         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
2969         "void" in prototype for pop_to_marker method.  Add accessor method
2970         for the underlying avail_exprs table.
2972         * tree-ssa-threadedge.c: Remove trailing whitespace.
2974 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
2976         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
2977         unsigned.
2978         (pa_ldil_cint_p): Likewise.
2979         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
2980         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
2981         Update callers.
2982         * config/pa/pa.md: Likewise.
2984 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
2986         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
2987         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
2988         (diagnostic_show_locus): Likewise.
2989         (diagnostic_print_caret_line): Likewise.
2990         * diagnostic-show-locus.c: New file.
2992 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
2994         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
2995         "back" parameter. Declare label in #if block.
2997 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
2999         PR middle-end/67619
3000         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
3001         the address to a register.
3003 2015-09-18  Jeff Law  <law@redhat.com>
3005         PR tree-optimization/47679
3006         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
3007         * tree-ssa-dom.c: Remove unnecessary header includes.
3008         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
3009         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
3010         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
3011         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
3012         (pass_phi_only_cprop::execute): Likewise.
3013         (make_pass_phi_only_cprop): Likewise.
3014         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
3015         uses of file scoped statics by passing the required objects
3016         as parameters wherever needed.
3018 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
3019             David Edelsohn  <dje.gcc@gmail.com>
3021         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
3022         EH_FRAME_THROUGH_COLLECT2.
3023         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
3024         DW_EH_PE_datarel.
3025         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
3026         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
3027         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
3028         * except.c (switch_to_exception_section): Use a read-only section
3029         even if EH_FRAME_SECTION_NAME is undefined.
3030         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
3031         * collect2.c (write_c_file_stat): Provide dbase on AIX.
3032         (scan_prog_file): Don't export __dso_handle nor
3033         __gcc_unwind_dbase.
3034         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3035         (EH_TABLES_CAN_BE_READ_ONLY): Define.
3036         (ASM_OUTPUT_DWARF_PCREL): Define.
3037         (ASM_OUTPUT_DWARF_DATAREL): Define.
3038         (EH_FRAME_THROUGH_COLLECT2): Define.
3039         (EH_FRAME_IN_DATA_SECTION): Delete.
3040         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
3041         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
3042         Declare.
3043         (rs6000_asm_output_dwarf_datarel): Declare.
3044         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
3045         (rs6000_aix_asm_output_dwarf_datarel): New.
3046         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
3047         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
3048         (EH_FRAME_THROUGH_COLLECT2): Define.
3049         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
3050         (EH_FRAME_THROUGH_COLLECT2): Define.
3051         (EH_TABLES_CAN_BE_READ_ONLY): Define.
3052         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
3053         (EH_FRAME_THROUGH_COLLECT2): New.
3054         (ASM_OUTPUT_DWARF_DATAREL): New.
3055         * doc/tm.texi: Regenerate.
3057 2015-09-18  Richard Biener  <rguenther@suse.de>
3059         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
3060         we're in early phase.
3061         (schedule_generic_params_dies_gen): Likewise.
3062         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
3063         work as possible, retaining unhandled cases.
3064         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
3065         clear out generic_type_instances at the end.
3066         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
3067         (dwarf2out_early_finish): ... here.  Do most of
3068         gen_remaining_tmpl_value_param_die_attribute here.
3070 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
3072         PR tree-optimization/67283
3073         * tree-sra.c (type_consists_of_records_p): Rename to...
3074         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
3075         (completely_scalarize_record): Rename to...
3076         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
3077         (scalarize_elem): New.
3078         (analyze_all_variable_accesses): Follow renamings.
3080 2015-09-18  Richard Biener  <rguenther@suse.de>
3082         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
3083         in early-dwarf.
3085 2015-09-18  Richard Biener  <rguenther@suse.de>
3087         PR tree-optimization/66142
3088         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
3089         treat MEM[&x] and x the same.
3090         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
3091         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
3092         when we simplified sth.
3093         (vn_reference_maybe_forwprop_address): Likewise.
3094         (valueize_refs_1): When we simplified through
3095         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
3096         set valueized_anything to true.
3097         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
3098         one ref kills the other instead of just a offset-based test.
3099         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
3100         for the operand_equal_p test to compare bases and also compare
3101         sizes.
3103 2015-09-17  Christian Bruel  <christian.bruel@st.com>
3105         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
3107 2015-09-17  Richard Henderson  <rth@redhat.com>
3109         PR libstdc++/65913
3110         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
3111         pointers that encode the alignment of the object.
3113 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
3115         PR rtl-optimization/66790
3116         * df-problems.c (LIVE): Amend documentation.
3118 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
3120         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
3121         and optabs-tree.o.
3122         (GTFILES): Replace optabs.c with optabs-libfunc.c.
3123         * genopinit.c (main): Add an include guard to insn-opinit.h.
3124         Protect the rtx_code parts with NUM_RTX_CODE.
3125         * optabs.h: Split parts out to...
3126         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
3127         * optabs.c: Split parts out to...
3128         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
3129         * cilk-common.c: Include optabs-query.h rather than optabs.h.
3130         * fold-const.c: Likewise.
3131         * target-globals.c: Likewise.
3132         * tree-if-conv.c: Likewise.
3133         * tree-ssa-forwprop.c: Likewise.
3134         * tree-ssa-loop-prefetch.c: Likewise.
3135         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
3136         Remove unncessary include files.
3137         * tree-ssa-phiopt.c: Likewise.
3138         * tree-ssa-reassoc.c: Likewise.
3139         * tree-switch-conversion.c: Likewise.
3140         * tree-vect-data-refs.c: Likewise.
3141         * tree-vect-generic.c: Likewise.
3142         * tree-vect-loop.c: Likewise.
3143         * tree-vect-patterns.c: Likewise.
3144         * tree-vect-slp.c: Likewise.
3145         * tree-vect-stmts.c: Likewise.
3146         * tree-vrp.c: Likewise.
3147         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
3148         rather than optabs.h.
3149         * expr.c: Include optabs-tree.h.
3150         * function.c: Likewise.
3152 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
3154         PR middle-end/65958
3155         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
3156         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
3157         * config/arm/arm.c: Include common/common-target.h.
3158         (use_return_insn): Return 0 if the static chain register was saved
3159         above a non-APCS frame.
3160         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
3161         (struct scratch_reg): New.
3162         (get_scratch_register_on_entry): New function.
3163         (release_scratch_register_on_entry): Likewise.
3164         (arm_emit_probe_stack_range): Likewise.
3165         (output_probe_stack_range): Likewise.
3166         (arm_expand_prologue): Factor out code dealing with the IP register
3167         for nested function and adjust it for stack checking.
3168         Invoke arm_emit_probe_stack_range if static builtin stack checking
3169         is enabled.
3170         (thumb1_expand_prologue): Sorry out if static builtin stack checking
3171         is enabled.
3172         (arm_expand_epilogue): Add the saved static chain register, if any, to
3173         the amount of pre-pushed registers to pop.
3174         (arm_frame_pointer_required): Return true if static stack checking is
3175         enabled and we want to catch the exception with the EABI unwinder.
3176         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
3177         (UNSPEC_PROBE_STACK_RANGE): Likewise.
3178         * config/arm/arm.md (probe_stack): New insn.
3179         (probe_stack_range): Likewise.
3181 2015-09-17  Richard Biener  <rguenther@suse.de>
3183         * genmatch.c (parser::parse_expr): Improve error message
3184         for mis-placed flags.
3186 2015-09-17  Richard Biener  <rguenther@suse.de>
3188         * passes.c (rest_of_decl_compilation): Always call early_global_decl
3189         debug hook when we created a varpool node.
3190         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
3191         dwarf2out_early_global_decl, when not just add location or
3192         value attributes to existing DIEs.
3194 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
3196         * config/aarch64/aarch64.md (copysigndf3): New.
3197         (copysignsf3): Likewise.
3199 2015-09-17  David S. Miller  <davem@davemloft.net>
3201         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
3202         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
3203         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
3204         (HARD_REGNO_CALLER_SAVE_MODE): Define.
3205         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
3206         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
3207         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
3208         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
3209         provide when flag_pic.
3211 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
3213         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
3214         object_allocator change.
3216 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
3218         PR tree-optimization/66388
3219         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
3220         (dump_iv): Dump no_overflow information.
3221         (alloc_iv): Initialize new field for struct iv.
3222         (mark_bivs): Count number of no_overflow bivs.
3223         (find_deriving_biv_for_expr, record_biv_for_address_use): New
3224         functions.
3225         (idx_find_step): Call new functions above.
3226         (add_candidate_1, add_candidate): New paramter.
3227         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
3228         (get_computation_aff): Simplify convertion of cand for BIV.
3229         (get_computation_cost_at): Step cand's base if necessary.
3231 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
3233         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
3234         parameter.
3235         (tree_simplify_using_condition): Ditto.
3236         (simplify_using_initial_conditions): Ditto.
3237         (loop_exits_before_overflow): Pass new argument to function
3238         simplify_using_initial_conditions.  Remove case for type conversions
3239         simplification.
3240         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
3241         parameter.
3242         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
3243         in iv base using loop initial conditions.
3245 2015-09-16  Jeff Law  <law@redhat.com>
3247         PR tree-optimization/47679
3248         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
3249         (free_all_edge_infos): Use it.
3250         (allocate_edge_info): Free preexisting edge info data.
3251         (pass_dominator::execute): Set up initial edge info structures.
3252         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
3253         thread_across_edge.
3254         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
3255         If non-null, then push/pop markers appropriately.
3256         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
3257         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
3258         thread-across_edge.
3260 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
3262         * config/ft32/ft32.c: Fix the memory address space predicate.
3264 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
3266         PR target/67573
3267         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
3268         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
3270 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3272         * toplev.h (check_global_declaration): Remove declaration.
3273         * toplev.c (check_global_declaration): Move to ...
3274         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
3275         (analyze_functions): Update call.
3277 2015-09-16  David S. Miller  <davem@davemloft.net>
3279         * lra-constraints.c (simplify_operand_subreg): Do not assume that
3280         lowpart of a SUBREG has offset zero.
3282 2015-09-16  Jeff Law  <law@redhat.com>
3284         PR tree-optimization/47679
3285         * tree-ssa-dom.c (enum expr_kind): Moved from here to
3286         tree-ssa-scopedtables.h.
3287         (struct hashable_expr, class expr_hash_elt): Likewise.
3288         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
3289         Move associated methods into tree-ssa-scopedtables.c.
3290         (avail_expr_hash, initialize_expr_from_cond): Similarly.
3291         (hashable_expr_equal_p, add_expr_commutative): Likewise.
3292         (add_hashable_expr): Likewise.
3293         (record_cond): Delete element directly.
3294         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
3295         private copy ctor and assignment operator methods.
3296         (expr_elt_hasher): Inline trivial methods.
3297         (initialize_expr_from_cond): Prototype.
3298         * tree-ssa-scopedtables.c: Add necessary includes, functions and
3299         methods that were previously in tree-ssa-dom.c.  Improve various
3300         comments.
3302 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
3304         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
3306 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
3308         PR bootstrap/67587
3309         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
3310         fixup_partitions.
3312 2015-09-16  Richard Biener  <rguenther@suse.de>
3314         PR middle-end/67253
3315         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
3316         location of possibly shared trees.
3318 2015-09-16  Richard Biener  <rguenther@suse.de>
3320         PR middle-end/67271
3321         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
3323 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
3325         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
3326         offset and size computations instead of HOST_WIDE_INT.
3328 2015-09-16  Richard Biener  <rguenther@suse.de>
3330         PR middle-end/67442
3331         * fold-const.c (extract_muldiv_1): Properly extend multiplication
3332         result before builting a tree via wide_int_to_tree.
3334 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
3336         * Makefile.in: Add memory-block.cc
3337         (pool_allocator::initialize): Use fixed block size.
3338         (pool_allocator::release): Use memory_block_pool.
3339         (pool_allocator::allocate): Likewise.
3340         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
3341         object pools.
3342         * cfg.c (initialize_original_copy_tables): Likewise.
3343         * cselib.c (elt_list_pool, elt_loc_list_pool,
3344         cselib_val_pool): Likewise.
3345         * df-problems.c (df_chain_alloc): Likewise.
3346         * df-scan.c (df_scan_alloc): Likewise.
3347         * dse.c (cse_store_info_pool, rtx_store_info_pool,
3348         read_info_type_pool, insn_info_type_pool, bb_info_pool,
3349         group_info_pool, deferred_change_pool): Likewise.
3350         * et-forest.c (et_nodes, et_occurrences): Likewise.
3351         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
3352         ipcp_agg_lattice_pool): Likewise.
3353         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
3354         * ipa-profile.c (histogram_pool): Likewise.
3355         * ipa-prop.c (ipa_refdesc_pool): Likewise.
3356         * ira-build.c (live_range_pool, allocno_pool, object_pool,
3357         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
3358         * ira-color.c (update_cost_record_pool): Likewise.
3359         * lra-lives.c (lra_live_range_pool): Likewise.
3360         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
3361         * memory-block.cc: New file.
3362         * memory-block.h: New file.
3363         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
3364         * sched-deps.c (sched_deps_init): Likewise.
3365         * sel-sched-ir.c (sched_lists_pool): Likewise.
3366         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
3367         * tree-sra.c (access_pool): Likewise.
3368         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
3369         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
3370         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
3371         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
3372         * tree-ssa-strlen.c (strinfo_pool): Likewise.
3373         * tree-ssa-structalias.c (variable_info_pool): Likewise.
3374         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
3375         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
3377 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
3379         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
3380         definition.
3381         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
3382         call0 ABI.
3384 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
3386         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
3387         to pass TLS call argument, according to current ABI.
3388         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
3389         callx0 for TLS call, according to current ABI.
3391 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
3393         * tree-eh.c (lower_try_finally_dup_block): Clear location information
3394         on stack restore statements.
3395         (decide_copy_try_finally): Do not consider a stack restore statement as
3396         coming from sources.
3398 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
3400         * config/alpha/alpha.c (alpha_expand_block_clear): Use
3401         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
3403 2015-09-15  Jeff Law  <law@redhat.com>
3405         PR tree-optimization/47679
3406         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
3407         methods and private members.
3408         (avail_exprs_stack): Similarly.  Change type of global
3409         from a pair of expr_hash_elt_t to the new class.
3410         (expr_elt_hasher::hash): Corresponding changes.
3411         (expr_elt_hasher::equal): Similarly.
3412         (avail_expr_hash): Similarly.
3413         (pass_dominator::execute): Similarly.
3414         (dom_opt_dom_walker::thread_across_edge): Similarly.
3415         (record_cond): Similarly.
3416         (dom_opt_dom_walker::before_dom_children): Similarly.
3417         (dom_opt_dom_walker::after_dom_children): Similarly.
3418         (lookup_avail_expr): Likewise.
3419         (initialize_hash_element): Now a expr_hash_elt constructor.
3420         (initialize_hash_element_from_expr): Similarly.
3421         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
3422         (free_expr_hash_elt): Call dtor for the element.
3423         (remove_local_expressions_from_table): Now the "pop_to_marker"
3424         method in the available_exprs_stack class.
3425         (avail_expr_stack::record_expr): Method factored out.
3426         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
3427         Fix formatting.
3428         (hashable_expr_equal_p): Fix formatting.
3430 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
3432         * input.h (location_get_source_line): Drop "expanded_location"
3433         param in favor of a file and line number.
3434         * input.c (location_get_source_line): Likewise.
3435         (dump_location_info): Update for change in signature of
3436         location_get_source_line.
3437         * diagnostic.c (diagnostic_print_caret_line): Likewise.
3439 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
3441         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
3442         Bump to 4KB for SJLJ exceptions.
3443         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
3444         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
3445         * doc/tm.texi: Regenerate.
3447 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3449         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
3450         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
3451         Update prototype.
3453 2015-09-15  Richard Biener  <rguenther@suse.de>
3455         PR tree-optimization/67470
3456         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
3457         structure for PHI hoisting by inserting a forwarder block
3458         if appropriate.
3460 2015-09-15  Christian Bruel  <christian.bruel@st.com>
3462         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
3463         (arm_option_print): New function.
3465 2015-09-15  Christian Bruel  <christian.bruel@st.com>
3467         PR target/52144
3468         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
3469         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
3470         Remove flags parameter.
3471         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
3472         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
3473         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
3474         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
3475         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
3476         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
3477         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
3478         * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
3480 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
3482         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
3484         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
3485         AARCH64_VALID_SIMD_DREG_MODE.
3487 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
3489         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
3490         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
3491         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
3492         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
3493         aarch64_ld4_lane<mode>): Combine together, making...
3494         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
3495         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
3496         aarch64_st4_lane<mode>): Combine together, making...
3497         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
3498         * config/aarch64/iterators.md (nregs): Add comment.
3500 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
3502         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
3503         Change operand mode from <V_TWO_ELEM> to BLK.
3504         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
3505         (aarch64_vec_store_lanesoi_lane<mode): Likewise
3506         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
3507         (aarch64_ld2_lane<mode>): Likewise.
3508         (aarch64_st2_lane<VQ:mode>): Likewise.
3509         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
3511 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
3513         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
3514         Change operand mode from <V_FOUR_ELEM> to BLK.
3515         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
3516         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
3517         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
3518         (aarch64_ld4_lane<mode>): Likewise.
3519         (aarch64_st4_lane<mode>): Likewise.
3520         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
3522 2015-09-15  Richard Biener  <rguenther@suse.de>
3524         PR middle-end/67563
3525         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
3526         transfer EH info from old to new stmt.
3527         (replace_call_with_value): Likewise.
3528         (replace_call_with_call_and_fold): Likewise.
3529         (gimple_fold_builtin_memory_op): Likewise.
3530         (gimple_fold_builtin_memset): Likewise.
3531         (gimple_fold_builtin_stpcpy): Likewise.
3532         (gimple_fold_call): Likewise.
3534 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
3536         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
3537         comment.
3538         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
3539         (aarch64_simd_intEI_type_node): Likewise.
3540         (aarch64_simd_builtin_std_type): Remove EImode case.
3541         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
3542         * config/aarch64/aarch64-modes.def: Remove EImode.
3544 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
3546         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
3547         Change operand mode from <V_THREE_ELEM> to BLK.
3548         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
3549         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
3550         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
3551         (aarch64_ld3_lane<mode>): Likewise.
3552         (aarch64_st3_lane<mode>): Likewise.
3553         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
3555 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
3557         * config/aarch64/aarch64-simd.md
3558         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
3559         Change all TImode operands to BLKmode.
3560         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
3561         Change all EImode operands to BLKmode.
3562         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
3563         Change all OImode operands to BLKmode.
3565         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
3566         and call set_mem_size.
3567         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
3569         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
3571 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
3573         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
3574         to...
3575         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
3577         (vec_store_lanesci_lane<mode>): Rename to...
3578         (aarch64_vec_store_lanesci_lane<mode>): ...this.
3580         (vec_store_lanesxi_lane<mode>): Rename to...
3581         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
3583         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
3584         aarch64_st4_lane<mode>): Follow renaming.
3586 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3588         * config/s390/s390.c (s390_const_operand_ok): Add missing
3589         brackets.
3591 2015-09-15  Richard Biener  <rguenther@suse.de>
3593         PR lto/67568
3594         * lto-streamer.h (lto_location_cache::current_sysp): Properly
3595         initialize.
3596         * lto-streamer-out.c (clear_line_info): Likewise.
3598 2015-09-15  Richard Biener  <rguenther@suse.de>
3600         * doc/match-and-simplify.texi: Fix wording.
3602 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
3604         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
3605         unnecessary type conversion in op1.
3607 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
3609         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
3610         (dup_block_and_redirect): Delete function.
3611         (can_dup_for_shrink_wrapping): New function.
3612         (fix_fake_fallthrough_edge): New function.
3613         (try_shrink_wrapping): Rewrite function.
3614         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
3616 2015-09-14  Rich Felker  <dalias@libc.org>
3618         * configure.ac: Change target pattern for sh TLS support
3619         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
3620         * configure: Regenerate.
3622 2015-09-14  Jeff Law  <law@redhat.com>
3624         PR tree-optimization/47679
3625         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
3626         type rather than void *.
3628 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3630         PR fortran/67460
3631         * diagnostic.c (diagnostic_initialize): Do not set
3632         some_warnings_are_errors.
3633         (diagnostic_finish): Use DK_WERROR count instead.
3634         (diagnostic_report_diagnostic): Do not set
3635         some_warnings_are_errors.
3636         * diagnostic.h (struct diagnostic_context): Remove
3637         some_warnings_are_errors.
3639 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
3641         * config/sparc/predicates.md (const_all_ones_operand): Use
3642         CONSTM1_RTX to simplify definition.
3644 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
3646         PR target/67061
3647         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
3648         Handle call insns.
3650 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
3652         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
3653         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
3654         OPT_fshow_column to handled saved option cases.
3655         (append_compiler_options): Do not skip the above added options.
3657 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3659         PR target/63304
3660         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
3661         nopcrelative_literal_loads.
3662         (aarch64_classify_address): Likewise.
3663         (aarch64_constant_pool_reload_icode): Define.
3664         (aarch64_secondary_reload): Handle secondary reloads for
3665         literal pools.
3666         (aarch64_override_options): Handle nopcrelative_literal_loads.
3667         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
3668         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
3669         Define.
3670         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
3671         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
3672         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
3673         predicate.
3674         * doc/invoke.texi (mpc-relative-literal-loads): Document.
3676 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
3678         PR middle-end/67401
3679         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
3680         sync_compare_and_swap_optab libcall to target_oval.
3682 2015-09-14  Marek Polacek  <polacek@redhat.com>
3684         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
3685         value.
3686         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
3688 2015-09-11  Mark Wielaard  <mjw@redhat.com>
3690         PR c/28901
3691         * toplev.c (check_global_declaration): Check and use
3692         warn_unused_const_variable.
3693         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
3694         (-Wunused-variable): Remove non-constant. For C implies
3695         -Wunused-const-variable.
3696         (-Wunused-const-variable): New.
3698 2015-09-14  Richard Biener  <rguenther@suse.de>
3700         * doc/match-and-simplify.texi: Update for changed syntax
3701         of inner ifs and the new switch expression.
3703 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
3705         * config/i386/haswell.md: New file describing Haswell pipeline.
3706         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
3707         haswell-like processors.
3708         (ix86_reassociation_width): Increase reassociation width for 64-bit
3709         Haswell processor family.
3710         * config/i386/i386.md: Introduce haswell cpu and include new md file.
3712 2015-09-14  Richard Biener  <rguenther@suse.de>
3714         * doc/match-and-simplify.texi: Fixup some formatting issues
3715         and document the 's' flag.
3717 2015-09-13  Olivier Hainque  <hainque@adacore.com>
3718             Eric Botcazou  <ebotcazou@adacore.com>
3720         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
3721         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
3722         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
3723         (TARGET_CPU_gr5): Likewise.
3724         (TARGET_CPU_gr6): Likewise.
3725         (MULTILIB_DEFAULTS): Likewise.
3726         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
3727         for mcpu=gr5 and mcpu=gr6.
3728         (MULTILIB_DIRNAMES): Adjust accordingly.
3730 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3732         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
3733         (mem_ref_p): Likewise.
3734         (outermost_indep_loop): Adjust.
3735         (mem_ref_in_stmt): Likewise.
3736         (determine_max_movement): Likewise.
3737         (mem_ref_alloc): Likewise.
3738         (record_mem_ref_loc): Likewise.
3739         (set_ref_stored_in_loop): Likewise.
3740         (mark_ref_stored): Likewise.
3741         (gather_mem_refs_stmt): Likewise.
3742         (mem_refs_may_alias_p): Likewise.
3743         (for_all_locs_in_loop): Likewise.
3744         (struct rewrite_mem_ref_loc): Likewise.
3745         (rewrite_mem_refs): Likewise.
3746         (struct first_mem_ref_loc_1): Likewise.
3747         (first_mem_ref_loc): Likewise.
3748         (struct sm_set_flag_if_changed): Likewise.
3749         (execute_sm_if_changed_flag_set): Likewise.
3750         (execute_sm): Likewise.
3751         (hoist_memory_references):
3752         (struct ref_always_accessed): Likewise.
3753         (ref_always_accessed_p): Likewise.
3754         (refs_independent_p): Likewise.
3755         (record_dep_loop): Likewise.
3756         (ref_indep_loop_p_1): Likewise.
3757         (ref_indep_loop_p_2): Likewise.
3758         (ref_indep_loop_p): Likewise.
3759         (can_sm_ref_p): Likewise.
3760         (find_refs_for_sm): Likewise.
3761         (tree_ssa_lim_finalize): Likewise.
3763 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3765         * dwarf2out.c (dw_attr_ref): Remove typedef.
3766         (dw_line_info_ref): Likewise.
3767         (pubname_ref): Likewise.
3768         (dw_ranges_ref): Likewise.
3769         (dw_ranges_by_label_ref): Likewise.
3770         (comdat_type_node_ref): Likewise.
3771         (get_AT): Adjust.
3772         (get_AT_low_pc): Likewise.
3773         (get_AT_hi_pc): Likewise.
3774         (get_AT_string): Likewise.
3775         (get_AT_flag): Likewise.
3776         (get_AT_unsigned): Likewise.
3777         (get_AT_ref): Likewise.
3778         (get_AT_file): Likewise.
3779         (remove_AT): Likewise.
3780         (print_die): Likewise.
3781         (check_die): Likewise.
3782         (die_checksum): Likewise.
3783         (attr_checksum_ordered): Likewise.
3784         (struct checksum_attributes): Likewise.
3785         (collect_checksum_attributes): Likewise.
3786         (die_checksum_ordered): Likewise.
3787         (same_die_p): Likewise.
3788         (is_declaration_die): Likewise.
3789         (clone_die): Likewise.
3790         (clone_as_declaration): Likewise.
3791         (copy_declaration_context): Likewise.
3792         (break_out_comdat_types): Likewise.
3793         (copy_decls_walk): Likewise.
3794         (output_location_lists): Likewise.
3795         (external_ref_hasher::hash): Likewise.
3796         (optimize_external_refs_1): Likewise.
3797         (build_abbrev_table): Likewise.
3798         (size_of_die): Likewise.
3799         (unmark_all_dies): Likewise.
3800         (size_of_pubnames): Likewise.
3801         (output_die_abbrevs): Likewise.
3802         (output_die): Likewise.
3803         (output_pubnames): Likewise.
3804         (add_ranges_num): Likewise.
3805         (add_ranges_by_labels): Likewise.
3806         (add_high_low_attributes): Likewise.
3807         (gen_producer_string): Likewise.
3808         (dwarf2out_set_name): Likewise.
3809         (new_line_info_table): Likewise.
3810         (prune_unused_types_walk_attribs): Likewise.
3811         (prune_unused_types_update_strings): Likewise.
3812         (prune_unused_types): Likewise.
3813         (resolve_addr): Likewise.
3814         (optimize_location_lists_1): Likewise.
3815         (index_location_lists): Likewise.
3816         (dwarf2out_finish): Likewise.
3818 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3820         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
3822 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3824         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
3825         (dump_asserts_for): Adjust.
3826         (register_new_assert_for): Likewise.
3827         (process_assert_insertions): Likewise.
3828         (insert_range_assertions): Likewise.
3830 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3832         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
3833         and remove typedef.
3834         (new_temp_expr_table): Adjust.
3835         (free_temp_expr_table): Likewise.
3836         (version_to_be_replaced_p): Likewise.
3837         (make_dependent_on_partition): Likewise.
3838         (add_to_partition_kill_list): Likewise.
3839         (remove_from_partition_kill_list): Likewise.
3840         (add_dependence): Likewise.
3841         (finished_with_expr): Likewise.
3842         (process_replaceable): Likewise.
3843         (kill_expr): Likewise.
3844         (kill_virtual_exprs): Likewise.
3845         (mark_replaceable): Likewise.
3846         (find_replaceable_in_bb): Likewise.
3847         (find_replaceable_exprs): Likewise.
3848         (debug_ter): Likewise.
3850 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3852         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
3853         (struct btr_user): Rename from btr_user_s.
3854         (struct btr_def): Rename from btr_def_s.
3855         (find_btr_def_group): Adjust.
3856         (add_btr_def): Likewise.
3857         (new_btr_user): Likewise.
3858         (note_other_use_this_block): Likewise.
3859         (compute_defs_uses_and_gen): Likewise.
3860         (link_btr_uses): Likewise.
3861         (build_btr_def_use_webs): Likewise.
3862         (block_at_edge_of_live_range_p): Likewise.
3863         (btr_def_live_range): Likewise.
3864         (combine_btr_defs): Likewise.
3865         (move_btr_def): Likewise.
3866         (migrate_btr_def): Likewise.
3867         (migrate_btr_defs): Likewise.
3869 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3871         * var-tracking.c (shared_hash_def): Rename to shared_hash.
3872         (shared_hash): Remove typedef.
3873         (struct dataflow_set): Adjust.
3874         (shared_hash_unshare): Likewise.
3875         (dataflow_set_merge): Likewise.
3876         (vt_initialize): Likewise.
3877         (vt_finalize): Likewise.
3879 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3881         * var-tracking.c (struct location_chain): Rename from
3882         location_chain_def.
3883         (struct variable_part): Adjust.
3884         (variable_htab_free): Likewise.
3885         (unshare_variable): Likewise.
3886         (get_init_value): Likewise.
3887         (get_addr_from_local_cache): Likewise.
3888         (drop_overlapping_mem_locs): Likewise.
3889         (val_reset): Likewise.
3890         (struct variable_union_info): Likewise.
3891         (variable_union): Likewise.
3892         (find_loc_in_1pdv): Likewise.
3893         (insert_into_intersection): Likewise.
3894         (intersect_loc_chains): Likewise.
3895         (canonicalize_loc_order_check): Likewise.
3896         (canonicalize_values_mark): Likewise.
3897         (canonicalize_values_star): Likewise.
3898         (canonicalize_vars_star): Likewise.
3899         (variable_merge_over_cur): Likewise.
3900         (remove_duplicate_values): Likewise.
3901         (variable_post_merge_new_vals): Likewise.
3902         (variable_post_merge_perm_vals): Likewise.
3903         (find_mem_expr_in_1pdv): Likewise.
3904         (dataflow_set_preserve_mem_locs): Likewise.
3905         (dataflow_set_remove_mem_locs): Likewise.
3906         (variable_part_different_p): Likewise.
3907         (onepart_variable_different_p): Likewise.
3908         (find_src_set_src): Likewise.
3909         (dump_var): Likewise.
3910         (set_slot_part): Likewise.
3911         (clobber_slot_part): Likewise.
3912         (delete_slot_part): Likewise.
3913         (vt_expand_var_loc_chain): Likewise.
3914         (emit_note_insn_var_location): Likewise.
3915         (vt_finalize): Likewise.
3917 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3919         * dse.c (store_info_t): Remove typedef.
3920         (group_info_t): Likewise.
3921         (const_group_info_t): Likewise.
3922         (deferred_change_t): Likewise.
3923         (get_group_info): Adjust.
3924         (free_store_info): Likewise.
3925         (canon_address): Likewise.
3926         (clear_rhs_from_active_local_stores): Likewise.
3927         (record_store): Likewise.
3928         (replace_read): Likewise.
3929         (check_mem_read_rtx): Likewise.
3930         (scan_insn): Likewise.
3931         (remove_useless_values): Likewise.
3932         (dse_step1): Likewise.
3933         (dse_step2_init): Likewise.
3934         (dse_step2_nospill): Likewise.
3935         (scan_stores_nospill): Likewise.
3936         (scan_reads_nospill): Likewise.
3937         (dse_step3_exit_block_scan): Likewise.
3938         (dse_step3): Likewise.
3939         (dse_step5_nospill): Likewise.
3940         (dse_step6): Likewise.
3942 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3944         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
3945         (alias_set_entry): Remove typedef.
3946         (alias_set_subset_of): Adjust.
3947         (alias_sets_conflict_p): Likewise.
3948         (init_alias_set_entry): Likewise.
3949         (get_alias_set): Likewise.
3950         (new_alias_set): Likewise.
3951         (record_alias_subset): Likewise.
3953 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
3955         * doc/install.texi (Downloading the source): Mark up
3956         contrib/download_prerequisites properly and drop leading "./".
3958 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3960         * config/arc/arc.h: Remove define of STRUCT_VALUE.
3961         * config/lm32/lm32.h: Likewise.
3962         * config/mep/mep.h: Likewise.
3963         * config/visium/visium.h: Likewise.
3964         * system.h: Poison STRUCT_VALUE macro.
3966 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
3968         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
3969         CONSTANT_P operands.
3971 2015-09-11  David S. Miller  <davem@davemloft.net>
3973         * config/sparc/constraints.md: Make "U" constraint a real register
3974         constraint.
3975         * config/sparc/sparc.c (TARGET_LRA_P): Define.
3976         (D_MODES, DF_MODES): Add missing cast.
3977         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
3978         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
3979         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
3980         cost to 8.
3981         * config/sparc/sparc.h (PROMOTE_MODE): Define.
3982         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
3983         provide these insn when flag_pic.
3985 2015-09-11  Jeff Law  <law@redhat.com>
3987         PR tree-optimization/47679
3988         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
3989         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
3990         member with m_.  Update inline member functions as necessary.  Add
3991         toplevel comment.
3992         * tree-ssa-scopedtables.c: Update const_and_copies's member
3993         functions to use m_ prefix to access the stack.
3995 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
3997         * graphite-optimize-isl.c (disable_tiling): Remove.
3998         (get_schedule_for_band): Do not use disable_tiling.
3999         (get_prevector_map): Delete function.
4000         (enable_polly_vector): Remove.
4001         (get_schedule_for_band_list): Remove dead code.
4003 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
4005         * graphite-optimize-isl.c (get_tile_map): Refactor.
4006         (get_schedule_for_band): Same.
4007         (getScheduleForBand): Same.
4008         (get_prevector_map): Same.
4009         (get_schedule_for_band_list): Same.
4010         (get_schedule_map): Same.
4011         (get_single_map): Same.
4012         (apply_schedule_map_to_scop): Same.
4013         (optimize_isl): Same.
4015 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4017         PR target/63304
4018         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
4019         (movtf): Delete.
4020         * config/aarch64/iterators.md (GPF_TF_F16): New.
4021         (GPF_F16): Delete.
4023 2015-09-10  Nathan Sidwell  <nathan@acm.org>
4025         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
4026         (nvptx_reorg): Adjust comments.
4028 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
4030         PR bootstrap/67363
4031         * configure.ac: Check if setenv and unsetenv are declared.
4032         * configure: Rebuild.
4033         * config.in: Rebuild.
4034         * system.h: Declare setenv and unsetenv if not declared.
4036 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4038         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
4039         commentary to simplify permute mask adjustment equation.
4040         (special_handling_values): Add SH_VPERM.
4041         (const_load_sequence_p): New function.
4042         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
4043         the mask loaded from the constant pool.
4044         (adjust_vperm): New function.
4045         (handle_special_swappables): Call adjust_vperm.
4046         (dump_swap_insn_table): Handle SH_VPERM.
4048 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
4050         * shrink-wrap.c (requires_stack_frame_p): Remove static.
4051         * shrink-wrap.h (requires_stack_frame_p): Put back.
4053 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
4055         * reload1.c (elimination_costs_in_insn): Locally turn
4056         -Wmaybe-uninitialized into a warning.
4058 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
4060         * shrink-wrap.c (requires_stack_frame_p): Make static.
4061         (prepare_shrink_wrap): Likewise.
4062         (dup_block_and_redirect): Likewise.
4063         * shrink-wrap.h: Remove declarations of those functions.
4065 2015-09-10  Mark Wielaard  <mjw@redhat.com>
4067         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
4069 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
4071         PR target/67506
4072         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
4073         missing simplify_gen_subreg.
4075 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4077         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
4078         the vector element is bigger than 64 bit.
4080 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4082         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
4083         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
4085 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4087         * config/s390/s390.c: Add V1TImode to constant pool modes.
4089 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4091         PR target/67439
4092         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
4093         predicate.  Set predicable_short_it attr to "no".
4095 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
4097         PR rtl-optimization/67421
4098         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
4099         left wide shift tranformation.
4101 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
4103         * common/config/arc/arc-common.c: Remove references to A5.
4104         * config/arc/arc-opts.h: Likewise.
4105         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
4106         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
4107         * config/arc/t-arc-newlib: Likewise.
4109 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
4111         * config/arc/arc.md (length): Fix attribute length for conditional
4112         executed instructions with long immediate.
4114 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4116         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
4117         type for second alternative.
4119 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
4121         * doc/invoke.texi (Downloading GCC): Mention
4122         contrib/download_prerequisites script.
4124 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
4126         PR c++/67523
4127         * gimplify.c (gimplify_omp_for): If inner stmt is not found
4128         for combined loop, assert seen_error () and return GS_ERROR.
4130         PR middle-end/67521
4131         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
4132         if decl is already in outer->variables.
4134         PR middle-end/67517
4135         * gimplify.c (gimplify_scan_omp_clauses): Instead of
4136         asserting that decl is not specified in octx->variables,
4137         break out of the loop if it is.
4139         PR c++/67514
4140         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
4141         iterator is not explicitly determined, but is defined inside
4142         of the combined workshare region, handle it like if it has
4143         DECL_EXPR in OMP_FOR_PRE_BODY.
4145 2015-09-09  Nathan Sidwell  <nathan@acm.org>
4147         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
4148         (*cmp<mode>): Add assembler spacing.
4149         (setcc_int<mode>, set_cc_float<mode>): Likewise.
4150         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
4151         level.
4152         (write_func_decl_from_insn): Refactor argument loops & comma emission.
4153         (nvptx_expand_call): Likewise.
4154         (nvptx_output_call_insn): Likewise.
4155         (nvptx_reorg_subreg): Add spacing.
4157 2015-09-09  Marek Polacek  <polacek@redhat.com>
4159         PR middle-end/67512
4160         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
4161         for comparisons.
4163 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
4165         PR c++/53184
4166         * doc/invoke.texi ([Wsubobject-linkage]): Document.
4168 2015-09-09  Tom de Vries  <tom@codesourcery.com>
4170         * params-list.h: Add missing copyright notice.
4172 2015-09-09  Nathan Sidwell  <nathan@acm.org>
4174         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
4175         sel_truesi, not andsi.
4177 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4179         * config/arm/arm.md (*subsi3_compare0): Rename to...
4180         (subsi3_compare0): ... This.
4181         (modsi3): New define_expand.
4182         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
4183         when operand is power of 2.
4185 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4187         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
4188         (*neg<mode>2_compare0): Rename to...
4189         (neg<mode>2_compare0): ... This.
4190         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
4191         Move check for speed inside the if-then-elses.  Reflect
4192         CSNEG sequence in MOD by power of 2 case.
4194 2015-09-09  Alan Modra  <amodra@gmail.com>
4196         PR target/67378
4197         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
4198         reload replacement for PRE_MODIFY address reg.
4200 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
4202         PR tree-optimization/53852
4203         * config.in: Regenerate.
4204         * configure: Regenerate.
4205         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
4206         * graphite-optimize-isl.c (optimize_isl): Stop computation when
4207         PARAM_MAX_ISL_OPERATIONS is reached.
4208         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
4209         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
4210         result equal to isl_stat_ok as the status now can be isl_error_quota.
4211         (subtract_commutative_associative_deps): Same.
4212         (compute_deps): Same.
4214 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
4215             Sebastian Pop  <s.pop@samsung.com>
4217         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
4218         Return the parameter if it was saved in corresponding
4219         parameter_rename_map of the region.
4220         (copy_def): Copy def from sese region to the newly created region.
4221         (copy_internal_parameters): Copy all the internal parameters defined
4222         within a region to the newly created region.
4223         (graphite_regenerate_ast_isl): Copy parameters to the new region before
4224         translating isl to gimple.
4225         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
4226         the loop-nest does not have any data-references.
4227         (build_graphite_scops): Create a scop only when there is at least one
4228         loop inside it.
4229         (contains_only_close_phi_nodes): Deleted.
4230         (print_graphite_scop_statistics): Deleted
4231         (print_graphite_statistics): Deleted
4232         (limit_scops): Deleted.
4233         (build_scops): Removed call to limit_scops.
4234         * sese.c (new_sese): Construct.
4235         (free_sese): Destruct.
4236         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
4237         added.
4238         (set_rename): Pass sese region so that parameters inside the region can
4239         be added to its parameter_rename_map.
4240         (rename_uses): Pass sese region.
4241         (graphite_copy_stmts_from_block): Do not copy parameters that have been
4242         generated in the header of the scop. For each SSA_NAME in the
4243         parameter_rename_map rename its usage.
4244         (invariant_in_sese_p_rec): Return false if tree t is defined outside
4245         sese region.
4246         (scalar_evolution_in_region): If the tree t is invariant just return t.
4247         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
4248         struct sese to keep track of all the parameters which need renaming.
4249         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
4250         any data-refs.
4251         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
4253 2015-09-08  Tom de Vries  <tom@codesourcery.com>
4255         * Makefile.in (generated_files): Add params.list.
4256         (params.list, s-params.list): Add rule.
4257         * params.h (enum compiler_param): Include params-list.h.  Move define
4258         DEFPARAM, include params.def and undef DEFPARAM ...
4259         * params-list.h: ... here.  New file.
4261 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
4263         * pretty-print.h (printer_fn): Fix typo in comment.
4265 2015-09-07  Jeff Law  <law@redhat.com>
4267         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
4269 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4271         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
4272         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
4273         (arm_neon_fp16_hw): New.
4275 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4277         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
4278         UNITS_PER_WORD >= 4.
4280 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4282         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
4283         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
4284         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
4285         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
4286         (aarch64_float_extend_lo_v2df): Rename to...
4287         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
4289         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
4290         (float_extend_lo): Add v4sf.
4292         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
4293         * config/aarch64/iterators.md (VQ_HSF): New iterator.
4294         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
4295         (Vwide): New mode_attr.
4297 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4299         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
4300         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
4301         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
4302         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
4303         V4HF and V8HF variants to iterator.
4305         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
4307         * config/aarch64/iterators.md (VDQF_F16): New.
4308         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
4310 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4312         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
4313         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
4314         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
4315         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
4316         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
4317         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
4318         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
4319         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
4320         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
4321         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
4322         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
4323         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
4324         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
4325         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
4326         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
4327         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
4328         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
4329         vld1q_dup_f16): New.
4331 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4333         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
4334         Reparameterize to...
4335         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
4336         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
4337         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
4339         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
4340         v8hf variant.
4341         (float_truncate_lo_): Use BUILTIN_VDF iterator.
4343         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
4345         * config/aarch64/iterators.md (VDF, Vdtype): New.
4346         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
4348 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4350         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
4351         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
4352         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
4353         Add __builtin_aarch64_simd_hf.
4354         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
4355         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
4356         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
4357         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
4358         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
4359         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
4360         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
4361         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
4362         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
4364         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
4365         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
4366         (VDC, Vdbl): Add V4HF.
4368 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4370         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
4371         V4HFmode and V8HFmode.
4372         (aarch64_split_simd_move): Add case for V8HFmode.
4373         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
4374         (aarch64_simd_builtin_std_type): Handle HFmode.
4375         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
4377         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
4378         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
4379         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
4381         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
4382         Float16x8_t.
4384         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
4385         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
4386         New typedefs.
4387         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
4388         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
4389         vst1q_lane_f16): New.
4390         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
4391         (VALLDI_F16, VALL_F16): New.
4392         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
4393         Add cases for V4HF and V8HF.
4394         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
4396 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4398         * config/arm/arm-builtins.c (VAR11, VAR12): New.
4399         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
4400         vld4_dup): Add v4hf variant.
4401         (vget_high, vget_low): Add v8hf variant.
4402         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
4403         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
4404         v4hf and v8hf variants.
4406         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
4407         (VDX): Add V4HF.
4408         (V_DOUBLE): Add case for V4HF.
4409         (VQX): Add V8HF.
4410         (V_HALF): Add case for V8HF.
4411         (VDQX): Add V4HF, V8HF.
4412         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
4413         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
4415         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
4416         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
4417         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
4418         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
4419         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
4420         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
4421         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
4422         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
4423         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
4425         (neon_vcreate, neon_vreinterpretv8qi<mode>,
4426         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
4427         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
4428         Change VDX to VD_RE.
4430         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
4431         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
4432         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
4434         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
4435         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
4436         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
4437         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
4438         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
4439         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
4440         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
4441         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
4442         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
4444 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4446         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
4447         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
4448         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
4449         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
4450         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
4451         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
4452         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
4453         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
4454         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
4455         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
4456         New.
4458 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4460         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
4462         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
4464         * config/arm/arm-builtins.c (v8hf_UP): New.
4465         (arm_init_simd_builtin_types): Initialise Float16x8_t.
4467         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
4469         * config/arm/arm_neon.h (float16x8_t): New typedef.
4471 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4473         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
4474         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
4475         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
4476         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
4477         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
4478         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
4479         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
4480         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
4481         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
4482         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
4484 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
4486         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
4487         non-alphanumeric characters in the symbol name.
4489 2015-09-07  Marek Polacek  <polacek@redhat.com>
4491         PR inline-asm/67448
4492         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
4493         a memory input.
4495 2015-09-07  Marek Polacek  <polacek@redhat.com>
4497         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
4499 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
4501         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
4502         not warn.
4504 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
4506         PR middle-end/67452
4507         * tree-ssa-live.c: Include cfgloop.h.
4508         (remove_unused_locals): Clear loop->simduid if simduid is about
4509         to be removed from cfun->local_decls.
4511 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
4513         PR target/65210
4514         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
4515         attribute as well.
4517 2015-09-04  Tom de Vries  <tom@codesourcery.com>
4519         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
4521 2015-09-04  Jeff Law  <law@redhat.com>
4523         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
4524         unnecessary constructor.  It's now trivial and implemented inside...
4525         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
4526         constructor.  Add comments to various methods.  Remove unused
4527         private fields.
4528         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
4529         * tree-vrp.c (identify_jump_threads): Likewise.
4530         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
4531         indentation issues.
4532         (thread_across_edge): Similarly.
4533         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
4534         arguments in constructor call.
4536 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
4538         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
4539         temp path contains a '-'.
4541 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
4542             Petr Murzin  <petr.murzin@intel.com>
4543             Kirill Yukhin  <kirill.yukhin@intel.com>
4545         * config/i386/i386-builtin-types.def
4546         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
4547         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
4548         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
4549         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
4550         * config/i386/i386.c
4551         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
4552         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
4553         IX86_BUILTIN_SCATTERALTDIV16SI.
4554         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
4555         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
4556         __builtin_ia32_scatteraltdiv8si.
4557         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
4558         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
4559         IX86_BUILTIN_SCATTERALTDIV16SI.
4560         (ix86_vectorize_builtin_scatter): New.
4561         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
4562         ix86_vectorize_builtin_scatter.
4564 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
4565             Petr Murzin  <petr.murzin@intel.com>
4566             Kirill Yukhin  <kirill.yukhin@intel.com>
4568         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
4569         * doc/tm.texi: Regenerate.
4570         * target.def: Add scatter builtin.
4571         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
4572         for loads/stores in case of gather/scatter accordingly.
4573         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
4574         STMT_VINFO_GATHER_P(S).
4575         (vect_check_gather): Rename to ...
4576         (vect_check_gather_scatter): this.
4577         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
4578         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
4579         (vect_check_gather_scatter): Use it instead of vect_check_gather.
4580         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
4581         variable and new checkings for it accordingly.
4582         * tree-vect-stmts.c
4583         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
4584         STMT_VINFO_GATHER_P(S).
4585         (vect_check_gather_scatter): Use it instead of vect_check_gather.
4586         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
4588 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
4590         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
4591         define_insn.
4592         (mulv16qi3): New define_expand.
4594 2015-09-03  Martin Sebor  <msebor@redhat.com>
4596         PR c/66516
4597         * doc/extend.texi (Other Builtins): Document when the address
4598         of a built-in function can be taken.
4600 2015-09-03  Richard Biener  <rguenther@suse.de>
4602         * dwarf2out.c (flush_limbo_die_list): Split out from ...
4603         (dwarf2out_early_finish): ... here.
4604         (dwarf2out_finish): Do not call dwarf2out_early_finish but
4605         flush_limbo_die_list.  Assert we have no deferred asm names.
4607 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4609         * optabs.c (expand_binop): Don't create a broadcast vector with a
4610         source element wider than the inner mode.
4612 2015-09-03  Richard Biener  <rguenther@suse.de>
4614         * varasm.c (output_constant): Use fold_convert instead of
4615         wide_int_to_tree.
4617 2015-09-03  Tom de Vries  <tom@codesourcery.com>
4619         PR tree-optimization/65637
4620         * omp-low.c (expand_omp_for_static_chunk): Handle case that
4621         fin_bb has 2 predecessors.
4623 2015-09-03  Tom de Vries  <tom@codesourcery.com>
4625         PR tree-optimization/65637
4626         * omp-low.c (find_phi_with_arg_on_edge): New function.
4627         (expand_omp_for_static_chunk): Fix inner loop phi.
4629 2015-09-03  Tom de Vries  <tom@codesourcery.com>
4631         PR tree-optimization/65637
4632         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
4633         that head is NULL.
4635 2015-09-03  Tom de Vries  <tom@codesourcery.com>
4637         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
4639 2015-09-03  Tom de Vries  <tom@codesourcery.com>
4641         * doc/invoke.texi (parloops-chunk-size): Add item.
4642         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
4643         * tree-parloops.c: Include params.h.
4644         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
4645         param parloops-chunk-size is used.
4647 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4649         PR middle-end/67351
4650         * fold-const.c (fold_binary_loc) : Move
4651         Transform (x >> c) << c into x & (-1<<c) or
4652         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
4653         types using simplify and match.
4654         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
4655         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
4657 2015-09-03  Richard Biener  <rguenther@suse.de>
4659         PR ipa/66705
4660         * tree-ssa-structalias.c (ctor_for_analysis): New function.
4661         (create_variable_info_for_1): Use ctor_for_analysis instead
4662         of get_constructor.
4663         (create_variable_info_for): Likewise.
4665 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
4667         PR ipa/67280
4668         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
4669         in new callgraph edge.
4671 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
4673         PR target/59810
4674         PR target/63652
4675         PR target/63653
4676         * config/aarch64/aarch64-simd.md
4677         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
4678         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
4679         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
4680         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
4682 2015-09-02  Alan Modra  <amodra@gmail.com>
4684         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
4685         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
4686         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
4688 2015-09-02  Alan Modra  <amodra@gmail.com>
4690         PR target/67417
4691         * config/rs6000/predicates.md (current_file_function_operand): Don't
4692         return true for weak symbols.
4693         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
4695 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
4696             Andrew Bennett  <andrew.bennett@imgtec.com>
4698         * config/mips/mips-opts.h (mips_cb_setting): New enum.
4699         * config/mips/mips-protos.h: Add definitions for
4700         mips_output_jump and mips_output_equal_conditional_branch
4701         * gcc/config/mips/mips.c (MIPS_JR): Change to support the
4702         JIC instruction.
4703         (mips_emit_compare): Add support for the MIPS R6 conditional
4704         compact branches.
4705         (mips_process_sync_loop): Likewise.
4706         (mips_output_order_conditional_branch): Likewise.
4707         (mips16_build_call_stub): Change MIPS_CALL to
4708         mips_output_jump.
4709         (mips_print_operand_punctuation): Update 's' case to only
4710         apply to micromips r2.
4711         (mips_adjust_insn_length): Add support for forbidden slot
4712         hazards.
4713         (mips_avoid_hazard): Likewise.
4714         (mips_reorg_process_insns): Likewise.
4715         (mips_output_jump): New function.
4716         (mips_output_equal_conditional_branch): Likewise.
4717         (mips_output_conditional_branch): Use jrc/bc if compact
4718         branch support is enabled.  Ensure the forbidden slots
4719         between the two branch instructions is filled with a nop.
4720         (mips_option_override): Add support to process the compact
4721         branch option and set the correct defaults.  Prevent
4722         non-explict relocs being using for MIPS R6.
4723         (mips_trampoline_init): Add compact branch support.
4724         (mips_mult_zero_zero_cost): Allow zero initialisation of
4725         accumulators with TARGET_DSP.
4726         * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
4727         (TARGET_CB_MAYBE): New define.
4728         (TARGET_CB_ALWAYS): New define.
4729         (ISA_HAS_DELAY_SLOTS): New define.
4730         (ISA_HAS_COMPACT_BRANCHES): New define.
4731         (ISA_HAS_JRC): New define.
4732         (MIPS_BRANCH_C): New define.
4733         (MIPS_CALL): Removed.
4734         (MICROMIPS_J): Removed.
4735         * config/mips/mips.md (compact_form): New attr.
4736         (hazard): Add support for forbidden slots.
4737         (define_delay): Add support for compact branches.
4738         (*branch_order<mode>): Likewise.
4739         (*branch_order<mode>_inverted): Likewise.
4740         (*branch_equality<mode>): Likewise.
4741         (*branch_equality<mode>_inverted): Likewise.
4742         (*jump_absolute): Likewise.
4743         (*jump_pic): Likewise.
4744         (indirect_jump): Use mips_output_jump to produce assembly output.
4745         (tablejump_<mode>"): Likewise.
4746         (*<optab>"): Likewise.
4747         (<optab>_internal): Likewise.
4748         (sibcall_internal): Likewise.
4749         (sibcall_value_internal): Likewise.
4750         (sibcall_value_multiple_internal): Likewise.
4751         (call_internal): Likewise.
4752         (call_split): Likewise.
4753         (call_internal_direct): Likewise.
4754         (call_direct_split): Likewise.
4755         (call_value_internal): Likewise.
4756         (call_value_split): Likewise.
4757         (call_value_internal_direct): Likewise.
4758         (call_value_direct_split): Likewise.
4759         (call_value_multiple_internal): Likewise.
4760         (call_value_multiple_split): Likewise.
4761         (mips_get_fcsr_mips16_<mode>): Likewise.
4762         (mips_set_fcsr_mips16_<mode>): Likewise.
4763         (tls_get_tp_mips16_<mode>): Likewise.
4764         * config/mips/mips.opt: Add -mcompact-branches option.
4765         * config/mips/predicates.md (order_operator): Ensure the
4766         conditional compact branches are only used if the ISA them.
4767         * doc/invoke.texi: Document -mcompact-branches option.
4769 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
4771         PR target/61578
4772         * lra-lives.c (process_bb_lives): Process move pseudos with the
4773         same value for copies and preferences
4774         * lra-constraints.c (match_reload): Create match reload pseudo
4775         with the same value from single dying input pseudo.
4777 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
4779         PR target/67405
4780         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
4782 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
4784         * trans-mem.c: Add contributed-by.
4785         * trans-mem.h: Same.
4787 2015-09-01  Richard Biener  <rguenther@suse.de>
4789         * expr.c (expand_expr_real_1): For expanding TERed defs
4790         set the current location to that of the def if not UNKNOWN.
4792 2015-09-01  David Sherwood  <david.sherwood@arm.com>
4794         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
4796 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4798         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
4799         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
4800         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
4801         Include rtl-iter.h.
4802         (noce_simple_bbs): New function.
4803         (noce_try_move): Bail if basic blocks are not simple.
4804         (noce_try_store_flag): Likewise.
4805         (noce_try_store_flag_constants): Likewise.
4806         (noce_try_addcc): Likewise.
4807         (noce_try_store_flag_mask): Likewise.
4808         (noce_try_cmove): Likewise.
4809         (noce_try_minmax): Likewise.
4810         (noce_try_abs): Likewise.
4811         (noce_try_sign_mask): Likewise.
4812         (noce_try_bitop): Likewise.
4813         (bbs_ok_for_cmove_arith): New function.
4814         (noce_emit_all_but_last): Likewise.
4815         (noce_emit_insn): Likewise.
4816         (noce_emit_bb): Likewise.
4817         (noce_try_cmove_arith): Handle non-simple basic blocks.
4818         (insn_valid_noce_process_p): New function.
4819         (contains_mem_rtx_p): Likewise.
4820         (bb_valid_for_noce_process_p): Likewise.
4821         (noce_process_if_block): Allow non-simple basic blocks
4822         where appropriate.
4824 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
4826         * tree-ssa-dom.c (record_equivalences_from_phis,
4827         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
4828         (lookup_avail_expr): Likewise, and remove comment and unused temp.
4830 2015-09-01  Nick Clifton  <nickc@redhat.com>
4832         * config/msp430/msp430.opt (mcpu): Fix typo.
4834 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4836         * config/aarch64/aarch64.c (aarch64_set_current_function):
4837         Re-layout any vector parameters have non-simd layout.
4838         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
4839         Delete.
4840         (aarch64_simd_expand_args): Delete call to the above.
4842 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
4844         * doc/invoke.texi (asan-stack): Add space before option.
4846 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
4848         * tree.h (zerop): New function.
4849         * tree.c (zerop): Likewise.
4850         (element_precision): Handle expressions.
4851         * match.pd (define_predicates): Add zerop.
4852         (x <= +Inf): Fix comment.
4853         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
4854         * fold-const.c (fold_binary_loc): ... here. Remove.
4856 2015-08-31  Richard Biener  <rguenther@suse.de>
4858         PR middle-end/67381
4859         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
4861 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
4863         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
4864         (CEXPI): New operator list.
4865         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
4866         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
4867         Converted from ...
4868         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
4870 2015-08-31  Tom de Vries  <tom@codesourcery.com>
4872         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
4873         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
4874         parameter.
4875         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
4876         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
4877         (rewrite_into_loop_closed_ssa): ... here.
4878         (replace_uses_in_dominated_bbs): Remove function.
4879         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
4880         rewrite_into_loop_closed_ssa_1.
4882 2015-08-31  Michael Matz  <matz@suse.de>
4884         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
4885         enter entry and exit blocks for reverse post order.
4887 2015-08-31  Richard Biener  <rguenther@suse.de>
4889         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
4890         (lto_location_cache::current_sysp): Likewise.
4891         (output_block::current_sysp): Likewise.
4892         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
4893         (lto_location_cache::apply_location_cache): Properly record
4894         system header locations.
4895         (lto_location_cache::input_location): Input whether a file
4896         is a system header.
4897         * lto-streamer-out.c (lto_output_location): Stream whether a file
4898         is a system header.
4900 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4902         PR bootstrap/67363
4903         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
4905 2015-08-31  Tom de Vries  <tom@codesourcery.com>
4907         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
4908         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
4909         Improve function header comments.
4911 2015-08-30  Michael Collison  <michael.collison@linaro.org>
4913         PR other/67320
4914         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
4915         standard names
4917 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4919         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
4920         special_handling bitfield.
4921         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
4922         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
4923         that represents a general xxpermdi.
4924         (insn_is_swappable_p): Add handling for vec_concat of two
4925         doublewords, which maps to a specific xxpermdi.
4926         (adjust_xxpermdi): New function.
4927         (adjust_concat): Likewise.
4928         (handle_special_swappables): Call adjust_xxpermdi and
4929         adjust_concat.
4930         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
4932 2015-08-30  Rich Felker <dalias@libc.org>
4934         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
4935         case instead of sh[123456ble]-*-*.
4937 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
4939         * ira.c (print_unform_and_important_classes,
4940         print_translated_classes): Remove reg_class_names static array.
4941         (print_unform_and_important_classes): Rename to ...
4942         (print_uniform_and_important_classes): ... this.
4943         (ira_debug_allocno_classes): Update accordingly.
4945 2015-08-29  Tom de Vries  <tom@codesourcery.com>
4947         PR tree-optimization/46193
4948         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
4949         clause.
4951 2015-08-28  Jeff Law  <law@redhat.com>
4953         PR lto/66752
4954         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
4955         unable to find X NE 0 in the tables, return X as the simplified
4956         condition.
4957         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
4958         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
4959         to VISISTED_BBS.
4960         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
4961         after removing the control flow statement and unnecessary edges.
4963 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
4965         Revert:
4966         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
4968         PR tree-optimization/67283
4969         * tree-sra.c (type_consists_of_records_p): Rename to...
4970         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
4972         (completely_scalarize_record): Rename to...
4973         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
4974         code to:
4975         (scalarize_elem): New.
4977 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
4979         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
4980         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
4981         (aarch64_symbol_type): Likewise.
4982         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
4983         Likewise.
4984         (aarch64_expand_mov_immediate): Likewise.
4985         (aarch64_print_operand): Likewise.
4986         (aarch64_classify_tls_symbol): Likewise.
4988 2015-08-28  Richard Biener  <rguenther@suse.de>
4990         * cgraphunit.c (symbol_table::compile): Move early debug generation
4991         and finish...
4992         (symbol_table::finalize_compilation_unit): ... back here and
4993         add a !seen_error () guard.
4995 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
4997         * toplev.c (process_options): Do not use flag_loop_block,
4998         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
4999         flag_loop_optimize_isl.
5001 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
5003         * Makefile.in (OBJS): Remove graphite-blocking.o and
5004         graphite-interchange.o.
5005         * common.opt (floop-strip-mine, floop-interchange, floop-block):
5006         Alias of floop-nest-optimize.
5007         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
5008         Document as alias of -floop-nest-optimize.
5009         * graphite-blocking.c: Remove.
5010         * graphite-interchange.c: Remove.
5011         * graphite-optimize-isl.c: Include dumpfile.h.
5012         (getScheduleForBand): Add dump for tiled loops.  Use
5013         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
5014         * graphite-poly.c (scop_max_loop_depth): Remove.
5015         (print_scattering_function_1): Remove.
5016         (print_scattering_function): Remove.
5017         (print_scattering_functions): Remove.
5018         (debug_scattering_function): Remove.
5019         (debug_scattering_functions): Remove.
5020         (apply_poly_transforms): Remove use of flag_loop_block,
5021         flag_loop_strip_mine, and flag_loop_interchange.
5022         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
5023         PBB_ORIGINAL.
5024         (print_pdr_access_layout): Remove.
5025         (print_pdr): Print ISL representation.
5026         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
5027         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
5028         (free_scop): Same.
5029         (openscop_print_pbb_domain): Remove.
5030         (print_pbb): Remove call to print_scattering_function.
5031         (openscop_print_scop_context): Remove.
5032         (print_scop_context): Do not print matrices anymore.
5033         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
5034         SCOP_TRANSFORMED_SCHEDULE.
5035         (print_isl_set): Add printing of a new line.
5036         (print_isl_map): Same.
5037         (print_isl_aff): Same.
5038         (print_isl_constraint): Same.
5039         (loop_to_lst): Remove.
5040         (scop_to_lst): Remove.
5041         (lst_indent_to): Remove.
5042         (print_lst): Remove.
5043         (debug_lst): Remove.
5044         (dot_lst_1): Remove.
5045         (dot_lst): Remove.
5046         (reverse_loop_at_level): Remove.
5047         (reverse_loop_for_pbbs): Remove.
5048         * graphite-poly.h (pdr_dim_iter_domain): Remove.
5049         (pdr_nb_params): Remove.
5050         (pdr_alias_set_dim): Remove.
5051         (pdr_subscript_dim): Remove.
5052         (pdr_iterator_dim): Remove.
5053         (pdr_parameter_dim): Remove.
5054         (same_pdr_p): Remove.
5055         (struct poly_scattering): Remove.
5056         (struct poly_bb): Remove _original, _transformed, _saved.
5057         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
5058         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
5059         (PBB_NB_LOCAL_VARIABLES): Remove.
5060         (PBB_NB_SCATTERING_TRANSFORM): Remove.
5061         (schedule_to_scattering): Remove.
5062         (number_of_write_pdrs): Remove.
5063         (pbb_dim_iter_domain): Remove.
5064         (pbb_nb_params): Remove.
5065         (pbb_nb_scattering_orig): Remove.
5066         (pbb_nb_scattering_transform): Remove.
5067         (pbb_nb_dynamic_scattering_transform): Remove.
5068         (pbb_nb_local_vars): Remove.
5069         (pbb_iterator_dim): Remove.
5070         (pbb_parameter_dim): Remove.
5071         (psco_scattering_dim): Remove.
5072         (psct_scattering_dim): Remove.
5073         (psct_local_var_dim): Remove.
5074         (psco_iterator_dim): Remove.
5075         (psct_iterator_dim): Remove.
5076         (psco_parameter_dim): Remove.
5077         (psct_parameter_dim): Remove.
5078         (psct_dynamic_dim): Remove.
5079         (psct_static_dim): Remove.
5080         (psct_add_local_variable): Remove.
5081         (new_lst_loop): Remove.
5082         (new_lst_stmt): Remove.
5083         (free_lst): Remove.
5084         (copy_lst): Remove.
5085         (lst_add_loop_under_loop): Remove.
5086         (lst_depth): Remove.
5087         (lst_dewey_number): Remove.
5088         (lst_dewey_number_at_depth): Remove.
5089         (lst_pred): Remove.
5090         (lst_succ): Remove.
5091         (lst_find_pbb): Remove.
5092         (find_lst_loop): Remove.
5093         (lst_find_first_pbb): Remove.
5094         (lst_empty_p): Remove.
5095         (lst_find_last_pbb): Remove.
5096         (lst_contains_p): Remove.
5097         (lst_contains_pbb): Remove.
5098         (lst_create_nest): Remove.
5099         (lst_remove_from_sequence): Remove.
5100         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
5101         (lst_niter_for_loop): Remove.
5102         (pbb_update_scattering): Remove.
5103         (lst_update_scattering_under): Remove.
5104         (lst_update_scattering): Remove.
5105         (lst_insert_in_sequence): Remove.
5106         (lst_replace): Remove.
5107         (lst_substitute_3): Remove.
5108         (lst_distribute_lst): Remove.
5109         (lst_remove_all_before_including_pbb): Remove.
5110         (lst_remove_all_before_excluding_pbb): Remove.
5111         (struct scop): Remove original_schedule, transformed_schedule, and
5112         saved_schedule.
5113         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
5114         (SCOP_SAVED_SCHEDULE): Remove.
5115         (poly_scattering_new): Remove.
5116         (poly_scattering_free): Remove.
5117         (poly_scattering_copy): Remove.
5118         (store_scattering_pbb): Remove.
5119         (store_lst_schedule): Remove.
5120         (restore_lst_schedule): Remove.
5121         (store_scattering): Remove.
5122         (restore_scattering_pbb): Remove.
5123         (restore_scattering): Remove.
5124         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
5125         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
5126         compute the scattering polyhedron dimension from the dimension of
5127         pbb->domain.
5128         (build_scop_scattering): Update call to
5129         build_pbb_scattering_polyhedrons.
5130         (build_poly_scop): Remove call to scop_to_lst.
5131         * graphite.c (graphite_transform_loops): Add call to print_scop.
5132         (gate_graphite_transforms): Remove use of flag_loop_block,
5133         flag_loop_interchange, and flag_loop_strip_mine.
5135 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
5137         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
5138         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
5139         -floop-nest-optimize.
5140         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
5141         (generate_luj_sepclass): Remove.
5142         (generate_luj_options): Remove.
5143         (set_options): Remove opt_luj.
5144         (scop_to_isl_ast): Remove opt_luj.
5145         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
5146         flag_loop_unroll_jam.
5147         (getPrevectorMap_full): Remove.
5148         (getScheduleForBandList): Remove map_sepcl.
5149         (getScheduleMap): Same.
5150         (apply_schedule_map_to_scop): Remove sepcl.
5151         (optimize_isl): Same.
5152         * graphite-poly.c (apply_poly_transforms): Remove check for
5153         flag_loop_unroll_jam.
5154         (new_poly_bb): Remove map_sepclass.
5155         * graphite-poly.h (struct poly_bb): Same.
5156         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
5157         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
5158         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
5159         * toplev.c (process_options): Remove flag_loop_unroll_jam.
5161 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
5163         PR target/67317
5164         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
5165         (addqi3_cc): Ditto.
5166         (UNSPEC_ADD_CARRY): Remove.
5167         (addqi3_cconly_overflow): New expander.
5168         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
5169         Adjust for changed add<mode>3_carry.
5170         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
5171         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
5172         (<plusminus_insn><mode>3_carry): Remove expander.
5173         (*<plusminus_insn><mode>3_carry): Split insn pattern to
5174         add<mode>3_carry and sub<mode>3_carry.
5175         (plusminus_carry_mnemonic): Remove code attribute.
5176         (add<mode>3_carry): Canonicalize insn pattern.
5177         (*addsi3_carry_zext): Ditto.
5178         (sub<mode>3_carry): Ditto.
5179         (*subsi3_carry_zext): Ditto.
5180         (adcx<mode>3): Remove insn pattern.
5181         (addcarry<mode>): New insn pattern.
5182         (subborrow<mode>): Ditto.
5183         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
5184         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
5185         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
5186         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
5187         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
5188         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
5189         Rewrite expander to not clobber carry flag chains.
5191 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
5193         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
5194         instead of a rotate.
5196 2015-08-27  Marek Polacek  <polacek@redhat.com>
5198         PR middle-end/67005
5199         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
5200         an entry into an irreducible region.
5202 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5204         * configure: Regenerate.
5206 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
5208         PR tree-optimization/67283
5209         * tree-sra.c (type_consists_of_records_p): Rename to...
5210         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
5212         (completely_scalarize_record): Rename to...
5213         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
5214         (scalarize_elem): New.
5216 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
5218         * tree-sra.c (completely_scalarize_var): Rename to...
5219         (create_total_scalarization_access): ... Here. Drop call to
5220         completely_scalarize_record.
5222         (analyze_all_variable_accesses): Replace completely_scalarize_var
5223         with create_total_scalarization_access and completely_scalarize_record.
5225 2015-08-27  Alan Modra  <amodra@gmail.com>
5227         PR target/67356
5228         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
5229         for operand 1.
5231 2015-08-27  Richard Biener  <rguenther@suse.de>
5233         * passes.c (rest_of_decl_compilation): Guard early_global_decl
5234         call with !seen_error ().
5235         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
5236         early debug generation and finish...
5237         (symbol_table::compile): ... here to put it after a !seen_error ()
5238         guard.
5240 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5242         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
5243         Solaris 12+.
5245 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5246             Andre Vieira  <andre.simoesdiasvieira@arm.com>
5248         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
5249         (*cb<optab><mode>1): Likewise.
5250         (*tb<optab><mode>1): Likewise.
5251         (*cb<optab><mode>1): Likewise.
5252         * config/aarch64/iterators.md (inv_cb): New code attribute.
5253         (inv_tb): Likewise.
5254         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
5255         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
5257 2015-08-27  Richard Biener  <rguenther@suse.de>
5259         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
5261 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5263         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
5264         trap to fix ICE.
5266 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
5268         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
5269         Add declaration.
5271         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
5272         comment.
5273         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
5274         floating point in VSX registers.
5275         (rs6000_output_move_128bit): Always print out the set insn if we
5276         can't generate an appropriate 128-bit move.
5277         (rs6000_generate_compare): Add support for IEEE 128-bit floating
5278         point in VSX registers comparisons.
5279         (rs6000_expand_float128_convert): Likewise.
5281         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
5282         predicate for only GPR hard registers.
5284         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
5285         modes to iterators. Add new iterators for moving 128-bit values in
5286         scalar FPR registers and VSX registers.
5287         (FMOVE128): Likewise.
5288         (FMOVE128_FPR): Likewise.
5289         (FMOVE128_GPR): Likewise.
5290         (FMOVE128_VSX): Likewise.
5291         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
5292         in VSX registers.
5293         (IFKF): Likewise.
5294         (IBM128): Likewise.
5295         (TFIFKF): Likewise.
5296         (RELOAD): Add IEEE 128-bit floating point modes.
5297         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
5298         floating point in VSX registers modes.
5299         (signbit<mode>2, IBM128 iterator): Likewise.
5300         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
5301         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
5302         (negtf2): Likewise.
5303         (neg<mode>2, TFIFKF iterator): Likewise.
5304         (negtf2_internal): Likewise.
5305         (abstf2): Likewise.
5306         (abs<mode>2, TFIFKF iterator): Likewise.
5307         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
5308         VSX insn support for negate, absolute value, and negative absolute
5309         value.
5310         (ieee_128bit_vsx_neg<mode>2): Likewise.
5311         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
5312         (ieee_128bit_vsx_abs<mode>2): Likewise.
5313         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
5314         (ieee_128bit_vsx_nabs<mode>2): Likewise.
5315         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
5316         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
5317         floating point in VSX registers.
5318         (unpack<mode>_dm): Likewise.
5319         (unpack<mode>_nodm): Likewise.
5320         (pack<mode>): Likewise.
5321         (unpackv1ti): Likewise.
5322         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
5323         (packv1ti): Likewise.
5324         (pack<mode>, FMOVE128_VSX iterator): Likewise.
5325         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
5326         registers.
5327         (extenddftf2_internal): Likewise.
5328         (trunctfdf2): Likewise.
5329         (trunctfdf2_internal2): Likewise.
5330         (fix_trunc_helper): Likewise.
5331         (fix_trunctfdi2"): Likewise.
5332         (floatditf2): Likewise.
5333         (floatuns<mode>tf2): Likewise.
5334         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
5335         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
5336         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
5337         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
5338         (float<SDI:mode><IFKF:mode>2): Likewise.
5339         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
5341 2015-08-26  Renlin Li  <renlin.li@arm.com>
5343         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
5345 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5346             Jiong Wang  <jiong.wang@arm.com>
5348         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
5349         (tlsie_tiny_<mode>): New define_insn.
5350         (tlsie_tiny_sidi): Likewise.
5351         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
5352         SYMBOL_TINY_TLSIE.
5353         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
5354         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
5355         SYMBOL_TINY_TLSIE.
5356         (aarch64_expand_mov_immediate): Likewise.
5357         (aarch64_print_operand): Likewise.
5358         (arch64_classify_tls_symbol): Likewise.
5360 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
5362         * config/arm/arm-arches.def: Replace single value flags with
5363         an initializer built from ARM_FSET_MAKE_CPU1.
5364         * config/arm/arm-cores.def: Likewise.
5365         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
5366         derivation from the ARM_CORE macro definition, use the given value
5367         instead.
5368         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
5369         ARM_ARCH macro definition, use the given value instead.
5371 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
5373         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
5374         feature set.
5375         (struct builtin_description): Replace field mask with field
5376         features.
5377         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
5378         (IWMMXT2_BUILTIN): Likewise.
5379         (IWMMXT2_BUILTIN2): Likewise.
5380         (FP_BUILTIN): Likewise.
5381         (CRC32_BUILTIN): Likewise.
5382         (CRYPTO_BUILTIN): Likewise.
5383         (iwmmx_mbuiltin): Likewise.
5384         (iwmmx2_mbuiltin): Likewise.
5385         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
5386         struct builtin_description.
5388 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
5390         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
5391         (struct builtin_description): Change type of mask to unsigned
5392         long.
5393         * config/arm/arm-protos.h (insn_flags): Declare as type
5394         arm_feature_set.
5395         (tune_flags): Likewise.
5396         * config/arm/arm.c (feature_count): New.
5397         (insn_flags): Define as type arm_feature_set.
5398         (tune_flags): Likewise.
5399         (struct processors): Define field flags as type arm_feature_set.
5400         (all_cores): Update for change to struct processors.
5401         (all_architectures): Likewise.
5402         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
5403         macros.
5404         (arm_option_override_internal): Likewise.
5405         (arm_option_override): Likewise.
5407 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5408             Jiong Wang  <jiong.wang@arm.com>
5410         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
5411         tls size for tiny, small, large memory model.
5412         (aarch64_load_symref_appropriately): Support new symbol types.
5413         (aarch64_expand_mov_immediate): Likewise.
5414         (aarch64_print_operand): Likewise.
5415         (aarch64_classify_tls_symbol): Likewise.
5416         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
5417         (aarch64_symbol_type): Likewise.
5418         * config/aarch64/aarch64.md (tlsle): Deleted.
5419         (tlsle12_<mode>): New define_insn.
5420         (tlsle24_<mode>): Likewise.
5421         (tlsle32_<mode>): Likewise.
5422         (tlsle48_<mode>): Likewise.
5423         * doc/sourcebuild.texi (AArch64-specific attributes): Document
5424         "aarch64_tlsle32".
5426 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
5428         * config/arm/arm-protos.h (FL_NONE): New.
5429         (FL_ANY): New.
5430         (arm_feature_set): New.
5431         (ARM_FSET_MAKE): New.
5432         (ARM_FSET_MAKE_CPU1): New.
5433         (ARM_FSET_MAKE_CPU2): New.
5434         (ARM_FSET_CPU1): New.
5435         (ARM_FSET_CPU2): New.
5436         (ARM_FSET_EMPTY): New.
5437         (ARM_FSET_ANY): New.
5438         (ARM_FSET_HAS_CPU1): New.
5439         (ARM_FSET_HAS_CPU2): New.
5440         (ARM_FSET_HAS_CPU): New.
5441         (ARM_FSET_ADD_CPU1): New.
5442         (ARM_FSET_ADD_CPU2): New.
5443         (ARM_FSET_DEL_CPU1): New.
5444         (ARM_FSET_DEL_CPU2): New.
5445         (ARM_FSET_UNION): New.
5446         (ARM_FSET_INTER): New.
5447         (ARM_FSET_XOR): New.
5448         (ARM_FSET_EXCLUDE): New.
5449         (AFM_FSET_IS_EMPTY): New.
5450         (ARM_FSET_CPU_SUBSET): New.
5452 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
5454         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
5455         SYMBOL_TLSLE to SYMBOL_TLSLE24.
5456         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
5457         Likewise.
5458         (aarch64_expand_mov_immediate): Likewise.
5459         (aarch64_print_operand): Likewise.
5460         (aarch64_classify_symbol): Likewise.
5462 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
5464         * config/aarch64/aarch64.opt (mtls-size): New entry.
5465         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
5466         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
5467         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
5469 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
5471         * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
5472         ARM_CORE entry.  Fix some white-space.
5473         * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
5474         ARM_CORE definition.
5476 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5478         * fold-const.c (fold_binary_loc) : Move Optimize
5479         root(x)*root(y) as root(x*y) to match.pd.
5480         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
5481         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
5482         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
5483         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
5484         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
5485         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
5486         (mult (exps:s @0) (exps:s @1)) : New simplifier.
5487         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
5488         (rdiv @0 (exps:s @1)) : New simplifier.
5490 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
5492         * gcc.c (driver::finalize): Only assign to extra_specs if
5493         [EXTRA_SPECS].
5495 2015-08-25  Marek Polacek  <polacek@redhat.com>
5497         PR middle-end/67330
5498         * varasm.c (declare_weak): Return after giving an error.
5500 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
5502         * gcc-main.c (main): Add params to driver ctor.
5503         * gcc.c (class env_manager): New.
5504         (env): New global.
5505         (env_manager::init): New.
5506         (env_manager::get): New.
5507         (env_manager::xput): New.
5508         (env_manager::restore): New.
5509         Poison getenv and putenv.
5510         (DEFAULT_TARGET_SYSTEM_ROOT): New.
5511         (target_system_root): Update initialization to use
5512         DEFAULT_TARGET_SYSTEM_ROOT.
5513         (struct spec_list): Add field "default_ptr".
5514         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
5515         (init_spec): Likewise.
5516         (set_spec): Clear field "default_ptr".
5517         (read_specs): Free "spec" and "buffer".
5518         (xputenv): Reimplement in terms of env_manager.
5519         (process_command): Replace ::getenv calls with calls to the
5520         env_manager singleton.
5521         (process_brace_body): Free string in three places.
5522         (driver::driver): New.
5523         (driver::~driver): New.
5524         (used_arg): Convert from a function to...
5525         (class used_arg_t): ...this class, and...
5526         (used_arg): ...this new global instance.
5527         (used_arg_t::finalize): New function.
5528         (getenv_spec_function): Add "const" to local "value".  Replace
5529         ::getenv call with call to the env_manager singleton.
5530         (path_prefix_reset): New function.
5531         (driver::finalize): New function.
5532         * gcc.h (driver::driver): New.
5533         (driver::~driver): New.
5534         (driver::finalize): New.
5536 2015-08-25  Nathan Sidwell  <nathan@acm.org>
5538         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
5539         target doesn't have one.
5541 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
5543         PR target/67346
5544         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
5546 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
5548         PR target/67344
5549         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
5550         a define_insn, remove second alternative.
5552 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
5553             Joseph Myers  <joseph@codesourcery.com>
5555         * gcc.c (struct switchstr): Expand comment.
5557 2015-08-25  Nathan Sidwell  <nathan@acm.org>
5559         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
5560         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
5562 2015-08-25  Richard Biener  <rguenther@suse.de>
5564         PR middle-end/67306
5565         * genmatch.c (expr::gen_transform): Verify the result of
5566         builtin_decl_implicit.
5567         (dt_simplify::gen_1): Likewise.
5569 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5571         * config/arm/constraints.md: Also list Cs and US ARM-specific
5572         constraints as used.
5574 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
5576         PR target/66609
5577         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
5578         UNSPEC_PCREL.
5579         (nonpic_symbol_mentioned_p): Likewise.
5580         (sh_delegitimize_address): Likewise.
5581         (sh_function_ok_for_sibcall): Take into account weak symbols.
5582         (sh_expand_sym_label2reg): New.
5583         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
5584         * config/sh/sh.md (UNSPEC_PCREL): New enum.
5585         (call_pcrel): Use sh_expand_sym_label2reg.
5586         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
5587         (symPCREL_label2reg) New expand.
5589 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
5591         * graphite-poly.c: Change type of region from void* to sese.
5592         * graphite-poly.h (struct scop): Changing the type of scop::region
5593         from void* to sese. Change accessor macro accordingly.
5594         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
5596 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
5598         * graphite-scop-detection.c (stmt_simple_for_scop_p):
5599         Constrain only on INTEGER_TYPE.
5601 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
5603         PR target/67211
5604         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
5605         -mefficient-unaligned-vsx on ISA 2.7.
5607         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
5608         option to a masked option.
5610         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
5611         logic for -mefficient-unaligned-vsx so that it is set via an arch
5612         ISA option, instead of being set if -mtune=power8 is set. Move
5613         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
5614         near other default option handling.
5616 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
5618         * genflags.c (gen_macro): Delete.
5619         (gen_proto): Don't create GEN.*CALL.* macros.
5620         * gensupport.h (get_file_location): Declare.
5621         * gensupport.c (rtx_locs): New variable.
5622         (read_md_rtx): Record rtx locations.
5623         (get_file_location): New function.
5624         * target-insns.def (call, call_pop, call_value, call_value_pop)
5625         (sibcall, sibcall_value): New patterns.
5626         * gentarget-def.c (parse_argument): New function.
5627         (def_target_insn): Use it.  Handle optional operands.  Raise an
5628         error if an .md pattern has the wrong number of operands for the
5629         pattern name.  Remove the names of unused operands from the prototype.
5630         * builtins.c (expand_builtin_apply): Use targetm functions
5631         instead of HAVE_call_value and GEN_CALL_VALUE.
5632         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
5633         and sibcall_value_pop.
5634         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
5635         of GEN_CALL.
5636         * config/alpha/alpha.md (untyped_call): Likewise.
5637         * config/iq2000/iq2000.md (untyped_call): Likewise.
5638         * config/m68k/m68k.md (untyped_call): Likewise.
5639         * config/mips/mips.md (untyped_call): Likewise.
5640         * config/pa/pa.md (untyped_call): Likewise.
5641         * config/rs6000/rs6000.md (untyped_call): Likewise.
5642         * config/sparc/sparc.md (untyped_call): Likewise.
5643         * config/tilegx/tilegx.md (untyped_call): Likewise.
5644         * config/tilepro/tilepro.md (untyped_call): Likewise.
5645         * config/visium/visium.md (untyped_call): Likewise.
5646         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
5647         gen_call_value instead of GEN_CALL_VALUE.
5648         * config/arm/arm.md (untyped_call): Likewise.
5649         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
5650         GEN_CALL.
5652 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
5654         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
5655         (have_cbranchcc4): New variable.
5656         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
5657         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
5658         (if_convert): Initialize have_cbranchcc4.
5660 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
5662         * builtins.c (expand_cmpstrn): Rename to...
5663         (expand_cmpstrn_or_cmpmem): ...this.
5664         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
5665         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
5666         Remove mode argument.
5667         (expand_builtin): Update accordingly.
5669 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
5671         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
5672         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
5673         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
5674         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
5675         Add predicates for operands 0 and 3.
5676         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
5677         operand.
5678         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
5679         immediate_operand to nonmemory_operand.
5681 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
5683         * df-scan.c (df_insn_info_init_fields): New function, split out
5684         from...
5685         (df_insn_create_insn_record): ...here.
5686         (df_insn_info_free_fields): New function, split out from...
5687         (df_insn_info_delete): ...here.
5688         (df_insn_rescan): Use the new functions instead of freeing and
5689         reallocating the df_insn_info.
5691 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5693         * doc/install.texi (Binaries): Remove links no longer valid.
5695 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
5697         * config/nvptx/mkoffload.c (process): Replace
5698         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
5700 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
5702         PR target/67329
5703         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
5705 2015-08-24  Renlin Li  <renlin.li@arm.com>
5707         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
5708         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
5709         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
5710         * config/arm/constraints.md ("j"): Add check for high code.
5712 2015-08-24  Tom de Vries  <tom@codesourcery.com>
5714         PR tree-optimization/65468
5715         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
5716         chunk_size is one.
5718 2015-08-24  Nathan Sidwell  <nathan@acm.org>
5720         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
5721         change to nvptx_type_from_mode call. Use arg_promotion for both
5722         split and non-split args.
5724 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
5726         * target-insns.def (movstr): New pattern.
5727         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
5728         (expand_movstr): Use targetm rather than HAVE_movstr/
5729         CODE_FOR_movstr.
5731 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
5733         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
5734         cast syntax.
5736 2015-08-24  Andrew Pinski  <apinski@cavium.com>
5738         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
5739         AARCH64_EXTRA_TUNING_OPTION.
5740         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
5741         New enum.
5742         (aarch64_extra_tuning_flags): Base the shifted value on the index
5743         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
5744         * config/aarch64/aarch64.c: Remove the last argument to
5745         AARCH64_EXTRA_TUNING_OPTION.
5747 2015-08-23  Nathan Sidwell  <nathan@acm.org>
5749         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
5750         decls.
5751         (nvptx_declare_function_name): Insert formatting tabs for
5752         consistency.
5754 2015-08-23  Tom de Vries  <tom@codesourcery.com>
5756         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
5757         parm_decl, rather than generating a dummy default def in cfun.
5758         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
5759         ssa_name from cfun and child_fn do not share a stmt as def stmt.
5760         (move_stmt_op): Handle PARM_DECl.
5761         (gather_ssa_name_hash_map_from): New function.
5762         (move_sese_region_to_fn): Add default defs for function params, and add
5763         them to vars_map.  Release copied ssa names.
5764         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
5766 2015-08-23  Tom de Vries  <tom@codesourcery.com>
5768         * doc/sourcebuild.texi: Rename vect_no_int_max with
5769         vect_no_int_min_max.  Update description.
5771 2015-08-22  Andrew Pinski  <apinski@cavium.com>
5773          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
5774         * config/aarch64/aarch64-protos.h
5775         (aarch64_fusion_pairs_index): New enum.
5776         (aarch64_fusion_pairs): Base the shifted value on the index instead
5777         Rewrite AARCH64_FUSE_ALL to be based on the end index.
5778         of the argument to AARCH64_FUSION_PAIR.
5779         * config/aarch64/aarch64.c: Remove the last argument to
5780         AARCH64_FUSION_PAIR.
5782 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
5784         * dominance.c (new_zero_array): Define.
5785         (dom_info): Redefine as class with proper encapsulation.
5786         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
5787         Add new members.
5788         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
5789         allocations/deallocations.  Pass function as parameter (instead of
5790         using cfun).
5791         (dom_info::get_idom): Define accessor method.
5792         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
5793         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
5794         (calculate_dominance_info): Adjust to use dom_info class.
5795         (verify_dominators): Likewise.
5797 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
5799         * print-rtl.c (print_rtx): Check the correct range for
5800         flag_dump_unnumbered_links to behave as documented.
5802         PR rtl-optimization/67227
5803         PR rtl-optimization/64164
5804         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
5805         (nonoverlapping_memrefs_p): Test offsets and sizes when given
5806         identical gimple_reg exprs.
5808 2015-08-21  Nathan Sidwell  <nathan@acm.org>
5810         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
5811         expansion.
5812         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
5813         crtl->stack_alignment_needed to determine alignment.
5814         (nvptx_get_drap_rtx): New.
5815         (TARGET_GET_DRAP_RTX): Override.
5816         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
5818 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5820         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
5822 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5824         * configure.ac: Remove uwin* cases.
5825         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
5826         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
5827         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
5828         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
5829         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
5830         i[34567]86-*-uwin*, powerpc-*-beos*.
5832 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
5834         * gencodes.c (gencodes): Print the comma for the preceding
5835         enum value rather than the current one.  Use aliased enum values
5836         rather than #defines for compiled-out patterns.
5837         (main): Update accordingly.  Replace LAST_INSN_CODE with
5838         NUM_INSN_CODES.
5839         * lra.c (insn_code_data): Update accordingly.
5840         (finish_insn_code_data_once, get_static_insn_data): Likewise.
5841         * recog.h (target_recog): Likewise.
5842         (preprocess_insn_constraints): Change parameter to unsigned int.
5843         * recog.c (preprocess_insn_constraints): Likewise.
5844         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
5845         * tree-vect-stmts.c (vectorizable_operation): Simplify.
5847 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
5849         PR rtl-optimization/61657
5850         * loop-iv.c (iv_number_of_iterations): Declare up and down as
5851         unsigned.  Remove superflous uint64_t cast.
5853 2014-08-21  Felix Yang  <felix.yang@huawei.com>
5854             Jiji Jiang  <jiangjiji@huawei.com>
5856         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
5857         argument and get builtin function code directly from CALL.
5858         (gimple_stringop_fixed_value): Modified accordingly.
5859         (gimple_stringops_transform, gimple_stringops_values_to_profile):
5860         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
5862 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5864         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
5866 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5868         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
5869         to match.pd.
5870         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
5871         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
5872         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
5873         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
5874         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
5875         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
5876         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
5877         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
5878         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
5879         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
5881         * match.pd (SIN ) : New Operator.
5882         (TAN) : New Operator.
5883         (mult (SQRT@1 @0) @1) : New simplifier.
5884         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
5885         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
5886         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
5887         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
5888         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
5889         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
5890         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
5891         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
5892         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
5893         (rdiv @0 (POW:s @1 @2)) : New simplifier.
5895 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
5897         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
5898         loop if EXPR is simplified to const value.
5900 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
5902         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
5903         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
5905 2015-08-21  Richard Biener  <rguenther@suse.de>
5907         PR middle-end/67285
5908         * gimple-fold.c (replace_stmt_with_simplification): Assert
5909         seq is empty when replacing a call with itself but different
5910         arguments.
5911         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
5912         a call require that it is const.
5914 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5916         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
5917         * builtins.c (get_object_alignment_2): Adjust.
5918         * varasm.c (align_variable): Likewise.
5919         (get_variable_align): Likewise.
5920         (build_constant_desc): Likewise.
5921         (force_const_mem): Likewise.
5922         * doc/tm.texi.in: Likewise.
5923         * doc/tm.texi: Regenerate.
5925 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5927         * genconfig.c (main): Always define HAVE_cc0.
5928         * recog.c (rest_of_handle_peephole2): Adjust.
5930 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5932         * reorg.c (relax_delay_slots): Don't use #if to check value of
5933         HAVE_cc0.
5935 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5937         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
5938         * targhooks.c (default_have_conditional_execution): Adjust.
5940 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
5942         * rtl.h (rtvec_all_equal_p): Declare.
5943         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
5944         * rtl.c (rtvec_all_equal_p): New function.
5945         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
5946         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
5947         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
5948         * config/arm/arm.c (neon_vdup_constant): Likewise.
5949         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
5950         * config/tilegx/constraints.md (W, Y): Likewise.
5951         * config/tilepro/constraints.md (W, Y): Likewise.
5952         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
5953         (classify_immediate): Use unwrap_const_vec_duplicate.
5954         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
5955         (reg_or_v2s8bit_operand): Likewise.
5956         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
5957         (reg_or_v4s8bit_operand): Likewise.
5959 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5961         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
5962         (vec_shasigma_be): New #define.
5963         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
5964         (VPMSUMH): Likewise.
5965         (VPMSUMW): Likewise.
5966         (VPMSUMD): Likewise.
5967         (VPMSUM): New BU_P8V_OVERLOAD_2.
5968         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
5969         entries for VEC_MADD and VEC_VPMSUM.
5971 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
5973         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
5974         Multiply argument avr_n_flash by 64 to match unit of "KiB".
5975         (avr_pgm_check_var_decl): Same.
5977 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
5979         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
5980         initialization of HFmode scalar type (float16_t) to...
5981         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
5982         code.
5984         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
5986         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
5987         having an -mfp16-format.
5989 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
5991         * config/i386/predicates.md (vector_all_ones_operand): Use
5992         CONSTM1_RTX to simplify definition.
5994 2015-08-20  Richard Biener  <rguenther@suse.de>
5996         * toplev.c (compile_file): Remove loop calling late_global_decl
5997         on all symbols.
5998         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
5999         on decls we assembled.
6001 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
6003         * common/config/aarch64/aarch64-common.c
6004         (AARCH64_CPU_NAME_LENGTH): Delete.
6005         (aarch64_option_extension): New.
6006         (all_extensions): Likewise.
6007         (processor_name_to_arch): Likewise.
6008         (arch_to_arch_name): Likewise.
6009         (all_cores): New.
6010         (all_architectures): Likewise.
6011         (aarch64_get_extension_string_for_isa_flags): Likewise.
6012         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
6013         architecture names.
6014         * config/aarch64/aarch64-protos.h
6015         (aarch64_get_extension_string_for_isa_flags): New.
6016         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
6017         (aarch64_option_print): Get the string to print from
6018         aarch64_get_extension_string_for_isa_flags.
6019         (aarch64_declare_function_name): Likewise.
6020         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
6021         (MCPU_TO_MARCH_SPEC): This.
6022         (ASM_CPU_SPEC): Use it.
6023         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
6024         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
6025         (EXTRA_SPEC_FUNCTIONS): Use it.
6027 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
6029         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
6030         expansion when !ISA_HAS_LWL_LWR.
6031         (mips_block_move_straight): Update the size of elements copied to
6032         account for alignment when !ISA_HAS_LWL_LWR.
6033         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
6035 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
6037         * expr.c (expand_expr_real_2): Check gimple statement during
6038         LSHIFT_EXPR expand.
6040 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
6042         * common.opt (fstack-protector): Initialize to -1.
6043         (fstack-protector-all): Likewise.
6044         (fstack-protector-strong): Likewise.
6045         (fstack-protector-explicit): Likewise.
6046         * configure.ac: Add --enable-default-ssp.
6047         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
6048         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
6049         -1.
6050         * doc/install.texi: Document --enable-default-ssp.
6051         * config.in: Regenerated.
6052         * configure: Likewise.
6054 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
6056         PR rtl-optimization/64164
6057         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
6058         (parm_in_stack_slot_p): ... this.  Disregard mode, what
6059         matters is whether the parm will live in a pseudo or a stack
6060         slot.
6061         (expand_one_ssa_partition): Deal with params without a default
6062         def.  Disregard mode.
6063         * cfgexpand.h: Renamed function declaration.
6064         * tree-ssa-coalesce.c: Adjust.
6065         * function.c (split_complex_args): Allocate stack slot for
6066         unassigned parms before splitting.
6067         (parm_in_unassigned_mem_p): New.  Use it instead of
6068         parm_maybe_byref_p throughout this file.
6069         (assign_parm_setup_block): Use it.  Accept pseudos in the
6070         expand-assigned rtl.
6071         (assign_parm_setup_reg): Drop BLKmode requirement.
6072         (assign_parm_setup_stack): Allocate and fill in the address of
6073         unassigned MEM parms.
6075 2015-08-19  David Sherwood  <david.sherwood@arm.com>
6077         * genmodes.c (emit_mode_unit_size_inline): New function.
6078         (emit_mode_unit_precision_inline): New function.
6079         (emit_insn_modes_h): Emit new #define.  Emit new functions.
6080         (emit_mode_unit_size): New function.
6081         (emit_mode_unit_precision): New function.
6082         (emit_mode_adjustments): Add mode_unit_size adjustments.
6083         (emit_insn_modes_c): Emit new arrays.
6084         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
6085         use new inline methods.
6087 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6089         * config/aarch64/aarch64.c (bit_count): Delete prototype
6090         and definition.
6091         (aarch64_print_operand): Use popcount_hwi instead of the above.
6093 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6095         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
6096         comment.
6098 2015-08-19  Marek Polacek  <polacek@redhat.com>
6100         PR middle-end/67133
6101         * gimple-ssa-isolate-paths.c
6102         (insert_trap_and_remove_trailing_statements): Rename to ...
6103         (insert_trap): ... this.  Don't remove trailing statements; split
6104         block instead.
6105         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
6107 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
6109         PR other/67042
6110         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
6111         conditionalize the whole on __GNUC__.  Add fallback code
6112         depending neither on undefined nor implementation-defined behaviour.
6114 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
6116         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
6117         whitespaces with tab.
6119 2015-08-19  Florian Weimer  <fweimer@redhat.com>
6121         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
6122         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
6123         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
6124         Move Name_Ids instantiation to the Prj.Proc package, to avoid
6125         trampolines.
6127 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6129         * config/arm/arm.c (bounds_check): Use %wd print format
6130         for HOST_WIDE_INT arguments.
6132 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
6134         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
6135         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
6136         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
6137         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
6138         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
6139         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
6140         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
6141         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
6142         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
6143         typedefs.
6145 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
6147         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
6148         function.c, graphite-scop-detection.c, haifa-sched.c,
6149         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
6150         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
6151         varasm.c: Remove typedefs of structs.
6153 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
6155         * config/rs6000/altivec.h (vec_adde): New define.
6156         (vec_addec): Likewise.
6157         (vec_double): Likewise.
6158         (vec_bperm): Likewise.
6159         (vec_gb): Likewise.
6160         * config/rs6000/rs6000-builtin.def (ADDE): New
6161         BU_ALTIVEC_OVERLOAD_3.
6162         (ADDEC): Likewise.
6163         (DOUBLE): New BU_VSX_OVERLOAD_1.
6164         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
6165         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
6166         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
6167         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
6168         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
6169         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
6170         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
6171         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
6172         and P8V_BUILTIN_VEC_VBPERMQ.
6174 2015-08-18  Jason Merrill  <jason@redhat.com>
6176         * print-tree.c (print_node): Handle TREE_BINFO.
6178 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6180         PR middle-end/36757
6181         * builtins.c (expand_builtin_signbit): Add asserts to make sure
6182         we can expand BUILT_IN_SIGNBIT inline.
6183         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
6184         * doc/extend.texi: Document the type-generic __builtin_signbit.
6186 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
6188         PR rtl-optimization/67218
6189         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
6190         (simplify_unary_operation_1): Use it.
6192 2015-08-18  Marek Polacek  <polacek@redhat.com>
6194         PR middle-end/67222
6195         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
6196         if the call isn't valid.
6197         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
6198         gimple_call_builtin_p.
6199         (call_may_clobber_ref_p_1): Likewise.
6200         (stmt_kills_ref_p): Likewise.
6202 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
6204         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
6205         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
6206         (mips_hard_regno_scratch_ok): Likewise.
6207         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
6208         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
6210 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
6212         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
6213         (determine_value_range): Call refine_value_range_using_guard for
6214         each loop initial condition to improve value range.
6216 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
6218         * config/i386/i386.c: Remove include of fibheap.h.
6220 2015-08-17  Richard Biener  <rguenther@suse.de>
6222         PR tree-optimization/67221
6223         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
6224         (sccvn_dom_walker::before_dom_children): Mark backedges of
6225         non-executable blocks as not executable.
6227 2015-08-17  David Sherwood  <david.sherwood@arm.com>
6229         * config/arm/arm.c (neon_element_bits): Replace call to
6230         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
6231         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
6232         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
6233         (neon_vdup_lane<mode>): Likewise.
6234         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
6235         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
6236         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
6237         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
6238         * config/spu/spu.c (arith_immediate_p): Likewise.
6239         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
6240         * expr.c (expand_expr_real_2): Likewise.
6241         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
6242         * simplify-rtx.c (simplify_immed_subreg): Likewise.
6243         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
6244         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
6245         New variable.
6246         * fold-const.c (fold_binary_loc): Replace call to
6247         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
6248         GET_MODE_UNIT_PRECISION (m).
6250 2015-08-17  Mike Stump  <mikestump@comcast.net>
6252         * config/arm/arm.c (arm_block_move_unaligned_straight):
6253         Emit normal move instead of unaligned load when source or destination
6254         are appropriately aligned.
6256 2015-08-17  Richard Biener  <rguenther@suse.de>
6257             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6259         PR middle-end/16107
6260         * match.pd (div (coss (op @0) : New simplifier.
6262 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
6264         PR rtl-optimization/64164
6265         PR bootstrap/66978
6266         PR middle-end/66983
6267         PR rtl-optimization/67000
6268         PR middle-end/67034
6269         PR middle-end/67035
6270         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
6271         * tree-ssa-copyrename.c: Removed.
6272         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
6273         -ftree-coalesce-vars.
6274         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
6275         * common.opt (ftree-copyrename): Ignore.
6276         (ftree-coalesce-inlined-vars): Likewise.
6277         * doc/invoke.texi: Remove the ignored options above.
6278         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
6279         * tree-ssa-coalesce.h: ... here.
6280         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
6281         headers required by it.
6282         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
6283         across variables when flag_tree_coalesce_vars.  Check register
6284         use and promoted modes to allow coalescing.  Do not coalesce
6285         maybe-byref parms with SSA_NAMEs of other variables, or
6286         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
6287         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
6288         with its member functions to tree-ssa-coalesce.c.
6289         (var_map_base_init): Likewise.  Renamed to
6290         compute_samebase_partition_bases.
6291         (partition_view_normal): Drop want_bases parameter.
6292         (partition_view_bitmap): Likewise.
6293         * tree-ssa-live.h: Adjust declarations.
6294         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
6295         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
6296         default defs at the entry point.
6297         (dump_part_var_map): New.
6298         (compute_optimized_partition_bases): New, called by...
6299         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6300         of compute_samebase_partition_bases.  Adjust.
6301         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6302         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
6303         (ssa_default_def_partition): New.
6304         (get_rtl_for_parm_ssa_default_def): New.
6305         (align_local_variable, add_stack_var): Support anonymous SSA
6306         names.
6307         (defer_stack_allocation): Likewise.  Declare earlier.
6308         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6309         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6310         Do no record deferred-allocation marker in
6311         SA.partition_to_pseudo.
6312         (expand_stack_vars): Adjust check for the marker in it.
6313         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
6314         redundant MEM attr setting.
6315         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
6316         from...
6317         (expand_one_stack_var): ... this.  New wrapper to check and
6318         skip already expanded SSA partitions.
6319         (record_alignment_for_reg_var): New, factored out of...
6320         (expand_one_var): ... this.
6321         (expand_one_ssa_partition): New.
6322         (adjust_one_expanded_partition_var): New.
6323         (expand_one_register_var): Check and skip already expanded SSA
6324         partitions.
6325         (expand_used_vars): Don't create DECLs for anonymous SSA
6326         names.  Expand all SSA partitions, then adjust all SSA names.
6327         (pass::execute): Replace the loops that set
6328         SA.partition_to_pseudo from partition leaders and cleared
6329         DECL_RTL for multi-location variables, and that which used to
6330         rename vars and set attrs, with one that clears DECL_RTL and
6331         checks that PARMs and RESULTs default_defs match DECL_RTL.
6332         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6333         * emit-rtl.c: Include stor-layout.h.
6334         (set_reg_attrs_for_parm): Handle NULL decl.
6335         (set_reg_attrs_for_decl_rtl): Take mode from expression if
6336         it's not a DECL.
6337         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
6338         rather than its possibly-NULL DECL.
6339         * explow.c (promote_ssa_mode): New.
6340         * explow.h (promote_ssa_mode): Declare.
6341         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6342         (read_complex_part): Export.
6343         * expr.h (read_complex_part): Declare.
6344         * cfgexpand.h (parm_maybe_byref_p): Declare.
6345         * function.c: Include cfgexpand.h.
6346         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6347         (use_register_for_parm_decl): Wrapper for the above to
6348         special-case the result_ptr.
6349         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6350         (split_complex_args): Take assign_parm_data_all argument.
6351         Pass it to rtl_for_parm.  Set up rtl and context for split
6352         args.  Reset complex parm before fetching its default decl
6353         rtl.
6354         (assign_parms_unsplit_complex): Use the default-def complex
6355         parm rtl if it matches the components.
6356         (assign_parms_augmented_arg_list): Adjust.
6357         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6358         multiple locations.  Recognize split complex args.
6359         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6360         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
6361         (assign_parm_setup_block): Prefer SSA-assigned location, and
6362         fill in its address if the memory location of a maybe-byref
6363         parm was not assigned by cfgexpand.
6364         (assign_parm_setup_reg): Likewise.  Adjust its mode as
6365         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
6366         sure passed_pointer parms don't need conversion.  Copy address
6367         or value as needed.
6368         (assign_parm_setup_stack): Prefer SSA-assigned location.
6369         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
6370         rtl before testing for pointer bounds.  Special-case result_ptr.
6371         (expand_function_start): Maybe reset DECL_RTL of result.
6372         Prefer SSA-assigned location for result and static chain.
6373         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
6374         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
6375         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6376         anonymous SSA names.  Use promote_ssa_mode.
6377         (get_temp_reg): Likewise.
6378         (remove_ssa_form): Adjust.
6379         * stor-layout.c (layout_decl): Don't set mem attributes of
6380         non-MEMs.
6381         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6382         and get its reg_usage for reg invalidation.
6383         (compute_bb_dataflow): Pass it insn.
6384         (emit_notes_in_bb): Likewise.
6386 2015-08-14  Marek Polacek  <polacek@redhat.com>
6388         * tree-core.h (tree_base): Fix typo.
6390 2015-08-14  Marek Polacek  <polacek@redhat.com>
6392         PR middle-end/67133
6393         * gimple.c (infer_nonnull_range_by_attribute): Check that the
6394         nonnull argument position is not outside function arguments.
6396 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
6398         PR target/67143
6399         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
6400         'lconst_atomic' with 'const_atomic'.
6401         (atomic_fetch_<optab><mode>): Likewise.
6402         (atomic_<optab>_fetch<mode>): Likewise.
6403         * config/aarch64/iterators.md (lconst-atomic): Move below
6404         'const_atomic'.
6405         (const_atomic): New.
6407 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
6408             Bernd Schmidt  <bernds@codesourcery.com>
6410         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
6411         debug options.
6412         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
6413         (DWARF2_DEBUGGING_INFO): Don't define.
6414         * debug.h (dwarf2_lineno_debug_hooks): Declare.
6415         * toplev.c (process_options): Add a case for it.
6416         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
6417         (dwarf2out_init): Skip most initializations if
6418         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
6419         case.
6420         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
6421         DWARF2_LINENO_DEBUGGING_INFO.
6422         * opts.c (set_debug_level): Likewise.
6424 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
6426         * config/arm/types.md (is_neon_type): Add missing types.
6428 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
6430         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
6431         for skylake.
6432         * config/i386/i386.c (PTA_SKYLAKE): New macros.
6433         (processor_alias_table): Add skylake description.
6434         (enum processor_model): Add skylake processor.
6435         (arch_names_table): Add skylake record.
6436         * doc/invoke.texi: Add skylake item.
6438 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
6440         * ira-int.h: Include recog.h.
6441         * ira-build.c: Don't include recog.h.
6442         * ira-color.c: Likewise.
6443         * ira-conflicts.c: Likewise.
6444         * ira-costs.c: Likewise.
6445         * ira-emit.c: Likewise.
6446         * ira-lives.c: Likewise.
6447         * ira.c: Likewise.
6448         * sched-deps.c: Likewise.
6449         * sel-sched.c: Likewise.
6450         * target-globals.c: Likewise.
6452 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
6454         PR bootstrap/55035
6455         * reload1.c (elimination_costs_in_insn): Make it obvious to the
6456         compiler that the n_dups and n_operands loop bounds are invariant.
6458 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6460         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
6461         expressions in A and B.
6463 2015-08-13  Richard Biener  <rguenther@suse.de>
6465         * tree.c (nonnull_arg_p): Move from ...
6466         * tree-vrp.c (nonnull_arg_p): ... here.
6467         * tree.h (nonnull_arg_p): Declare.
6468         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
6469         here, register ptr != 0 for nonnull_arg_p pointer arguments.
6470         Properly initialize static chain and by-reference result pointer.
6471         (run_scc_vn): Adjust.
6473 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
6475         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
6476         TUNE_I6400.
6478 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
6480         * config/aarch64/aarch64-protos.h
6481         (aarch64_gen_atomic_cas): Declare.
6482         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
6483         Choose appropriate instruction pattern for the target.
6484         (aarch64_gen_atomic_cas): New.
6485         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
6486         (atomic_compare_and_swap<mode>_1): Rename to
6487         aarch64_compare_and_swap<mode>.  Fix some indentation.
6488         (aarch64_compare_and_swap<mode>_lse): New.
6489         (aarch64_atomic_cas<mode>): New.
6491 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
6493         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
6494         (TARGET_LSE): New.
6496 2015-08-13  Richard Biener  <rguenther@suse.de>
6498         PR tree-optimization/67191
6499         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
6500         assert we value-numbered last stmts operand because it can validly
6501         trigger for unreachable code.
6503 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6505         PR rtl-optimization/67103
6506         * ifcvt.c (noce_try_store_flag_constants): Move
6507         x = (-(test != 0) & (b - a)) + a transformation to...
6508         (noce_try_cmove): ... Here.  Try it if normal conditional
6509         move fails.
6511 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
6513         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
6514         pseudo-processors.
6515         * config/mips/mips.md (processor): Remove w32 and w64.
6517 2015-08-13  Richard Biener  <rguenther@suse.de>
6519         PR tree-optimization/66502
6520         PR tree-optimization/67167
6521         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
6522         backedge arguments.
6523         (vn_phi_lookup): Adjust.
6524         (vn_phi_insert): Likewise.
6525         (visit_phi): Prefer to value-number to another PHI node
6526         over value-numbering to a PHI argument.
6527         (init_scc_vn): Mark DFS back edges.
6529 2015-08-13  Richard Biener  <rguenther@suse.de>
6531         * gimple.h (gcall::code_): New constant static member.
6532         (gcond::code_): Likewise.
6533         * gimple.c (gcall::code_): Define.
6534         (gcond::code_): Likewise.
6535         (is_a_helper <const gcond *>): Add.
6536         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
6537         and forward to a new gcall overload with less checking and a
6538         cheaper way to access the operand.
6539         (gimple_call_lhs_ptr): Likewise.
6540         (gimple_call_set_lhs): Likewise.
6541         (gimple_call_internal_p): Likewise.
6542         (gimple_call_with_bounds_p): Likewise.
6543         (gimple_call_set_with_bounds): Likewise.
6544         (gimple_call_internal_fn): Likewise.
6545         (gimple_call_set_ctrl_altering): Likewise.
6546         (gimple_call_ctrl_altering_p): Likewise.
6547         (gimple_call_fntype): Likewise.
6548         (gimple_call_fn): Likewise.
6549         (gimple_call_fn_ptr): Likewise.
6550         (gimple_call_set_fndecl): Likewise.
6551         (gimple_call_fndecl): Likewise.
6552         (gimple_call_chain): Likewise.
6553         (gimple_call_num_args): Likewise.
6554         (gimple_call_arg): Likewise.
6555         (gimple_call_arg_ptr): Likewise.
6556         (gimple_call_set_arg): Likewise.
6557         (gimple_call_noreturn_p): Likewise.
6558         (gimple_cond_code): Likewise.
6559         (gimple_cond_lhs): Likewise.
6560         (gimple_cond_rhs): Likewise.
6561         (gimple_has_lhs): Reduce checking.
6563 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6565         PR middle-end/25529
6566         * match.pd (div (mult @0 @1) @1) : New simplifier.
6568 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
6570         PR target/67071
6571         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
6572         predicate to allow construction of vector constants using the
6573         VSLDOI vector shift instruction.
6575         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
6576         declaration.
6578         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
6579         the number of bytes to be shifted left and filled in with either
6580         all zero or all one bits.
6581         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
6582         methods exist.
6583         (output_vec_const_move): On power8, generate XXLORC to generate
6584         a vector constant with all 1's. Do a split if we need to use a
6585         VSLDOI instruction.
6587         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
6588         properly test for the MSB.
6590         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
6591         vector constants that can be created with VSLDOI.
6593 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
6595         revert:
6596         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
6597         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
6598         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
6599         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
6600         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
6601         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
6602         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
6603         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
6604         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
6606 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
6608         * config/xtensa/constraints.md (define_constraint "Y"): New
6609         constraint.
6610         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
6611         * config/xtensa/linux.h (ASM_SPEC): Likewise.
6612         * config/xtensa/predicates.md (move_operand): Match constants
6613         and symbols in the presence of TARGET_AUTO_LITPOOLS.
6614         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
6615         immediate references to TLS data.
6616         (xtensa_emit_move_sequence): Don't force constants to memory in
6617         the presence of TARGET_AUTO_LITPOOLS.
6618         (print_operand): Add 'y' format, same as default, but capable of
6619         printing SF mode constants as well.
6620         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
6621         (movsf_internal): Add movi pattern that loads literal.
6622         (movsf, movdf): Don't force constants to memory in the presence
6623         of TARGET_AUTO_LITPOOLS.
6624         (movdf_internal): Add 'Y' constraint.
6625         * config/xtensa/xtensa.opt (mauto-litpools): New option.
6626         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
6628 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
6630         * config/arm/arm-fpus.def: Replace booleans with feature flags.
6631         Update comment.
6632         * config/arm/arm.c (ARM_FPU): Update macro.
6633         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
6634         (TARGET_FP16): Likewise.
6635         (TARGET_CRYPTO): Likewise.
6636         (TARGET_NEON): Likewise.
6637         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
6638         field features.
6640 2015-08-12  Tom de Vries  <tom@codesourcery.com>
6642         PR other/67092
6643         PR other/67098
6644         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
6645         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
6646         accordingly.  Mention default for --with-stage1-ldflags.
6648 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
6650         * config/arm/arm.h (arm_fpu_feature_set): New.
6651         (ARM_FPU_FSET_HAS): New.
6652         (FPU_FL_NONE): New.
6653         (FPU_FL_NEON): New.
6654         (FPU_FL_FP16): New.
6655         (FPU_FL_CRYPTO): New.
6657 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6659         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
6660         after -mcmodel=large -fPIC sorry.
6662 2015-08-12  Richard Biener  <rguenther@suse.de>
6664         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
6665         comparison operand order and commutative ternary op operand order.
6666         (sccvn_dom_walker::cond_stack): New state to track temporary
6667         expressions.
6668         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
6669         no longer valid.
6670         (sccvn_dom_walker::record_cond): Add a single temporary conditional
6671         expression.
6672         (sccvn_dom_walker::record_conds): Add a temporary conditional
6673         expressions and all related expressions also true/false.
6674         (sccvn_dom_walker::before_dom_children): Record temporary
6675         expressions based on the controlling condition of a single
6676         predecessor.  When trying to simplify a conditional statement
6677         lookup expressions we might have inserted earlier.
6679 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
6681         PR target/67127
6682         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
6683         to ARM core registers.
6685 2015-08-12  Nathan Sidwell  <nathan@acm.org>
6687         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
6688         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
6690 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
6692         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
6693         line with comments.
6694         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
6696 2015-08-12  Richard Biener  <rguenther@suse.de>
6698         * gimple.h (remove_pointer): New trait.
6699         (GIMPLE_CHECK2): New inline template function.
6700         (gassign::code_): New constant static member.
6701         (is_a_helper<const gassign *>): Add.
6702         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
6703         and forward to a new gassign overload with less checking and a
6704         cheaper way to access the operand.
6705         (gimple_assign_lhs_ptr): Likewise.
6706         (gimple_assign_set_lhs): Likewise.
6707         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
6708         Likewise.
6709         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
6710         Likewise.
6711         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
6712         Likewise.
6713         (gimple_assign_rhs_code): Likewise.
6714         * gimple.c (gassign::code_): Define.
6716 2015-08-12  Richard Biener  <rguenther@suse.de>
6718         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6719         Eliminate edges marked as not executable by SCCVN.
6720         * tree-ssa-sccvn.c: Include gimple-iterator.h.
6721         (cond_dom_walker): Rename to sccvn_dom_walker.
6722         (sccvn_dom_walker::before_dom_children): Value-number defs
6723         of all stmts.
6724         (run_scc_vn): Remove loop value-numbering all SSA names.
6725         Drop not visited SSA names to varying.
6727 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
6729         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
6730         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
6731         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
6732         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
6733         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
6734         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
6735         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
6736         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
6737         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
6739 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
6741         PR target/66954
6742         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
6743         to enum feature_priority and feature_list.
6744         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
6745         and isa_names_table.
6747 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
6749         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
6750         vect_induction_def.
6752 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6754         PR c/66098
6755         PR c/66711
6756         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
6757         account when deciding what was the command-line status.
6759 2015-08-11  Nathan Sidwell  <nathan@acm.org>
6761         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
6763         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
6764         we're not the only contributor to target phi.
6766 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
6768         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
6769         FIXED_REG0.
6771 2015-08-11  Tom de Vries  <tom@codesourcery.com>
6773         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
6775 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
6777         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
6778         with CPU_SLM.
6779         * config/i386/i386.md (cpu): Remove knl.
6781 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
6783         PR libgomp/65742
6784         PR middle-end/66332
6785         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
6786         open-coded sequence.
6787         * omp-low.c (oacc_process_reduction_data): Remove handline of
6788         GOMP_DEVICE_HOST_NONSHM.
6790         * lto-streamer-in.c (lto_input_mode_table): Adjust to
6791         GET_MODE_INNER changes.
6793 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
6794             Ilya Verbin  <ilya.verbin@intel.com>
6796         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
6798 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6800         * doc/options.texi (EnabledBy): Document that the argument must be
6801         a Common option.
6802         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
6803         Not enabled by -Wall.
6804         * optc-gen.awk: Give nicer error messages. Detect if the argument
6805         of EnabledBy is not a Common option.
6806         * common.opt (Wnull-dereference): Not enabled by -Wall.
6807         * opt-functions.awk (lang_enabled_by): Nicer error messages.
6809 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
6811         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
6812         model == 0x4f as Broadwell.
6814 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
6816         PR rtl-optimization/67028
6817         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
6818         Add test to see if a const_int fits in the new mode.
6820 2015-08-07  DJ Delorie  <dj@redhat.com>
6822         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
6824 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
6826         PR rtl-optimization/67029
6827         * ira-color.c: Include "recog.h" before including "ira-int.h".
6828         * target-globals.c: Likewise.
6829         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
6830         adds an alternative_mask argument and use it instead of
6831         preferred_alternatives.
6832         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
6833         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
6834         * sched-deps.c: Include "ira-int.h" after including "ira.h".
6835         (sched_analyze_insn): Update call to
6836         ira_implicitly_set_insn_hard_regs.
6837         * sel-sched.c: Include "ira-int.h" after including "ira.h".
6838         (implicit_clobber_conflict_p): Update call to
6839         ira_implicitly_set_insn_hard_regs.
6841 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
6843         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
6845 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
6847         PR target/67002
6848         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
6849         currently_expanding_to_rtl is set.
6851 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
6853         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
6854         * configure: Regenerate.
6856 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6857             Jiong Wang  <jiong.wang@arm.com>
6859         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
6860         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
6861         (REG_CLASS_NAMES): Likewise.
6862         (REG_CLASS_CONTENTS): Likewise.
6863         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
6864         (aarch64_register_move_cost): Likewise.
6865         (aarch64_load_symref_appropriately): Invoke the new added pattern if
6866         possible.
6867         * config/aarch64/constraints.md (Uc0): New constraint.
6869 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
6871         * config/aarch64/constraints.md (Usf): Add the test of
6872         aarch64_is_noplt_call_p.
6874 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
6876         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
6877         declaration.
6878         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
6879         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
6880         (call_symbol): Likewise.
6882 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
6884         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
6885         for vectorizing multiplication patterns.
6886         * tree-vectorizer.h: Adjust the number of patterns.
6888 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
6890         * config/i386/sse.md (*vec_concatv2df): Declare added
6891         alternatives as sselog type.
6893 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6895         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
6896         all GPRs.
6898 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6900         * config/s390/s390.c (s390_expand_tbegin): Expand either
6901         tbegin_1_z13 or tbegin_1 depending on VX flag.
6902         * config/s390/s390.md ("tbegin_1_z13"): New expander.
6904 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6906         * config/s390/s390.opt: Clarify description for -mzvector
6907         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
6908         -mzvector.
6910 2015-08-06  Richard Biener  <rguenther@suse.de>
6912         * gimple.h (gimple_call_set_fn): Access op member directly.
6913         (gimple_call_chain_ptr): Likewise.
6914         (gimple_call_set_chain): Likewise.
6915         (gimple_cond_lhs_ptr): Likewise.
6916         (gimple_cond_set_lhs): Likewise.
6917         (gimple_cond_rhs_ptr): Likewise.
6918         (gimple_cond_set_rhs): Likewise.
6919         (gimple_cond_true_label): Likewise.
6920         (gimple_cond_set_true_label): Likewise.
6921         (gimple_cond_set_false_label): Likewise.
6922         (gimple_cond_false_label): Likewise.
6923         (gimple_label_label): Likewise.
6924         (gimple_label_set_label): Likewise.
6925         (gimple_goto_set_dest): Likewise.
6926         (gimple_asm_input_op): Likewise.
6927         (gimple_asm_input_op_ptr): Likewise.
6928         (gimple_asm_set_input_op): Likewise.
6929         (gimple_asm_output_op): Likewise.
6930         (gimple_asm_output_op_ptr): Likewise.
6931         (gimple_asm_set_output_op): Likewise.
6932         (gimple_asm_clobber_op): Likewise.
6933         (gimple_asm_set_clobber_op): Likewise.
6934         (gimple_asm_label_op): Likewise.
6935         (gimple_asm_set_label_op): Likewise.
6936         (gimple_switch_index): Likewise.
6937         (gimple_switch_index_ptr): Likewise.
6938         (gimple_return_retval_ptr): Likewise.
6939         (gimple_return_retval): Likewise.
6940         (gimple_return_set_retval): Likewise.
6941         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
6942         (gimple_switch_label): Likewise.
6943         (gimple_switch_set_label): Likewise.
6945 2015-08-06  Richard Biener  <rguenther@suse.de>
6947         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
6948         bool comparison canonicalization and restrict to integers.
6950 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
6952         * coretypes.h (enum symbol_visibility): Relocate here.
6953         * flag-types.h (enum symbol_visibility): Remove.
6954         * tree-core.h (enum symbol_visibility): Remove.
6956 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
6958         PR target/66870
6959         * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
6960         for no_split_stack function attribute along with
6961         flag_split_stack.
6962         (rs6000_expand_split_stack_prologue): Likewise.
6964 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6965             Jeff Law  <law@redhat.com>
6967         PR c/16351
6968         * doc/invoke.texi (Wnull-dereference): New.
6969         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
6970         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
6971         Warn for potential NULL dereferences.
6972         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
6973         * ubsan.c (instrument_nonnull_arg): Call
6974         infer_nonnull_range_by_attribute.
6975         (instrument_nonnull_return): Likewise.
6976         * common.opt (Wnull-dereference); New.
6977         * gimple.c (infer_nonnull_range): Remove bool arguments.
6978         (infer_nonnull_range_by_dereference): New.
6979         (infer_nonnull_range_by_attribute): New.
6980         * gimple.h: Update declarations.
6982 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
6984         * gensupport.c (sequence_num): Replace with...
6985         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
6986         ...these new variables.
6987         (init_rtx_reader_args_cb): Update accordingly.
6988         (get_num_code_insns): Likewise.
6989         (read_md_rtx): Rework to use a while loop and get_c_test.
6990         Use the new counters.  Remove redundant DEFINE_SUBST case.
6991         * genoutput.c (gen_split): Delete.
6992         (main): Don't call it.
6994 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
6996         * gensupport.h (get_c_test): Declare.
6997         * gensupport.c (get_c_test): New function.
6998         * genconditions.c (main): Use it.
6999         * genrecog.c (validate_pattern): Likewise.
7000         (match_pattern_1): Likewise.  Remove c_test argument.
7001         (match_pattern): Update accordingly and remove c_test argument.
7002         (main): Update accordingly.
7004 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
7006         * gensupport.h (get_num_insn_codes): Declare.
7007         * gensupport.c (get_num_insn_codes): New function.
7008         * genattrtab.c (optimize_attrs): Rename max_insn_code to
7009         num_insn_codes.
7010         (main): Likewise.  Use get_num_insn_codes.
7011         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
7013 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
7015         PR middle-end/66311
7016         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
7017         is zero- rather than sign-extended.
7019 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
7021         * target-insns.def (can_extend): Delete.
7023 2015-08-05  Richard Biener  <rguenther@suse.de>
7025         PR tree-optimization/67121
7026         * tree-if-conv.c (combine_blocks): Clear range-info produced
7027         by stmts no longer executed conditionally.
7029 2015-08-05  Nick Clifton  <nickc@redhat.com>
7031         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
7032         to allow identical far pointers to remain.
7034 2015-08-05  Richard Biener  <rguenther@suse.de>
7036         PR middle-end/67120
7037         * match.pd: Compare address bases with == if they are decls
7038         or SSA names, not operand_equal_p.  Otherwise fail.
7040 2015-08-05  Richard Biener  <rguenther@suse.de>
7042         PR tree-optimization/67055
7043         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
7044         NULL gimple_block.
7046         * g++.dg/torture/pr67055.C: New testcase.
7048 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
7050         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
7051         noavx512vl.
7052         (define_attr "enabled"): Handle avx521vl and noavx512vl.
7053         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
7054         AVX-512 alternative out of SSE.
7055         (define_insn "*vec_concatv2df"): Ditto.
7057 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
7059         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
7060         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
7061         CODE_FOR_avx_ptestv4di.
7062         * config/i386/sse.md (define_mode_iterator V_AVX): New.
7063         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
7064         (define_insn "avx_ptest256"): Merge this ...
7065         (define_insn "sse4_1_ptest"): And this ...
7066         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
7068 2015-08-05  Richard Biener  <rguenther@suse.de>
7070         PR tree-optimization/67109
7071         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
7072         against too big groups.  Print whether this is a load or store
7073         group.  Rename from ...
7074         (vect_analyze_group_access): ... this which is now a wrapper
7075         dissolving an invalid group.
7076         (vect_analyze_data_ref_accesses): Print whether this is a load
7077         or store group.
7079 2015-08-05  Richard Biener  <rguenther@suse.de>
7081         PR middle-end/67107
7082         * match.pd: Guard const_binop result checking against NULL_TREE
7083         result.
7085 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
7087         * cse.c (cse_insn): Restoring old behaviour for src_eqv
7088          when dest and value in the REG_EQUAL are same and dest
7089          is STRICT_LOW_PART.
7091 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
7093         * config/moxie/moxie.h (PRINT_OPERAND,
7094           PRINT_OPERAND_ADDRESS): Remove macros.
7095         * config/moxie/moxie-protos.h (moxie_print_operand,
7096           moxie_print_operand_address): Remove declaration.
7097         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
7098           TARGET_PRINT_OPERAND_ADDRESS): Define.
7099           (moxie_print_operand, moxie_print_operand_address): Make static.
7101 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7103         PR target/66731
7104         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
7105         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
7107 2015-08-04  Richard Biener  <rguenther@suse.de>
7109         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
7110         generated code.
7111         (dt_operand::gen_gimple_expr): Adjust.
7113 2015-08-04  Richard Biener  <rguenther@suse.de>
7115         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
7116         bool compares on RHS.
7117         * match.pd: Add X ==/!= !X is false/true pattern.
7119 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
7121         * config/aarch64/aarch64.c: Change inner loop statement cost
7122         to be consistent with other targets.
7124 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
7126         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
7127         targets.
7129 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
7131         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
7132         (machine_function): Remove pseudos field.
7134 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7136         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
7137         Exit early and use target_option_current_node if processing current
7138         pragma.
7140 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7142         * doc/extend.texi (AArch64 Function Attributes): New node.
7143         (AArch64 Pragmas): Likewise.
7145 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7147         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
7148         Initialize simd builtins if TARGET_SIMD.
7149         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
7150         Make sure that the builtins are initialized only once no matter how
7151         many times the function is called.
7152         (aarch64_init_builtins): Unconditionally initialize crc builtins.
7153         (aarch64_relayout_simd_param): New function.
7154         (aarch64_simd_expand_args): Use above during argument expansion.
7155         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
7156         simd builtins if TARGET_SIMD.
7157         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
7158         prototype.
7159         (aarch64_relayout_simd_types): Likewise.
7161 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7163         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
7164         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
7165         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
7166         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
7167         static keyword.
7168         (aarch64_reset_previous_fndecl): New function.
7169         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
7170         the string.
7171         * config/aarch64/aarch64-c.c: New file.
7172         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
7173         Push and pop options at beginning and end.  Remove ifdef
7174         __ARM_FEATURE_CRC32.
7175         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
7176         Add pragma +nothing+simd and +nothing+crypto where appropriate.
7177         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
7178         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
7179         Define prototype.
7180         (aarch64_register_pragmas): Likewise.
7181         (aarch64_reset_previous_fndecl): Likewise.
7182         (aarch64_process_target_attr): Likewise.
7183         (aarch64_override_options_internal): Likewise.
7185 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7187         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
7188         New function.
7189         (aarch64_can_inline_p): Likewise.
7190         (TARGET_CAN_INLINE_P): Define.
7192 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7194         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
7195         Remove static.  Handle OPT_mgeneral_regs_only,
7196         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
7197         OPT_momit_leaf_frame_pointer.
7198         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
7199         (aarch64_attr_opt_type): New enum.
7200         (aarch64_attribute_info): New struct.
7201         (aarch64_handle_attr_arch): New function.
7202         (aarch64_handle_attr_cpu): Likewise.
7203         (aarch64_handle_attr_tune): Likewise.
7204         (aarch64_handle_attr_isa_flags): Likewise.
7205         (aarch64_attributes): New table.
7206         (aarch64_process_one_target_attr): New function.
7207         (num_occurences_in_str): Likewise.
7208         (aarch64_process_target_attr): Likewise.
7209         (aarch64_option_valid_attribute_p): Likewise.
7210         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
7211         * config/aarch64/aarch64-protos.h: Include input.h
7212         (aarch64_handle_option): Declare prototype.
7214 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7216         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
7217         * config/aarch64/aarch64.c: Include target-globals.h
7218         (aarch64_previous_fndecl): New variable.
7219         (aarch64_set_current_function): New function.
7220         (TARGET_SET_CURRENT_FUNCTION): Define.
7222 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7224         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
7225         (explicit_arch): Likewise.
7226         (x_aarch64_isa_flags): Likewise.
7227         (mgeneral-regs-only): Mark as Save.
7228         (mfix-cortex-a53-835769): Likewise.
7229         (mcmodel=): Likewise.
7230         (mstrict-align): Likewise.
7231         (momit-leaf-frame-pointer): Likewise.
7232         (mtls-dialect): Likewise.
7233         (master=): Likewise.
7234         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
7235         (aarch64_isa_flags): Remove extern declaration.
7236         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
7237         to indicate success or failure.
7238         (aarch64_validate_march): Likewise.
7239         (aarch64_validate_mtune): Likewise.
7240         (aarch64_isa_flags): Delete.
7241         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
7242         instead of aarch64_isa_flags.
7243         (aarch64_get_tune_cpu): New function.
7244         (aarch64_get_arch): Likewise.
7245         (aarch64_override_options): Use above and set up explicit_tune_core
7246         and explicit_arch.
7247         (aarch64_print_extension): Move earlier in file.  Add isa_flags
7248         argument and use that instead of the global aarch64_isa_flags.
7249         (aarch64_option_save): New function.
7250         (aarch64_option_restore): Likewise.
7251         (aarch64_option_print): Likewise.
7252         (aarch64_declare_function_name): Likewise.
7253         (aarch64_start_file): Delete.
7254         (TARGET_ASM_FILE_START): Do not define.
7255         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
7256         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
7257         Declare prototype.
7259 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7261         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
7262         flag_omit_leaf_frame_pointer to 2.
7264 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7266         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
7267         define to 0 or 1.
7268         (TARGET_FIX_ERR_A53_835769): New macro.
7269         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
7270         handling of opts->x_aarch64_fix_a53_err835769.
7271         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
7272         than aarch64_fix_a53_err835769.
7273         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
7274         * config/aarch64/aarch64-linux.h: Likewise.
7276 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
7278         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
7279         ix86_expand_int_movcc as boolean.
7281 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7283         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
7284         (aarch64_cpu_string): Likewise.
7285         (aarch64_tune_string): Likewise.
7286         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
7287         (aarch64_parse_extension): Return aarch64_parse_opt_result.
7288         Add extra argument to put result into.
7289         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
7290         (aarch64_parse_cpu): Add arguments to put results into. Return
7291         aarch64_parse_opt_result.
7292         (aarch64_parse_tune): Likewise.
7293         (aarch64_override_options_after_change_1): New function.
7294         (aarch64_override_options_internal): New function.
7295         (aarch64_validate_mcpu): Likewise.
7296         (aarch64_validate_march): Likewise.
7297         (aarch64_validate_mtune): Likewise.
7298         (aarch64_override_options): Update to reflect above changes.
7299         Move some logic into aarch64_override_options_internal.
7300         Initialize target_option_default_node and target_option_current_node.
7301         (aarch64_override_options_after_change): Move logic into
7302         aarch64_override_options_after_change_1 and call it with global_options.
7303         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
7304         flag values from that.
7306 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7308         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
7309         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
7310         * config/aarch64/aarch64.c (struct processor): Add arch field.
7311         (all_architectures): Handle above, move above all_cores.
7312         (all_cores): Handle above.
7313         (aarch64_parse_arch): Handle above changes.
7314         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
7315         above.  Update comments.
7316         (armv8.1-a): Likewise.
7317         * config/aarch64/aarch64-cores.def: Update according to above.
7318         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
7319         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
7320         aarch64_arch_driver_info.
7322 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7324         * config/aarch64/aarch64.c (struct processor): Add ident field.
7325         Rename core sched_core.
7326         (all_cores): Handle above changes.
7327         (all_architectures): Likewise.
7328         (aarch64_parse_arch): Likewise.
7329         (aarch64_override_options): Likewise.
7331 2015-08-04  Richard Biener  <rguenther@suse.de>
7333         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
7334         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
7335         comparisons embedded in [VEC_]COND_EXPRs.
7337 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
7339         * tree-if-conv.c: Fix various typos in comments.
7340         * tree-vect-stmts.c: Likewise.
7342 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7344         PR tree-optimization/67043
7345         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
7346         preheader after hoisting invariant in it.
7347         (find_defs): Force recomputation of all luids.
7349 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
7351         * config/rs6000/htm.md (tabort.): Restrict the source operand to
7352         using a base register.
7354 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
7356         * main.c (main): Pass in NULL for toplev's external_timer.
7357         * timevar.c: Include coretypes.h.
7358         (class timer::named_items): New.
7359         (timer::named_items::named_items): New.
7360         (timer::named_items::~named_items): New.
7361         (timer::named_items::push): New.
7362         (timer::named_items::pop): New.
7363         (timer::named_items::print): New.
7364         (timer::timer): Initialize field "m_jit_client_items".
7365         (timer::~timer): New.
7366         (timer::push): Move bulk of implementation to...
7367         (timer::push_internal): ...here.  New function.
7368         (timer::pop): Move bulk of implementation to...
7369         (timer::pop_internal): ...here.  New function.
7370         (timer::push_client_item): New.
7371         (timer::pop_client_item): New.
7372         (timer::print_row): New function, taken from timer::print.
7373         (timer::print): Print "GCC items" header if we also have client
7374         items.  Move row-printing to timer::print_row.  Print any client
7375         items.
7376         (timer::get_topmost_item_name): New method.
7377         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
7378         (TV_JIT_CLIENT_CODE): New.
7379         * timevar.h (timer::push_client_item): New declaration.
7380         (timer::pop_client_item): New declaration.
7381         (timer::get_topmost_item_name): New method.
7382         (timer::push_internal): New declaration.
7383         (timer::pop_internal): New declaration.
7384         (timer::print_row): New declaration.
7385         (timer::named_items): New declaration.
7386         (timer::m_jit_client_items): New field.
7387         (timer): Add friend class named_items.
7388         (auto_timevar::auto_timevar): Add timer param.
7389         (auto_timevar::~auto_timevar): Use field "m_timer".
7390         (auto_timevar::m_timer): New field.
7391         * toplev.c (initialize_rtl): Add g_timer as param when
7392         constructing auto_timevar instance.
7393         (toplev::toplev): Add "external_timer" param, and use it to
7394         initialize the "g_timer" global if non-NULL.
7395         (toplev::~toplev): If this created "g_timer", delete it.
7396         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
7397         with "external_timer" timer *.
7399 2015-08-03  Alexander Basov <coohpt@gmail.com>
7401         PR middle-end/64744
7402         PR middle-end/48470
7403         PR middle-end/43404
7404         * cfgexpand.c (expand_one_var): Add check if stack is going to
7405         be used in naked function.
7406         * expr.c (expand_expr_addr_expr_1): Remove excess checking
7407         whether expression should not reside in MEM.
7408         * function.c (use_register_for_decl): Do not use registers for
7409         non-register things (volatile, float, BLKMode) in naked functions.
7411 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
7413         PR target/67060
7414         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
7415         Adjust splits to match new pattern.
7417 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
7419         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
7420         (VEC_M): Likewise.
7421         (VEC_N): Likewise.
7422         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
7423         point in VSX registers.
7425         * config/rs6000/constraints.md (wb constraint): Document unused
7426         w<x> constraint.
7427         (we constraint): Likewise.
7428         (wo constraint): Likewise.
7429         (wp constraint): New constraint for IEEE 128-bit floating point in
7430         VSX registers.
7431         (wq constraint): Likewise.
7433         * config/rs6000/predicates.md (easy_fp_constant): Add support for
7434         IEEE 128-bit floating point in VSX registers.
7435         (easy_scalar_constant): Likewise.
7437         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
7438         constraints (wp, wq) for IEEE 128-bit floating point in VSX
7439         registers.
7440         (rs6000_init_hard_regno_mode_ok): Likewise.
7442         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
7443         floating point in VSX registers.
7444         (VSX_L): Likewise.
7445         (VSX_M): Likewise.
7446         (VSX_M2): Likewise.
7447         (VSm): Likewise.
7448         (VSs): Likewise.
7449         (VSr): Likewise.
7450         (VSa): Likewise.
7451         (VSv): Likewise.
7452         (vsx_le_permute_<mode>): Add support to properly swap bytes for
7453         IEEE 128-bit floating point in VSX registers on little endian.
7454         (vsx_le_undo_permute_<mode>): Likewise.
7455         (vsx_le_perm_load_<mode>): Likewise.
7456         (vsx_le_perm_store_<mode>): Likewise.
7457         (splitters for IEEE 128-bit fp moves): Likewise.
7459         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
7460         wq constraints.
7462         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
7463         floating point in VSX registers.
7464         (VM2): Likewise.
7466         * doc/md.text (Machine Constraints): Document wp and wq
7467         constraints on PowerPC.
7469 2015-08-03  Jeff Law  <law@redhat.com>
7471         PR middle-end/66314
7472         PR gcov-profile/66899
7473         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
7474         iterate over the jump threading paths when an element in the
7475         jump threading paths array is eliminated.
7477 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
7479         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
7481 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
7483         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
7484         is_use_properly_guarded the variable def_preds.  Free its
7485         contents before returning.
7486         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
7487         (is_use_properly_guarded): Replace local variable def_preds with
7488         a parameter.  Adjust accordingly.  Only update *def_preds if it's
7489         the empty vector.
7491 2015-08-03  Richard Biener  <rguenther@suse.de>
7493         * genmatch.c (simplify::for_subst_vec): New member.
7494         (binary_ok): New helper for for lowering.
7495         (lower_for): Delay substituting operators into result expressions
7496         if we can merge the results eventually again.
7497         (capture_info::walk_result): Adjust for user_id appearing as
7498         result expression operator.
7499         (expr::gen_transform): Likewise.
7500         (dt_simplify::gen_1): Likewise.
7501         (dt_simplify::gen): Pass not substituted operators to tail
7502         functions or initialize local variable with it.
7503         (decision_tree::gen): Adjust function signature.
7504         * match.pd: Fix tests against global code and add default
7505         cases to switch stmts.
7507 2015-08-03  Richard Biener  <rguenther@suse.de>
7509         * genmatch.c (dt_simplify::gen): Create captures array
7510         with an initializer.
7512 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7514         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
7515         the host compiler is affected by placement new aliasing bug.
7516         * configure: Regenerate.
7517         * Makefile.in (ALIASING_FLAGS): New variable.
7518         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
7520 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7522         PR target/66731
7523         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
7524         (negmulsf3_vfp): Likewise.
7525         (muldf3negdf_vfp): Disable for -frounding-math.
7526         (mulsf3negsf_vfp): Likewise.
7527         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
7528         fix MULT cost with -frounding-math.
7530 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7532         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
7533         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
7534         explicit.  Prefer to add the flag whenever possible.
7535         (noce_process_if_block): Try noce_try_store_flag_constants before
7536         noce_try_cmove.
7538 2015-08-03  Richard Biener  <rguenther@suse.de>
7540         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
7541         New hash-map to record equivalent transforms.
7542         (dt_node::analyze): Populate the equivalent transforms hash-map.
7543         (dt_simplify::info): Add reference to hash-map entry.
7544         (dt_simplify::gen): If we have split out a function for the
7545         transform, generate a call to it.
7546         (sinfo_hashmap_traits::hash): New function.
7547         (compare_op): New helper function for ...
7548         (sinfo_hashmap_traits::equal_keys): ... this new function.
7549         (decision_tree::gen): Split out common equivalent transforms
7550         into functions.
7552 2015-08-03  Richard Biener  <rguenther@suse.de>
7554         * gimple-fold.c (fold_gimple_assign): Remove folding of
7555         the comparison in COND_EXPRs.
7557 2015-08-03  Richard Biener  <rguenther@suse.de>
7559         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
7560         on the rhs of assignments first simplify the embedded
7561         GENERIC condition.
7563 2015-08-03  Richard Biener  <rguenther@suse.de>
7565         PR tree-optimization/66917
7566         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
7567         field.
7568         (DR_VECT_AUX): New macro.
7569         (set_dr_misalignment): Adjust.
7570         (dr_misalignment): Likewise.
7571         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
7572         Compute whether the base is at least element aligned.
7573         * tree-vect-stmts.c (ensure_base_align): Adjust.
7574         (vectorizable_store): If the base is not element aligned
7575         preserve alignment of the original access if misalignment is unknown.
7576         (vectorizable_load): Likewise.
7578 2015-08-02  Martin Sebor  <msebor@redhat.com>
7580         * c-family/c.opt (-Wframe-address): New warning option.
7581         * doc/invoke.texi (Wframe-address): Document it.
7582         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
7583         Clarify possible effects of calling the functions with non-zero
7584         arguments and mention -Wframe-address.
7585         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
7587 2015-08-01  Michael Collison  <michael.collison@linaro.org
7588             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7590         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
7591         (*arm_umin_cmp): Likewise.
7593 2015-08-01  Caroline Tice  <cmtice@google.com>
7595         PR 66521
7596         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
7597         global variables.
7598         (vtbl_find_mangled_name):  New function.
7599         (vtbl_register_mangled_name):  New function.
7600         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
7601         mangled name in mangled name vectors.
7602         (find_or_create_vtbl_map_node):  Ditto.
7603         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
7604         update recursion_depth on function entry; pass it to every recursive
7605         call; automatically exit if depth > 25 (give up looking at that point).
7606         (verify_bb_vtables):  Initialize recursion_depth and pass it to
7607         var_is_used_for_virtual_call_p.
7608         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
7609         global variable decls.
7610         (vtbl_register_mangled_name): New extern function decl.
7612 2015-08-01  Tom de Vries  <tom@codesourcery.com>
7614         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
7615         function.
7616         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
7617         Declare.
7618         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
7619         operation_no_trapping_overflow.  Allow non-overflow operations.
7620         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
7621         operations.
7623 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
7625         PR target/67049
7626         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
7628 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7630         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
7631         Enable for TARGET_32BIT.
7632         (*if_move_neg): Likewise.
7634 2015-07-31  Nick Clifton  <nickc@redhat.com>
7636         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
7637         Returns true for __model__.
7638         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
7640 2015-07-31  Alan Modra  <amodra@gmail.com>
7642         PR target/66870
7643         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
7644         (rs6000_emit_prologue): Set it.
7645         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
7647 2015-07-31  Richard Biener  <rguenther@suse.de>
7649         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
7650         -> X == (C1 ^ C2) which is already implemented in match.pd.
7651         Remove redundant dispatching to fold_relational_const.
7652         Move unordered self and NaN compares ...
7653         * match.pd: ... as patterns here.  Remove some stray captures
7654         and add a comment.
7656 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
7658         * config/i386/i386.c
7659         (bdesc_special_args): Convert mask type from signed to unsigned for
7660         masked builtins.
7661         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
7662         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
7663         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
7664         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
7665         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
7666         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
7667         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
7668         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
7669         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
7670         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
7671         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
7672         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
7673         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
7674         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
7675         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
7676         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
7677         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
7678         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
7679         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
7680         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
7681         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
7682         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
7683         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
7684         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
7685         * config/i386/i386-builtin-types.def
7686         (V16QI_FTYPE_V16SI): Remove.
7687         (V8DF_FTYPE_V8SI): Ditto.
7688         (V8HI_FTYPE_V8DI): Ditto.
7689         (V8SI_FTYPE_V8DI): Ditto.
7690         (V8SF_FTYPE_V8DF): Ditto.
7691         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
7692         (V16HI_FTYPE_V16SI): Ditto.
7693         (V16SF_FTYPE_V16HI): Ditto.
7694         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
7695         (V16SF_FTYPE_V16SI): Ditto.
7696         (V4DI_FTYPE_V4DI): Ditto.
7697         (V16SI_FTYPE_V16SF): Ditto.
7698         (V16SF_FTYPE_FLOAT): Ditto.
7699         (V8DF_FTYPE_DOUBLE): Ditto.
7700         (V8DI_FTYPE_INT64): Ditto.
7701         (V8DI_FTYPE_V4DI): Ditto.
7702         (V16QI_FTYPE_V8DI): Ditto.
7703         (UINT_FTYPE_V4SF): Ditto.
7704         (UINT64_FTYPE_V4SF): Ditto.
7705         (UINT_FTYPE_V2DF): Ditto.
7706         (UINT64_FTYPE_V2DF): Ditto.
7707         (V16SI_FTYPE_V16SI): Ditto.
7708         (V8DI_FTYPE_V8DI): Ditto.
7709         (V16SI_FTYPE_PV4SI): Ditto.
7710         (V16SF_FTYPE_PV4SF): Ditto.
7711         (V8DI_FTYPE_PV2DI): Ditto.
7712         (V8DF_FTYPE_PV2DF): Ditto.
7713         (V4DI_FTYPE_PV2DI): Ditto.
7714         (V4DF_FTYPE_PV2DF): Ditto.
7715         (V16SI_FTYPE_PV2SI): Ditto.
7716         (V16SF_FTYPE_PV2SF): Ditto.
7717         (V8DI_FTYPE_PV4DI): Ditto.
7718         (V8DF_FTYPE_PV4DF): Ditto.
7719         (V8SF_FTYPE_FLOAT): Ditto.
7720         (V4SF_FTYPE_FLOAT): Ditto.
7721         (V4DF_FTYPE_DOUBLE): Ditto.
7722         (V8SF_FTYPE_PV4SF): Ditto.
7723         (V8SI_FTYPE_PV4SI): Ditto.
7724         (V4SI_FTYPE_PV2SI): Ditto.
7725         (V8SF_FTYPE_PV2SF): Ditto.
7726         (V8SI_FTYPE_PV2SI): Ditto.
7727         (V16SF_FTYPE_PV8SF): Ditto.
7728         (V16SI_FTYPE_PV8SI): Ditto.
7729         (V8DI_FTYPE_V8SF): Ditto.
7730         (V4DI_FTYPE_V4SF): Ditto.
7731         (V2DI_FTYPE_V4SF): Ditto.
7732         (V64QI_FTYPE_QI): Ditto.
7733         (V32HI_FTYPE_HI): Ditto.
7734         (V8UHI_FTYPE_V8UHI): Ditto.
7735         (V16UHI_FTYPE_V16UHI): Ditto.
7736         (V32UHI_FTYPE_V32UHI): Ditto.
7737         (V2UDI_FTYPE_V2UDI): Ditto.
7738         (V4UDI_FTYPE_V4UDI): Ditto.
7739         (V8UDI_FTYPE_V8UDI): Ditto.
7740         (V4USI_FTYPE_V4USI): Ditto.
7741         (V8USI_FTYPE_V8USI): Ditto.
7742         (V16USI_FTYPE_V16USI): Ditto.
7743         (V2DF_FTYPE_V2DF_UINT64): Ditto.
7744         (V2DI_FTYPE_V2DF_V2DF): Ditto.
7745         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
7746         (V8DF_FTYPE_V8DF_V8DI): Ditto.
7747         (V4SF_FTYPE_V4SF_UINT64): Ditto.
7748         (V4SI_FTYPE_V4SF_V4SF): Ditto.
7749         (V16SF_FTYPE_V16SF_V16SI): Ditto.
7750         (V64QI_FTYPE_V32HI_V32HI): Ditto.
7751         (V32HI_FTYPE_V16SI_V16SI): Ditto.
7752         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
7753         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
7754         (V32HI_FTYPE_V64QI_V64QI): Ditto.
7755         (V32HI_FTYPE_V32HI_V32HI): Ditto.
7756         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
7757         (V16SI_FTYPE_V16SI_V4SI): Ditto.
7758         (V16SI_FTYPE_V16SI_V16SI): Ditto.
7759         (V16SI_FTYPE_V32HI_V32HI): Ditto.
7760         (V16SI_FTYPE_V16SI_SI): Ditto.
7761         (V8DI_FTYPE_V8DI_V8DI): Ditto.
7762         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
7763         (V8DI_FTYPE_V16SI_V16SI): Ditto.
7764         (V8DI_FTYPE_V8DI_V2DI): Ditto.
7765         (QI_FTYPE_QI): Ditto.
7766         (SI_FTYPE_SI): Ditto.
7767         (DI_FTYPE_DI): Ditto.
7768         (QI_FTYPE_QI_QI): Ditto.
7769         (QI_FTYPE_QI_INT): Ditto.
7770         (HI_FTYPE_HI_INT): Ditto.
7771         (SI_FTYPE_SI_INT): Ditto.
7772         (DI_FTYPE_DI_INT): Ditto.
7773         (HI_FTYPE_V16QI_V16QI): Ditto.
7774         (SI_FTYPE_V32QI_V32QI): Ditto.
7775         (DI_FTYPE_V64QI_V64QI): Ditto.
7776         (QI_FTYPE_V8HI_V8HI): Ditto.
7777         (HI_FTYPE_V16HI_V16HI): Ditto.
7778         (SI_FTYPE_V32HI_V32HI): Ditto.
7779         (QI_FTYPE_V4SI_V4SI): Ditto.
7780         (QI_FTYPE_V8SI_V8SI): Ditto.
7781         (QI_FTYPE_V2DI_V2DI): Ditto.
7782         (QI_FTYPE_V4DI_V4DI): Ditto.
7783         (QI_FTYPE_V8DI_V8DI): Ditto.
7784         (HI_FTYPE_V16SI_V16SI): Ditto.
7785         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
7786         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
7787         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
7788         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
7789         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
7790         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
7791         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
7792         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
7793         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
7794         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
7795         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
7796         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
7797         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
7798         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
7799         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
7800         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
7801         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
7802         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
7803         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
7804         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
7805         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
7806         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
7807         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
7808         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
7809         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
7810         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
7811         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
7812         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
7813         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
7814         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
7815         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
7816         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
7817         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
7818         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
7819         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
7820         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
7821         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
7822         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
7823         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
7824         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
7825         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
7826         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
7827         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
7828         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
7829         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
7830         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
7831         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
7832         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
7833         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
7834         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
7835         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
7836         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
7837         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
7838         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
7839         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
7840         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
7841         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
7842         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
7843         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
7844         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
7845         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
7846         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
7847         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
7848         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
7849         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
7850         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
7851         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
7852         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
7853         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
7854         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
7855         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
7856         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
7857         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
7858         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
7859         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
7860         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
7861         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
7862         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
7863         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
7864         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
7865         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
7866         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
7867         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
7868         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
7869         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
7870         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
7871         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
7872         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
7873         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
7874         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
7875         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
7876         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
7877         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
7878         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
7879         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
7880         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
7881         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
7882         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
7883         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
7884         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
7885         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
7886         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
7887         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
7888         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
7889         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
7890         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
7891         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
7892         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
7893         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
7894         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
7895         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
7896         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
7897         (HI_FTYPE_HI): Ditto.
7898         (HI_FTYPE_V16QI): Ditto.
7899         (SI_FTYPE_V32QI): Ditto.
7900         (DI_FTYPE_V64QI): Ditto.
7901         (QI_FTYPE_V8HI): Ditto.
7902         (HI_FTYPE_V16HI): Ditto.
7903         (SI_FTYPE_V32HI): Ditto.
7904         (QI_FTYPE_V4SI): Ditto.
7905         (QI_FTYPE_V8SI): Ditto.
7906         (HI_FTYPE_V16SI): Ditto.
7907         (QI_FTYPE_V2DI): Ditto.
7908         (QI_FTYPE_V4DI): Ditto.
7909         (QI_FTYPE_V8DI): Ditto.
7910         (V16QI_FTYPE_HI): Ditto.
7911         (V32QI_FTYPE_SI): Ditto.
7912         (V64QI_FTYPE_DI): Ditto.
7913         (V8HI_FTYPE_QI): Ditto.
7914         (V16HI_FTYPE_HI): Ditto.
7915         (V32HI_FTYPE_SI): Ditto.
7916         (V4SI_FTYPE_QI): Ditto.
7917         (V4SI_FTYPE_HI): Ditto.
7918         (V8SI_FTYPE_QI): Ditto.
7919         (V8SI_FTYPE_HI): Ditto.
7920         (V2DI_FTYPE_QI): Ditto.
7921         (V4DI_FTYPE_QI): Ditto.
7922         (HI_FTYPE_HI_HI): Ditto.
7923         (SI_FTYPE_SI_SI): Ditto.
7924         (DI_FTYPE_DI_DI): Ditto.
7925         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
7926         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
7927         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
7928         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
7929         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
7930         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
7931         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
7932         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
7933         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
7934         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
7935         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
7936         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
7937         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
7938         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
7939         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
7940         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
7941         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
7942         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
7943         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
7944         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
7945         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
7946         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
7947         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
7948         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
7949         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
7950         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
7951         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
7952         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
7953         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
7954         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
7955         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
7956         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
7957         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
7958         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
7959         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
7960         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
7961         (V16SI_FTYPE_HI): Ditto.
7962         (V8DI_FTYPE_QI): Ditto.
7963         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
7964         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
7965         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
7966         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
7967         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
7968         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
7969         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
7970         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
7971         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
7972         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
7973         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
7974         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
7975         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
7976         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
7977         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
7978         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
7979         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
7980         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
7981         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
7982         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
7983         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
7984         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
7985         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
7986         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
7987         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
7988         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
7989         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
7990         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
7991         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
7992         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
7993         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
7994         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
7995         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
7996         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
7997         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
7998         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
7999         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
8000         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
8001         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
8002         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
8003         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
8004         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
8005         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
8006         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
8007         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
8008         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
8009         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
8010         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
8011         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
8012         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
8013         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
8014         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
8015         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
8016         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
8017         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
8018         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
8019         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
8020         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
8021         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
8022         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
8023         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
8024         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
8025         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
8026         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
8027         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
8028         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
8029         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
8030         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
8031         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
8032         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
8033         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
8034         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
8035         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
8036         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
8037         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
8038         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
8039         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
8040         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
8041         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
8042         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
8043         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
8044         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
8045         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
8046         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
8047         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
8048         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
8049         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
8050         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
8051         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
8052         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
8053         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
8054         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
8055         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
8056         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
8057         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
8058         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
8059         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
8060         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
8061         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
8062         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
8063         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
8064         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
8065         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
8066         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
8067         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
8068         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
8069         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
8070         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
8071         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
8072         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
8073         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
8074         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
8075         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
8076         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
8077         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
8078         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
8079         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
8080         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
8081         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
8082         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
8083         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
8084         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
8085         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
8086         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
8087         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
8088         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
8089         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
8090         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
8091         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
8092         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
8093         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
8094         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
8095         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
8096         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
8097         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
8098         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
8099         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
8100         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
8101         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
8102         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
8103         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
8104         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
8105         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
8106         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
8107         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
8108         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
8109         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
8110         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
8111         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
8112         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
8113         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
8114         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
8115         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
8116         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
8117         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
8118         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
8119         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
8120         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
8121         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
8122         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
8123         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
8124         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
8125         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
8126         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
8127         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
8128         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
8129         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
8130         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
8131         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
8132         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
8133         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
8134         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
8135         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
8136         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
8137         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
8138         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
8139         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
8140         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
8141         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
8142         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
8143         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
8144         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
8145         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
8146         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
8147         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
8148         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
8149         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
8150         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
8151         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
8152         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
8153         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
8154         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
8155         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
8156         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
8157         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
8158         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
8159         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
8160         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
8161         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
8162         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
8163         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
8164         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
8165         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
8166         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
8167         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
8168         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
8169         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
8170         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
8171         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
8172         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
8173         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
8174         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
8175         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
8176         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
8177         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
8178         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
8179         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
8180         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
8181         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
8182         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
8183         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
8184         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
8185         (QI_FTYPE_V8DF_INT_QI): Ditto.
8186         (QI_FTYPE_V4DF_INT_QI): Ditto.
8187         (QI_FTYPE_V2DF_INT_QI): Ditto.
8188         (HI_FTYPE_V16SF_INT_HI): Ditto.
8189         (QI_FTYPE_V8SF_INT_QI): Ditto.
8190         (QI_FTYPE_V4SF_INT_QI): Ditto.
8191         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
8193 2015-07-31  Richard Biener  <rguenther@suse.de>
8195         * gimple-fold.c (fold_gimple_assign): Remove folding of
8196         GIMPLE_BINARY_RHS.
8198 2015-07-31  Tom de Vries  <tom@codesourcery.com>
8200         PR tree-optimization/66846
8201         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
8202         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
8203         (expand_omp_target) [ENABLE_CHECKING]: Same.
8204         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
8205         cfun if !LOOPS_NEED_FIXUP.
8206         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
8207         that omp_for already has its own loop struct.
8208         * tree-parloops.c (create_phi_for_local_result)
8209         (create_call_for_reduction): Handle simple latch bb.
8210         (create_parallel_loop): Add simple latch bb to preserve
8211         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
8212         (gen_parallel_loop): Remove call to cancel_loop_tree.
8213         (parallelize_loops): Skip loops that are inner loops of parallelized
8214         loops.
8215         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
8216         verify_loop_structure.
8218 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
8220         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
8221         * config/v850/v850.md (RV_REGNUM): New constants.
8222         * config/v850/v850.c (v850_libcall_value): New functions.
8223         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
8224         (TARGET_LIBCALL_VALUE): Define.
8226 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
8228         * rtl.h (lowpart_subreg): Move in file.
8229         * loop-iv.c (lowpart_subreg): Move to...
8230         * simplify-rtx.c (lowpart_subreg): ...here.
8231           (simplify_binary_operation_1): Use lowpart_subreg instead of
8232           simplify_gen_subreg.
8233         * expr.c (expand_expr_real_2): Ditto.
8234         * emit-rtl.c (gen_lowpart_common): Ditto.
8235         * combine.c (gen_lowpart_for_combine): Ditto.
8236         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
8237           expand_debug_source_expr): Ditto.
8239 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
8241         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
8242         (expand_builtin_atomic_clear): Remove support for atomic_clear
8243         pattern.
8245 2015-07-30  Richard Biener  <rguenther@suse.de>
8247         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
8248         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
8249         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
8250         redundant operand canonicalization.
8252 2015-07-30  David Sherwood  <david.sherwood@arm.com>
8254         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
8255         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
8256         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
8257         * config/arm/arm.c (neon_valid_immediate): Likewise.
8258         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
8259         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
8260         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
8261         (expand_vec_perm_vpshufb2_vpermq): Likewise.
8262         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
8263         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
8264         * config/i386/sse.md
8265         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
8266         (*ssse3_palignr<mode>_perm): Likewise.
8267         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
8268         * config/spu/spu.c (arith_immediate_p): Likewise.
8269         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
8270         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
8272 2015-07-30  Richard Biener  <rguenther@suse.de>
8274         * genmatch.c (decision_tree::gen_gimple): Merge with ...
8275         (decision_tree::gen_generic): ... this into ...
8276         (decision_tree::gen): ... this.
8277         (main): Adjust callers.
8279 2015-07-30  Richard Biener  <rguenther@suse.de>
8281         * genmatch.c (verbose): New global.
8282         (warning_at): Add overload with source_location.
8283         (capture_info::capture_info): Add bool whether generating gimple
8284         or generic.  Add gimple member.
8285         (capture_info::cinfo): Add capture member.
8286         (capture_info::walk_match): Record capture.  Warn on
8287         non-captured leafs.
8288         (capture_info::walk_c_expr): Add more fragments captures cannot
8289         escape through.  Warn on escaped captures.
8290         (dt_simplify::gen_1): Warn on operands we force to have no
8291         side-effects.
8292         (main): Initialize verbose.
8293         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
8295 2015-07-30  Richard Biener  <rguenther@suse.de>
8297         PR middle-end/67053
8298         * match.pd: Allow both operands to independently have conversion
8299         when simplifying compares of addresses.
8301 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
8303         PR target/66217
8304         PR target/67045
8305         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
8306         around those cases that need one.
8308 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
8310         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
8312 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
8314         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
8315         New.  Copied from config/i386/gnu-user.h.
8316         (ASM_COMMENT_START): Likewise.
8317         (DBX_REGISTER_NUMBER): Likewise.
8319 2015-07-29  Richard Biener  <rguenther@suse.de>
8321         * gimple-fold.c (fold_gimple_cond): Remove.
8322         (fold_stmt_1): Do not call it.
8324 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
8326         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
8327         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
8329         * config/aarch64/aarch64-modes.def: Add HFmode.
8331         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
8332         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
8334         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
8335         aarch64_promoted_type): New.
8337         (aarch64_float_const_representable_p): Disable HFmode.
8338         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
8339         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
8340         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
8342         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
8343         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
8345         * config/aarch64/iterators.md (GPF_F16): New.
8347 2015-07-29  Richard Biener  <rguenther@suse.de>
8349         * match.pd: Merge address comparison patterns and make them
8350         handle some more cases.
8352 2015-07-29  Richard Biener  <rguenther@suse.de>
8354         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
8355         (parser::parse_capture): Add bool argument on whether to reject
8356         unknown captures.
8357         (parser::parse_expr): Adjust.
8358         (parser::parse_op): Likewise.
8359         (parser::parse_pattern): Likewise.
8361 2015-07-29  Richard Biener  <rguenther@suse.de>
8363         * gimple-fold.c (has_use_on_stmt): New function.
8364         (replace_stmt_with_simplification): Use it to allow
8365         abnormals originally referenced in the stmt.
8366         (fold_stmt_1): Canonicalize operand order.
8368 2015-07-28  David Sherwood  <david.sherwood@arm.com>
8370         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
8371         GET_MODE_INNER unconditionally.
8372         * config/spu/spu.c (arith_immediate_p): Likewise.
8373         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
8374         * expmed.c (synth_mult): Remove check for VOIDmode result from
8375         GET_MODE_INNER.
8376         (expand_mult_const): Likewise.
8377         * fold-const.c (fold_binary_loc): Replace call to element_precision
8378         with call to GET_MODE_PRECISION.
8379         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
8380         m->name.
8381         (emit_mode_inner): Likewise.
8382         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
8383         result check.
8384         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
8385         (GET_MODE_UNIT_PRECISION): Likewise.
8386         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
8387         * simplify-rtx.c (simplify_immed_subreg): Likewise.
8388         * stor-layout.c (bitwise_type_for_mode): Update assert.
8389         (element_precision): Remove.
8391 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
8393         * target-insns.def (reload_load_address): New targetm instruction
8394         pattern.
8395         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
8397 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
8399         * target-insns.def (atomic_test_and_set): New targetm instruction
8400         pattern.
8401         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
8402         HAVE_*/gen_* interface.
8404 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
8406         * target-insns.def (can_extend, ptr_extend): New targetm instruction
8407         patterns.
8408         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
8409         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
8410         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
8411         * rtlanal.c (nonzero_bits1): Likewise.
8412         (num_sign_bit_copies1): Likewise.
8414 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
8416         * target-insns.def (eh_return): New targetm instruction pattern.
8417         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
8418         interface.
8419         * function.c (thread_prologue_and_epilogue_insns): Remove
8420         preprocessor condition.
8422 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
8424         * target-insns.def (indirect_jump): New targetm instruction pattern.
8425         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
8426         interface.
8428 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
8430         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
8431         instead of nonimmediate_operand.  Remove C condiition.
8433 2015-07-28  Richard Biener  <rguenther@suse.de>
8435         * match.pd: Add more simplification of address comparisons.
8437 2015-07-28  Richard Biener  <rguenther@suse.de>
8439         * match.pd: Re-order two cases in comparison with max/min
8440         value simplification to make it apply for bools.
8442 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8444         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
8445         Handle simple SIGN_EXTEND or ZERO_EXTEND.
8446         (aarch64_rtx_costs): Properly strip extend or extract before
8447         passing down to rtx costs again.
8449 2015-07-28  Nick Clifton  <nickc@redhat.com>
8451         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
8452         Optimizes the case where -mes0 is active and a constant symbolic
8453         address is used.
8454         * config/rl78/rl78-protos.h: Prototype the new function.
8455         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
8457 2015-07-28  Tom de Vries  <tom@codesourcery.com>
8459         * tree-parloops.c (reduc_stmt_res): New function.
8460         (initialize_reductions, add_field_for_reduction)
8461         (create_phi_for_local_result, create_loads_for_reductions)
8462         (create_stores_for_reduction, build_new_reduction): Handle case that
8463         reduc_stmt is a phi.
8464         (gather_scalar_reductions): Allow double_reduc reductions.
8466 2015-07-28  Richard Biener  <rguenther@suse.de>
8468         * fold-const.c (fold_comparison): Remove equality folding
8469         of decl addresses ...
8470         * match.pd: ... here and merge with existing pattern.
8472 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8474         PR tree-optimization/66828
8475         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
8476         from int64_t to uint64_t.
8478 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8480         * opts-common.c (read_cmdline_option): List DriverOnly enum values
8481         as valid only in the error message of the driver, not in the
8482         messages of the language compilers.
8484 2015-07-27  Tom de Vries  <tom@codesourcery.com>
8486         * tree-parloops.c (gather_scalar_reductions): Simplify function
8487         structure.
8489 2015-07-27  Marek Polacek  <polacek@redhat.com>
8491         * ipa-devirt.c (types_same_for_odr): Fix typo.
8493 2015-07-27  Jason Merrill  <jason@redhat.com>
8495         PR debug/66468
8496         * dwarf2out.c (gen_inlined_subroutine_die): Check
8497         cgraph_function_possibly_inlined_p.
8499 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
8501         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
8502         Place integer variant first.
8503         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
8505 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
8507         PR/63870
8508         * config/arm/arm-builtins.c (enum arm_builtins):
8509         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
8510         (ARM_BUILTIN_NEON_BASE): Rename macro to....
8511         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
8512         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
8513         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
8515 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
8517         PR/63870
8518         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
8519         Add qualifier_lane_index.
8520         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
8521         (arm_getlane_qualifiers): Use qualifier_lane_index.
8522         (arm_lanemac_qualifiers): Rename to...
8523         (arm_mac_n_qualifiers): ...this.
8524         (LANEMAC_QUALIFIERS): Rename to...
8525         (MAC_N_QUALIFIERS): ...this.
8526         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
8527         (arm_setlane_qualifiers): Use qualifier_lane_index.
8528         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
8529         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
8530         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
8531         (arm_expand_neon_builtin): Handle qualifier_lane_index.
8533         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
8534         * config/arm/arm.c (bounds_check): Likewise, improve error message.
8535         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
8536         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
8537         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
8538         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
8539         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
8540         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
8541         qualifiers to TERNOP_IMM.
8542         (vdup_lane): Change qualifiers to GETLANE.
8543         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
8544         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
8545         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
8546         vqdmlsl_n): Change qualifiers to MAC_N.
8548         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
8549         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
8550         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
8551         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
8552         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
8553         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
8554         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
8555         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
8556         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
8557         Remove call to neon_lane_bounds.
8559 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
8561         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
8562         Place integer variant first.
8564 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
8566         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
8567         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
8568         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
8569         for armv6kz targets.
8570         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
8571         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
8572         (FL_FOR_ARCH6ZK): Remove.
8573         (FL_FOR_ARCH6KZ): New.
8574         (arm_arch6zk): New declaration.
8575         * config/arm/arm-tables.opt: Regenerate.
8576         * config/arm/arm.c (arm_arch6kz): New.
8577         (arm_option_override): Set arm_arch6kz.
8578         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
8579         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
8580         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
8582 2015-07-27  Marek Polacek  <polacek@redhat.com>
8584         PR c++/66555
8585         PR c/54979
8586         * doc/invoke.texi: Document -Wtautological-compare.
8588 2015-07-27  Richard Biener  <rguenther@suse.de>
8590         * genmatch.c (decision_tree::gen_gimple): Split out large
8591         subtrees into separate functions.
8592         (decision_tree::gen_generic): Likewise.
8594 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
8596         * config/alpha/alpha.c: Use SUBREG_P predicate.
8597         * config/alpha/predicates.md: Ditto.
8599 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8601         * config.host (s390*-*-*): Include driver-native.c only when
8602         building with s390* as host *and* target.
8604 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
8606         PR target/66930
8607         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
8608         T bit register modified_between_p check.
8610 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
8612         * config/i386/i386.c: Use SUBREG_P predicate.
8613         * config/i386/i386.md: Ditto.
8614         * config/i386/sse.md: Ditto.
8615         * config/i386/predicates.md: Ditto.
8617 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
8619         PR target/67004
8620         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
8621         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
8623 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
8625         * Makefile.in: Remove use of TREEBROWSER.
8626         * config.in: Regenerated.
8627         * configure: Regenerated.
8628         * configure.ac: Remove definition of TREEBROWSER.
8629         * tree-browser.c: Removed.
8630         * tree-browser.def: Removed.
8632 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
8634         * graphite-scop-detection.c: Include gimple-pretty-print.h.
8635         (stmt_simple_for_scop_p): Print when a stmt is not handled in
8636         Graphite.
8637         (scopdet_basic_block_info): Print when a loop or bb cannot be
8638         represented in Graphite.
8640 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
8642         PR target/66648
8643         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
8644         execution guard when min_size is less than size_needed.
8646 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
8648         * doc/install.texi: Document supported versions of ISL.
8650 2015-07-25  Jeff Law  <law@redhat.com>
8652         Revert:
8653         PR lto/66752
8654         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
8655         unable to find X NE 0 in the tables, return X as the simplified
8656         condition.
8657         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
8658         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
8659         to VISISTED_BBS.  */
8660         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
8661         after removing the control flow statement and unnecessary edges.
8663 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
8665         Revert:
8666         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
8668         PR rtl-optimization/64164
8669         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8670         * tree-ssa-copyrename.c: Removed.
8671         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
8672         -ftree-coalesce-vars.
8673         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8674         * common.opt (ftree-copyrename): Ignore.
8675         (ftree-coalesce-inlined-vars): Likewise.
8676         * doc/invoke.texi: Remove the ignored options above.
8677         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8678         * tree-ssa-coalesce.h: ... here.
8679         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8680         headers required by it.
8681         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8682         across variables when flag_tree_coalesce_vars.  Check register
8683         use and promoted modes to allow coalescing.  Moved to
8684         tree-ssa-coalesce.c.
8685         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8686         with its member functions to tree-ssa-coalesce.c.
8687         (var_map_base_init): Likewise.  Renamed to
8688         compute_samebase_partition_bases.
8689         (partition_view_normal): Drop want_bases parameter.
8690         (partition_view_bitmap): Likewise.
8691         * tree-ssa-live.h: Adjust declarations.
8692         * tree-ssa-coalesce.c: Include explow.h.
8693         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8694         default defs at the entry point.
8695         (dump_part_var_map): New.
8696         (compute_optimized_partition_bases): New, called by...
8697         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8698         of compute_samebase_partition_bases.  Adjust.
8699         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8700         * cfgexpand.c (leader_merge): New.
8701         (get_rtl_for_parm_ssa_default_def): New.
8702         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8703         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8704         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
8705         redundant MEM attr setting.
8706         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
8707         from...
8708         (expand_one_stack_var): ... this.  New wrapper to check and
8709         skip already expanded SSA partitions.
8710         (record_alignment_for_reg_var): New, factored out of...
8711         (expand_one_var): ... this.
8712         (expand_one_ssa_partition): New.
8713         (adjust_one_expanded_partition_var): New.
8714         (expand_one_register_var): Check and skip already expanded SSA
8715         partitions.
8716         (expand_used_vars): Don't create DECLs for anonymous SSA
8717         names.  Expand all SSA partitions, then adjust all SSA names.
8718         (pass::execute): Replace the loops that set
8719         SA.partition_to_pseudo from partition leaders and cleared
8720         DECL_RTL for multi-location variables, and that which used to
8721         rename vars and set attrs, with one that clears DECL_RTL and
8722         checks that PARMs and RESULTs default_defs match DECL_RTL.
8723         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8724         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
8725         * explow.c (promote_ssa_mode): New.
8726         * explow.h (promote_ssa_mode): Declare.
8727         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8728         * function.c: Include cfgexpand.h.
8729         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8730         (use_register_for_parm_decl): Wrapper for the above to
8731         special-case the result_ptr.
8732         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8733         (split_complex_args): Take assign_parm_data_all argument.
8734         Pass it to rtl_for_parm.  Set up rtl and context for split
8735         args.
8736         (assign_parms_augmented_arg_list): Adjust.
8737         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8738         multiple locations.  Recognize split complex args.
8739         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8740         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
8741         (assign_parm_setup_block): Prefer SSA-assigned location.
8742         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
8743         if stack_parm is NULL.
8744         (assign_parm_setup_stack): Prefer SSA-assigned location.
8745         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
8746         rtl before testing for pointer bounds.  Special-case result_ptr.
8747         (expand_function_start): Maybe reset DECL_RTL of result.
8748         Prefer SSA-assigned location for result and static chain.
8749         Factor out DECL_RESULT and SET_DECL_RTL.
8750         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8751         anonymous SSA names.  Use promote_ssa_mode.
8752         (get_temp_reg): Likewise.
8753         (remove_ssa_form): Adjust.
8754         * stor-layout.c (layout_decl): Don't set mem attributes of
8755         non-MEMs.
8756         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8757         and get its reg_usage for reg invalidation.
8758         (compute_bb_dataflow): Pass it insn.
8759         (emit_notes_in_bb): Likewise.
8761 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
8763         * config/i386/i386.c (ix86_va_start): Remove
8764         unneeded !TARGET_64BIT check.
8765         (ix86_gimplify_va_arg): Ditto.
8767 2015-07-24  Tom de Vries  <tom@codesourcery.com>
8769         * graphite-sese-to-poly.c (build_poly_scop): Always call
8770         rewrite_commutative_reductions_out_of_ssa.
8772 2015-07-24  Tom de Vries  <tom@codesourcery.com>
8774         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
8775         flag_associative_math to FLOAT_TYPE_P.  Honour
8776         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
8778 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8780         PR c++/64079
8781         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
8782         and "%qD" in warning_at instead of "%q+D" in warning.
8784 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
8786         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
8787         (ix86_function_abi): Cleanup.
8789 2015-07-24  Michael Darling  <darlingm@gmail.com>
8791         PR other/66259
8792         * acinclude.m4: Reflects renaming of configure.in to configure.ac
8793         * configure: Likewise
8794         * configure.ac: Likewise
8795         * doc/install.texi: Likewise
8796         * doc/tm.texi: Likewise
8797         * doc/tm.texi.in: Likewise
8799 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8801         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
8802         manually swapping values.
8803         * cse.c (fold_rtx): Likewise.
8804         * lra-eliminations.c (form_sum): Likewise.
8806 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
8808         PR target/64003
8809         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
8810         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
8811         (*jcc_1, *jcc_2, jump, simple_return_internal)
8812         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
8813         Set length_nobnd attribute instead of length attribute.
8814         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
8815         (length_nobnd): Remove attribute.
8816         (length): Remove length_nobnd processing.
8818 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
8820         * gimplify.c (omp_default_clause): New function.  Reorganize flow
8821         for clarity. Broken out of ...
8822         (omp_notice_variable): ... here.
8824 2015-07-24  Gary Funck  <gary@intrepid.com>
8826         PR middle-end/66984
8827         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
8828         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
8830 2015-07-24  Tom de Vries  <tom@codesourcery.com>
8832         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
8833         exit-first loop transform.
8835 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
8837         PR 66714
8838         * tree-cfg.c (struct replace_decls_d): New struct.
8839         (replace_block_vars_by_duplicates_1): New function.
8840         (replace_block_vars_by_duplicates): Use it to replace the decls
8841         in the value exprs by duplicates.
8843 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8845         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
8846         -shared, -symbolic, -rdynamic.
8848 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8850         PR target/65711
8851         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
8852         -dynamic-linker within %{!static %{!shared, and -rdynamic within
8853         %{!static.
8855 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
8857         PR ipa/66566
8858         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
8859         edge summary is available.
8861 2015-07-24  Richard Biener  <rguenther@suse.de>
8863         * genmatch.c (struct dt_node): Add statistic fields.
8864         (dt_node::analyze): New method.
8865         (decision_tree::gen_gimple): Call analyze on the root node
8866         and print statistics to stderr.
8867         (decision_tree::gen_generic): Likewise.
8869 2015-07-24  Richard Biener  <rguenther@suse.de>
8871         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
8872         against the highest or lowest possible integer ...
8873         * match.pd: ... as patterns here.
8875 2015-07-24  Richard Biener  <rguenther@suse.de>
8877         * genmatch.c (struct capture_info): Add same_as field.
8878         (capture_info::capture_info): Initialize same_as.
8879         (capture_info::walk_match): Compute same_as.
8880         (capture_info::walk_result): Compute stuff for the leader.
8881         (capture_info::walk_c_expr): Likewise.
8882         (dt_simplify::gen_1): Only look at leaders when deciding
8883         to force no side-effects or emit side-effects of omitted operands.
8885 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8887         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
8888         reg note to the GPR -> FPR save instructions.
8890 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8892         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
8893         cheaper.
8894         (s390_expand_insv): Don't generate risbg pattern for constant zero
8895         sources.
8896         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
8897         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
8898         splitters.
8900 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8902         * config/s390/s390.c (s390_reorg): Clean up handling of processors
8903         with
8904         -mtune=
8905         (s390_issue_rate): Likewise.
8906         (s390_sched_reorder): Likewise.
8907         (s390_sched_variable_issue): Likewise.
8908         (s390_loop_unroll_adjust): Likewise.
8909         (s390_option_override):  Likewise.
8911 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8913         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
8914         processor capabilities with -march=native.
8915         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
8916         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
8917         (S390_TARGET_BITS_STRING): Macro to simplify specs.
8919 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8921         * config/s390/s390.c (s390_issue_rate): Handle
8922         PROCESSOR_2094_Z9_EC.
8923         (s390_option_override): Likewise.
8924         (s390_adjust_priority): Likewise.
8926 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8928         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
8929         when cross compiling.
8931 2015-07-24  Richard Biener  <rguenther@suse.de>
8933         * fold-const.c (maybe_canonicalize_comparison_1): Move
8934         A code CST canonicalization ...
8935         * match.pd: ... to a pattern here.
8937 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
8939         Revert:
8940         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
8941         PR target/63521
8942         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
8943         (HONOR_REG_ALLOC_ORDER): Define.
8945 2015-07-24  Richard Biener  <rguenther@suse.de>
8947         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
8948         * fold-const.c (fold_comparison): Move parameter does not
8949         alias &local simplification ...
8950         * match.pd: ... as a pattern here.
8952 2015-07-24  Richard Biener  <rguenther@suse.de>
8954         * gimple-fold.c (replace_stmt_with_simplification): Special-case
8955         valueizing call operands.
8956         * gimple-match-head.c (maybe_push_res_to_seq): Take
8957         number of call arguments from ops array.
8958         (do_valueize): New function.
8959         (gimple_simplify): Return true if valueization changed
8960         any operand even if the result didn't simplify further.
8962 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8964         PR middle-end/25530
8965         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
8967 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8969         PR middle-end/25529
8970         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
8972 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
8974         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
8975         instruction.
8977 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
8979         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
8980         clean up.
8982 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
8984         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
8985         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
8986         targets here.
8987         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
8988         ms_va_list_type_node initialization.
8990 2015-07-23  Jeff Law  <law@redhat.com>
8992         PR lto/66752
8993         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
8994         unable to find X NE 0 in the tables, return X as the simplified
8995         condition.
8996         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
8997         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
8998         to VISISTED_BBS.  */
8999         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
9000         after removing the control flow statement and unnecessary edges.
9002 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9004         * tree-pass.h (get_current_pass_name): Removed.
9006 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
9008         PR rtl-optimization/64164
9009         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
9010         * tree-ssa-copyrename.c: Removed.
9011         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
9012         -ftree-coalesce-vars.
9013         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
9014         * common.opt (ftree-copyrename): Ignore.
9015         (ftree-coalesce-inlined-vars): Likewise.
9016         * doc/invoke.texi: Remove the ignored options above.
9017         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
9018         * tree-ssa-coalesce.h: ... here.
9019         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
9020         headers required by it.
9021         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
9022         across variables when flag_tree_coalesce_vars.  Check register
9023         use and promoted modes to allow coalescing.  Moved to
9024         tree-ssa-coalesce.c.
9025         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9026         with its member functions to tree-ssa-coalesce.c.
9027         (var_map_base_init): Likewise.  Renamed to
9028         compute_samebase_partition_bases.
9029         (partition_view_normal): Drop want_bases parameter.
9030         (partition_view_bitmap): Likewise.
9031         * tree-ssa-live.h: Adjust declarations.
9032         * tree-ssa-coalesce.c: Include explow.h.
9033         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9034         default defs at the entry point.
9035         (dump_part_var_map): New.
9036         (compute_optimized_partition_bases): New, called by...
9037         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9038         of compute_samebase_partition_bases.  Adjust.
9039         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9040         * cfgexpand.c (leader_merge): New.
9041         (get_rtl_for_parm_ssa_default_def): New.
9042         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9043         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9044         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
9045         redundant MEM attr setting.
9046         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
9047         from...
9048         (expand_one_stack_var): ... this.  New wrapper to check and
9049         skip already expanded SSA partitions.
9050         (record_alignment_for_reg_var): New, factored out of...
9051         (expand_one_var): ... this.
9052         (expand_one_ssa_partition): New.
9053         (adjust_one_expanded_partition_var): New.
9054         (expand_one_register_var): Check and skip already expanded SSA
9055         partitions.
9056         (expand_used_vars): Don't create DECLs for anonymous SSA
9057         names.  Expand all SSA partitions, then adjust all SSA names.
9058         (pass::execute): Replace the loops that set
9059         SA.partition_to_pseudo from partition leaders and cleared
9060         DECL_RTL for multi-location variables, and that which used to
9061         rename vars and set attrs, with one that clears DECL_RTL and
9062         checks that PARMs and RESULTs default_defs match DECL_RTL.
9063         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9064         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
9065         * explow.c (promote_ssa_mode): New.
9066         * explow.h (promote_ssa_mode): Declare.
9067         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9068         * function.c: Include cfgexpand.h.
9069         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9070         (use_register_for_parm_decl): Wrapper for the above to
9071         special-case the result_ptr.
9072         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9073         (split_complex_args): Take assign_parm_data_all argument.
9074         Pass it to rtl_for_parm.  Set up rtl and context for split
9075         args.
9076         (assign_parms_augmented_arg_list): Adjust.
9077         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9078         multiple locations.  Recognize split complex args.
9079         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9080         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
9081         (assign_parm_setup_block): Prefer SSA-assigned location.
9082         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
9083         if stack_parm is NULL.
9084         (assign_parm_setup_stack): Prefer SSA-assigned location.
9085         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
9086         rtl before testing for pointer bounds.  Special-case result_ptr.
9087         (expand_function_start): Maybe reset DECL_RTL of result.
9088         Prefer SSA-assigned location for result and static chain.
9089         Factor out DECL_RESULT and SET_DECL_RTL.
9090         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9091         anonymous SSA names.  Use promote_ssa_mode.
9092         (get_temp_reg): Likewise.
9093         (remove_ssa_form): Adjust.
9094         * stor-layout.c (layout_decl): Don't set mem attributes of
9095         non-MEMs.
9096         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9097         and get its reg_usage for reg invalidation.
9098         (compute_bb_dataflow): Pass it insn.
9099         (emit_notes_in_bb): Likewise.
9101 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
9103         PR target/66217
9104         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
9105         prototype.
9106         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
9107         (rs6000_emit_2insn_and): Handle dot forms.
9108         * config/rs6000/rs6000.md (and<mode>3): Adjust.
9109         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
9110         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
9112 2015-07-23  Richard Biener  <rguenther@suse.de>
9114         * generic-match-head.c: Include cgraph.h.
9115         * gimple-match-head.c: Likewise.
9116         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
9117         SSA names.
9118         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
9119         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
9120         pattern.
9122 2015-07-23  Richard Biener  <rguenther@suse.de>
9124         * gimple-fold.c (fold_gimple_cond): Do not require folding
9125         results to pass valid_gimple_rhs_p.
9126         * tree-cfg.h (fold_cond_expr_cond): Remove.
9127         * tree-cfg.c (fold_cond_expr_cond): Likewise.
9128         (make_edges): Do not call it.
9129         * tree-inline.c (tree_function_versioning): Likewise.
9131 2015-07-23  Tom de Vries  <tom@codesourcery.com>
9133         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
9134         vect_force_simple_reduction.
9135         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
9136         (vect_is_simple_reduction_1): Add and handle
9137         need_wrapping_integral_overflow parameter.
9138         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
9139         need_wrapping_integral_overflow parameter.
9140         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
9141         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
9142         decl.
9144 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
9146         PR tree-optimization/66926,66951
9147         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
9148         INNER_LOOP and fix up condition for renaming virtual operands.
9150 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9152         * combine.c (try_combine): Use std::swap instead of manually
9153         swapping.
9155 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
9157         * config/mips/i6400.md: New file.
9158         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
9159         (mips64r6): Likewise.
9160         (i6400): Define.
9161         * config/mips/mips-tables.opt: Regenerate.
9162         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
9163         (mips_issue_rate): Add support for i6400.
9164         (mips_multipass_dfa_lookahead): Likewise.
9165         * config/mips/mips.h (TUNE_I6400): Define.
9166         * config/mips/mips.md: Include i6400.md.
9167         (processor): Add i6400.
9168         * doc/invoke.texi (-march=@var{arch}): Add i6400.
9170 2015-07-23  Richard Biener  <rguenther@suse.de>
9172         PR middle-end/66916
9173         * match.pd: Guard widen and sign-change comparison simplification
9174         with single_use.
9176 2015-07-23  Richard Biener  <rguenther@suse.de>
9178         PR tree-optimization/66945
9179         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
9180         ::before_dom_children): Force the propagators idea of
9181         non-executable edges to materialize, not what the folder
9182         chooses.
9184 2015-07-23  Richard Biener  <rguenther@suse.de>
9186         * gimple.h (gimple_cond_make_false): Use 0 != 0.
9187         (gimple_cond_make_true): Use 1 != 0.
9189 2015-07-22  DJ Delorie  <dj@redhat.com>
9191         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
9192         slashes.
9194         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
9195         (ashrhi3): Likewise.
9196         (lshrhi3): Likewise.
9197         (movhi): Take advantage of zero-extend to load small constants.
9198         (movpsi): Likewise.
9199         (and<mode>3): Likewise.
9200         (zero_extendqihi2): Likewise.
9201         (zero_extendqisi2): New.
9202         * config/msp430/constraints.md (N,O): New.
9203         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
9205 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
9207         PR target/66954
9208         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
9209         to enum feature_priority and feature_list.
9210         (fold_builtin_cpu): Add F_AES to enum processor_features
9211         and isa_names_table.
9213 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
9215         PR driver/66737
9216         * config/i386/linux-common.h (MPX_SPEC): Use linker option
9217         for 64bit target only.
9219 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
9221         * config/nvptx/nvptx.c: Expand some comments.
9223 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
9225         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
9226         (cortex_a53_advsimd): ...This.
9228 2015-07-22  Richard Biener  <rguenther@suse.de>
9230         * genmatch.c (expr::gen_transform): Clarify error message
9231         and display location.
9233 2015-07-22  Richard Biener  <rguenther@suse.de>
9235         * genmatch.c (struct operand): Add location member.
9236         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
9237         constructors.
9238         (struct simplify): Remove match_location and result_location
9239         members.
9240         (elsehwere): Adjust.
9242 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
9244         * config/mips/m5100.md: New file.
9245         * config/mips/mips-cpus.def (m5100, m5101): Define.
9246         * config/mips/mips-tables.opt: Regenerate.
9247         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
9248         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
9249         -march=m5101 to -mips32r5.
9250         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
9251         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
9252         !-msoft-float.
9253         * config/mips/mips.md: Include m5100.md.
9254         (processor): Add m5100.
9255         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
9257 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
9259         * config/mips/mips-cpus.def (interaptiv): Define.
9260         * config/mips/mips-tables.opt: Regenerate.
9261         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
9262         -mips32r2.
9263         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
9264         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
9266 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
9268         PR target/63521
9269         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
9270         (HONOR_REG_ALLOC_ORDER): Define.
9272 2015-07-22  Richard Biener  <rguenther@suse.de>
9274         PR tree-optimization/66952
9275         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
9276         blocks we end up executing unconditionally reset all SSA
9277         info such as range and alignment.
9278         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
9279         * tree-ssanames.c (reset_flow_sensitive_info): New function.
9281 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
9283         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
9284         typo in attribute.
9286 2015-07-22  Richard Biener  <rguenther@suse.de>
9288         * genmatch.c (parser::parse_result): Properly handle
9289         match with result operands and conditions.
9291 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
9293         PR target/63870
9294         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
9295         Add qualifier_struct_load_store_lane_index.
9296         (aarch64_types_loadstruct_lane_qualifiers): Use
9297         qualifier_struct_load_store_lane_index for lane index argument for
9298         last argument.
9299         (aarch64_types_storestruct_lane_qualifiers): Ditto.
9300         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
9301         (aarch64_simd_expand_args): Add new argument describing mode of
9302         builtin. Check lane bounds for arguments with
9303         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
9304         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
9305         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
9306         (aarch64_simd_expand_builtin): Handle arguments with
9307         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
9308         aarch64_simd_expand_args.
9309         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
9310         vst[234]_lane with BUILTIN_VALLDIF.
9311         * config/aarch64/aarch64-simd.md:
9312         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
9313         endianness reversal on lane index.
9314         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
9315         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
9316         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
9317         (vec_store_lanesci_lane<mode>): Ditto.
9318         (vec_store_lanesxi_lane<mode>): Ditto.
9319         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
9320         reversal of lane index.
9321         (aarch64_ld3_lane<mode>): Ditto.
9322         (aarch64_ld4_lane<mode>): Ditto.
9323         (aarch64_st2_lane<mode>): Ditto.
9324         (aarch64_st3_lane<mode>): Ditto.
9325         (aarch64_st4_lane<mode>): Ditto.
9326         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
9327         to qmode. Add new mode parameter. Update uses.
9328         (__LD3_LANE_FUNC): Ditto.
9329         (__LD4_LANE_FUNC): Ditto.
9330         (__ST2_LANE_FUNC): Ditto.
9331         (__ST3_LANE_FUNC): Ditto.
9332         (__ST4_LANE_FUNC): Ditto.
9334 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
9336         * doc/invoke.texi (Language Independent Options): Rename node to
9337         Diagnostic Message Formatting Options.
9339 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
9341         PR ipa/66424.
9342         * lra-remat.c (operand_to_remat): Prevent using insns with input
9343         subregs processed separately by IRA.
9345 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
9347         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
9348         straight loops.
9349         (single_imm_use): Check for iterator node.
9350         (num_imm_uses): Likewise.
9351         * tree-ssa-operands.c (has_zero_uses_1): Delete.
9352         (single_imm_use_1): Check for iterator node.
9354 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
9355             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9357         * configure.ac: Add check for new options in isl-0.15.
9358         * config.in, configure: Rebuilt.
9359         * graphite-blocking.c: Include <isl/constraint.h>
9360         * graphite-interchange.c,  graphite-poly.c: Likewise.
9361         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
9362         * graphite.c: Likewise.
9363         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
9364         <isl/union_set.h>.
9365         * graphite-dependences.c: Include <isl/constraint.h>.
9366         (max_number_of_out_dimensions): Returns isl_stat.
9367         (extend_schedule_1): Likewise
9368         (extend_schedule): Corresponding changes.
9369         * graphite-optimize-isl.c: Include <isl/constraint.h> and
9370         <isl/union_set.h>.
9371         (getSingleMap): Change return type of isl_stat.
9372         (optimize_isl): Conditionally use
9373         isl_options_set_schedule_serialize_sccs.
9374         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
9375         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
9377 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
9379         PR target/66956
9380         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
9381         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
9383 2015-07-21  Richard Biener  <rguenther@suse.de>
9385         PR tree-optimization/66948
9386         * genmatch.c (capture_info::walk_match): Also recurse to
9387         captures.  Properly compute expr state from captures of
9388         captures.
9389         * match.pd: Add single-use guards to
9390         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
9392 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
9394         * config/nvptx/mkoffload.c (process): Add static destructor call.
9396 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9398         PR middle-end/66915
9399         * match.pd (A - B -> A + (-B)): Don't allow folding
9400         when type if a fixed-point type.
9402 2015-07-20  DJ Delorie  <dj@redhat.com>
9404         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
9405         (iorqi3_real): Likewise for set1.
9407 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
9409         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
9410         for !TARGET_64BIT.
9412 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
9414         * graphite-isl-ast-to-gimple.c:
9415         Refactor so that each function can access 'region'. This will help
9416         maintain a parameter rename_map within a region.
9418 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
9420         * config/rs6000/rs6000.md (*lt0_disi): New.
9422 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
9424         PR target/66217
9425         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
9426         "available letters" comment.
9427         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
9428         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
9429         and_2rld_operand):  Delete.
9430         (and_operand): Adjust.
9431         (rotate_mask_operator): New.
9432         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
9433         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
9434         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
9435         extract_ME): Delete.
9436         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
9437         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
9438         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
9439         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
9440         rs6000_emit_2insn_and): New.
9441         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
9442         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
9443         includes_rldic_lshift_p, includes_rldicr_lshift_p,
9444         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
9445         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
9446         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
9447         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
9448         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
9449         rs6000_emit_2insn_and): New.
9450         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
9451         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
9452         handling.
9453         <NOT>: Don't fall through to next case.
9454         <AND>: Handle the various rotate-and-mask cases directly.
9455         <IOR>: Always cost as one insn.
9456         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
9457         (and<mode>3): Adjust expander for the new patterns.
9458         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
9459         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
9460         (*and<mode>3_imm_dot_shifted): New.
9461         (*and<mode>3_mask): Delete, rewrite as ...
9462         (and<mode>3_mask): ... New.
9463         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
9464         (andsi3_internal0_nomc): Delete.
9465         (*andsi3_internal6): Delete.
9466         (*and<mode>3_2insn): New.
9467         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
9468         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
9469         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
9470         *insvdi_internal3): Delete.
9471         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
9472         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
9473         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
9474         *ior<mode>_mask): New.
9475         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
9476         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
9477         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
9478         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
9479         Delete.
9480         (ashr<mode>3): Delete expander.
9481         (*ashr<mode>3): Rename to ...
9482         (ashr<mode>3): ... This.
9483         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
9484         (*rotldi3_internal4, *rotldi3_internal5 and split,
9485         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
9486         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
9487         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
9488         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
9489         (splitter for loading a mask): Adjust.
9490         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
9492 2015-07-20  Marek Polacek  <polacek@redhat.com>
9494         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
9495         output_add_clobbers, output_added_clobbers_hard_reg_p,
9496         gen_rtx_scratch): Remove declarations.
9498 2015-07-20  Marek Polacek  <polacek@redhat.com>
9500         PR c++/55095
9501         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
9503 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9505         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
9506         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
9508 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9510         * combine.c (combine_simplify_rtx): Move simplification step
9511         before various transformations/substitutions.
9513 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
9515         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
9516         (struct int_traits): Likewise.
9518 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9520         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
9521         function to vmsdbgout_function_decl.
9523 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
9525         PR target/66922
9526         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
9527         from misaligned positions.
9528         (ix86_expand_pinsr): Reject insertions to misaligned positions.
9530 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
9532         PR middle-end/46851
9533         PR middle-end/60340
9534         * Makefile.in: Removed omega.o.
9535         * common.opt: Document flag fcheck-data-deps as deprecated.
9536         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
9537         its associated params: omega-max-vars, omega-max-geqs,
9538         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
9539         omega-max-keys, omega-eliminate-redundant-constraints.
9540         * doc/loop.texi: Remove all the section on Omega.
9541         * graphite-blocking.c: Include missing params.h: it used to be
9542         included through tree-data-ref.h and omega.h.
9543         * graphite-isl-ast-to-gimple.c: Same.
9544         * graphite-optimize-isl.c: Same.
9545         * graphite-sese-to-poly.c: Same.
9546         * graphite.c: Same.
9547         * omega.c: Remove.
9548         * omega.h: Remove.
9549         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
9550         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
9551         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
9552         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
9553         * passes.def: Remove pass_check_data_deps.
9554         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
9555         (dump_conflict_function): Same.
9556         (dump_subscript): Same.
9557         (print_direction_vector): Same.
9558         (print_dir_vectors): Same.
9559         (print_lambda_vector): Same.
9560         (print_dist_vectors): Same.
9561         (dump_data_dependence_relation): Same.
9562         (dump_data_dependence_relations): Same.
9563         (dump_dist_dir_vectors): Same.
9564         (dump_ddrs): Same.
9565         (init_omega_eq_with_af): Removed.
9566         (omega_extract_distance_vectors): Removed.
9567         (omega_setup_subscript): Removed.
9568         (init_omega_for_ddr_1): Removed.
9569         (init_omega_for_ddr): Removed.
9570         (ddr_consistent_p): Removed.
9571         (compute_affine_dependence): Do not use omega to check data
9572         dependences.
9573         (compute_data_dependences_for_bb): Removed.
9574         (analyze_all_data_dependences): Removed.
9575         (tree_check_data_deps): Removed.
9576         * tree-data-ref.h: Do not include omega.h.
9577         (compute_data_dependences_for_bb): Removed.
9578         (tree_check_data_deps): Removed.
9579         * tree-ssa-loop.c (pass_check_data_deps): Removed.
9580         (make_pass_check_data_deps): Removed.
9581         * tree-ssa-phiopt.c: Include params.h.
9582         * tree-vect-data-refs.c: Same.
9583         * tree-vect-slp.c: Same.
9585 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
9587         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
9588         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
9589         (mem->fpreg splitters): Ditto.
9590         (general_operand->nonimmediate_operand splitter): Use explicit modes.
9591         Disable DFmode for TARGET_64BIT.
9593 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
9595         PR target/66906
9596         * config/i386/i386.c (ix86_expand_prologue): Replicate static
9597         chain on the stack.
9599 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
9601         * config/nvptx/mkoffload.c (process): Constify host data.
9602         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
9603         Constify host data.
9604         (generate_host_descr_file): Likewise.
9606 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
9607             Sebastian Pop  <s.pop@samsung.com>
9609         PR middle-end/61929
9610         * graphite-dependences.c (add_pdr_constraints): Renamed
9611         pdr->extent to pdr->subscript_sizes.
9612         * graphite-interchange.c (build_linearized_memory_access): Add
9613         back all gcc_assert's that the "isl_int to isl_val conversion"
9614         patch has removed.  Refactored.
9615         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
9616         * graphite-poly.c (new_poly_dr): Same.
9617         (free_poly_dr): Same.
9618         * graphite-poly.h (struct poly_dr): Same.
9619         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
9620         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
9621         * graphite-scop-detection.h: Fix space.
9622         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
9623         back all gcc_assert's removed by a previous patch.
9624         (wrap): Remove the_isl_ctx global variable that the same patch has
9625         added.
9626         (build_loop_iteration_domains): Same.
9627         (add_param_constraints): Same.
9628         (pdr_add_data_dimensions): Same.  Refactored.
9629         (build_poly_dr): Renamed extent to subscript_sizes.
9631 2015-07-17  Marek Polacek  <polacek@redhat.com>
9633         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
9634         * match.pd: ... here.
9636 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
9638         * config/nvptx/mkoffload.c (process): Constify target data.
9639         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
9640         Constify target data.
9641         (generate_target_offloadend_file): Likewise.
9643 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
9645         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
9646         to allow renaming of PHI arguments on edges incoming from outer
9647         loop header, add corresponding check before start PHI iterator.
9648         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
9649         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
9650         with true force_vectorize.  Set-up dominator for outer loop too.
9651         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
9652         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
9653         was marked with force_vectorize and has restricted cfg.
9654         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
9655         inner loop.
9656         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
9657         do peeling for outer loops.
9659 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
9660             Matthias Klose  <doko@ubuntu.com>
9662         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
9663         build-sysroot, sysroot from the `Miscenalleous configure options' to
9664         the `Directories' section and strip trailing `/' from with_sysroot.
9665         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
9666         * configure: Regenerated.
9668 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
9670         PR target/66824
9671         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
9672         (TARGET_HARD_DF_REGS): Ditto.
9673         (TARGET_HARD_XF_REGS): Ditto.
9674         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
9675         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
9676         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
9677         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
9678         (*movsf_internal): Add alternatives 16 and 17. Enable
9679         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
9681 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
9683         PR rtl-optimization/66891
9684         * calls.c (expand_call): Wrap precompute_register_parameters with
9685         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
9687 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
9689         * config/nvptx/mkoffload.c (process): Constify mapping variables.
9690         Define target data struct and initialize it.
9692 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
9694         PR rtl-optimization/66626
9695         * ira.h (emit-rtl.h): Include.
9696         (non_spilled_static_chain_regno_p): New.
9697         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
9698         unless it is non spilled static chain pseudo.
9699         (assign_hard_rego): Spill memory profitable allocno unless it is
9700         non spilled static chain pseudo.
9701         (allocno_spill_priority_compare): Put non spilled static chain
9702         pseudo at the end of sorted array.
9703         (improve_allocation): Do nothing if we have static chain and
9704         non-local goto.
9705         (allocno__priority_compare_func): Put non spilled static chain
9706         pseudo at the beginning of sorted array.
9707         (move_spill_restore): Ignore non spilled static chain pseudo.
9708         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
9709         to non spilled static chain pseudo.
9710         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
9711         pseudo at the beginning of sorted array.
9712         (spill_for): Spill non spilled static chain pseudo last.
9713         * lra-constraints.c (lra_constraints): Remove static chain pseudo
9714         check for equivalence.
9716 2015-07-16  Martin Liska  <mliska@suse.cz>
9718         PR ipa/66896.
9719         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
9720         dst_ctx if it does not exist.
9722 2015-07-16  Martin Liska  <mliska@suse.cz>
9724         * hash-set.h (remove): New function.
9725         (iterator): New iteration class for hash_set.
9727 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
9729         * genattrtab.c (make_canonical): Add a file_location parameter.
9730         Use fatal_at rather than fatal.
9731         (get_attr_value): Likewise.  Update call to make_canonical.
9732         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
9733         (make_internal_attr): Update calls accordingly.
9735 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
9737         * read-md.h (message_with_line, error_with_line): Delete.
9738         * read-md.c (message_with_line, error_with_line): Delete.
9739         * gensupport.h: Include read-md.h.
9740         (md_rtx_info): New structure.
9741         (read_md_rtx): Use it.  Return a bool success value.
9742         * gensupport.c (read_md_rtx): Likewise.
9743         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
9744         (main): Update after interface changes.
9745         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
9746         (main): Update after interface changes.
9747         * genattrtab.c (insn_code_number): Delete.
9748         (optimize_attrs): Add a max_insn_code parameter and use it instead
9749         of insn_code_number.
9750         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
9751         Use *_at rather than *_with_line functions.
9752         (gen_insn): Likewise.
9753         (gen_delay): Likewise.
9754         (gen_insn_reserv): Likewise.
9755         (gen_bypass): Take an md_rtx_info rather than an rtx.
9756         (main): Update after interface changes.  Use a local max_insn_code
9757         variable instead of insn_code_number.
9758         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
9759         an rtx.  Use fatal_at rather than fatal.
9760         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
9761         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
9762         (gen_absence_set, gen_final_absence_set, gen_automaton)
9763         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
9764         (main): Update after interface changes.
9765         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
9766         and code number.
9767         (main): Update after interface changes.
9768         * genconditions.c (main): Use new read_md_rtx interface.
9769         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
9770         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
9771         (main): Update after interface changes.
9772         * genemit.c (insn_code_number, insn_index_number): Delete.
9773         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
9774         Use fatal_at rather than fatal.
9775         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
9776         rather than fatal.
9777         (gen_split): Likewise.
9778         (main): Update after interface changes.
9779         * genextract.c (line_no): Delete.
9780         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
9781         Update call to walk_rtx.
9782         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
9783         rather than message_with_line.
9784         (walk_rtx): Add an md_rtx_info argument.  Update call to
9785         VEC_safe_set_locstr.
9786         (main): Update after interface changes.
9787         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
9788         and lineno.  Use error_at rather than separate message_with_line
9789         calls and have_error assignments.
9790         (main): Update after interface changes.
9791         * genmddump.c (main): Use new read_md_rtx interface.
9792         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
9793         (main): Update after interface changes.
9794         * genoutput.c (next_code_number): Delete.
9795         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
9796         (gen_peephole, gen_expand, gen_split): Likewise.
9797         (note_constraint): Likewise.  Use *_at rather than *_with_line
9798         functions.
9799         (main): Update after interface changes.
9800         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
9801         rtx and lineno.
9802         (main): Update after interface changes.
9803         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
9804         than an rtx and lineno.
9805         (process_define_constraint): Likewise.
9806         (process_define_register_constraint): Likewise.
9807         (main): Update after interface changes.
9808         * genrecog.c (next_insn_code, pattern_lineno): Delete.
9809         (validate_pattern): Replace top-level rtx with an md_rtx_info.
9810         Use *_at rather than *_with_line functions.
9811         (match_pattern_2): Likewise.
9812         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
9813         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
9814         Use *_at rather than *_with_line functions.
9815         * gentarget-def.c (add_insn): New function.
9816         (main): Use it.  Use new read_md_rtx interface.
9818 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
9820         * gensupport.h (compute_test_codes): Take a file_location rather
9821         than a line number.
9822         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
9823         rather than *_with_line functions.
9824         (process_define_predicate): Update call to compute_test_codes.
9825         * genpreds.c (validate_exp): Take a file_location rather than a
9826         line number.  Use *_at functions rather than *_with_line functions.
9827         (process_define_predicate): Update call to validate_exp.
9828         (constraint_data): Replace lineno field with a file_location.
9829         (add_constraint): Take a file_location rather than a line number.
9830         Use *_at functions rather than *_with_line functions.  Fix error
9831         message for address constraints.  Update after changes to
9832         validate_exp, constraint_data and compute_test_codes.
9833         (process_define_constraint): Update accordingly.
9834         (process_define_register_constraint): Likewise.
9836 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
9838         * genoutput.c (data): Use a file_location to record the source
9839         position.
9840         (nothing): Delete.
9841         (idata, idata_end): Remove initialization.
9842         (constraint_data): Replace lineno with a file_location.
9843         (output_insn_data): Update after changes to data.
9844         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
9845         (scan_operands): Likewise, using *_at rather than *_with_line
9846         functions.
9847         (process_template): Likewise.
9848         (validate_insn_alternatives): Likewise.
9849         (validate_insn_operands): Likewise.
9850         (validate_optab_operands): Likewise.
9851         (init_insn_for_nothing): Initialize idata and idata_end.
9852         (note_constraint): Update after changes to constraint_data,
9853         using at rather than with_line functions.
9854         (mdep_constraint_len): Take a file_location rather than a
9855         line number.  Use at rather than with_line functions.
9857 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
9859         * read-md.h (fatal_at): Declare.
9860         * read-md.c (fatal_at): New function.
9861         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
9862         to record the source position.
9863         (check_attr_test): Take a file_location instead of a line number.
9864         Use fatal_at instead of fatal.
9865         (check_attr_value): Update after above changes, using "at"
9866         rather than "with_line" reporting functions.
9867         (convert_set_attr_alternative): Likewise.
9868         (gen_attr): Likewise.
9869         (check_defs): Likewise.  Don't assign to read_md_filename.
9870         (gen_insn): Update initialization after above changes.
9871         (gen_delay): Likewise.
9872         (write_insn_cases): Print the filename for a define_peephole.
9873         (gen_insn_reserv): Take a line number as argument and update
9874         the call to check_attr_test.
9875         (main): Pass a line number to gen_insn_reserv.
9877 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
9879         * read-md.h (file_location): New structure.
9880         (directive_handler_t): Take a file_location rather than a line number.
9881         (message_at, error_at): Declare.
9882         (read_skip_construct): Delete.
9883         * read-md.c (message_with_line_1): Replace with...
9884         (message_at_1): ...this new function.
9885         (message_at, error_at): New functions.
9886         (message_with_line, error_with_line): Update to use message_at_1.
9887         (handle_enum): Take a file_location rather than a line number
9888         and use error_at for error reporting.
9889         (handle_include): Likewise.
9890         (read_skip_construct): Likewise.  Make static.
9891         (handle_file): Update after above changes.  Pass a file_location
9892         rather than a line number to handle_directive.
9893         * gensupport.c (queue_elem): Replace separate filename and lineno
9894         with a file_location.
9895         (queue_pattern): Replace filename and lineno arguments with a
9896         file_location.  Update after change to queue_elem.
9897         (process_define_predicate): Replace lineno argument with a
9898         file_location and use error_at for error reporting.  Update
9899         after above changes.
9900         (process_rtx): Likewise.
9901         (subst_pattern_match): Likewise.
9902         (get_alternatives_number): Likewise.
9903         (alter_predicate_for_insn): Likewise.
9904         (rtx_handle_directive): Likewise.
9905         (is_predicable): Update after above changes, using error_at rather
9906         than error_with_line.
9907         (has_subst_attribute): Likewise.
9908         (identify_predicable_attribute): Likewise.
9909         (alter_attrs_for_subst_insn): Likewise.
9910         (process_one_cond_exec): Likewise.
9911         (process_substs_on_one_elem): Likewise.
9912         (process_define_subst): Likewise.
9913         (check_define_attr_duplicates): Likewise.
9914         (read_md_rtx): Update after change to queue_elem.
9916 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
9918         * genoutput.c (next_index_number): Delete.
9919         (data): Remove index_number.
9920         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
9921         (main): Remove manipulation of next_index_number.
9923 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
9925         * genattrtab.c (check_attr_value): Remove handling of null attrs.
9926         (make_canonical): Likewise.
9928 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
9930         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
9931         instead of adjust_address_nv.
9932         (restore_stack_nonlocal): Likewise.
9933         (nonlocal_goto): Likewise.
9935 2015-07-16  Tom de Vries  <tom@codesourcery.com>
9937         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
9938         not have a corresponding loop header phi.
9940 2015-07-16  Tom de Vries  <tom@codesourcery.com>
9942         * tree-parloops.c (create_loads_for_reductions): Handle case that
9943         reduction is unused.
9945 2015-07-16  Richard Biener  <rguenther@suse.de>
9947         PR tree-optimization/66894
9948         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
9949         about deriving NE_EXPR from truncated values.
9951 2015-07-16  Martin Liska  <mliska@suse.cz>
9953         * alloc-pool.h
9954         (object_allocator): Add new class.
9955         (pool_allocator::initialize): Use the underlying class.
9956         (pool_allocator::allocate): Likewise.
9957         (pool_allocator::remove): Likewise.
9958         (operator new): A new generic allocator.
9959         * asan.c (struct asan_mem_ref): Remove unused members.
9960         (asan_mem_ref_new): Replace new operator with
9961         object_allocator::allocate.
9962         (free_mem_ref_resources): Change deallocation.
9963         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
9964         with object_allocator.
9965         * config/sh/sh.c (add_constant): Replace new operator with
9966         object_allocator::allocate.
9967         (sh_reorg): Change call to a release method.
9968         * cselib.c (struct elt_list): Remove unused members.
9969         (new_elt_list): Replace new operator with
9970         object_allocator::allocate.
9971         (new_elt_loc_list): Likewise.
9972         (new_cselib_val): Likewise.
9973         (unchain_one_elt_list): Change delete operator with remove method.
9974         (unchain_one_elt_loc_list): Likewise.
9975         (unchain_one_value): Likewise.
9976         (cselib_finish): Release newly added static allocators.
9977         * cselib.h (struct cselib_val): Remove unused members.
9978         (struct elt_loc_list): Likewise.
9979         * df-problems.c (df_chain_alloc): Replace pool_allocator with
9980         object_allocator.
9981         * df-scan.c (struct df_scan_problem_data): Likewise.
9982         (df_scan_alloc): Likewise.
9983         * df.h (struct dataflow): Likewise.
9984         * dse.c (struct read_info_type): Likewise.
9985         (struct insn_info_type): Likewise.
9986         (struct dse_bb_info_type): Likewise.
9987         (struct group_info): Likewise.
9988         (struct deferred_change): Likewise.
9989         (get_group_info): Likewise.
9990         (delete_dead_store_insn): Likewise.
9991         (free_read_records): Likewise.
9992         (replace_read): Likewise.
9993         (check_mem_read_rtx): Likewise.
9994         (scan_insn): Likewise.
9995         (dse_step1): Likewise.
9996         (dse_step7): Likewise.
9997         * et-forest.c (struct et_occ): Remove unused members.
9998         (et_new_occ): Use allocate instead of new operator.
9999         (et_new_tree): Likewise.
10000         (et_free_tree): Call release method explicitly.
10001         (et_free_tree_force): Likewise.
10002         (et_free_pools): Likewise.
10003         (et_split): Use remove instead of delete operator.
10004         * et-forest.h (struct et_node): Remove unused members.
10005         * ipa-cp.c: Change pool_allocator to object_allocator.
10006         * ipa-inline-analysis.c: Likewise.
10007         * ipa-profile.c: Likewise.
10008         * ipa-prop.c: Likewise.
10009         * ipa-prop.h: Likewise.
10010         * ira-build.c (initiate_cost_vectors): Cast return value.
10011         (ira_allocate_cost_vector): Likewise.
10012         * ira-color.c (struct update_cost_record): Remove unused members.
10013         * lra-int.h (struct lra_live_range): Likewise.
10014         (struct lra_copy): Likewise.
10015         (struct lra_insn_reg): Likewise.
10016         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
10017         * lra.c (new_insn_reg): Replace new operator with allocate method.
10018         (free_insn_regs): Same for operator delete.
10019         (finish_insn_regs): Release new static allocator.
10020         (finish_insn_recog_data): Likewise.
10021         (lra_free_copies): Replace delete operator with remove method.
10022         (lra_create_copy): Replace operator new with allocate method.
10023         (invalidate_insn_data_regno_info): Same for remove method.
10024         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
10025         (free_debug_insn_changes): Replace delete operator with remove method.
10026         (replace_oldest_value_reg): Replace operator new with allocate method.
10027         (pass_cprop_hardreg::execute): Release new static variable.
10028         * sched-deps.c (sched_deps_init): Change pool_allocator to
10029         object_allocator.
10030         * sel-sched-ir.c: Likewise.
10031         * sel-sched-ir.h: Likewise.
10032         * stmt.c (expand_case): Likewise.
10033         (expand_sjlj_dispatch_table): Likewise.
10034         * tree-sra.c (struct access): Remove unused members.
10035         (struct assign_link): Likewise.
10036         (sra_deinitialize): Release newly added static pools.
10037         (create_access_1):Replace operator new with allocate method.
10038         (build_accesses_from_assign): Likewise.
10039         (create_artificial_child_access): Likewise.
10040         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
10041         pool_allocator to object_allocator.
10042         * tree-ssa-pre.c: Likewise.
10043         * tree-ssa-reassoc.c: Likewise.
10044         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
10045         * tree-ssa-strlen.c: Likewise.
10046         * tree-ssa-structalias.c: Likewise.
10047         * var-tracking.c (onepart_pool_allocate): New function.
10048         (unshare_variable): Use the newly added function.
10049         (variable_merge_over_cur): Likewise.
10050         (variable_from_dropped): Likewise.
10051         (variable_was_changed): Likewise.
10052         (set_slot_part): Likewise.
10053         (emit_notes_for_differences_1): Likewise.
10054         (vt_finalize): Release newly added static pools.
10056 2015-07-16  Martin Jambor  <mjambor@suse.cz>
10058         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
10059         all uses.  Fix two typos in its general comment.
10060         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
10062 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
10064         * config/i386/linux-common.h (LINK_MPX): New.
10065         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
10066         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
10067         indicating '-z bndplt' support by linker.
10068         * configure: Regenerate.
10069         * config.in: Regenerate.
10071 2015-07-16  Richard Biener  <rguenther@suse.de>
10073         * fold-const.c (fold_widened_comparison): Remove.
10074         (fold_sign_changed_comparison): Likewise.
10075         (fold_comparison): Move widened and sign-changed comparison
10076         simplification ...
10077         * match.pd: ... to patterns here.
10078         * generic-match-head.c: Include target.h.
10079         * gimple-match-head.c: Likewise.
10081 2015-07-16  Richard Biener  <rguenther@suse.de>
10083         * tree-ssa-dom.c (dom_valueize): New function.
10084         (record_temporary_equivalences): Also record equivalences
10085         for dominating stmts that have uses of equivalences we are
10086         about to record.
10088 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
10090         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
10091         add_autoinc_candidates.
10092         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
10093         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
10094         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
10095         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
10096         Call new function.
10097         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
10098         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
10099         Remove parameter struct iv*.  Call add_autoinc_candidates here.
10100         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
10101         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
10102         Call new function.
10103         (find_iv_candidates): Call new functions.
10105 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
10107         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
10108         uninitialized-variable warning.
10110 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
10112         PR target/65249
10113         * config/sh/sh.md (movdi): Split simple reg move to two movsi
10114         when the destination is R0.
10116 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
10118         PR target/66866
10119         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
10120         * config/i386/i386.c (ix86_expand_pextr): New function.
10121         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
10122         for non-lowpart subregs.
10123         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
10124         (insv<mode>): Use SWI248 mode iterator.
10125         (insv<mode>_1): Ditto.
10127 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
10128             Sebastian Pop  <s.pop@samsung.com>
10130         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
10131         iterator to use_stmt.
10133 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
10134             Sebastian Pop <s.pop@samsung.com>
10136         * graphite-scop-detection.c (build_scops_1): Discard scops for
10137         which entry==exit.
10139 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
10140             Sebastian Pop <s.pop@samsung.com>
10142         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
10143         case of a return statement in scop.
10145 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
10146             Sebastian Pop <s.pop@samsung.com>
10148         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
10149         INTEGER_TYPE parameters.
10150         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
10151         VECTOR_CST in scan_tree_for_params.
10152         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
10154 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
10156         * gimple-pretty-print.h: Don't include pretty-print.h.
10157         * tree-streamer.h: Don't include lto-streamer.h.
10158         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
10159         * gimple-streamer-in.c: Remove redundant includes.
10160         * gimple-streamer-out.c: Likewise.
10161         * ipa-devirt.c: Likewise.
10162         * ipa-icf.c: Likewise.
10163         * ipa-inline-analysis.c: Likewise.
10164         * ipa-polymorphic-call.c: Likewise.
10165         * ipa-profile.c: Likewise.
10166         * ipa-prop.c: Likewise.
10167         * ipa-pure-const.c: Likewise.
10168         * lto-cgraph.c: Likewise.
10169         * lto-streamer-in.c: Likewise.
10170         * lto-streamer-out.c: Likewise.
10171         * lto-streamer.c: Likewise.
10172         * tree-streamer-in.c: Likewise.
10173         * tree-streamer-out.c: Likewise.
10174         * tree-streamer.c: Likewise.
10176 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
10178         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
10179         include input.h.
10180         * opts.c: Remove multiline #include comment.
10182 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
10184         * config/nvptx/mkoffload.c (process): Add C++ protection to
10185         emitted code.
10187 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10189         PR target/66854
10190         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
10191         null before IEEE 128-bit floating point support patch.
10193 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10195         * simplify-rtx.c (simplify_ternary_operation): Add simplification
10196         for (!c) != {0,...,0} ? a : b for vector modes.
10198 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
10199             Martin Jambor  <mjambor@suse.cz>
10201         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
10202         struct func_body_info* instead of struct ipa_node_params*, expecting
10203         fbi->info to be filled in.  Replace throughout.  Adjust call to
10204         ipa_load_from_parm_agg.
10205         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
10206         instead of struct ipa_node_params*.  Adjust calls to other functions
10207         so that they pass either fbi or fbi->info.
10208         (set_switch_stmt_execution_predicate): Likewise.
10209         (will_be_nonconstant_predicate): Likewise.
10210         (compute_bb_predicates): Likewise.
10211         (estimate_function_body_sizes): Move asserts earlier.  Fill in
10212         struct func_body_info, replace parms_info with fbi.info.  Adjust
10213         calls to functions that now accept struct func_body_info.
10214         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
10215         (struct func_body_info): Likewise.
10216         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
10217         remove static.  Adjust callers.
10218         (ipa_load_from_parm_agg): Remove.
10219         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
10220         (func_body_info): Likewise.
10221         (ipa_load_from_parm_agg): Adjust prototype.
10223 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10225         * gensupport.c (rtx_handle_directive): Adjust.
10226         * read-rtl.c (apply_iterators): Take vector to add rtxs to
10227         instead of expr list rtx.
10228         (add_define_attr_for_define_subst): Likewise.
10229         (add_define_subst_attr): Likewise.
10230         (read_subst_mapping): Likewise.
10231         (read_rtx): Likewise.
10232         * rtl.h (read_rtx): Adjust.
10234 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10236         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
10238 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
10240         PR target/58066
10241         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
10242         (*tls_local_dynamic_base_64_<mode>): Ditto.
10243         (*tls_local_dynamic_base_64_largepic): Ditto.
10244         (tls_global_dynamic_64_<mode>): Update expander pattern.
10245         (tls_local_dynamic_base_64_<mode>): Ditto.
10247 2015-07-15  Richard Biener  <rguenther@suse.de>
10249         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
10250         and bool_var == 1 -> bool_var simplifications ...
10251         * match.pd: ... to patterns here.  Factor out negate_expr_p
10252         cases from the A - B -> A + (-B) patterns as negate_expr_p
10253         predicate and add a -(A + B) -> (-B) - A pattern.
10255 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
10257         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
10259 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
10260             Robert Suchanek  <robert.suchanek@imgtec.com>
10262         * config/mips/mips.c (mips_int_mask): New enum.
10263         (mips_shadow_set): Likewise.
10264         (int_mask): New variable.
10265         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
10266         (machine_function): Add int_mask and use_shadow_register_set.
10267         (mips_attribute_table): Add attribute handlers for interrupt and
10268         use_shadow_register_set.
10269         (mips_interrupt_mask): New static function.
10270         (mips_handle_interrupt_attr): Likewise.
10271         (mips_handle_use_shadow_register_set_attr): Likewise.
10272         (mips_use_shadow_register_set): Change return type to enum
10273         mips_shadow_set.  Add argument handling for use_shadow_register_set
10274         attribute.
10275         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
10276         compare with mips_shadow_set enum.
10277         (mips_compute_frame_info): Add interrupt mask and
10278         use_shadow_register_set to per-function information structure.
10279         Add a stack slot for EPC unconditionally.
10280         (mips_expand_prologue): Compare use_shadow_register_set value
10281         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
10282         masked interrupt register but in EIC mode use K0 and save Cause in K0.
10283         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
10284         copying the stack pointer from the shadow register set.
10285         * config/mips/mips.h (SR_IM0): New define.
10286         * config/mips/mips.md (mips_rdpgpr): Rename to...
10287         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
10288         * doc/extend.texi (Declaring Attributes of Functions): Document
10289         optional arguments for interrupt and use_shadow_register_set
10290         attributes.
10292 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
10294         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
10295         interrupt attribute.
10296         (mips_expand_prologue): Disable the floating point unit in an ISR.
10297         * config/mips/mips.h (SR_COP1): New define.
10299 2015-07-15  Richard Biener  <rguenther@suse.de>
10301         * genmatch.c (parser::peek, parser::peek_ident): Add argument
10302         to tell how many tokens to peek ahead (default 1).
10303         (parser::eat_token, parser::eat_ident): Return token consumed.
10304         (parser::parse_result): Parse new switch statement.
10305         * match.pd: Use case statements where appropriate.
10307 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
10309         PR rtl-optimization/58066
10310         * calls.c (expand_call): Precompute register parameters before stack
10311         alignment is performed.
10313 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
10315         PR rtl-optimization/66838
10316         * postreload.c (reload_cse_move2add): Also process
10317         CALL_INSN_FUNCTION_USAGE when resetting information of
10318         call-clobbered registers.
10320 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
10321             Cesar Philippidis  <cesar@codesourcery.com>
10322             Chung-Lin Tang  <cltang@codesourcery.com>
10324         * config/nios2/constraints.md (U, v): New constraints.
10325         * config/nios2/predicates.md (rdprs_dcache_operand): New.
10326         (ldstex_memory_operand): New.
10327         * config/nios2/sync.md: New file.
10328         * config/nios2/nios2.md (unspecv): Add new builtin function
10329         UNSPECV codes.
10330         (rdprs, flushd, flushda, wrpie, eni): New patterns.
10331         (top-level): Include sync.md.
10332         * config/nios2/nios2.c (N2_FTYPES): Add function types for
10333         new builtins.
10334         (N2_BUILTINS): Add arch field setting, add new builtins.
10335         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
10336         for arch field.
10337         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
10338         Also handle ldex/stex/ldsex/stsex builtins.
10339         (nios2_expand_rdprs_builtin): New function.
10340         (nios2_expand_cache_builtin): New function.
10341         (nios2_expand_wrpie_builtin): New function.
10342         (nios2_expand_eni_builtin): New function.
10343         (nios2_expand_builtin): Add arch field handling and new builtin
10344         cases.
10345         * doc/extend.texi (Altera Nios II Built-in Functions): Document
10346         new builtins.
10347         * doc/md.texi (Machine Constraints): Document U and v constraints.
10349 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
10350             Cesar Philippidis  <cesar@codesourcery.com>
10351             Chung-Lin Tang  <cltang@codesourcery.com>
10353         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
10354         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
10355         callee_save_reg_size and uses_anonymous_args fields.
10356         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
10357         (nios2_create_cfa_notes): New function.
10358         (nios2_adjust_stack): New function for adjusting stack.
10359         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
10360         Use nios2_adjust_stack.
10361         (nios2_expand_epilogue): Likewise.
10362         (nios2_expand_return): New function.
10363         (nios2_can_use_return_insn): Update for CDX pop.n usage.
10364         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
10365         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
10366         * config/nios2/nios2.md (return): Use nios2_expand_return.
10368 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
10369             Cesar Philippidis  <cesar@codesourcery.com>
10370             Chung-Lin Tang  <cltang@codesourcery.com>
10372         * config/nios2/predicates.md (pop_operation): New.
10373         (ldwm_operation, stwm_operation): New.
10374         (nios2_hard_register_operand): New.
10375         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
10376         (ldstwm_operation_p): Declare.
10377         (gen_ldstwm_peep): Declare.
10378         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
10379         (base_reg_adjustment_p): New.
10380         (pop_operation_p): New.
10381         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
10382         (nios2_ldstwm_regset_p): New.
10383         (ldstwm_operation_p): New.
10384         (gen_ldst): New.
10385         (nios2_ldst_parallel): New.
10386         (struct ldswm_operand): Declare.
10387         (compare_ldstwm_operands): New.
10388         (can_use_cdx_ldstw): New.
10389         (gen_ldstwm_peep): New.
10390         * config/nios2/nios2-ldstwm.sml: New.
10391         * config/nios2/nios2.md: Include ldstwm.md.
10392         * config/nios2/ldstwm.md: Generated.
10394 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
10395             Cesar Philippidis  <cesar@codesourcery.com>
10396             Chung-Lin Tang  <cltang@codesourcery.com>
10398         * config/nios2/nios2.h (LABEL_ALIGN): Define.
10399         (REG_ALLOC_ORDER): Define.
10400         (ADJUST_REG_ALLOC_ORDER): Define.
10401         (HONOR_REG_ALLOC_ORDER): Define.
10402         (CDX_REG_P): Define.
10403         (ANDCLEAR_INT): Define.
10404         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
10405         (nios2_label_align): Declare.
10406         (nios2_cdx_narrow_form_p): Declare.
10407         (nios2_adjust_reg_alloc_order): Declare.
10408         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
10409         operation.
10410         (nios2_large_unspec_reloc_p): New function, split from...
10411         (nios2_legitimate_pic_operand_p): ...here.
10412         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
10413         (nios2_print_operand_punct_valid_p): New.
10414         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
10415         (split_mem_address): New.
10416         (split_alu_insn): New.
10417         (cdxreg): New.
10418         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
10419         (enum nios2_add_insn_kind): New.
10420         (nios2_add_insn_names, nios2_add_insn_narrow): New.
10421         (nios2_add_insn_classify): New.
10422         (nios2_add_insn_asm): New.
10423         (nios2_cdx_narrow_form_p): New.
10424         (label_align, min_labelno, max_labelno): New.
10425         (nios2_reorg): New.
10426         (nios2_label_align): New.
10427         (nios2_adjust_reg_alloc_order): New.
10428         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10429         (TARGET_MACHINE_DEPENDENT_REORG): Define.
10430         * config/nios2/constraints.md (P): New constraint.
10431         * config/nios2/predicates.md (const_and_operand): New.
10432         (and_operand): New.
10433         (stack_memory_operand): New.
10434         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
10435         (length): Update to use nios2_cdx_narrow_form_p().
10436         (type): Add new insn type values.
10437         (control, alu, st, ld, shift): Update insn reservations with
10438         new insn type values.
10439         (*high, *lo_sum): Define new insn patterns for constant generation.
10440         (movqi_internal, movhi_internal, movsi_internal): Reduce
10441         alternatives, update asm template to handle CDX variants, update
10442         type attributes.
10443         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
10444         template, update type attributes.
10445         (extendhisi2, extendqi<mode>2): Likewise.
10446         (addsi3): Change to use function for asm string.
10447         (subsi3): Add CDX notation to asm template, update type attributes.
10448         (negsi3, one_cmplsi3): Likewise.
10449         (andsi3): New pattern, specialized from logical patterns.
10450         (<code>si3): Remove and case, combine alternatives, update asm
10451         template.
10452         (<shift_op>si3): Add CDX notation, update type attributes.
10453         (rotrsi3): Update type attribute.
10454         (*merge, extzv, insv): New insn patterns.
10455         (return): Change to define_expand.
10456         (simple_return): Add CDX notation, update type attributes.
10457         (indirect_jump): Add CDX notation.
10458         (jump): Update asm cases, update length attribute expression.
10459         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
10460         (nios2_cbranch): Update asm cases and length attribute expression
10461         to handle CDX variants.
10462         (nios2_cmp<code>): Update asm template.
10463         (nop): Add CDX notation, update type attributes.
10464         (trap): Add CDX notation.
10465         (ctrapsi4): Update asm cases and length attribute expression to
10466         handle CDX variant.
10467         * doc/md.texi (Machine Constraints): Document P constraint.
10469 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
10470             Cesar Philippidis  <cesar@codesourcery.com>
10471             Chung-Lin Tang  <cltang@codesourcery.com>
10473         * config/nios2/nios2.h (SMALL_INT12): New macro.
10474         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
10475         (nios2_valid_addr_expr_p): Use it.
10476         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
10477         with implicit "io" instructions on R2.
10478         * config/nios2/constraints.md (w): New constraint.
10479         * config/nios2/predicates.md (ldstio_memory_operand): New.
10480         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
10481         operand predicate and constraint.
10482         (ld<bh>io_signed, st<bhw>io>): Likewise.
10483         * doc/md.texi (Machine Constraints): Document w constraint.
10485 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
10486             Cesar Philippidis  <cesar@codesourcery.com>
10487             Chung-Lin Tang  <cltang@codesourcery.com>
10489         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
10490         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
10491         Nios II architecture level.
10492         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
10493         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
10494         (OPTION_DEFAULT_SPECS): Define.
10495         (ASM_SPEC): Add -march= spec strings.
10496         * config/nios2/nios2.c (nios2_option_override): Check for
10497         conflicts involving new options.
10498         * config.gcc (nios2*-*-*): Support --with-arch=.
10499         * doc/invoke.texi (Option Summary, Nios II Options): Document
10500         -march=, -mbmx, and -mcdx.
10502 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
10504         PR rtl-optimization/66626
10505         * lra-constraints.c (lra_constraints): Prevent equivalence
10506         substitution for static chain pseudo in functions with nonlocal
10507         goto.
10509 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
10511         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
10512         (nios2_emit_stack_limit_check): Add size parameter.  Handle
10513         -fstack-limit-symbol as well as -fstack-limit-register.
10514         (nios2_expand_prologue): Emit only a single stack limit check,
10515         even if multiple stack adjustments are required.
10516         (nios2_option_override): Diagnose unsupported combination of -fpic
10517         and -stack-limit-symbol.
10519 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
10521         * Makefile.in (top_srcdir): New.
10522         * configure.ac: Use AM_ZLIB.
10523         * configure: Regeneated.
10525 2015-07-14  Matthias Klose  <doko@ubuntu.com>
10527         PR target/66840
10528         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
10530 2015-07-14  Richard Biener  <rguenther@suse.de>
10532         PR tree-optimization/66863
10533         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
10534         what we record for conversion use stmt lhs inequalities.
10536 2015-07-14  Richard Biener  <rguenther@suse.de>
10538         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
10539         (decision_tree::gen_gimple): Likewise.
10541 2015-07-14  Tom de Vries  <tom@codesourcery.com>
10543         * gcc.c (greater_than_spec_func): Declare forward.
10544         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
10545         -ftree-parallelize-loops={0,1}.
10546         (static_spec_functions): Add greater_than_spec_func function with name
10547         "gt".
10548         (greater_than_spec_func): New function.
10550 2015-07-14  Richard Biener  <rguenther@suse.de>
10552         * tree-ssa-dom.c (record_temporary_equivalences): Merge
10553         wideing type conversion case from record_equivalences_from_incoming_edge
10554         and use record_equality to record equivalences.
10555         (record_equivalences_from_incoming_edge): Call
10556         record_temporary_equivalences.
10558 2015-07-14  Richard Biener  <rguenther@suse.de>
10560         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
10561         (struct if_expr): New.
10562         (struct with_expr): Likewise.
10563         (is_a_helper): Add helpers for if_expr and with_expr.
10564         (struct simplify): Add simplify_kind enum and member.  Remove
10565         ifexpr_vec member.
10566         (simplify::simplify): Adjust.
10567         (lower_commutative): Adjust.
10568         (lower_opt_convert): Likewise.
10569         (lower_cond): Likewise.
10570         (replace_id): Handle with_expr and if_expr.
10571         (lower_for): Adjust.
10572         (dt_simplify::gen_1): New recursive worker, split out from ...
10573         (dt_simplify::gen): ... here.  Deal with if and with expansion
10574         recursively.
10575         (capture_info::capture_info): Take context argument
10576         (capture_info::walk_result): Only analyze specific result.
10577         (parser::parse_result): New function.
10578         (parser::parse_simplify): Adjust to parse ifs with then end
10579         else case.
10580         (parser::parse_if): Simplify.
10581         (parser::parse_pattern): Pass down simplify kind.
10582         * match.pd: Convert if structure to new syntax.
10584 2015-07-13  Marek Polacek  <polacek@redhat.com>
10586         * rtl.c (rtx_equal_p_cb): Fix typo.
10588 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
10590         * omega.h: Don't include config.h, don't include params.h again if
10591         omega.h has already been included.
10592         * graphite-poly.h: Include sese.h.
10593         * graphite.c: Don't include sese.h, remove needless includes and
10594         minimize includes outside #ifdef HAVE_isl block.
10595         * graphite-blocking.c: Don't include sese.h, remove needless includes,
10596         and wrap entire file in #ifdef HAVE_isl
10597         * graphite-dependences.c: Likewise.
10598         * graphite-interchange.c: Likewise.
10599         * graphite-isl-ast-to-gimple.c: Likewise.
10600         * graphite-optimize-isl.c: Likewise.
10601         * graphite-poly.c: Likewise.
10602         * graphite-scop-detection.c: Likewise.
10603         * graphite-sese-to-poly.c: Likewise.
10605 2015-07-13  Tom de Vries  <tom@codesourcery.com>
10607         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
10609 2015-07-13  Renlin Li  <renlin.li@arm.com>
10611         PR rtl/66556
10612         * simplify-rtx.c (simplify_const_relational_operation): Add
10613         side_effects_p checks.
10615 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
10617         * bitmap.h: Fix double word typos.
10618         * builtins.c: Same.
10619         * calls.c: Same.
10620         * cfgloopmanip.c: Same.
10621         * cgraph.c: Same.
10622         * cgraph.h: Same.
10623         * cgraphclones.c: Same.
10624         * combine.c: Same.
10625         * config/aarch64/aarch64-protos.h: Same.
10626         * config/aarch64/aarch64.c: Same.
10627         * config/aarch64/aarch64.md: Same.
10628         * config/arm/arm.md: Same.
10629         * config/arm/arm1020e.md: Same.
10630         * config/arm/arm1026ejs.md: Same.
10631         * config/arm/arm926ejs.md: Same.
10632         * config/arm/fa526.md: Same.
10633         * config/arm/fa606te.md: Same.
10634         * config/arm/fa626te.md: Same.
10635         * config/arm/fa726te.md: Same.
10636         * config/arm/fmp626.md: Same.
10637         * config/darwin.c: Same.
10638         * config/epiphany/epiphany.c: Same.
10639         * config/frv/frv.c: Same.
10640         * config/ft32/ft32.c: Same.
10641         * config/gnu-user.h: Same.
10642         * config/h8300/constraints.md: Same.
10643         * config/i386/i386.c: Same.
10644         * config/i386/i386.md: Same.
10645         * config/iq2000/iq2000.md: Same.
10646         * config/mips/mips.c: Same.
10647         * config/mmix/mmix.md: Same.
10648         * config/moxie/moxie.c: Same.
10649         * config/nds32/nds32.md: Same.
10650         * config/pa/pa.h: Same.
10651         * config/rs6000/aix.h: Same.
10652         * config/rs6000/rs6000.h: Same.
10653         * config/sh/sh.c: Same.
10654         * config/tilegx/tilegx.md: Same.
10655         * config/tilepro/gen-mul-tables.cc: Same.
10656         * cse.c: Same.
10657         * dbxout.c: Same.
10658         * doc/invoke.texi: Same.
10659         * dse.c: Same.
10660         * dwarf2out.c: Same.
10661         * final.c: Same.
10662         * gcc.c: Same.
10663         * genmatch.c: Same.
10664         * gimplify.c: Same.
10665         * hash-table.h: Same.
10666         * internal-fn.c: Same.
10667         * ipa-cp.c: Same.
10668         * ipa-devirt.c: Same.
10669         * ipa-icf.c: Same.
10670         * ipa-icf.h: Same.
10671         * ipa-profile.c: Same.
10672         * ipa-prop.c: Same.
10673         * ipa-prop.h: Same.
10674         * ira.c: Same.
10675         * omp-low.c: Same.
10676         * reg-stack.c: Same.
10677         * regcprop.c: Same.
10678         * reorg.c: Same.
10679         * rtl.h: Same.
10680         * sbitmap.h: Same.
10681         * tree-eh.c: Same.
10682         * tree-inline.c: Same.
10683         * tree-sra.c: Same.
10684         * tree-ssa-dom.c: Same.
10685         * tree-ssa-loop-ivopts.c: Same.
10686         * tree-ssa-structalias.c: Same.
10687         * tree-ssa-tail-merge.c: Same.
10688         * tree-ssa-ter.c: Same.
10689         * tree-ssa-threadupdate.c: Same.
10690         * tree-ssa-uninit.c: Same.
10691         * tree-ssanames.c: Same.
10692         * tree-vect-loop-manip.c: Same.
10693         * tree-vrp.c: Same.
10694         * tree.c: Same.
10695         * valtrack.c: Same.
10696         * vec.h: Same.
10698 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
10700         PR middle-end/66726
10701         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
10702         tree_ssa_phiopt_worker): Call it.
10704 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
10706         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
10707         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
10708         REG_EQUAL note.
10710 2015-07-11  Marek Polacek  <polacek@redhat.com>
10712         PR middle-end/66353
10713         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
10714         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
10715         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
10716         rather than bb_has_abnormal_call_pred.
10717         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
10718         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
10719         rather than bb_has_abnormal_call_pred.
10721 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
10723         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10724         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
10725         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10726         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
10727         v850_legitimate_address_p): New functions.
10728         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
10730 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
10732         PR target/66819
10733         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
10734         indirect sibcall with register arguments if register available
10735         for argument passing.
10736         (init_cumulative_args): Set cfun->machine->arg_reg_available
10737         to (cum->nregs > 0) or to true if function has a variable
10738         argument list.
10739         (function_arg_advance_32): Set cfun->machine->arg_reg_available
10740         to false if cum->nregs <= 0.
10741         * config/i386/i386.h (machine_function): Add arg_reg_available.
10743 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
10745         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
10746         and gen_higpart instead of gen_rtx_SUBREG.
10747         * config/i386/i386.md
10748         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
10749         (read-modify peephole2): Use gen_lowpart instead of
10750         gen_rtx_SUBREG for operand 5.
10752 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
10754         * config/tilepro/gen-mul-tables.cc (main): Change include list for
10755         generated files.
10756         * config/tilepro/mul-tables.c: Regenerate.
10757         * config/tilegx/mul-tables.c: Regenerate.
10759 2015-07-10  Richard Biener  <rguenther@suse.de>
10761         * fold-const.c (distribute_bit_expr): Remove.
10762         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
10763         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
10764         to A & (B | C) and simplifying A << C1 << C2 to ...
10765         * match.pd: ... patterns here.
10767 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
10769         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
10770         Mark mem as READONLY and NOTRAP for PIC symbol.
10772 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
10774         * gimple-predict.h: New file.
10775         (gimple_predict_predictor, gimple_predict_set_predictor,
10776         gimple_predict_outcome, gimple_predict_set_outcome,
10777         gimple_build_predict): Relocate here.
10778         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
10779         gimple_predict_outcome, gimple_predict_set_outcome): Move to
10780         gimple-predict.h.
10781         * gimple.c (gimple_build_predict): Move to gimple-predict.h
10782         * basic-block.h: Don't include cfghooks.h.
10783         * backend.h: Don't include predict.h.
10784         * cfghooks.h: Include predict.h.
10785         * gimple-pretty-print.c: Include gimple-predict.h.
10786         * gimplify.c: Likwise.
10787         * predict.c: Adjust includes.
10788         * tree-inline.c: Likewise.
10789         * asan.c: Likewise.
10790         * auto-inc-dec.c: Likewise.
10791         * auto-profile.c: Likewise.
10792         * bb-reorder.c: Likewise.
10793         * builtins.c: Likewise.
10794         * caller-save.c: Likewise.
10795         * calls.c: Likewise.
10796         * cfganal.c: Likewise.
10797         * cfgbuild.c: Likewise.
10798         * cfg.c: Likewise.
10799         * cfgcleanup.c: Likewise.
10800         * cfgexpand.c: Likewise.
10801         * cfghooks.c: Likewise.
10802         * cfgloopanal.c: Likewise.
10803         * cfgloop.c: Likewise.
10804         * cfgloopmanip.c: Likewise.
10805         * cfgrtl.c: Likewise.
10806         * cgraph.c: Likewise.
10807         * cgraphunit.c: Likewise.
10808         * combine.c: Likewise.
10809         * cprop.c: Likewise.
10810         * cse.c: Likewise.
10811         * dce.c: Likewise.
10812         * dojump.c: Likewise.
10813         * dse.c: Likewise.
10814         * except.c: Likewise.
10815         * expmed.c: Likewise.
10816         * expr.c: Likewise.
10817         * final.c: Likewise.
10818         * fold-const.c: Likewise.
10819         * function.c: Likewise.
10820         * fwprop.c: Likewise.
10821         * gcc-plugin.h: Likewise.
10822         * gcse.c: Likewise.
10823         * genattrtab.c: Likewise.
10824         * genemit.c: Likewise.
10825         * gengtype.c: Likewise.
10826         * genopinit.c: Likewise.
10827         * genoutput.c: Likewise.
10828         * genpreds.c: Likewise.
10829         * genrecog.c: Likewise.
10830         * gimple-fold.c: Likewise.
10831         * gimple-iterator.c: Likewise.
10832         * gimple-ssa-isolate-paths.c: Likewise.
10833         * gimple-ssa-strength-reduction.c: Likewise.
10834         * graph.c: Likewise.
10835         * graphite-blocking.c: Likewise.
10836         * graphite.c: Likewise.
10837         * graphite-dependences.c: Likewise.
10838         * graphite-interchange.c: Likewise.
10839         * graphite-isl-ast-to-gimple.c: Likewise.
10840         * graphite-optimize-isl.c: Likewise.
10841         * graphite-poly.c: Likewise.
10842         * graphite-scop-detection.c: Likewise.
10843         * graphite-sese-to-poly.c: Likewise.
10844         * haifa-sched.c: Likewise.
10845         * ifcvt.c: Likewise.
10846         * internal-fn.c: Likewise.
10847         * ipa-cp.c: Likewise.
10848         * ipa-profile.c: Likewise.
10849         * ipa-split.c: Likewise.
10850         * ipa-utils.c: Likewise.
10851         * ira-build.c: Likewise.
10852         * ira-color.c: Likewise.
10853         * ira-conflicts.c: Likewise.
10854         * ira-costs.c: Likewise.
10855         * ira-emit.c: Likewise.
10856         * ira-lives.c: Likewise.
10857         * jump.c: Likewise.
10858         * loop-doloop.c: Likewise.
10859         * loop-init.c: Likewise.
10860         * loop-invariant.c: Likewise.
10861         * loop-unroll.c: Likewise.
10862         * lower-subreg.c: Likewise.
10863         * lra-assigns.c: Likewise.
10864         * lra.c: Likewise.
10865         * lra-coalesce.c: Likewise.
10866         * lra-constraints.c: Likewise.
10867         * lra-lives.c: Likewise.
10868         * lto-cgraph.c: Likewise.
10869         * lto-streamer-in.c: Likewise.
10870         * mode-switching.c: Likewise.
10871         * modulo-sched.c: Likewise.
10872         * omp-low.c: Likewise.
10873         * optabs.c: Likewise.
10874         * passes.c: Likewise.
10875         * postreload.c: Likewise.
10876         * postreload-gcse.c: Likewise.
10877         * profile.c: Likewise.
10878         * recog.c: Likewise.
10879         * regstat.c: Likewise.
10880         * reload1.c: Likewise.
10881         * reorg.c: Likewise.
10882         * rtlanal.c: Likewise.
10883         * sched-ebb.c: Likewise.
10884         * sel-sched-ir.c: Likewise.
10885         * sese.c: Likewise.
10886         * shrink-wrap.c: Likewise.
10887         * simplify-rtx.c: Likewise.
10888         * stmt.c: Likewise.
10889         * store-motion.c: Likewise.
10890         * tracer.c: Likewise.
10891         * trans-mem.c: Likewise.
10892         * tree-call-cdce.c: Likewise.
10893         * tree-cfg.c: Likewise.
10894         * tree-cfgcleanup.c: Likewise.
10895         * tree-chkp.c: Likewise.
10896         * tree-complex.c: Likewise.
10897         * tree-eh.c: Likewise.
10898         * tree-if-conv.c: Likewise.
10899         * tree-loop-distribution.c: Likewise.
10900         * tree-outof-ssa.c: Likewise.
10901         * tree-parloops.c: Likewise.
10902         * tree-predcom.c: Likewise.
10903         * tree-pretty-print.c: Likewise.
10904         * tree-profile.c: Likewise.
10905         * tree-sra.c: Likewise.
10906         * tree-ssa.c: Likewise.
10907         * tree-ssa-coalesce.c: Likewise.
10908         * tree-ssa-dce.c: Likewise.
10909         * tree-ssa-dom.c: Likewise.
10910         * tree-ssa-forwprop.c: Likewise.
10911         * tree-ssa-ifcombine.c: Likewise.
10912         * tree-ssa-loop-ch.c: Likewise.
10913         * tree-ssa-loop-im.c: Likewise.
10914         * tree-ssa-loop-ivcanon.c: Likewise.
10915         * tree-ssa-loop-ivopts.c: Likewise.
10916         * tree-ssa-loop-manip.c: Likewise.
10917         * tree-ssa-loop-prefetch.c: Likewise.
10918         * tree-ssa-loop-unswitch.c: Likewise.
10919         * tree-ssa-math-opts.c: Likewise.
10920         * tree-ssa-phiopt.c: Likewise.
10921         * tree-ssa-pre.c: Likewise.
10922         * tree-ssa-reassoc.c: Likewise.
10923         * tree-ssa-sink.c: Likewise.
10924         * tree-ssa-tail-merge.c: Likewise.
10925         * tree-ssa-threadedge.c: Likewise.
10926         * tree-ssa-threadupdate.c: Likewise.
10927         * tree-switch-conversion.c: Likewise.
10928         * tree-tailcall.c: Likewise.
10929         * tree-vect-data-refs.c: Likewise.
10930         * tree-vect-loop.c: Likewise.
10931         * tree-vect-loop-manip.c: Likewise.
10932         * tree-vectorizer.c: Likewise.
10933         * tree-vrp.c: Likewise.
10934         * ubsan.c: Likewise.
10935         * value-prof.c: Likewise.
10936         * varasm.c: Likewise.
10937         * var-tracking.c: Likewise.
10938         * config/aarch64/aarch64-builtins.c: Likewise.
10939         * config/aarch64/aarch64.c: Likewise.
10940         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10941         * config/alpha/alpha.c: Likewise.
10942         * config/arc/arc.c: Likewise.
10943         * config/arm/arm.c: Likewise.
10944         * config/avr/avr.c: Likewise.
10945         * config/bfin/bfin.c: Likewise.
10946         * config/c6x/c6x.c: Likewise.
10947         * config/cr16/cr16.c: Likewise.
10948         * config/cris/cris.c: Likewise.
10949         * config/darwin.c: Likewise.
10950         * config/darwin-c.c: Likewise.
10951         * config/epiphany/epiphany.c: Likewise.
10952         * config/epiphany/mode-switch-use.c: Likewise.
10953         * config/epiphany/resolve-sw-modes.c: Likewise.
10954         * config/fr30/fr30.c: Likewise.
10955         * config/frv/frv.c: Likewise.
10956         * config/ft32/ft32.c: Likewise.
10957         * config/h8300/h8300.c: Likewise.
10958         * config/i386/i386.c: Likewise.
10959         * config/i386/winnt.c: Likewise.
10960         * config/ia64/ia64.c: Likewise.
10961         * config/iq2000/iq2000.c: Likewise.
10962         * config/lm32/lm32.c: Likewise.
10963         * config/m32c/m32c.c: Likewise.
10964         * config/m32r/m32r.c: Likewise.
10965         * config/m68k/m68k.c: Likewise.
10966         * config/mcore/mcore.c: Likewise.
10967         * config/mep/mep.c: Likewise.
10968         * config/microblaze/microblaze.c: Likewise.
10969         * config/mips/mips.c: Likewise.
10970         * config/mmix/mmix.c: Likewise.
10971         * config/mn10300/mn10300.c: Likewise.
10972         * config/moxie/moxie.c: Likewise.
10973         * config/msp430/msp430.c: Likewise.
10974         * config/nds32/nds32.c: Likewise.
10975         * config/nds32/nds32-cost.c: Likewise.
10976         * config/nds32/nds32-fp-as-gp.c: Likewise.
10977         * config/nds32/nds32-intrinsic.c: Likewise.
10978         * config/nds32/nds32-isr.c: Likewise.
10979         * config/nds32/nds32-md-auxiliary.c: Likewise.
10980         * config/nds32/nds32-memory-manipulation.c: Likewise.
10981         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10982         * config/nds32/nds32-predicates.c: Likewise.
10983         * config/nios2/nios2.c: Likewise.
10984         * config/nvptx/nvptx.c: Likewise.
10985         * config/pa/pa.c: Likewise.
10986         * config/pdp11/pdp11.c: Likewise.
10987         * config/rl78/rl78.c: Likewise.
10988         * config/rs6000/rs6000.c: Likewise.
10989         * config/rx/rx.c: Likewise.
10990         * config/s390/s390.c: Likewise.
10991         * config/sh/sh.c: Likewise.
10992         * config/sh/sh-mem.cc: Likewise.
10993         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10994         * config/sh/sh_treg_combine.cc: Likewise.
10995         * config/sparc/sparc.c: Likewise.
10996         * config/spu/spu.c: Likewise.
10997         * config/stormy16/stormy16.c: Likewise.
10998         * config/tilegx/tilegx.c: Likewise.
10999         * config/tilepro/tilepro.c: Likewise.
11000         * config/v850/v850.c: Likewise.
11001         * config/vax/vax.c: Likewise.
11002         * config/visium/visium.c: Likewise.
11003         * config/xtensa/xtensa.c: Likewise.
11005 2015-07-10  Richard Biener  <rguenther@suse.de>
11007         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
11008         (decision_tree::gen_gimple): Likewise.
11009         (decision_tree::gen_generic): Likewise.
11011 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
11013         PR target/66813
11014         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
11015         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
11017 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
11019         PR middle-end/66820
11020         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
11021         or ORT_TASK contexts.
11022         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
11023         is non-zero.
11025 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11027         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
11028         above function.
11030 2015-07-10  Tom de Vries  <tom@codesourcery.com>
11032         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
11033         insert nit + 1 bound.
11035 2015-07-10  Richard Biener  <rguenther@suse.de>
11037         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
11038         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
11039         (if_convertible_loop_p_1): For this always compute bb predicates.
11040         (if_convertible_loop_p): And free them.
11042 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11044         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
11045         in dump message.
11047 2015-07-10  Richard Biener  <rguenther@suse.de>
11049         PR tree-optimization/66823
11050         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
11051         inverted predicate.
11053 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
11055         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
11056         to handle mips[32|64]r3 and mips[32|64]r5.
11058 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
11060         PR middle-end/66633
11061         * tree-nested.c (get_static_chain): Or in a flag into
11062         info->static_chain_added.
11063         (get_frame_field, get_nonlocal_debug_decl): Likewise.
11064         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
11065         2015-07-01 changes.
11066         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
11067         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
11068         add it to clauses.
11070         PR tree-optimization/66718
11071         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
11072         field.
11073         (vect_simd_lane_linear): New function.
11074         (vectorizable_simd_clone_call): Support using linear arguments for
11075         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
11077 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
11079         PR target/66821
11080         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
11082 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
11084         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
11085         Use machine mode, not enum machine_mode in the prototype.
11087         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
11088         classify 128-bit floating point support.
11089         (FLOAT128_IBM_P): Likewise.
11090         (FLOAT128_VECTOR_P): Likewise.
11091         (FLOAT128_2REG_P): Likewise.
11092         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
11093         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
11094         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
11095         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
11097         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
11098         tests against TFmode/TDmode, since those modes do not use VSX
11099         addresses.
11100         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
11101         support.
11102         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
11103         tests against TFmode, etc.
11104         (invalid_e500_subreg): Add tests against IFmode/KFmode.
11105         (reg_offset_addressing_ok_p): Likewise.
11106         (rs6000_legitimate_offset_address_p): Likewise.
11107         (rs6000_legitimize_address): Likewise.
11108         (rs6000_legitimize_reload_address): Likewise.
11109         (rs6000_legitimate_address_p): Clean up tests against TFmode and
11110         TDmode to use the new helper macros, which will include IFmode and
11111         KFmode.
11112         (rs6000_emit_move): Likewise.
11113         (rs6000_darwin64_record_arg_recurse): Likewise.
11114         (print_operand): Likewise.
11115         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
11116         that uses a single vector register as a vector and not as a
11117         floating point register in terms of the calling sequence.
11118         (rs6000_discover_homogeneous_aggregate): Likewise.
11119         (rs6000_return_in_memory): Likewise.
11120         (init_cumulative_args): Likewise.
11121         (rs6000_function_arg_boundary): Likewise.
11122         (rs6000_function_arg_advance_1): Likewise.
11123         (rs6000_function_arg): Likewise.
11124         (rs6000_pass_by_reference): Likewise.
11125         (rs6000_gimplify_va_arg): Likewise.
11126         (rs6000_secondary_reload_memory): Use machine_mode not enum
11127         machine mode.
11128         (rs6000_split_multireg_move): Use new helper macros.
11129         (spe_func_has_64bit_regs_p): Likewise.
11130         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
11131         (output_toc): Use new helper macros.
11132         (rs6000_register_move_cost): Likewise.
11133         (rs6000_function_value): Add IEEE 128-bit floating point calling
11134         sequence support.
11135         (rs6000_libcall_value): Likewise.
11136         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
11137         floating point support.
11138         (rs6000_vector_mode_supported_p): Likewise.
11140 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
11142         PR rtl-optimization/66782
11143         * lra-int.h (struct lra_insn_recog_data): Add comment about
11144         clobbered hard regs for arg_hard_regs.
11145         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
11146         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
11147         Add condition for processing used hard regs.
11148         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
11149         Process clobbered hard regs.
11151 2015-07-09  Michael Matz  <matz@suse.de>
11153         * genmatch.c (fprintf_indent): New function.
11154         (operand::gen_transform): Add indent parameter.
11155         (expr::gen_transform, c_expr::gen_transform,
11156         capture::gen_transform): Ditto and use fprintf_indent.
11157         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
11158         (dt_operand::gen, dt_operand::gen_predicate,
11159         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
11160         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
11161         (decision_tree::gen_gimple): Adjust calls and indent generated
11162         code.
11163         (decision_tree::gen_generic): Ditto.
11164         (write_predicate): Ditto.
11166 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
11168         PR target/66814
11169         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
11170         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
11171         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
11172         {GENERAL,SSE,MMX}_REG_P where appropriate.
11174 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
11176         * lto-streamer.h: Don't include target.h and alloc-pool.h.
11177         * builtins.c: Adjust includes.
11178         * gimple.c: Likewise.
11179         * ipa-icf.c: Likewise.
11180         * lto-opts.c: Likewise.
11181         * ipa-reference.c: Likewise.
11182         * lto-section-out.c: Likewise.
11183         * lto-streamer-in.c: Likewise.
11184         * lto-streamer-out.c: Likewise.
11185         * opts-global.c: Likewise.
11186         * symtab.c: Likewise.
11187         * tree-chkp.c: Likewise.
11188         * tree-ssa-live.c: Likewise.
11189         * tree-streamer-in.c: Likewise.
11190         * tree-streamer-out.c: Likewise.
11191         * config/darwin.c: Likewise.
11192         * config/i386/winnt.c: Likewise.
11194 2015-07-09  Richard Biener  <rguenther@suse.de>
11196         * genmatch.c (struct expr): Add force_single_use flag.
11197         (expr::expr): Add copy constructor.
11198         (capture_info::walk_match): Gather force_single_use captures.
11199         (expr::gen_transform): Use possibly NULLified sequence.
11200         (dt_simplify::gen): Apply single-use restrictions by NULLifying
11201         seq if any constrained expr is not single-use.
11202         (parser::parse_expr): Refactor to allow multiple flags.  Handle
11203         's' flag to force an expression have a single-use if the pattern
11204         simplifies to more than one statement.
11205         * match.pd: Convert most single_use conditionals to :s flags.
11207 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
11209         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
11210         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
11211         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
11213 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
11215         * flags.h: Don't include flag-types.h or options.h.
11216         * opts-common.c: Adjust includes.
11217         * opts-global.c: Likewise.
11218         * common/config/epiphany/epiphany-common.c: Likewise.
11220 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
11222         PR target/66818
11223         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
11224         for IA MCU.
11226 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
11228         PR target/66817
11229         * config/i386/i386.c (ix86_return_in_memory): Return true
11230         if int_size_in_bytes returns negative for IA MCU.
11232 2015-07-09  Marek Polacek  <polacek@redhat.com>
11234         PR tree-optimization/66718
11235         * Makefile.in (OBJS): Add gimple-laddress.o.
11236         * passes.def: Schedule pass_laddress.
11237         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
11238         * tree-pass.h (make_pass_laddress): Declare.
11239         * gimple-laddress.c: New file.
11241 2015-07-09  Richard Biener  <rguenther@suse.de>
11243         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
11245 2015-07-09  Richard Biener  <rguenther@suse.de>
11247         PR tree-optimization/66807
11248         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
11250 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
11252         * function.c (stack_protect_epilogue): Use if rather than switch for
11253         check targetm.have_stack_protect_test.
11255 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11257         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
11258         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
11259         * config/arc/arc.h: Likewise.
11260         * config/arm/arm.h: Likewise.
11261         * config/bfin/bfin.h: Likewise.
11262         * config/epiphany/epiphany.h: Likewise.
11263         * config/frv/frv.h: Likewise.
11264         * config/ia64/ia64.h: Likewise.
11265         * config/iq2000/iq2000.h: Likewise.
11266         * config/lm32/lm32.h: Likewise.
11267         * config/m32r/m32r.h: Likewise.
11268         * config/mcore/mcore.h: Likewise.
11269         * config/mep/mep.h: Likewise.
11270         * config/microblaze/microblaze.h: Likewise.
11271         * config/mips/mips.h: Likewise.
11272         * config/mmix/mmix.h: Likewise.
11273         * config/mn10300/mn10300.h: Likewise.
11274         * config/nds32/nds32.h: Likewise.
11275         * config/nios2/nios2.h: Likewise.
11276         * config/pa/pa.h: Likewise.
11277         * config/rl78/rl78.h: Likewise.
11278         * config/sh/sh.h: Likewise.
11279         * config/sparc/sparc.h: Likewise.
11280         * config/stormy16/stormy16.h: Likewise.
11281         * config/tilegx/tilegx.h: Likewise.
11282         * config/tilepro/tilepro.h: Likewise.
11283         * config/v850/v850.h: Likewise.
11284         * config/xtensa/xtensa.h: Likewise.
11285         * doc/tm.texi: Regenerate.
11286         * doc/tm.texi.in: Adjust.
11287         * combine.c (simplify_set): Likewise.
11288         (simplify_comparison): Likewise.
11289         * expr.c (store_constructor): Likewise.
11290         * internal-fn.c (expand_arith_overflow): Likewise.
11291         * reload.c (push_reload): Likewise.
11292         (find_reloads): Likewise.
11293         (find_reloads_subreg_address): Likewise.
11294         * reload1.c (eliminate_regs_1): Likewise.
11295         * rtlanal.c (nonzero_bits1): Likewise.
11296         (num_sign_bit_copies1): Likewise.
11297         * simplify-rtx.c (simplify_truncation): Likewise.
11299 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11301         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
11302         of AUTO_INC_DEC with the preprocessor.
11303         * combine.c (combine_instructions): Likewise.
11304         (can_combine_p): Likewise.
11305         (try_combine): Likewise.
11306         * emit-rtl.c (try_split): Likewise.
11307         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
11308         * lower-subreg.c (resolve_simple_move): Likewise.
11309         * lra.c (update_inc_notes): Likewise.
11310         * recog.c (asm_operand_ok): Likewise.
11311         (constrain_operands): Likewise.
11312         * regrename.c (scan_rtx_address): Likewise.
11313         * reload.c (update_auto_inc_notes): Likewise.
11314         (reg_inc_found_and_valid_p): Likewise.
11315         * reload1.c (reload): Likewise.
11316         (emit_input_reload_insns): Likewise.
11317         (delete_output_reload): Likewise.
11318         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
11319         * valtrack.c (cleanup_auto_inc_dec): Likewise.
11321 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11323         * rtl.h: Always define AUTO_INC_DEC.
11324         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
11325         * combine.c (combine_instructions): Likewise.
11326         (can_combine_p): Likewise.
11327         (try_combine): Likewise.
11328         * emit-rtl.c (try_split): Likewise.
11329         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
11330         * lower-subreg.c (resolve_simple_move): Likewise.
11331         * lra.c (update_inc_notes): Likewise.
11332         * recog.c (asm_operand_ok): Likewise.
11333         (constrain_operands): Likewise.
11334         * regrename.c (scan_rtx_address): Likewise.
11335         * reload.c (update_auto_inc_notes): Likewise.
11336         (find_equiv_reg): Likewise.
11337         * reload1.c (reload): Likewise.
11338         (reload_as_needed): Likewise.
11339         (choose_reload_regs): Likewise.
11340         (emit_input_reload_insns): Likewise.
11341         (delete_output_reload): Likewise.
11342         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
11343         * valtrack.c (cleanup_auto_inc_dec): Likewise.
11345 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11347         * combine.c (can_combine_def_p): Don't check the value of
11348         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
11349         (combinable_i3pat): Likewise.
11350         (mark_used_regs_combine): Likewise.
11351         * regrename.c (rename_chains): Likewise.
11352         * reload.c (find_reloads_address): Likewise.
11353         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11355 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11357         * combine.c (update_rsp_from_reg_equal): Don't check if
11358         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
11359         (reg_nonzero_bits_for_combine): Likewise.
11360         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
11361         1.
11362         * config/frv/frv.h: Likewise.
11363         * config/lm32/lm32.h: Likewise.
11364         * config/mep/mep.h: Likewise.
11365         * config/mips/mips.h: Likewise.
11366         * config/rs6000/rs6000.h: Likewise.
11367         * config/sh/sh.h: Likewise.
11368         * config/tilegx/tilegx.h (enum reg_class): Likewise.
11369         * config/tilepro/tilepro.h: Likewise.
11370         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
11371         * doc/tm.texi: Regenerate.
11372         * doc/tm.texi.in: Adjust.
11373         * rtlanal.c (nonzero_bits1): Likewise.
11375 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11377         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
11378         with the preprocessor.
11379         (combine_instructions): Likewise.
11380         (try_combine): Likewise.
11381         (subst): Likewise.
11382         (distribute_notes): Likewise.
11384 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11386         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
11387         defined.
11388         (simplify_set): Likewise.
11389         * cse.c (cse_insn): Likewise.
11390         * fold-const.c (fold_single_bit_test): Likewise.
11391         (fold_unary_loc): Likewise.
11392         * postreload.c (reload_cse_simplify_set): Likewise.
11393         (reload_cse_simplify_operands): Likewise.
11395 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
11397         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
11398         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
11400 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
11402         PR target/66746
11403         * config/i386/x86intrin.h: Include <adxintrin.h> even if
11404         __iamcu__ is defined.
11406 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
11408         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
11410 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
11412         PR target/66523
11413         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
11414         names from preservation.
11416 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
11418         PR target/66806
11419         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
11420         change for IAMCU.
11421         (function_arg_advance_32): Don't pass vectors in registers for
11422         IAMCU.
11423         (function_arg_32): Likewise.
11424         (ix86_return_in_memory): Don't return vectors in registers for
11425         IAMCU.
11427 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
11429         PR middle-end/66334
11430         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
11431         hard regno live at the start of BB with incoming abnormal edges.
11432         * lra-lives.c (process_bb_lives): Ditto.
11434 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
11436         PR libgomp/65099
11437         * config/nvptx/mkoffload.c (main): Create an offload image only in
11438         64-bit configurations.
11440 2015-07-08  Martin Liska  <mliska@suse.cz>
11442         PR bootstrap/66744
11443         * tree-sra.c (create_access_1): Call ctor without brackets.
11444         (create_artificial_child_access): Likewise.
11446 2015-07-08  Richard Biener  <rguenther@suse.de>
11448         PR tree-optimization/66793
11449         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
11450         Properly split the block after stmts ending it.
11452 2015-07-08  Richard Biener  <rguenther@suse.de>
11454         PR tree-optimization/66794
11455         * passes.c (execute_function_todo): Assert that post-dominators
11456         are not computed.
11457         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
11458         Free post-dominators.
11460 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11462         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
11463         with early exit.
11465 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
11467         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
11468         more than or equal 8 and less than 32 when optimizing for size.
11470 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11472         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
11473         COSTS_N_INSNS (1) and increment it appropriately throughout the
11474         function.
11476 2015-07-08  Richard Biener  <rguenther@suse.de>
11478         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
11480 2015-07-08  Alan Modra  <amodra@gmail.com>
11482         * target.def (rtx_costs): Remove "code" param, add "mode".
11483         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
11484         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
11485         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
11486         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
11487         call.  Track mode when given in rtx.
11488         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
11489         (default_address_cost): Pass Pmode to rtx_cost.
11490         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
11491         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
11492         with NULL set.
11493         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
11494         (notreg_cost): Add mode param.  Use it.
11495         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
11496         mode param and pass to set_src_cost.  Update all calls.
11497         (hash_scan_set): Formatting.
11498         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
11499         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
11500         * hooks.h: Ditto.
11501         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
11502         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
11503         emit_store_flag): Update set_src_cost and rtx_cost calls.
11504         * auto-inc-dec.c (attempt_change): Likewise.
11505         * calls.c (precompute_register_parameters): Likewise.
11506         * combine.c (expand_compound_operation, make_extraction,
11507         force_to_mode, distribute_and_simplify_rtx): Likewise.
11508         * dojump.c (prefer_and_bit_test): Likewise.
11509         * dse.c (find_shift_sequence): Likewise.
11510         * expr.c (compress_float_constant): Likewise.
11511         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
11512         * ifcvt.c (noce_try_sign_mask): Likewise.
11513         * loop-doloop.c (doloop_optimize): Likewise.
11514         * loop-invariant.c (create_new_invariant): Likewise.
11515         * lower-subreg.c (shift_cost, compute_costs): Likewise.
11516         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
11517         lshift_cheap_p): Likewise.
11518         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
11519         try_replace_in_use, reload_cse_move2add): Likewise.
11520         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
11521         Likewise.
11522         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11523         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
11524         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
11525         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
11526         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
11527         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
11528         to rtx_cost calls.
11529         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
11530         * config/arc/arc.c (arc_rtx_costs): Likewise.
11531         * config/arm/arm.c (arm_rtx_costs): Likewise.
11532         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
11533         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
11534         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
11535         * config/cris/cris.c (cris_rtx_costs): Likewise.
11536         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
11537         * config/frv/frv.c (frv_rtx_costs): Likewise.
11538         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
11539         * config/i386/i386.c (ix86_rtx_costs): Likewise.
11540         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
11541         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
11542         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
11543         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
11544         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
11545         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
11546         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
11547         * config/mep/mep.c (mep_rtx_cost): Likewise.
11548         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
11549         * config/mips/mips.c (mips_rtx_costs): Likewise.
11550         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
11551         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
11552         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
11553         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
11554         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
11555         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
11556         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
11557         * config/pa/pa.c (hppa_rtx_costs): Likewise.
11558         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
11559         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
11560         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
11561         * config/s390/s390.c (s390_rtx_costs): Likewise.
11562         * config/sh/sh.c (sh_rtx_costs): Likewise.
11563         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
11564         * config/spu/spu.c (spu_rtx_costs): Likewise.
11565         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
11566         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
11567         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
11568         * config/v850/v850.c (v850_rtx_costs): Likewise.
11569         * config/vax/vax.c (vax_rtx_costs): Likewise.
11570         * config/visium/visium.c (visium_rtx_costs): Likewise.
11571         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
11572         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
11573         "code" param, and pass as outer_code to first rtx_cost call.  Pass
11574         mode to rtx_cost calls.
11575         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
11576         calls.
11577         (aarch64_rtx_costs_wrapper): Update.
11578         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
11579         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
11580         rtx_cost calls.
11581         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
11582         and rtx_cost calls.
11583         (avr_operand_rtx_cost): Similarly.
11584         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
11585         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
11586         * config/mips/mips.c (mips_stack_address_p): Comment typo.
11587         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
11588         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
11589         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
11590         rtx_cost.
11591         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
11592         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
11593         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
11594         * doc/tm.texi: Regenerate.
11596 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
11598         * tree-core.h: Include symtab.h.
11599         * rtl.h: Include hard-reg-set.h but not flags.h.
11600         (HARD_CONST): Remove condition compilation involving HARD_CONST since
11601         hard-reg-set.h is always included.
11602         * regs.h: Don't include hard-reg-set.h or rtl.h.
11603         * cfg.h: Include dominance.h.
11604         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
11605         * backend.h: New.  Aggregate commonly used backend header files.
11606         * gimple-ssa.h: Don't include tree-hasher.h.
11607         * ssa.h: New.  Aggregate commonly used SSA header files.
11608         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
11609         * sel-sched-ir.h: Flatten includes.
11610         * lra-int.h: Flatten completely.
11611         * sel-sched-dump.h: Flatten includes.
11612         * ira-int.h: Flatten includes.
11613         * gimple-streamer.h: Remove all includes.
11614         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
11615         * resource.h: Flatten hard-reg-set.h and df.h.
11616         * sched-int.h: Flatten insn-arrt.h and df.h.
11617         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
11618         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
11619         * genattrtab.c (write_header): Adjust generated includes.
11620         * genautomata.c (main): Likewise.
11621         * genconditions.c (write-header): Likewise.
11622         * genemit.c (main): Likewise.
11623         * gengtype.c (open_base_files): Likewise.
11624         * genopinit.c (main): Likewise.
11625         * genoutput.c (output_prologue): Likewise.
11626         * genpeep.c (main): Likewise.
11627         * genpreds.c (write_insn_preds_c): Likewise.
11628         * genrecog.c (write_header): Likewise.
11629         * alias.c: Adjust includes.
11630         * asan.c: Likewise.
11631         * attribs.c: Likewise.
11632         * auto-inc-dec.c: Likewise.
11633         * auto-profile.c: Likewise.
11634         * bb-reorder.c: Likewise.
11635         * bt-load.c: Likewise.
11636         * builtins.c: Likewise.
11637         * caller-save.c: Likewise.
11638         * calls.c: Likewise.
11639         * ccmp.c: Likewise.
11640         * cfg.c: Likewise.
11641         * cfganal.c: Likewise.
11642         * cfgbuild.c: Likewise.
11643         * cfgcleanup.c: Likewise.
11644         * cfgexpand.c: Likewise.
11645         * cfghooks.c: Likewise.
11646         * cfgloop.c: Likewise.
11647         * cfgloopanal.c: Likewise.
11648         * cfgloopmanip.c: Likewise.
11649         * cfgrtl.c: Likewise.
11650         * cgraph.c: Likewise.
11651         * cgraphbuild.c: Likewise.
11652         * cgraphclones.c: Likewise.
11653         * cgraphunit.c: Likewise.
11654         * cilk-common.c: Likewise.
11655         * combine-stack-adj.c: Likewise.
11656         * combine.c: Likewise.
11657         * compare-elim.c: Likewise.
11658         * convert.c: Likewise.
11659         * coverage.c: Likewise.
11660         * cppbuiltin.c: Likewise.
11661         * cprop.c: Likewise.
11662         * cse.c: Likewise.
11663         * cselib.c: Likewise.
11664         * data-streamer-in.c: Likewise.
11665         * data-streamer-out.c: Likewise.
11666         * data-streamer.c: Likewise.
11667         * dbxout.c: Likewise.
11668         * dce.c: Likewise.
11669         * ddg.c: Likewise.
11670         * debug.c: Likewise.
11671         * df-core.c: Likewise.
11672         * df-problems.c: Likewise.
11673         * df-scan.c: Likewise.
11674         * dfp.c: Likewise.
11675         * dojump.c: Likewise.
11676         * dominance.c: Likewise.
11677         * domwalk.c: Likewise.
11678         * double-int.c: Likewise.
11679         * dse.c: Likewise.
11680         * dumpfile.c: Likewise.
11681         * dwarf2asm.c: Likewise.
11682         * dwarf2cfi.c: Likewise.
11683         * dwarf2out.c: Likewise.
11684         * emit-rtl.c: Likewise.
11685         * et-forest.c: Likewise.
11686         * except.c: Likewise.
11687         * explow.c: Likewise.
11688         * expmed.c: Likewise.
11689         * expr.c: Likewise.
11690         * final.c: Likewise.
11691         * fixed-value.c: Likewise.
11692         * fold-const.c: Likewise.
11693         * function.c: Likewise.
11694         * fwprop.c: Likewise.
11695         * gcc-plugin.h: Likewise.
11696         * gcse-common.c: Likewise.
11697         * gcse.c: Likewise.
11698         * generic-match-head.c: Likewise.
11699         * ggc-page.c: Likewise.
11700         * gimple-builder.c: Likewise.
11701         * gimple-expr.c: Likewise.
11702         * gimple-fold.c: Likewise.
11703         * gimple-iterator.c: Likewise.
11704         * gimple-low.c: Likewise.
11705         * gimple-match-head.c: Likewise.
11706         * gimple-pretty-print.c: Likewise.
11707         * gimple-ssa-isolate-paths.c: Likewise.
11708         * gimple-ssa-strength-reduction.c: Likewise.
11709         * gimple-streamer-in.c: Likewise.
11710         * gimple-streamer-out.c: Likewise.
11711         * gimple-walk.c: Likewise.
11712         * gimple.c: Likewise.
11713         * gimplify-me.c: Likewise.
11714         * gimplify.c: Likewise.
11715         * godump.c: Likewise.
11716         * graph.c: Likewise.
11717         * graphite-blocking.c: Likewise.
11718         * graphite-dependences.c: Likewise.
11719         * graphite-interchange.c: Likewise.
11720         * graphite-isl-ast-to-gimple.c: Likewise.
11721         * graphite-optimize-isl.c: Likewise.
11722         * graphite-poly.c: Likewise.
11723         * graphite-scop-detection.c: Likewise.
11724         * graphite-sese-to-poly.c: Likewise.
11725         * graphite.c: Likewise.
11726         * haifa-sched.c: Likewise.
11727         * hw-doloop.c: Likewise.
11728         * ifcvt.c: Likewise.
11729         * init-regs.c: Likewise.
11730         * internal-fn.c: Likewise.
11731         * ipa-chkp.c: Likewise.
11732         * ipa-comdats.c: Likewise.
11733         * ipa-cp.c: Likewise.
11734         * ipa-devirt.c: Likewise.
11735         * ipa-icf-gimple.c: Likewise.
11736         * ipa-icf.c: Likewise.
11737         * ipa-inline-analysis.c: Likewise.
11738         * ipa-inline-transform.c: Likewise.
11739         * ipa-inline.c: Likewise.
11740         * ipa-polymorphic-call.c: Likewise.
11741         * ipa-profile.c: Likewise.
11742         * ipa-prop.c: Likewise.
11743         * ipa-pure-const.c: Likewise.
11744         * ipa-ref.c: Likewise.
11745         * ipa-reference.c: Likewise.
11746         * ipa-split.c: Likewise.
11747         * ipa-utils.c: Likewise.
11748         * ipa-visibility.c: Likewise.
11749         * ipa.c: Likewise.
11750         * ira-build.c: Likewise.
11751         * ira-color.c: Likewise.
11752         * ira-conflicts.c: Likewise.
11753         * ira-costs.c: Likewise.
11754         * ira-emit.c: Likewise.
11755         * ira-lives.c: Likewise.
11756         * ira.c: Likewise.
11757         * jump.c: Likewise.
11758         * langhooks.c: Likewise.
11759         * lcm.c: Likewise.
11760         * loop-doloop.c: Likewise.
11761         * loop-init.c: Likewise.
11762         * loop-invariant.c: Likewise.
11763         * loop-iv.c: Likewise.
11764         * loop-unroll.c: Likewise.
11765         * lower-subreg.c: Likewise.
11766         * lra-assigns.c: Likewise.
11767         * lra-coalesce.c: Likewise.
11768         * lra-constraints.c: Likewise.
11769         * lra-eliminations.c: Likewise.
11770         * lra-lives.c: Likewise.
11771         * lra-remat.c: Likewise.
11772         * lra-spills.c: Likewise.
11773         * lra.c: Likewise.
11774         * lto-cgraph.c: Likewise.
11775         * lto-compress.c: Likewise.
11776         * lto-opts.c: Likewise.
11777         * lto-section-in.c: Likewise.
11778         * lto-section-out.c: Likewise.
11779         * lto-streamer-in.c: Likewise.
11780         * lto-streamer-out.c: Likewise.
11781         * lto-streamer.c: Likewise.
11782         * mcf.c: Likewise.
11783         * mode-switching.c: Likewise.
11784         * modulo-sched.c: Likewise.
11785         * omega.c: Likewise.
11786         * omp-low.c: Likewise.
11787         * optabs.c: Likewise.
11788         * opts-global.c: Likewise.
11789         * passes.c: Likewise.
11790         * plugin.c: Likewise.
11791         * postreload-gcse.c: Likewise.
11792         * postreload.c: Likewise.
11793         * predict.c: Likewise.
11794         * print-rtl.c: Likewise.
11795         * print-tree.c: Likewise.
11796         * profile.c: Likewise.
11797         * real.c: Likewise.
11798         * realmpfr.c: Likewise.
11799         * recog.c: Likewise.
11800         * ree.c: Likewise.
11801         * reg-stack.c: Likewise.
11802         * regcprop.c: Likewise.
11803         * reginfo.c: Likewise.
11804         * regrename.c: Likewise.
11805         * regstat.c: Likewise.
11806         * reload.c: Likewise.
11807         * reload1.c: Likewise.
11808         * reorg.c: Likewise.
11809         * resource.c: Likewise.
11810         * rtl-chkp.c: Likewise.
11811         * rtlanal.c: Likewise.
11812         * rtlhooks.c: Likewise.
11813         * sanopt.c: Likewise.
11814         * sched-deps.c: Likewise.
11815         * sched-ebb.c: Likewise.
11816         * sched-rgn.c: Likewise.
11817         * sched-vis.c: Likewise.
11818         * sdbout.c: Likewise.
11819         * sel-sched-dump.c: Likewise.
11820         * sel-sched-ir.c: Likewise.
11821         * sel-sched.c: Likewise.
11822         * sese.c: Likewise.
11823         * shrink-wrap.c: Likewise.
11824         * simplify-rtx.c: Likewise.
11825         * stack-ptr-mod.c: Likewise.
11826         * stmt.c: Likewise.
11827         * stor-layout.c: Likewise.
11828         * store-motion.c: Likewise.
11829         * stringpool.c: Likewise.
11830         * symtab.c: Likewise.
11831         * target-globals.c: Likewise.
11832         * targhooks.c: Likewise.
11833         * toplev.c: Likewise.
11834         * tracer.c: Likewise.
11835         * trans-mem.c: Likewise.
11836         * tree-affine.c: Likewise.
11837         * tree-browser.c: Likewise.
11838         * tree-call-cdce.c: Likewise.
11839         * tree-cfg.c: Likewise.
11840         * tree-cfgcleanup.c: Likewise.
11841         * tree-chkp-opt.c: Likewise.
11842         * tree-chkp.c: Likewise.
11843         * tree-chrec.c: Likewise.
11844         * tree-complex.c: Likewise.
11845         * tree-data-ref.c: Likewise.
11846         * tree-dfa.c: Likewise.
11847         * tree-diagnostic.c: Likewise.
11848         * tree-dump.c: Likewise.
11849         * tree-eh.c: Likewise.
11850         * tree-emutls.c: Likewise.
11851         * tree-if-conv.c: Likewise.
11852         * tree-inline.c: Likewise.
11853         * tree-into-ssa.c: Likewise.
11854         * tree-iterator.c: Likewise.
11855         * tree-loop-distribution.c: Likewise.
11856         * tree-nested.c: Likewise.
11857         * tree-nrv.c: Likewise.
11858         * tree-object-size.c: Likewise.
11859         * tree-outof-ssa.c: Likewise.
11860         * tree-parloops.c: Likewise.
11861         * tree-phinodes.c: Likewise.
11862         * tree-predcom.c: Likewise.
11863         * tree-pretty-print.c: Likewise.
11864         * tree-profile.c: Likewise.
11865         * tree-scalar-evolution.c: Likewise.
11866         * tree-sra.c: Likewise.
11867         * tree-ssa-address.c: Likewise.
11868         * tree-ssa-alias.c: Likewise.
11869         * tree-ssa-ccp.c: Likewise.
11870         * tree-ssa-coalesce.c: Likewise.
11871         * tree-ssa-copy.c: Likewise.
11872         * tree-ssa-copyrename.c: Likewise.
11873         * tree-ssa-dce.c: Likewise.
11874         * tree-ssa-dom.c: Likewise.
11875         * tree-ssa-dse.c: Likewise.
11876         * tree-ssa-forwprop.c: Likewise.
11877         * tree-ssa-ifcombine.c: Likewise.
11878         * tree-ssa-live.c: Likewise.
11879         * tree-ssa-loop-ch.c: Likewise.
11880         * tree-ssa-loop-im.c: Likewise.
11881         * tree-ssa-loop-ivcanon.c: Likewise.
11882         * tree-ssa-loop-ivopts.c: Likewise.
11883         * tree-ssa-loop-manip.c: Likewise.
11884         * tree-ssa-loop-niter.c: Likewise.
11885         * tree-ssa-loop-prefetch.c: Likewise.
11886         * tree-ssa-loop-unswitch.c: Likewise.
11887         * tree-ssa-loop.c: Likewise.
11888         * tree-ssa-math-opts.c: Likewise.
11889         * tree-ssa-operands.c: Likewise.
11890         * tree-ssa-phiopt.c: Likewise.
11891         * tree-ssa-phiprop.c: Likewise.
11892         * tree-ssa-pre.c: Likewise.
11893         * tree-ssa-propagate.c: Likewise.
11894         * tree-ssa-reassoc.c: Likewise.
11895         * tree-ssa-sccvn.c: Likewise.
11896         * tree-ssa-scopedtables.c: Likewise.
11897         * tree-ssa-sink.c: Likewise.
11898         * tree-ssa-strlen.c: Likewise.
11899         * tree-ssa-structalias.c: Likewise.
11900         * tree-ssa-tail-merge.c: Likewise.
11901         * tree-ssa-ter.c: Likewise.
11902         * tree-ssa-threadedge.c: Likewise.
11903         * tree-ssa-threadupdate.c: Likewise.
11904         * tree-ssa-uncprop.c: Likewise.
11905         * tree-ssa-uninit.c: Likewise.
11906         * tree-ssa.c: Likewise.
11907         * tree-ssanames.c: Likewise.
11908         * tree-stdarg.c: Likewise.
11909         * tree-streamer-in.c: Likewise.
11910         * tree-streamer-out.c: Likewise.
11911         * tree-streamer.c: Likewise.
11912         * tree-switch-conversion.c: Likewise.
11913         * tree-tailcall.c: Likewise.
11914         * tree-vect-data-refs.c: Likewise.
11915         * tree-vect-generic.c: Likewise.
11916         * tree-vect-loop-manip.c: Likewise.
11917         * tree-vect-loop.c: Likewise.
11918         * tree-vect-patterns.c: Likewise.
11919         * tree-vect-slp.c: Likewise.
11920         * tree-vect-stmts.c: Likewise.
11921         * tree-vectorizer.c: Likewise.
11922         * tree-vrp.c: Likewise.
11923         * tree.c: Likewise.
11924         * tsan.c: Likewise.
11925         * ubsan.c: Likewise.
11926         * valtrack.c: Likewise.
11927         * value-prof.c: Likewise.
11928         * var-tracking.c: Likewise.
11929         * varasm.c: Likewise.
11930         * varpool.c: Likewise.
11931         * vmsdbgout.c: Likewise.
11932         * vtable-verify.c: Likewise.
11933         * web.c: Likewise.
11934         * wide-int.cc: Likewise.
11935         * xcoffout.c: Likewise.
11936         * config/aarch64/aarch64-builtins.c: Likewise.
11937         * config/aarch64/aarch64.c: Likewise.
11938         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
11939         * config/alpha/alpha.c: Likewise.
11940         * config/arc/arc.c: Likewise.
11941         * config/arm/aarch-common.c: Likewise.
11942         * config/arm/arm-builtins.c: Likewise.
11943         * config/arm/arm-c.c: Likewise.
11944         * config/arm/arm.c: Likewise.
11945         * config/avr/avr-c.c: Likewise.
11946         * config/avr/avr-log.c: Likewise.
11947         * config/avr/avr.c: Likewise.
11948         * config/bfin/bfin.c: Likewise.
11949         * config/c6x/c6x.c: Likewise.
11950         * config/cr16/cr16.c: Likewise.
11951         * config/cris/cris.c: Likewise.
11952         * config/darwin-c.c: Likewise.
11953         * config/darwin.c: Likewise.
11954         * config/epiphany/epiphany.c: Likewise.
11955         * config/epiphany/mode-switch-use.c: Likewise.
11956         * config/epiphany/resolve-sw-modes.c: Likewise.
11957         * config/fr30/fr30.c: Likewise.
11958         * config/frv/frv.c: Likewise.
11959         * config/ft32/ft32.c: Likewise.
11960         * config/h8300/h8300.c: Likewise.
11961         * config/i386/i386-c.c: Likewise.
11962         * config/i386/i386.c: Likewise.
11963         * config/i386/msformat-c.c: Likewise.
11964         * config/i386/winnt-cxx.c: Likewise.
11965         * config/i386/winnt-stubs.c: Likewise.
11966         * config/i386/winnt.c: Likewise.
11967         * config/ia64/ia64-c.c: Likewise.
11968         * config/ia64/ia64.c: Likewise.
11969         * config/iq2000/iq2000.c: Likewise.
11970         * config/lm32/lm32.c: Likewise.
11971         * config/m32c/m32c-pragma.c: Likewise.
11972         * config/m32c/m32c.c: Likewise.
11973         * config/m32r/m32r.c: Likewise.
11974         * config/m68k/m68k.c: Likewise.
11975         * config/mcore/mcore.c: Likewise.
11976         * config/mep/mep-pragma.c: Likewise.
11977         * config/mep/mep.c: Likewise.
11978         * config/microblaze/microblaze-c.c: Likewise.
11979         * config/microblaze/microblaze.c: Likewise.
11980         * config/mips/mips.c: Likewise.
11981         * config/mmix/mmix.c: Likewise.
11982         * config/mn10300/mn10300.c: Likewise.
11983         * config/moxie/moxie.c: Likewise.
11984         * config/msp430/msp430-c.c: Likewise.
11985         * config/msp430/msp430.c: Likewise.
11986         * config/nds32/nds32-cost.c: Likewise.
11987         * config/nds32/nds32-fp-as-gp.c: Likewise.
11988         * config/nds32/nds32-intrinsic.c: Likewise.
11989         * config/nds32/nds32-isr.c: Likewise.
11990         * config/nds32/nds32-md-auxiliary.c: Likewise.
11991         * config/nds32/nds32-memory-manipulation.c: Likewise.
11992         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11993         * config/nds32/nds32-predicates.c: Likewise.
11994         * config/nds32/nds32.c: Likewise.
11995         * config/nios2/nios2.c: Likewise.
11996         * config/nvptx/nvptx.c: Likewise.
11997         * config/pa/pa.c: Likewise.
11998         * config/pdp11/pdp11.c: Likewise.
11999         * config/rl78/rl78-c.c: Likewise.
12000         * config/rl78/rl78.c: Likewise.
12001         * config/rs6000/rs6000-c.c: Likewise.
12002         * config/rs6000/rs6000.c: Likewise.
12003         * config/rx/rx.c: Likewise.
12004         * config/s390/s390-c.c: Likewise.
12005         * config/s390/s390.c: Likewise.
12006         * config/sh/sh-c.c: Likewise.
12007         * config/sh/sh-mem.cc: Likewise.
12008         * config/sh/sh.c: Likewise.
12009         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12010         * config/sh/sh_treg_combine.cc: Likewise.
12011         * config/sol2-c.c: Likewise.
12012         * config/sol2-cxx.c: Likewise.
12013         * config/sol2-stubs.c: Likewise.
12014         * config/sol2.c: Likewise.
12015         * config/sparc/sparc-c.c: Likewise.
12016         * config/sparc/sparc.c: Likewise.
12017         * config/spu/spu-c.c: Likewise.
12018         * config/spu/spu.c: Likewise.
12019         * config/stormy16/stormy16.c: Likewise.
12020         * config/tilegx/mul-tables.c: Likewise.
12021         * config/tilegx/tilegx-c.c: Likewise.
12022         * config/tilegx/tilegx.c: Likewise.
12023         * config/tilepro/mul-tables.c: Likewise.
12024         * config/tilepro/tilepro-c.c: Likewise.
12025         * config/tilepro/tilepro.c: Likewise.
12026         * config/v850/v850-c.c: Likewise.
12027         * config/v850/v850.c: Likewise.
12028         * config/vax/vax.c: Likewise.
12029         * config/visium/visium.c: Likewise.
12030         * config/vms/vms-c.c: Likewise.
12031         * config/vms/vms.c: Likewise.
12032         * config/vxworks.c: Likewise.
12033         * config/xtensa/xtensa.c: Likewise.
12035 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
12037         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
12038         Remove operand constraints.  Change operand 2 predicate to
12039         nonmemory operand.  Limit const_int values to mode bitsize.  Only
12040         allow const_int values less than 32 when optimizing for size.
12041         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
12042         Remove operand constraints.
12043         (*bt<mode>): Use SImode for const_int values less than 32.
12044         (regmode): Remove mode attribute.
12046 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
12048         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12049         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
12050           moxie_legitimate_address_p): New functions.
12051           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
12053 2015-07-07  Tom de Vries  <tom@codesourcery.com>
12055         PR tree-optimization/66642
12056         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
12057         header comment.  Rename split_edge variable to edge_at_split.  Split
12058         exit edge to create new loop exit bb.  Insert loop exit phis in new
12059         loop exit bb.
12061 2015-07-07  Tom de Vries  <tom@codesourcery.com>
12063         * tree-cfg.c (get_virtual_phi): New function.
12064         * tree-cfg.h (get_virtual_phi): Declare.
12065         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
12066         (rewrite_virtuals_into_loop_closed_ssa): New function.
12067         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
12068         Declare.
12069         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
12070         (transform_to_exit_first_loop_alt): Use
12071         rewrite_virtuals_into_loop_closed_ssa.
12073 2015-07-07  Richard Biener  <rguenther@suse.de>
12075         * fold-const.c (fold_binary_loc): Move
12076         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
12077         * match.pd: ... here.
12078         Add (X * C1) % C2 -> 0 simplification pattern derived from
12079         extract_muldiv_1.
12081 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
12083         PR target/66780
12084         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
12085         change for target/65249.
12087 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
12089         * symtab.c (address_matters_1): Fix typo in comment above.
12090         (can_increase_alignment_p): Likewise.
12092 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12094         * function.c (free_after_compilation): Clear PROP_cfg in
12095         f->curr_properties.
12097 2015-07-07  Richard Biener  <rguenther@suse.de>
12099         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
12100         add which use to.
12101         (add_control_edge): Remove excessive vertical space in dumping.
12102         (process_ssa_edge_worklist): Simulate at most one statement and
12103         return whether we did.  Do not simulate PHIs if they are in a
12104         BB not yet simulated.
12105         (ssa_propagate): Adjust to always drain the BB worklist whenever
12106         a BB is available there, likewise the VARYING edges list before
12107         the interesting edge list.
12109 2015-07-07  Christian Bruel  <christian.bruel@st.com>
12111         PR target/52144
12112         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
12114 2015-07-07  Richard Biener  <rguenther@suse.de>
12116         PR middle-end/66739
12117         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
12118         A - B.
12120 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
12122         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
12123         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
12124         Copy operand 0 to a temporary if !ext_register_operand.  Remove
12125         ancient extract_bit_field workaround.
12126         (insv<mode>_1): Rename from mov<mode>_insv_1.
12127         (*insvqi): Rename from *movqi_insv_2.
12128         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
12129         for renamed insvsi_1.
12130         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
12132 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
12134         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
12135         call to nvptx_reorg_subreg.
12137 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
12139         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
12140         * graphite-dependencies.c, graphite-interchange.c,
12141         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
12142         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
12143         Likewise.
12145 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
12147         * match.pd: Remove element_mode inside HONOR_*.
12148         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
12149         (~X | X -> -1, ~X ^ X -> -1): Merge.
12150         * tree.c (build_each_one_cst): New function.
12151         * tree.h (build_each_one_cst): Likewise.
12153 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
12155         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12156         PROCESSOR_IAMCU.
12158 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
12160         * config.gcc <mips*-*-*>: Add fused-madd.opt.
12161         * config/mips/mips.opt (mfused-madd): Remove.
12162         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
12163         * config/mips/mips.h (TARGET_MIPS8000): New.
12164         (ISA_HAS_FP_MADD4_MSUB4): Remove.
12165         (ISA_HAS_FP_MADDF_MSUBF): Remove.
12166         (ISA_HAS_FP_MADD3_MSUB3): Remove.
12167         (ISA_HAS_NMADD4_NMSUB4): Remove.
12168         (ISA_HAS_NMADD3_NMSUB3): Remove.
12169         (ISA_HAS_FUSED_MADD4): New.
12170         (ISA_HAS_UNFUSED_MADD4): New.
12171         (ISA_HAS_FUSED_MADDF): New.
12172         (ISA_HAS_FUSED_MADD3): New.
12173         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
12174         (*fma<mode>4_madd3) New.
12175         (*fma<mode>4_madd4) New.
12176         (*fma<mode>4_maddf) New.
12177         (fms<mode>4) New.
12178         (*fms<mode>4_msub3) New.
12179         (*fms<mode>4_msub4) New.
12180         (fnma<mode>4) New.
12181         (*fnma<mode>4_nmadd3) New.
12182         (*fnma<mode>4_nmadd4) New.
12183         (fnms<mode>4) New.
12184         (*fnms<mode>4_nmsub3) New.
12185         (*fnms<mode>4_nmsub4) New.
12186         (*madd4<mode>) Modify to be unfused only.
12187         (*msub4<mode>) Modify to be unfused only.
12188         (*nmadd4<mode>) Modify to be unfused only.
12189         (*nmsub4<mode>) Modify to be unfused only.
12190         (*madd3<mode>) Remove.
12191         (*msub3<mode>) Remove.
12192         (*nmadd3<mode>) Remove.
12193         (*nmsub3<mode>) Remove.
12194         (*nmadd3<mode>_fastmath) Remove.
12195         (*nmsub3<mode>_fastmath) Remove.
12196         (*nmadd4<mode>_fastmath) Update condition.
12197         (*nmsub4<mode>_fastmath) Update condition.
12199 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
12201         PR target/65956
12202         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
12203         alignment attribute, exploring one level down for records and arrays.
12205 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
12207         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
12208         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
12209         Copy operand 1 to a temporary if !ext_register_operand.  Remove
12210         ancient extract_bit_field workaround.
12211         (*extv<mode>): Rename from *mov<mode>_extv_1.
12212         (*extvqi): Rename from *movqi_extv_1.
12213         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
12214         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
12215         to a temporary if !ext_register_operand.  Remove ancient
12216         extract_bit_field workaround.
12217         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
12218         (*extzvqi): Rename from *movqi_extzv_2.
12219         (*testqi_ext_3): Remove modes from const_int_operand predicated
12220         operands.  Add "n" constraint.
12221         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
12222         operand.  Add "J" constraint.
12223         (*btsq, *btrq, *btcq peephole2s): Remove mode from
12224         const_0_to_63 predicated operand.
12225         (regmode): New insn attribute.
12226         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
12227         to nonmemory_operand.  Use regmode insn attribute.
12228         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
12229         (*jcc_bt<mode>_mask): Remove mode from operand 3.
12230         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
12231         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
12232         operands.  Use "N" constraint instead of "n".
12234 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
12236         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
12238 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
12240         PR target/66749
12241         * config/i386/i386.c (iamcu_cost): New.
12242         (m_IAMCU): Likewise.
12243         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
12244         (processor_target_table): Add an entry for "iamcu".
12245         (processor_alias_table): Likewise.
12246         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
12247         (ix86_adjust_cost): Likewise.
12248         (ia32_multipass_dfa_lookahead): Likewise.
12249         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
12250         * config/i386/x86-tune.def: Updated for m_IAMCU.
12252 2015-07-06  Richard Biener  <rguenther@suse.de>
12254         PR tree-optimization/66772
12255         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
12256         values are available in the PHI node BB when there are
12257         still unexecutable edges.
12259 2015-07-06  Richard Biener  <rguenther@suse.de>
12261         PR tree-optimization/66767
12262         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
12263         Make sure to build the alignment test on a SSA name without
12264         final alignment info valid only if the alignment test
12265         evaluates to true.
12267 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
12269         PR target/66620
12270         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
12271         loop start when inserting LSETUP.
12273 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
12275         PR target/53383
12276         * config/i386/i386.c (ix86_option_override_internal): Allow
12277         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
12279 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12281         * read-md.c (decimal_string): Rename to ...
12282         (md_decimal_string): ... this.
12283         (handle_enum): Reflect this.
12285 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12287         PR target/66731
12288         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
12290 2015-07-06  Richard Biener  <rguenther@suse.de>
12292         PR middle-end/66759
12293         * match.pd: Add missing constraint of y to REAL_CST in
12294         REAL_CST - x CMP y to y - CST CMP x simplification.
12296 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
12298         PR tree-optimization/66757
12299         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
12301 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
12302             Sandra Loosemore <sandra@codesourcery.com>
12304         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
12305         Delete extern declaration.
12306         (gprel_constant_p): Add extern declaration.
12307         * config/nios2/constraints.md ("S"): Use gprel_constant_p
12308         instead of nios2_symbol_ref_in_small_data_p.
12309         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
12310         (nios2_symbol_ref_in_small_data_p): Make static.
12311         (gprel_constant_p): Make non-static.
12313 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
12315         * doc/fragments.texi (Target Fragment): Convert debian.org
12316         link to use https.
12317         * doc/install.texi (Configuration): Ditto.
12319 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
12321         PR tree-optimization/66718
12322         * tree-vect-stmts.c (vectorizable_call): Replace uses of
12323         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
12325         PR tree-optimization/66718
12326         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
12327         vectorizable_load, vectorizable_condition): Move vectype,
12328         nunits, ncopies computation after checking what kind of statement
12329         stmt is.
12331 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12333         * target-insns.def (extv, extzv, insv): New targetm instruction
12334         patterns.
12335         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
12336         interface.
12337         * recog.c (simplify_while_replacing): Likewise.
12339 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12341         * target-insns.def (doloop_begin, doloop_end): New targetm
12342         instruction patterns.
12343         * loop-init.c: Include target.h.
12344         (pass_loop2::gate): Use the new targetm patterns instead of
12345         HAVE_*/gen_* interface.
12346         (pass_rtl_doloop::gate): Likewise.
12347         (pass_rtl_doloop::execute): Remove preprocessor condition.
12348         * hw-doloop.c: Build unconditionally.
12349         * loop-doloop.c: Likewise.
12350         (doloop_optimize): Use the new targetm patterns instead of
12351         HAVE_*/gen_* interface.
12352         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
12353         * modulo-sched.c (doloop_register_get): Likewise.
12355 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12357         * target-insns.def (clear_cache): New targetm instruction pattern.
12358         * builtins.c (expand_builtin___clear_cache): Use it instead of
12359         HAVE_*/gen_* interface.
12361 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12363         * target-insns.def (allocate_stack, check_stack, probe_stack)
12364         (probe_stack_address, split_stack_prologue, split_stack_space_check):
12365         New targetm instruction patterns.
12366         * explow.c (allocate_dynamic_stack_space): Use them instead of
12367         HAVE_*/gen_* interface.
12368         (emit_stack_probe): Likewise.
12369         (probe_stack_range): Likewise.
12370         * function.c (thread_prologue_and_epilogue_insns): Likewise.
12372 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12374         * target-insns.def (stack_protect_set, stack_protect_test): New
12375         targetm instruction patterns.
12376         * cfgexpand.c (stack_protect_prologue): Use them instead of
12377         HAVE_*/gen_* interface.
12378         * function.c (stack_protect_epilogue): Likewise.
12380 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12382         * expr.h (gen_move_insn_uncast): Delete.
12383         * expr.c (gen_move_insn_uncast): Delete.
12385 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12387         * target-insns.def (restore_stack_block, restore_stack_function)
12388         (restore_stack_nonlocal, save_stack_block, save_stack_function)
12389         (save_stack_nonlocal): New targetm instruction patterns.
12390         * builtins.c (expand_builtin_apply): Use them instead of
12391         HAVE_*/gen_* interface.
12392         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
12394 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12396         * target-insns.def (trap): New targetm instruction pattern.
12397         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
12398         interface.
12399         * explow.c (allocate_dynamic_stack_space): Likewise.
12400         * ifcvt.c (find_if_header): Likewise.
12402 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12404         * target-insns.def (prefetch): New targetm instruction pattern.
12405         * tree-ssa-loop-prefetch.c: Include targeth.
12406         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
12407         of HAVE_*/gen_* interface.
12408         * builtins.c (expand_builtin_prefetch): Likewise.
12409         * toplev.c (process_options): Likewise.
12411 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12413         * target-insns.def (untyped_call, untyped_return): New targetm
12414         instruction patterns.
12415         * builtins.c (expand_builtin_apply): Use them instead of
12416         HAVE_*/gen_* interface.
12417         (result_vector): Define unconditionally.
12419 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12421         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
12422         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
12423         (nonlocal_goto_receiver): New targetm instruction patterns.
12424         * builtins.c (expand_builtin_setjmp_setup): Use them instead
12425         of HAVE_*/gen_* interface.
12426         (expand_builtin_setjmp_receiver): Likewise.
12427         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
12428         * except.c (expand_dw2_landing_pad_for_region): Likewise.
12430 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12432         * target.def: Add code_for_* hooks.
12433         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
12434         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
12435         * target-insns.def (casesi, tablejump): New targetm instruction
12436         patterns.
12437         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
12438         (do_tablejump): Likewise.
12439         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
12440         (expand_sjlj_dispatch_table): Likewise.
12441         * targhooks.c (default_case_values_threshold): Likewise.
12443 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
12445         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
12446         Use rtx_insn * instead of rtx.
12447         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
12448         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
12449         (nios2_call_tls_get_addr): Likewise.
12450         (nios2_emit_expensive_div): Likewise.
12451         (nios2_emit_move_sequence): Change return type to bool.
12452         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
12453         Change return type to bool.
12455 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12457         PR target/66747
12458         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
12460 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
12462         PR target/66114
12463         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
12464         of register_operand.  Remove constraint.
12466 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
12468         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
12469         the first argument.
12471 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
12473         * attribs.c (decl_attributes): Guard inform with the return value
12474         of the preceding warning.
12476 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
12478         * doc/invoke.texi (moverride): Move to correct section.
12480 2015-07-03  Richard Biener  <rguenther@suse.de>
12482         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
12483         Copy from tree.c
12484         (dt_operand::gen_gimple_expr): After valueizing operands
12485         re-canonicalize operand order for commutative tree codes.
12487 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
12489         PR target/66746.
12490         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
12491         is defined.
12492         (__crc32w): Likewise.
12493         (__crc32d): Likewise.
12494         (__rdpmc): Likewise.
12495         (__rdtscp): Likewise.
12496         (_rdpmc): Likewise.
12497         (_rdtscp): Likewise.
12498         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
12499         is defined.
12501 2015-07-03  Richard Biener  <rguenther@suse.de>
12503         * fold-const.c (fold_mathfn_compare): Remove.
12504         (fold_inf_compare): Likewise.
12505         (fold_comparison): Move floating point comparison simplifications...
12506         * match.pd: ... to patterns here.  Introduce simple_comparisons
12507         operator list and use it for patterns formerly in fold_comparison.
12509 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
12511         PR tree-optimization/66119
12512         * toplev.c (process_options): Don't set up default values for
12513         the sra_max_scalarization_size_{speed,size} parameters.
12514         * tree-sra (analyze_all_variable_accesses): If no values
12515         have been set for the sra_max_scalarization_size_{speed,size}
12516         parameters, call get_move_ratio to get target defaults.
12518 2015-07-03  Richard Biener  <rguenther@suse.de>
12520         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
12521         * match.pd: ... here.
12523 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
12525         PR target/37072
12526         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
12527         is not actually the default on FreeBSD.
12529 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12531         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
12532         definition.
12533         (CMPGE_8HI): Likewise.
12534         (CMPGE_4SI): Likewise.
12535         (CMPGE_2DI): Likewise.
12536         (CMPGE_U16QI): Likewise.
12537         (CMPGE_U8HI): Likewise.
12538         (CMPGE_U4SI): Likewise.
12539         (CMPGE_U2DI): Likewise.
12540         (CMPLE_16QI): Likewise.
12541         (CMPLE_8HI): Likewise.
12542         (CMPLE_4SI): Likewise.
12543         (CMPLE_2DI): Likewise.
12544         (CMPLE_U16QI): Likewise.
12545         (CMPLE_U8HI): Likewise.
12546         (CMPLE_U4SI): Likewise.
12547         (CMPLE_U2DI): Likewise.
12548         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12549         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
12550         ALTIVEC_BUILTIN_VEC_CMPLE.
12551         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
12552         floating-point vector modes.
12553         (vector_nlt<mode>): New define_expand.
12554         (vector_nltu<mode>): Likewise.
12555         (vector_ngt<mode>): Likewise.
12556         (vector_ngtu<mode>): Likewise.
12558 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
12560         PR rtl-optimization/66706
12561         * combine.c (make_compound_operation): If an AND of SUBREG of
12562         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
12564 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
12566         * tree-pass.h (make_pass_ch_vect): New.
12567         * passes.def: Add pass_ch_vect just before pass_if_conversion.
12569         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
12570         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
12571         make_pass_ch_vect): New.
12572         (pass_ch): Extend ch_base.
12574         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
12575         (ch_base::copy_headers): ...here.
12577 2015-07-02  Richard Biener  <rguenther@suse.de>
12579         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
12580         * fold-const.c (get_pointer_modulus_and_residue): Remove.
12581         (fold_binary_loc): Implement (T)ptr & CST in terms of
12582         get_pointer_alignment_1.
12583         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
12584         Make sure to build the alignment test on a SSA name without
12585         final alignment info valid only after the prologue.
12587 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
12589         * config/cris/cris.md ("epilogue"): Remove condition.
12590         ("prologue"): Ditto.
12592 2015-07-02  Richard Biener  <rguenther@suse.de>
12594         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
12595         parameter to record a condition that is false.
12596         (record_conditions): When recording an extra NE_EXPR that is
12597         true also record a EQ_EXPR that is false.
12599 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
12601         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
12602         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
12603         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
12604         (set_iv, find_interesting_uses_address, add_candidate_1): New
12605         argument to alloc_iv.
12606         (find_interesting_uses_op, find_interesting_uses_cond): Don't
12607         duplicate struct iv.
12608         (free_loop_data): Don't free struct iv explicitly.
12609         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
12611 2015-07-01  DJ Delorie  <dj@redhat.com>
12613         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
12614         (LIB_SPEC): Add.
12615         (SUPPORTS_DISCRIMINATOR): Define.
12617 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
12619         PR bootstrap/66685
12620         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
12621         there are no CALLs in the same pattern.
12623 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12625         PR rtl-optimization/61047
12626         * rtlanal.c (get_initial_register_offset): New function.
12627         (rtx_addr_can_trap_p_1): Check offsets of stack references.
12629 2015-07-01  Richard Biener  <rguenther@suse.de>
12631         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
12632         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
12633         ~X CMP C -> X CMP' ~C to ...
12634         * match.pd: ... patterns here.
12636 2015-07-01  Nick Clifton  <nickc@redhat.com>
12638         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
12639         a 16-bit value into a 20-bit memory slot.
12641 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
12643         * doc/sourcebuild.texi (AArch64-specific attributes): Document
12644         "aarch64_tiny", "aarch64_small", "aarch64_large",
12645         "aarch64_little_endian", "aarch64_big_endian".
12647 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
12649         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
12650         Document "aarch64_small_fpic".
12652 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
12654         * configure.ac: Add check for aarch64 assembler -fpic relocation
12655         modifier support.
12656         * configure: Regenerate.
12657         * config.in: Regenerate.
12658         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
12659         to -fPIC if not support of -fpic relocation modifier in assembler.
12661 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
12663         PR bootstrap/66685
12664         * rtl.c (classify_insn): Handle returns in PARALLELs.
12666 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
12668         PR middle-end/66633
12669         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
12670         to true if the function is nested and if not optimizing.
12671         (convert_local_omp_clauses): Initialize need_frame to true if the
12672         function contains nested functions and if not optimizing.
12674 2015-07-01  Richard Biener  <rguenther@suse.de>
12676         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
12677         (X & Y) ^ Y -> ~X & Y transforms to ...
12678         * match.pd: ... here.
12680 2015-07-01  Richard Biener <rguenther@suse.de>
12682         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
12683         of converts to avoid uninteresting noise from the conversion
12684         simplifying patterns.
12686 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
12688         * config/c6x/c6x.c (try_rename_operands): Do not depend on
12689         gcc_assert evaluating its argument for side-effect.
12691 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
12693         PR target/64833
12694         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
12695         flag_pic is set.
12697 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
12699         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
12700         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
12701         (hash_scc): Add this_ref_p and ref_p parameters and pass them
12702         to the inner DFS walk.
12704 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
12706         * target-insns.def (jump): New targetm instruction pattern.
12707         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
12708         instead of gen_jump.
12709         (fix_up_crossing_landing_pad): Likewise.
12710         (add_labels_and_missing_jumps): Likewise.
12711         (fix_crossing_conditional_branches): Likewise.
12712         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
12713         (force_nonfallthru_and_redirect): Likewise.
12714         * cse.c (cse_insn): Likewise.
12715         * expmed.c (expand_divmod): Likewise.
12716         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
12717         * haifa-sched.c (init_before_recovery): Likewise.
12718         (sched_create_recovery_edges): Likewise.
12719         * ifcvt.c (find_cond_trap): Likewise.
12720         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
12721         (expand_float, expand_fix): Likewise.
12722         * stmt.c (emit_jump): Likewise.
12724 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
12726         * defaults.h (HAVE_load_multiple, gen_load_multiple)
12727         (HAVE_store_multiple, gen_store_multiple): Delete.
12728         * target-insns.def (load_multiple, store_multiple): New targetm
12729         instruction patterns.
12730         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
12731         of HAVE_*/gen_* interface.
12733 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
12735         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
12736         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
12737         (gen_mem_signal_fence): Delete.
12738         * target-insns.def (mem_signal_fence, mem_thread_fence)
12739         (memory_barrier): New targetm instruction patterns.
12740         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
12741         interface.
12742         (expand_mem_signal_fence): Likewise.
12744 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
12746         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
12747         * target-insns.def (epilogue, prologue, sibcall_prologue): New
12748         targetm instruction patterns.
12749         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
12750         interface.
12751         * calls.c (expand_call): Likewise.
12752         * cfgrtl.c (cfg_layout_finalize): Likewise.
12753         * df-scan.c (df_get_entry_block_def_set): Likewise.
12754         (df_get_exit_block_use_set): Likewise.
12755         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
12756         * final.c (final_start_function): Likewise.
12757         * function.c (thread_prologue_and_epilogue_insns): Likewise.
12758         (reposition_prologue_and_epilogue_notes): Likewise.
12759         * reorg.c (find_end_label): Likewise.
12760         * toplev.c (process_options): Likewise.
12762 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
12764         * typed-splay-tree.h: New file.
12766 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
12768         PR debug/66691
12769         * lra-int.h (lra_substitute_pseudo): Add a parameter.
12770         (lra_substitute_pseudo_within_insn): Ditto.
12771         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
12772         of constant.
12773         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
12774         to lra_substitute_pseudo.
12775         * lra-lives.c (process_bb_lives): Add an argument to
12776         lra_substitute_pseudo_within_insn call.
12777         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
12778         argument to lra_substitute_pseudo and
12779         lra_substitute_pseudo_within_insn calls.
12780         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
12782 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
12784         * configure: Regenerated.
12786 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
12788         * config.gcc: Support i[34567]86-*-elfiamcu target.
12789         * config/i386/iamcu.h: New.
12790         * config/i386/i386.opt: Add -miamcu.
12791         * doc/invoke.texi: Document -miamcu.
12792         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
12793         off x87/MMX/SSE/AVX codegen for -miamcu.
12794         * config/i386/i386-c.c (ix86_target_macros_internal): Define
12795         __iamcu/__iamcu__ for -miamcu.
12796         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
12797         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
12798         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
12799         * config/i386/i386.c (ix86_option_override_internal): Ignore and
12800         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
12801         MCU by default.  Default long double to 64-bit for Intel MCU.
12802         Turn on -freg-struct-return for Intel MCU.  Issue an error when
12803         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
12804         AVX is turned on.
12805         (function_arg_advance_32): Pass value whose size is no larger
12806         than 8 bytes in registers for Intel MCU.
12807         (function_arg_32): Likewise.
12808         (ix86_return_in_memory): Return value whose size is no larger
12809         than 8 bytes in registers for Intel MCU.
12810         (iamcu_alignment): New function.
12811         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
12812         true.
12813         (ix86_local_alignment): Don't increase alignment for Intel MCU.
12814         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
12815         true.
12817 2015-06-30  Marek Polacek  <polacek@redhat.com>
12819         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
12820         both operands of the resulting expression.
12822         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
12823         the final expression with the operand's type and then convert
12824         it to the type of the expression.
12826 2015-06-30  Richard Biener  <rguenther@suse.de>
12828         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
12829         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
12830         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
12831         * match.pd: ... to patterns here.
12833 2015-06-30  Richard Biener  <rguenther@suse.de>
12835         PR tree-optimization/66704
12836         * tree-vect-data-refs.c (vect_setup_realignment): Use
12837         make_ssa_name for non-SSA name source.
12839 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
12841         PR middle-end/66702
12842         * omp-low.c (simd_clone_adjust): Handle addressable linear
12843         or uniform parameters or non-gimple type uniform parameters.
12845 2015-06-30  Richard Biener  <rguenther@suse.de>
12847         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
12848         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
12849         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
12850         * match.pd: ... here.
12851         Add a few cases of A - B -> A + (-B) when B "easily" negates.
12852         Move (x & y) | x -> x and friends before
12853         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
12855 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
12857         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
12858         -mfix-ut699 is not specified.
12859         (leon3_load): Rename into...
12860         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
12861         is specified.
12863 2015-06-30  Marek Polacek  <polacek@redhat.com>
12865         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
12866         * match.pd: ... here.
12868 2015-06-30  Richard Biener  <rguenther@suse.de>
12870         * target-insns.def (canonicalize_funcptr_for_compare): Add.
12871         * fold-const.c (build_range_check): Replace uses of
12872         HAVE_canonicalize_funcptr_for_compare.
12873         (fold_widened_comparison): Likewise.
12874         (fold_sign_changed_comparison): Likewise.
12875         * dojump.c: Include "target.h".
12876         (do_compare_and_jump): Replace uses of
12877         HAVE_canonicalize_funcptr_for_compare and
12878         gen_canonicalize_funcptr_for_compare.
12879         * expr.c (do_store_flag): Likewise.
12881 2015-06-30  Tom de Vries  <tom@codesourcery.com>
12883         PR tree-optimization/66652
12884         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
12885         max_loop_iterations to determine if nit + 1 overflows.
12887 2015-06-30  Richard Biener  <rguenther@suse.de>
12889         * tree-vrp.c (register_edge_assert_for_2): Also register
12890         asserts for dominating conversion results.
12892 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
12894         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
12895         field in struct iv.
12897 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
12899         PR target/66509
12900         * configure.ac: Fix filds and fildq test for 64-bit.
12901         * configure: Regenerated.
12903 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
12905         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
12906         (nvptx_reorg): Here.  Keep the non-subreg pieces.
12908 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
12910         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
12911         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
12913 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
12915         * config/i386/i386.md (*jcc_1): Use %! in asm template.
12916         Set attribute "length_nobnd" instead of "length".
12917         (*jcc_2): Ditto.
12918         (jump): Ditto.
12919         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
12921 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
12923         * config/nios2/nios2.c (nios2_delegitimize_address): Make
12924         assert less restrictive.
12926 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12928         PR fortran/66605
12929         * cgraphunit.c (cgraph_node::finalize_function): Do not call
12930         do_warn_unused_parameter.
12931         * function.c (do_warn_unused_parameter): Move from here.
12932         * function.h (do_warn_unused_parameter): Do not declare.
12934 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
12936         PR target/65697
12937         * gcc.target/arm/armv-sync-comp-swap.c: New.
12938         * gcc.target/arm/armv-sync-op-acquire.c: New.
12939         * gcc.target/arm/armv-sync-op-full.c: New.
12940         * gcc.target/arm/armv-sync-op-release.c: New.
12942 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
12944         PR target/65697
12945         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
12946         initial acquire barrier with final barrier.
12948 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
12950         PR target/65697
12951         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
12952         initial acquire barrier with final barrier.
12954 2015-06-29  Richard Henderson  <rth@redhat.com>
12956         * config/i386/constraints.md (Bf): New constraint.
12957         * config/i386/i386-c.c (ix86_target_macros): Define
12958         __GCC_ASM_FLAG_OUTPUTS__.
12959         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
12960         as flags outputs.
12961         * doc/extend.texi (FlagOutputOperands): Document them.
12963 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
12965         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
12966         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
12967         unspec name.
12968         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
12969         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
12970         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
12971         (aarch64_symbol_context): Ditto.
12972         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
12973         and use new pattern name.
12974         (aarch64_expand_mov_immediate): Ditto.
12975         (aarch64_print_operand): Ditto.
12976         (aarch64_classify_tls_symbol): Ditto.
12978 2015-06-29  Marek Polacek  <polacek@redhat.com>
12979             Marc Glisse  <marc.glisse@inria.fr>
12981         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
12982         * match.pd: ... pattern here.
12984 2015-06-29  Tom de Vries  <tom@codesourcery.com>
12986         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
12987         function structure.
12989 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
12991         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
12992         feature description, split out the native option, add a link to
12993         the feature documentation, rearrange and slightly rewrite text.
12994         (Aarch64 options, -mcpu): Likewise.
12995         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
12996         +rdma implies Adv. SIMD.
12998 2015-06-29  Marek Polacek  <polacek@redhat.com>
13000         PR c/66322
13001         * function.c (stack_protect_epilogue): Remove a cast to int.
13002         * doc/invoke.texi: Update -Wswitch-bool description.
13004 2015-06-29  Richard Biener  <rguenther@suse.de>
13006         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
13007         * fold-const.c (fold_binary_loc): Move &A - &B simplification
13008         via ptr_difference_const ...
13009         * match.pd: ... here.
13010         When matching (X ^ Y) == Y also match with swapped operands.
13012 2015-06-29  Richard Biener  <rguenther@suse.de>
13014         * lto-streamer.h (LTO_major_version): Bump to 5.
13016 2015-06-29  Richard Biener  <rguenther@suse.de>
13018         PR tree-optimization/66677
13019         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
13020         STMT_VINFO_VEC_STMT clobbering less strict.
13022 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
13024         PR middle-end/64130
13025         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
13026         division, compute max and min when value ranges for dividend and
13027         divisor are available.
13029 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
13030             Sandra Loosemore <sandra@codesourcery.com>
13032         * regrename.h (regrename_do_replace): Change to return bool.
13033         * regrename.c (rename_chains): Check return value of
13034         regname_do_replace.
13035         (regrename_do_replace): Re-validate the modified insns and
13036         return bool status.
13037         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13038         Update to match rename_chains changes.
13039         * config/c6x/c6x.c (try_rename_operands): Assert that
13040         regrename_do_replace returns true.
13042 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
13044         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
13045         operand 2 here.  Use copy_addr_to_reg to copy non-index
13046         register operand 2 to a temporary.
13047         (<mode>_stx): Ditto for operand 1.
13048         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
13049         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
13050         (ix86_store_bounds): Ditto.
13052 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
13054         * print-tree.c (print_node) [TREE_VEC]: Print its length.
13056 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
13058         * gimple.c (gimple_call_set_fndecl): Remove.
13059         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
13060         build1_loc directly instead of build_fold_addr_expr_loc.
13062 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
13064         * hash-map.h (hash_map::traverse): Use the definition of the
13065         Key typedef rather than the typedef itself.
13067 2015-06-26  Martin Jambor  <mjambor@suse.cz>
13069         PR debug/66301
13070         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
13071         NULL instead of calling dump_enabled_p.
13073 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
13075         * config/aarch64/aarch64.opt: (override): New.
13076         * doc/invoke.texi (override): Document.
13077         * config/aarch64/aarch64.c (aarch64_flag_desc): New
13078         (aarch64_fusible_pairs): Likewise.
13079         (aarch64_tuning_flags): Likewise.
13080         (aarch64_tuning_override_function): Likewise.
13081         (aarch64_tuning_override_functions): Likewise.
13082         (aarch64_parse_one_option_token): Likewise.
13083         (aarch64_parse_boolean_options): Likewise.
13084         (aarch64_parse_fuse_string): Likewise.
13085         (aarch64_parse_tune_string): Likewise.
13086         (aarch64_parse_one_override_token): Likewise.
13087         (aarch64_parse_override_string): Likewise.
13088         (aarch64_override_options): Parse the -override string if it
13089         is present.
13091 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
13093         * config/aarch64/aarch64-protos.h (tune_params): Remove
13094         const from members.
13095         (aarch64_tune_params): Remove const, change to no longer be
13096         a pointer.
13097         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
13098         change to no longer be a pointer, initialize to generic_tunings.
13099         (aarch64_min_divisions_for_recip_mul): Change dereference of
13100         aarch64_tune_params to member access.
13101         (aarch64_reassociation_width): Likewise.
13102         (aarch64_rtx_mult_cost): Likewise.
13103         (aarch64_address_cost): Likewise.
13104         (aarch64_branch_cost): Likewise.
13105         (aarch64_rtx_costs): Likewise.
13106         (aarch64_register_move_cost): Likewise.
13107         (aarch64_memory_move_cost): Likewise.
13108         (aarch64_sched_issue_rate): Likewise.
13109         (aarch64_builtin_vectorization_cost): Likewise.
13110         (aarch64_override_options): Take a copy of the selected tuning
13111         struct in to aarch64_tune_params, rather than just setting
13112         a pointer, change dereferences of aarch64_tune_params to member
13113         accesses.
13114         (aarch64_override_options_after_change): Change dereferences of
13115         aarch64_tune_params to member access.
13116         (aarch64_macro_fusion_p): Likewise.
13117         (aarch_macro_fusion_pair_p): Likewise.
13118         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
13120 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
13122         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
13123         (aarch64_tune_flags): Likewise.
13124         (AARCH64_TUNE_FMA_STEERING): Likewise.
13125         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
13126         to AARCH64_FL_USE_FMA_STEERING_PASS.
13127         (cortex-a57.cortex-a53): Likewise.
13128         (cortex-a72): Use cortexa72_tunings.
13129         (cortex-a72.cortex-a53): Likewise.
13130         (exynos-m1): Likewise.
13131         * config/aarch64/aarch64-protos.h (tune_params): Add
13132         a field: extra_tuning_flags.
13133         * config/aarch64/aarch64-tuning-flags.def: New.
13134         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
13135         (aarch64_extra_tuning_flags): Likewise.
13136         (aarch64_tune_params): Declare here.
13137         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
13138         (cortexa53_tunings): Likewise.
13139         (cortexa57_tunings): Likewise.
13140         (thunderx_tunings): Likewise.
13141         (xgene1_tunings): Likewise.
13142         (cortexa72_tunings): New.
13143         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
13144          (gate): Check against aarch64_tune_params.
13145         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
13146         aarch64-protos.h.
13148 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
13150         * config/aarch64/aarch64-fusion-pairs.def: New.
13151         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
13152         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
13153         aarch64_fusion_pairs.
13154         (AARCH64_FUSE_MOV_MOVK): Likewise.
13155         (AARCH64_FUSE_ADRP_ADD): Likewise.
13156         (AARCH64_FUSE_MOVK_MOVK): Likewise.
13157         (AARCH64_FUSE_ADRP_LDR): Likewise.
13158         (AARCH64_FUSE_CMP_BRANCH): Likewise.
13160 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
13162         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
13163         SYMBOL_SMALL_GOT_28K.
13164         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
13165         relocation modifiers.
13166         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
13167         (ldr_got_small_28k_<mode>): New.
13168         (ldr_got_small_28k_sidi): New.
13169         * config/aarch64/iterators.md (got_modifier): New mode iterator.
13170         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
13171         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
13172         SYMBOL_SMALL_GOT_28K.
13173         (aarch64_rtx_costs): Add costs for new instruction sequences.
13174         (initialize_aarch64_code_model): Initialize new model.
13175         (aarch64_classify_symbol): Recognize new model and new symbol classification.
13176         (aarch64_asm_preferred_eh_data_format): Support new model.
13177         (aarch64_load_symref_appropriately): Generate new instruction
13178         sequences for -fpic.
13179         (TARGET_USE_PSEUDO_PIC_REG): New definition.
13180         (aarch64_use_pseudo_pic_reg): New function.
13182 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
13184         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
13185         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
13186         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
13187         (aarch64_expand_mov_immediate): Ditto.
13188         (aarch64_print_operand): Ditto.
13189         (aarch64_classify_symbol): Ditto.
13191 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
13193         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
13195 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
13197         PR bootstrap/66638
13198         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
13199         assertion failed.  Remove assertion itself.
13201 2015-06-26  Richard Biener  <rguenther@suse.de>
13203         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
13204         and -A CMP CST -> A CMP -CST which is redundant with a pattern
13205         in match.pd.
13206         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
13207         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
13208         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
13209         * match.pd: ... patterns here.
13211 2015-06-26  Marek Polacek  <polacek@redhat.com>
13213         * match.pd ((x | y) & ~(x & y) -> x ^ y,
13214         (x | y) & (~x ^ y) -> x & y): New patterns.
13216 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
13218         * rtl.h (emit): Add an optional boolean parameter to control
13219         whether barriers are emitted.
13220         * emit-rtl.c (emit): Likewise.
13221         * gensupport.c (get_emit_function): Return null rather than "emit".
13222         * genemit.c (gen_emit_seq): Handle the null return value.
13223         Don't emit barriers after the final instruction in the sequence.
13224         * gentarget-def.c (main): Don't emit barriers after the instruction.
13226 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13228         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
13229         TARGET_UNIFIED_ASM.
13231 2015-06-26  Richard Biener  <rguenther@suse.de>
13233         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
13235 2015-06-26  Richard Biener  <rguenther@suse.de>
13237         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
13238         irrespective on whether the inner operation has a single use
13239         of both off are constant.
13241 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
13242             Segher Boessenkool  <segher@kernel.crashing.org>
13244         PR target/66412
13245         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
13246         before doing PUT_MODE or PUT_CODE on operands to avoid
13247         in-place RTX modification.
13249 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
13251         * gentarget-def.c (def_target_insn): Cast return of strtol to
13252         unsigned int.
13254 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
13256         * gimple.h (gimple_call_set_fn): Move inline function.
13257         * gimple.c (gimple_call_set_fn): Relocate here.
13259 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
13261         PR target/65979
13262         PR target/66611
13263         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
13264         the replacement insn will work.
13266 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
13268         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
13269         by default.
13271 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
13273         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
13274         * cgraph.h: Include ipa-ref.h and plugin-api.h.
13275         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
13276         (symtab_node::address_can_be_compared_p): Move function.
13277         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
13278         definition here.
13279         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
13280         * auto-profile.c: Likewise.
13281         * bb-reorder.c: Likewise.
13282         * builtins.c: Likewise.
13283         * calls.c: Likewise.
13284         * cfgexpand.c: Likewise.
13285         * cgraphbuild.c: Likewise.
13286         * cgraphclones.c: Likewise.
13287         * cgraphunit.c: Likewise.
13288         * combine.c: Likewise.
13289         * coverage.c: Likewise.
13290         * data-streamer-in.c: Likewise.
13291         * data-streamer-out.c: Likewise.
13292         * data-streamer.c: Likewise.
13293         * dbxout.c: Likewise.
13294         * dwarf2out.c: Likewise.
13295         * except.c: Likewise.
13296         * expr.c: Likewise.
13297         * final.c: Likewise.
13298         * fold-const.c: Likewise.
13299         * ggc-page.c: Likewise.
13300         * gimple-fold.c: Likewise.
13301         * gimple-iterator.c: Likewise.
13302         * gimple-pretty-print.c: Likewise.
13303         * gimple-streamer-in.c: Likewise.
13304         * gimple-streamer-out.c: Likewise.
13305         * gimple.c: Likewise.
13306         * gimplify.c: Likewise.
13307         * ipa-chkp.c: Likewise.
13308         * ipa-comdats.c: Likewise.
13309         * ipa-cp.c: Likewise.
13310         * ipa-devirt.c: Likewise.
13311         * ipa-icf-gimple.c: Likewise.
13312         * ipa-icf.c: Likewise.
13313         * ipa-inline-analysis.c: Likewise.
13314         * ipa-inline-transform.c: Likewise.
13315         * ipa-inline.c: Likewise.
13316         * ipa-polymorphic-call.c: Likewise.
13317         * ipa-profile.c: Likewise.
13318         * ipa-prop.c: Likewise.
13319         * ipa-pure-const.c: Likewise.
13320         * ipa-ref.c: Likewise.
13321         * ipa-reference.c: Likewise.
13322         * ipa-split.c: Likewise.
13323         * ipa-utils.c: Likewise.
13324         * ipa-visibility.c: Likewise.
13325         * ipa.c: Likewise.
13326         * langhooks.c: Likewise.
13327         * lto-cgraph.c: Likewise.
13328         * lto-compress.c: Likewise.
13329         * lto-opts.c: Likewise.
13330         * lto-section-in.c: Likewise.
13331         * lto-section-out.c: Likewise.
13332         * lto-streamer-in.c: Likewise.
13333         * lto-streamer-out.c: Likewise.
13334         * lto-streamer.c: Likewise.
13335         * omp-low.c: Likewise.
13336         * opts-global.c: Likewise.
13337         * passes.c: Likewise.
13338         * predict.c: Likewise.
13339         * print-tree.c: Likewise.
13340         * profile.c: Likewise.
13341         * ree.c: Likewise.
13342         * sanopt.c: Likewise.
13343         * stor-layout.c: Likewise.
13344         * symtab.c: Likewise.
13345         * toplev.c: Likewise.
13346         * trans-mem.c: Likewise.
13347         * tree-cfg.c: Likewise.
13348         * tree-chkp.c: Likewise.
13349         * tree-eh.c: Likewise.
13350         * tree-emutls.c: Likewise.
13351         * tree-inline.c: Likewise.
13352         * tree-nested.c: Likewise.
13353         * tree-parloops.c: Likewise.
13354         * tree-pretty-print.c: Likewise.
13355         * tree-profile.c: Likewise.
13356         * tree-sra.c: Likewise.
13357         * tree-ssa-alias.c: Likewise.
13358         * tree-ssa-live.c: Likewise.
13359         * tree-ssa-loop-ivcanon.c: Likewise.
13360         * tree-ssa-loop-ivopts.c: Likewise.
13361         * tree-ssa-pre.c: Likewise.
13362         * tree-ssa-sccvn.c: Likewise.
13363         * tree-ssa-strlen.c: Likewise.
13364         * tree-ssa-structalias.c: Likewise.
13365         * tree-streamer-in.c: Likewise.
13366         * tree-streamer-out.c: Likewise.
13367         * tree-streamer.c: Likewise.
13368         * tree-switch-conversion.c: Likewise.
13369         * tree-tailcall.c: Likewise.
13370         * tree-vect-data-refs.c: Likewise.
13371         * tree-vect-stmts.c: Likewise.
13372         * tree-vectorizer.c: Likewise.
13373         * tree.c: Likewise.
13374         * tsan.c: Likewise.
13375         * ubsan.c: Likewise.
13376         * value-prof.c: Likewise.
13377         * varasm.c: Likewise.
13378         * varpool.c: Likewise.
13379         * config/arm/arm.c: Likewise.
13380         * config/bfin/bfin.c: Likewise.
13381         * config/c6x/c6x.c: Likewise.
13382         * config/cris/cris.c: Likewise.
13383         * config/darwin-c.c: Likewise.
13384         * config/darwin.c: Likewise.
13385         * config/i386/i386.c: Likewise.
13386         * config/i386/winnt.c: Likewise.
13387         * config/microblaze/microblaze.c: Likewise.
13388         * config/mips/mips.c: Likewise.
13389         * config/rs6000/rs6000.c: Likewise.
13390         * config/rx/rx.c: Likewise.
13391         * config/s390/s390.c: Likewise.
13392         * config/tilegx/mul-tables.c: Likewise.
13394 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13396         * config/aarch64/aarch64.c, config/alpha/alpha.c,
13397         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
13398         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
13399         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
13400         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
13401         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
13402         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
13403         config/microblaze/microblaze.c, config/mips/mips.c,
13404         config/mmix/mmix.c, config/mn10300/mn10300.c,
13405         config/moxie/moxie.c, config/msp430/msp430.c,
13406         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
13407         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
13408         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
13409         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
13410         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
13411         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
13412         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
13413         target-def.h include.
13414         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
13416 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13418         * Makefile.in (TARGET_DEF): Add target-insns.def.
13419         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
13420         (build/gentarget-def.o): New rule.
13421         (genprogrtl): Add target-def.
13422         * target-insns.def, gentarget-def.c: New files.
13423         * target.def: Add targetm.have_* and targetm.gen_* hooks,
13424         based on the contents of target-insns.def.
13425         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
13426         (HAVE_return, gen_return): Delete.
13427         * target-def.h: Include insn-target-def.h.
13428         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
13429         instead of direct calls.  Rely on them to do the appropriate assertions.
13430         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
13431         (convert_jumps_to_returns): Use targetm interface instead of
13432         direct calls.
13433         (thread_prologue_and_epilogue_insns): Likewise.
13434         * reorg.c (find_end_label, dbr_schedule): Likewise.
13435         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
13436         * shrink-wrap.c (convert_to_simple_return): Likewise.
13437         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
13439 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13441         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
13442         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
13443         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
13444         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
13445         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
13446         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
13447         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
13448         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
13449         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
13450         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
13451         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
13452         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
13453         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
13454         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
13455         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
13456         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
13457         includes to end.
13459 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13461         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
13462         (unbounded_int_hashmap_traits::key_type): Likewise.
13463         * hash-map.h (hash_map): Get the key type from the traits.
13464         * hash-traits.h (default_hash_traits): By default, inherit from the
13465         template parameter.
13466         * alias.c (alias_set_traits): Delete.
13467         (alias_set_entry_d::children): Use alias_set_hash as the first
13468         template parameter.
13469         (record_alias_subset): Update accordingly.
13470         * except.c (tree_hash_traits): Delete.
13471         (type_to_runtime_map): Use tree_hash as the first template parameter.
13472         (init_eh): Update accordingly.
13473         * genmatch.c (capture_id_map_hasher): Delete.
13474         (cid_map_t): Use nofree_string_hash as first template parameter.
13475         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
13476         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
13477         Use symbol_compare_hash as the first template parameter in
13478         subdivide_hash_map.
13479         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
13480         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
13481         template parameter.
13482         * passes.c (pass_registry_hasher): Delete.
13483         (name_to_pass_map): Use nofree_string_hash as the first template
13484         parameter.
13485         (register_pass_name): Update accordingly.
13486         * sanopt.c (sanopt_tree_map_traits): Delete.
13487         (sanopt_tree_triplet_map_traits): Delete.
13488         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
13489         template parameter.
13490         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
13491         the first template parameter.
13492         * sese.c (rename_map_hasher): Delete.
13493         (rename_map_type): Use tree_ssa_name_hash as the first template
13494         parameter.
13495         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
13496         (function_summary::m_map): Use map_hash as the first template
13497         parameter.
13498         (function_summary::release): Update accordingly.
13499         * tree-if-conv.c (phi_args_hash_traits): Delete.
13500         (predicate_scalar_phi): Use tree_operand_hash as the first template
13501         parameter to phi_arg_map.
13502         * tree-inline.h (dependence_hasher): Delete.
13503         (copy_body_data::dependence_map): Use dependence_hash as the first
13504         template parameter.
13505         * tree-inline.c (remap_dependence_clique): Update accordingly.
13506         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
13507         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
13508         parameter.
13509         (addr_stridxptr): Update accordingly.
13510         * value-prof.c (profile_id_traits): Delete.
13511         (cgraph_node_map): Use profile_id_hash as the first template
13512         parameter.
13513         (init_node_map): Update accordingly.
13514         * config/alpha/alpha.c (string_traits): Delete.
13515         (machine_function::links): Use nofree_string_hash as the first
13516         template parameter.
13517         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
13518         * config/m32c/m32c.c (pragma_traits): Delete.
13519         (pragma_htab): Use nofree_string_hash as the first template parameter.
13520         (m32c_note_pragma_address): Update accordingly.
13521         * config/mep/mep.c (pragma_traits): Delete.
13522         (pragma_htab): Use nofree_string_hash as the first template parameter.
13523         (mep_note_pragma_flag): Update accordingly.
13524         * config/mips/mips.c (mips16_flip_traits): Delete.
13525         (mflip_mips16_htab): Use nofree_string_hash as the first template
13526         parameter.
13527         (mflip_mips16_use_mips16_p): Update accordingly.
13528         (local_alias_traits): Delete.
13529         (mips16_local_aliases): Use nofree_string_hash as the first template
13530         parameter.
13531         (mips16_local_alias): Update accordingly.
13533 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13535         * hash-map-traits.h (default_hashmap_traits): Delete.
13537 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13539         * hash-map-traits.h (unbounded_hashmap_traits): New class.
13540         (unbounded_int_hashmap_traits): Likewise.
13541         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
13543 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13545         * ipa-icf.h (symbol_compare_hash): New class.
13546         (symbol_compare_hashmap_traits): Use it.
13547         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
13548         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
13549         (mem_alloc_description::reverse_mem_map_t): Remove redundant
13550         default_hashmap_traits.
13551         * sanopt.c (sanopt_tree_triplet_hash): New class.
13552         (sanopt_tree_triplet_map_traits): Use it.
13554 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13556         * gengtype-parse.c (require_template_declaration): Allow '+' in
13557         template parameters.  Consolidate cases.
13558         * hash-traits.h (int_hash): New class.
13559         * alias.c (alias_set_hash): New structure.
13560         (alias_set_traits): Use it.
13561         * symbol-summary.h (function_summary::map_hash): New class.
13562         (function_summary::summary_hashmap_traits): Use it.
13563         * tree-inline.h (dependence_hash): New class.
13564         (dependence_hasher): Use it.
13565         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
13566         * value-prof.c (profile_id_hash): New class.
13567         (profile_id_traits): Use it.
13569 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13571         * config/mips/mips.c (mips16_flip_traits): Use it.
13572         (local_alias_traits, mips16_local_aliases): Convert from a map of
13573         rtxes to a map of symbol names.
13574         (mips16_local_alias): Update accordingly.
13576 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13578         * hash-traits.h (string_hash, nofree_string_hash): New classes.
13579         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
13580         * passes.c (pass_registry_hasher): Likewise.
13581         * config/alpha/alpha.c (string_traits): Likewise.
13582         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
13583         * config/m32c/m32c.c (pragma_traits): Likewise.
13584         * config/mep/mep.c (pragma_traits): Likewise.
13586 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13588         * tree-hash-traits.h (tree_hash): New class.
13589         * except.c: Include tree-hash-traits.h.
13590         (tree_hash_traits): Use tree_hash.
13592 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13594         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
13595         * sese.c: Include tree-hash-traits.h.
13596         (rename_map_hasher): Use tree_ssa_name_hasher.
13598 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13600         * tree-hash-traits.h (tree_decl_hash): New class.
13601         * tree-ssa-strlen.c: Include tree-hash-traits.h.
13602         (stridxlist_hash_traits): Use tree_decl_hash.
13604 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13606         * tree-hash-traits.h: New file.
13607         (tree_operand_hash): New class.
13608         * sanopt.c: Include tree-hash-traits.h.
13609         (sanopt_tree_map_traits): Use tree_operand_hash.
13610         * tree-if-conv.c: Include tree-hash-traits.h.
13611         (phi_args_hash_traits): Use tree_operand_hash.
13612         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
13613         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
13615 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13617         * hash-map-traits.h: Include hash-traits.h.
13618         (simple_hashmap_traits): New class.
13619         * mem-stats.h (hash_map): Change the default traits to
13620         simple_hashmap_traits<default_hash_traits<Key> >.
13622 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13624         * hash-table.h: Update comments.
13626 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13628         * hash-traits.h (default_hash_traits): New structure.
13629         * hash-set.h (default_hashset_traits): Delete.
13630         (hash_set): Use default_hash_traits<Key> instead of
13631         default_hashset_traits.  Delete hash_entry type and use Key directly.
13632         * ipa-devirt.c (pair_traits): Delete.
13633         (default_hash_traits <type_pair>): Override.
13634         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
13635         (odr_types_equivalent_p, add_type_duplicate): Likewise.
13637 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13639         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
13641 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13643         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
13644         (has_is_empty, is_empty_helper): Delete.
13645         (has_mark_deleted, mark_deleted_helper): Delete.
13646         (has_mark_empty, mark_empty_helper): Delete.
13647         (hash_table::is_deleted): Call the Descriptor unconditionally.
13648         (hash_table::is_empty): Likewise.
13649         (hash_table::mark_deleted): Likewise.
13650         (hash_table::mark_empty): Likewise.
13652 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13654         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
13655         redundant typedefs and members.
13656         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
13657         redundant typedefs.
13658         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
13659         * ipa-devirt.c (odr_name_hasher): Likewise.
13660         (polymorphic_call_target_hasher): Likewise.
13661         * ira-costs.c (cost_classes_hasher): Likewise.
13662         * statistics.c (stats_counter_hasher): Likewise.
13663         * trans-mem.c (log_entry_hasher): Likewise.
13664         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
13665         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
13666         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
13667         * var-tracking.c (variable_hasher): Likewise.
13668         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
13669         Remove redundant typedefs and members.
13671 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13673         * hash-traits.h (ggc_cache_hasher): Rename to...
13674         (ggc_cache_remove): ...this and remove typedefs.
13675         (ggc_cache_ptr_hash): New class.
13676         * hash-table.h: Update commentary.
13677         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
13678         rather than ggc_cache_hasher.
13679         (const_wide_int_hasher, reg_attr_hasher): Likewise.
13680         (const_double_hasher, const_fixed_hasher): Likewise.
13681         * function.c (insn_cache_hasher): Likewise.
13682         * trans-mem.c (tm_wrapper_hasher): Likewise.
13683         * tree.h (tree_decl_map_cache_hasher): Likewise.
13684         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
13685         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
13686         * ubsan.c (tree_type_map_cache_hasher): Likewise.
13687         * varasm.c (tm_clone_hasher): Likewise.
13688         * config/i386/i386.c (dllimport_hasher): Likewise.
13689         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
13690         (tree_hasher): Likewise.
13692 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13694         * hash-traits.h (ggc_hasher): Rename to...
13695         (ggc_remover): ...this and remove typedefs.
13696         (ggc_cache_hasher): Update accordingly.  Add typedefs.
13697         (ggc_ptr_hash): New class.
13698         * hash-table.h: Update comment.
13699         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
13700         ggc_hasher.
13701         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
13702         (tree_descriptor_hasher): Likewise.
13703         * cgraph.c (function_version_hasher): Likewise.
13704         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
13705         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
13706         (dw_loc_list_hasher, addr_hasher): Likewise.
13707         * function.h (used_type_hasher): Likewise.
13708         * function.c (temp_address_hasher): Likewise.
13709         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
13710         * libfuncs.h (libfunc_hasher): Likewise.
13711         * lto-streamer.h (decl_state_hasher): Likewise.
13712         * optabs.c (libfunc_decl_hasher): Likewise.
13713         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
13714         * varasm.c (section_hasher, object_block_hasher): Likewise.
13715         (const_rtx_desc_hasher): Likewise.
13716         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
13717         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
13719 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13721         * hash-traits.h (free_ptr_hash): New class.
13722         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
13723         rather than typed_free_remove.  Remove redudant typedefs.
13724         (external_ref_hasher): Likewise.
13725         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
13726         (ehspec_hasher): Likewise.
13727         * ggc-common.c (saving_hasher): Likewise.
13728         * gimplify.c (gimplify_hasher): Likewise.
13729         * haifa-sched.c (delay_i2_hasher): Likewise.
13730         * loop-invariant.c (invariant_expr_hasher): Likewise.
13731         * loop-iv.c (biv_entry_hasher): Likewise.
13732         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
13733         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
13734         * tree-cfg.c (locus_discrim_hasher): Likewise.
13735         * tree-eh.c (finally_tree_hasher): Likewise.
13736         * tree-into-ssa.c (var_info_hasher): Likewise.
13737         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
13738         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
13739         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
13740         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
13741         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
13742         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
13743         (shared_bitmap_hasher): Likewise.
13744         * tree-ssa-threadupdate.c (redirection_data): Likewise.
13745         * tree-vectorizer.h (peel_info_hasher): Likewise.
13746         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
13747         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
13749 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13751         * hash-table.h: Update comments.
13752         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
13753         (nofree_ptr_hash): New class.
13754         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
13755         than typed_noop_remove.  Remove redudant typedefs.
13756         * attribs.c (attribute_hasher): Likewise.
13757         * cfg.c (bb_copy_hasher): Likewise.
13758         * cselib.c (cselib_hasher): Likewise.
13759         * dse.c (invariant_group_base_hasher): Likewise.
13760         * dwarf2cfi.c (trace_info_hasher): Likewise.
13761         * dwarf2out.c (macinfo_entry_hasher): Likewise.
13762         (comdat_type_hasher, loc_list_hasher): Likewise.
13763         * gcse.c (pre_ldst_expr_hasher): Likewise.
13764         * genmatch.c (id_base): Likewise.
13765         * genrecog.c (test_pattern_hasher): Likewise.
13766         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
13767         * haifa-sched.c (delay_i1_hasher): Likewise.
13768         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
13769         * ipa-icf.h (congruence_class_group_hash): Likewise.
13770         * ipa-profile.c (histogram_hash): Likewise.
13771         * ira-color.c (allocno_hard_regs_hasher): Likewise.
13772         * lto-streamer.h (string_slot_hasher): Likewise.
13773         * lto-streamer.c (tree_entry_hasher): Likewise.
13774         * plugin.c (event_hasher): Likewise.
13775         * postreload-gcse.c (expr_hasher): Likewise.
13776         * store-motion.c (st_expr_hasher): Likewise.
13777         * tree-sra.c (uid_decl_hasher): Likewise.
13778         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
13779         (ssa_name_var_hash): Likewise.
13780         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
13781         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
13782         * tree-ssa-pre.c (pre_expr_d): Likewise.
13783         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
13784         * vtable-verify.h (registration_hasher): Likewise.
13785         * vtable-verify.c (vtbl_map_hasher): Likewise.
13786         * config/arm/arm.c (libcall_hasher): Likewise.
13787         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
13788         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
13789         * config/sol2.c (comdat_entry_hasher): Likewise.
13790         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
13791         (print_fold_checksum, fold_checksum_tree): Likewise.
13792         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
13793         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
13794         (fold_build_call_array_loc): Likewise.
13795         * tree-ssa-ccp.c (gimple_htab): Likewise.
13796         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
13797         rather than pointer_type.
13799 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13801         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
13802         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
13804 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13806         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
13807         (ggc_hasher::ggc_mx): Likewise.
13808         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
13809         that duplicate ggc_hasher ones.
13811 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13813         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
13814         (gt_cleare_cache): Check here for deleted and empty entries.
13815         Replace handle_cache_entry with a call to keep_cache_entry.
13816         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
13817         (ggc_cache_hasher::keep_cache_entry): New function.
13818         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
13819         (tm_wrapper_hasher::keep_cache_entry): New function.
13820         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
13821         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
13822         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
13823         (type_cache_hasher::keep_cache_entry): New function.
13824         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
13825         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
13826         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
13827         (tree_type_map_cache_hasher::keep_cache_entry): New function.
13828         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
13829         (tm_clone_hasher::keep_cache_entry): New function.
13830         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
13831         (dllimport_hasher::keep_cache_entry): New function.
13833 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13835         * hash-table.h: Include hash-traits.h.
13836         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
13837         (ggc_cache_hasher): Move to...
13838         * hash-traits.h: ...this new file.
13840 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
13842         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
13843         struct cl_optimization.
13844         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
13845         * tree.c (make_node_stat): Allocate cl_optimization struct.
13846         (copy_node_stat): Allocate and copy cl_optimization struct.
13848 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
13850         * function.h (struct incoming_args): Move struct.
13851         (pass_by_reference, reference_callee_copied): Remove prototypes.
13852         * emit-rtl.h (struct incoming_args): Relocate struct here.
13853         * calls.h (pass_by_reference, reference_callee_copied): Relocate
13854         prototypes here.
13855         * function.c (pass_by_reference, reference_callee_copied): Move.
13856         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
13857         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
13858         * ipa-chkp.c: Include calls.h.
13860 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
13862         * alias.h (alias_set_type): Move typedef.
13863         * coretypes.h (alias_set_type): Relocate typedef here.
13864         * rtl.h: Don't include alias.h.
13866 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
13868         * cgraph.h (cgraph_rtl_info): Move to rtl.h
13869         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
13870         and instance.
13871         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
13872         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
13873         doesn't exist.
13874         * calls.c: Include hard-reg-set.h before rtl.h.
13875         * ira.c: Likewise.
13877 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
13878             Vladimir Makarov  <vmakarov@redhat.com>
13880         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
13881         Add assert.
13883 2015-06-25  Richard Biener  <rguenther@suse.de>
13885         * fold-const.c (fold_binary_loc): Move simplification of
13886         (X <<>> C1) & C2 ...
13887         * match.pd: ... here.
13889 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
13891         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
13893 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13895         * match.pd: Add patterns for vec_conds between 1 and 0.
13897 2015-06-25  Richard Biener  <rguenther@suse.de>
13899         * tree-vect-stmts.c (vectorizable_conversion): Do not set
13900         STMT_VINFO_VEC_STMT for SLP.
13901         (vectorizable_store): Likewise.
13902         (vectorizable_load): Likewise.
13903         (vect_transform_stmt): Catch SLP vectorization clobbering
13904         STMT_VINFO_VEC_STMT.
13906 2015-06-25  Richard Biener  <rguenther@suse.de>
13908         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
13909         dumping.
13910         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
13911         cleanup resulting dead code and parameters.
13912         (vect_transform_slp_perm_load): Adjust.
13914 2015-06-25  Nick Clifton  <nickc@redhat.com>
13916         * config/bfin/bfin.c (bfin_expand_prologue): Set
13917         current_function_static_stack_size if flag_stack_usage_info is set.
13918         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13919         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
13920         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
13921         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
13923 2015-06-25  Tom de Vries  <tom@codesourcery.com>
13925         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
13926         comment that the generated IV is unsigned.
13928 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13930         PR target/29693
13931         * config/arm/arm.c (arm_dbx_register_number): Return
13932         DWARF_FRAME_REGISTERS by default.
13934 2015-06-25  Tom de Vries  <tom@codesourcery.com>
13936         * dominance.c (calculate_dominance_info): Fix verify_dominators call
13937         argument.  Call verify_dominator when reusing dominator info.
13939 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
13941         PR target/66563
13942         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
13943         an additional element of the unspec vector.  Modify indices
13944         of operands.
13945         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
13946         * config/sh/sh.c (prepare_move_operands): Pass incremented
13947         const_int to gen_GOTaddr2picreg.
13948         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
13950 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
13952         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
13953         Condition on TARGET_FLOAT.
13955 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
13957         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
13958         and (no)crypto.
13960 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
13962         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
13964         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
13965         aarch64_err_no_fpadvsimd.
13967         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
13968         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
13969         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
13970         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
13971         Turn error into assert, test TARGET_FLOAT.
13972         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
13973         TARGET_FLOAT.
13975 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
13977         PR debug/66482
13978         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
13980 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
13982         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
13984 2015-06-24  Renlin Li <renlin.li@arm.com>
13986         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
13987         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
13989 2015-06-24  Richard Biener  <rguenther@suse.de>
13991         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
13992         (main): Likewise.
13993         (lower_opt_convert): Support lowering of conditional view_convert.
13994         (parser::parse_operation): Likewise.
13995         (parser::parse_for): Likewise.
13997 2015-06-24  Renlin Li  <renlin.li@arm.com>
13999         * varasm.c (emit_local): Use unsigned int for align variable.
14001 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14003         PR target/63408
14004         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
14005         for negative numbers.
14007 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14009         PR rtl-optimization/66306
14010         * reload.c (find_reloads): Swap the match_dup info for
14011         commutative operands.
14013 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14015         * config/s390/vx-builtins.md
14016         ("vec_scatter_element<mode>_<non_vec_int>")
14017         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
14018         attribute with bhfgq.
14020 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14022         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
14024 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14026         * config/s390/s390-builtin-types.def: Add flag to indicate the
14027         options under which the function type is needed.
14028         * config/s390/s390-builtins.def: Add flag to indicate the options
14029         under which the builtin is enabled.
14030         * config/s390/s390-builtins.h: Add flags parameter to macro
14031         definitions.
14032         (bflags_for_builtin): New function.
14033         (flags_for_builtin): Renamed to ...
14034         (opflags_for_builtin): ... this.
14035         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
14036         flags_for_builtin to bflags_for_builtin and
14037         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
14038         * config/s390/s390.c: Add initialization of bflags_builtin and
14039         opflags_builtin arrays.
14040         Remove code for flags_builtin.
14041         (s390_init_builtins): Only create builtin function types if one of
14042         their flags is active.
14043         Only create builtins if all of their flags are active.
14044         (s390_expand_builtin): Rename flags_for_builtin to
14045         opflags_for_builtin.
14047 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14049         * config/s390/vecintrin.h: Remove internal builtins.
14051 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14053         * config/s390/s390.c (s390_secondary_reload): Fix check for
14054         GENERAL_REGS register class.
14056 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14058         * config/s390/s390.c (s390_support_vector_misalignment): Call
14059         default implementation for !TARGET_VX.
14061 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14063         * config/s390/s390.c (s390_legitimate_constant_p): Add
14064         TARGET_VX check.
14066 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14068         * config/s390/s390.c (s390_vector_abi): New variable definition.
14069         (s390_check_type_for_vector_abi): New function.
14070         (TARGET_ASM_FILE_END): New macro definition.
14071         (s390_asm_file_end): New function.
14072         (s390_function_arg): Call s390_check_type_for_vector_abi.
14073         (s390_gimplify_va_arg): Likewise.
14074         * configure: Regenerate.
14075         * configure.ac: Check for .gnu_attribute Binutils feature.
14077 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
14079         PR target/65803
14080         * config/bfin/bfin.c (hwloop_optimize): Initialize
14081         JUMP_LABEL for newly created jump.
14083 2015-06-23  Tristan Gingold  <gingold@adacore.com>
14085         * collect-utils.c (collect_wait): Unlink the response file here
14086         instead of...
14087         (do_wait): ...here.
14088         (utils_cleanup): ...and here.
14090 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
14092         * df-scan.c: Don't include target-def.h.
14093         * targhooks.c: Likewise.
14094         * config/arm/arm-c.c: Likewise.
14095         * config/i386/i386-c.c: Likewise.
14096         * config/nds32/nds32-cost.c: Likewise.
14097         * config/nds32/nds32-fp-as-gp.c: Likewise.
14098         * config/nds32/nds32-intrinsic.c: Likewise.
14099         * config/nds32/nds32-isr.c: Likewise.
14100         * config/nds32/nds32-md-auxiliary.c: Likewise.
14101         * config/nds32/nds32-memory-manipulation.c: Likewise.
14102         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14103         * config/nds32/nds32-predicates.c: Likewise.
14105 2015-06-23  Richard Biener  <rguenther@suse.de>
14107         PR tree-optimization/66636
14108         * tree-vect-stmts.c (vectorizable_store): Properly compute the
14109         def type for further defs for strided stores.
14111 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
14113         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
14114         conditional selects.
14115         (setcc_int<mode>, setcc_float<mode>): Reformat.
14117 2015-06-23  Marek Polacek  <polacek@redhat.com>
14119         * match.pd ((x + y) - (x | y) -> x & y,
14120         (x + y) - (x & y) -> x | y): New patterns.
14122 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
14124         PR 65711
14125         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
14126         '-dynamic-linker' within %{!shared: ...}.
14128 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
14130         PR target/66560
14131         * config/i386/predicates.md (addsub_vm_operator): New predicate.
14132         (addsub_vs_operator): Ditto.
14133         (addsub_vs_parallel): Ditto.
14134         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
14135         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
14136         Put minus RTX before plus and adjust vec_merge selector.
14137         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
14138         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
14139         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
14140         (addsub vec_merge splitters): New combiner splitters.
14141         (addsub vec_select/vec_concat splitters): Ditto.
14143 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
14145         PR tree-optimization/66449
14146         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
14147         POINTER_PLUS_EXPR for pointers.
14149 2015-06-23  Alan Modra  <amodra@gmail.com>
14151         * rtlanal.c (commutative_operand_precedence): Correct comments.
14152         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
14153         declaration.  Return an int.  Distinguish REG,REG return from
14154         others.
14155         (struct simplify_plus_minus_op_data): Make local to function.
14156         (simplify_plus_minus): Don't set canonicalized if merely sorting
14157         registers.  Avoid packing ops if nothing changes.  White space fixes.
14159 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
14161         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
14162         -fdump-ada-spec is passed but not if -fsyntax-only is.
14164 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
14166         PR bootstrap/63740
14167         * lra-lives.c (process_bb_lives): Check insn copying the same
14168         reload pseudo and don't create a copy for it.
14170 2015-06-22  Tom de Vries  <tom@codesourcery.com>
14172         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
14173         for cond_stmt.
14175 2015-06-22  Tom de Vries  <tom@codesourcery.com>
14177         * builtins.def (DEF_GOMP_BUILTIN): Test
14178         'flag_tree_parallelize_loops > 1' instead of
14179         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
14181 2015-06-22  Tom de Vries  <tom@codesourcery.com>
14183         * dominance.c (calculate_dominance_info): Verify dominators if
14184         early-out.
14186 2015-06-22  Marek Polacek  <polacek@redhat.com>
14188         * match.pd ((x ^ y) ^ (x | y) -> x & y,
14189         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
14190         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
14191         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
14193 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
14195         PR target/65871
14196         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
14197         cost of embedded comparison.
14199 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14201         PR target/65914
14202         * config/rs6000/predicates.md (altivec_register_operand): Permit
14203         virtual stack registers.
14204         (vsx_register_operand): Likewise.
14205         (vfloat_operand): Likewise.
14206         (vint_operand): Likewise.
14207         (vlogical_operand): Likewise.
14209 2015-06-22  Richard Biener  <rguenther@suse.de>
14211         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
14212         and single_scalar_iteration_cost members.
14213         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
14214         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
14215         (vect_get_single_scalar_iteration_cost): Remove.
14216         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
14217         Use LOOP_VINFO_SCALAR_ITERATION_COST.
14218         * tree-vect-loop.c (destroy_loop_vec_info): Free
14219         scalar_cost_vec.
14220         (vect_get_single_scalar_iteration_cost): Compute result into
14221         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
14222         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
14223         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
14224         (vect_estimate_min_profitable_iters): Use them.
14226 2015-06-22  Christian Bruel  <christian.bruel@st.com>
14228         PR target/52144
14229         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
14230         (TARGET_INSERT_ATTRIBUTES): Define.
14231         (thumb_flipper): New var.
14232         * config/arm/arm.opt (-mflip-thumb): New switch.
14234 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
14235             Martin Liska  <mliska@suse.cz>
14237         PR ipa/65908
14238         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
14239         construction of arg_types.
14240         (sem_function::sem_function): Likewise.
14241         (sem_function::~sem_function): Remove destruction of arg_types.
14242         (sem_function::compatible_parm_types_p): New function.
14243         (sem_function::equals_wpa): Reorg matching of return values
14244         and parameter types.
14245         (sem_function::equals_private): Reorg mathcing of argument types.
14246         (sem_function::parse_tree_args): Remove.
14247         * ipa-icf.h (init_wpa): Do not call it.
14248         (parse_tree_args): Remove.
14249         (compatible_parm_types_p): Declare.
14250         (result_type): Remove.
14251         (arg_types): Remove.
14253 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
14255         PR ipa/66351
14256         * ipa-polymorphic-call.c
14257         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
14258         initializing alias oracle; fix formating; set base_alias_set if it
14259         is known.
14261 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
14263         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
14264         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
14265         (find_inc): Likewise.
14266         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
14267         swapping.
14268         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
14269         * df-scan.c (df_swap_refs): Remove.
14270         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
14271         * dominance.c (link_roots): Use std::swap instead of manually swapping.
14272         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
14273         * fold-const.c (fold_relational_const): Likewise.
14274         * genattrtab.c (simplify_test_exp): Likewise.
14275         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
14276         gimple_simplify): Likewise.
14277         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
14278         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
14279         * ipa-devirt.c (add_type_duplicate): Likewise.
14280         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
14281         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
14282         * lra.c (lra_create_copy): Likewise.
14283         * lto-streamer-out.c (DFS::DFS): Likewise.
14284         * modulo-sched.c (get_sched_window): Likewise.
14285         * omega.c (omega_pretty_print_problem): Likewise.
14286         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
14287         * reload1.c (reloads_unique_chain_p): Likewise.
14288         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
14289         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
14290         use std::swap.
14291         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
14292         manually swapping.
14293         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
14294         predicate_mem_writes): Likewise.
14295         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
14296         * tree-predcom.c (combine_chains): Likewise.
14297         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
14298         refs_may_alias_p_1): Likewise.
14299         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
14300         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
14301         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
14302         number_of_iterations_cond): Likewise.
14303         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
14304         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
14305         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
14306         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
14307         * tree-vrp.c (extract_range_from_binary_expr_1,
14308         extract_range_from_unary_expr_1): Likewise.
14310 2015-06-20  Marek Polacek  <polacek@redhat.com>
14312         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
14314 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
14316         PR target/66591
14317         * config/sh/sh.c (prepare_move_operands): Replace subreg
14318         index term with R0 for base and index addressing.
14320 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
14322         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
14323         op1 is an fp zero.
14324         (movsf_aarch64): Change condition from register_operand to
14325         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
14326         load1.  Change type for alternative 7 to store1.
14327         (movdf_aarch64): Likewise.
14329 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
14331         * config/vax/vax.md: Adjust sign/zero extend patterns to
14332         handle SUBREGs in operands[1].
14334 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14336         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
14337         of manually swapping.
14338         (expand_vec_perm_interleave2): Likewise.
14340 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
14342         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
14343         reuse bounds created for abnormal ssa names.
14345 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
14347         * config/nvptx/nvptx.md (allocate_stack): Rename to...
14348         (allocate_stack_<mode>): ... this, and add :P on both
14349         match_operand and unspec.
14350         (allocate_stack): New expander.
14352 2015-06-19  Christian Bruel  <christian.bruel@st.com>
14354         PR target/66541
14355         PR target/52144
14356         * config/arm/arm.c (arm_set_current_function): Handle
14357         explicit default options.
14359 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
14361         * config/i386/i386.md (*movsicc_noc_zext): New insn.
14362         (zero-extended cmove with mem peephole2): New pattern.
14363         (cmove with mem peephole2): Merge patterns.
14365 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
14367         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
14369 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
14371         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
14372         * config/mips/mips.md (*madd4<mode>): Ditto.
14373         (*nmadd3<mode>) Ditto.
14374         (*nmadd4<mode>_fastmath): Ditto.
14375         (*nmadd3<mode>_fastmath): Ditto.
14376         (*nmsub4<mode>): Ditto.
14377         (*nmsub3<mode>): Ditto.
14378         (*nmsub4<mode>_fastmath): Ditto.
14379         (*nmsub3<mode>_fastmath): Ditto.
14381 2015-06-18  Michael Matz  <matz@suse.de>
14383         PR middle-end/66253
14384         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
14385         grouped strided stores.
14386         (vectorizable_load): Don't use the DR from first_stmt in
14387         the non-SLP grouped strided case.
14389 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
14391         PR target/66569
14392         * function.c (assign_bounds): Add arguments assign_regs,
14393         assign_special, assign_bt.
14394         (assign_parms): For vararg functions handle bounds in BT
14395         and special slots after incoming vararg bounds.
14397 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
14399         PR middle-end/66568
14400         * cfgexpand.c (expand_return): Handle missing bounds.
14401         (expand_gimple_stmt_1): Likewise.
14402         * tree-chkp.c (chkp_expand_zero_bounds): New.
14403         * tree-chkp.h (chkp_expand_zero_bounds): New.
14405 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
14407         PR middle-end/66567
14408         * ipa-chkp.c (chkp_maybe_create_clone): Require
14409         functions to be instrumentable.
14410         * tree-chkp.c (chkp_replace_function_pointer): Use
14411         chkp_instrumentable_p instead of attribute check.
14413 2015-06-18  Richard Biener  <rguenther@suse.de>
14415         PR tree-optimization/66510
14416         * tree-vect-stmts.c (vectorizable_load): Properly compute the
14417         number of vector loads for SLP permuted loads.
14418         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
14419         check the stride for loop vectorization.
14420         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
14421         vectorization factor.
14422         (vect_analyze_group_access): If the group size is not a power
14423         of two require a epilogue loop.
14424         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
14425         compute and optimizing and alias test pruning after final
14426         vectorization factor computation.
14427         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
14428         vector alignment.
14429         (vect_transform_slp_perm_load): Properly compute the original
14430         number of vector load stmts.
14432 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
14434         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
14435         "unlikely character , in @var" warning.
14437 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
14439         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
14440         (ix86_function_arg_advance): Ditto.
14441         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
14443 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
14445         * function.h (struct rtl_data): Remove struct and accessor macros.
14446         * emit-rtl.h (struct rtl_data): Relocate to here.
14447         * Makefile.in (GTFILES): Add emit-rtl.h.
14448         * df-core.c: Include emit-rtl.h.
14449         * genattrtab.c: Likewise.
14450         * genconditions.c: Likewise.
14451         * genpreds.c: Likewise.
14452         * genrecog.c: Likewise.
14453         * regcprop.c: Likewise.
14454         * resource.c: Likewise.
14455         * sched-rgn.c: Likewise.
14456         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14457         * config/i386/winnt.c: Likewise.
14459 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
14461         PR middle-end/66429
14462         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
14463         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
14464         and has_force_vectorize_loops flags from cfun into
14465         child_cfun.
14466         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
14467         if simduid is non-NULL.
14468         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
14469         * passes.def (pass_simduid_cleanup): Add new pass after loop
14470         passes.
14471         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
14472         indirection from htab argument's type.
14473         (shrink_simd_arrays): New function.
14474         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
14475         Don't call adjust_simduid_builtins if there are no loops.
14476         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
14477         (pass_simduid_cleanup::execute): New method.
14478         (make_pass_simduid_cleanup): New function.
14480 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
14482         * tree-core.h (tree_target_option): Make opts field a pointer to a
14483         cl_target_option instead of an instance of the struct.
14484         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
14485         the structure.
14486         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
14487         TARGET_OPTION_NODE.
14488         (copy_node_stat): Allocate and copy struct cl_target_option.
14490 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
14492         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
14493         Remove conditional exposure of prototypes.
14494         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
14495         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
14496         definitions in tree.h with functions.
14497         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
14498         anon_aggrname_p.
14499         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
14501 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
14503         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
14504         (*cmp<mode>_signed): ... this.
14505         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
14506         (*cmp<mode>_unsigned): ... this.  Remove %b.
14508 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
14510         * coretypes.h: Include input.h and as-a.h.
14511         * rtl.h: Include input.h and as-a.h for generator files.
14512         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
14513         * vec.c: Don't include diagnostic-core.h.
14514         * alias.c: Do not include input.h, line-map.h or is-a.h.
14515         * asan.c: Likewise.
14516         * attribs.c: Likewise.
14517         * auto-inc-dec.c: Likewise.
14518         * auto-profile.c: Likewise.
14519         * bb-reorder.c: Likewise.
14520         * bt-load.c: Likewise.
14521         * builtins.c: Likewise.
14522         * caller-save.c: Likewise.
14523         * calls.c: Likewise.
14524         * ccmp.c: Likewise.
14525         * cfg.c: Likewise.
14526         * cfganal.c: Likewise.
14527         * cfgbuild.c: Likewise.
14528         * cfgcleanup.c: Likewise.
14529         * cfgexpand.c: Likewise.
14530         * cfghooks.c: Likewise.
14531         * cfgloop.c: Likewise.
14532         * cfgloop.h: Likewise.
14533         * cfgloopanal.c: Likewise.
14534         * cfgloopmanip.c: Likewise.
14535         * cfgrtl.c: Likewise.
14536         * cgraph.c: Likewise.
14537         * cgraphbuild.c: Likewise.
14538         * cgraphclones.c: Likewise.
14539         * cgraphunit.c: Likewise.
14540         * cilk-common.c: Likewise.
14541         * combine-stack-adj.c: Likewise.
14542         * combine.c: Likewise.
14543         * compare-elim.c: Likewise.
14544         * convert.c: Likewise.
14545         * coverage.c: Likewise.
14546         * cppbuiltin.c: Likewise.
14547         * cprop.c: Likewise.
14548         * cse.c: Likewise.
14549         * cselib.c: Likewise.
14550         * data-streamer-in.c: Likewise.
14551         * data-streamer-out.c: Likewise.
14552         * data-streamer.c: Likewise.
14553         * dbxout.c: Likewise.
14554         * dce.c: Likewise.
14555         * ddg.c: Likewise.
14556         * debug.c: Likewise.
14557         * df-core.c: Likewise.
14558         * df-problems.c: Likewise.
14559         * df-scan.c: Likewise.
14560         * df.h: Likewise.
14561         * dfp.c: Likewise.
14562         * diagnostic-core.h: Likewise.
14563         * diagnostic.c: Likewise.
14564         * dojump.c: Likewise.
14565         * dominance.c: Likewise.
14566         * domwalk.c: Likewise.
14567         * double-int.c: Likewise.
14568         * dse.c: Likewise.
14569         * dumpfile.c: Likewise.
14570         * dumpfile.h: Likewise.
14571         * dwarf2asm.c: Likewise.
14572         * dwarf2cfi.c: Likewise.
14573         * dwarf2out.c: Likewise.
14574         * emit-rtl.c: Likewise.
14575         * et-forest.c: Likewise.
14576         * except.c: Likewise.
14577         * explow.c: Likewise.
14578         * expmed.c: Likewise.
14579         * expr.c: Likewise.
14580         * final.c: Likewise.
14581         * fixed-value.c: Likewise.
14582         * fold-const.c: Likewise.
14583         * function.c: Likewise.
14584         * fwprop.c: Likewise.
14585         * gcc-plugin.h: Likewise.
14586         * gcse.c: Likewise.
14587         * generic-match-head.c: Likewise.
14588         * ggc-page.c: Likewise.
14589         * gimple-builder.c: Likewise.
14590         * gimple-expr.c: Likewise.
14591         * gimple-fold.c: Likewise.
14592         * gimple-iterator.c: Likewise.
14593         * gimple-low.c: Likewise.
14594         * gimple-match-head.c: Likewise.
14595         * gimple-pretty-print.c: Likewise.
14596         * gimple-ssa-isolate-paths.c: Likewise.
14597         * gimple-ssa-strength-reduction.c: Likewise.
14598         * gimple-streamer-in.c: Likewise.
14599         * gimple-streamer-out.c: Likewise.
14600         * gimple-streamer.h: Likewise.
14601         * gimple-walk.c: Likewise.
14602         * gimple.c: Likewise.
14603         * gimplify-me.c: Likewise.
14604         * gimplify.c: Likewise.
14605         * godump.c: Likewise.
14606         * graph.c: Likewise.
14607         * graphite-blocking.c: Likewise.
14608         * graphite-dependences.c: Likewise.
14609         * graphite-interchange.c: Likewise.
14610         * graphite-isl-ast-to-gimple.c: Likewise.
14611         * graphite-optimize-isl.c: Likewise.
14612         * graphite-poly.c: Likewise.
14613         * graphite-scop-detection.c: Likewise.
14614         * graphite-sese-to-poly.c: Likewise.
14615         * graphite.c: Likewise.
14616         * haifa-sched.c: Likewise.
14617         * hw-doloop.c: Likewise.
14618         * ifcvt.c: Likewise.
14619         * init-regs.c: Likewise.
14620         * input.c: Likewise.
14621         * internal-fn.c: Likewise.
14622         * ipa-chkp.c: Likewise.
14623         * ipa-comdats.c: Likewise.
14624         * ipa-cp.c: Likewise.
14625         * ipa-devirt.c: Likewise.
14626         * ipa-icf-gimple.c: Likewise.
14627         * ipa-icf.c: Likewise.
14628         * ipa-inline-analysis.c: Likewise.
14629         * ipa-inline-transform.c: Likewise.
14630         * ipa-inline.c: Likewise.
14631         * ipa-polymorphic-call.c: Likewise.
14632         * ipa-profile.c: Likewise.
14633         * ipa-prop.c: Likewise.
14634         * ipa-pure-const.c: Likewise.
14635         * ipa-ref.c: Likewise.
14636         * ipa-reference.c: Likewise.
14637         * ipa-split.c: Likewise.
14638         * ipa-utils.c: Likewise.
14639         * ipa-visibility.c: Likewise.
14640         * ipa.c: Likewise.
14641         * ira-build.c: Likewise.
14642         * ira-color.c: Likewise.
14643         * ira-conflicts.c: Likewise.
14644         * ira-costs.c: Likewise.
14645         * ira-emit.c: Likewise.
14646         * ira-lives.c: Likewise.
14647         * ira.c: Likewise.
14648         * jump.c: Likewise.
14649         * langhooks.c: Likewise.
14650         * lcm.c: Likewise.
14651         * loop-doloop.c: Likewise.
14652         * loop-init.c: Likewise.
14653         * loop-invariant.c: Likewise.
14654         * loop-iv.c: Likewise.
14655         * loop-unroll.c: Likewise.
14656         * lower-subreg.c: Likewise.
14657         * lra-assigns.c: Likewise.
14658         * lra-coalesce.c: Likewise.
14659         * lra-constraints.c: Likewise.
14660         * lra-eliminations.c: Likewise.
14661         * lra-lives.c: Likewise.
14662         * lra-remat.c: Likewise.
14663         * lra-spills.c: Likewise.
14664         * lra.c: Likewise.
14665         * lto-cgraph.c: Likewise.
14666         * lto-compress.c: Likewise.
14667         * lto-opts.c: Likewise.
14668         * lto-section-in.c: Likewise.
14669         * lto-section-out.c: Likewise.
14670         * lto-streamer-in.c: Likewise.
14671         * lto-streamer-out.c: Likewise.
14672         * lto-streamer.c: Likewise.
14673         * mcf.c: Likewise.
14674         * mode-switching.c: Likewise.
14675         * modulo-sched.c: Likewise.
14676         * omega.c: Likewise.
14677         * omp-low.c: Likewise.
14678         * optabs.c: Likewise.
14679         * opts-global.c: Likewise.
14680         * opts.h: Likewise.
14681         * passes.c: Likewise.
14682         * plugin.c: Likewise.
14683         * postreload-gcse.c: Likewise.
14684         * postreload.c: Likewise.
14685         * predict.c: Likewise.
14686         * pretty-print.h: Likewise.
14687         * print-rtl.c: Likewise.
14688         * print-tree.c: Likewise.
14689         * profile.c: Likewise.
14690         * real.c: Likewise.
14691         * realmpfr.c: Likewise.
14692         * recog.c: Likewise.
14693         * ree.c: Likewise.
14694         * reg-stack.c: Likewise.
14695         * regcprop.c: Likewise.
14696         * reginfo.c: Likewise.
14697         * regrename.c: Likewise.
14698         * regstat.c: Likewise.
14699         * reload.c: Likewise.
14700         * reload1.c: Likewise.
14701         * reorg.c: Likewise.
14702         * resource.c: Likewise.
14703         * rtl-chkp.c: Likewise.
14704         * rtl-error.c: Likewise.
14705         * rtlanal.c: Likewise.
14706         * rtlhooks.c: Likewise.
14707         * sanopt.c: Likewise.
14708         * sched-deps.c: Likewise.
14709         * sched-ebb.c: Likewise.
14710         * sched-rgn.c: Likewise.
14711         * sched-vis.c: Likewise.
14712         * sdbout.c: Likewise.
14713         * sel-sched-dump.c: Likewise.
14714         * sel-sched-ir.c: Likewise.
14715         * sel-sched.c: Likewise.
14716         * sese.c: Likewise.
14717         * shrink-wrap.c: Likewise.
14718         * simplify-rtx.c: Likewise.
14719         * stack-ptr-mod.c: Likewise.
14720         * statistics.c: Likewise.
14721         * stmt.c: Likewise.
14722         * stor-layout.c: Likewise.
14723         * store-motion.c: Likewise.
14724         * streamer-hooks.c: Likewise.
14725         * stringpool.c: Likewise.
14726         * symtab.c: Likewise.
14727         * target-globals.c: Likewise.
14728         * targhooks.c: Likewise.
14729         * toplev.c: Likewise.
14730         * tracer.c: Likewise.
14731         * trans-mem.c: Likewise.
14732         * tree-affine.c: Likewise.
14733         * tree-browser.c: Likewise.
14734         * tree-call-cdce.c: Likewise.
14735         * tree-cfg.c: Likewise.
14736         * tree-cfgcleanup.c: Likewise.
14737         * tree-chkp-opt.c: Likewise.
14738         * tree-chkp.c: Likewise.
14739         * tree-chrec.c: Likewise.
14740         * tree-complex.c: Likewise.
14741         * tree-data-ref.c: Likewise.
14742         * tree-dfa.c: Likewise.
14743         * tree-diagnostic.c: Likewise.
14744         * tree-dump.c: Likewise.
14745         * tree-eh.c: Likewise.
14746         * tree-emutls.c: Likewise.
14747         * tree-if-conv.c: Likewise.
14748         * tree-inline.c: Likewise.
14749         * tree-into-ssa.c: Likewise.
14750         * tree-iterator.c: Likewise.
14751         * tree-loop-distribution.c: Likewise.
14752         * tree-nested.c: Likewise.
14753         * tree-nrv.c: Likewise.
14754         * tree-object-size.c: Likewise.
14755         * tree-outof-ssa.c: Likewise.
14756         * tree-parloops.c: Likewise.
14757         * tree-phinodes.c: Likewise.
14758         * tree-predcom.c: Likewise.
14759         * tree-pretty-print.c: Likewise.
14760         * tree-profile.c: Likewise.
14761         * tree-scalar-evolution.c: Likewise.
14762         * tree-sra.c: Likewise.
14763         * tree-ssa-address.c: Likewise.
14764         * tree-ssa-alias.c: Likewise.
14765         * tree-ssa-ccp.c: Likewise.
14766         * tree-ssa-coalesce.c: Likewise.
14767         * tree-ssa-copy.c: Likewise.
14768         * tree-ssa-copyrename.c: Likewise.
14769         * tree-ssa-dce.c: Likewise.
14770         * tree-ssa-dom.c: Likewise.
14771         * tree-ssa-dse.c: Likewise.
14772         * tree-ssa-forwprop.c: Likewise.
14773         * tree-ssa-ifcombine.c: Likewise.
14774         * tree-ssa-live.c: Likewise.
14775         * tree-ssa-loop-ch.c: Likewise.
14776         * tree-ssa-loop-im.c: Likewise.
14777         * tree-ssa-loop-ivcanon.c: Likewise.
14778         * tree-ssa-loop-ivopts.c: Likewise.
14779         * tree-ssa-loop-manip.c: Likewise.
14780         * tree-ssa-loop-niter.c: Likewise.
14781         * tree-ssa-loop-prefetch.c: Likewise.
14782         * tree-ssa-loop-unswitch.c: Likewise.
14783         * tree-ssa-loop.c: Likewise.
14784         * tree-ssa-math-opts.c: Likewise.
14785         * tree-ssa-operands.c: Likewise.
14786         * tree-ssa-phiopt.c: Likewise.
14787         * tree-ssa-phiprop.c: Likewise.
14788         * tree-ssa-pre.c: Likewise.
14789         * tree-ssa-propagate.c: Likewise.
14790         * tree-ssa-reassoc.c: Likewise.
14791         * tree-ssa-sccvn.c: Likewise.
14792         * tree-ssa-scopedtables.c: Likewise.
14793         * tree-ssa-sink.c: Likewise.
14794         * tree-ssa-strlen.c: Likewise.
14795         * tree-ssa-structalias.c: Likewise.
14796         * tree-ssa-tail-merge.c: Likewise.
14797         * tree-ssa-ter.c: Likewise.
14798         * tree-ssa-threadedge.c: Likewise.
14799         * tree-ssa-threadupdate.c: Likewise.
14800         * tree-ssa-uncprop.c: Likewise.
14801         * tree-ssa-uninit.c: Likewise.
14802         * tree-ssa.c: Likewise.
14803         * tree-ssanames.c: Likewise.
14804         * tree-stdarg.c: Likewise.
14805         * tree-streamer-in.c: Likewise.
14806         * tree-streamer-out.c: Likewise.
14807         * tree-streamer.c: Likewise.
14808         * tree-switch-conversion.c: Likewise.
14809         * tree-tailcall.c: Likewise.
14810         * tree-vect-data-refs.c: Likewise.
14811         * tree-vect-generic.c: Likewise.
14812         * tree-vect-loop-manip.c: Likewise.
14813         * tree-vect-loop.c: Likewise.
14814         * tree-vect-patterns.c: Likewise.
14815         * tree-vect-slp.c: Likewise.
14816         * tree-vect-stmts.c: Likewise.
14817         * tree-vectorizer.c: Likewise.
14818         * tree-vrp.c: Likewise.
14819         * tree.c: Likewise.
14820         * tsan.c: Likewise.
14821         * ubsan.c: Likewise.
14822         * valtrack.c: Likewise.
14823         * value-prof.c: Likewise.
14824         * var-tracking.c: Likewise.
14825         * varasm.c: Likewise.
14826         * varpool.c: Likewise.
14827         * vmsdbgout.c: Likewise.
14828         * vtable-verify.c: Likewise.
14829         * web.c: Likewise.
14830         * wide-int.cc: Likewise.
14831         * xcoffout.c: Likewise.
14832         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
14833         * common/common-targhooks.c: Likewise.
14834         * config/aarch64/aarch64-builtins.c: Likewise.
14835         * config/aarch64/aarch64.c: Likewise.
14836         * config/alpha/alpha.c: Likewise.
14837         * config/arc/arc.c: Likewise.
14838         * config/arm/aarch-common.c: Likewise.
14839         * config/arm/arm-builtins.c: Likewise.
14840         * config/arm/arm-c.c: Likewise.
14841         * config/arm/arm.c: Likewise.
14842         * config/avr/avr-c.c: Likewise.
14843         * config/avr/avr-log.c: Likewise.
14844         * config/avr/avr.c: Likewise.
14845         * config/bfin/bfin.c: Likewise.
14846         * config/c6x/c6x.c: Likewise.
14847         * config/cr16/cr16.c: Likewise.
14848         * config/cris/cris.c: Likewise.
14849         * config/darwin-c.c: Likewise.
14850         * config/darwin.c: Likewise.
14851         * config/default-c.c: Likewise.
14852         * config/epiphany/epiphany.c: Likewise.
14853         * config/epiphany/mode-switch-use.c: Likewise.
14854         * config/epiphany/resolve-sw-modes.c: Likewise.
14855         * config/fr30/fr30.c: Likewise.
14856         * config/frv/frv.c: Likewise.
14857         * config/ft32/ft32.c: Likewise.
14858         * config/glibc-c.c: Likewise.
14859         * config/h8300/h8300.c: Likewise.
14860         * config/i386/i386-c.c: Likewise.
14861         * config/i386/i386.c: Likewise.
14862         * config/i386/msformat-c.c: Likewise.
14863         * config/i386/winnt-cxx.c: Likewise.
14864         * config/i386/winnt-stubs.c: Likewise.
14865         * config/i386/winnt.c: Likewise.
14866         * config/ia64/ia64-c.c: Likewise.
14867         * config/ia64/ia64.c: Likewise.
14868         * config/iq2000/iq2000.c: Likewise.
14869         * config/lm32/lm32.c: Likewise.
14870         * config/m32c/m32c-pragma.c: Likewise.
14871         * config/m32c/m32c.c: Likewise.
14872         * config/m32r/m32r.c: Likewise.
14873         * config/m68k/m68k.c: Likewise.
14874         * config/mcore/mcore.c: Likewise.
14875         * config/mep/mep-pragma.c: Likewise.
14876         * config/mep/mep.c: Likewise.
14877         * config/microblaze/microblaze-c.c: Likewise.
14878         * config/microblaze/microblaze.c: Likewise.
14879         * config/mips/mips.c: Likewise.
14880         * config/mmix/mmix.c: Likewise.
14881         * config/mn10300/mn10300.c: Likewise.
14882         * config/moxie/moxie.c: Likewise.
14883         * config/msp430/msp430-c.c: Likewise.
14884         * config/msp430/msp430.c: Likewise.
14885         * config/nds32/nds32-cost.c: Likewise.
14886         * config/nds32/nds32-fp-as-gp.c: Likewise.
14887         * config/nds32/nds32-intrinsic.c: Likewise.
14888         * config/nds32/nds32-isr.c: Likewise.
14889         * config/nds32/nds32-md-auxiliary.c: Likewise.
14890         * config/nds32/nds32-memory-manipulation.c: Likewise.
14891         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14892         * config/nds32/nds32-predicates.c: Likewise.
14893         * config/nds32/nds32.c: Likewise.
14894         * config/nios2/nios2.c: Likewise.
14895         * config/nvptx/nvptx.c: Likewise.
14896         * config/pa/pa.c: Likewise.
14897         * config/pdp11/pdp11.c: Likewise.
14898         * config/rl78/rl78-c.c: Likewise.
14899         * config/rl78/rl78.c: Likewise.
14900         * config/rs6000/rs6000-c.c: Likewise.
14901         * config/rs6000/rs6000.c: Likewise.
14902         * config/rx/rx.c: Likewise.
14903         * config/s390/s390-c.c: Likewise.
14904         * config/s390/s390.c: Likewise.
14905         * config/sh/sh-c.c: Likewise.
14906         * config/sh/sh-mem.cc: Likewise.
14907         * config/sh/sh.c: Likewise.
14908         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
14909         * config/sh/sh_treg_combine.cc: Likewise.
14910         * config/sol2-c.c: Likewise.
14911         * config/sol2-cxx.c: Likewise.
14912         * config/sol2-stubs.c: Likewise.
14913         * config/sol2.c: Likewise.
14914         * config/sparc/sparc-c.c: Likewise.
14915         * config/sparc/sparc.c: Likewise.
14916         * config/spu/spu-c.c: Likewise.
14917         * config/spu/spu.c: Likewise.
14918         * config/stormy16/stormy16.c: Likewise.
14919         * config/tilegx/mul-tables.c: Likewise.
14920         * config/tilegx/tilegx-c.c: Likewise.
14921         * config/tilegx/tilegx.c: Likewise.
14922         * config/tilepro/mul-tables.c: Likewise.
14923         * config/tilepro/tilepro-c.c: Likewise.
14924         * config/tilepro/tilepro.c: Likewise.
14925         * config/v850/v850-c.c: Likewise.
14926         * config/v850/v850.c: Likewise.
14927         * config/vax/vax.c: Likewise.
14928         * config/visium/visium.c: Likewise.
14929         * config/vms/vms-c.c: Likewise.
14930         * config/vms/vms.c: Likewise.
14931         * config/vxworks.c: Likewise.
14932         * config/winnt-c.c: Likewise.
14933         * config/xtensa/xtensa.c: Likewise.
14935 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
14937         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
14938         function.
14939         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
14941 2015-06-17  Richard Biener  <rguenther@suse.de>
14943         PR tree-optimization/66251
14944         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
14945         stmts for SLP strided stores.
14947         Revert
14948         2015-05-22  Richard Biener  <rguenther@suse.de>
14950         PR tree-optimization/66251
14951         * tree-vect-stmts.c (vectorizable_conversion): Properly
14952         set STMT_VINFO_VEC_STMT even for the SLP case.
14954         2015-05-26  Michael Matz  <matz@suse.de>
14956         PR middle-end/66251
14957         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
14958         STMT_VINFO_VEC_STMT, also with SLP.
14960 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
14962         PR target/56766
14963         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
14964         (*avx_addsubv4df3_1s): Ditto.
14965         (*sse3_addsubv2df3_1): Ditto.
14966         (*sse3_addsubv2df3_1s): Ditto.
14967         (*avx_addsubv8sf3_1): Ditto.
14968         (*avx_addsubv8sf3_1s): Ditto.
14969         (*sse3_addsubv4sf3_1): Ditto.
14970         (*sse3_addsubv4sf3_1s): Ditto.
14972 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
14974         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
14975         (SYSROOT_SUFFIX_SPEC): Update.
14976         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
14977         (STARTFILE_PREFIX_SPEC): Update.
14978         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
14979         (MULTILIB_REQUIRED): New.
14980         (MULTILIB_OSDIRNAMES): New.
14981         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
14982         (MULTILIB_REQUIRED): New.
14983         (MULTILIB_OSDIRNAMES): New.
14985 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
14987         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
14988         * config/aarch64/aarch64-options-extensions.def: Update "fP",
14989         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
14990         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
14991         (AARCH64_FL_PAN): New.
14992         (AARCH64_FL_LOR): New.
14993         (AARCH64_FL_RDMA): New.
14994         (AARCH64_FL_FOR_ARCH8_1): New.
14995         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
14996         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
14998 2015-06-16  Martin Liska  <mliska@suse.cz>
15000         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
15001         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
15002         guard.
15004 2015-06-16  Richard Biener  <rguenther@suse.de>
15006         * tree-vect-stmts.c (vectorizable_store): Adjust.
15007         (vectorizable_load): Likewise.
15008         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
15009         Simplify.
15010         (vect_create_data_ref_ptr): Likewise.
15011         (bump_vector_ptr): Adjust.
15013 2015-06-16  Richard Biener  <rguenther@suse.de>
15015         * tree-vect-stmts.c (vectorizable_load): Properly start loads
15016         with the first element if this is grouped loads.
15018 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
15020         * config/arm/arm-protos.h (struct tune_params): Rename
15021         log_op_non_sc to log_op_non_short_circuit, and rename enum
15022         values to expand SC to SHORT_CIRCUIT.
15023         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
15024         to LOG_OP_NON_SHORT_CIRCUIT.
15025         (arm_fastmul_tune):Likewise
15026         (arm_strongarm_tune): Likewise.
15027         (arm_xscale_tune): Likewise.
15028         (arm_9e_tune): Likewise.
15029         (arm_marvell_pj4_tune): Likewise.
15030         (arm_v6t2_tune): Likewise.
15031         (arm_cortex_tune): Likewise.
15032         (arm_cortex_a8_tune): Likewise.
15033         (arm_cortex_a7_tune): Likewise.
15034         (arm_cortex_a15_tune): Likewise.
15035         (arm_cortex_a53_tune): Likewise.
15036         (arm_cortex_a57_tune): Likewise.
15037         (arm_xgene1_tune): Likewise.
15038         (arm_cortex_a5_tune): Likewise.
15039         (arm_cortex_a9_tune): Likewise.
15040         (arm_cortex_a12_tune): Likewise.
15041         (arm_v7m_tune): Likewise.
15042         (arm_cortex_m7_tune): Likewise.
15043         (arm_v6m_tune): Likewise.
15044         (arm_fa726te_tune): Likewise.
15046 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
15048         * altivec.md: Delete UNSPEC_VMLADDUHM.
15049         (mulv4si3_p8): New pattern.
15050         (mulv4si3): Use it for POWER8.
15051         (mulv8hi3): Use vmladduhm with zero addend.
15052         (altivec_vmladduhm): Descriptive RTL.
15054 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
15056         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
15057         to use neon_move instead of mov_imm.
15058         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
15059         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
15061         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
15062         aarch64_float_const_zero_rtx_p check before TFmode check.
15063         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
15064         an fp zero.
15065         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
15066         code and attributes to match.  Change condition from register_operand
15067         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
15068         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
15069         to store2.
15071 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
15073         PR debug/66535
15074         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
15075         there is no parent.
15077 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
15079         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
15080         HOST_WIDE_INT parameter.
15082 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
15084         PR ipa/66181
15085         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
15086         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
15087         TYPE_NO_FORCE_BLK.
15088         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
15090 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
15092         * rtl.h (classify_insn): Declare.
15093         * emit-rtl.c (classify_insn): Move to...
15094         * rtl.c: ...here and add generator support.
15095         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
15096         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
15097         * genemit.c (gen_emit_seq): New function.
15098         (gen_expand, gen_split): Use it.
15100 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
15102         * tree.c (make_vector_stat): Fix comment to state that the
15103         function returns a VECTOR_CST.
15105 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
15107         * gensupport.h (add_implicit_parallel): Declare.
15108         * genrecog.c (add_implicit_parallel): Move to...
15109         * gensupport.c (add_implicit_parallel): ...here.
15110         (process_one_cond_exec): Use it.
15111         * genemit.c (gen_insn): Likewise.
15113 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
15115         PR bootstrap/66448
15116         * passes.c (rest_of_decl_compilation): Do not register globals for
15117         early debug if they are declared in built-ins.
15119 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
15121         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
15123 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15125         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
15126         manually swapping.
15127         (noce_try_cmove_arith): Likewise.
15128         (noce_get_alt_condition): Likewise.
15130 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
15132         * common/config/i386/i386-common.c
15133         (OPTION_MASK_ISA_MWAITX_SET): New.
15134         (ix86_handle_option): Handle mwaitx.
15135         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
15136         (x86_64-*-*): Likewise.
15137         * config/i386/mwaitxintrin.h: New header.
15138         * config/i386/cpuid.h (bit_MWAITX):  Define.
15139         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
15140         MWAITX support.
15141         * config/i386/i386.opt (mwaitx): New.
15142         * config/i386/i386-builtin-types.def
15143         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
15144         * config/i386/i386-c.c: Define __MWAITX__ if needed.
15145         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
15146         (PTA_MWAITX): New.
15147         (ix86_option_override_internal): Handle new option.
15148         (processor_alias_table): Added PTA_MWAITX.
15149         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
15150         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
15151         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
15152         IX86_BUILTIN_MONITORX  built-ins.
15153         * config/i386/i386.h (TARGET_MWAITX): New.
15154         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
15155         UNSPEC_MONITORX.
15156         (mwaitx):  New pattern.
15157         (monitorx_<mode>): New pattern.
15158         * config/i386/x86intrin.h: Include mwaitxintrin.h.
15159         * doc/extend.texi: Document monitorx and mwaitx builtins.
15160         * doc/invoke.texi: Document -mmwaitx option.
15162 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
15164         * emit-rtl.c (need_atomic_barrier_p): Mask model with
15165         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
15167 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
15169         * dbxout.c (xcoff_debug_hooks): Provide a function for
15170         register_main_translation_unit hook.
15172 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
15174         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
15175         variants cases from switch.
15176         (rs6000_post_atomic_barrier): Same.
15177         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
15178         (rs6000_expand_atomic_exchange): Same.
15179         (rs6000_expand_atomic_op): Same.
15180         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
15181         SYNC variants cases from switch.
15182         (atomic_load): Same.
15183         (atomic_store): Same.
15185 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
15187         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
15188         CONST_INT for goto.
15190 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
15192         PR bootstrap/66448
15193         * dwarf2out.c (check_die): Check for common duplicate attributes.
15194         (add_location_or_const_value_attribute): Do not add duplicate
15195         attributes.
15196         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
15197         time around.
15198         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
15199         (gen_type_die_with_usage): Call check_die.
15200         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
15202 2015-06-11  Jason Merrill  <jason@redhat.com>
15204         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
15205         dies.
15207 2015-06-11  Marek Polacek  <polacek@redhat.com>
15209         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
15211 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
15213         PR bootstrap/66252
15214         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
15215         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
15216         (*addx_extend_sp32): Fix pasto.
15217         (*subx_extend): Rename into...
15218         (*subx_extend_sp32): ...this.
15219         (*adddi3_extend_sp32): Add earlyclobber.
15220         (*subdi3_insn_sp32): Likewise.
15221         (*subdi3_extend_sp32): Likewise.
15222         (*and_not_di_sp32): Likewise.
15223         (*or_not_di_sp32): Likewise.
15224         (*xor_not_di_sp32): Likewise.
15225         (*negdi2_sp32): Likewise.
15226         (*one_cmpldi2_sp32): Likewise.
15228 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
15230         * debug.h (struct gcc_debug_hooks): Add a
15231         register_main_translation_unit hook.
15232         * debug.c (do_nothing_debug_hooks): Provide a function for this
15233         new hook.
15234         * dbxout.c (dbx_debug_hooks): Likewise.
15235         * sdbout.c (sdb_debug_hooks): Likewise.
15236         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15237         * dwarf2out.c (main_translation_unit): New global variable.
15238         (dwarf2out_register_main_translation_unit): New function
15239         implementing the new hook.
15240         (dwarf2_debug_hooks): Assign
15241         dwarf2out_register_main_translation_unit to this new hook.
15242         (dwarf2out_init): Associate any main translation unit to
15243         comp_unit_die ().
15245 2015-06-11  Marek Polacek  <polacek@redhat.com>
15247         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
15249 2015-06-11  Marek Polacek  <polacek@redhat.com>
15251         * match.pd: Use single_use throughout.
15253 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15255         * config/arm/arm.c (arm_option_params_internal): When optimising
15256         for speed set max_insns_skipped when arm_restrict_it.
15258 2015-06-11  Christian Bruel  <christian.bruel@st.com>
15260         PR target/52144
15261         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
15262          macros in ...
15263         (arm_cpu_builtins): New function.
15264         (arm_pragma_target_parse): Call arm_cpu_builtins.
15265         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
15266         (arm_register_target_pragmas): Likewise.
15267         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
15268          Call arm_register_target_pragmas.
15269         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
15270         (arm_pragma_target_parse): Likewise.
15272 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
15274         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
15275         of the second operand.
15277 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
15279         PR target/66473
15280         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
15281         to prepare mask operand for AVX512 modes.
15283 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
15285         PR target/66474
15286         * doc/md.texi (Machine Constraints): Document that on the PowerPC
15287         if you use a constraint that targets a VSX register, you must use
15288         %x<n> in the template.
15290 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
15292         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
15293         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
15294         (define_insn "trap"): New definition.
15296 2015-06-10  Richard Biener  <rguenther@suse.de>
15298         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
15299         out from ...
15300         (vect_supported_load_permutation_p): ... here.  Handle
15301         supportable permutations in reductions.
15302         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
15303         for vectorizing strided group loads.
15305 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
15307         PR target/66470
15308         * config/i386/i386.c (ix86_split_long_move): For collisions
15309         involving direct tls segment refs, move the UNSPEC_TP possibly
15310         wrapped in ZERO_EXTEND out of the address for lea, to each of
15311         the memory loads.
15313 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15315         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
15316         dmb sy. Adjust tabs.
15318 2015-06-10  Tom de Vries  <tom@codesourcery.com>
15320         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
15322 2015-06-10  Martin Liska  <mliska@suse.cz>
15324         PR bootstrap/66471
15325         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
15326         all enum values in mem_alloc_origin.
15327         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
15328         name.
15329         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
15330         * bitmap.c (bitmap_register): Likewise.
15331         (dump_bitmap_statistics): Likewise.
15332         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
15333         (ggc_record_overhead): Likewise.
15334         * hash-map.h: Likewise.
15335         * hash-set.h: Likewise.
15336         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
15337         * hash-table.h: Likewise.
15338         * vec.c (vec_prefix::register_overhead): Likewise.
15339         (vec_prefix::release_overhead): Likewise.
15340         (dump_vec_loc_statistics): Likewise.
15342 2015-06-09  Christian Bruel  <christian.bruel@st.com>
15344         PR target/52144
15345         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
15346         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
15347         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
15348         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
15349         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
15350         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
15351         (arm_valid_target_attribute_p): Likewise.
15352         (arm_set_current_function, arm_can_inline_p): Likewise.
15353         (arm_valid_target_attribute_rec): Likewise.
15354         (arm_previous_fndecl): New variable.
15355         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
15356         (TARGET_CAN_INLINE_P): Define.
15357         (arm_asm_trampoline_template): Emit mode.
15358         (arm_file_start): Don't set unified syntax.
15359         (arm_declare_function_name): Set unified syntax and mode.
15360         (arm_option_override): Init target_option_default_node.
15361         and target_option_current_node.
15362         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
15363         (*call_symbol): Likewise.
15364         * doc/extend.texi: Document ARM/Thumb target attribute.
15365         * doc/invoke.texi: Likewise.
15367 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
15369         Revert:
15370         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
15371         PR rtl-optimization/64164
15372         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15373         * tree-ssa-copyrename.c: Removed.
15374         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
15375         -ftree-coalesce-vars.
15376         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15377         * common.opt (ftree-copyrename): Ignore.
15378         (ftree-coalesce-inlined-vars): Likewise.
15379         * doc/invoke.texi: Remove the ignored options above.
15380         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15381         * tree-ssa-coalesce.h: ... here.
15382         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15383         headers required by it.
15384         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15385         across variables when flag_tree_coalesce_vars.  Check register
15386         use and promoted modes to allow coalescing.  Moved to
15387         tree-ssa-coalesce.c.
15388         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15389         with its member functions to tree-ssa-coalesce.c.
15390         (var_map_base_init): Likewise.  Renamed to
15391         compute_samebase_partition_bases.
15392         (partition_view_normal): Drop want_bases parameter.
15393         (partition_view_bitmap): Likewise.
15394         * tree-ssa-live.h: Adjust declarations.
15395         * tree-ssa-coalesce.c: Include explow.h.
15396         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15397         default defs at the entry point.
15398         (dump_part_var_map): New.
15399         (compute_optimized_partition_bases): New, called by...
15400         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15401         of compute_samebase_partition_bases.  Adjust.
15402         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15403         * cfgexpand.c (leader_merge): New.
15404         (get_rtl_for_parm_ssa_default_def): New.
15405         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15406         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15407         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
15408         redundant MEM attr setting.
15409         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
15410         from...
15411         (expand_one_stack_var): ... this.  New wrapper to check and
15412         skip already expanded SSA partitions.
15413         (record_alignment_for_reg_var): New, factored out of...
15414         (expand_one_var): ... this.
15415         (expand_one_ssa_partition): New.
15416         (adjust_one_expanded_partition_var): New.
15417         (expand_one_register_var): Check and skip already expanded SSA
15418         partitions.
15419         (expand_used_vars): Don't create DECLs for anonymous SSA
15420         names.  Expand all SSA partitions, then adjust all SSA names.
15421         (pass::execute): Replace the loops that set
15422         SA.partition_to_pseudo from partition leaders and cleared
15423         DECL_RTL for multi-location variables, and that which used to
15424         rename vars and set attrs, with one that clears DECL_RTL and
15425         checks that PARMs and RESULTs default_defs match DECL_RTL.
15426         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15427         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15428         * explow.c (promote_ssa_mode): New.
15429         * explow.h (promote_ssa_mode): Declare.
15430         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15431         * function.c: Include cfgexpand.h.
15432         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15433         (use_register_for_parm_decl): Wrapper for the above to
15434         special-case the result_ptr.
15435         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15436         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15437         multiple locations.
15438         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15439         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
15440         (assign_parm_setup_block): Prefer SSA-assigned location.
15441         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
15442         if stack_parm is NULL.
15443         (assign_parm_setup_stack): Prefer SSA-assigned location.
15444         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
15445         rtl before testing for pointer bounds.  Special-case result_ptr.
15446         (expand_function_start): Maybe reset DECL_RTL of result.
15447         Prefer SSA-assigned location for result and static chain.
15448         Factor out DECL_RESULT and SET_DECL_RTL.
15449         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15450         anonymous SSA names.  Use promote_ssa_mode.
15451         (get_temp_reg): Likewise.
15452         (remove_ssa_form): Adjust.
15453         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15454         and get its reg_usage for reg invalidation.
15455         (compute_bb_dataflow): Pass it insn.
15456         (emit_notes_in_bb): Likewise.
15457         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
15458         fail assert on conversion between unsigned types.
15460 2015-06-09  Tom de Vries  <tom@codesourcery.com>
15462         PR tree-optimization/65460
15463         * omp-low.c (expand_omp_target): Set parallelized_function on
15464         cgraph_node for child_fn.
15466 2015-06-09  Tom de Vries  <tom@codesourcery.com>
15468         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
15469         parallelized_function before add_new_function.
15471 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
15473         * gcc-plugin.h: Move decls to plugin.h and include it.
15474         * plugin.h: Relocate decls from gcc-plugin.h
15475         * ggc-page.c: Include required header files.
15476         * passes.c: Likewise.
15477         * cgraphunit.c: Likewise.
15479 2015-06-09  Tom de Vries  <tom@codesourcery.com>
15481         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
15483 2015-06-09  Jason Merrill  <jason@redhat.com>
15485         PR bootstrap/66448
15486         * toplev.c (check_global_declaration): Don't warn about a clone.
15488 2015-06-09  Marek Polacek  <polacek@redhat.com>
15490         PR tree-optimization/66299
15491         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
15492         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
15493         patterns.
15495 2015-06-09  Richard Biener  <rguenther@suse.de>
15497         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
15498         (vect_analyze_slp_instance): Instead do not falsely drop
15499         load permutations.
15501 2015-06-09  Richard Biener  <rguenther@suse.de>
15503         PR middle-end/66423
15504         * match.pd: Handle A % (unsigned)(1 << B).
15506 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
15508         * varasm.c (output_object_block_htab): Remove.
15509         (output_object_block_compare): New.
15510         (output_object_blocks): Sort named object_blocks before outputting
15511         them.
15513 2015-06-09  Richard Biener  <rguenther@suse.de>
15515         PR tree-optimization/66419
15516         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
15517         consider GROUP_GAP when detecting a perfect subchain.
15519 2015-06-09  Nick Clifton  <nickc@redhat.com>
15521         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
15522         place read only data in the .frodata section.
15524 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
15526         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
15527         (atomic_store<mode>): Likewise.
15529 2015-06-09  Richard Biener  <rguenther@suse.de>
15531         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
15533 2015-06-09  Richard Biener  <rguenther@suse.de>
15535         PR middle-end/66413
15536         * tree-inline.c (insert_init_debug_bind): Unshare value.
15538 2015-06-09  Richard Biener  <rguenther@suse.de>
15540         PR tree-optimization/66396
15541         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
15542         Rename virtual operands.
15544 2015-06-09  Tom de Vries  <tom@codesourcery.com>
15546         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
15547         always return false.
15549 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
15551         PR rtl-optimization/64164
15552         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15553         * tree-ssa-copyrename.c: Removed.
15554         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
15555         -ftree-coalesce-vars.
15556         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15557         * common.opt (ftree-copyrename): Ignore.
15558         (ftree-coalesce-inlined-vars): Likewise.
15559         * doc/invoke.texi: Remove the ignored options above.
15560         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15561         * tree-ssa-coalesce.h: ... here.
15562         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15563         headers required by it.
15564         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15565         across variables when flag_tree_coalesce_vars.  Check register
15566         use and promoted modes to allow coalescing.  Moved to
15567         tree-ssa-coalesce.c.
15568         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15569         with its member functions to tree-ssa-coalesce.c.
15570         (var_map_base_init): Likewise.  Renamed to
15571         compute_samebase_partition_bases.
15572         (partition_view_normal): Drop want_bases parameter.
15573         (partition_view_bitmap): Likewise.
15574         * tree-ssa-live.h: Adjust declarations.
15575         * tree-ssa-coalesce.c: Include explow.h.
15576         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15577         default defs at the entry point.
15578         (dump_part_var_map): New.
15579         (compute_optimized_partition_bases): New, called by...
15580         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15581         of compute_samebase_partition_bases.  Adjust.
15582         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15583         * cfgexpand.c (leader_merge): New.
15584         (get_rtl_for_parm_ssa_default_def): New.
15585         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15586         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15587         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
15588         redundant MEM attr setting.
15589         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
15590         from...
15591         (expand_one_stack_var): ... this.  New wrapper to check and
15592         skip already expanded SSA partitions.
15593         (record_alignment_for_reg_var): New, factored out of...
15594         (expand_one_var): ... this.
15595         (expand_one_ssa_partition): New.
15596         (adjust_one_expanded_partition_var): New.
15597         (expand_one_register_var): Check and skip already expanded SSA
15598         partitions.
15599         (expand_used_vars): Don't create DECLs for anonymous SSA
15600         names.  Expand all SSA partitions, then adjust all SSA names.
15601         (pass::execute): Replace the loops that set
15602         SA.partition_to_pseudo from partition leaders and cleared
15603         DECL_RTL for multi-location variables, and that which used to
15604         rename vars and set attrs, with one that clears DECL_RTL and
15605         checks that PARMs and RESULTs default_defs match DECL_RTL.
15606         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15607         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15608         * explow.c (promote_ssa_mode): New.
15609         * explow.h (promote_ssa_mode): Declare.
15610         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15611         * function.c: Include cfgexpand.h.
15612         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15613         (use_register_for_parm_decl): Wrapper for the above to
15614         special-case the result_ptr.
15615         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15616         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15617         multiple locations.
15618         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15619         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
15620         (assign_parm_setup_block): Prefer SSA-assigned location.
15621         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
15622         if stack_parm is NULL.
15623         (assign_parm_setup_stack): Prefer SSA-assigned location.
15624         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
15625         rtl before testing for pointer bounds.  Special-case result_ptr.
15626         (expand_function_start): Maybe reset DECL_RTL of result.
15627         Prefer SSA-assigned location for result and static chain.
15628         Factor out DECL_RESULT and SET_DECL_RTL.
15629         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15630         anonymous SSA names.  Use promote_ssa_mode.
15631         (get_temp_reg): Likewise.
15632         (remove_ssa_form): Adjust.
15633         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15634         and get its reg_usage for reg invalidation.
15635         (compute_bb_dataflow): Pass it insn.
15636         (emit_notes_in_bb): Likewise.
15637         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
15638         fail assert on conversion between unsigned types.
15640 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
15642         PR debug/58315
15643         * tree-inline.c (reset_debug_binding): New.
15644         (reset_debug_bindings): Likewise.
15645         (expand_call_inline): Call it.
15647 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
15649         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
15650         TYPE_STRING_FLAG.
15652 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
15654         * lto-streamer-out.c (lto_output_location): Stream
15655         reserved locations correctly.
15656         * lto-streamer-in.c (lto_output_location): Likewise.
15658 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
15660         * coretypes.h: Include hash-table.h and hash-set.h for host files.
15661         * ggc.h: Don't include statistics.h>
15662         * hash-map.h: Remove all includes.
15663         * hash-set.h: Likewise.
15664         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
15665         the include list. Remove <new>.
15666         * inchash.h: Remove all includes.
15667         * mem-stats.h: Likewise.
15668         * vec.h: No special processing for generators or ggc.
15669         * alias.c : Adjust include files.
15670         * alloc-pool.c : Likewise.
15671         * alloc-pool.h : Likewise.
15672         * asan.c : Likewise.
15673         * attribs.c : Likewise.
15674         * auto-inc-dec.c : Likewise.
15675         * auto-profile.c : Likewise.
15676         * bb-reorder.c : Likewise.
15677         * bitmap.c : Likewise.
15678         * bitmap.h : Likewise.
15679         * bt-load.c : Likewise.
15680         * builtins.c : Likewise.
15681         * caller-save.c : Likewise.
15682         * calls.c : Likewise.
15683         * ccmp.c : Likewise.
15684         * cfg.c : Likewise.
15685         * cfganal.c : Likewise.
15686         * cfgbuild.c : Likewise.
15687         * cfgcleanup.c : Likewise.
15688         * cfgexpand.c : Likewise.
15689         * cfghooks.c : Likewise.
15690         * cfgloop.c : Likewise.
15691         * cfgloop.h : Likewise.
15692         * cfgloopanal.c : Likewise.
15693         * cfgloopmanip.c : Likewise.
15694         * cfgrtl.c : Likewise.
15695         * cgraph.c : Likewise.
15696         * cgraphbuild.c : Likewise.
15697         * cgraphclones.c : Likewise.
15698         * cgraphunit.c : Likewise.
15699         * cilk-common.c : Likewise.
15700         * combine-stack-adj.c : Likewise.
15701         * combine.c : Likewise.
15702         * compare-elim.c : Likewise.
15703         * context.c : Likewise.
15704         * convert.c : Likewise.
15705         * coverage.c : Likewise.
15706         * cppbuiltin.c : Likewise.
15707         * cprop.c : Likewise.
15708         * cse.c : Likewise.
15709         * cselib.c : Likewise.
15710         * data-streamer-in.c : Likewise.
15711         * data-streamer-out.c : Likewise.
15712         * data-streamer.c : Likewise.
15713         * data-streamer.h : Likewise.
15714         * dbxout.c : Likewise.
15715         * dce.c : Likewise.
15716         * ddg.c : Likewise.
15717         * debug.c : Likewise.
15718         * df-core.c : Likewise.
15719         * df-problems.c : Likewise.
15720         * df-scan.c : Likewise.
15721         * df.h : Likewise.
15722         * dfp.c : Likewise.
15723         * dojump.c : Likewise.
15724         * dominance.c : Likewise.
15725         * domwalk.c : Likewise.
15726         * double-int.c : Likewise.
15727         * dse.c : Likewise.
15728         * dumpfile.c : Likewise.
15729         * dwarf2asm.c : Likewise.
15730         * dwarf2cfi.c : Likewise.
15731         * dwarf2out.c : Likewise.
15732         * emit-rtl.c : Likewise.
15733         * et-forest.c : Likewise.
15734         * except.c : Likewise.
15735         * except.h : Likewise.
15736         * explow.c : Likewise.
15737         * expmed.c : Likewise.
15738         * expr.c : Likewise.
15739         * final.c : Likewise.
15740         * fixed-value.c : Likewise.
15741         * fold-const.c : Likewise.
15742         * function.c : Likewise.
15743         * fwprop.c : Likewise.
15744         * gcc-plugin.h : Likewise.
15745         * gcc.c : Likewise.
15746         * gcse-common.c : Likewise.
15747         * gcse.c : Likewise.
15748         * genattrtab.c : Likewise.
15749         * genautomata.c : Likewise.
15750         * genconditions.c : Likewise.
15751         * genemit.c : Likewise.
15752         * generic-match-head.c : Likewise.
15753         * genextract.c : Likewise.
15754         * gengtype-state.c : Likewise.
15755         * gengtype.c : Likewise.
15756         * genhooks.c : Likewise.
15757         * genmatch.c : Likewise.
15758         * genmodes.c : Likewise.
15759         * genrecog.c : Likewise.
15760         * gensupport.c : Likewise.
15761         * ggc-common.c : Likewise.
15762         * ggc-internal.h : Likewise.
15763         * ggc-none.c : Likewise.
15764         * ggc-page.c : Likewise.
15765         * gimple-builder.c : Likewise.
15766         * gimple-expr.c : Likewise.
15767         * gimple-fold.c : Likewise.
15768         * gimple-iterator.c : Likewise.
15769         * gimple-low.c : Likewise.
15770         * gimple-match-head.c : Likewise.
15771         * gimple-pretty-print.c : Likewise.
15772         * gimple-ssa-isolate-paths.c : Likewise.
15773         * gimple-ssa-strength-reduction.c : Likewise.
15774         * gimple-ssa.h : Likewise.
15775         * gimple-streamer-in.c : Likewise.
15776         * gimple-streamer-out.c : Likewise.
15777         * gimple-streamer.h : Likewise.
15778         * gimple-walk.c : Likewise.
15779         * gimple.c : Likewise.
15780         * gimplify-me.c : Likewise.
15781         * gimplify.c : Likewise.
15782         * godump.c : Likewise.
15783         * graph.c : Likewise.
15784         * graphds.c : Likewise.
15785         * graphite-blocking.c : Likewise.
15786         * graphite-dependences.c : Likewise.
15787         * graphite-interchange.c : Likewise.
15788         * graphite-isl-ast-to-gimple.c : Likewise.
15789         * graphite-optimize-isl.c : Likewise.
15790         * graphite-poly.c : Likewise.
15791         * graphite-scop-detection.c : Likewise.
15792         * graphite-sese-to-poly.c : Likewise.
15793         * graphite.c : Likewise.
15794         * haifa-sched.c : Likewise.
15795         * hard-reg-set.h : Likewise.
15796         * hw-doloop.c : Likewise.
15797         * ifcvt.c : Likewise.
15798         * inchash.c : Likewise.
15799         * incpath.c : Likewise.
15800         * init-regs.c : Likewise.
15801         * input.c : Likewise.
15802         * internal-fn.c : Likewise.
15803         * ipa-chkp.c : Likewise.
15804         * ipa-comdats.c : Likewise.
15805         * ipa-cp.c : Likewise.
15806         * ipa-devirt.c : Likewise.
15807         * ipa-icf-gimple.c : Likewise.
15808         * ipa-icf.c : Likewise.
15809         * ipa-inline-analysis.c : Likewise.
15810         * ipa-inline-transform.c : Likewise.
15811         * ipa-inline.c : Likewise.
15812         * ipa-polymorphic-call.c : Likewise.
15813         * ipa-profile.c : Likewise.
15814         * ipa-prop.c : Likewise.
15815         * ipa-pure-const.c : Likewise.
15816         * ipa-ref.c : Likewise.
15817         * ipa-reference.c : Likewise.
15818         * ipa-split.c : Likewise.
15819         * ipa-utils.c : Likewise.
15820         * ipa-visibility.c : Likewise.
15821         * ipa.c : Likewise.
15822         * ira-build.c : Likewise.
15823         * ira-color.c : Likewise.
15824         * ira-conflicts.c : Likewise.
15825         * ira-costs.c : Likewise.
15826         * ira-emit.c : Likewise.
15827         * ira-lives.c : Likewise.
15828         * ira.c : Likewise.
15829         * jump.c : Likewise.
15830         * langhooks.c : Likewise.
15831         * lcm.c : Likewise.
15832         * libfuncs.h : Likewise.
15833         * lists.c : Likewise.
15834         * loop-doloop.c : Likewise.
15835         * loop-init.c : Likewise.
15836         * loop-invariant.c : Likewise.
15837         * loop-iv.c : Likewise.
15838         * loop-unroll.c : Likewise.
15839         * lower-subreg.c : Likewise.
15840         * lra-assigns.c : Likewise.
15841         * lra-coalesce.c : Likewise.
15842         * lra-constraints.c : Likewise.
15843         * lra-eliminations.c : Likewise.
15844         * lra-lives.c : Likewise.
15845         * lra-remat.c : Likewise.
15846         * lra-spills.c : Likewise.
15847         * lra.c : Likewise.
15848         * lto-cgraph.c : Likewise.
15849         * lto-compress.c : Likewise.
15850         * lto-opts.c : Likewise.
15851         * lto-section-in.c : Likewise.
15852         * lto-section-out.c : Likewise.
15853         * lto-streamer-in.c : Likewise.
15854         * lto-streamer-out.c : Likewise.
15855         * lto-streamer.c : Likewise.
15856         * lto-streamer.h : Likewise.
15857         * mcf.c : Likewise.
15858         * mode-switching.c : Likewise.
15859         * modulo-sched.c : Likewise.
15860         * omega.c : Likewise.
15861         * omp-low.c : Likewise.
15862         * optabs.c : Likewise.
15863         * opts-global.c : Likewise.
15864         * opts.h : Likewise.
15865         * passes.c : Likewise.
15866         * plugin.c : Likewise.
15867         * postreload-gcse.c : Likewise.
15868         * postreload.c : Likewise.
15869         * predict.c : Likewise.
15870         * print-rtl.c : Likewise.
15871         * print-tree.c : Likewise.
15872         * profile.c : Likewise.
15873         * read-md.c : Likewise.
15874         * read-md.h : Likewise.
15875         * read-rtl.c : Likewise.
15876         * real.c : Likewise.
15877         * realmpfr.c : Likewise.
15878         * recog.c : Likewise.
15879         * ree.c : Likewise.
15880         * reg-stack.c : Likewise.
15881         * regcprop.c : Likewise.
15882         * reginfo.c : Likewise.
15883         * regrename.c : Likewise.
15884         * regstat.c : Likewise.
15885         * reload.c : Likewise.
15886         * reload1.c : Likewise.
15887         * reorg.c : Likewise.
15888         * resource.c : Likewise.
15889         * rtl-chkp.c : Likewise.
15890         * rtl.c : Likewise.
15891         * rtl.h : Likewise.
15892         * rtlanal.c : Likewise.
15893         * rtlhash.c : Likewise.
15894         * rtlhash.h : Likewise.
15895         * rtlhooks.c : Likewise.
15896         * sanopt.c : Likewise.
15897         * sched-deps.c : Likewise.
15898         * sched-ebb.c : Likewise.
15899         * sched-rgn.c : Likewise.
15900         * sched-vis.c : Likewise.
15901         * sdbout.c : Likewise.
15902         * sel-sched-dump.c : Likewise.
15903         * sel-sched-ir.c : Likewise.
15904         * sel-sched-ir.h : Likewise.
15905         * sel-sched.c : Likewise.
15906         * sese.c : Likewise.
15907         * shrink-wrap.c : Likewise.
15908         * shrink-wrap.h : Likewise.
15909         * simplify-rtx.c : Likewise.
15910         * stack-ptr-mod.c : Likewise.
15911         * statistics.c : Likewise.
15912         * stmt.c : Likewise.
15913         * stor-layout.c : Likewise.
15914         * store-motion.c : Likewise.
15915         * stringpool.c : Likewise.
15916         * symtab.c : Likewise.
15917         * target-globals.c : Likewise.
15918         * targhooks.c : Likewise.
15919         * tlink.c : Likewise.
15920         * toplev.c : Likewise.
15921         * tracer.c : Likewise.
15922         * trans-mem.c : Likewise.
15923         * tree-affine.c : Likewise.
15924         * tree-affine.h : Likewise.
15925         * tree-browser.c : Likewise.
15926         * tree-call-cdce.c : Likewise.
15927         * tree-cfg.c : Likewise.
15928         * tree-cfgcleanup.c : Likewise.
15929         * tree-chkp-opt.c : Likewise.
15930         * tree-chkp.c : Likewise.
15931         * tree-chrec.c : Likewise.
15932         * tree-complex.c : Likewise.
15933         * tree-data-ref.c : Likewise.
15934         * tree-dfa.c : Likewise.
15935         * tree-diagnostic.c : Likewise.
15936         * tree-dump.c : Likewise.
15937         * tree-eh.c : Likewise.
15938         * tree-eh.h : Likewise.
15939         * tree-emutls.c : Likewise.
15940         * tree-hasher.h : Likewise.
15941         * tree-if-conv.c : Likewise.
15942         * tree-inline.c : Likewise.
15943         * tree-inline.h : Likewise.
15944         * tree-into-ssa.c : Likewise.
15945         * tree-iterator.c : Likewise.
15946         * tree-loop-distribution.c : Likewise.
15947         * tree-nested.c : Likewise.
15948         * tree-nrv.c : Likewise.
15949         * tree-object-size.c : Likewise.
15950         * tree-outof-ssa.c : Likewise.
15951         * tree-parloops.c : Likewise.
15952         * tree-phinodes.c : Likewise.
15953         * tree-predcom.c : Likewise.
15954         * tree-pretty-print.c : Likewise.
15955         * tree-profile.c : Likewise.
15956         * tree-scalar-evolution.c : Likewise.
15957         * tree-sra.c : Likewise.
15958         * tree-ssa-address.c : Likewise.
15959         * tree-ssa-alias.c : Likewise.
15960         * tree-ssa-ccp.c : Likewise.
15961         * tree-ssa-coalesce.c : Likewise.
15962         * tree-ssa-copy.c : Likewise.
15963         * tree-ssa-copyrename.c : Likewise.
15964         * tree-ssa-dce.c : Likewise.
15965         * tree-ssa-dom.c : Likewise.
15966         * tree-ssa-dse.c : Likewise.
15967         * tree-ssa-forwprop.c : Likewise.
15968         * tree-ssa-ifcombine.c : Likewise.
15969         * tree-ssa-live.c : Likewise.
15970         * tree-ssa-loop-ch.c : Likewise.
15971         * tree-ssa-loop-im.c : Likewise.
15972         * tree-ssa-loop-ivcanon.c : Likewise.
15973         * tree-ssa-loop-ivopts.c : Likewise.
15974         * tree-ssa-loop-manip.c : Likewise.
15975         * tree-ssa-loop-niter.c : Likewise.
15976         * tree-ssa-loop-prefetch.c : Likewise.
15977         * tree-ssa-loop-unswitch.c : Likewise.
15978         * tree-ssa-loop.c : Likewise.
15979         * tree-ssa-math-opts.c : Likewise.
15980         * tree-ssa-operands.c : Likewise.
15981         * tree-ssa-phiopt.c : Likewise.
15982         * tree-ssa-phiprop.c : Likewise.
15983         * tree-ssa-pre.c : Likewise.
15984         * tree-ssa-propagate.c : Likewise.
15985         * tree-ssa-reassoc.c : Likewise.
15986         * tree-ssa-sccvn.c : Likewise.
15987         * tree-ssa-scopedtables.c : Likewise.
15988         * tree-ssa-sink.c : Likewise.
15989         * tree-ssa-strlen.c : Likewise.
15990         * tree-ssa-structalias.c : Likewise.
15991         * tree-ssa-tail-merge.c : Likewise.
15992         * tree-ssa-ter.c : Likewise.
15993         * tree-ssa-threadedge.c : Likewise.
15994         * tree-ssa-threadupdate.c : Likewise.
15995         * tree-ssa-uncprop.c : Likewise.
15996         * tree-ssa-uninit.c : Likewise.
15997         * tree-ssa.c : Likewise.
15998         * tree-ssanames.c : Likewise.
15999         * tree-stdarg.c : Likewise.
16000         * tree-streamer-in.c : Likewise.
16001         * tree-streamer-out.c : Likewise.
16002         * tree-streamer.c : Likewise.
16003         * tree-streamer.h : Likewise.
16004         * tree-switch-conversion.c : Likewise.
16005         * tree-tailcall.c : Likewise.
16006         * tree-vect-data-refs.c : Likewise.
16007         * tree-vect-generic.c : Likewise.
16008         * tree-vect-loop-manip.c : Likewise.
16009         * tree-vect-loop.c : Likewise.
16010         * tree-vect-patterns.c : Likewise.
16011         * tree-vect-slp.c : Likewise.
16012         * tree-vect-stmts.c : Likewise.
16013         * tree-vectorizer.c : Likewise.
16014         * tree-vectorizer.h : Likewise.
16015         * tree-vrp.c : Likewise.
16016         * tree.c : Likewise.
16017         * tsan.c : Likewise.
16018         * ubsan.c : Likewise.
16019         * valtrack.c : Likewise.
16020         * valtrack.h : Likewise.
16021         * value-prof.c : Likewise.
16022         * var-tracking.c : Likewise.
16023         * varasm.c : Likewise.
16024         * varpool.c : Likewise.
16025         * vec.c: Likewise.
16026         * vmsdbgout.c : Likewise.
16027         * vtable-verify.c : Likewise.
16028         * vtable-verify.h : Likewise.
16029         * web.c : Likewise.
16030         * wide-int.cc : Likewise.
16031         * xcoffout.c : Likewise.
16032         * config/aarch64/aarch64-builtins.c : Likewise.
16033         * config/aarch64/aarch64.c : Likewise.
16034         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
16035         * config/alpha/alpha.c : Likewise.
16036         * config/arc/arc.c : Likewise.
16037         * config/arm/aarch-common.c : Likewise.
16038         * config/arm/arm-builtins.c : Likewise.
16039         * config/arm/arm-c.c : Likewise.
16040         * config/arm/arm.c : Likewise.
16041         * config/avr/avr-c.c : Likewise.
16042         * config/avr/avr-log.c : Likewise.
16043         * config/avr/avr.c : Likewise.
16044         * config/bfin/bfin.c : Likewise.
16045         * config/c6x/c6x.c : Likewise.
16046         * config/cr16/cr16.c : Likewise.
16047         * config/cris/cris.c : Likewise.
16048         * config/darwin-c.c : Likewise.
16049         * config/darwin.c : Likewise.
16050         * config/default-c.c : Likewise.
16051         * config/epiphany/epiphany.c : Likewise.
16052         * config/epiphany/mode-switch-use.c : Likewise.
16053         * config/epiphany/resolve-sw-modes.c : Likewise.
16054         * config/fr30/fr30.c : Likewise.
16055         * config/frv/frv.c : Likewise.
16056         * config/ft32/ft32.c : Likewise.
16057         * config/glibc-c.c : Likewise.
16058         * config/h8300/h8300.c : Likewise.
16059         * config/i386/i386-c.c : Likewise.
16060         * config/i386/i386.c : Likewise.
16061         * config/i386/msformat-c.c : Likewise.
16062         * config/i386/winnt-cxx.c : Likewise.
16063         * config/i386/winnt-stubs.c : Likewise.
16064         * config/i386/winnt.c : Likewise.
16065         * config/ia64/ia64-c.c : Likewise.
16066         * config/ia64/ia64.c : Likewise.
16067         * config/iq2000/iq2000.c : Likewise.
16068         * config/lm32/lm32.c : Likewise.
16069         * config/m32c/m32c-pragma.c : Likewise.
16070         * config/m32c/m32c.c : Likewise.
16071         * config/m32r/m32r.c : Likewise.
16072         * config/m68k/m68k.c : Likewise.
16073         * config/mcore/mcore.c : Likewise.
16074         * config/mep/mep-pragma.c : Likewise.
16075         * config/mep/mep.c : Likewise.
16076         * config/microblaze/microblaze-c.c : Likewise.
16077         * config/microblaze/microblaze.c : Likewise.
16078         * config/mips/mips.c : Likewise.
16079         * config/mmix/mmix.c : Likewise.
16080         * config/mn10300/mn10300.c : Likewise.
16081         * config/moxie/moxie.c : Likewise.
16082         * config/msp430/msp430-c.c : Likewise.
16083         * config/msp430/msp430.c : Likewise.
16084         * config/nds32/nds32-cost.c : Likewise.
16085         * config/nds32/nds32-fp-as-gp.c : Likewise.
16086         * config/nds32/nds32-intrinsic.c : Likewise.
16087         * config/nds32/nds32-isr.c : Likewise.
16088         * config/nds32/nds32-md-auxiliary.c : Likewise.
16089         * config/nds32/nds32-memory-manipulation.c : Likewise.
16090         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
16091         * config/nds32/nds32-predicates.c : Likewise.
16092         * config/nds32/nds32.c : Likewise.
16093         * config/nios2/nios2.c : Likewise.
16094         * config/nvptx/nvptx.c : Likewise.
16095         * config/pa/pa.c : Likewise.
16096         * config/pdp11/pdp11.c : Likewise.
16097         * config/rl78/rl78-c.c : Likewise.
16098         * config/rl78/rl78.c : Likewise.
16099         * config/rs6000/rs6000-c.c : Likewise.
16100         * config/rs6000/rs6000.c : Likewise.
16101         * config/rx/rx.c : Likewise.
16102         * config/s390/s390-c.c : Likewise.
16103         * config/s390/s390.c : Likewise.
16104         * config/sh/sh-c.c : Likewise.
16105         * config/sh/sh-mem.cc : Likewise.
16106         * config/sh/sh.c : Likewise.
16107         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
16108         * config/sh/sh_treg_combine.cc : Likewise.
16109         * config/sol2-c.c : Likewise.
16110         * config/sol2-cxx.c : Likewise.
16111         * config/sol2-stubs.c : Likewise.
16112         * config/sol2.c : Likewise.
16113         * config/sparc/sparc-c.c : Likewise.
16114         * config/sparc/sparc.c : Likewise.
16115         * config/spu/spu-c.c : Likewise.
16116         * config/spu/spu.c : Likewise.
16117         * config/stormy16/stormy16.c : Likewise.
16118         * config/tilegx/mul-tables.c : Likewise.
16119         * config/tilegx/tilegx-c.c : Likewise.
16120         * config/tilegx/tilegx.c : Likewise.
16121         * config/tilepro/mul-tables.c : Likewise.
16122         * config/tilepro/tilepro-c.c : Likewise.
16123         * config/tilepro/tilepro.c : Likewise.
16124         * config/v850/v850-c.c : Likewise.
16125         * config/v850/v850.c : Likewise.
16126         * config/vax/vax.c : Likewise.
16127         * config/visium/visium.c : Likewise.
16128         * config/vms/vms-c.c : Likewise.
16129         * config/vms/vms.c : Likewise.
16130         * config/vxworks.c : Likewise.
16131         * config/winnt-c.c : Likewise.
16132         * config/xtensa/xtensa.c : Likewise.
16134 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
16136         PR lto/65378
16137         * ipa-utils.h (warn_types_mismatch): Update prototype.
16138         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
16139         parameters.
16140         (type_mismatch_p): New function.
16141         (warn_types_mismatch): Reorg to work better on non-C++ types.
16142         (odr_types_equivalent_p): Add loc1/loc2 parameters.
16143         (add_type_duplicate): Update.
16145 2015-06-08  Tom de Vries  <tom@codesourcery.com>
16147         PR rtl-optimization/66444
16148         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
16149         call_used_regs.
16151 2015-06-08  Richard Biener  <rguenther@suse.de>
16153         PR tree-optimization/66422
16154         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
16155         block after inserted gcc_unreachable.
16157 2015-06-08  Nick Clifton  <nickc@redhat.com>
16159         * config/rx/rx.c (rx_function_value): Do not promote vector types.
16160         (rx_promote_function_mode): Likewise.
16161         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
16163 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
16165         * genattrtab.c (insn_alternatives): Change type from int *
16166         to uint64_t *.
16167         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
16168         (get_attr_value): Change type of num_alt to uint64_t.
16169         (compute_alternative_mask): Change return type from
16170         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
16171         (make_alternative_compare, mk_attr_alt): Change argument type
16172         from int to uint64_t.
16173         (simplify_test_exp): Change type of i from int to uint64_t.
16174         Shift ((uint64_t) 1) instead of 1 up.
16175         (main): Adjust oballocvec first argument from int to uint64_t.
16176         Shift ((uint64_t) 1) instead of 1 up.
16178 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
16180         PR other/65366
16181         * gdbhooks.py: Import sys.
16182         (intptr): New function.  Replace int(...) by intptr(...).
16184 2015-06-08  Richard Biener  <rguenther@suse.de>
16186         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
16187         adjustment for gaps at the end of a SLP load group properly.
16188         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
16189         all permutations we can generate.
16190         (vect_transform_slp_perm_load): Use the correct group-size.
16192 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
16194         * genmatch.c (expr::gen_transform): For conditions, guess the type
16195         from the second operand.
16197 2015-06-08  Tom de Vries  <tom@codesourcery.com>
16199         PR tree-optimization/66442
16200         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
16201         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
16202         if the loop latch is not a singleton.  Use
16203         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
16205 2015-06-08  Marek Polacek  <polacek@redhat.com>
16207         PR sanitizer/66452
16208         * toplev.c (check_global_declaration): Don't warn about artificial
16209         decls.
16211 2015-06-08  Tom de Vries  <tom@codesourcery.com>
16213         PR tree-optimization/66436
16214         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
16215         dump file.
16216         * gimplify.c: Add tree-dump.h include.
16217         (gimplify_function_tree): Dump function to gimple dump file.
16218         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
16219         dump file.
16221 2015-06-08  Tom de Vries  <tom@codesourcery.com>
16223         PR tree-optimization/66435
16224         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
16225         function.
16227 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
16229         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
16230         of ptr_type_node to not be ptr_to_node.
16231         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
16232         TREE_TYPE of pointers.
16233         * gimple-expr.c (useless_type_conversion): Reorder the check for
16234         function pointers and TYPE_CANONICAL.
16236 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
16238         PR bootstrap/66319
16239         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
16240         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
16241         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
16242         later.
16243         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
16244         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
16245         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
16246         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
16247         and non iso if unix2003.
16249 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
16251         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
16253 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
16255         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
16256         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
16257         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
16258         except.c, final.c, function.c, gcse-common.c, genemit.c,
16259         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
16260         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
16261         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
16262         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
16263         more derived ones.
16265 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
16267         * combine.c (combine_split_insns): Remove cast.
16268         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
16269         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
16270         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
16271         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
16272         * genemit.c (gen_split): Change return type of generated functions to
16273         rtx_insn.
16274         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
16275         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
16276         gen_peephole2_* functions.
16277         (print_subroutine, main): Likewise.
16278         * recog.c (peephole2_optimize): Remove cast.
16279         (peep2_next_insn): Promote return type to rtx_insn.
16280         * recog.h (peep2_next_insn): Fix prototype.
16281         * rtl.h (try_split, split_insns): Likewise.
16283 2015-06-06  DJ Delorie  <dj@redhat.com>
16285         * config/msp430/msp430.c (msp430_asm_integer): Support addition
16286         and subtraction too.
16288 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
16290         PR target/66410
16291         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
16292         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
16293         instead of Snd.  Disparage Sid/z alternative with '^'.
16295 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
16297         * dwarf2out.c: Remove deferred_locations*.
16298         (dwarf2_debug_hooks): Add early_finish hook.
16299         Remove global_decl hook.
16300         Add early_global_decl and late_global_decl hook.
16301         New global early_dwarf.
16302         New structure set_early_dwarf.
16303         (output_die): Indicate whether a DIE was generated early
16304         when generating assembly with -dA.
16305         (struct limbo_die_struct): Document created_for field.
16306         Remove file_table_last_lookup.
16307         (remove_AT): Return TRUE if successful.
16308         (remove_child_TAG): Clear die_parent.
16309         (reparent_child): New function abstracted from...
16310         (splice_child_die): ...here.
16311         (new_die): ICE if a DIE ends up in limbo too late.
16312         (check_die): New.
16313         (defer_location): Remove.
16314         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
16315         (fill_variable_array_bounds): New.
16316         (decl_start_label): Call fill_variable_array_bounds.
16317         (gen_formal_parameter_die): Rewrite to reuse previously generated
16318         DIEs.
16319         (gen_subprogram_die): Same.
16320         (gen_variable_die): Same.
16321         (gen_const_die): Same.
16322         (gen_label_die): Same.
16323         (gen_lexical_block_die): Same.
16324         (decl_will_get_specification_p): New.
16325         (local_function_static): New.
16326         (gen_struct_or_union_type_die): Fill in variable-length fields.
16327         (gen_typedef_die): Fill in variable-length typedefs.
16328         (gen_tagged_type_die): Gracefully return on error_mark_node.
16329         Handle re-entrancy.
16330         (gen_type_die_with_usage): Handle variable-length types.
16331         Remove duplicate code for ARRAY_TYPE case.
16332         (process_scope_var): Only process imported modules during early
16333         dwarf.
16334         (dwarf2out_early_global_decl): New.
16335         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
16336         (dwarf2out_type_decl): Set early_dwarf while calling
16337         dwarf2out_decl.
16338         (dwarf2out_decl): Verify that we did not recreate a previously
16339         generated DIE.
16340         Do not return on DECL_EXTERNALs in VAR_DECLs.
16341         Abstract some code to local_function_static.
16342         (lookup_filename): Remove use of file_table_last_lookup.
16343         Gracefully exit on missing file_name.
16344         (dwarf2out_finish): Verify limbo list.
16345         Remove deferred_locations_list use.
16346         Move deferred_asm_name and limbo flushing to...
16347         (dwarf2out_early_finish): ...here.  New.
16348         (dwarf2out_c_finalize): Remove set of deferred_location_list,
16349         deferred_asm_name, and file_table_last_lookup.
16350         * cgraph.h (referred_to_p): Add default argument.
16351         * cgraphunit.c (referred_to_p): Add and handle include_self
16352         argument.
16353         (analyze_functions): Add first_time argument.
16354         Call check_global_declaration for all symbols.
16355         Call late_global_decl for nodes for moribund nodes.
16356         (finalize_compilation_unit): Add new argument to
16357         analyze_functions.
16358         Call early_global_decl for functions.
16359         Call early_finish debug hook.
16360         * dbxout.c (dbxout_early_global_decl): New.
16361         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
16362         (dbx_debug_hooks): Add new hooks.
16363         (xcoff_debug_hooks): Same.
16364         * debug.c (do_nothing_debug_hooks): Add early_finish field.
16365         Add early and late debug hooks.
16366         Remove global_decl hook.
16367         * debug.h (struct gcc_debug_hooks): Add early_finish,
16368         early_global_decl, and late_global_decl fields.
16369         Remove global_decl field.
16370         Document gcc_debug_hooks.
16371         * gengtype.c (output_typename): Remove.
16372         * godump.c (go_early_global_decl): New.
16373         (go_late_global_decl): New.
16374         (go_global_decl): Remove.
16375         (dump_go_spec_init): Remove global_decl.  Add
16376         {early,late}_global_decl.
16377         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
16378         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
16379         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
16380         (write_global_declarations): Remove.
16381         (global_decl_processing): New.
16382         * langhooks.h (struct lang_hooks_for_decls): Remove
16383         final_write_globals field.
16384         Add post_compilation_parsing_cleanups field.
16385         * passes.c (rest_of_decl_compilation): Call early_global_decl.
16386         * sdbout.c: Add early and late_global_decl hooks.  Remove
16387         sdbout_global_decl hook.
16388         Add early_finish field for sdb_debug_hooks.
16389         (sdbout_global_decl): Remove.
16390         (sdbout_early_global_decl): New.
16391         (sdbout_late_global_decl): New.
16392         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
16393         * toplev.c (check_global_declaration): Rename from
16394         check_global_declaration_1.
16395         Adapt to use symtab infrastructure.
16396         (check_global_declarations): Remove.
16397         (emit_debug_global_declarations): Remove.
16398         (compile_file): Remove call to final_write_globals langhook.
16399         Run the actual compilation process.
16400         Perform any post compilation parser cleanups.
16401         Generate late debug info.
16402         * toplev.h (check_global_declaration): New.
16403         (check_global_declaration_1): Remove.
16404         (check_global_declarations): Remove.
16405         (write_global_declarations): Remove.
16406         (emit_debug_global_declarations): Remove.
16407         (global_decl_processing): New.
16408         * tree-core.h (struct tree_block): Add DIE field.
16409         * tree.h (BLOCK_DIE): New.
16410         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
16411         throughout.
16412         (vmsdbgout_early_global_decl): New.
16413         (vmsdbgout_late_global_decl): New.
16414         Add early_finish debug hook field to vmsdbg_debug_hooks.
16415         Remove vmsdbgout_decl to vmsdbgout_function_decl.
16416         Add early and late_global_decl debug hooks.
16418 2015-06-05  Julian Brown  <julian@codesourcery.com>
16419             Sandra Loosemore  <sandra@codesourcery.com>
16421         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
16422         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
16423         to print-sysroot-suffix.sh script.
16425 2015-06-05  Tom de Vries  <tom@codesourcery.com>
16427         merge from gomp4 branch:
16428         2015-05-28  Tom de Vries  <tom@codesourcery.com>
16430         PR tree-optimization/65443
16431         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
16432         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
16433         (try_transform_to_exit_first_loop_alt): New function.
16434         (transform_to_exit_first_loop): Use
16435         try_transform_to_exit_first_loop_alt.
16437 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
16439         * builtins.c (expand_builtin_atomic_compare_exchange): Call
16440         emit_cmp_and_jump_insns with the mode of target.
16442 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
16444         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
16446 2015-06-04  DJ Delorie  <dj@redhat.com>
16448         * config/msp430/msp430.md (movsi_s): New.  Special case for
16449         storing a 20-bit symbol into a 32-bit register.
16450         * config/msp430/msp430.c (msp430_subreg): Add support for it.
16451         * config/msp430/predicates.md (msp430_symbol_operand): New.
16453 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
16455         * c-family/c-common.c (noplt): New attribute.
16456         (handle_noplt_attribute): New handler.
16457         * calls.c (prepare_call_address): Check for noplt
16458         attribute.
16459         * config/i386/i386.c (ix86_expand_call): Check
16460         for noplt attribute.
16461         (ix86_nopic_noplt_attribute_p): New function.
16462         (ix86_output_call_insn): Output indirect call for non-pic
16463         no plt calls.
16464         * doc/extend.texi (noplt): Document new attribute.
16465         * doc/invoke.texi: Document new attribute.
16467 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
16469         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
16470         real.h, and fixed-value.h when included in host source files.
16471         * double-int.h: Remove redundant #includes listed above.
16472         * fixed-value.h: Likewise.
16473         * real.h: Likewise.
16474         * wide-int.h: Likewise.
16475         * inchash.h: Likewise.
16476         * rtl.h: Add some include files When included from a generator file.
16477         * target.h: Remove wide-int.h and insn-modes.h from the include list.
16478         * internal-fn.h: Don't include coretypes.h.
16479         * alias.c: Adjust includes for restructured coretypes.h.
16480         * asan.c: Likewise.
16481         * attribs.c: Likewise.
16482         * auto-inc-dec.c: Likewise.
16483         * auto-profile.c: Likewise.
16484         * bb-reorder.c: Likewise.
16485         * bt-load.c: Likewise.
16486         * builtins.c: Likewise.
16487         * caller-save.c: Likewise.
16488         * calls.c: Likewise.
16489         * ccmp.c: Likewise.
16490         * cfg.c: Likewise.
16491         * cfganal.c: Likewise.
16492         * cfgbuild.c: Likewise.
16493         * cfgcleanup.c: Likewise.
16494         * cfgexpand.c: Likewise.
16495         * cfghooks.c: Likewise.
16496         * cfgloop.c: Likewise.
16497         * cfgloop.h: Likewise.
16498         * cfgloopanal.c: Likewise.
16499         * cfgloopmanip.c: Likewise.
16500         * cfgrtl.c: Likewise.
16501         * cgraph.c: Likewise.
16502         * cgraphbuild.c: Likewise.
16503         * cgraphclones.c: Likewise.
16504         * cgraphunit.c: Likewise.
16505         * cilk-common.c: Likewise.
16506         * combine-stack-adj.c: Likewise.
16507         * combine.c: Likewise.
16508         * compare-elim.c: Likewise.
16509         * convert.c: Likewise.
16510         * coverage.c: Likewise.
16511         * cppbuiltin.c: Likewise.
16512         * cprop.c: Likewise.
16513         * cse.c: Likewise.
16514         * cselib.c: Likewise.
16515         * data-streamer-in.c: Likewise.
16516         * data-streamer-out.c: Likewise.
16517         * data-streamer.c: Likewise.
16518         * dbxout.c: Likewise.
16519         * dce.c: Likewise.
16520         * ddg.c: Likewise.
16521         * debug.c: Likewise.
16522         * df-core.c: Likewise.
16523         * df-problems.c: Likewise.
16524         * df-scan.c: Likewise.
16525         * df.h: Likewise.
16526         * dfp.c: Likewise.
16527         * dojump.c: Likewise.
16528         * dominance.c: Likewise.
16529         * domwalk.c: Likewise.
16530         * double-int.c: Likewise.
16531         * dse.c: Likewise.
16532         * dumpfile.c: Likewise.
16533         * dwarf2asm.c: Likewise.
16534         * dwarf2cfi.c: Likewise.
16535         * dwarf2out.c: Likewise.
16536         * dwarf2out.h: Likewise.
16537         * emit-rtl.c: Likewise.
16538         * et-forest.c: Likewise.
16539         * except.c: Likewise.
16540         * explow.c: Likewise.
16541         * expmed.c: Likewise.
16542         * expr.c: Likewise.
16543         * final.c: Likewise.
16544         * fixed-value.c: Likewise.
16545         * fold-const.c: Likewise.
16546         * function.c: Likewise.
16547         * fwprop.c: Likewise.
16548         * gcc-plugin.h: Likewise.
16549         * gcse.c: Likewise.
16550         * generic-match-head.c: Likewise.
16551         * ggc-page.c: Likewise.
16552         * gimple-builder.c: Likewise.
16553         * gimple-expr.c: Likewise.
16554         * gimple-fold.c: Likewise.
16555         * gimple-iterator.c: Likewise.
16556         * gimple-low.c: Likewise.
16557         * gimple-match-head.c: Likewise.
16558         * gimple-pretty-print.c: Likewise.
16559         * gimple-ssa-isolate-paths.c: Likewise.
16560         * gimple-ssa-strength-reduction.c: Likewise.
16561         * gimple-streamer-in.c: Likewise.
16562         * gimple-streamer-out.c: Likewise.
16563         * gimple-streamer.h: Likewise.
16564         * gimple-walk.c: Likewise.
16565         * gimple.c: Likewise.
16566         * gimplify-me.c: Likewise.
16567         * gimplify.c: Likewise.
16568         * godump.c: Likewise.
16569         * graph.c: Likewise.
16570         * graphite-blocking.c: Likewise.
16571         * graphite-dependences.c: Likewise.
16572         * graphite-interchange.c: Likewise.
16573         * graphite-isl-ast-to-gimple.c: Likewise.
16574         * graphite-optimize-isl.c: Likewise.
16575         * graphite-poly.c: Likewise.
16576         * graphite-scop-detection.c: Likewise.
16577         * graphite-sese-to-poly.c: Likewise.
16578         * graphite.c: Likewise.
16579         * haifa-sched.c: Likewise.
16580         * hooks.h: Likewise.
16581         * hw-doloop.c: Likewise.
16582         * ifcvt.c: Likewise.
16583         * incpath.c: Likewise.
16584         * init-regs.c: Likewise.
16585         * internal-fn.c: Likewise.
16586         * ipa-chkp.c: Likewise.
16587         * ipa-comdats.c: Likewise.
16588         * ipa-cp.c: Likewise.
16589         * ipa-devirt.c: Likewise.
16590         * ipa-icf-gimple.c: Likewise.
16591         * ipa-icf.c: Likewise.
16592         * ipa-inline-analysis.c: Likewise.
16593         * ipa-inline-transform.c: Likewise.
16594         * ipa-inline.c: Likewise.
16595         * ipa-polymorphic-call.c: Likewise.
16596         * ipa-profile.c: Likewise.
16597         * ipa-prop.c: Likewise.
16598         * ipa-pure-const.c: Likewise.
16599         * ipa-ref.c: Likewise.
16600         * ipa-reference.c: Likewise.
16601         * ipa-split.c: Likewise.
16602         * ipa-utils.c: Likewise.
16603         * ipa-visibility.c: Likewise.
16604         * ipa.c: Likewise.
16605         * ira-build.c: Likewise.
16606         * ira-color.c: Likewise.
16607         * ira-conflicts.c: Likewise.
16608         * ira-costs.c: Likewise.
16609         * ira-emit.c: Likewise.
16610         * ira-lives.c: Likewise.
16611         * ira.c: Likewise.
16612         * jump.c: Likewise.
16613         * langhooks.c: Likewise.
16614         * lcm.c: Likewise.
16615         * loop-doloop.c: Likewise.
16616         * loop-init.c: Likewise.
16617         * loop-invariant.c: Likewise.
16618         * loop-iv.c: Likewise.
16619         * loop-unroll.c: Likewise.
16620         * lower-subreg.c: Likewise.
16621         * lra-assigns.c: Likewise.
16622         * lra-coalesce.c: Likewise.
16623         * lra-constraints.c: Likewise.
16624         * lra-eliminations.c: Likewise.
16625         * lra-lives.c: Likewise.
16626         * lra-remat.c: Likewise.
16627         * lra-spills.c: Likewise.
16628         * lra.c: Likewise.
16629         * lto-cgraph.c: Likewise.
16630         * lto-compress.c: Likewise.
16631         * lto-opts.c: Likewise.
16632         * lto-section-in.c: Likewise.
16633         * lto-section-out.c: Likewise.
16634         * lto-streamer-in.c: Likewise.
16635         * lto-streamer-out.c: Likewise.
16636         * lto-streamer.c: Likewise.
16637         * mcf.c: Likewise.
16638         * mode-switching.c: Likewise.
16639         * modulo-sched.c: Likewise.
16640         * omega.c: Likewise.
16641         * omp-low.c: Likewise.
16642         * optabs.c: Likewise.
16643         * opts-global.c: Likewise.
16644         * passes.c: Likewise.
16645         * plugin.c: Likewise.
16646         * postreload-gcse.c: Likewise.
16647         * postreload.c: Likewise.
16648         * predict.c: Likewise.
16649         * print-rtl.c: Likewise.
16650         * print-tree.c: Likewise.
16651         * profile.c: Likewise.
16652         * real.c: Likewise.
16653         * realmpfr.c: Likewise.
16654         * realmpfr.h: Likewise.
16655         * recog.c: Likewise.
16656         * ree.c: Likewise.
16657         * reg-stack.c: Likewise.
16658         * regcprop.c: Likewise.
16659         * reginfo.c: Likewise.
16660         * regrename.c: Likewise.
16661         * regs.h: Likewise.
16662         * regstat.c: Likewise.
16663         * reload.c: Likewise.
16664         * reload1.c: Likewise.
16665         * reorg.c: Likewise.
16666         * resource.c: Likewise.
16667         * rtl-chkp.c: Likewise.
16668         * rtlanal.c: Likewise.
16669         * rtlhooks.c: Likewise.
16670         * sanopt.c: Likewise.
16671         * sched-deps.c: Likewise.
16672         * sched-ebb.c: Likewise.
16673         * sched-rgn.c: Likewise.
16674         * sched-vis.c: Likewise.
16675         * sdbout.c: Likewise.
16676         * sel-sched-dump.c: Likewise.
16677         * sel-sched-ir.c: Likewise.
16678         * sel-sched.c: Likewise.
16679         * sese.c: Likewise.
16680         * shrink-wrap.c: Likewise.
16681         * shrink-wrap.h: Likewise.
16682         * simplify-rtx.c: Likewise.
16683         * stack-ptr-mod.c: Likewise.
16684         * statistics.c: Likewise.
16685         * stmt.c: Likewise.
16686         * stor-layout.c: Likewise.
16687         * store-motion.c: Likewise.
16688         * stringpool.c: Likewise.
16689         * symtab.c: Likewise.
16690         * target-globals.c: Likewise.
16691         * targhooks.c: Likewise.
16692         * toplev.c: Likewise.
16693         * tracer.c: Likewise.
16694         * trans-mem.c: Likewise.
16695         * tree-affine.c: Likewise.
16696         * tree-affine.h: Likewise.
16697         * tree-browser.c: Likewise.
16698         * tree-call-cdce.c: Likewise.
16699         * tree-cfg.c: Likewise.
16700         * tree-cfgcleanup.c: Likewise.
16701         * tree-chkp-opt.c: Likewise.
16702         * tree-chkp.c: Likewise.
16703         * tree-chrec.c: Likewise.
16704         * tree-complex.c: Likewise.
16705         * tree-data-ref.c: Likewise.
16706         * tree-dfa.c: Likewise.
16707         * tree-diagnostic.c: Likewise.
16708         * tree-dump.c: Likewise.
16709         * tree-eh.c: Likewise.
16710         * tree-emutls.c: Likewise.
16711         * tree-if-conv.c: Likewise.
16712         * tree-inline.c: Likewise.
16713         * tree-into-ssa.c: Likewise.
16714         * tree-iterator.c: Likewise.
16715         * tree-loop-distribution.c: Likewise.
16716         * tree-nested.c: Likewise.
16717         * tree-nrv.c: Likewise.
16718         * tree-object-size.c: Likewise.
16719         * tree-outof-ssa.c: Likewise.
16720         * tree-parloops.c: Likewise.
16721         * tree-phinodes.c: Likewise.
16722         * tree-predcom.c: Likewise.
16723         * tree-pretty-print.c: Likewise.
16724         * tree-pretty-print.h: Likewise.
16725         * tree-profile.c: Likewise.
16726         * tree-scalar-evolution.c: Likewise.
16727         * tree-sra.c: Likewise.
16728         * tree-ssa-address.c: Likewise.
16729         * tree-ssa-alias.c: Likewise.
16730         * tree-ssa-ccp.c: Likewise.
16731         * tree-ssa-coalesce.c: Likewise.
16732         * tree-ssa-copy.c: Likewise.
16733         * tree-ssa-copyrename.c: Likewise.
16734         * tree-ssa-dce.c: Likewise.
16735         * tree-ssa-dom.c: Likewise.
16736         * tree-ssa-dse.c: Likewise.
16737         * tree-ssa-forwprop.c: Likewise.
16738         * tree-ssa-ifcombine.c: Likewise.
16739         * tree-ssa-live.c: Likewise.
16740         * tree-ssa-loop-ch.c: Likewise.
16741         * tree-ssa-loop-im.c: Likewise.
16742         * tree-ssa-loop-ivcanon.c: Likewise.
16743         * tree-ssa-loop-ivopts.c: Likewise.
16744         * tree-ssa-loop-manip.c: Likewise.
16745         * tree-ssa-loop-niter.c: Likewise.
16746         * tree-ssa-loop-prefetch.c: Likewise.
16747         * tree-ssa-loop-unswitch.c: Likewise.
16748         * tree-ssa-loop.c: Likewise.
16749         * tree-ssa-loop.h: Likewise.
16750         * tree-ssa-math-opts.c: Likewise.
16751         * tree-ssa-operands.c: Likewise.
16752         * tree-ssa-phiopt.c: Likewise.
16753         * tree-ssa-phiprop.c: Likewise.
16754         * tree-ssa-pre.c: Likewise.
16755         * tree-ssa-propagate.c: Likewise.
16756         * tree-ssa-reassoc.c: Likewise.
16757         * tree-ssa-sccvn.c: Likewise.
16758         * tree-ssa-scopedtables.c: Likewise.
16759         * tree-ssa-sink.c: Likewise.
16760         * tree-ssa-strlen.c: Likewise.
16761         * tree-ssa-structalias.c: Likewise.
16762         * tree-ssa-tail-merge.c: Likewise.
16763         * tree-ssa-ter.c: Likewise.
16764         * tree-ssa-threadedge.c: Likewise.
16765         * tree-ssa-threadupdate.c: Likewise.
16766         * tree-ssa-uncprop.c: Likewise.
16767         * tree-ssa-uninit.c: Likewise.
16768         * tree-ssa.c: Likewise.
16769         * tree-ssanames.c: Likewise.
16770         * tree-stdarg.c: Likewise.
16771         * tree-streamer-in.c: Likewise.
16772         * tree-streamer-out.c: Likewise.
16773         * tree-streamer.c: Likewise.
16774         * tree-switch-conversion.c: Likewise.
16775         * tree-tailcall.c: Likewise.
16776         * tree-vect-data-refs.c: Likewise.
16777         * tree-vect-generic.c: Likewise.
16778         * tree-vect-loop-manip.c: Likewise.
16779         * tree-vect-loop.c: Likewise.
16780         * tree-vect-patterns.c: Likewise.
16781         * tree-vect-slp.c: Likewise.
16782         * tree-vect-stmts.c: Likewise.
16783         * tree-vectorizer.c: Likewise.
16784         * tree-vrp.c: Likewise.
16785         * tree.c: Likewise.
16786         * tsan.c: Likewise.
16787         * ubsan.c: Likewise.
16788         * valtrack.c: Likewise.
16789         * value-prof.c: Likewise.
16790         * var-tracking.c: Likewise.
16791         * varasm.c: Likewise.
16792         * varpool.c: Likewise.
16793         * vmsdbgout.c: Likewise.
16794         * vtable-verify.c: Likewise.
16795         * web.c: Likewise.
16796         * wide-int-print.cc: Likewise.
16797         * wide-int-print.h: Likewise.
16798         * wide-int.cc: Likewise.
16799         * xcoffout.c: Likewise.
16800         * config/aarch64/aarch64-builtins.c: Likewise.
16801         * config/aarch64/aarch64.c: Likewise.
16802         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16803         * config/alpha/alpha.c: Likewise.
16804         * config/arc/arc.c: Likewise.
16805         * config/arm/aarch-common.c: Likewise.
16806         * config/arm/arm-builtins.c: Likewise.
16807         * config/arm/arm-c.c: Likewise.
16808         * config/arm/arm.c: Likewise.
16809         * config/avr/avr-c.c: Likewise.
16810         * config/avr/avr-log.c: Likewise.
16811         * config/avr/avr.c: Likewise.
16812         * config/bfin/bfin.c: Likewise.
16813         * config/c6x/c6x.c: Likewise.
16814         * config/cr16/cr16.c: Likewise.
16815         * config/cris/cris.c: Likewise.
16816         * config/darwin-c.c: Likewise.
16817         * config/darwin.c: Likewise.
16818         * config/default-c.c: Likewise.
16819         * config/epiphany/epiphany.c: Likewise.
16820         * config/epiphany/mode-switch-use.c: Likewise.
16821         * config/epiphany/resolve-sw-modes.c: Likewise.
16822         * config/fr30/fr30.c: Likewise.
16823         * config/frv/frv.c: Likewise.
16824         * config/ft32/ft32.c: Likewise.
16825         * config/glibc-c.c: Likewise.
16826         * config/h8300/h8300.c: Likewise.
16827         * config/i386/i386-c.c: Likewise.
16828         * config/i386/i386.c: Likewise.
16829         * config/i386/msformat-c.c: Likewise.
16830         * config/i386/winnt-cxx.c: Likewise.
16831         * config/i386/winnt-stubs.c: Likewise.
16832         * config/i386/winnt.c: Likewise.
16833         * config/ia64/ia64-c.c: Likewise.
16834         * config/ia64/ia64.c: Likewise.
16835         * config/iq2000/iq2000.c: Likewise.
16836         * config/lm32/lm32.c: Likewise.
16837         * config/m32c/m32c-pragma.c: Likewise.
16838         * config/m32c/m32c.c: Likewise.
16839         * config/m32r/m32r.c: Likewise.
16840         * config/m68k/m68k.c: Likewise.
16841         * config/mcore/mcore.c: Likewise.
16842         * config/mep/mep-pragma.c: Likewise.
16843         * config/mep/mep.c: Likewise.
16844         * config/microblaze/microblaze-c.c: Likewise.
16845         * config/microblaze/microblaze.c: Likewise.
16846         * config/mips/mips.c: Likewise.
16847         * config/mmix/mmix.c: Likewise.
16848         * config/mn10300/mn10300.c: Likewise.
16849         * config/moxie/moxie.c: Likewise.
16850         * config/msp430/msp430-c.c: Likewise.
16851         * config/msp430/msp430.c: Likewise.
16852         * config/nds32/nds32-cost.c: Likewise.
16853         * config/nds32/nds32-fp-as-gp.c: Likewise.
16854         * config/nds32/nds32-intrinsic.c: Likewise.
16855         * config/nds32/nds32-isr.c: Likewise.
16856         * config/nds32/nds32-md-auxiliary.c: Likewise.
16857         * config/nds32/nds32-memory-manipulation.c: Likewise.
16858         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16859         * config/nds32/nds32-predicates.c: Likewise.
16860         * config/nds32/nds32.c: Likewise.
16861         * config/nios2/nios2.c: Likewise.
16862         * config/nvptx/nvptx.c: Likewise.
16863         * config/pa/pa.c: Likewise.
16864         * config/pdp11/pdp11.c: Likewise.
16865         * config/rl78/rl78-c.c: Likewise.
16866         * config/rl78/rl78.c: Likewise.
16867         * config/rs6000/rs6000-c.c: Likewise.
16868         * config/rs6000/rs6000.c: Likewise.
16869         * config/rx/rx.c: Likewise.
16870         * config/s390/s390-c.c: Likewise.
16871         * config/s390/s390.c: Likewise.
16872         * config/sh/sh-c.c: Likewise.
16873         * config/sh/sh-mem.cc: Likewise.
16874         * config/sh/sh.c: Likewise.
16875         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16876         * config/sh/sh_treg_combine.cc: Likewise.
16877         * config/sol2-c.c: Likewise.
16878         * config/sol2-cxx.c: Likewise.
16879         * config/sol2-stubs.c: Likewise.
16880         * config/sol2.c: Likewise.
16881         * config/sparc/sparc-c.c: Likewise.
16882         * config/sparc/sparc.c: Likewise.
16883         * config/spu/spu-c.c: Likewise.
16884         * config/spu/spu.c: Likewise.
16885         * config/stormy16/stormy16.c: Likewise.
16886         * config/tilegx/mul-tables.c: Likewise.
16887         * config/tilegx/tilegx-c.c: Likewise.
16888         * config/tilegx/tilegx.c: Likewise.
16889         * config/tilepro/mul-tables.c: Likewise.
16890         * config/tilepro/tilepro-c.c: Likewise.
16891         * config/tilepro/tilepro.c: Likewise.
16892         * config/v850/v850-c.c: Likewise.
16893         * config/v850/v850.c: Likewise.
16894         * config/vax/vax.c: Likewise.
16895         * config/visium/visium.c: Likewise.
16896         * config/vms/vms-c.c: Likewise.
16897         * config/vms/vms.c: Likewise.
16898         * config/vxworks.c: Likewise.
16899         * config/winnt-c.c: Likewise.
16900         * config/xtensa/xtensa.c: Likewise.
16901         * common/config/bfin/bfin-common.c: Likewise.
16903 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
16905         * tree.h (tree_code_for_canonical_type_merging): New function.
16906         * tree.c (gimple_canonical_types_compatible_p): Use
16907         tree_code_for_canonical_type_merging..
16909 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16911         PR c++/66192
16912         PR target/66200
16913         * doc/tm.texi: Regenerate.
16914         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
16915         * target.def (TARGET_RELAXED_ORDERING): Likewise.
16916         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
16917         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
16918         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
16919         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
16920         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
16921         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
16922         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
16924 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16926         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
16927         register fma steering pass.
16928         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
16929         AARCH64_TUNE_FMA_STEERING.
16931 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
16933         * tree.c (verify_type_variant): Verify that type and variant is
16934         compatible.
16935         (gimple_canonical_types_compatible_p): Look for main variants.
16937 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
16939         * config.gcc (powerpc*-*-*): Add support for a new configure
16940         option --with-advance-toolchain=<xxx> which overrides using the
16941         default header files, libraries and dynamic linker.
16943         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
16944         specs to support the configure --with-advance-toolchain=<xxx>
16945         option.
16946         (INCLUDE_EXTRA_SPEC): Likewise.
16947         (LINK_OS_EXTRA_SPEC32): Likewise.
16948         (LINK_OK_EXTRA_SPEC64): Likewise.
16949         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
16950         (DYNAMIC_LINKER_PREFIX): Likewise.
16951         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
16952         toolchain support.
16953         (GLIBC_DYNAMIC_LINKER32): Likewise.
16954         (GLIBC_DYNAMIC_LINKER64): Likewise.
16955         (LINK_OS_LINUX_SPEC32): Likewise.
16956         (LINK_OS_LINUX_SPEC64): Likewise.
16958         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
16959         configuration option.
16961 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
16963         PR target/66275
16964         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
16965         to determine current function ABI.
16966         (ix86_function_value_regno_p): Ditto.
16968 2015-06-03  Martin Liska  <mliska@suse.cz>
16970         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
16971         * bitmap.h (struct bitmap_usage): Likewise.
16972         * ggc-common.c (struct ggc_usage): Likewise.
16973         * mem-stats.h (struct mem_location): Likewise.
16974         (struct mem_usage): Likewise.
16975         * vec.c (struct vec_usage): Likewise.
16977 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
16979         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
16980         -Bsymbolic.
16982 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
16984         * doc/plugins.texi (enum plugin_event): New event.
16985         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
16986         and PLUGIN_FINISH_FUNCTION.
16987         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
16988         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
16990 2015-06-03  Richard Biener  <rguenther@suse.de>
16992         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
16993         compute GROUP_GAP for the first element.
16994         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
16995         on in-group gaps.
16997 2015-06-03  Nick Clifton  <nickc@redhat.com>
16999         * config/rl78/rl78-real.md: Add peepholes to avoid a register
17000         copy when calling a function.
17001         * config/rl78/rl78.c (need_to_save): Do not push the frame
17002         pointer in an interrupt handler prologue if it is never used.
17004 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17006         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
17008 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
17010         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
17011         reference when cloning alias node.
17013 2015-06-03  Martin Liska  <mliska@suse.cz>
17015         * alloc-pool.h (struct pool_usage): Correct space padding.
17016         * ggc-page.c (ggc_print_statistics): Align columns in a report.
17017         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
17018         * tree.c (dump_tree_statistics): Align columns in a report.
17020 2015-06-03  Martin Liska  <mliska@suse.cz>
17022         * alloc-pool.c (allocate_pool_descriptor): Remove.
17023         (struct pool_output_info): Likewise.
17024         (print_alloc_pool_statistics): Likewise.
17025         (dump_alloc_pool_statistics): Likewise.
17026         * alloc-pool.h (struct pool_usage): New struct.
17027         (pool_allocator::initialize): Change usage of memory statistics
17028         to a new interface.
17029         (pool_allocator::release): Likewise.
17030         (pool_allocator::allocate): Likewise.
17031         (pool_allocator::remove): Likewise.
17032         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
17033         for a pool allocator.
17034         * mem-stats.h (struct mem_location): Add new ctor.
17035         (struct mem_usage): Add counter for number of
17036         instances.
17037         (mem_alloc_description::register_descriptor): New overload of
17038         * mem-stats.h (mem_location::to_string): New function.
17039         * bitmap.h (struct bitmap_usage): Use this new function.
17040         * ggc-common.c (struct ggc_usage): Likewise.
17041         the function.
17043 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
17045         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
17046         of GCC_INSN_FLAGS_H block.
17048 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
17050         * explow.c (plus_constant): Update check after force_const_mem call
17051         to see if the value returned is not a NULL_RTX.
17053 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
17055         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
17056         remove instumentation thunks calling reachable functions.
17057         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
17058         * lto/lto-partition.c (privatize_symbol_name_1): New.
17059         (privatize_symbol_name): Privatize both decl and orig_decl
17060         names for instrumented functions.
17061         * cgraph.c (cgraph_node::verify_node): Add transparent
17062         alias chain check for instrumented node.
17064 2015-06-03  Marek Polacek  <polacek@redhat.com>
17066         PR c/64223
17067         PR c/29358
17068         * tree.c (attribute_value_equal): Handle attribute format.
17069         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
17071 2015-06-03  Richard Biener  <rguenther@suse.de>
17073         PR tree-optimization/63916
17074         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17075         Forward-propagate non-invariant addresses by splicing their
17076         reference ops if the result isn't going to be used by PRE.
17077         (vn_reference_lookup_3): Remove pointless assert.
17079 2015-06-03  Richard Biener  <rguenther@suse.de>
17081         PR tree-optimization/66375
17082         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
17083         add to the evolution before following SSA edges.
17085 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
17087         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
17088         (dump_use, dump_cand, find_induction_variables): Pass new argument
17089         to dump_iv.
17090         (record_use): Preserve the ssa name information in IV.
17092 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
17094         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
17095         NO_MODE_TEST.
17096         (add_mode_tests): Don't add mode tests if the predicate only
17097         accepts scalar constant integers.  Otherwise, allow the mode
17098         of "op" to be VOIDmode if the predicate does accept such integers.
17100 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
17102         PR target/66258
17103         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
17104         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
17105         (aarch64_secondary_reload): Likewise
17106         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
17107         to !TARGET_FLOAT.
17108         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
17109         Likewise.
17111 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
17112             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
17114         PR target/65768
17115         * cprop.c (try_replace_reg): Check cost of constants before propagating.
17117 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
17119         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
17120         provide access to the IBM extended double floating point mode if
17121         long double is IEEE 128-bit floating point.
17122         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
17123         point if long double is the IBM extended double type.
17125         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
17126         enable adding IEEE 128-bit floating point support.
17127         (-mfloat128-software): Likewise.
17128         (-mfloat128-sw): Likewise.
17130         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
17131         128-bit floating point types to occupy any register if
17132         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
17133         -mfloat128-software is enabled.
17134         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
17135         support.
17136         (rs6000_option_override_internal): Add -mfloat128-* support.
17137         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
17139         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
17140         and float128 type nodes.
17141         (ieee128_float_type_node): Likewise.
17142         (ibm128_float_type_node): Likewise.
17144 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17146         PR target/66136
17147         * config/aarch64/geniterators.sh: Rewrite in awk.
17149 2015-06-02  Martin Liska  <mliska@suse.cz>
17151         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
17152         values to avoid -Wmaybe-uninitialized errors.
17154 2015-06-02  Richard Biener  <rguenther@suse.de>
17156         PR debug/65549
17157         * dwarf2out.c (lookup_context_die): New function.
17158         (resolve_addr): Avoid forcing a full DIE for the
17159         target of a DW_TAG_GNU_call_site during late compilation.
17160         Instead create a stub DIE without a type if we have a
17161         context DIE present.
17163 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
17165         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
17167 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
17169         PR tree-optimization/48052
17170         * cfgloop.h (struct control_iv): New.
17171         (struct loop): New field control_ivs.
17172         * tree-ssa-loop-niter.c : Include "stor-layout.h".
17173         (number_of_iterations_lt): Set no_overflow information.
17174         (number_of_iterations_exit): Init control iv in niter struct.
17175         (record_control_iv): New.
17176         (estimate_numbers_of_iterations_loop): Call record_control_iv.
17177         (loop_exits_before_overflow): New.  Interface factored out of
17178         scev_probably_wraps_p.
17179         (scev_probably_wraps_p): Factor loop niter related code into
17180         loop_exits_before_overflow.
17181         (free_numbers_of_iterations_estimates_loop): Free control ivs.
17182         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
17184 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
17186         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
17187         the target doesn't belong to the current function.
17189 2015-06-02  Marek Polacek  <polacek@redhat.com>
17191         PR middle-end/66345
17192         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
17193         get_maxval_strlen does not produce an INTEGER_CST.
17195 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
17197         * config/arc/constraints.md: Use lower-case names in match_code.
17198         * config/mmix/constraints.md: Likewise.
17200 2015-06-02  Richard Biener  <rguenther@suse.de>
17202         PR tree-optimization/65961
17203         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
17204         check and clarify dump message.
17205         (vect_build_slp_tree): If all children are built up from scalars
17206         build up the parent from scalars instead.
17207         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
17209 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
17211         PR other/65366
17212         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
17213         instead of print ... .
17215 2015-06-02  Alan Modra  <amodra@gmail.com>
17217         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
17218         2014-08-11 change.
17220 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
17222         PR tree-optimization/52563
17223         PR tree-optimization/62173
17224         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
17225         (alloc_iv, set_iv): New parameter.
17226         (determine_biv_step): Delete.
17227         (find_bivs): Inline original determine_biv_step.  Pass new
17228         argument to set_iv.
17229         (idx_find_step): Use no_overflow information for conversion.
17230         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
17231         resolve_mixers handle folded_casts.
17232         (instantiate_scev_name): Change bool parameter to bool pointer.
17233         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
17234         (instantiate_array_ref, instantiate_scev_not): Ditto.
17235         (instantiate_scev_3, instantiate_scev_2): Ditto.
17236         (instantiate_scev_1, instantiate_scev_r): Ditto.
17237         (instantiate_scev_convert, ): Change parameter.  Pass argument
17238         to chrec_convert_aggressive.
17239         (instantiate_scev): Change argument.
17240         (resolve_mixers): New parameter and set it.
17241         (scev_const_prop): New argument.
17242         * tree-scalar-evolution.h (resolve_mixers): New parameter.
17243         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
17244         of chrec_conert_1.
17245         (chrec_convert): New parameter.  Move definition below.
17246         (chrec_convert_aggressive): New parameter and set it.  Call
17247         convert_affine_scev.
17248         * tree-chrec.h (chrec_convert): New parameter.
17249         (chrec_convert_aggressive): Ditto.
17251 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
17253         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
17254         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
17255         the LHS of a no-return call if its type has variable size.
17256         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
17257         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
17259 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
17261         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
17262         * config.in: Regenerate.
17264 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
17266         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
17267         consecutive accesses within outer-loop with force_vectorize
17268         for references with zero step in inner-loop.
17270 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
17272         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
17273         rather than from gcc/build directory.
17275 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
17277         PR target/65697
17278         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
17279         for __sync memory models, emit initial loads and final barriers as
17280         appropriate.
17282 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
17284         PR target/65697
17285         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
17286         (aarch64_split_atomic_op): Check for __sync memory models, emit
17287         appropriate initial loads and final barriers.
17289 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
17291         * Makefile.in: Fix gcov dependencies that should
17292         not point to a build folder.
17294 2015-06-01  Richard Biener  <rguenther@suse.de>
17296         Revert
17297         2015-05-29  Richard Biener  <rguenther@suse.de>
17299         PR tree-optimization/66314
17300         * tree-ssa-threadupdate.c (create_block_for_threading): Add
17301         parameter that says which loop the new block belongs to.
17302         (ssa_create_duplicates): Blocks duplicated for the threaded
17303         path belong to the loop of the thread destination.
17305 2015-06-01  Martin Liska  <mliska@suse.cz>
17307         * sched-deps.c: Include pool-alloc.h before
17308         cselib.h header file is included.
17310 2015-06-01  Richard Biener  <rguenther@suse.de>
17312         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
17313         functions.
17315 2015-06-01  Martin Liska  <mliska@suse.cz>
17317         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
17318         a function local variable.
17320 2015-06-01  Martin Liska  <mliska@suse.cz>
17322         * alloc-pool.c (create_alloc_pool): Remove.
17323         (empty_alloc_pool): Likewise.
17324         (free_alloc_pool): Likewise.
17325         (free_alloc_pool_if_empty): Likewise.
17326         (pool_alloc): Likewise.
17327         (pool_free): Likewise.
17328         * alloc-pool.h: Remove old declarations.
17330 2015-06-01  Martin Liska  <mliska@suse.cz>
17332         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
17333         (ira_create_object): Likewise.
17334         (ira_create_allocno): Likewise.
17335         (ira_create_live_range): Likewise.
17336         (copy_live_range): Likewise.
17337         (ira_finish_live_range): Likewise.
17338         (ira_free_allocno_costs): Likewise.
17339         (finish_allocno): Likewise.
17340         (finish_allocnos): Likewise.
17341         (initiate_prefs): Likewise.
17342         (ira_create_pref): Likewise.
17343         (finish_pref): Likewise.
17344         (finish_prefs): Likewise.
17345         (initiate_copies): Likewise.
17346         (ira_create_copy): Likewise.
17347         (finish_copy): Likewise.
17348         (finish_copies): Likewise.
17349         (finish_prefs): Likewise.
17351 2015-06-01  Martin Liska  <mliska@suse.cz>
17353         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
17354         (allocate_and_init_ipcp_value): Likewise.
17355         (ipcp_lattice::add_value): Likewise.
17356         (merge_agg_lats_step): Likewise.
17357         (ipcp_driver): Likewise.
17358         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
17359         (ipa_free_all_structures_after_iinln): Likewise.
17360         * ipa-prop.h: Likewise.
17362 2015-06-01  Martin Liska  <mliska@suse.cz>
17364         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
17365         pool allocator.
17366         (set_hint_predicate): Likewise.
17367         (inline_summary_alloc): Likewise.
17368         (reset_inline_edge_summary): Likewise.
17369         (reset_inline_summary): Likewise.
17370         (set_cond_stmt_execution_predicate): Likewise.
17371         (set_switch_stmt_execution_predicate): Likewise.
17372         (compute_bb_predicates): Likewise.
17373         (estimate_function_body_sizes): Likewise.
17374         (inline_free_summary): Likewise.
17376 2015-06-01  Martin Liska  <mliska@suse.cz>
17378         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
17379         (ipa_edge_duplication_hook): Likewise.
17380         (ipa_free_all_structures_after_ipa_cp): Likewise.
17381         (ipa_free_all_structures_after_iinln): Likewise.
17383 2015-06-01  Martin Liska  <mliska@suse.cz>
17385         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
17386         (ipa_profile_generate_summary): Likewise.
17387         (ipa_profile_read_summary): Likewise.
17388         (ipa_profile): Likewise.
17390 2015-06-01  Martin Liska  <mliska@suse.cz>
17392         * tree-ssa-structalias.c (new_var_info): Use new type-based
17393         pool allocator.
17394         (new_constraint): Likewise.
17395         (init_alias_vars): Likewise.
17396         (delete_points_to_sets): Likewise.
17398 2015-06-01  Martin Liska  <mliska@suse.cz>
17400         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
17401         (free_strinfo): Likewise.
17402         (pass_strlen::execute): Likewise.
17404 2015-06-01  Martin Liska  <mliska@suse.cz>
17406         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
17407         pool allocator.
17408         (vn_reference_insert_pieces): Likewise.
17409         (vn_phi_insert): Likewise.
17410         (visit_reference_op_call): Likewise.
17411         (copy_phi): Likewise.
17412         (copy_reference): Likewise.
17413         (process_scc): Likewise.
17414         (allocate_vn_table): Likewise.
17415         (free_vn_table): Likewise.
17417 2015-06-01  Martin Liska  <mliska@suse.cz>
17419         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
17420         pool allocator.
17421         (add_repeat_to_ops_vec): Likewise.
17422         (get_ops): Likewise.
17423         (maybe_optimize_range_tests): Likewise.
17424         (init_reassoc): Likewise.
17425         (fini_reassoc): Likewise.
17427 2015-06-01  Martin Liska  <mliska@suse.cz>
17429         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
17430         pool allocator.
17431         (bitmap_set_new): Likewise.
17432         (get_or_alloc_expr_for_constant): Likewise.
17433         (get_or_alloc_expr_for): Likewise.
17434         (phi_translate_1): Likewise.
17435         (compute_avail): Likewise.
17436         (init_pre): Likewise.
17437         (fini_pre): Likewise.
17439 2015-06-01  Martin Liska  <mliska@suse.cz>
17441         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
17442         (delete_dep_node): Likewise.
17443         (create_deps_list): Likewise.
17444         (free_deps_list): Likewise.
17445         (sched_deps_init): Likewise.
17446         (sched_deps_finish): Likewise.
17448 2015-06-01  Martin Liska  <mliska@suse.cz>
17450         * regcprop.c (free_debug_insn_changes): Use new type-based
17451         pool allocator.
17452         (replace_oldest_value_reg): Likewise.
17453         (pass_cprop_hardreg::execute): Likewise.
17455 2015-06-01  Martin Liska  <mliska@suse.cz>
17457         * ira-build.c (initiate_cost_vectors): Use new type-based
17458         pool allocator.
17459         (ira_allocate_cost_vector): Likewise.
17460         (ira_free_cost_vector): Likewise.
17461         (finish_cost_vectors): Likewise.
17463 2015-06-01  Martin Liska  <mliska@suse.cz>
17465         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
17466         pool allocator.
17467         (free_sched_pools): Likewise.
17468         * sel-sched-ir.h (_list_alloc): Likewise.
17469         (_list_remove): Likewise.
17471 2015-06-01  Martin Liska  <mliska@suse.cz>
17473         * stmt.c (add_case_node): Use new type-based pool allocator.
17474         (expand_case): Likewise.
17475         (expand_sjlj_dispatch_table): Likewise.
17477 2015-06-01  Martin Liska  <mliska@suse.cz>
17479         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
17480         (free_bb): Likewise.
17481         (pass_cse_reciprocals::execute): Likewise.
17483 2015-06-01  Martin Liska  <mliska@suse.cz>
17485         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
17486         (sra_deinitialize) Likewise.
17487         (create_access_1) Likewise.
17488         (build_accesses_from_assign) Likewise.
17489         (create_artificial_child_access) Likewise.
17491 2015-06-01  Martin Liska  <mliska@suse.cz>
17493         * dse.c (get_group_info):Use new type-based pool allocator.
17494         (dse_step0) Likewise.
17495         (free_store_info) Likewise.
17496         (delete_dead_store_insn) Likewise.
17497         (free_read_records) Likewise.
17498         (record_store) Likewise.
17499         (replace_read) Likewise.
17500         (check_mem_read_rtx) Likewise.
17501         (scan_insn) Likewise.
17502         (dse_step1) Likewise.
17503         (dse_step7) Likewise.
17505 2015-06-01  Martin Liska  <mliska@suse.cz>
17507         * df-scan.c (struct df_scan_problem_data):Use new type-based
17508         pool allocator.
17509         (df_scan_free_internal) Likewise.
17510         (df_scan_alloc) Likewise.
17511         (df_grow_reg_info) Likewise.
17512         (df_free_ref) Likewise.
17513         (df_insn_create_insn_record) Likewise.
17514         (df_mw_hardreg_chain_delete) Likewise.
17515         (df_insn_info_delete) Likewise.
17516         (df_free_collection_rec) Likewise.
17517         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
17518         (df_sort_and_compress_mws) Likewise.
17519         (df_ref_create_structure) Likewise.
17520         (df_ref_record) Likewise.
17522 2015-06-01  Martin Liska  <mliska@suse.cz>
17524         * df-problems.c (df_chain_create):Use new type-based pool allocator.
17525         (df_chain_unlink_1) Likewise.
17526         (df_chain_unlink) Likewise.
17527         (df_chain_remove_problem) Likewise.
17528         (df_chain_alloc) Likewise.
17529         (df_chain_free) Likewise.
17530         * df.h (struct dataflow) Likewise.
17532 2015-06-01  Martin Liska  <mliska@suse.cz>
17534         * cselib.c (new_elt_list):Use new type-based pool allocator.
17535         (new_elt_loc_list) Likewise.
17536         (unchain_one_elt_list) Likewise.
17537         (unchain_one_elt_loc_list) Likewise.
17538         (unchain_one_value) Likewise.
17539         (new_cselib_val) Likewise.
17540         (cselib_init) Likewise.
17541         (cselib_finish) Likewise.
17543 2015-06-01  Martin Liska  <mliska@suse.cz>
17545         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
17546         (sh_reorg) Likewise.
17548 2015-06-01  Martin Liska  <mliska@suse.cz>
17550         * cfg.c (initialize_original_copy_tables):Use new type-based
17551         pool allocator.
17552         (free_original_copy_tables) Likewise.
17553         (copy_original_table_clear) Likewise.
17554         (copy_original_table_set) Likewise.
17556 2015-06-01  Martin Liska  <mliska@suse.cz>
17558         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
17559         pool allocator.
17560         (asan_mem_ref_new) Likewise.
17561         (free_mem_ref_resources) Likewise.
17563 2015-06-01  Martin Liska  <mliska@suse.cz>
17565         * var-tracking.c (variable_htab_free):Use new type-based
17566         pool allocator.
17567         (attrs_list_clear) Likewise.
17568         (attrs_list_insert) Likewise.
17569         (attrs_list_copy) Likewise.
17570         (shared_hash_unshare) Likewise.
17571         (shared_hash_destroy) Likewise.
17572         (unshare_variable) Likewise.
17573         (var_reg_delete_and_set) Likewise.
17574         (var_reg_delete) Likewise.
17575         (var_regno_delete) Likewise.
17576         (drop_overlapping_mem_locs) Likewise.
17577         (variable_union) Likewise.
17578         (insert_into_intersection) Likewise.
17579         (canonicalize_values_star) Likewise.
17580         (variable_merge_over_cur) Likewise.
17581         (dataflow_set_merge) Likewise.
17582         (remove_duplicate_values) Likewise.
17583         (variable_post_merge_new_vals) Likewise.
17584         (dataflow_set_preserve_mem_locs) Likewise.
17585         (dataflow_set_remove_mem_locs) Likewise.
17586         (variable_from_dropped) Likewise.
17587         (variable_was_changed) Likewise.
17588         (set_slot_part) Likewise.
17589         (clobber_slot_part) Likewise.
17590         (delete_slot_part) Likewise.
17591         (loc_exp_insert_dep) Likewise.
17592         (notify_dependents_of_changed_value) Likewise.
17593         (emit_notes_for_differences_1) Likewise.
17594         (vt_emit_notes) Likewise.
17595         (vt_initialize) Likewise.
17596         (vt_finalize) Likewise.
17598 2015-06-01  Martin Liska  <mliska@suse.cz>
17600         * ira-color.c (init_update_cost_records):Use new type-based
17601         pool allocator.
17602         (get_update_cost_record) Likewise.
17603         (free_update_cost_record_list) Likewise.
17604         (finish_update_cost_records) Likewise.
17605         (initiate_cost_update) Likewise.
17607 2015-06-01  Martin Liska  <mliska@suse.cz>
17609         * lra.c (init_insn_regs): Use new type-based pool allocator.
17610         (new_insn_reg) Likewise.
17611         (free_insn_reg) Likewise.
17612         (free_insn_regs) Likewise.
17613         (finish_insn_regs) Likewise.
17614         (init_insn_recog_data) Likewise.
17615         (init_reg_info) Likewise.
17616         (finish_reg_info) Likewise.
17617         (lra_free_copies) Likewise.
17618         (lra_create_copy) Likewise.
17619         (invalidate_insn_data_regno_info) Likewise.
17621 2015-06-01  Martin Liska  <mliska@suse.cz>
17623         * lra-lives.c (free_live_range): Use new type-based pool allocator.
17624         (free_live_range_list) Likewise.
17625         (create_live_range) Likewise.
17626         (copy_live_range) Likewise.
17627         (lra_merge_live_ranges) Likewise.
17628         (remove_some_program_points_and_update_live_ranges) Likewise.
17629         (lra_live_ranges_init) Likewise.
17630         (lra_live_ranges_finish) Likewise.
17632 2015-06-01  Martin Liska  <mliska@suse.cz>
17634         * et-forest.c (et_new_occ): Use new type-based pool allocator.
17635         (et_new_tree): Likewise.
17636         (et_free_tree): Likewise.
17637         (et_free_tree_force): Likewise.
17638         (et_free_pools): Likewise.
17639         (et_split): Likewise.
17641 2015-06-01  Martin Liska  <mliska@suse.cz>
17643         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
17644         to header file.
17645         * alloc-pool.h (pool_allocator::pool_allocator): New function.
17646         (pool_allocator::release): Likewise.
17647         (inline pool_allocator::release_if_empty): Likewise.
17648         (inline pool_allocator::~pool_allocator): Likewise.
17649         (pool_allocator::allocate): Likewise.
17650         (pool_allocator::remove): Likewise.
17652 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
17654         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
17655         in comment.
17657 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
17659         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
17660         to fusible_ops.
17661         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
17662         (arm_macro_fusion_p): Likewise.
17663         (arm_macro_fusion_pair_p): Likewise.
17665 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
17667         * config/aarch64/aarch64-protos.h (tune_params): Rename
17668         fuseable_ops to fusible_ops.
17669         * config/aarch64/aarch64.c (generic_tunings): Rename
17670         fuseable_ops to fusible_ops.
17671         (cortexa53_tunings): Likewise.
17672         (cortexa57_tunings): Likewise.
17673         (thunderx_tunings): Likewise.
17674         (xgene1_tunings): Likewise.
17675         (aarch64_macro_fusion_p): Likewise.
17676         (aarch64_macro_fusion_pair_p): Likewise.
17678 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17680         * config/s390/driver-native.c: New file.
17681         * config/s390/x-native: New file.
17682         * config.host: Add new files for s390.
17683         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
17684         and -march=native
17685         * config.gcc: Likewise.
17686         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
17687         * config/s390/s390-opts.h (enum processor_type): Ditto.
17688         * config/s390/s390.c (s390_option_override): Catch unhandled
17689         PROCESSOR_NATIVE
17691 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
17693         PR target/65527
17694         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
17695         redirection for instrumented calls.
17696         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
17697         (append_compiler_options): Append -fcheck-pointer-bounds.
17698         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
17699         (chkp_redirect_edge): New.
17700         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
17701         (chkp_redirect_edge): New.
17703 2015-06-01  Richard Biener  <rguenther@suse.de>
17705         PR tree-optimization/66280
17706         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
17707         def-use walking.
17709 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17711         * config/aarch64/aarch64.md
17712         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
17713         logic_shift_imm.
17715 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
17717         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
17718         Remove obsolete kludge.
17720 2015-06-01  Richard Biener  <rguenther@suse.de>
17722         * tree-ssa-reassoc.c (get_rank): Simplify.
17724 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
17726         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
17727         * configure: Regenerated.
17729 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
17731         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
17732         issue (add space between string literal and macro).
17733         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
17735 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
17737         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
17738         implict or explicit -fPIE or -fpie.
17740 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
17742         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
17744 2015-05-28  DJ Delorie  <dj@redhat.com>
17746         * expmed.c (extract_bit_field_1): Avoid clobbering a
17747         yet-to-be-used base/index register.
17749 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
17751         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
17752         (alias_stats): Add num_universal.
17753         (alias_set_subset_of): Special case pointers; be ready for NULL
17754         children.
17755         (alias_sets_conflict_p): Special case pointers; be ready for NULL
17756         children.
17757         (init_alias_set_entry): Break out from ...
17758         (record_alias_subset): ... here; propagate new fields;
17759         allocate children only when really needed.
17760         (get_alias_set): Do less generous pointer globbing.
17761         (dump_alias_stats_in_alias_c): Update statistics.
17763 2015-05-30  Alan Modra  <amodra@gmail.com>
17765         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
17766         correct block for use of r12.
17767         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
17769 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17771         PR target/66215
17772         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
17773         with -mhotpatch=.
17775 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
17777         PR tree-optimization/66142
17778         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
17779         virtual phis that feed themselves.
17781 2015-05-29  Richard Biener  <rguenther@suse.de>
17783         PR tree-optimization/66314
17784         * tree-ssa-threadupdate.c (create_block_for_threading): Add
17785         parameter that says which loop the new block belongs to.
17786         (ssa_create_duplicates): Blocks duplicated for the threaded
17787         path belong to the loop of the thread destination.
17789 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17791         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
17792         to cleanup-saved-temps.
17793         * doc/sourcebuild.texi (Clean up generated test files): Expand
17794         introduction.
17795         (dg-keep-saved-temps): Document new proc.
17796         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
17797         cleanup-saved-temps): Remove.
17799 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
17801         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
17802         gcc_AC_CHECK_DECLS.
17803         * configure: Regenerate.
17805 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
17807         * config/nios2/linux.h (CPP_SPEC): Define.
17809 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
17811         * config/microblaze/linux.h (CPP_SPEC): Define.
17813 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
17815         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
17816         -pthread is specified.
17818 2015-05-28  Richard Biener  <rguenther@suse.de>
17820         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
17821         (vect_fixup_scalar_cycles_with_patterns): Likewise.
17822         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
17823         after pattern recog.
17824         (vect_create_epilog_for_reduction): Properly handle reductions
17825         with patterns.
17826         (vectorizable_reduction): Likewise.
17827         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
17828         reduction chains.
17829         (vect_get_constant_vectors): Create the correct number of
17830         initial values for reductions.
17831         (vect_schedule_slp_instance): Handle reduction chains that are
17832         type changing properly.
17833         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
17835 2015-05-28  Richard Biener  <rguenther@suse.de>
17837         PR tree-optimization/66142
17838         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
17839         values better in memcpy destination handling.  Handle non-aliasing
17840         we discover here.
17842 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
17844         PR target/63810
17845         * config/darwin-c.c (version_components): New global enum.
17846         (parse_version, version_as_legacy_macro)
17847         (version_as_modern_macro, macosx_version_as_macro): New functions.
17848         (version_as_macro): Remove.
17849         (darwin_cpp_builtins): Use new function.
17851 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
17853         * builtins.c (expand_builtin_acc_on_device): Mark parameters
17854         with ATTRIBUTE_UNUSED.
17856 2015-05-28  Julian Brown  <julian@codesourcery.com>
17858         PR libgomp/65742
17860         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
17861         sequence for !ACCEL_COMPILER.
17863 2015-05-28  Nick Clifton  <nickc@redhat.com>
17865         * config/rx/rx.c (push_regs): New function.  Extracts code from...
17866         (rx_expand_prologue): ... here.  Use push_regs to push even small
17867         spans of registers.
17868         (pop_regs): New function.
17869         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
17870         registers.
17872 2015-05-28  Richard Biener  <rguenther@suse.de>
17874         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
17875         member.
17876         (SLP_INSTANCE_BODY_COST_VEC): Remove.
17877         (vect_update_slp_costs_according_to_vf): Likewise.
17878         (vect_slp_analyze_operations): Update prototype.
17879         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
17880         vect_update_slp_costs_according_to_vf, adjust.
17881         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
17882         (vect_analyze_slp_cost_1): Likewise.
17883         (vect_analyze_slp_cost): Likewise.  Properly deal with
17884         widening reduction ops.  Commit body costs.
17885         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
17886         cost for loops from here.
17887         (vect_slp_analyze_operations): But do it from here when
17888         the vectorization factor is known and stmts are analyzed.
17889         (vect_bb_vectorization_profitable_p): Simplify.
17890         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
17891         (vect_update_slp_costs_according_to_vf): Remove.
17893 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
17894             H.J. Lu  <hongjiu.lu@intel.com>
17896         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
17897         (BUILD_CFLAGS): Likewise.
17898         (BUILD_CXXFLAGS): Likewise.
17899         (LINKER): Add @NO_PIE_FLAG@.
17900         (BUILD_LDFLAGS): Likewise.
17901         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
17902         --enable-default-pie.
17903         * common.opt (fPIE): Initialize to -1.
17904         (fpie): Likewise.
17905         (no-pie): New option.
17906         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
17907         * configure.ac: Add --enable-default-pie.
17908         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
17909         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
17910         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
17911         * gcc.c (NO_PIE_SPEC): New.
17912         (PIE_SPEC): Likewise.
17913         (NO_FPIE1_SPEC): Likewise.
17914         (FPIE1_SPEC): Likewise.
17915         (NO_FPIE2_SPEC): Likewise.
17916         (FPIE2_SPEC): Likewise.
17917         (NO_FPIE2_SPEC): Likewise.
17918         (FPIE_SPEC): Likewise.
17919         (NO_FPIE_SPEC): Likewise.
17920         (NO_FPIC1_SPEC): Likewise.
17921         (FPIC1_SPEC): Likewise.
17922         (NO_FPIC2_SPEC): Likewise.
17923         (FPIC2_SPEC): Likewise.
17924         (NO_FPIC2_SPEC): Likewise.
17925         (FPIC_SPEC): Likewise.
17926         (NO_FPIC_SPEC): Likewise.
17927         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
17928         (FPIE1_OR_FPIC1_SPEC): Likewise.
17929         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
17930         (FPIE2_OR_FPIC2_SPEC): Likewise.
17931         (NO_FPIE_AND_FPIC_SPEC): Likewise.
17932         (FPIE_OR_FPIC_SPEC): Likewise.
17933         (LD_PIE_SPEC): Likewise.
17934         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
17935         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
17936         * config/darwin.h (PIE_SPEC): Renamed to ...
17937         (DARWIN_PIE_SPEC): This.
17938         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
17939         * config/darwin9.h (PIE_SPEC): Renamed to ...
17940         (DARWIN_PIE_SPEC): This.
17941         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
17942         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
17943         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
17944         FPIE2_OR_FPIC2_SPEC.
17945         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
17946         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
17947         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
17948         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
17949         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
17950         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
17951         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
17952         * config/m32r/m32r.h (ASM_SPEC): Likewise.
17953         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
17954         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17955         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
17956         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
17957         * config/sparc/linux.h (ASM_SPEC): Likewise.
17958         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17959         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
17960         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
17961         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17962         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
17963         * config/sparc/sparc.h (ASM_SPEC): Likewise.
17964         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
17965         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
17966         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
17967         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
17968         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
17969         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
17970         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
17971         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
17972         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
17973         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
17974         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
17975         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
17976         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17977         * config/vax/linux.h (ASM_SPEC): Likewise.
17978         * doc/install.texi: Document --enable-default-pie.
17979         * doc/invoke.texi: Document -no-pie.
17980         * config.in: Regenerated.
17981         * configure: Likewise.
17983 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17985         PR rtl-optimization/66168
17986         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
17987         can_move_invariant_reg.
17989 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
17991         PR target/66148
17992         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
17993         REG_EQUAL note when doing insert.
17995         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
17996         instead of "%d" for 'o' operand.
17998 2015-05-27  Nathan Sidwell  <nathan@acm.org>
18000         PR c++/66270
18001         * tree.c (build_pointer_type_for_mode): Canonical type does not
18002         inherit can_alias_all.
18003         (build_reference_type_for_mode): Likewise.
18005 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
18007         * expr.h (array_at_struct_end_p): Move to...
18008         (array_ref_element_size): Likewise.
18009         (component_ref_field_offset): Likewise.
18010         * tree.h (array_ref_element_size): ...here.
18011         (array_at_struct_end_p): Likewise.
18012         (component_ref_field_offset): Likewise.
18013         * expr.c (array_ref_element_size): Move to...
18014         (array_ref_low_bound): Likewise.
18015         (array_at_struct_end_p): Likewise.
18016         (array_ref_up_bound): Likewise.
18017         (component_ref_field_offset): Likewise.
18018         * tree.c (array_ref_element_size): ...here.
18019         (array_ref_low_bound): Likewise.
18020         (array_ref_up_bound): Likewise.
18021         (array_at_struct_end_p): Likewise.
18022         (component_ref_field_offset): Likewise.
18024 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
18025             Szabolcs Nagy  <szabolcs.nagy@arm.com>
18027         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
18029 2015-05-27  Jason Merrill  <jason@redhat.com>
18031         PR bootstrap/66304
18032         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
18033         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
18034         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
18036 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
18038         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
18039         is true.
18041         * statistics.c (statistics_fini_pass): Print pass name.
18043 2015-05-27  Richard Biener  <rguenther@suse.de>
18045         PR tree-optimization/66272
18046         Revert parts of
18047         2014-08-15  Richard Biener  <rguenther@suse.de>
18049         PR tree-optimization/62031
18050         * tree-data-ref.c (dr_analyze_indices): Do not set
18051         DR_UNCONSTRAINED_BASE.
18052         (dr_may_alias_p): All indirect accesses have to go the
18053         formerly DR_UNCONSTRAINED_BASE path.
18054         * tree-data-ref.h (struct indices): Remove
18055         unconstrained_base member.
18056         (DR_UNCONSTRAINED_BASE): Remove.
18058 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
18060         * dwarf2out.c: Remove block_map.
18061         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
18062         (gen_lexical_block_die): Same.
18063         (dwarf2out_function_decl): Remove block_map use.
18064         (dwarf2out_c_finalize): Same.
18065         * tree-core.h (struct tree_block): Add die field.
18066         * tree.h (BLOCK_DIE): New.
18068 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18070         PR target/65358
18071         * expr.c (memory_load_overlap): New function.
18072         (emit_push_insn): When pushing partial args to the stack would
18073         clobber the register part load the overlapping part into a pseudo
18074         and put it into the hard reg after pushing.  Change return type
18075         to bool.  Add bool argument.
18076         * expr.h (emit_push_insn): Change return type to bool.
18077         Add bool argument.
18078         * calls.c (expand_call): Cancel sibcall optimization when encountering
18079         partial argument on targets with ARGS_GROW_DOWNWARD and
18080         !STACK_GROWS_DOWNWARD.
18081         (emit_library_call_value_1): Update callsite of emit_push_insn.
18082         (store_one_arg): Likewise.
18084 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
18086         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
18088 2015-05-27  Martin Liska  <mliska@suse.cz>
18090         * Makefile.in: Add additional dependencies related to memory report
18091         enhancement.
18092         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
18093         * bitmap.c (struct bitmap_descriptor_d): Remove.
18094         (struct loc): Likewise.
18095         (struct bitmap_desc_hasher): Likewise.
18096         (bitmap_desc_hasher::hash): Likewise.
18097         (bitmap_desc_hasher::equal): Likewise.
18098         (get_bitmap_descriptor): Likewise.
18099         (bitmap_register): User new memory descriptor API.
18100         (register_overhead): Likewise.
18101         (bitmap_find_bit): Register nsearches and search_iter statistics.
18102         (struct bitmap_output_info): Remove.
18103         (print_statistics): Likewise.
18104         (dump_bitmap_statistics): Use new memory descriptor.
18105         * bitmap.h (struct bitmap_usage): New class.
18106         * genmatch.c: Extend header file inclusion.
18107         * genpreds.c: Likewise.
18108         * ggc-common.c (struct ggc_usage): New class.
18109         (struct ggc_loc_desc_hasher): Remove.
18110         (ggc_loc_desc_hasher::hash): Likewise.
18111         (ggc_loc_desc_hasher::equal): Likewise.
18112         (struct ggc_ptr_hash_entry): Likewise.
18113         (struct ptr_hash_hasher): Likewise.
18114         (ptr_hash_hasher::hash): Likewise.
18115         (ptr_hash_hasher::equal): Likewise.
18116         (make_loc_descriptor): Likewise.
18117         (ggc_prune_ptr): Likewise.
18118         (dump_ggc_loc_statistics): Use new memory descriptor.
18119         (ggc_record_overhead): Likewise.
18120         (ggc_free_overhead): Likewise.
18121         (final_cmp_statistic): Remove.
18122         (cmp_statistic): Likewise.
18123         (ggc_add_statistics): Liekwise.
18124         (ggc_prune_overhead_list): Likewise.
18125         * hash-map-traits.h: New file.
18126         * hash-map.h (struct default_hashmap_traits): Move the traits to a
18127         separate header file.
18128         * hash-set.h: Pass memory statistics info to ctor.
18129         * hash-table.c (void dump_hash_table_loc_statistics): New function.
18130         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
18131         (hash_table::~hash_table): Register memory release operation.
18132         (hash_table::alloc_entries): Handle memory allocation operation.
18133         (hash_table::expand): Likewise.
18134         * inchash.c (iterative_hash_hashval_t): Move implementation to header
18135         file.
18136         (iterative_hash_host_wide_int): Likewise.
18137         * inchash.h (class hash): Likewise.
18138         * mem-stats-traits.h: New file.
18139         * mem-stats.h: New file.
18140         (mem_location): Add new class.
18141         (mem_usage): Likewise.
18142         (mem_alloc_description): Likewise.
18143         * sese.c: Add new header file inclusision.
18144         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
18145         and hash_set.
18146         * tree-sra.c: Add new header file inclusision.
18147         * vec.c (struct vec_descriptor): Remove.
18148         (hash_descriptor): Likewise.
18149         (struct vec_usage): Likewise.
18150         (struct ptr_hash_entry): Likewise.
18151         (hash_ptr): Likewise.
18152         (eq_ptr): Likewise.
18153         (vec_prefix::register_overhead): Use new memory descriptor API.
18154         (vec_prefix::release_overhead): Likewise.
18155         (add_statistics): Remove.
18156         (dump_vec_loc_statistics): Use new memory descriptor API.
18157         * vec.h (struct vec_prefix): Likewise.
18158         (va_heap::reserve): Likewise.
18159         (va_heap::release): Likewise.
18160         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
18162 2015-05-27  Richard Biener  <rguenther@suse.de>
18164         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
18165         earlier and remove ??? comment.
18166         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
18167         and got called from loop analysis bail out.  Always pass the SLP
18168         node to the vectorizable_* functions.
18169         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
18170         the premature SLP check here.
18171         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
18172         detected SLP stmts.
18173         (vect_detect_hybrid_slp_1): Likewise.
18175 2015-05-26  Jeff Law  <law@redhat.com>
18177         * combine.c (find_split_point): Verify that the shift count is a
18178         constant when choosing (plus (ashift ...)) as a split point.
18180         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
18181         No functional changes.
18183 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
18185         * ipa-polymorphic-call.c
18186         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
18187         case when call target is already known.
18189 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
18191         PR target/65979
18192         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
18193         take into account the case that operands[1] and operands[2]
18194         are the same register.
18196 2015-05-26  Michael Matz  <matz@suse.de>
18198         PR middle-end/66251
18200         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
18201         stores.
18202         (vect_create_vectorized_demotion_stmts): Always set
18203         STMT_VINFO_VEC_STMT, also with SLP.
18204         (vectorizable_store): Handle strided group stores.
18206 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
18208         PR target/66049
18209         * config/aarch64/aarch64.md
18210         (*adds_shift_imm_<mode>):  New pattern.
18211         (*subs_shift_imm_<mode>):  Likewise.
18212         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
18213         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
18214         (*add_uxt<mode>_shift2): Likewise.
18215         (*add_uxtsi_shift2_uxtw): Likewise.
18216         (*sub_uxt<mode>_shift2): Likewise.
18217         (*sub_uxtsi_shift2_uxtw): Likewise.
18219 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
18221         * config/rs6000/constraints.md (Y, U): Use match_test.
18223 2015-05-26  Christian Bruel  <christian.bruel@st.com>
18225         PR target/52144
18226         * config/arm/arm.c (arm_option_check_internal)
18227         (arm_option_params_internal): Check opts->target_flags to set macros.
18228         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
18229         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
18230         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
18231         (builtin_define): Replaced with def_or_undef_macro.
18232         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
18233         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
18234         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
18235         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
18236         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
18237         (TARGET_ARM_FEATURE_LDREX_P)
18238         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
18239         * config/arm/arm-c.c (def_or_undef_macro): New function.
18240         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
18242 2015-05-26  Christian Bruel  <christian.bruel@st.com>
18244         * c-common.h (builtin_define_with_int_value)
18245         (builtin_define_type_sizeof): Declare.
18246         * c-cppbuiltin.c (builtin_define_with_int_value)
18247         (builtin_define_type_sizeof): Externalize.
18248         (builtin_define_std): Cleanup declaration.
18249         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
18250         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
18251         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
18252         (builtin_define, builtin_assert): New macros.
18254 2015-05-26  Richard Biener  <rguenther@suse.de>
18256         PR tree-optimization/66142
18257         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
18258         MEM_REFs for the same base address.
18260 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18262         PR ipa/66181
18263         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
18265 2015-05-26  Jason Merrill  <jason@redhat.com>
18267         * configure.ac: Set CXXFLAGS for ISL test.
18268         * configure: Regenerate.
18270         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
18271         strstr and basename.
18272         * configure: Regenerate.
18274 2015-05-26  Richard Biener  <rguenther@suse.de>
18276         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
18277         X % C -> X & (C - 1) for C being a power-of two to ...
18278         * match.pd: ... patterns.
18280 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
18282         * match.pd (swapped_tcc_comparison): New operator list.
18283         (-A CMP -B): New simplification.
18284         * fold-const.c (fold_comparison): Remove corresponding code.
18286 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
18288         * caller-save.c (init_caller_save): Base temporary register numbers
18289         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
18290         * cfgloopanal.c (init_set_costs): Likewise.
18291         * dojump.c (prefer_and_bit_test): Likewise.
18292         * expr.c (init_expr_target): Likewise.
18293         * ira.c (setup_prohibited_mode_move_regs): Likewise.
18294         * lower-subreg.c (init_lower_subreg): Likewise.
18295         * postreload.c (reload_cse_regs_1): Likewise.
18297 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
18299         * gensupport.h (compute_test_codes): Declare.
18300         * gensupport.c (compute_predicate_codes): Rename to...
18301         (compute_test_codes): ...this.  Generalize error message.
18302         (process_define_predicate): Update accordingly.
18303         * genpreds.c (compute_maybe_allows): Delete.
18304         (add_constraint): Use compute_test_codes to determine whether
18305         something can accept a SUBREG, REG or MEM.
18307 2015-05-26  Torvald Riegel  <triegel@redhat.com>
18309         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
18310         'memory model' to align with C++11; fix description of memory orders;
18311         fix a few typos.
18313 2015-05-26  Richard Biener  <rguenther@suse.de>
18315         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
18316         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
18317         detect whether we apply SLP.  Remove call to
18318         vect_update_slp_costs_according_to_vf.
18319         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
18320         vect_update_slp_costs_according_to_vf from here.  Dispatch
18321         to vect_slp_analyze_operations to analyze SLP stmts.
18322         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
18323         unused bb_vec_info parameter, adjust assert.
18324         (vect_slp_analyze_operations): Pass in the slp instance tree
18325         instead of bb_vec_info.
18326         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
18327         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
18329 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
18331         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
18332         Q_REGS.  Expand comment.
18333         (REG_CLASS_NAMES): Ditto.
18334         (REG_CLASS_CONTENTS): Ditto.
18336 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
18338         PR target/66274
18339         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
18340         when LEGACY_INT_REGNO_P is processed.
18342 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
18344         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
18346 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
18348         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
18349         register if not marked dead/unused, before return.
18351 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
18353         PR lto/66180
18354         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
18355         is set; check for assembler name at LTO time.
18356         (type_in_anonymous_namespace): Remove hacks, check that all
18357         anonymous types are called "<anon>"
18358         (odr_type_p): Simplify; add check for "<anon>"
18359         (odr_subtypes_equivalent): Add odr_type_p check.
18360         * tree.c (need_assembler_name_p): Even anonymous namespace needs
18361         assembler name.
18363 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
18365         * ipa-utils.h (method_class_type): Remove.
18366         * cgraphunit.c (walk_polymorphic_call_targets): Use
18367         TYPE_METHOD_BASETYPE.
18368         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
18369         on main variants only.
18370         (method_class_type): Remove.
18371         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
18372         (build_type_inheritance_graph): Likewise.
18373         * ipa-icf.c (sem_function::equals_wpa): Likewise.
18374         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
18375         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
18377 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
18379         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
18380         is_typedef_decl, typedef_variant_p): Constify.
18381         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
18382         is_typedef_decl, typedef_variant_p): Constify.
18384 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18386         * defaults.h (gen_tablejump): New function.
18387         (HAVE_tablejump): Add default value.
18388         * expr.c: Adjust.
18389         * stmt.c: Likewise.
18391 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18393         * defaults.h (gen_store_multiple): New function.
18394         (HAVE_store_multiple): Add default value.
18395         * expr.c (move_block_from_reg): Adjust.
18397 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18399         * defaults.h (gen_load_multiple): New function.
18400         (HAVE_load_multiple): Add default value.
18401         * expr.c (move_block_to_reg): Adjust.
18403 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18405         * defaults.h (gen_mem_signal_fence): New function.
18406         (HAVE_mem_signal_fence): Add default value.
18407         * optabs.c: Adjust.
18409 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18411         * defaults.h (gen_memory_barrier): New function.
18412         (HAVE_memory_barrier): Add default value.
18413         * optabs.c: Adjust.
18415 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18417         * defaults.h (gen_mem_thread_fence): New function.
18418         (HAVE_mem_thread_fence): Add default definition.
18419         * optabs.c: Adjust.
18421 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18423         * combine.c (find_split_point): Check the value of HAVE_lo_sum
18424         instead of if it is defined.
18425         (combine_simplify_rtx): Likewise.
18426         * lra-constraints.c (process_address_1): Likewise.
18427         * config/darwin.c: Adjust.
18428         * genconfig.c (main): Always define HAVE_lo_sum.
18430 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18432         * genmatch.c (parser::parse_operation): Reject expanding
18433         operator-list inside 'for'.
18435 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18437         * genmatch.c (parser::parse_for): Reject iterator if used as
18438         operator-list.
18440 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18442         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
18443         after end of id-list.
18445 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
18447         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
18448         we do not try to compute canonical type for type that does not need
18449         alias set.
18450         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
18451         FUNCITON_TYPE.
18452         * tree.h (type_with_alias_set_p): New.
18454 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
18456         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
18457         function attributes.
18458         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
18460 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
18462         * Makefile.in (check_gcc_parallelize): Delete.
18463         (lang_checks_parallelized): Update comment.
18465 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
18467         PR rtl-optimization/66237
18468         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
18469         location of an "as_a" cast.
18471 2015-05-22  Jeff Law  <law@redhat.com>
18473         * config/pa/pa.md (non-canonical shift-add insns): Remove.
18474         (peepholes with non-canonical RTL sources): Remove.
18475         (peepholes for indexed stores of FP regs in integer modes): Match and
18476         generate canonical RTL.
18478 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
18480         PR tree-optimization/63387
18481         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
18482         ((x ord x) & (y ord y) -> (x ord y),
18483         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
18484         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
18485         vectors like scalars.
18487 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
18489         * convert.c (convert_to_integer, convert_to_vector): Include the
18490         types in the error message.
18492 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
18494         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
18495         simplifications.
18497 2015-05-22  Jeff Law  <law@redhat.com>
18499         * config/pa/pa.md (integer_indexed_store splitters): Use
18500         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
18501         insns -- adjusting the constant 2nd operand accordingly.
18503         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
18504         (plus (ashift X log2) Y) if it is a split point.
18506         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
18507         out of hppa_legitimize_address to handle both forms of a multiply
18508         by 2, 4 or 8.
18509         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
18510         Always generate the ASHIFT variant as the result is not directly
18511         used in a MEM.  Update comments and refactor slightly to improve
18512         readability.
18514 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18516         PR target/65491
18517         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
18518         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
18519         (aarch64_composite_type_p): Return false if given type and mode are
18520         for a short vector.
18522 2015-05-22  Richard Biener  <rguenther@suse.de>
18524         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
18525         member.
18526         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
18527         patterns when determining whether SLP is pure.
18528         (vect_is_slp_reduction): Remove check for pattern stmts.
18529         (vect_is_simple_reduction_1): Remove dead code.
18530         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
18531         (vect_get_and_check_slp_defs): Pass in the stmt number.
18532         Allow the first def in a reduction to be not a pattern stmt when
18533         the rest of the stmts def are patterns.
18534         (vect_build_slp_tree_1): Allow tcc_expression codes like
18535         SAD_EXPR and DOT_PROD_EXPR.
18536         (vect_build_slp_tree): Adjust.
18537         (vect_analyze_slp): Refactor and move BB vect error message ...
18538         (vect_slp_analyze_bb_1): ... here.
18540 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
18542         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
18543         for CSWTCH temporary.
18545 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18547         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
18548         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
18549         unknown unspecs.
18551 2015-05-22  Richard Biener  <rguenther@suse.de>
18553         PR tree-optimization/66251
18554         * tree-vect-stmts.c (vectorizable_conversion): Properly
18555         set STMT_VINFO_VEC_STMT even for the SLP case.
18557 2015-05-22  Marek Polacek  <polacek@redhat.com>
18559         * doc/extend.texi: Use @pxref instead of @xref.
18561 2015-05-22  hiraditya  <hiraditya@msn.com>
18563         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
18564         redundant if.
18566 2015-05-22  Richard Biener  <rguenther@suse.de>
18568         PR tree-optimization/65701
18569         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
18570         Move peeling cost models into one place.  Peel for alignment
18571         for single loads only if an aligned load is cheaper than
18572         an unaligned load.
18574 2015-05-22  Marek Polacek  <polacek@redhat.com>
18576         PR c/47043
18577         * doc/extend.texi (Enumerator Attributes): New section.
18578         Document syntax of enumerator attributes.
18580 2015-05-22  Richard Biener  <rguenther@suse.de>
18582         * tree-vect-loop.c (get_reduction_op): New function.
18583         (vect_model_reduction_cost): Use it, add reduc_index parameter.
18584         Make ready for BB reductions.
18585         (vect_create_epilog_for_reduction): Use get_reduction_op.
18586         (vectorizable_reduction): Init reduc_index to a valid value.
18587         Adjust vect_model_reduction_cost call.
18588         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
18589         operand for reduction defaults.  Add SAD_EXPR support.
18590         Assert we have a neutral op for SLP reductions.
18591         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
18592         walking pattern stmt ops only recurse to SSA names.
18594 2015-05-22  Richard Biener  <rguenther@suse.de>
18596         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
18597         assert with guard, remove check on detected reduction.
18598         (vect_recog_sad_pattern): Likewise.
18599         (vect_recog_widen_sum_pattern): Likewise.
18601 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18603         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
18604         __always_inline__ attribute.
18605         (vaesdq_u8): Likewise.
18606         (vaesmcq_u8): Likewise.
18607         (vaesimcq_u8): Likewise.
18608         (vsha1cq_u32): Likewise.
18609         (vsha1mq_u32): Likewise.
18610         (vsha1pq_u32): Likewise.
18611         (vsha1h_u32): Likewise.
18612         (vsha1su0q_u32): Likewise.
18613         (vsha1su1q_u32): Likewise.
18614         (vsha256hq_u32): Likewise.
18615         (vsha256h2q_u32): Likewise.
18616         (vsha256su0q_u32): Likewise.
18617         (vsha256su1q_u32): Likewise.
18618         (vmull_p64): Likewise.
18619         (vmull_high_p64): Likewise.
18621 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18623         * final.c (final_scan_insn): Don't check HAVE_peephole with the
18624         preprocessor.
18625         * output.h: Likewise.
18626         * genconfig.c (main): Alwways define HAVE_peephole.
18627         * genpeep.c: Don't emit checks of HAVE_peephole.
18629 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18631         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
18632         check HAVE_conditional_move with the preprocessor.
18634 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18636         * genconfig.c (main): Always define HAVE_conditional_move.
18637         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
18638         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
18639         is defined.
18641 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18643         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
18644         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
18645         and FRAME_POINTER_REGNUM with the preprocessor.
18647 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18649         * defaults.h: Add default for STACK_PUSH_CODE.
18650         * expr.c: Don't redefine STACK_PUSH_CODE.
18651         * recog.c: Likewise.
18653 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18655         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
18656         sched-deps.c: Use if instead of preprocessor checks with
18657         STACK_GROWS_DOWNWARD.
18659 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18661         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
18662         is defined.
18663         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
18664         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
18665         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
18666         * doc/tm.texi: Regenerate.
18668 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
18670         PR target/66232
18671         * config/i386/constraints.md (Bg): New constraint for GOT memory
18672         operand.
18673         * config/i386/i386.md (*call_got_x32): New pattern.
18674         (*call_value_got_x32): Likewise.
18675         * config/i386/predicates.md (GOT_memory_operand): New predicate.
18677 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
18679         PR tree-optimization/66233
18680         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
18681         Simplify.
18683 2015-05-21  Jeff Law  <law@redhat.com>
18685         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
18686         than MULT for shadd sequences.
18688 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
18690         * alias.c (alias_stats): New static var.
18691         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
18692         (dump_alias_stats_in_alias_c): New function.
18693         * alias.h (dump_alias_stats_in_alias_c): Declare.
18694         * tree-ssa-alias.c (dump_alias_stats): Call it.
18696 2015-05-08  Michael Matz  <matz@suse.de>
18698         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
18699         to strided_p.
18700         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
18701         (STMT_VINFO_STRIDED_P): ... this.
18702         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
18703         (vect_verify_datarefs_alignment): Likewise.
18704         (vect_enhance_data_refs_alignment): Likewise.
18705         (vect_analyze_data_ref_access): Likewise.
18706         (vect_analyze_data_refs): Accept strided stores.
18707         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
18708         (vect_model_load_cost): Adjust for macro rename.
18709         (vectorizable_mask_load_store): Likewise.
18710         (vectorizable_load): Likewise.
18711         (vectorizable_store): Open code strided stores.
18713 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18715         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
18716         Document sqrt_insn.
18718 2015-05-21  Richard Biener  <rguenther@suse.de>
18720         PR c++/66211
18721         * match.pd: Guard pattern optimzing (int)(float)int
18722         conversions to apply only on GIMPLE.
18724 2015-05-21  Jeff Law  <law@redhat.com>
18726         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
18727         multiply-accumulate/shift-add insn generation.
18729 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
18731         PR target/54236
18732         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
18733         operands[1] are the same.
18735 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
18737         PR middle-end/66221
18738         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
18739         build_distinct_type_copy to copy bounds.
18741 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
18743         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
18744         Change to unsigned int.
18746 2015-05-20  Jeff Law  <law@redhat.com>
18748         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
18749         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
18750         (pa_shadd_constant_p): Allow constants for shadd insns rather
18751         than valid scaling constants for memory addresses.
18752         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
18753         * config/pa/predicates.md (mem_shadd_operand): New predicate.
18754         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
18755         (shift-add insns using ASHIFT): New patterns.
18757 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
18759         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
18760         feasible.
18761         (fix_up_fall_thru_edges): Likewise.
18762         (fix_crossing_conditional_branches): Likewise. Promote jump targets
18763         from to rtx_insn to rtx_code_label where feasible.
18764         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
18765         gen_move_insn (returned type changed to rtx_insn).
18766         * builtins.c (expand_errno_check): Fix arguments of
18767         do_compare_rtx_and_jump (now expects rtx_code_label).
18768         (expand_builtin_acc_on_device): Likewise.
18769         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
18770         invert_jump (now exprects rtx_jump_insn).
18771         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
18772         (construct_init_block): Use rtx_code_label.
18773         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
18774         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
18775         calling redirect_jump.
18776         (patch_jump_insn): Likewise.
18777         (redirect_branch_edge): Likewise.
18778         (force_nonfallthru_and_redirect): Likewise.
18779         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
18780         when suitable.
18781         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
18782         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
18783         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
18784         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
18785         to store the value retured by gen_label_rtx.
18786         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
18787         rtx_jump_insn.
18788         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
18789         (split_branches): Fix calls of redirect_jump.
18790         * dojump.c (jumpifnot): Promote argument type from rtx to
18791         rtx_code_label.
18792         (jumpifnot_1): Likewise.
18793         (jumpif): Likewise.
18794         (jumpif_1): Likewise.
18795         (do_jump_1): Likewise.
18796         (do_jump): Likewise. Use rtx_code_label when feasible.
18797         (do_jump_by_parts_greater_rtx): Likewise.
18798         (do_jump_by_parts_zero_rtx): Likewise.
18799         (do_jump_by_parts_equality_rtx): Likewise.
18800         (do_compare_rtx_and_jump): Likewise.
18801         * dojump.h: Update function prototypes.
18802         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
18803         returns rtx_insn).
18804         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
18805         rtx_jump_insn.
18806         (emit_label_before): Likewise.
18807         (emit_jump_insn_after_noloc): Likewise.
18808         (emit_jump_insn_after_setloc): Likewise.
18809         (emit_jump_insn_after): Likewise
18810         (emit_jump_insn_before_setloc): Likewise.
18811         (emit_jump_insn_before): Likewise.
18812         (emit_label_before): Promote return type to rtx_code_label.
18813         (emit_label): Likewise.
18814         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
18815         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
18816         gen_move_insn.
18817         (emit_stack_restore): Likewise.
18818         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
18819         (do_cmp_and_jump): Likewise.
18820         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
18821         from rtx to rtx_code_label.
18822         (gen_move_insn_uncast): New function.
18823         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
18824         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
18825         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
18826         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
18827         invert_jump_1 and redirect_jump_1.
18828         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
18829         do_compare_rtx_and_jump.
18830         (expand_addsub_overflow): Likewise.
18831         (expand_neg_overflow): Likewise.
18832         (expand_mul_overflow): Likewise.
18833         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
18834         return value of gen_move_insn.
18835         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
18836         * loop-doloop.c (add_test): Use rtx_code_label.
18837         (doloop_modify): Likewise.
18838         (doloop_optimize): Likewise.
18839         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
18840         * lra-constraints.c (emit_spill_move): Remove cast of value returned
18841         by gen_move_insn.
18842         (inherit_reload_reg): Add cast when calling dump_insn_slim.
18843         (split_reg): Likewise.
18844         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
18845         gen_move_insn.
18846         * optabs.c (expand_binop_directly): Remove casts of values returned by
18847         maybe_gen_insn.
18848         (expand_unop_direct): Likewise.
18849         (expand_abs): Likewise.
18850         (maybe_emit_unop_insn): Likewise.
18851         (maybe_gen_insn): Promote return type to rtx_insn.
18852         * optabs.h: Update prototype of maybe_gen_insn.
18853         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
18854         redundant cast.
18855         * recog.c (struct peep2_insn_data): Promote type of insn field to
18856         rtx_insn.
18857         (peep2_reinit_state): Use NULL instead of NULL_RTX.
18858         (peep2_attempt): Remove casts of insn in peep2_insn_data.
18859         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
18860         * recog.h (struct insn_gen_fn): Promote return types of function
18861         pointers and operator ().from rtx to rtx_insn.
18862         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
18863         (fill_eager_delay_slots): Likewise.
18864         (relax_delay_slots): Likewise.
18865         (make_return_insns): Likewise.
18866         (dbr_schedule): Likewise.
18867         (optimize_skips): Likewise.
18868         (reorg_redirect_jump): Likewise.
18869         (fill_slots_from_thread): Likewise.
18870         * reorg.h: Update prototypes.
18871         * resource.c (find_dead_or_set_registers): Use dyn_cast to
18872         rtx_jump_insn instead of check.  Use it's jump_target method.
18873         * rtl.h (rtx_jump_insn::jump_label): Define new method.
18874         (rtx_jump_insn::jump_target): Define new method.
18875         (rtx_jump_insn::set_jump_target): Define new method.
18876         * rtlanal.c (tablejump_p): Promote type of one local variable.
18877         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
18878         (sched_analyze_insn): Likewise.
18879         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
18880         (print_insn): Likewise.
18881         * stmt.c (label_rtx): Promote return type to rtx_insn.
18882         (force_label_rtx): Likewise.
18883         (jump_target_rtx): Define new function.
18884         (expand_label): Use it, get rid of one cast.
18885         (expand_naked_return): Promote rtx to rtx_code_label.
18886         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
18887         (expand_case): Use rtx_code_label instread of rtx where feasible.
18888         (expand_sjlj_dispatch_table): Likewise.
18889         (emit_case_nodes): Likewise.
18890         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
18891         * store-motion.c (insert_store): Make use of new return type of
18892         gen_move_insn and remove a cast.
18893         (replace_store_insn): Likewise.
18895 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
18897         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
18898         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
18900 2015-05-20  Jeff Law  <law@redhat.com>
18902         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
18903         dispose of the jump thread path when the jump threading
18904         opportunity is cancelled.
18906 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18908         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
18909         when printing the caret character.
18911 2015-05-20  Marek Polacek  <polacek@redhat.com>
18913         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
18915 2015-05-20  Marek Polacek  <polacek@redhat.com>
18917         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
18918         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
18919         * gimple-fold.c (canonicalize_bool): Likewise.
18920         (same_bool_result_p): Likewise.
18921         * tree-if-conv.c (parse_predicate): Likewise.
18923 2015-05-20  Marek Polacek  <polacek@redhat.com>
18925         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
18926         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
18928 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18930         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
18931         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
18932         values.
18934 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
18936         * config/mips/mips.h (micromips_globals): Declare.
18938 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
18940         * timevar.def (TV_INITIALIZE_RTL): New.
18941         * toplev.c (initialize_rtl): Use an auto_timevar to account this
18942         function's time to TV_INITIALIZE_RTL.
18944 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
18946         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
18947         gimple_build_nop calls.
18948         (chkp_find_bounds_for_elem): Likewise.
18949         (chkp_get_zero_bounds): Likewise.
18950         (chkp_get_none_bounds): Likewise.
18951         (chkp_get_bounds_by_definition): Likewise.
18952         (chkp_generate_extern_var_bounds): Likewise.
18953         (chkp_get_bounds_for_decl_addr): Likewise.
18954         (chkp_get_bounds_for_string_cst): Likewise.
18956 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
18958         PR tree-optimization/65447
18959         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
18960         (dump_use, dump_uses): Support to dump sub use.
18961         (record_use): New parameters to support sub use.  Remove call to
18962         dump_use.
18963         (record_sub_use, record_group_use): New functions.
18964         (compute_max_addr_offset, split_all_small_groups): New functions.
18965         (group_address_uses, rewrite_use_address): New functions.
18966         (strip_offset): New declaration.
18967         (find_interesting_uses_address): Call record_group_use.
18968         (add_candidate): New assertion.
18969         (infinite_cost_p): Move definition forward.
18970         (add_costs): Check INFTY cost and return immediately.
18971         (get_computation_cost_at): Clear setup cost and dependent bitmap
18972         for sub uses.
18973         (determine_use_iv_cost_address): Compute cost for sub uses.
18974         (rewrite_use_address_1): Rename from old rewrite_use_address.
18975         (free_loop_data): Free sub uses.
18976         (tree_ssa_iv_optimize_loop): Call group_address_uses.
18978 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
18979             Jim Wilson  <jim.wilson@linaro.org>
18981         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
18982         new  fields loadv and storev.
18983         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
18984         Initialize loadv and storev.
18985         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
18986         (cortexa53_extra_costs): Likewise.
18987         (cortexa57_extra_costs): Likewise.
18988         (xgene1_extra_costs): Likewise.
18989         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
18990         rtx_costs.
18992 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
18994         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
18995          storev.
18996         (cortexa8_extra_costs): Likewise.
18997         (cortexa5_extra_costs): Likewise.
18998         (cortexa7_extra_costs): Likewise.
18999         (cortexa12_extra_costs): Likewise.
19000         (cortexa15_extra_costs): Likewise.
19001         (v7m_extra_costs): Likewise.
19003 2015-05-20  Jeff Law  <law@redhat.com>
19005         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
19006         instead of open-coded version.  Also delete the jump thread created
19007         within this function.
19009 2015-05-20  Alan Modra  <amodra@gmail.com>
19011         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
19012         stack adjusting insn.  Formatting.
19013         (rs6000_emit_prologue): Track stack adjusting insn, and use of
19014         r12.  If possible, emit first -fsplit-stack arg pointer insn
19015         before stack adjust.  Don't use r12 to save cr if split-stack.
19017 2015-05-20  Alan Modra  <amodra@gmail.com>
19019         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
19020         Define.
19021         (rs6000_supports_split_stack): New function.
19022         * gcc/config/rs6000/rs6000.c (machine_function): Add
19023         split_stack_arg_pointer.
19024         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
19025         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
19026         rather than virtual_incoming_args_rtx.
19027         (rs6000_va_start): Likewise.
19028         (split_stack_arg_pointer_used_p): New function.
19029         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
19030         (morestack_ref): New var.
19031         (gen_add3_const, rs6000_expand_split_stack_prologue,
19032         rs6000_internal_arg_pointer, rs6000_live_on_entry,
19033         rs6000_split_stack_space_check): New functions.
19034         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
19035         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
19036         (UNSPECV_SPLIT_STACK_RETURN): Define.
19037         (split_stack_prologue, load_split_stack_limit,
19038         load_split_stack_limit_di, load_split_stack_limit_si,
19039         split_stack_return, split_stack_space_check): New expands and insns.
19040         * gcc/config/rs6000/rs6000-protos.h
19041         (rs6000_expand_split_stack_prologue): Declare.
19042         (rs6000_split_stack_space_check): Declare.
19044 2015-05-20  Alan Modra  <amodra@gmail.com>
19046         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
19047         (direct_return): Test vrsave_size rather than vrsave_mask.
19048         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
19049         (rs6000_emit_epilogue): Likewise.
19051 2015-05-20  Alan Modra  <amodra@gmail.com>
19053         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
19054         when not saving registers.
19055         (debug_stack_info): Adjust to omit printing unused offsets,
19056         as before.
19057         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
19058         expression.
19060 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19062         PR c++/65835
19063         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
19064         value_type to const char *.
19066 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
19068         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
19069         to build a biarch toolchain again.
19071 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
19073         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
19074         or implicit declarations.
19075         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
19076         into it.
19077         (get_odr_type): Check type has linkage before adding bases.
19078         (register_odr_type): Check that type has linkage before adding it.
19079         (type_known_to_have_no_deriavations_p): Rename to ..
19080         (type_known_to_have_no_derivations_p): This one.
19081         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
19082         (type_known_to_have_no_derivations_p): This one.
19083         * ipa-polymorphic-call.c
19084         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
19085         type has linkage.
19087 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
19089         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
19090         (layout_type): Use RECORD_OR_UNION_TYPE_P.
19092 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19094         * config/s390/s390.c (s390_vector_bool_type_p): New function.
19095         (s390_invalid_binary_op): New function.
19096         (TARGET_INVALID_BINARY_OP): Define macro.
19098 2015-05-19  David Sherwood  <david.sherwood@arm.com>
19100         * loop-invariant.c (create_new_invariant): Don't calculate address cost
19101         if mode is not a scalar integer.
19102         (get_inv_cost): Increase computational cost for unused invariants.
19104 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19106         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
19107         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
19108         * config/s390/s390-builtin-types.def: New file.
19109         * config/s390/s390-builtins.def: New file.
19110         * config/s390/s390-builtins.h: New file.
19111         * config/s390/s390-c.c: New file.
19112         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
19113         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
19114         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
19115         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
19116         prototypes.
19117         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
19118         Include.
19119         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
19120         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
19121         variable definitions.
19122         (s390_const_operand_ok): New function.
19123         (s390_expand_builtin): Rewrite.
19124         (s390_init_builtins): New function.
19125         (s390_handle_vectorbool_attribute): New function.
19126         (s390_attribute_table): Add s390_vector_bool attribute.
19127         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
19128         (s390_branch_condition_mask): Generate masks for new modes.
19129         (s390_expand_vec_compare_cc): New function.
19130         (s390_mangle_type): Add mangling for vector bool types.
19131         (enum s390_builtin): Remove.
19132         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
19133         efpc builtins.
19134         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
19135         s390_cpu_cpp_builtins.
19136         (REGISTER_TARGET_PRAGMAS): New macro.
19137         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
19138         (insn_cmp mode attribute): Add new CC modes.
19139         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
19140         (lcbb): New pattern definition.
19141         * config/s390/s390intrin.h: Include vecintrin.h.
19142         * config/s390/t-s390: New file.
19143         * config/s390/vecintrin.h: New file.
19144         * config/s390/vector.md: Include vx-builtins.md.
19145         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
19146         support.
19148 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19150         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
19151         CCVFHE.
19152         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
19153         (s390_select_ccmode): Likewise.
19154         (s390_canonicalize_comparison): Swap operands if necessary.
19155         (s390_expand_vec_compare_scalar): Expand DFmode compare using
19156         single element vector instructions.
19157         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
19158         (s390_branch_condition_mask): Generate CC masks for the new modes.
19159         * config/s390/s390.md (v0, vf, vd): New mode attributes.
19160         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
19161         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
19162         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
19163         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
19164         (*extend<DSF:mode><BFP:mode>2): New insn definition.
19165         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
19166         (extend<DSF:mode><BFP:mode>2): Turn into expander.
19167         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
19168         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
19169         (sqrt<mode>2): Add vector instruction.
19171 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19173         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
19174         constraints.
19175         * config/s390/predicates.md (const0_operand, constm1_operand)
19176         (constable_operand): Accept vector operands.
19177         * config/s390/s390-modes.def: Add supported vector modes.
19178         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
19179         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
19180         (s390_bytemask_vector_p, s390_expand_vec_strlen)
19181         (s390_expand_vec_compare, s390_expand_vcond)
19182         (s390_expand_vec_init): Add prototypes.
19183         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
19184         (s390_vector_mode_supported_p): New function.
19185         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
19186         (s390_contiguous_bitmask_vector_p): New function.
19187         (s390_bytemask_vector_p): New function.
19188         (s390_split_ok_p): Vector regs don't work either.
19189         (regclass_map): Add VEC_REGS.
19190         (s390_legitimate_constant_p): Handle vector constants.
19191         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
19192         (legitimate_reload_vector_constant_p): New function.
19193         (s390_preferred_reload_class): Handle CONST_VECTOR.
19194         (s390_reload_symref_address):  Likewise.
19195         (s390_secondary_reload): Vector memory instructions only support
19196         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
19197         (s390_emit_ccraw_jump): New function.
19198         (s390_expand_vec_strlen): New function.
19199         (s390_expand_vec_compare): New function.
19200         (s390_expand_vcond): New function.
19201         (s390_expand_vec_init): New function.
19202         (s390_dwarf_frame_reg_mode): New function.
19203         (print_operand): Handle addresses with 'O' and 'R' constraints.
19204         (NR_C_MODES, constant_modes): Add vector modes.
19205         (s390_output_pool_entry): Handle vector constants.
19206         (s390_hard_regno_mode_ok): Handle vector registers.
19207         (s390_class_max_nregs): Likewise.
19208         (s390_cannot_change_mode_class): New function.
19209         (s390_invalid_arg_for_unprototyped_fn): New function.
19210         (s390_function_arg_vector): New function.
19211         (s390_function_arg_float): Remove size variable.
19212         (s390_pass_by_reference): Handle vector arguments.
19213         (s390_function_arg_advance): Likewise.
19214         (s390_function_arg): Likewise.
19215         (s390_return_in_memory): Vector values are returned in a VR if
19216         possible.
19217         (s390_function_and_libcall_value): Handle vector arguments.
19218         (s390_gimplify_va_arg): Likewise.
19219         (s390_call_saved_register_used): Consider the arguments named.
19220         (s390_conditional_register_usage): Disable v16-v31 for non-vec
19221         targets.
19222         (s390_preferred_simd_mode): New function.
19223         (s390_support_vector_misalignment): New function.
19224         (s390_vector_alignment): New function.
19225         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
19226         (TARGET_VECTOR_MODE_SUPPORTED_P)
19227         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
19228         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
19229         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
19230         (TARGET_VECTOR_ALIGNMENT): Define target macro.
19231         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
19232         (FIRST_PSEUDO_REGISTER): Increase value.
19233         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
19234         (VECTOR_REG_P): Define macros.
19235         (FIXED_REGISTERS, CALL_USED_REGISTERS)
19236         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
19237         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
19238         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
19239         Add vector registers.
19240         (CANNOT_CHANGE_MODE_CLASS): Call C function.
19241         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
19242         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
19243         memory.
19244         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
19245         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
19246         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
19247         (VR*_REGNUM): New constants.
19248         (ALL): New mode iterator.
19249         (INTALL): Remove mode iterator.
19250         Include vector.md.
19251         (movti): Implement TImode moves for VRs.
19252         Disable TImode splitter for VR targets.
19253         Implement splitting TImode GPR<->VR moves.
19254         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
19255         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
19256         reload<mode>_la_in, reload<mode>_la_out.
19257         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
19258         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
19259         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
19260         (mov<mode> SF SD): Prefer lder, lde for loading.
19261         Add lrl and strl instructions.
19262         Add vector instructions.
19263         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
19264         Call s390_expand_vec_strlen on z13.
19265         (*cc_to_int): Change predicate to nonimmediate_operand.
19266         (addti3): Rename to *addti3.  New expander.
19267         (subti3): Rename to *subti3.  New expander.
19268         * config/s390/vector.md: New file.
19270 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19272         * common/config/s390/s390-common.c (processor_flags_table): Add
19273         z13.
19274         * config.gcc: Add z13.
19275         * config/s390/s390-opts.h (enum processor_type): Add
19276         PROCESSOR_2964_Z13.
19277         * config/s390/s390.c (s390_adjust_priority): Check for
19278         PROCESSOR_2964_Z13.
19279         (s390_reorg): Likewise.
19280         (s390_sched_reorder): Likewise.
19281         (s390_sched_variable_issue): Likewise.
19282         (s390_loop_unroll_adjust): Likewise.
19283         (s390_option_override): Likewise. Default to -mvx when available.
19284         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
19285         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
19286         (TARGET_VX_ABI): Define macros.
19287         macros.
19288         (TARGET_DEFAULT): Add MASK_OPT_VX.
19289         * config/s390/s390.md ("cpu" attribute): Add z13.
19290         ("cpu_facility" attribute): Add vec.
19291         * config/s390/s390.opt (processor_type): Add z13.
19292         (mvx): New options.
19293         * doc/invoke.texi: Add z13 option for -march.
19295 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19297         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
19298         mode check to make sure that only scalar integer values are
19299         accepted.
19301 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
19303         * tree.c (verify_type_variant): Fix #undef.
19304         (gimple_canonical_types_compatible_p): Move here from lto.c
19305         (verify_type): Verify TYPE_CANONICAL compatibility.
19306         * tree.h (gimple_canonical_types_compatible_p): Declare.
19308 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
19310         PR middle-end/66199
19311         * tree.h (OMP_TEAMS_COMBINED): Define.
19312         * gimplify.c (enum gimplify_omp_var_data): Add
19313         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
19314         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
19315         (omp_notice_variable): Accept both ORT_TEAMS
19316         and ORT_COMBINED_TEAMS.  Don't recurse if
19317         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
19318         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
19319         GOVD_FIRSTPRIVATE.
19320         (omp_no_lastprivate): New function.
19321         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
19322         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
19323         notice_outer and set appropriate bits, otherwise make
19324         sure default(none) combined constructs won't complain.
19325         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
19326         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
19327         omp_no_lastprivate either remove the clause or turn it
19328         into OMP_CLAUSE_PRIVATE.
19329         (gimplify_omp_for): Fix up handling of implicit
19330         lastprivate or linear iterators.
19331         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
19332         ORT_COMBINED_TEAMS.
19333         * omp-low.c (lower_omp_for_lastprivate): For combined
19334         for simd use fd.loop.n2 from the for rather than simd.
19336 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
19338         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
19339         instead of gen_rtx_raw_REG.
19340         (cris_expand_epilogue): Likewise.
19341         * config/microblaze/microblaze.c (microblaze_classify_address):
19342         Likewise.
19343         * config/sparc/sparc.md: Likewise.
19345 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
19347         * config/alpha/alpha.c (alpha_legitimize_reload_address)
19348         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
19349         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
19350         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
19351         Use CASE_CONST_SCALAR_INT.
19352         (print_operand) <case 'M'>: Use mode_width_operand to check the
19353         value of the constant.
19354         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
19355         * config/alpha/predicates.md (input_operand): Use general_operand
19356         instead of match_code as operand check.
19357         (symbolic_operand): Use match_code with subexpression digits.
19358         * config/alpha/constraints.md (Q): Ditto.
19360 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19362         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
19364 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19366         * config/s390/s390.c (s390_secondary_reload): Fix check for
19367         load/store relative.
19369 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19371         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
19372         alternative_mask to uint64_t.
19374 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
19376         PR tree-optimization/66187
19377         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
19378         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
19379         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
19381 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
19383         * diagnostic.c (diagnostic_report_current_module): Strengthen
19384         local "new_map" from const line_map * to
19385         const line_map_ordinary *.
19386         * genmatch.c (error_cb): Likewise for local "map".
19387         (output_line_directive): Likewise for local "map".
19388         * input.c (expand_location_1): Likewise for local "map".
19389         Pass NULL rather than &map to
19390         linemap_unwind_to_first_non_reserved_loc, since the value is never
19391         read from there, and the value written back not read from here.
19392         (is_location_from_builtin_token): Strengthen local "map" from
19393         const line_map * to const line_map_ordinary *.
19394         (dump_location_info): Strengthen locals "map" from
19395         line_map *, one to const line_map_ordinary *, the other
19396         to const line_map_macro *.
19397         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
19398         const line_map * to const line_map_macro *.
19399         (maybe_unwind_expanded_macro_loc): Add a call to
19400         linemap_check_macro when writing to the "map" field of the
19401         loc_map_pair.
19402         Introduce local const line_map_ordinary * "ord_map", using it in
19403         place of "map" in the part of the function where we know we have
19404         an ordinary map.  Strengthen local "m" from const line_map * to
19405         const line_map_ordinary *.
19407 2015-05-19  Nick Clifton  <nickc@redhat.com>
19409         PR target/66156
19410         * config/msp430/msp430.md (zero_extendhisi2): Add support for
19411         separate source and destination registers.
19413 2015-05-19  Richard Biener  <rguenther@suse.de>
19415         PR tree-optimization/66165
19416         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
19417         for no load permutation.
19419         PR tree-optimization/66185
19420         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
19421         when building the SLP node from scalars.
19423 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
19424             Tristan Gingold  <gingold@adacore.com>
19426         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
19427         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
19428         (expand_stack_restore): Call record_new_stack_level.
19429         (expand_stack_save): Do not call do_pending_stack_adjust.
19430         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
19431         * calls.c (expand_call): Call record_new_stack_level for alloca.
19432         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
19433         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
19434         (update_sjlj_context): New global function.
19435         * except.h (update_sjlj_context): Declare.
19436         * explow.c (record_new_stack_level): New global function.
19437         (allocate_dynamic_stack_space): Call record_new_stack_level.
19438         * explow.h (record_new_stack_level): Declare.
19439         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
19440         * cfgrtl.c (duplicate_insn_chain): Likewise.
19442 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19444         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
19445         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
19446         STACK_GROWS_DOWNWARD as normal if.
19447         (expand_call): Likewise.
19449 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
19451         PR target/54236
19452         * config/sh/sh.md (*round_int_even): New insn_and_split and
19453         accompanying new unnamed split.
19455 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
19457         * bitmap.c (bitmap_set_range): Handle count==1 specially.
19458         (bitmap_clear_range): Likewise.
19459         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
19460         bitmap_set_range unconditionally.
19461         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
19462         * df-scan.c (df_mark_reg): Likewise.
19463         * haifa-sched.c (setup_ref_regs): Likewise.
19464         * sched-rgn.c (update_live_1): Likewise.
19466 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
19468         * regs.h (END_HARD_REGNO): Delete.
19469         (END_REGNO): Move to...
19470         * rtl.h: ...here.
19471         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
19472         * caller-save.c (mark_set_regs): Likewise.
19473         * combine.c (move_deaths, distribute_notes): Likewise.
19474         * cse.c (invalidate, invalidate_for_call): Likewise.
19475         * df-scan.c (df_ref_record): Likewise.
19476         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
19477         (record_last_reg_set_info): Likewise.
19478         * reg-stack.c (convert_regs_exit): Likewise.
19479         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
19480         * resource.c (update_live_status): Likewise.
19481         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
19483 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
19485         * rtl.h (reg_info): Add an nregs field.
19486         (REG_NREGS): Use it.
19487         (SET_REGNO_RAW): Delete.
19488         (set_regno_raw): New function.
19489         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
19490         (END_REGNO): Redefine in terms of REG_NREGS.
19491         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
19492         SET_REGNO_RAW.
19493         * emit-rtl.c (set_mode_and_regno): Likewise.
19494         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
19495         instead of SET_REGNO_RAW.
19497 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
19499         * rtl.h (PUT_MODE_RAW): New macro.
19500         (PUT_REG_NOTE_KIND): Use it.
19501         (set_mode_and_regno): Declare.
19502         (gen_raw_REG): Change regno to "unsigned int".
19503         (gen_rtx_REG): Change "unsigned" to "unsigned int".
19504         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
19505         use set_mode_and_regno to change the mode of registers.
19506         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
19507         * emit-rtl.c (set_mode_and_regno): New function.
19508         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
19509         * caller-save.c (reg_save_code): Use set_mode_and_regno.
19510         * expr.c (init_expr_target): Likewise.
19511         * ira.c (setup_prohibited_mode_move_regs): Likewise.
19512         * postreload.c (reload_cse_simplify_operands): Likewise.
19514 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
19516         * caller-save.c (init_caller_save): Use word_mode and
19517         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
19518         * expr.c (init_expr_target): Likewise.
19519         * ira.c (setup_prohibited_mode_move_regs): Likewise.
19520         * postreload.c (reload_cse_regs_1): Likewise.
19522 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
19524         * rtl.def (REG): Change format to "r".
19525         * rtl.h (rtunion): Remove rt_reg.
19526         (reg_info): New structure.
19527         (rtx_def): Add reg field to main union.
19528         (X0REGATTR): Delete.
19529         (REG_CHECK): New macro.
19530         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
19531         * rtl.c (rtx_format): Document "r".
19532         (rtx_code_size): Handle REG specially.
19533         * gengenrtl.c (special_format): Return true for formats
19534         that include 'r'.
19535         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
19536         Deal with REG_ATTRS after the field loop.
19537         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
19538         * expmed.c (init_expmed): Call gen_raw_REG instead of
19539         gen_rtx_raw_REG.
19540         * expr.c (init_expr_target): Likewise.
19541         * regcprop.c (maybe_mode_change): Likewise.
19542         * varasm.c (make_decl_rtl): Likewise.
19543         * final.c (leaf_renumber_regs_insn): Return early after
19544         handling REGs.
19545         * genemit.c (gen_exp): Handle 'r' fields.
19546         * genpeep.c (match_rtx): Likewise.
19547         * gensupport.c (subst_pattern_match): Likewise.
19548         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
19549         (alter_constraints, subst_dup): Likewise.
19550         * read-rtl.c (read_rtx_code): Likewise.
19551         * print-rtl.c (print_rtx): Likewise.
19552         * genrecog.c (find_operand, find_matching_operand): Likewise.
19553         (validate_pattern, match_pattern_2): Likewise.
19554         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
19555         (rtx_test::regno_field): New function.
19556         (operator ==, safe_to_hoist_p, transition_parameter_type)
19557         (parameter_type_string, print_parameter_value)
19558         (print_nonbool_test, print_test): Handle new enum values.
19559         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
19560         * lra-constraints.c (operands_match_p): Likewise.
19562 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
19564         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
19565         Change type of new_regno to unsigned int.
19566         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
19567         new_regno to unsigned int.
19568         (df_ref_change_reg_with_loc): Remove old_regno parameter.
19569         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
19570         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
19571         (SET_REGNO_RAW): Add space after ",".
19573 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
19575         * rtl.h (REG_NREGS): New macro
19576         * alias.c (record_set): Use it.
19577         * cfgcleanup.c (mark_effect): Likewise.
19578         * combine.c (likely_spilled_retval_1): Likewise.
19579         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
19580         (move_deaths, distribute_notes): Likewise.
19581         * cselib.c (cselib_record_set): Likewise.
19582         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
19583         * df-scan.c (df_mark_reg): Likewise.
19584         * dse.c (look_for_hardregs): Likewise.
19585         * dwarf2out.c (reg_loc_descriptor): Likewise.
19586         (multiple_reg_loc_descriptor): Likewise.
19587         * expr.c (write_complex_part, read_complex_part): Likewise.
19588         (emit_move_complex): Likewise.
19589         * haifa-sched.c (setup_ref_regs): Likewise.
19590         * ira-lives.c (mark_hard_reg_live): Likewise.
19591         * lra.c (lra_set_insn_recog_data): Likewise.
19592         * mode-switching.c (create_pre_exit): Likewise.
19593         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
19594         (reload_combine_recognize_pattern): Likewise.
19595         (reload_combine_note_use, move2add_record_mode): Likewise.
19596         (reload_cse_move2add): Likewise.
19597         * reg-stack.c (subst_stack_regs_pat): Likewise.
19598         * regcprop.c (kill_value, copy_value): Likewise.
19599         (copyprop_hardreg_forward_1): Likewise.
19600         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
19601         (build_def_use): Likewise.
19602         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
19603         (deps_analyze_insn): Likewise.
19604         * sched-rgn.c (check_live_1, update_live_1): Likewise.
19605         * sel-sched.c (count_occurrences_equiv): Likewise.
19606         * valtrack.c (dead_debug_insert_temp): Likewise.
19608 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
19610         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
19611         * dse.c (note_add_store): Likewise.
19612         * ira-lives.c (mark_hard_reg_dead): Likewise.
19613         * loop-invariant.c (mark_reg_store): Likewise.
19614         (mark_reg_death): Likewise.
19615         * postreload.c (reload_combine): Likewise.
19616         (reload_combine_note_store): Likewise.
19617         (reload_combine_note_use): Likewise.
19618         * recog.c (peep2_reg_dead_p): Likewise.
19620 2015-05-19  Alan Modra  <amodra@gmail.com>
19622         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
19623         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
19624         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
19625         unused predicates.
19626         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
19627         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
19628         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
19629         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
19631 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
19633         * config/mips/mips.md (JOIN_MODE): New mode iterator.
19634         (join2_load_Store<JOIN_MODE:mode>): New pattern.
19635         (join2_loadhi): Likewise.
19636         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
19637         load-load and store-stores.
19638         * config/mips/mips.opt (mload-store-pairs): New option.
19639         (TARGET_LOAD_STORE_PAIRS): New macro.
19640         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
19641         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
19642         * config/mips/mips.c (mips_load_store_bonding_p): New function.
19644 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
19646         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
19647         explicit swaps.
19648         * dojump.c (do_compare_rtx_and_jump): Likewise.
19649         * expmed.c (emit_store_flag_1): Likewise.
19650         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
19651         * final.c (sprint_ul): Use std::reverse for reversing a string.
19652         * fold-const.c (extract_muldiv_1): Use std::swap.
19653         * genmodes.c (emit_mode_int_n): Likewise.
19654         * ifcvt.c (dead_or_predicable): Likewise.
19655         * ira-build.c (ira_merge_live_ranges): Likewise.
19656         (swap_allocno_copy_ends_if_necessary): Likewise.
19657         * ira.c (ira_setup_alts): Likewise.
19658         * loop-iv.c (iv_analyze_expr): Likewise.
19659         (implies_p): Likewise.
19660         (canon_condition): Likewise.
19661         * lra-constraints.c (swap_operands): Likewise.
19662         * lra-lives.c (lra_merge_live_ranges): Likewise.
19663         * omega.c (swap): Remove.
19664         (bswap): Remove.
19665         (omega_unprotect_1): Use std::swap.
19666         (omega_solve_geq): Likewise.
19667         * optabs.c (expand_binop_directly): Likewise.
19668         (expand_binop): Likewise.
19669         (emit_conditional_move): Likewise.
19670         (emit_conditional_add): Likewise.
19671         * postreload.c (reload_cse_simplify_operands): Likewise.
19672         * reg-stack.c (emit_swap_insn): Likewise.
19673         (swap_to_top): Likewise.
19674         (compare_for_stack_reg): Likewise.
19675         (subst_asm_stack_regs): Likewise.
19676         * reload.c (find_reloads): Likewise.
19677         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
19678         * sel-sched.c (invoke_reorder_hooks): Likewise.
19679         (create_block_for_bookkeeping): Likewise.
19680         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
19681         (lambda_matrix_right_hermite): Use std::swap.
19682         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
19683         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
19684         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
19685         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
19686         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
19687         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
19688         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
19689         * tree-vrp.c (compare_ranges): Likewise.
19690         * var-tracking.c (add_with_sets): Likewise.
19691         (vt_find_locations): Likewise.
19693 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
19695         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
19696         pie executables.
19697         (FBSD_ENDFILE_SPEC): Likewise.
19698         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
19699         config/freebsd-spec.h.
19700         (ENDFILE_SPEC): Likewise.
19702 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
19703             Richard Henderson  <rth@redhat.com>
19705         PR target/57032
19706         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
19707         Check for a memory location that is not a reference (using an AND)
19708         to an unaligned location here.
19709         * config/alpha/predicates.md (normal_memory_operand): Remove.
19711 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
19713         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
19714         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
19716 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
19718         * config/mips/mips.c (micromips_globals): New variable.
19719         (mips_set_compression_mode): Save and reinitialize target-dependent
19720         state for microMIPS.
19722 2015-05-18  Martin Liska  <mliska@suse.cz>
19724         * dbgcnt.def: Add new counter.
19725         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
19727 2015-05-18  Martin Liska  <mliska@suse.cz>
19729         * dbgcnt.def: Sort counters.
19730         * opts.c (common_handle_option): Do not compile if
19731         -fdbg-cnt-list is enabled.
19733 2015-05-18  Tom de Vries  <tom@codesourcery.com>
19735         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
19736         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
19737         address operator to va_list operand.
19738         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
19739         unconditionally.
19740         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
19741         operand.
19742         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
19743         * config/s390/s390.c (s390_gimplify_va_arg): Same.
19744         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
19746 2015-05-18  Tom de Vries  <tom@codesourcery.com>
19748         * tree-ssa-tail-merge.c: Fix whitespace.
19750 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
19752         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
19753         cortex-a17, and cortex-a17.cortex-a7.
19755 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
19757         PR target/54236
19758         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
19760 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
19762         PR target/66174
19763         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
19764         QImode inner modes for TARGET_AVX512BW.  Force mask operand
19765         to a register for AVX512F modes.
19767 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
19769         * toplev.c (emit_debug_global_declarations): Do not output debug info
19770         when doing slim LTO objects.
19772 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
19774         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
19775         odr_types_equivalent_p): Declare.
19776         (odr_type_p): Use gcc_checking_assert.
19777         (type_in_anonymous_namespace_p) Declare.
19778         (type_with_linkage_p): Declare.
19779         * common.opt (Wlto-type-mismatch): New warning.
19780         * ipa-devirt.c (compound_type_base): New function.
19781         (odr_or_derived_type_p): New function.
19782         (odr_types_equivalent_p): New function.
19783         (add_type_duplicate): Simplify.
19784         (type_with_linkage_p): Add hack to prevent false positives on C types
19785         (type_in_anonymous_namespace_p): Likewise.
19786         * tree.c (need_assembler_name_p): Use type_with_linkage.
19787         * tree.h (type_in_anonymous_namespace_p): Remove.
19788         * doc/invoke.texi (-Wlto-type-mismatch): Document
19790 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
19792         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
19793         (verify_type): Verify STRING_FLAG.
19795 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19797         PR fortran/44054
19798         * tree-pretty-print.c (percent_K_format): Replace locus pointer
19799         with accessor function.
19800         * tree-diagnostic.c (diagnostic_report_current_function): Use
19801         diagnostic_location function.
19802         (maybe_unwind_expanded_macro_loc): Likewise.
19803         (virt_loc_aware_diagnostic_finalizer): Likewise.
19804         (default_tree_printer): Replace locus pointer with accessor function.
19805         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
19806         (diagnostic_set_info_translated): Initialize second location.
19807         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
19808         (diagnostic_show_locus): Handle two locations. Call
19809         diagnostic_print_caret_line.
19810         (diagnostic_print_caret_line): New.
19811         (default_diagnostic_starter): Use diagnostic_location function.
19812         (diagnostic_report_diagnostic): Use diagnostic_location function.
19813         (verbatim): Do not set text.locus.
19814         * diagnostic.h (struct diagnostic_info): Remove location field.
19815         (struct diagnostic_context): Make caret_chars an array of two.
19816         (diagnostic_location): New inline.
19817         (diagnostic_expand_location): Handle two locations.
19818         (diagnostic_same_line): New inline.
19819         (diagnostic_print_caret_line): Declare.
19820         (CARET_LINE_MARGIN): New constant.
19821         * pretty-print.c (pp_printf): Do not set text.locus.
19822         (pp_verbatim): Do not set text.locus.
19823         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
19824         (struct text_info): Replace locus pointer with locations
19825         array. Add accessor functions.
19827 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
19828             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19830         PR target/65768
19831         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
19832         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
19833          large constants in register instead of splitting them.
19835 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
19837         PR target/66140
19838         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
19839         replacements in memory addresses.
19840         (get_unaligned_address): Ditto.
19842 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
19844         * config/ft32/*: New files for FT32 port.
19845         * doc/install.texi: Add FT32 information.
19846         * doc/invoke.texi: Add FT32 information.
19847         * doc/md.texi: Add FT32 information.
19848         * doc/contrib.texi: Self added.
19850 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
19852         PR tree-optimization/64454
19853         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
19854         (-1 - A -> ~A): Remove unnecessary condition.
19856 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
19858         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
19859         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
19860         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
19862 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
19864         * ipa-chkp.h (chkp_wrap_function): New.
19865         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
19866         (chkp_wrap_function_name): New.
19867         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
19868         to get wrapper name.
19869         * lto-cgraph.c: Include ipa-chkp.h.
19870         (input_cgraph_1): Avoid alias chain for wrappers.
19872 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
19874         PR middle-end/66134
19875         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
19876         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
19878 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19880         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
19881         (AARCH64_FL_SLOWMUL): Delete.
19882         (AARCH64_FL_CRC): Redefine to 1<<3.
19883         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
19885 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19887         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
19888         casting.
19890 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
19892         * config/alpha/alpha.md (extendqidi2): Use general_operand
19893         instead of some_operand for operand[1] predicate.
19894         (extendhidi2): Ditto.
19895         (cbranchdi4): Use general_operand instead of some_operand
19896         for operand[1] and operands[2] predicates.
19897         (cstoredi4): Ditto.
19898         * config/alpha/predicates.md (some_operand): Remove unused predicate.
19899         (some_ni_operand): Ditto.
19901 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
19903         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
19904         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
19905         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
19906         low part of the constant using alpha_emit_set_const_1.
19907         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
19909 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
19911         * varasm.c (output_constant_pool_1): Pass down alignment from
19912         constant pool entry's descriptor to output_constant_pool_2.
19913         (output_object_block): Add comment prior to call to
19914         output_constant_pool_1.
19916 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
19918         PR rtl-optimization/65862
19919         * target.def (ira_change_pseudo_allocno_class): New hook.
19920         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
19921         value of the hook.
19922         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
19923         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
19924         hook.
19925         * ira-costs.c (find_costs_and_classes): Call the hook and change
19926         classes when it is necessary.
19927         * doc/tm.texi: Update.
19929 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
19931         * config/i386/i386.md (sibcall_memory): Check that register with
19932         callee address is not also used as one of the arguments, instead
19933         of checking that it is not live after the sibcall.
19934         (sibcall_pop_memory): Ditto.
19935         (sibcall_value_memory): Ditto.
19936         (sibcall_value_pop_memory): Ditto.
19938 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
19940         * generic-match-head.c (types_match): Handle non-types.
19941         * gimple-match-head.c (types_match): Likewise.
19942         * match.pd: Remove unnecessary TREE_TYPE for types_match.
19944 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
19946         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
19947         (csneg3<mode>_insn): Enable expansion of pattern.
19949 2015-05-14  Nick Clifton  <nickc@redhat.com>
19951         * config/rl78/rl78.c (rl78_select_section): Select the correct
19952         default section based upon the category of the decl.
19954 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
19956         PR rtl-optimization/30967
19957         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
19958         destination mode for the cost of scc patterns.
19960 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
19962         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
19963         using SWIM248 mode iterator.
19964         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
19965         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
19966         for operand[2] constraint.
19967         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
19969 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
19971         PR middle-end/66133
19972         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
19973         make sure it is never noreturn, even when the task body does not
19974         return.
19975         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
19976         right before GIMPLE_OMP_RETURN.
19977         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
19978         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
19979         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
19981 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19983         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
19984         * tree-ssa-math-opts.c: Include params.h
19985         (pow_synth_sqrt_info): New struct.
19986         (representable_as_half_series_p): New function.
19987         (get_fn_chain): Likewise.
19988         (print_nested_fn): Likewise.
19989         (dump_fractional_sqrt_sequence): Likewise.
19990         (dump_integer_part): Likewise.
19991         (expand_pow_as_sqrts): Likewise.
19992         (gimple_expand_builtin_pow): Use above to attempt to expand
19993         pow as series of square roots.  Removed now unused variables.
19995 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
19997         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
19998         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
19999         Remove *p0 and *p1 arguments.  Rewrite function.
20000         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
20001         (alpha_split_const_mov): Update calls to alpha_extract_integer and
20002         alpha_emit_set_long_const.
20003         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
20004         (alpha_output_mi_thunk_osf): Ditto.
20005         * config/alpha/alpha.md (movti): Do not check operands[1]
20006         for CONST_DOUBLE.
20008 2015-05-13  Richard Biener  <rguenther@suse.de>
20010         PR tree-optimization/66129
20011         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
20012         commutative.
20013         (vect_schedule_slp_instance): Fix typo.
20015 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
20017         * common.opt (fdump-internal-locations): New option.
20018         * input.c: Include diagnostic-core.h.
20019         (get_end_location): New function.
20020         (write_digit): New function.
20021         (write_digit_row): New function.
20022         (dump_location_range): New function.
20023         (dump_labelled_location_range): New function.
20024         (dump_location_info): New function.
20025         * input.h (dump_location_info): New prototype.
20026         * toplev.c (compile_file): Handle flag_dump_locations.
20028 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
20030         * gimple-expr.h (is_gimple_constant): Reorder.
20031         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
20033 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
20035         * combine.c (simplify_set): When generating a CC set, if the
20036         source already is in the correct mode, do not wrap it in a
20037         compare.  Simplify the rest of that code.
20039 2015-05-13  Richard Biener  <rguenther@suse.de>
20041         PR tree-optimization/66123
20042         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
20043         a taken edge.
20045 2015-05-13  Richard Biener  <rguenther@suse.de>
20047         PR middle-end/66110
20048         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
20049         specially.
20050         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
20052 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
20054         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
20055         * aclocal.m4: Regenerated with automake-1.11.6.
20057 2015-05-13  Tom de Vries  <tom@codesourcery.com>
20059         PR tree-optimization/66010
20060         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
20061         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
20062         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
20063         and rval based on do_deref.
20065 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
20067         PR target/65103
20068         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
20069         link time constants into adress expressions and therefore set
20070         their cost to 0.
20072 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
20074         PR target/66112
20075         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
20076         Use SWI248 iterator instead of SWI.
20077         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
20078         Use eq_attr "alternative" "0" instead of match_test in
20079         length_immediate attribute computation.
20080         (*mulvhi4, *mulvhi4_1): New define_insns.
20082         PR target/66112
20083         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
20084         SIGNED to get precision of non-negative value.
20086 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
20088         PR target/66048
20089         * function.c (diddle_return_value_1): Process bounds first.
20090         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
20091         register.
20093 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20095         PR rtl-optimization/64616
20096         * loop-invariant.c (can_move_invariant_reg): New.
20097         (move_invariant_reg): Call above new function to decide whether
20098         instruction can just be moved, skipping creation of temporary
20099         register.
20101 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
20103         PR target/pr66047.c
20104         * i386.c (ix86_function_sseregparm): Only return -1 if local function
20105         with implied regparm is called from -mno-sse function.
20106         (init_cumulative_args): Output error if ix86_function_sseregparm
20107         return -1 and SSE register would be needed.
20108         (function_arg_advance_32): Likewise.
20109         (function_arg_32): Likewise.
20110         * i386.h (ix86_args): Add decl field.
20112 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
20114         PR ipa/65873
20115         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
20116         inlines across optimization boundary.
20118 2015-05-12  Jason Merrill  <jason@redhat.com>
20120         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
20121         string literal and macro name.
20123 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
20125         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
20126         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
20127         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
20129 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
20131         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
20132         (-Wmisleading-indentation): New option.
20133         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
20135 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
20137         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
20138         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
20139         (alpha_extract_integer): Ditto.
20140         (alpha_legitimate_constant_p): Ditto.
20141         (alpha_split_tmode_pair): Ditto.
20142         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
20143         (alpha_expand_mov): Ditto.
20144         (print_operand): Remove handling of 'H' modifier.
20145         <case 'm'>: Remove CONST_DOUBLE handling.
20146         (summarize_insn): Handle CONST_WIDE_INT.
20147         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
20148         (anddi3): Ditto.
20149         (movti): Handle CONST_WIDE_INT.
20150         * config/alpha/constraints.md ('H'): Remove constraint definition.
20151         ('G'): Do not match MODE_FLOAT class.
20152         * config/alpha/predicates.md (const0_operand): Also match
20153         const_wide_int.
20154         (non_add_const_operand): Ditto.
20155         (non_zero_const_operand): Ditto.
20156         (some_operand): Ditto.
20157         (input_operand): Ditto.  Handle CONST_WIDE_INT.
20158         (and_operand): Do not match const_double.
20159         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
20161 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
20163         PR target/65697
20164         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
20165         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
20166         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
20167         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
20168         is_mm_seq_cst, is_mm_sync): New accessor functions.
20169         * builtins.c (expand_builtin_sync_operation,
20170         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
20171         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
20172         (get_memmodel,  expand_builtin_atomic_compare_exchange,
20173         expand_builtin_atomic_load, expand_builtin_atomic_store,
20174         expand_builtin_atomic_clear): Use new accessor routines.
20175         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
20176         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
20177         (maybe_emit_sync_lock_test_and_set): Use new accessors and
20178         MEMMODEL_SYNC_ACQUIRE.
20179         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
20180         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
20181         expand_atomic_store): Use new accessors.
20182         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
20183         * tsan.c (instrument_builtin_call): Update check for memory model beyond
20184         final enum to use MEMMODEL_LAST.
20185         * c-family/c-common.c: Use new accessor for memmodel_base.
20186         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
20187         accessors.
20188         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
20189         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
20190         mem_thread_fence, *dmb): Likewise.
20191         * config/alpha/alpha.c (alpha_split_compare_and_swap,
20192         alpha_split_compare_and_swap_12): Likewise.
20193         * config/arm/arm.c (arm_expand_compare_and_swap,
20194         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
20195         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
20196         atomic_loaddi): Likewise.
20197         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
20198         Likewise.
20199         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
20200         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
20201         use new accessors.
20202         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
20203         atomic_store<mode>, atomic_compare_and_swap<mode>,
20204         atomic_exchange<mode>): Use new accessors.
20205         * config/mips/mips.c (mips_process_sync_loop): Likewise.
20206         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
20207         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
20208         rs6000_post_atomic_barrier): Add new cases.
20209         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
20210         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
20211         (atomic_load<mode>): Add new cases and use new accessors.
20212         (store_quadpti): Add new cases.
20213         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
20214         accessors.
20215         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
20216         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
20217         model, not 8.
20219 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
20221         * ipa-devirt.c (type_with_linkage_p): New function.
20222         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
20223         type has linkage.
20224         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
20225         (can_be_name_hashed_p): Simplify.
20226         (hash_odr_name): Check that type has linkage before checking if it is
20227         anonymous.
20228         (types_same_for_odr): Likewise.
20229         (odr_name_hasher::equal): Likewise.
20230         (odr_subtypes_equivalent_p): Likewise.
20231         (warn_types_mismatch): Likewise.
20232         (get_odr_type): Likewise.
20233         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
20234         * ipa-utils.h (odr_type_p): Move offline.
20235         * tree.c (need_assembler_name_p): Fix handling of types
20236         without linkages.
20237         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
20239 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
20241         * timevar.c (timevar_enable): Delete in favor of...
20242         (g_timer): New global.
20243         (struct timevar_def): Move to timevar.h inside class timer.
20244         (struct timevar_stack_def): Likewise.
20245         (timevars): Delete global in favor of field "m_timevars" within
20246         class timer in timevar.h
20247         (stack): Likewise, in favor of field "m_stack".
20248         (unused_stack_instances): Likewise, in favor of field
20249         "m_unused_stack_instances".
20250         (start_time): Likewise, in favor of field "m_start_time".
20251         (get_time): Eliminate check for timevar_enable.
20252         (timer::timer): New function, built from part of timevar_init.
20253         (timevar_init): Rewrite idempotency test from using
20254         "timevar_enable" bool to using dynamic allocation of "g_timer".
20255         Move rest of implementation into timer's constructor.
20256         (timevar_push_1): Rename to...
20257         (timer::push): ...this, adding "m_" prefixes to variables that
20258         are now fields of timer.
20259         (timevar_pop_1): Likewise, rename to...
20260         (timer::pop): ...this, and add "m_" prefixes.
20261         (timevar_start): Replace test for "timevar_enable" with one for
20262         "g_timer", and move bulk of implementation to...
20263         (timer::start): ...here, adding "m_" prefixes.
20264         (timevar_stop): Likewise, from here...
20265         (timer::stop): ...to here.
20266         (timevar_cond_start): Likewise, from here...
20267         (timer::cond_start): ...to here.
20268         (timevar_cond_stop): Likewise, from here...
20269         (timer::cond_stop): ...to here.
20270         (validate_phases): Rename to...
20271         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
20272         locals "total" and "tv" const.
20273         (timevar_print): Rename to...
20274         (timer::print): ...this, and add "m_" prefixes.  Make locals
20275         "total" and "tv" const.  Eliminate test for timevar_enable.
20276         * timevar.h (timevar_enable): Eliminate.
20277         (g_timer): New declaration.
20278         (timevar_push_1): Eliminate.
20279         (timevar_pop_1): Eliminate.
20280         (timevar_print): Eliminate.
20281         (class timer): New class.
20282         (timevar_push): Rewrite to use g_timer.
20283         (timevar_pop): Likewise.
20284         * toplev.c (toplev::~toplev): Likewise.
20286 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
20288         * arm-protos.h (arm_sched_autopref): Delete.
20289         (tune_params): Re-organize, use enums for flag values.
20290         (FUSE_OPS): New macro.
20291         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
20292         (ARM_PREFETCH_BENEFICIAL): Likewise.
20293         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
20294         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
20295         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
20296         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
20297         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
20298         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
20299         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
20300         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
20301         format.
20302         (arm_option_override, thumb2_reorg, arm_print_tune_info)
20303         (aarch_macro_fusion_pair_p): Update uses of current_tune.
20304         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
20306 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
20308         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
20309         "break".
20311 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
20312             Sandra Loosemore <sandra@codesourcery.com>
20314         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
20315         value.
20316         (REG_CLASS_NAMES): Add "IJMP_REGS".
20317         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
20318         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
20319         use new "c" register constraint.
20320         * config/nios2/constraint.md (c): New register constraint
20321         corresponding to IJMP_REGS.
20323 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
20325         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
20326         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
20327         define_splits): Delete, revamp, transmogrify into ...
20328         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
20329         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
20330         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
20331         New.
20333 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
20335         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
20336         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
20338 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
20340         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
20341         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
20342         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
20343         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
20344         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
20345         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
20346         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
20347         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
20348         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
20349         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
20350         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
20351         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
20352         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
20353         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
20354         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
20355         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
20356         and 30 corresponding splitters): Delete.
20358 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
20360         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
20361         zero_extract.
20363 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
20365         * combine.c (recog_for_combine_1): New function, factored out
20366         from recog_for_combine.
20367         (change_zero_ext): New function.
20368         (recog_for_combine): If recog fails, try again with the pattern
20369         modified by change_zero_ext; if that still fails, restore the
20370         pattern.
20372 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
20374         * combine.c (get_undo_marker): New function.
20375         (undo_to_marker): New function, largely factored out from ...
20376         (undo_all): ... this.  Adjust.
20378 2015-05-12  Richard Biener  <rguenther@suse.de>
20380         PR tree-optimization/66101
20381         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
20382         fixup if we turn a loop exit edge to a fallthru edge.
20384 2015-05-12  Richard Biener  <rguenther@suse.de>
20386         PR tree-optimization/37021
20387         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
20388         (SLP_TREE_TWO_OPERATORS): New define.
20389         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
20390         SLP_TREE_TWO_OPERATORS.
20391         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
20392         SLP node.
20393         (vect_build_slp_tree): Adjust.
20394         (vect_analyze_slp_cost_1): Likewise.
20395         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
20396         emitting two vector stmts and mixing the results.
20398 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20400         * call.c (print_z_candidates): Remove dead code.
20402 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20404         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
20405         and zEC12_simple_fp.
20406         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
20407         to 1.
20409 2015-05-12  Tom de Vries  <tom@codesourcery.com>
20411         PR tree-optimization/66010
20412         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
20413         ifn_va_arg.
20414         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
20415         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
20416         va_lists are passed, and remove corresponding handling.
20417         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
20418         do_deref argument to ifn_va_arg.
20419         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
20420         ifn_va_arg.
20422 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20424         PR target/65955
20425         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
20426         REG before taking its REGNO.
20428 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20430         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
20431         rsp->sign_bit_copies and rsp->nonzero_bits into ...
20432         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
20433         present to get more accurate information about the number of sign bit
20434         copies and non zero bits.
20436 2015-05-12  Richard Biener  <rguenther@suse.de>
20438         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
20439         do not allow unrolling.
20441 2015-05-11  Richard Henderson  <rth@redhat.com>
20443         * config/i386/i386-modes.def (CCP): New.
20444         * config/i386/i386.c (put_condition_code): Handle it.
20445         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
20447 2015-05-11  Richard Henderson  <rth@redhat.com>
20449         * target.def (md_asm_clobbers): Replace with...
20450         (md_asm_adjust): this.
20451         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
20452         (TARGET_MD_ASM_ADJUST): New.
20453         * tm.texi: Rebuild.
20454         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
20455         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
20456         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
20458         * cfgexpand.c (check_operand_nalternatives): Accept vector of
20459         constraints instead of lists of outputs and inputs.
20460         (expand_asm_stmt): Save and restore input_location around the
20461         body of the function.  Move asm data into vectors instead of
20462         building tree lists.  Generate cleanup sequences as needed,
20463         rather than waiting til the end.  Use new md_asm_adjust hook.
20465         * config/vxworks.c: Include vec.h before target.h.
20466         * gimple.c: Likewise.
20467         * incpath.c: Likewise.
20468         * mode-switching.c: Likewise.
20470         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
20471         (cris_md_asm_adjust): this.
20472         (TARGET_MD_ASM_CLOBBERS): Remove.
20473         (TARGET_MD_ASM_ADJUST): New.
20474         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
20475         (ix86_md_asm_adjust): this.
20476         (TARGET_MD_ASM_CLOBBERS): Remove.
20477         (TARGET_MD_ASM_ADJUST): New.
20478         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
20479         (mn10300_md_asm_adjust): this.
20480         (TARGET_MD_ASM_CLOBBERS): Remove.
20481         (TARGET_MD_ASM_ADJUST): New.
20482         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
20483         (rs6000_md_asm_adjust): this.
20484         (TARGET_MD_ASM_CLOBBERS): Remove.
20485         (TARGET_MD_ASM_ADJUST): New.
20486         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
20487         (visium_md_asm_adjust): this.
20488         (TARGET_MD_ASM_CLOBBERS): Remove.
20489         (TARGET_MD_ASM_ADJUST): New.
20491 2015-05-11  Richard Henderson  <rth@redhat.com>
20493         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
20494         if noutputs is zero.
20495         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
20497         * cfgexpand.c (expand_asm_operands): Merge into...
20498         (expand_asm_stmt): ... here.
20500         * cfgexpand.c (expand_asm_operands): Don't call
20501         resolve_asm_operand_names.
20502         * stmt.c (resolve_asm_operand_names): Clarify block comment.
20504 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
20506         * dwarf2out.c (gen_member_die): Sanity check that we access
20507         TYPE_MAIN_VARIANT for TYPE_METHODS.
20508         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
20509         checking TYPE_METHODS.
20510         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
20511         if non-null.
20512         (build_distinct_type_copy): Clear TYPE_METHODS.
20513         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
20514         (verify_type): Allow TYPE_METHODS to be error_mark_node.
20515         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
20517 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
20519         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
20520         (emit_pattern_before_setloc): Likewise.
20522 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
20524         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
20525         for define_peephole2s.
20526         (get_peephole2_pattern): New function.
20527         (main): Use it.  Call validate_pattern.
20529 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
20531         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
20532         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
20533         (Last callee saved reg is different for AVR_TINY architecture)
20535 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
20537         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
20538         when looking for memory references.
20540 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
20542         PR target/65753
20543         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
20544         via function pointers.
20546 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
20548         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
20549         indirect call by forcing address into a pseudo with -fno-plt.
20550         * common.opt (flag_plt): New option.
20551         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
20552         ([-fno-plt]): Document.
20554 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
20556         PR bootstrap/66105
20557         * config/rs6000/option-defaults.h: Add space between string literal
20558         and macro name.
20560 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20562         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
20563         accross ARM targets.
20565 2015-05-11  Christian Bruel  <christian.bruel@st.com>
20567         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
20568         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
20570 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
20572         PR rtl-optimization/66076
20573         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
20574         Don't grow the heap array if it is already big enough from a
20575         previous iteration.
20577 2015-05-11  Christian Bruel  <christian.bruel@st.com>
20579         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
20580         (is_called_in_ARM_mode): Remove.
20581         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
20582         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
20583         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
20584          arm_declare_function_name.
20586 2015-05-11  Christian Bruel  <christian.bruel@st.com>
20588         * config/arm/arm.c (arm_option_override): Reoganized and split into :
20589         (arm_option_params_internal); New function.
20590         (arm_option_check_internal): New function.
20591         (arm_option_override_internal): New function.
20592         (thumb_code, thumb1_code): Remove.
20593         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
20594         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
20595         (thumb_code, thumb1_code): Remove.
20596         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
20598 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
20600         * config/alpha/alpha.c (alpha_emit_set_const_1)
20601         (alpha_emit_set_long_const, alpha_extract_integer)
20602         (alpha_legitimate_constant_p, alpha_split_const_mov)
20603         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
20604         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
20605         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
20606         HOST_WIDE_INT_1U.
20607         * config/alpha/predicates.md (mode_mask_operand): Do not match
20608         const_double RTX.
20609         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
20610         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
20611         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
20612         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
20613         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
20615 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
20617         PR target/65780
20618         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
20619         default_binds_local_p_2.
20620         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
20621         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
20623 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
20625         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
20627 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
20629         Patch by Richard Biener
20630         * coverage.c (coverage_obj_init): Delay building of type variant
20631         until the type is finished.
20633 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
20635         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
20636         mismatch between C and C++ type; compoare correctly ARG_TYPES
20637         for non-prototypes and output correctly parameter index for METHOD_TYPE.
20638         (odr_types_equivalent_p): Fix wording of warning about attributes;
20639         it is OK to match prototype and non-prototype.
20641 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
20643         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
20644         TYPE_ARG_TYPES list.
20645         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
20646         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
20648 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
20650         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
20651         * tree.h (is_lang_specific): Constify.
20653 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
20655         PR tree-optimization/64454
20656         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
20657         Rewrite.
20659 2015-05-08  Jason Merrill  <jason@redhat.com>
20661         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
20662         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
20663         config/darwin.h, config/darwin9.h, config/elfos.h,
20664         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
20665         config/microblaze/microblaze.h, config/mips/mips.h,
20666         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
20667         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
20668         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
20669         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
20670         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
20671         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
20672         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
20673         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
20674         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
20675         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
20676         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
20677         between string literal and macro name.
20679 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20681         * jump.c: Change argument types to rtx_insn *.
20682         * rtl.h: Adjust.
20684 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20686         * lra-constraints.c: Change argument type to rtx_insn *.
20688 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20690         * df-problems.c: Change argument type to rtx_insn *.
20692 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20694         * combine.c: Change argument type to rtx_insn *.
20696 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20698         * rtl.h: Adjust.
20699         * rtlanal.c: Change argument type to rtx_insn *.
20701 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20703         * sched-deps.c: Change argument types to rtx_insn *.
20704         * sched-int.h: Adjust.
20706 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20708         * dwarf2cfi.c: Change argument type to rtx_insn *.
20710 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20712         * ira.c (decrease_live_ranges_number): Changetype of local
20713         variable to rtx_insn *.
20714         * recog.c: Change argument types to rtx_insn *.
20715         * recog.h: Adjust.
20717 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20719         * reorg.c: Change argument types to rtx_insn *.
20721 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20723         * ira-color.c: Change argument types to rtx_insn *.
20724         * lra-eliminations.c: Likewise.
20725         * ira.h: Adjust.
20727 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20729         * gcse.c: Change argument types to rtx_insn *.
20731 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20733         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
20735 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20737         * emit-rtl.c (emit_debug_insn_before): Change argument type to
20738         rtx_insn *.
20739         * rtl.h: Adjust.
20741 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20743         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
20744         * rtl.h: Adjust.
20746 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20748         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
20749         * rtl.h: Adjust.
20751 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20753         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
20754         * rtl.h: Adjust.
20756 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20758         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
20759         * rtl.h: Adjust.
20761 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20763         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
20764         to rtx_insn *.
20765         * rtl.h: Adjust.
20767 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20769         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
20770         to rtx_insn *.
20771         * rtl.h: Likewise.
20773 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20775         * except.c (can_nonlocal_goto): Change type of argument to
20776         rtx_insn *.
20777         * rtl.h: Adjust.
20779 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20781         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
20782         * rtl.h: Adjust.
20784 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20786         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
20787         * cfgrtl.c (can_delete_label_p): Adjust.
20788         * rtl.h: likewise.
20790 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20792         * reorg.c (stop_search_p): Change argument to rtx_insn *.
20794 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20796         * except.c (make_reg_eh_region_note): Change argument to
20797         rtx_insn *.
20798         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
20799         * except.h: Adjust.
20801 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20803         * mode-switching.c (commit_mode_sets): Change type of local
20804         variable from rtx to rtx_insn *.
20806 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
20808         * doc/install.texi (--enable-languages): Add missing jit and lto info.
20809         Add ^ to grep command.
20810         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
20811         arg to last gimple_simplify declaration.  Add missing gimple_build
20812         declaration for built-in function case with four tree args.
20814 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
20815             Szabolcs Nagy  <szabolcs.nagy@arm.com>
20817         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
20818         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
20819         (GNU_USER_DYNAMIC_LINKERN32): Update.
20821 2015-05-08  Richard Biener  <rguenther@suse.de>
20823         PR tree-optimization/66036
20824         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
20825         Handle strided group loads.
20826         (vect_verify_datarefs_alignment): Likewise.
20827         (vect_enhance_data_refs_alignment): Likewise.
20828         (vect_analyze_group_access): Likewise.
20829         (vect_analyze_data_ref_access): Likewise.
20830         (vect_analyze_data_ref_accesses): Likewise.
20831         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
20832         (vectorizable_load): Likewise.
20834 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
20836         * config/rs6000/rs6000.md: Require operand inequality in one
20837         of the peepholes.
20839 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
20840             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
20842         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
20843         from (set ...).
20844         * config/rx/rx.md (movdi, movdf): Likewise.
20845         Likewise for define_peephole2s.
20847 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
20849         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
20850         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
20851         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
20852         vtst_u64): Rewrite using gcc vector extensions.
20854 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
20856         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
20857         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
20859 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
20861         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
20863 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20865         * config/glibc-stdint.h (OPTION_MUSL): Define.
20866         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
20867         Change the definition based on OPTION_MUSL for 64 bit targets.
20868         * config/linux.h (OPTION_MUSL): Redefine.
20869         * config/alpha/linux.h (OPTION_MUSL): Redefine.
20870         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
20871         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
20873 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
20874             Szabolcs Nagy  <szabolcs.nagy@arm.com>
20876         * config.gcc (LIBC_MUSL): New tm_defines macro.
20877         * config/linux.h (OPTION_MUSL): Define.
20878         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
20879         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
20880         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
20881         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
20882         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
20883         * config/linux.opt (mmusl): New option.
20884         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
20885         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
20886         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
20887         * configure: Regenerate.
20889 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
20890             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20892         PR target/48904
20893         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
20894         * config/i386/knetbsd-gnu64.h: New file.
20896 2015-05-08  Marek Polacek  <polacek@redhat.com>
20898         PR c/64918
20899         * doc/invoke.texi: Document -Woverride-init-side-effects.
20901 2015-05-07  Marek Polacek  <polacek@redhat.com>
20903         PR c/65179
20904         * doc/invoke.texi: Document -Wshift-negative-value.
20906 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
20908         * gcov-tool.c (do_merge): Refactore to remove int ret.
20909         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
20910         !type == FUNC to type != FUNC.
20911         * reload.h (struct target_reload): Changee to type of
20912         x_spill_indirect_levels from bool to unsigned char.
20914 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
20916         * rtl.h (always_void_p): New function.
20917         * gengenrtl.c (always_void_p): Likewise.
20918         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
20919         with code foo are always VOIDmode.
20920         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
20921         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
20922         compare-elim.c, config/aarch64/aarch64.c,
20923         config/aarch64/aarch64.md, config/alpha/alpha.c,
20924         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
20925         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
20926         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
20927         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
20928         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
20929         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
20930         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
20931         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
20932         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
20933         config/ia64/vect.md, config/iq2000/iq2000.c,
20934         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
20935         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
20936         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
20937         config/mep/mep.c, config/microblaze/microblaze.c,
20938         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
20939         config/mn10300/mn10300.c, config/msp430/msp430.c,
20940         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
20941         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
20942         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
20943         config/rs6000/altivec.md, config/rs6000/rs6000.c,
20944         config/rs6000/rs6000.md, config/rs6000/vector.md,
20945         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
20946         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
20947         config/sh/sh.md, config/sh/sh_treg_combine.cc,
20948         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
20949         config/spu/spu.md, config/stormy16/stormy16.c,
20950         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
20951         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
20952         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
20953         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
20954         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
20955         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
20956         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
20957         var-tracking.c: Update calls accordingly.
20959 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
20961         PR middle-end/192
20962         PR middle-end/54303
20963         * varasm.c (function_mergeable_rodata_prefix): New function.
20964         (mergeable_string_section): Use it.
20965         (mergeable_constant_section): Use it.
20967 2015-05-07  Jeff Law  <law@redhat.com>
20969         PR target/39726
20970         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
20971         simplifier to narrow arithmetic.
20972         * generic-match-head.c: (types_match, single_use): New functions.
20973         * gimple-match-head.c: (types_match, single_use): New functions.
20975 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
20977         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
20978         rtx type.
20980 2015-05-07  Richard Biener  <rguenther@suse.de>
20982         PR tree-optimization/66002
20983         * passes.def: Schedule another pass_merge_phi after ifcombine, right
20984         before phiopt.
20986 2015-05-07  Marek Polacek  <polacek@redhat.com>
20987             Martin Uecker  <uecker@eecs.berkeley.edu>
20989         * doc/invoke.texi: Document -fsanitize=bounds-strict.
20990         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
20991         into SANITIZE_NONDEFAULT.
20992         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
20994 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
20996         PR target/66015
20997         * config/alpha/alpha.c (alpha_override_options_after_change): New.
20998         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
20999         (alpha_override_options): Move align_loops, align_jumps and
21000         align_functions handling into alpha_override_options_after_change.
21002 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
21003             Chris Jones  <chrisj@nvidia.com>
21004             Joshua Conner  <jconner@nvidia.com>
21006         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
21007         linking of crtfastmath.o.
21008         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
21010 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
21012         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
21013         (cstore<mode>4_unsigned_imm): New expander.
21014         (cstore<mode>4): Remove empty constraint strings.  Use the new
21015         expanders.
21017 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
21019         PR target/64208
21020         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
21021         alternatives.
21023 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21025         * config/aarch64/geniterators.sh: Use standard BRE in sed.
21027 2015-05-06  Alan Modra  <amodra@gmail.com>
21029         PR target/66033
21030         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
21031         (UNSPEC_NOP): Define.
21032         (reload_vsx_from_gpr<mode>): Add missing DONE.
21033         (reload_gpr_from_vsx<mode>): Likewise.
21034         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
21035         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
21037 2015-05-06  Christian Bruel  <christian.bruel@st.com>
21039         PR target/66015
21040         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
21041         align_jumps, align_functions into aarch64_override_options_after_change.
21043 2015-05-06  Richard Biener  <rguenther@suse.de>
21045         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
21046         vect_transform_slp_perm_load to check if we support a permutation
21047         for basic-block vectorization.
21049 2015-05-06  Nick Clifton  <nickc@redhat.com>
21051         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
21052         used, even if it is not being used as a frame pointer.
21054 2015-05-05  Jason Merrill  <jason@redhat.com>
21056         * dwarf2out.c (gen_member_die): Don't emit anything for an
21057         anonymous class constructor.
21059 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
21061         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
21062         that it reflects the block structure.
21063         (afdo_propagate_edge): Likewise.
21064         (afdo_calculate_branch_prob): Likewise.
21065         (afdo_annotate_cfg): Likewise.
21066         * cfgcleanup.c (equal_different_set_p): Likewise.
21067         (try_crossjump_to_edge): Likewise.
21068         * cgraph.c (cgraph_node::verify_node): Likewise.
21069         * cgraphunit.c (expand_all_functions): Likewise.
21070         * config/i386/i386.c (ix86_expand_copysign): Likewise.
21071         (exact_dependency_1): Likewise.
21072         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
21073         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
21074         * gensupport.c (process_define_subst): Likewise.
21075         * lto-wrapper.c (merge_and_complain): Likewise.
21076         * tree-if-conv.c (if_convertible_bb_p): Likewise.
21077         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
21078         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
21079         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
21080         * tree-vect-loop.c (vectorizable_reduction): Likewise.
21081         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
21082         * tree-vect-stmts.c (vectorizable_shift): Likewise.
21083         * tree-vrp.c (vrp_finalize): Likewise.
21084         * tree.c (variably_modified_type_p): Likewise.
21086 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
21088         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
21089         on darwin12 and later.
21090         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
21091         file to pass -rdynamic on darwin12 and later.
21092         * config/darwin.opt (rdynamic): Add.
21094 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
21096         * doc/extend.texi (C Extensions): Update menu for moved Variable
21097         Attributes and Type Attributes sections.
21099 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
21101         PR target/65990
21102         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
21103         if rep_8byte stringop strategy was specified for 32-bit target.
21105 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
21107         PR target/65915
21108         * config/i386/i386.md (vector convert to float spltiter): Check for
21109         xmm16+, when splitting scalar float conversion.
21110         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
21112 2015-05-05  Nick Clifton  <nickc@redhat.com>
21114         * config/msp430/msp430-opts.h (enum msp430_regions): New.
21115         * config/msp430/msp430.c (msp430_override_options): Complain if
21116         -mcode-region or -mdata-region is used on a non MSP430X.
21117         (msp430_section_attr): New function.  Checks lower, upper and
21118         either attributes.
21119         (msp430_attribute_table): Add lower, upper and either.
21120         (gen_prefix): New function.  Generates a prefix for a section
21121         name.
21122         (msp430_select_section): New function - handles the choice of
21123         section for an object.  Takes into account memory region
21124         attributes and options.
21125         (msp430_function_section): Use gen_prefix.
21126         (TARGET_SECTION_TYPE_FLAGS): Define.
21127         (msp430_section_type_flags): New function.
21128         (TARGET_ASM_UNIQUE_SECTION): Define.
21129         (msp430_unique_section): New function.
21130         (msp430_output_aligned_decl_common): New function.
21131         (msp430_do_not_relax_short_jumps): New function.
21132         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
21133         Define.
21134         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
21135         * config/msp430/msp430-protos.h
21136         (msp430_do_not_relax_short_jumps): New prototype.
21137         (msp430_output_aligned_decl_common): New prototype.
21138         * config/msp430/msp430.md (length): New attribute.
21139         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
21140         then use a long code sequence for short jumps.
21141         * config/msp430/msp430.opt (mcode-region): New.
21142         (mdata-region): New.
21143         * doc/invoke.texi: Document new options.
21144         * doc/extend.texi: Document new attributes.
21146 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
21148         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
21149         (tune_params): Add field branch_costs.
21150         (aarch64_branch_cost): Declare.
21151         * gcc/config/aarch64.c (generic_branch_cost): New.
21152         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
21153         (cortexa53_tunings): Likewise.
21154         (cortexa57_tunings): Likewise.
21155         (thunderx_tunings): Likewise.
21156         (xgene1_tunings): Likewise.
21157         (aarch64_branch_cost): Define.
21158         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
21160 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
21162         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
21163         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
21164         * config/i386/i386.md: Ditto.
21165         * config/i386/winnt.c: Ditto.
21167 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
21169         * doc/extend.texi (__atomic Builtins): Move implementation details
21170         to the end of the description, rewrite opening paragraphs, state
21171         difference with __sync builtins, state C11/C++11 assumptions,
21172         weaken itemized descriptions, add explanation of memory model
21173         behaviour, expand description of compare-exchange, simplify text.
21175 2015-05-05  Renlin Li  <renlin.li@arm.com>
21177         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
21179 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
21181         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
21182         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
21183         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
21184         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
21185         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
21186         * configure: Regenerate.
21187         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
21188         * doc/install.texi (aarch64*-*-*): Document new
21189         --enable-fix-cortex-a53-843419 option.
21190         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
21191         and -mno-fix-cortex-a53-843419 options.
21193 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
21195         PR target/65871
21196         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
21198 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
21200         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
21201         fix overactive TYPE_MIN_VALUE check and add FIXME for type
21202         compatibility problems.
21204 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
21206         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
21207         constraints.
21208         (cbranchsi4_reg): New.
21209         * config/microblaze/microblaze.c
21210         (microblaze_expand_conditional_branch_reg): New.
21211         * config/microblaze/microblaze-protos.h
21212         (microblaze_expand_conditional_branch_reg): New prototype.
21214 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
21216         * config/microblaze/microblaze.md (peephole2): New.
21218 2015-05-04  Jeff Law  <law@redhat.com>
21220         Revert:
21221         2015-05-04  Jeff Law  <law@redhat.com>
21223         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
21224         simplifier to narrow arithmetic.
21225         * generic-match-head.c: (types_match, single_use): New functions.
21226         * gimple-match-head.c: (types_match, single_use): New functions.
21228 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
21230         PR target/65987
21231         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
21232         (split_branches): Likewise.
21234 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
21236         * common.opt (fdelete-null-pointer-checks): Init to -1.
21237         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
21238         override flag_delete_null_pointer_checks default.
21239         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
21240         behavior re address zero.  Better document target-specific behavior.
21241         (-fisolate-errneous-paths-dereference): Mention relationship to
21242         -fdelete-null-pointer-checks.
21244 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
21246         PR tree-optimization/65984
21247         * ubsan.c: Include tree-cfg.h.
21248         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
21249         stmt_could_throw_p test, rename can_throw variable to ends_bb.
21251 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
21253         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
21254         to CONST_DOUBLE_P predicate.
21255         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
21256         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
21257         allow only operands that satisfy standard_sse_constant_p predicate.
21258         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
21259         to CONST_DOUBLE_P predicate.
21261 2015-05-04  Jeff Law  <law@redhat.com>
21263         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
21264         simplifier to narrow arithmetic.
21265         * generic-match-head.c: (types_match, single_use): New functions.
21266         * gimple-match-head.c: (types_match, single_use): New functions.
21268 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
21270         * config/arm/arm.c: Restore bootstrap.
21272 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
21274         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
21275         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
21276         as CONST_WIDE_INT, not CONST_DOUBLE.
21277         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
21278         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
21279         (ix86_find_base_term): Do not check for CONST_DOUBLE.
21280         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
21281         (ix86_build_signbit_mask): Rewrite using wide ints.
21282         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
21283         (ix86_rtx_costs): Handle CONST_WIDE_INT.
21284         (find_constant): Ditto.
21285         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
21286         using gen_int_mode.
21287         * config/i386/predicates.md (x86_64_immediate_operand)
21288         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
21289         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
21290         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
21291         (const0_operand): Also match const_wide_int.
21292         (constm1_operand): Ditto.
21293         (const1_operand): Ditto.
21295 2015-05-04  Richard Biener  <rguenther@suse.de>
21297         PR tree-optimization/65965
21298         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
21299         store groups at gaps.
21301 2015-05-04  Richard Biener  <rguenther@suse.de>
21303         PR tree-optimization/65935
21304         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
21305         then make sure to apply that swapping to the IL.
21307 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
21309         * Makefile.in (PATCHLEVEL_c): New variable.
21310         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
21311         expand the same way as if DEVPHASE_c was non-empty.
21313 2015-05-04  Kai Tietz  <ktietz@redhat.com>
21315         PR target/65559
21316         * lto-wrapper.c (run_gcc): Open filename
21317         in binary-mode.
21319 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
21321         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
21322         sections up in file, to immediately after the Function Attributes
21323         section.
21325 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
21327         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
21329 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21331         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
21332         (insert_partition_copy_on_edge): Adjust.
21333         (insert_rtx_to_part_on_edge): Likewise.
21334         (insert_part_to_rtx_on_edge): Likewise.
21336 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21338         * function.c (set_return_jump_label): Change type of argument to
21339         rtx_insn *.
21340         * function.h (set_return_jump_label): Adjust.
21342 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21344         * reload.h (struct reg_equivs_t): Change type of init to
21345         rtx_insn *.
21346         * ira.c (fix_reg_equiv_init): Adjust.
21347         * reload1.c (eliminate_regs_1): Likewise.
21348         (init_eliminable_invariants): Likewise.
21350 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21352         * cselib.c (fp_setter_insn): Take a rtx_insn *.
21353         * cselib.h (fp_setter_insn): Adjust.
21355 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21357         * recog.c (struct validate_replace_src_data): Change type of
21358         insn field to rtx_insn *.
21359         (validate_replace_src_group): Change type of argument to rtx_insn *.
21360         * recog.h (validate_replace_src_group): Adjust.
21362 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21364         * haifa-sched.c: Change the type of some variables to rtx_insn *.
21365         * sched-deps.c: Likewise.
21366         * sched-int.h: Likewise.
21367         * sched-rgn.c: Likewise.
21368         * sel-sched.c: Likewise.
21370 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21372         to rtx_insn *.
21373         * config/i386/i386.c: Change the type of some arguments to
21374         rtx_insn *.
21375         * config/arm/arm.c: Likewise.
21377 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21379         * lra-constraints.c: Change type of some arguments to rtx_insn *.
21381 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21383         * regcprop.c (kill_autoinc_value): Change type of argument to
21384         rtx_insn *.
21386 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21388         * genrecog.c (print_subroutine): Adjust.
21389         * recog.c (get_bool_attr_mask_uncached): Likewise.
21390         * recog.h (struct recog_data_d): Change the type of insn to
21391         rtx_insn *.
21393 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21395         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
21397 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21399         * df-problems.c (df_set_note): Change type of argument to
21400         rtx_insn *.
21402 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21404         * builtins.c (expand_builtin_trap): Change type of local
21405         variable to rtx_insn *.
21406         (add_sched_insns_for_speculation): Likewise.
21407         (ix86_emit_save_regs): Likewise.
21408         (get_scratch_register_on_entry): Likewise.
21409         (ix86_emit_restore_reg_using_pop): Likewise.
21410         (ix86_emit_leave): Likewise.
21411         (ix86_emit_restore_regs_using_mov): Likewise.
21412         (ix86_expand_epilogue): Likewise.
21413         Likewise.
21414         (rl78_alloc_physical_registers_umul): Likewise.
21415         * cselib.c (discard_useless_locs): Likewise.
21416         (cselib_invalidate_regno): Likewise.
21417         (cselib_invalidate_mem): Likewise.
21418         * function.c (expand_function_start): Likewise.
21419         (emit_use_return_register_into_block): Likewise.
21420         * gcse.c: Likewise.
21421         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
21422         * ifcvt.c (noce_get_alt_condition): Likewise.
21423         * loop-doloop.c (doloop_condition_get): Likewise.
21424         * lra-constraints.c (inherit_in_ebb): Likewise.
21425         * modulo-sched.c (sms_schedule_by_order): Likewise.
21426         * recog.c (next_insn_tests_no_inequality): Likewise.
21427         * reorg.c (emit_delay_sequence): Likewise.
21428         (update_reg_dead_notes): Likewise.
21429         (fix_reg_dead_note): Likewise.
21430         (fill_slots_from_thread): Likewise.
21431         (delete_computation): Likewise.
21433 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
21435         * doc/extend.texi (Variable Attributes): Add menu and proper
21436         @nodes to subsections.  Move Microsoft Windows attributes to
21437         their own subsection.
21438         (Type Attributes): Reorganize introduction to remove duplicate
21439         list of attributes.  Add menu and proper @nodes to subsections.
21440         Alphabetize the main table of common attributes.
21442 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
21444         * match.pd: New simplification patterns.
21445         (x + (x & 1))  -> ((x + 1) & ~1)
21446         (x & ~(x & y)) -> ((x & ~y))
21447         (x | ~(x | y)) -> ((x | ~y))
21449 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21451         * target.def (attribute_table): Mention that struct attribute_spec
21452         is defined in tree-core.h rather than tree.h
21453         * doc/tm.texi: Regenerate.
21455 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
21457         * genrecog.c (test): Rename to rtx_test.  Update rest of file
21458         accordingly.
21460 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
21462         PR translation/65959
21463         * params.h (DEFPARAM): Rename msgid to nocmsgid.
21465 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
21467         * gcc/config/aarch64/aarch64-protos.h (tune_params):
21468         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
21469         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
21470         Return value depending on target.
21471         (generic_tunings): Initialize new target settings.
21472         (cortexa53_tunings): Likewise.
21473         (cortexa57_tunings): Likewise.
21474         (thunderx_tunings): Likewise.
21475         (xgene1_tunings): Likewise.
21477 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
21479         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
21480         Make Cortex-A53 shift costs more accurate.
21482 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21484         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
21485         UNSIGNED_FLOAT.
21487 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
21489         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
21490         Calculate cost of op0 and op1 in PLUS and MINUS cases.
21492 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21494         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
21495         Add cost of op0 in the compare-with-fpzero case.
21497 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
21499         * builtins.c (fold_builtin_1): Remove spurious second
21500         semicolon.
21501         * cgraph.h (symtab_node::get_availability): Likewise.
21502         * opts.c (common_handle_option): Remove spurious second semicolon.
21503         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
21504         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
21506 2015-04-30  Caroline Tice  <cmtice@google.com>
21508         PR gcov-profile/65929
21509         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
21510         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
21511         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
21512         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
21513         * doc/tm.texi: Regenerate.
21514         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
21515         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
21516         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
21517         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
21519 2015-04-30  Marek Polacek  <polacek@redhat.com>
21521         * varasm.c (handle_cache_entry): Fix logic.
21523 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21525         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
21526         (*extrsi5_insn_uxtw_alt): Likewise.
21527         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
21528         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
21529         operations.
21531 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21533         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
21534         fabd in ABS case.
21536 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21538         * config/aarch64/aarch64.md
21539         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
21540         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
21541         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
21542         appropriately.  Handle alternative EON form.
21544 2015-04-30  Renlin Li  <renlin.li@arm.com>
21546         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
21547         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
21549 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
21551         PR ipa/65873
21552         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
21553         -fstrict-aliasing boundaries.
21555 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21557         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
21558         and [SU]MNEGL patterns.
21560 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21562         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
21563         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
21564         combined arithmetic-shift ops.  Properly handle all shift and extend
21565         operations that can occur in combination with PLUS/MINUS.
21566         Rename maybe_fma to compound_p.
21567         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
21568         arithmetic and shift operations.
21570 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21572         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
21573         rather than arith_shift cost when costing ADD/MINUS of an
21574         extended value.
21576 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
21578         PR lto/65948
21579         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
21580         to itself.
21582 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
21584         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
21585         are for the same position.
21587 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
21589         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
21590         vectorize_loops.
21591         (vectorize_loops): Use it.
21593 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
21595         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
21596         for aggregate types.
21597         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
21598         type to be non_ODR.
21599         * tree.c (need_assembler_name_p): Compute mangled name for
21600         non-fundamental types and integer types.
21602 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
21604         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
21605         manual swaps.
21606         * expr.c (expand_expr_real_2): Likewise.
21608 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
21610         * tree.c (build_common_builtin_nodes): Do not build
21611         __builtin_alloca_with_align as equivalent of library alloca.
21613 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
21615         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
21616         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
21617         bugus variants.
21618         * tree.c: Include print-tree.h and ipa-utils.h
21619         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
21620         (free_lang_data_in_cgraph): Call verify_type.
21621         (verify_type_variant): New function.
21622         (verify_type): New function.
21623         * tree.h (verify_type): Declare.
21625 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
21627         * config/mips/mips-cpus.def: (mips4): Change default processor
21628         from PROCESSOR_R8000 to PROCESSOR_R10000.
21630 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
21632         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
21633         la/jalr instead of jal.
21635 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
21637         PR target/65871
21638         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
21639         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
21640         (setcc+movzbl peephole2): Check also clobbered reg.
21641         (setcc+andl peephole2): Ditto.
21643 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
21645         PR libgomp/65099
21646         * config/nvptx/mkoffload.c (target_ilp32): New variable.
21647         (main): Set it depending on "-foffload-abi=[...]".
21648         (compile_native, main): Use it to pass "-m32" or "-m64" to the
21649         compiler.
21651 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
21653         PR target/65770
21654         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
21655         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
21656         Flip lane index back at assembly time for bigendian.
21658 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
21660         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
21661         * gimplify.c (gimplify_omp_workshare): Use it.
21663 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
21665         * Makefile.in (build/genrecog.o): Depend on inchash.h.
21666         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
21667         build/inchash.o
21668         * genrecog.c: Rewrite most of the code except for the third page.
21670 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
21672         * inchash.h, inchash.c: Include bconfig.h for build objects.
21673         * Makefile.in (build/inchash.o): New rule.
21675 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
21677         PR target/65924
21678         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
21679         number in type attribute expression.
21681 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
21683         * loop-iv.c (canon_condition): Generalize to all types of integer
21684         constant.
21686 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
21688         * gimple-walk.c: Prune duplicate or unneeded includes.
21689         (walk_gimple_asm): Only call parse_input_constraint or
21690         parse_output_constraint if their findings are used.
21691         Honour parse_input_constraint and parse_output_constraint
21692         result.
21694 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
21696         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
21698 2015-04-29  Tom de Vries  <tom@codesourcery.com>
21700         PR tree-optimization/65893
21701         * passes.def (pass_all_optimizations): Move pass_stdarg to after
21702         pass_dce.
21704 2015-04-29  Richard Biener  <rguenther@suse.de>
21706         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
21707         compute GROUP_SIZE for basic-block SLP.
21708         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
21709         take into account gaps.
21710         (vect_get_mask_element): Properly reject references to previous
21711         vectors.
21712         (vect_transform_slp_perm_load): Likewise.
21714 2015-04-29  Christian Bruel  <christian.bruel@st.com>
21716         PR target/64835
21717         * config/i386/i386.c (ix86_default_align): New function.
21718         (ix86_override_options_after_change): Call ix86_default_align.
21719         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
21720         (ix86_override_options_after_change): New function.
21722 2015-04-28  Jeff Law  <law@redhat.com>
21724         * tree-ssa-dom.c (record_equality); Fix comment typos.
21726 2015-04-28  Tom de Vries  <tom@codesourcery.com>
21728         PR tree-optimization/65887
21729         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
21731 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
21733         * doc/extend.texi (Declaring Attributes of Functions): Split into
21734         subsections by target.  Alphabetize the table of common attributes.
21735         Rewrite some of the introductory text to reflect the new structure.
21736         Update some cross-references to point to the new subsections.
21737         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
21738         duplicate copies in the discussion of function, label, and type
21739         attributes.
21741 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
21743         PR bootstrap/65910
21744         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
21746 2015-04-28  Jason Merrill  <jason@redhat.com>
21748         PR c++/65734
21749         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
21750         (finalize_type_size): Respect TYPE_USER_ALIGN.
21751         (layout_type) [ARRAY_TYPE]: Likewise.
21753 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
21755         * config/arm/arm.md (*arm_movt): Fix type attribute.
21756         (*cmpsi_shiftsi): Likewise.
21757         (*cmpsi_shiftsi_swp): Likewise.
21758         (*movsicc_insn): Likewise.
21759         (*cond_move): Likewise.
21760         (*if_plus_move): Likewise.
21761         (*if_move_plus): Likewise.
21762         (*if_arith_move): Likewise.
21763         (*if_move_arith): Likewise.
21764         (*if_shift_move): Likewise.
21765         (*if_move_shift): Likewise.
21766         (*arm_movtas_ze): Likewise.
21767         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
21768         redundancy and type attribute.
21769         (*thumb2_movsi_insn): Fix type attribute.
21770         (*thumb2_addsi_short): Likewise.
21771         (thumb2_addsi3_compare0): Likewise.
21772         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
21773         attributes accordingly.
21775 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
21777         PR other/65911
21778         * function.c (pad_to_arg_alignment): Add parentheses.
21780 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
21782         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
21783         libgcc/config/frv/elf-lib.h.
21785 2015-04-28  Tom de Vries  <tom@codesourcery.com>
21787         * tree-call-cdce.c: Fix example in header comment.
21789 2015-04-28  Richard Biener  <rguenther@suse.de>
21791         PR tree-optimization/62283
21792         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
21793         fails fatally and we are vectorizing a basic-block simply
21794         cause the child to be constructed piecewise.
21795         (vect_analyze_slp_cost_1): Adjust.
21796         (vect_detect_hybrid_slp_stmts): Likewise.
21797         (vect_bb_slp_scalar_cost): Likewise.
21798         (vect_get_constant_vectors): For piecewise constructed
21799         constants place them after the last def.
21800         (vect_get_slp_defs): Adjust.
21801         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
21802         externals for basic-block vectorization.
21804 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21806         PR target/63503
21807         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
21808         aarch64-*-*.
21809         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
21810         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
21811         (AARCH64_TUNE_FMA_STEERING): Likewise.
21812         * config/aarch64/aarch64-cores.def: Set
21813         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
21814         FMUL/FMADD instructions.
21815         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
21816         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
21817         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
21818         * config/aarch64/cortex-a57-fma-steering.h: New file.
21819         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21821 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
21823         * gensupport.c (std_preds): Add missing codes to address_operand entry.
21825 2015-04-28  Richard Biener  <rguenther@suse.de>
21827         PR tree-optimization/65851
21828         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
21829         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
21830         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
21831         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
21832         (ccp_visit_phi_node): Adjust.
21833         (evaluate_stmt): For simplifications to SSA names return its
21834         lattice value if that isn't VARYING.  Return immediately when
21835         simplified to a constant.
21836         (visit_assignment): Adjust.
21837         (ccp_visit_stmt): Likewise.
21839 2015-04-28  Tom de Vries  <tom@codesourcery.com>
21841         PR tree-optimization/65818
21842         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
21843         evaluated.
21845 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21847         * calls.c (save_fixed_argument_area): Don't check
21848         ARGS_GROW_DOWNWARD with the preprocessor.
21849         (restore_fixed_argument_area): Likewise.
21850         (mem_overlaps_already_clobbered_arg_p): Likewise.
21851         (check_sibcall_argument_overlap): Likewise.
21852         (expand_call): Likewise.
21853         (emit_library_call_value_1): Likewise.
21854         (store_one_arg): Likewise.
21855         * function.c (assign_parms): Likewise.
21856         (locate_and_pad_parm): Likewise.
21857         (pad_to_arg_alignment): Likewise.
21858         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
21860 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21862         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
21863         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
21864         * calls.c (save_fixed_argument_area): Don't chekc if
21865         ARGS_GROW_DOWNWARD is defined.
21866         (restore_fixed_argument_area): Likewise.
21867         (mem_overlaps_already_clobbered_arg_p): Likewise.
21868         (check_sibcall_argument_overlap): Likewise.
21869         (expand_call): Likewise.
21870         (emit_library_call_value_1): Likewise.
21871         (store_one_arg): Likewise.
21872         * function.c (assign_parms): Likewise.
21873         (locate_and_pad_parm): Likewise.
21874         (pad_to_arg_alignment): Likewise.
21875         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
21877 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21879         * defaults.h (gen_epilogue): New function.
21880         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
21881         defined.
21882         * cfgrtl.c (cfg_layout_finalize): Likewise.
21883         * df-scan.c: Likewise.
21884         * function.c (thread_prologue_and_epilogue_insns): Likewise.
21885         (reposition_prologue_and_epilogue_notes): Likewise.
21886         * reorg.c (find_end_label): Likewise.
21887         * toplev.c: Likewise.
21889 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21891         * bb-reorder.c (HAVE_return): Don't check if its undefined.
21892         * defaults.h (gen_simple_return): New function.
21893         (gen_simple_return): Likewise.
21894         (HAVE_return): Add default definition to false.
21895         (HAVE_simple_return): Likewise.
21896         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
21897         HAVE_return and HAVE_simple_return are defined.
21898         * function.c (gen_return_pattern): Likewise.
21899         (convert_jumps_to_returns): Likewise.
21900         (thread_prologue_and_epilogue_insns): Likewise.
21901         * reorg.c (find_end_label): Likewise.
21902         (dbr_schedule): Likewise.
21903         * shrink-wrap.c: Likewise.
21904         * shrink-wrap.h: Likewise.
21906 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21908         * defaults.h (EPILOGUE_USES): Add default definition of false.
21909         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
21910         * resource.c (init_resource_info): Likewise.
21912 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21914         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
21915         to false.
21916         * dwarf2out.c (field_byte_offset): REmove check if
21917         PCC_BITFIELD_TYPE_MATTERS is defined.
21918         * stor-layout.c (layout_decl): Likewise.
21919         (update_alignment_for_field): Likewise.
21920         (place_field): Likewise.
21922 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21924         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
21925         true.
21926         * regrename.c (check_new_reg_p): Remove check if
21927         HARD_REGNO_RENAME_OK is defined.
21928         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
21930 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21932         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
21933         * cse.c (fold_rtx): Likewise.
21934         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
21935         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
21936         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
21937         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
21938         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
21939         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
21940         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
21941         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
21942         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
21943         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
21944         * Likewise.
21945         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
21946         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
21947         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
21948         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
21949         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
21950         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
21951         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
21952         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
21953         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
21954         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
21955         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
21956         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
21957         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
21958         * doc/tm.texi: Regenerate.
21959         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
21960         either true or false.
21962 2015-04-27  Jeff Law  <law@redhat.com>
21964         PR tree-optimization/65217
21965         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
21966         of them has a single use, make sure it is the LHS of the implied
21967         copy.
21969 2015-04-28  Alan Modra  <amodra@gmail.com>
21971         PR target/65810
21972         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
21973         (offsettable_ok_by_alignment): Use minimum of decl and toc
21974         pointer alignment.  Replace dead code with assertion.
21975         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
21976         case if size exceeds toc pointer alignment.
21977         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
21978         (rs6000_emit_move): Likewise.
21979         * configure.ac: Add linker toc pointer alignment check.
21980         * configure: Regenerate.
21981         * config.in: Regenerate.
21983 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
21985         * config.gcc: Add h8300-*-linux.
21986         * config/h8300/linux.h: New.
21987         * config/h8300/t-linux: New.
21988         * config/h8300/h8300.c (h8300_option_override): Normal mode
21989         is not supported for h8300-*-linux.
21990         (h8300_file_start): Target priority change.
21991         (get_shift_alg): Likewise.
21992         (h8300_shift_need_scratch_p): Likewise.
21993         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
21994         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
21996 2015-04-27  Caroline Tice  <cmtice@google.com>
21998         * final.c (final_scan_insn):  Output cold_function_name as function
21999         type.
22000         * varasm.c (cold_function_name):  Make global.
22001         (assemble_start_function):  Re-set cold_function_name.
22002         (assemble_end_function): Output cold partition size.
22003         * varasm.h (cold_function_name):  Declare global.
22005 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
22007         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
22008         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
22009         constraint.
22010         (*movxi_internal_avx512f): Ditto.
22011         (define_split): Check for xmm16+, when splitting scalar float_extend.
22012         (*extendsfdf2_mixed): Use "v" constraint.
22013         (define_split): Check for xmm16+, when splitting scalar float_truncate.
22014         (*truncdfsf_fast_sse): Use "v" constraint.
22015         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
22016         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
22017         (define_peephole2): Check for xmm16+, when converting scalar
22018         float_truncate.
22019         (define_peephole2): Check for xmm16+, when converting scalar
22020         float_extend.
22021         (*fop_<mode>_comm_mixed): Use "v" constraint.
22022         (*fop_<mode>_comm_sse): Ditto.
22023         (*fop_<mode>_1_mixed): Ditto.
22024         (*sqrt<mode>2_sse): Ditto.
22025         (*ieee_s<ieee_maxmin><mode>3): Ditto.
22027 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22029         * combine.c (simplify_if_then_else): Use std::swap instead
22030         of manually swapping.
22031         (known_cond): Likewise.
22032         (simplify_comparison): Likewise.
22034 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
22036         PR target/64579
22037         * config/rs6000/htm.md: Remove all define_expands.
22038         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
22039         UNSPECV_HTM_TABORTWCI): Remove.
22040         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
22041         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
22042         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
22043         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
22044         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
22045         tabortwci_internal): Remove define_insns.
22046         (tabort<wd>c, tabort<wd>ci): New define_insns.
22047         (tabort): Use gpc_reg_operand.
22048         (tcheck): Remove operand.
22049         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
22050         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
22051         expected value.
22052         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
22053         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
22054         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
22055         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
22056         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
22057         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
22058         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
22059         (tcheck): Remove builtin argument.
22060         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
22061         not TARGET_64BIT.
22062         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
22063         tabortdc and tabortdci builtins when not in 64-bit mode.
22064         Modify code to handle the loss of the HTM define_expands.
22065         Emit code to copy the CR register to TARGET.
22066         (htm_init_builtins): Modify code to handle the loss of the HTM
22067         define_expands.
22068         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
22069         (RS6000_BTC_64BIT): Likewise.
22070         (RS6000_BTC_CR): New macro.
22071         * doc/extend.texi: Update documentation for htm builtins.
22073 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22075         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
22076         of manually swapping.
22077         (simplify_associative_operation): Likewise.
22078         (simplify_binary_operation): Likewise.
22079         (simplify_plus_minus): Likewise.
22080         (simplify_relational_operation): Likewise.
22081         (simplify_ternary_operation): Likewise.
22083 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
22085         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
22086         (xs_hi_nonmemory_operand): Remove error.
22087         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
22088         general_operand rather than xs_hi_general_operand.
22090 2015-04-27  Richard Biener  <rguenther@suse.de>
22092         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
22093         (record_equivalences_from_stmt): Valueize rhs.
22094         (record_equality): Canonicalize x and y order via
22095         tree_swap_operands_p.  Do not swap operands for same loop depth.
22097 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
22099         PR target/65296
22100         PR target/65895
22101         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
22102         Add hint how to use own spec file.
22104 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
22106         PR tree-optimization/65875
22107         * tree-vrp.c (update_value_range): If in is_new case setting
22108         old_vr to VR_VARYING, also set new_vr to it.  Remove
22109         old_vr->type == VR_VARYING test.
22110         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
22111         SSA_PROP_INTERESTING if update_value_range returned true,
22112         but new range is VR_VARYING.
22114 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22116         * combine.c (sign_extend_short_imm): New.
22117         (set_nonzero_bits_and_sign_copies): Use above new function for sign
22118         extension of src short immediate.
22119         (reg_nonzero_bits_for_combine): Likewise for tem.
22121 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
22123         * stor-layout.c (self_referential_component_ref_p): New predicate.
22124         (copy_self_referential_tree_r): Use it.
22125         (self_referential_size): Punt for simple operations directly involving
22126         self-referential component references.
22127         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
22129 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
22131         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
22133 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
22135         * vec.h (vec): Make splice arguments const.  Update definitions
22136         accordingly.
22138 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
22140         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
22141         alternatives.
22143 2015-04-26  Tom de Vries  <tom@codesourcery.com>
22145         PR tree-optimization/65826
22146         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
22148 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
22150         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
22151         (*madd3<mode>): Ditto.
22152         (*msub4<mode>): Ditto.
22153         (*msub3<mode>): Ditto.
22154         (*nmadd4<mode>): Ditto.
22155         (*nmadd3<mode>): Ditto.
22156         (*nmadd4<mode>_fastmath): Ditto.
22157         (*nmadd3<mode>_fastmath): Ditto.
22158         (*nmsub4<mode>): Ditto.
22159         (*nmsub3<mode>): Ditto.
22160         (*nmsub4<mode>_fastmath): Ditto.
22161         (*nmsub3<mode>_fastmath): Ditto.
22163 2015-04-24  Jason Merrill  <jason@redhat.com>
22165         PR c++/50800
22166         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
22167         down when building TYPE_CANONICAL.
22168         (build_pointer_type_for_mode): Likewise.
22170 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
22172         * genrecog.c (validate_pattern): Check matching constraint refers
22173         to a lower numbered operand.
22175 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
22177         PR target/65849
22178         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
22179         save to independent variables use the Save attribute.  This will
22180         allow these options to be modified with the #pragma/attribute
22181         target support.
22182         (-mallow-movmisalign): Likewise.
22183         (-mallow-df-permute): Likewise.
22184         (-msched-groups): Likewise.
22185         (-malways-hint): Likewise.
22186         (-malign-branch-targets): Likewise.
22187         (-mvectorize-builtins): Likewise.
22188         (-msave-toc-indirect): Likewise.
22190         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
22191         can be set via the #pragma/attribute target support.
22192         (rs6000_opt_vars): Likewise.
22193         (rs6000_inner_target_options): If VSX was set, also set
22194         -mno-avoid-indexed-addresses.
22196 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22198         * config/arm/iterators.md (shiftable_ops): Rename to...
22199         (SHIFTABLE_OPS): ... This.  Update use in comments.
22200         (ior_xor): Rename to...
22201         (IOR_XOR): ... This.
22202         (vqh_ops): Rename to...
22203         (VQH_OPS): ... This.
22204         (vqhs_ops): Rename to...
22205         (VQHS_OPS): ... This.
22206         (rshifts): Rename to...
22207         (RSHIFTS): ... This.
22208         (returns): Rename to...
22209         (RETURNS): ... This.
22210         * config/arm/arm.md: Update uses of the above.
22211         * config/arm/neon.md: Likewise.
22213 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22215         * config.host (case ${host}): Add aarch64*-*-linux case.
22216         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
22217         fields to all the cores.
22218         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
22219         Add MCPU_MTUNE_NATIVE_SPECS.
22220         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
22221         field to all extensions.
22222         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
22223         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
22224         Adjust definition of AARCH64_OPT_EXTENSION.
22225         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
22226         (MCPU_MTUNE_NATIVE_SPECS): Define.
22227         * config/aarch64/driver-aarch64.c: New file.
22228         * config/aarch64/x-arch64: New file.
22229         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
22230         -mtune and -march.
22232 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
22233             Wei Mi  <wmi@google.com>
22235         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
22236         * config/i386/i386.c (extract_base_offset_in_addr): New function.
22237         (ix86_operands_ok_for_move_multiple): Ditto.
22238         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
22239         (movlpd/movhpd to movupd peephole2): Ditto.
22241 2015-04-24  Marek Polacek  <polacek@redhat.com>
22243         PR c/61534
22244         * input.h (from_macro_expansion_at): Define.
22246         PR c/63357
22247         * doc/invoke.texi: Update description of -Wlogical-op.
22249 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22251         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
22252         ternary operator in fprintf and harmonize spacing.
22254 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
22256         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
22257         Mark operand1 commutative.
22259 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
22261         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
22262         input operands in memory.
22263         (*vec_concatv2si_sse4_1): Ditto.
22264         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
22265         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
22266         register_operand.
22267         (vec_extract_hi_v32hi): Ditto.
22268         (vec_extract_hi_v64hi): Ditto.
22269         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
22271 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22272             Steven Bosscher <steven@gcc.gnu.org>
22274         PR rtl-optimization/34503
22275         * cprop.c (cprop_reg_p): New.
22276         (hash_scan_set): Use above function to check if register can be
22277         propagated.
22278         (find_avail_set): Return up to two sets, one whose source is a
22279         register and one whose source is a constant.  Sets are returned in an
22280         array passed as parameter rather than as a return value.
22281         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
22282         sets returned by find_avail_set, starting with the one whose source is
22283         a constant. Use cprop_reg_p to check if register can be propagated.
22284         (do_local_cprop): Use cprop_reg_p to check if register can be
22285         propagated.
22286         (implicit_set_cond_p): Likewise.
22288 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
22290         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
22291         (sem_function::equals): IGNORED_NODES parameter is now unused;
22292         update call of equals_private.
22293         (sem_function::equals_private): Do not call equals_wpa; skip
22294         gimple body matching if there is no body.
22295         (sem_function::init): Add logic to hash tthunk info.
22296         (sem_function::parse): Also parse thunks.
22297         * ipa-icf.h (equals_private): Update declaration.
22299 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22301         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
22302         asterisk from name so this can be generated directly.
22303         (*altivec_stvx_<mode>_internal): Likewise.
22304         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
22305         that this is never called during or after reload/lra.
22306         (rs6000_frame_related): Remove split_reg
22307         argument and logic that references it.
22308         (emit_frame_save): Remove last parameter from call to
22309         rs6000_frame_related.
22310         (rs6000_emit_prologue): Remove last parameter from eight calls to
22311         rs6000_frame_related.  Force generation of stvx instruction for
22312         Altivec register saves.  Remove split_reg handling, which is no
22313         longer needed.
22314         (rs6000_emit_epilogue):  Force generation of lvx instruction for
22315         Altivec register restores.
22317 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22319         * config/rs6000/rs6000.opt (mcrypto): Change option description to
22320         match category changes in ISA 2.07B.
22322 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22324         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
22325         iterators.
22326         (cmp_op, cmp_type): New code attributes.
22327         (NEON_VCMP, NEON_VACMP): New int iterators.
22328         (cmp_op_unsp): New int attribute.
22329         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
22330         (neon_vceq<mode>): Delete.
22331         (neon_vc<cmp_op><mode>_insn): New pattern.
22332         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
22333         (neon_vcgeu<mode>): Delete.
22334         (neon_vcle<mode>): Likewise.
22335         (neon_vclt<mode>: Likewise.
22336         (neon_vcage<mode>): Likewise.
22337         (neon_vcagt<mode>): Likewise.
22338         (neon_vca<cmp_op><mode>): New define_expand.
22339         (neon_vca<cmp_op><mode>_insn): New pattern.
22340         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
22342 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
22344         * tree.h (attribute_value_equal): Declare.
22345         * tree.c (attribute_value_equal): Export.
22347 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
22349         * ipa-icf.c (sem_item::compare_attributes): New function.
22350         (sem_item::compare_referenced_symbol_properties): Compare variable
22351         attributes.
22352         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
22353         (sem_function::param_used_p): New function.
22354         (sem_function::equals_wpa): Fix attribute comparsion; match
22355         parameter type codes; do not compare paremter flags when
22356         they are not used; compare edge flags; compare indirect calls.
22357         (sem_item::update_hash_by_addr_refs): Hash reference type.
22358         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
22359         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
22360         reference use type.
22361         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
22362         * ipa-icf.h (compare_attributes, param_used_p): Declare.
22364 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
22366         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
22367         cleanup.
22368         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
22369         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
22370         (sem_item::compare_referenced_symbol_properties): New.
22371         (sem_item::hash_referenced_symbol_properties): New.
22372         (sem_item::compare_cgraph_references): Rename to ...
22373         (sem_item::compare_symbol_references): ... this one; use
22374         compare_referenced_symbol_properties.
22375         (sem_function::equals_wpa): Do not compare
22376         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
22377         DECL_IS_OPERATOR_NEW; compare pointer sizes.
22378         (sem_item::update_hash_by_addr_refs): Call
22379         hash_referenced_symbol_properties.
22380         (sem_item::update_hash_by_local_refs): Cleanup.
22381         (sem_function::merge): Do not mix up symbol properties.
22382         (sem_variable::equals_wpa): Use compare_symbol_references.
22383         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
22384         (sem_item::hash_referenced_symbol_properties): New.
22385         (sem_item::compare_symbol_references): New.
22386         (sem_item::compare_cgraph_references): Remove.
22388 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
22390         PR target/26702
22391         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
22392         Emit size of local.
22394 2015-04-23  Nick Clifton  <nickc@redhat.com>
22396         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
22397         ATTRIBUTE_UNUSED to x parameter.
22398         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
22400 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22402         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
22403         TARGET_CRYPTO to TARGET_P8_VECTOR>
22404         (crypto_vpermxor_<mode>): Likewise.
22405         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
22406         (BU_CRYPTO_3A): Likewise.
22407         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
22408         (BU_CRYPTO_OVERLOAD_3A): New #define.
22409         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
22410         (VPMSUMH): Likewise.
22411         (VPMSUMW): Likewise.
22412         (VPMSUMD): Likewise.
22413         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
22414         (VPERMXOR_V4SI): Likewise.
22415         (VPERMXOR_V8HI): Likewise.
22416         (VPERMXOR_V16QI): Likewise.
22417         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
22418         BU_CRYPTO_OVERLOAD_2A.
22419         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
22420         BU_CRYPTO_OVERLOAD_3A.
22421         * config/rs6000/rs6000.opt (mcrypto): Change description of
22422         option.
22424 2015-04-23  Richard Biener  <rguenther@suse.de>
22426         * passes.def: Remove copy propagation passes run directly after CCP.
22427         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
22428         SSA names.
22429         (ccp_visit_phi_node): Rework to handle first executable edge
22430         specially.
22432 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
22434         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
22435         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
22436         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
22437         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
22438         (thumb_legimitimize_reload_address): Remove.
22439         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
22440         Remove.
22441         (thumb_legimitimize_reload_address): Remove.
22443 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22445         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
22447 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22449         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
22450         MAX_LDM_STM_OPS.
22451         (store_multiple): Likewise.
22453 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22455         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
22456         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
22457         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
22458         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
22459         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
22460         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
22461         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
22462         Specify issue_rate value.
22463         (arm_issue_rate): Look up issue rate from tuning structs. Remove
22464         large switch statement.
22465         (arm_marvell_pj4_tune): New struct.
22466         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
22467         struct.
22469 2015-04-23  Richard Biener  <rguenther@suse.de>
22471         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
22472         (vect_find_last_store_in_slp_instance): Rename to ...
22473         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
22474         (vect_analyze_slp_cost_1): Use vector_load for constant defs
22475         and vec_construct for external defs when estimating prologue cost.
22476         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
22477         Compute costs here only when vectorizing loops.
22478         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
22479         have been determined.
22480         (vect_schedule_slp_instance): Simplify vectorized code placement
22481         and prepare for in-BB external defs.
22482         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
22483         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
22484         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
22485         guard.
22486         (vect_model_load_cost): Likewise.
22487         (vectorizable_store): Instead add it here.
22488         (vectorizable_load): Likewise.
22489         (vect_is_simple_use): Dump def type textually.
22491 2015-04-23  Richard Biener  <rguenther@suse.de>
22493         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
22494         * cfgloop.c (verify_loop_structure): Verify the root loop node.
22495         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
22496         instead of get_eh_region_from_lp_number.
22497         * loop-init.c (fix_loop_structure): If we removed a loop, reset
22498         the SCEV cache.
22500 2015-04-23  Anton Blanchard  <anton@samba.org>
22502         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
22503         need for -mprofile-kernel to save LR to stack.
22505 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22507         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
22508         adjustments.
22509         (insn_is_swappable_p): Return 1 for a convert from double to
22510         single precision when all of its uses are splats of BE element
22511         zero.
22513 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
22515         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
22517 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22519         PR target/65456
22520         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
22521         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
22522         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
22523         option.
22524         (rs6000_builtin_mask_for_load): Return 0 for targets with
22525         efficient unaligned VSX accesses so that the vectorizer will use
22526         direct unaligned loads.
22527         (rs6000_builtin_support_vector_misalignment): Always return true
22528         for targets with efficient unaligned VSX accesses.
22529         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
22530         stores on targets with efficient unaligned VSX accesses is almost
22531         always the same as the cost of an aligned load or store, so model
22532         it that way.
22533         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
22534         unaligned vectors if we have efficient unaligned VSX accesses.
22535         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
22536         undocumented option.
22538 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22540         Revert:
22541         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
22543         * config.gcc (LIBC_MUSL): New tm_defines macro.
22544         * config/linux.h (OPTION_MUSL): Define.
22545         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
22546         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
22547         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
22549         * config/linux.opt (mmusl): New option.
22550         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
22551         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
22553         * configure: Regenerate.
22555 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
22557         * config.gcc (LIBC_MUSL): New tm_defines macro.
22558         * config/linux.h (OPTION_MUSL): Define.
22559         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
22560         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
22561         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
22563         * config/linux.opt (mmusl): New option.
22564         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
22565         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
22567         * configure: Regenerate.
22569 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
22571         * doc/invoke.texi (-fsanitize-sections): Update description.
22572         * asan.c (set_sanitized_sections): Parse incoming arg.
22573         (section_sanitized_p): Support wildcards.
22575 2015-04-22  Tom de Vries  <tom@codesourcery.com>
22577         PR tree-optimization/65823
22578         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
22579         equality between ap_copy and ap.
22581 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22583         PR target/47098
22584         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
22586 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22588         PR target/47122
22589         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
22591 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22593         PR target/55144
22594         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
22595         remove already contained t-files.
22597 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22599         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
22600         Remove unneeded forward declarations.
22601         (suitable_for_tail_call_opt_p): Commentary typo fix.
22603 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22605         * varasm.c (emit_bss): Remove redundant guard.
22607 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22609         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
22611 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22613         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
22615 2015-04-22  Hale Wang  <hale.wang@arm.com>
22616             Terry Guo  <terry.guo@arm.com>
22618         PR rtl-optimization/64818
22619         * combine.c (can_combine_p): Don't combine user-specified
22620         register if it is in an asm input.
22622 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
22624         PR ipa/65076
22625         * passes.def (early_optimizations): Add pass_dse.
22627 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22629         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
22630         * reorg.c (redundant_insn): Remove ifdef
22631         INSN_REFERENCES_ARE_DELAYED.
22632         * resource.c (mark_referenced_resources): Likewise.
22634 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22636         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
22637         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
22638         * resource.c (mark_set_resources): Likewise.
22640 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22642         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
22643         * cfgcleanup.c (flow_find_cross_jump): Likewise.
22644         (flow_find_head_matching_sequence): Likewise.
22645         (try_head_merge_bb): Likewise.
22646         * combine.c (can_combine_p): Likewise.
22647         (try_combine): Likewise.
22648         (distribute_notes): Likewise.
22649         * df-problems.c (can_move_insns_across): Likewise.
22650         * final.c (final): Likewise.
22651         * gcse.c (insert_insn_end_basic_block): Likewise.
22652         * ira.c (find_moveable_pseudos): Likewise.
22653         * reorg.c (try_merge_delay_insns): Likewise.
22654         (fill_simple_delay_slots): Likewise.
22655         (fill_slots_from_thread): Likewise.
22656         * sched-deps.c (sched_analyze_2): Likewise.
22658 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22660         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
22661         PIC_OFFSET_TABLE_REGNUM.
22663 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22665         * alias.c (init_alias_target): Remove ifdef
22666         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
22667         * df-scan.c (df_insn_refs_collect): Likewise.
22668         (df_get_regular_block_artificial_uses): Likewise.
22669         (df_get_eh_block_artificial_uses): Likewise.
22670         (df_get_entry_block_def_set): Likewise.
22671         (df_get_exit_block_use_set): Likewise.
22672         * emit-rtl.c (gen_rtx_REG): Likewise.
22673         * ira.c (ira_setup_eliminable_regset): Likewise.
22674         * reginfo.c (init_reg_sets_1): Likewise.
22675         * regrename.c (rename_chains): Likewise.
22676         * reload1.c (reload): Likewise.
22677         (eliminate_regs_in_insn): Likewise.
22678         * resource.c (mark_referenced_resources): Likewise.
22679         (init_resource_info): Likewise.
22681 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22683         * defaults.h (MASK_RETURN_ADDR): New definition.
22684         * except.c (expand_builtin_extract_return_addr): Remove ifdef
22685         MASK_RETURN_ADDR.
22687 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22689         * defaults.h (RETURN_ADDR_OFFSET): New definition.
22690         * except.c (expand_builtin_extract_return_addr): Remove ifdef
22691         RETURN_ADDR_OFFSET.
22692         (expand_builtin_frob_return_addr): Likewise.
22694 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22696         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
22697         (try_redirect_by_replacing_jump): Likewise.
22698         (rtl_tidy_fallthru_edge): Likewise.
22699         * combine.c (insn_a_feeds_b): Likewise.
22700         (find_split_point): Likewise.
22701         (simplify_set): Likewise.
22702         * cprop.c (cprop_jump): Likewise.
22703         * cse.c (cse_extended_basic_block): Likewise.
22704         * df-problems.c (can_move_insns_across): Likewise.
22705         * function.c (emit_use_return_register_into_block): Likewise.
22706         * haifa-sched.c (sched_init): Likewise.
22707         * ira.c (find_moveable_pseudos): Likewise.
22708         * loop-invariant.c (find_invariant_insn): Likewise.
22709         * lra-constraints.c (curr_insn_transform): Likewise.
22710         * postreload.c (reload_combine_recognize_const_pattern):
22711         * Likewise.
22712         * reload.c (find_reloads): Likewise.
22713         * reorg.c (delete_scheduled_jump): Likewise.
22714         (steal_delay_list_from_target): Likewise.
22715         (steal_delay_list_from_fallthrough): Likewise.
22716         (redundant_insn): Likewise.
22717         (fill_simple_delay_slots): Likewise.
22718         (fill_slots_from_thread): Likewise.
22719         (delete_computation): Likewise.
22720         * sched-rgn.c (add_branch_dependences): Likewise.
22722 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22724         * genconfig.c (main): Always define HAVE_cc0.
22725         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
22726         HAVE_cc0.
22727         * cfgcleanup.c (flow_find_cross_jump): Likewise.
22728         (flow_find_head_matching_sequence): Likewise.
22729         (try_head_merge_bb): Likewise.
22730         * cfgrtl.c (rtl_merge_blocks): Likewise.
22731         (try_redirect_by_replacing_jump): Likewise.
22732         (rtl_tidy_fallthru_edge): Likewise.
22733         * combine.c (do_SUBST_MODE): Likewise.
22734         (insn_a_feeds_b): Likewise.
22735         (combine_instructions): Likewise.
22736         (can_combine_p): Likewise.
22737         (try_combine): Likewise.
22738         (find_split_point): Likewise.
22739         (subst): Likewise.
22740         (simplify_set): Likewise.
22741         (distribute_notes): Likewise.
22742         * cprop.c (cprop_jump): Likewise.
22743         * cse.c (cse_extended_basic_block): Likewise.
22744         * df-problems.c (can_move_insns_across): Likewise.
22745         * final.c (final): Likewise.
22746         (final_scan_insn): Likewise.
22747         * function.c (emit_use_return_register_into_block): Likewise.
22748         * gcse.c (insert_insn_end_basic_block): Likewise.
22749         * haifa-sched.c (sched_init): Likewise.
22750         * ira.c (find_moveable_pseudos): Likewise.
22751         * loop-invariant.c (find_invariant_insn): Likewise.
22752         * lra-constraints.c (curr_insn_transform): Likewise.
22753         * optabs.c (prepare_cmp_insn): Likewise.
22754         * postreload.c (reload_combine_recognize_const_pattern):
22755         * Likewise.
22756         * reload.c (find_reloads): Likewise.
22757         (find_reloads_address_1): Likewise.
22758         * reorg.c (delete_scheduled_jump): Likewise.
22759         (steal_delay_list_from_target): Likewise.
22760         (steal_delay_list_from_fallthrough): Likewise.
22761         (try_merge_delay_insns): Likewise.
22762         (redundant_insn): Likewise.
22763         (fill_simple_delay_slots): Likewise.
22764         (fill_slots_from_thread): Likewise.
22765         (delete_computation): Likewise.
22766         (relax_delay_slots): Likewise.
22767         * sched-deps.c (sched_analyze_2): Likewise.
22768         * sched-rgn.c (add_branch_dependences): Likewise.
22770 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22772         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
22773         that is trivially ded on non cc0 targets.
22774         (simplify_set): Likewise.
22775         (mark_used_regs_combine): Likewise.
22776         * cse.c (new_basic_block): Likewise.
22777         (fold_rtx): Likewise.
22778         (cse_insn): Likewise.
22779         (cse_extended_basic_block): Likewise.
22780         (set_live_p): Likewise.
22781         * rtlanal.c (canonicalize_condition): Likewise.
22782         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
22784 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22786         * conditions.h: Define macros even if HAVE_cc0 is undefined.
22787         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
22788         * final.c: Likewise.
22789         * jump.c: Likewise.
22790         * recog.c: Likewise.
22791         * recog.h: Declare functions even when HAVE_cc0 is undefined.
22792         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
22794 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22796         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
22797         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
22798         * builtins.c (expand_builtin): Remove check if
22799         EH_RETURN_DATA_REGNO is defined.
22800         * df-scan.c (df_bb_refs_collect): Likewise.
22801         (df_get_exit_block_use_set): Likewise.
22802         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
22803         * ira-lives.c (process_bb_node_lives): Likewise.
22804         * lra-lives.c (process_bb_lives): Likewise.
22806 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
22808         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
22809         FIRST_PSEUDO_REG): New.
22810         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
22811         (ARG_POINTER_REGNUM): Define to ARGP_REG.
22812         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
22813         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
22814         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
22815         (FIRST_INT_REG): New.
22816         (LAST_INT_REG): New.
22817         (FIRST_*_REG): Define using *_REG.
22818         (LAST_*_REG): Ditto.
22819         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
22820         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
22821         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
22823 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22825         * expmed.c: (synth_mult): Only assume overlapping
22826         shift with previous steps in alg_sub_t_m2 case.
22828 2015-04-21  Richard Biener  <rguenther@suse.de>
22830         PR tree-optimization/65650
22831         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
22832         transitions involving copies.
22833         (set_lattice_value): Adjust for copy lattice state.
22834         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
22835         if that doesn't dominate the merge point.
22836         (bit_value_unop): Adjust what we treat as varying mask.
22837         (bit_value_binop): Likewise.
22838         (bit_value_assume_aligned): Likewise.
22839         (evaluate_stmt): When we simplified to a SSA name record a copy
22840         instead of dropping to varying.
22841         (visit_assignment): Simplify.
22843         * gimple-match.h (gimple_simplify): Add another callback.
22844         * gimple-fold.c (fold_stmt_1): Adjust caller.
22845         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
22846         for the 2nd callback.
22847         * gimple-match-head.c (gimple_simplify): Add a callback that is
22848         used to valueize the stmt operands and use it that way.
22850 2015-04-21  Richard Biener  <rguenther@suse.de>
22852         PR tree-optimization/65788
22853         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
22855 2015-04-21  Richard Biener  <rguenther@suse.de>
22857         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
22858         vec_construct cost by vec_stmt_cost.
22860 2015-04-21  Richard Biener  <rguenther@suse.de>
22862         * cfghooks.h (create_basic_block): Replace with two overloads
22863         for RTL and GIMPLE.
22864         (split_block): Likewise.
22865         * cfghooks.c (split_block): Rename to ...
22866         (split_block_1): ... this.
22867         (split_block): Add two type-safe overloads for RTL and GIMPLE.
22868         (split_block_after_labels): Call split_block_1.
22869         (create_basic_block): Rename to ...
22870         (create_basic_block_1): ... this.
22871         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
22872         (create_empty_bb): Call create_basic_block_1.
22873         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
22874         split_block_after_labels.
22875         * omp-low.c (expand_parallel_call): Likewise.
22876         (expand_omp_target): Likewise.
22877         (simd_clone_adjust): Likewise.
22878         * tree-chkp.c (chkp_get_entry_block): Likewise.
22879         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
22880         create_basic_block overload.
22881         (cgraph_node::expand_thunk): Likewise.
22882         * tree-cfg.c (make_blocks): Likewise.
22883         (handle_abnormal_edges): Likewise.
22884         * tree-inline.c (copy_bb): Likewise.
22886 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22888         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
22889         New pattern.
22890         (*xor_one_cmplsidi3_ze): Likewise.
22892 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22894         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
22895         use df_remove_problem rather than manually removing problems, leaving
22896         holes in df->problems_in_order[].
22898 2015-04-21  Tom de Vries  <tom@codesourcery.com>
22900         PR tree-optimization/65802
22901         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
22903 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22905         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
22906         Increase to 128.
22907         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
22908         at '.'.  Assert that there's enough space for everything.
22910 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
22912         PR tree-optimization/64950
22913         Revert:
22914         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
22916         PR target/41089
22917         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
22918         as volatile.
22920 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
22922         PR rtl-optimization/64916
22923         * cfgcleanup.c (values_equal_p): New function.
22924         (can_replace_by): Use it.
22926 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
22928         PR c++/65801
22929         * doc/invoke.texi ([-Wnarrowing]): Update.
22931 2015-04-20  Jeff Law  <law@redhat.com>
22933         PR tree-optimization/65658
22934         * tree-ssa-threadupdate.c (redirection_block_p): Remove
22935         redundant test for GIMPLE_ASSIGN in last change.
22937 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
22939         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
22940         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
22941         (legitimize_tls_address): Ditto.
22942         (ix86_expand_move): Ditto.
22943         (ix86_expand_binary_operator): Remove reload_in_progress checks.
22944         (ix86_expand_unary_operator): Ditto.
22945         * config/i386/predicates.md (index_register_operand): Ditto.
22947 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
22949         * reorg.c (try_merge_delay_insns): Improve correctness checking
22950         for targets with multiple delay slots.
22952 2015-04-20  Jeff Law  <law@redhat.com>
22954         PR tree-optimization/65658
22955         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
22956         statements too.
22958 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
22960         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
22961         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
22962         Delete.
22964 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
22966         PR debug/65807
22967         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
22969 2015-04-20  Richard Biener  <rguenther@suse.de>
22971         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
22972         * gimple-fold.c (gimple_build_valueize): New function.
22973         (gimple_build): Always use gimple_build_valueize as valueize hook.
22975 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
22977         PR target/64134
22978         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
22979         and overwrite variable parts if <= 1/2 the elements are variable.
22981 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
22983         PR rtl-optimization/65805
22984         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
22985         Don't use difference of offset and previous offset if
22986         update_sp_offset is non-zero.
22987         (eliminate_regs_in_insn): Ditto.
22988         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
22989         lra_eliminate_regs_1 call.
22990         * lra-constraints.c (get_equiv_with_elimination): Ditto.
22992 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
22994         * hash-table.h: Remove version of hash_table that stored value_type *.
22995         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
22996         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
22997         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
22998         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
22999         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
23000         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
23001         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
23002         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
23003         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
23004         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
23005         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
23006         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
23007         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
23008         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
23009         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
23010         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
23012 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23013             Jakub Jelinek  <jakub@redhat.com>
23015         PR target/65787
23016         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
23017         subsequent SH_NONE operand does not overwrite an existing *special
23018         value.
23019         (adjust_extract): Handle case where a vec_extract operation is
23020         wrapped in a PARALLEL.
23022 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
23024         PR target/65780
23025         * config/i386/i386.c (ix86_binds_local_p): Define only if
23026         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
23028 2015-04-17  Jeff Law  <law@redhat.com>
23030         PR tree-optimization/47679
23031         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
23032         * tree-ssa-scopedtables.c: New file.
23033         * tree-ssa-scopedtables.h: New file.
23034         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
23035         (const_and_copies): Change name/type.
23036         (record_const_or_copy): Move into tree-ssa-scopedtables.c
23037         (record_const_or_copy_1): Similarly.
23038         (restore_vars_to_original_value): Similarly.
23039         (pass_dominator::execute): Create and destroy const_and_copies table.
23040         (thread_across_edge): Update passing of const_and_copies.
23041         (record_temporary_equivalence): Use method calls rather than
23042         manipulating const_and_copies directly.
23043         (record_equality, cprop_into_successor_phis): Similarly.
23044         (dom_opt_dom_walker::before_dom_children): Similarly.
23045         (dom_opt_dom_walker::after_dom_children): Similarly.
23046         (eliminate_redundant_computations): Similarly.
23047         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
23048         (record_temporary_equivalence): Likewise.
23049         (invalidate_equivalences): Likewise.
23050         (record_temporary_equivalences_from_phis): Update due to type
23051         change of const_and_copies.  Use method calls rather than
23052         manipulating the stack directly.
23053         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
23054         (thread_through_normal_block, thread_across_edge): Likewise.
23055         (thread_across_edge): Likewise.
23056         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
23057         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
23058         of equiv_stack.
23059         (identify_jump_threads): Update due to type change of equiv_stack.
23060         (finalize_jump_threads): Delete the equiv_stack when complete.
23062 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
23064         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
23065         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
23066         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
23068 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
23070         PR target/65535
23071         * config.gcc: Exit with a comment when we do not have a major version
23072         number for the FreeBSD target.
23074 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
23076         PR target/65689
23077         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
23078         maybe_allows_mem bitfields.
23079         (maybe_allows_none_start, maybe_allows_none_end,
23080         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
23081         maybe_allows_mem_end): New variables.
23082         (compute_maybe_allows): New function.
23083         (add_constraint): Use it to initialize maybe_allows_reg and
23084         maybe_allows_mem fields.
23085         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
23086         is_address constraints such that those that allow neither mem nor
23087         reg come first, then those that only allow reg but not mem, then
23088         those that only allow mem but not reg, then the rest.
23089         (write_allows_reg_mem_function): New function.
23090         (write_tm_preds_h): Call it.
23091         * stmt.c (parse_output_constraint, parse_input_constraint): Use
23092         the generated insn_extra_constraint_allows_reg_mem function
23093         instead of always setting *allows_reg = true; *allows_mem = true;
23094         for unknown extra constraints.
23096 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
23098         PR target/65780
23099         * output.h (default_binds_local_p_3): New.
23100         * varasm.c (default_binds_local_p_3): Make it public.  Take an
23101         argument to indicate if common symbol may be local.  If common
23102         symbol may be local, treat non-external variable as defined
23103         locally.
23104         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
23105         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
23106         * config/i386/i386.c (ix86_binds_local_p): New.
23107         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
23108         ix86_binds_local_p.
23110 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
23112         PR debug/65771
23113         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
23114         trying mem_loc_descriptor on XEXP (rtl, 0).
23116 2015-04-17  Martin Liska  <mliska@suse.cz>
23118         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
23119         Release symbol_compare_collection.
23120         * ipa-reference.c: Add TODO that a vector should be released.
23122 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
23124         PR target/65296
23125         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
23126         to new AVR-LibC file layout (bug #44574).
23127         (*avrlibc_devicelib): Same.
23128         * config/avr/avr-mcus.def: Adjust comments.
23129         * config/avr/avr.opt (nodevicelib): Adjust help.
23131 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
23133         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
23135 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
23137         PR c++/64527
23138         * gimplify.c (gimplify_init_constructor): Always emit a
23139         side-effecting constructor.
23141 2015-04-17  Tom de Vries  <tom@codesourcery.com>
23143         PR tree-optimization/64950
23144         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
23145         in cfun->curr_properties.
23146         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
23147         if we generate an IFN_VA_ARG.
23148         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
23149         function if PROP_gimple_lva is not set in src function.
23151 2015-04-17  Tom de Vries  <tom@codesourcery.com>
23152             Michael Matz  <matz@suse.de>
23154         PR tree-optimization/64950
23155         * gimple-iterator.c (update_modified_stmts): Remove static.
23156         * gimple-iterator.h (update_modified_stmts): Declare.
23157         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
23158         (gimplify_va_arg_internal): New function.
23159         (gimplify_va_arg_expr): Use IFN_VA_ARG.
23160         * gimplify.h (gimplify_va_arg_internal): Declare.
23161         * internal-fn.c (expand_VA_ARG): New unreachable function.
23162         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
23163         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
23164         (expand_ifn_va_arg): New function.
23165         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
23166         (pass_stdarg::execute): Call expand_ifn_va_arg.
23167         (pass_data_lower_vaarg): New pass_data.
23168         (pass_lower_vaarg): New gimple_opt_pass.
23169         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
23170         (make_pass_lower_vaarg): New function.
23171         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
23172         properties_required field.
23173         * passes.def (all_passes): Add pass_lower_vaarg.
23174         * tree-pass.h (PROP_gimple_lva): Add define.
23175         (make_pass_lower_vaarg): Declare.
23177 2015-04-17  Tom de Vries  <tom@codesourcery.com>
23179         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
23180         * calls.c (call_expr_flags): Same.
23182 2015-04-17  Tom de Vries  <tom@codesourcery.com>
23184         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
23185         (pass_stdarg::execute): ... here.
23187 2015-04-17  Tom de Vries  <tom@codesourcery.com>
23188             Michael Matz  <matz@suse.de>
23190         * tree-cfg.c (make_blocks_1): Factor out of ...
23191         (make_blocks): ... here.
23192         (make_edges_bb): Factor out of ...
23193         (make_edges): ... here.
23194         (gimple_find_sub_bbs): New function.
23195         * tree-cfg.h (gimple_find_sub_bbs): Declare.
23197 2015-04-17  Tom de Vries  <tom@codesourcery.com>
23199         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
23201 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
23203         * asan.c (set_sanitized_sections): New function.
23204         (section_sanitized_p): Ditto.
23205         (asan_protect_global): Optionally sanitize user-defined
23206         sections.
23207         * asan.h (set_sanitized_sections): Declare new function.
23208         * common.opt (fsanitize-sections): New option.
23209         * doc/invoke.texi (-fsanitize-sections): Document new option.
23210         * opts-global.c (handle_common_deferred_options): Handle new
23211         option.
23213 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
23215         PR debug/65771
23216         * dwarf2out.c (loc_list_from_tree): Return NULL
23217         for DEBUG_EXPR_DECL.
23219 2015-04-17  Christian Bruel  <christian.bruel@st.com>
23221         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
23222         same attributes.
23224 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
23226         * ira-color.c (setup_left_conflict_sizes_p): Do not process
23227         node itself when computing left conflict subnode size.
23229 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
23231         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
23232         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
23233         *fop_<mode>_1_sse using enabled attribute.  Use
23234         register_mixssei387nonimm_operand operand 1 predicate. Change
23235         alternative 3 constraints from "x" to "v".
23237 2015-04-16  Richard Biener  <rguenther@suse.de>
23239         PR tree-optimization/65774
23240         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
23241         bit-value tracking on.
23243 2015-04-16  Richard Biener  <rguenther@suse.de>
23245         PR tree-optimization/64277
23246         * tree-vrp.c (check_array_ref): Fix anti-range handling,
23247         simplify upper bound handling.
23248         (search_for_addr_array): Simplify.
23249         (check_array_bounds): Handle ADDR_EXPRs here.
23250         (check_all_array_refs): Simplify.
23252 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
23254         * config/i386/i386.c (print_reg): Rewrite function.
23256 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23258         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
23259         Invert the condition.
23261 2015-04-16  Renlin Li  <renlin.li@arm.com>
23263         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
23264         simplifications for UNSIGNED_FLOAT.
23266 2015-04-16  Nick Clifton  <nickc@redhat.com>
23268         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
23269         MUL_UNINIT.
23270         (enum rl78_cpu_type): New.
23271         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
23272         (umulhi3_shift_virt): Remove m constraint from operand 1.
23273         (umulqihi3_virt): Likewise.
23274         * config/rl78/rl78.c (rl78_option_override): Add code to process
23275         -mcpu and -mmul options.
23276         (rl78_alloc_physical_registers): Add code to handle divhi and
23277         divsi valloc attributes.
23278         (set_origin): Likewise.
23279         * config/rl78/rl78.h (RL78_MUL_G14): Define.
23280         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
23281         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
23282         __RL78_Gxx__.
23283         (ASM_SPEC): Pass -mcpu on to assembler.
23284         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
23285         (mulqi3_rl78): Likewise.
23286         (mulhi3_g13): Likewise.
23287         (mulhi3): Generate the G13 or G14 versions of the insn directly.
23288         (mulsi3): Likewise.
23289         (mulhi3_g14): Add clobbers of AX and BC.
23290         (mulsi3_g14): Likewise.
23291         (mulsi3_g13): Likewise.
23292         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
23293         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
23294         * config/rl78/rl78.opt (mmul): Initialise value to
23295         RL78_MUL_UNINIT.
23296         (mcpu): New option.
23297         (m13, m14, mrl78): New option aliases.
23298         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
23299         (MULTILIB_DIRNAMES): Add g13 and g14.
23300         * doc/invoke.texi: Document -mcpu and -mmul options.
23302 2015-04-16  Richard Biener  <rguenther@suse.de>
23304         * tree-ssa-ccp.c (likely_value): See if we have operands that
23305         are marked as never simulate again and return CONSTANT in this
23306         case.
23307         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
23308         not have any operands that will be simulated again as
23309         not being simulated again.
23311 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
23313         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
23314         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
23315         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
23316         attribute.
23317         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
23318         enabled attribute.
23319         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
23320         *float<SWI48:mode><MODEF:mode>2_sse.
23321         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
23322         enabled attribute.
23323         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
23324         enabled attribute.
23326 2015-04-15  Tom de Vries  <tom@codesourcery.com>
23328         PR other/65487
23329         * function.c (push_dummy_function): New function.
23330         (init_dummy_function_start): Use push_dummy_function.
23331         (pop_dummy_function): New function.  Factored out of ...
23332         (expand_dummy_function_end): ... here.
23333         * function.h (push_dummy_function, pop_dummy_function): Declare.
23334         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
23335         pop_dummy_function.
23336         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
23338 2015-04-15  Jeff Law  <law@redhat.com>
23340         PR tree-optimization/47679
23341         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
23342         need for forward declaration in upcoming changes.
23343         (record_conditions, record_edge_info): Likewise.
23345         PR rtl-optimization/42522
23346         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
23347         SIGN_EXTRACT as a whole object rather than simplifying
23348         its operand.
23350 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
23352         PR ipa/65765
23353         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
23354         and GIMPLE_PREDICT use break instead of return true. For
23355         GIMPLE_EH_DISPATCH, compare dispatch region.
23357 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
23359         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
23360         details about the implementation.  Make clear preference for
23361         __atomic builtins.  Reduce possibility of future change.
23363 2015-04-15  Nick Clifton  <nickc@redhat.com>
23365         * config/rx/rx.opt (mallow-string-insns): New option.
23366         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
23367         builtin if string instructions are denied.
23368         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
23369         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
23370         appropriate.
23371         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
23372         * config/rx/rx.md (movstr): Enable pattern only if string
23373         instructions are allowed.
23374         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
23375         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
23376         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
23377         (MULTILIB_DIRNAMES): Add no-strings.
23378         * doc/invoke.texi: Document -mno-allow-string-insns.
23380 2015-04-15  Alan Modra  <amodra@gmail.com>
23382         PR target/65408
23383         PR target/58744
23384         PR middle-end/36043
23385         * calls.c (load_register_parameters): Don't load past end of
23386         mem unless suitably aligned.
23388 2015-04-15  Nick Clifton  <nickc@redhat.com>
23390         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
23391         decrement instruction as being frame related.
23392         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
23393         based addresses.
23394         If zero extending a function address enclose the operation in
23395         %code(...).
23396         (rl78_preferred_reload_class): New function.
23397         (TARGET_PREFERRED_RELOAD_CLASS): Define.
23398         * config/rl78/rl78.md: Remove useless constraints in expanders.
23399         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
23400         (mulhi3_rl78): Likewise.
23401         (mulhi3_g13): Likewise.
23402         (mulsi3_rl78): Likewise.
23403         (es_addr): Move to before the multiply patterns.
23405 2015-04-15  Alan Modra  <amodra@gmail.com>
23407         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
23408         and sequence_stack.  Add seq.
23409         (seq_stack): Delete.
23410         * function.c (prepare_function_start): Don't access x_last_insn.
23411         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
23412         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
23413         * emit_rtl.c (start_sequence, push_topmost_sequence,
23414         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
23415         sequence accessors.
23416         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
23417         remove_insn): Likewise.  Simplify.
23418         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
23419         and pop_topmost_sequence.
23420         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
23421         debug insns.
23422         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
23424 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
23426         PR target/65729
23427         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
23428         the assertiion.
23430 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
23432         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
23433         (LEGACY_INT_REGNO_P): Ditto.
23434         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
23435         (ANY_MASK_REG_P): Remove.
23436         (BND_REG_P): Rename from ANY_BND_REG_P.
23437         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
23438         legacy integer registers.  Do not handle MMX_REG_P in a special way.
23439         Merge 64byte and 32byte SSE handling.
23441 2015-04-14  Nick Clifton  <nickc@redhat.com>
23443         * expr.c (expand_assignment): Force an address offset computation
23444         into a register before changing its mode.
23445         (expand_expr_real_1): Likewise.
23447 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
23449         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
23450         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
23451         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
23452         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
23453         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
23454         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
23455         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
23456         and __aarch64_vget_lane_any.
23458 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
23460         PR rtl-optimization/65761
23461         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
23462         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
23464 2015-04-14  Richard Biener  <rguenther@suse.de>
23466         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
23467         (graphite_can_represent_scev): Use POINTER_TYPE_P.
23469 2015-04-14  Richard Biener  <rguenther@suse.de>
23471         PR tree-optimization/65758
23472         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
23473         against -1.
23474         (ccp_lattice_meet): Likewise.
23475         (bit_value_unop): Likewise.
23476         (bit_value_binop): Likewise.
23477         (bit_value_assume_aligned): Likewise.
23479 2015-04-14  Christian Bruel  <christian.bruel@st.com>
23481         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
23482         function.
23484 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
23486         PR tree-optimization/63387
23487         * match.pd ((x unord x) | (y unord y) -> (x unord y),
23488         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
23490 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
23492         * config/i386/predicates.md (any_QIreg_operand): Rename from
23493         q_regs_operand.  Do not process subregs.
23494         (QIreg_operand): Use QI_REGNO_P predicate.
23495         (ext_QIreg_operand): Ditto.
23496         (ext_register_operand): Ditto.
23497         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
23498         (AND splitters): Ditto.
23499         (AND with -65536 splitter): Add SWI48 mode for operand 0.
23500         (AND with -256 splitter): Use any_QIreg_operand predicate and
23501         SWI248 mode for operand 0.
23502         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
23503         mode for operand 0.
23504         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
23506 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
23508         * doc/plugins.texi: Rewrite first introductory paragraph.
23510 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
23512         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
23513         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
23515 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
23517         * ipa-profie.c (ipa_profile): Check number of parameters
23518         and possible polymorphic call targets before
23519         devirtualizing.
23521 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
23523         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
23524         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
23526 2015-04-13  Richard Biener  <rguenther@suse.de>
23528         PR tree-optimization/65204
23529         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
23530         takens for bit-CCP.
23532 2015-04-13  Richard Biener  <rguenther@suse.de>
23534         PR target/65660
23535         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
23536         and cond_not_taken_branch_cost to 4 and 2.
23537         (bdver2_cost): Likewise.
23538         (bdver3_cost): Likewise.
23539         (bdver4_cost): Likewise.
23541 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
23543         * hash-table.h (hash_table constructor): Add mem stats.
23544         (alloc_entries): Likewise.
23546 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
23548         * ipa-cp.c (ipcp_driver): Relase prev_edge.
23549         * passes.c (execute_one_pass): Only add transform if pass has one.
23551 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
23553         * config/i386/i386.c (ix86_option_override_internal): Don't set
23554         -fprefetch-loop-arrays if optimizing for size.
23556 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
23557             Gerald Pfeifer  <gerald@pfeifer.com>
23559         * doc/contrib.texi (Contributors): Add Martin Jambor and
23560         Michael Matz.
23562 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
23564         * BASE-VER: Set to 6.0.0.
23566         PR tree-optimization/65747
23567         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
23568         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
23570 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
23572         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
23573         sentence.  Improve grammar.
23575 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
23577         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
23579 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
23581         PR ipa/65743
23582         * ipa-inline-transform.c (speculation_removed): Remove static var.
23583         (check_speculations): New function.
23584         (clone_inlined_nodes): Do not check spculations.
23585         (inline_call): Call check_speculations.
23586         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
23587         consider non-invariants.
23589 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
23590             Martin Liska  <mliska@suse.cz>
23592         PR ipa/65722
23593         * ipa-icf.c (sem_item::compare_cgraph_references): function and
23594         variable can not match.
23595         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
23596         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
23598 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
23600         PR tree-optimization/65735
23601         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
23602         Remove visited_phis argument, add visited_bbs, avoid recursing into the
23603         same bb rather than just into the same phi node.
23604         (thread_through_normal_block): Adjust caller.
23606 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
23608         * doc/contrib.texi (Contributors): Add Ira Rosen.
23610 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
23612         * gcov.c (find_source): Fix miswording in error message.
23613         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
23614         (ix86_expand_sse_comi_round): Fix typo in error message.
23616 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
23618         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
23620 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
23622         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
23624 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
23626         PR target/65710
23627         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
23628         Print bad_spills_num and insn_pseudos_num.
23630 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23632         PR target/65694
23633         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
23634         when creating +1 values for SImode.
23636 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
23638         PR target/65729
23639         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
23640         assert.
23642 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
23643             Iain Sandoe  <iain@codesourcery.com>
23645         PR target/65351
23646         * configure: Regenerate.
23648 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
23650         PR target/65671
23651         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
23653 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
23655         * doc/contrib.texi (Contributors): Add John Marino.
23657 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
23659         PR tree-optimization/65709
23660         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
23661         TREE_TYPE (TREE_TYPE (t)).
23663 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
23665         PR target/65710
23666         * lra-int.h (lra_bad_spill_regno_start): New.
23667         * lra.c (lra_bad_spill_regno_start): New.
23668         (lra): Set up lra_bad_spill_regno_start.  Set up
23669         lra_constraint_new_regno_start unconditionally.
23670         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
23671         spill preferences.
23673 2015-04-09  Marek Polacek  <polacek@redhat.com>
23674             Jakub Jelinek  <jakub@redhat.com>
23676         PR middle-end/65554
23677         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
23678         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
23679         of STRIP_NOPS.
23681 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
23683         PR rtl-optimization/65693
23684         * combine.c (is_parallel_of_n_reg_sets): Move outside of
23685         #ifndef HAVE_cc0.
23687 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
23689         PR target/65296
23690         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
23691         device specs file if "device-specs%s" didn't resolve to a path.
23693 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
23695         PR target/65676
23696         * config/i386/i386.c (fixup_modeless_constant): New.
23697         (ix86_expand_args_builtin): Fixup modeless constant operand.
23698         (ix86_expand_round_builtin): Ditto.
23699         (ix86_expand_special_args_builtin): Ditto.
23700         (ix86_expand_builtin): Ditto.
23702 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
23704         PR target/65693
23705         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
23706         any pow2 integer in between 2 and 0x80000000U inclusive.
23708 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
23710         PR rtl-optimization/65693
23711         * combine.c (is_parallel_of_n_reg_sets): Change first argument
23712         from an rtx_insn * to an rtx.
23713         (try_combine): Adjust both callers.  Use it once more.
23715 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
23717         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
23718         (chkp_make_static_const_bounds): Search existing
23719         symbol by assembler name.  Use make_decl_one_only.
23720         (chkp_get_zero_bounds_var): Remove node search which
23721         is now performed in chkp_make_static_const_bounds.
23722         (chkp_get_none_bounds_var): Likewise.
23724 2015-04-08  Michael Witten  <mfwitten@gmail.com>
23726         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
23727         to an example.
23729 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23731         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
23733 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
23735         * doc/extend.texi (__sync Builtins): Fix grammar.
23737 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23739         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
23741 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23743         * varasm.c (emit_local): Move definition of align.
23745 2015-04-08  Julian Brown  <julian@codesourcery.com>
23747         * config/nvptx/mkoffload.c (process): Support variable mapping.
23749 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
23751         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
23752         alpha_links **.
23753         (alpha_write_one_linkage): Correct typo.
23755 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
23757         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
23759 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
23761         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
23763 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
23765         * tree-chkp.h (chkp_insert_retbnd_call): New.
23766         * tree-chkp.c (chkp_insert_retbnd_call): New.
23767         * ipa-split.c (insert_bndret_call_after): Remove.
23768         (split_function): Use chkp_insert_retbnd_call.
23769         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
23770         bounds for instrumented functions.
23772 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
23774         PR ipa/65540
23775         * calls.c (initialize_argument_information): When producing tail
23776         call also turn SSA_NAMES passed by references to original PARM_DECLs
23778 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
23780         PR target/65648
23781         * lra-remat.c (do_remat): Process input and non-input insn
23782         registers separately.
23784 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
23786         PR debug/65678
23787         * valtrack.c (debug_lowpart_subreg): New function.
23788         (dead_debug_insert_temp): Use it.
23790         PR middle-end/65680
23791         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
23792         into signed HOST_WIDE_INT the same as negative bit_offset.
23794 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
23796         * ipa-comdats.c (ipa_comdats): Visit all thunks
23797         to set proper comdat group.
23799 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23801         PR target/65489
23802         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
23803         on constants for NEON VSTRUCT modes.
23805 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
23806             Iain Sandoe  <iain@codesourcery.com>
23808         PR target/65351
23809         * configure: Regenerate.
23811 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
23813         PR target/65614
23814         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
23815         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
23816         that LFD is used to load double constants instead of LFS.  Add
23817         defaults for all costs structures.  Add comments for missing
23818         initialization fields.
23819         (size32_cost): Likewise.
23820         (size64_cost): Likewise.
23821         (rs64a_cost): Likewise.
23822         (mpccore_cost): Likewise.
23823         (ppc403_cost): Likewise.
23824         (ppc405_cost): Likewise.
23825         (ppc440_cost): Likewise.
23826         (ppc476_cost): Likewise.
23827         (ppc601_cost): Likewise.
23828         (ppc603_cost): Likewise.
23829         (ppc604_cost): Likewise.
23830         (ppc604e_cost): Likewise.
23831         (ppc620_cost): Likewise.
23832         (ppc630_cost): Likewise.
23833         (ppccell_cost): Likewise.
23834         (ppc750_cost): Likewise.
23835         (ppc7450_cost): Likewise.
23836         (ppc8540_cost): Likewise.
23837         (ppce300c2c3_cost): Likewise.
23838         (ppce500mc_cost): Likewise.
23839         (ppce500mc64_cost): Likewise.
23840         (ppce5500_cost): Likewise.
23841         (ppce6500_cost): Likewise.
23842         (titan_cost): Likewise.
23843         (power4_cost): Likewise.
23844         (power6_cost): Likewise.
23845         (power7_cost): Likewise.
23846         (power8_cost): Likewise.
23847         (ppca2_cost): Likewise.
23848         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
23850         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
23851         instead of XXLOR to copy SFmode to clear out dirty bits created
23852         when SFmode denormals are generated.
23853         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
23854         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
23856 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
23858         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
23859         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
23860         * config/aarch64/aarch64-tune.md: Regenerate.
23862 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
23864         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
23865         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
23866         * config/arm/arm-cores.def (exynos-m1): New core.
23867         * config/arm/arm-tune.md: Regenerate.
23868         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
23869         * config/arm/bpabi.h: Likewise.
23871 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
23873         * ipa-cp (set_single_call_flag): Remove too
23874         restrictive assert.
23876 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
23878         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
23879         GOMP_offload_unregister from the destructor.
23881 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
23883         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
23884         flags for instrumentation thunk.
23885         (chkp_produce_thunks): Likewise.
23887 2015-04-05  Martin Liska  <mliska@suse.cz>
23889         PR ipa/65665
23890         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
23891         has computed data structure.
23892         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
23894 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
23896         * invoke.texi (inline-unit-growth): Increase growth to 20%
23897         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
23899 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
23901         PR target/65647
23902         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
23903         value checking.
23904         (lra_rematerialization_iter): New.
23905         * lra.c (lra): Initialize lra_rematerialization_iter.
23906         Stop updating lra_constraint_new_regno_start after switching of
23907         inheritance and rematerialization.
23908         * lra-remat.c (lra_rematerialization_iter): New.
23909         (lra_remat): Add printing pass iteration.  Do rematerialization
23910         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
23912 2015-04-04  Richard Biener  <rguenther@suse.de>
23914         PR tree-optimization/64909
23915         PR tree-optimization/65660
23916         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
23917         to take a cost vector for scalar iteration cost.
23918         (vect_get_single_scalar_iteration_cost): Likewise.
23919         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
23920         Compute the scalar iteration cost into a cost vector.
23921         (vect_get_known_peeling_cost): Use the scalar cost vector to
23922         account for the cost of the peeled iterations.
23923         (vect_estimate_min_profitable_iters): Likewise.
23924         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
23925         Likewise.
23927 2015-04-04  Alan Modra  <amodra@gmail.com>
23929         PR target/65576
23930         PR target/65240
23931         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
23932         0.0 constant unless TARGET_VSX.
23933         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
23934         alternative.
23936 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
23938         PR ipa/65654
23939         * ipa-inline-transform.c (inline_call): Skip sanity check to work
23940         around the ICE
23942 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
23944         PR ipa/65655
23945         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
23946         speculative indirect edges to avoid ordering issue.
23948 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
23950         PR ipa/65076
23951         * ipa-inline.c (edge_badness): Add combined size to the denominator.
23953 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
23955         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
23956         TYPE_ARTIFICIAL on the .omp_data* types.
23958 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
23960         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
23961         instrumentation thunks.
23963 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
23965         * config/i386/i386.c (ix86_expand_call): Avoid nested
23966         PARALLEL in returned call value.
23968 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
23970         * lto-cgraph.c (input_cgraph_1): Always link instrumented
23971         assembler name with original one.
23973 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
23975         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
23977 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
23979         Revert parts of r216820.
23980         * config/i386/i386.md (movqi_internal): Correct type calculation
23981         for alternatives 3 and 5.
23983 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
23985         PR preprocessor/61977
23986         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
23987         predefine __vector/__bool/__pixel macros nor context sensitive
23988         macros for CLK_ASM.
23989         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
23991 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
23993         * config/pa/pa.c (pa_output_move_double): Directly handle register
23994         indexed memory operand.  Simplify handling of scaled register indexed
23995         memory operands.
23997 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
23999         PR driver/65444
24000         * config/i386/linux-common.h (MPX_SPEC): New.
24001         (CHKP_SPEC): Add MPX_SPEC.
24002         * doc/invoke.texi (-fcheck-pointer-boudns): Document
24003         possible issues with '-z bndplt' support in linker.
24005 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
24007         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
24008         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
24009         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
24010         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
24011         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
24013 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
24015         * config/i386/sync.md (UNSPEC_MOVA): Remove.
24016         (atomic_load<mode>): Change operand 0 predicate to
24017         nonimmediate_operand and fix up the destination when needed.
24018         Use UNSPEC_LDA.
24019         (atomic_loaddi_fpu): Use UNSPEC_LDA.
24020         (atomic_store<mode>): Change operand 1 predicate to
24021         nonimmendate_operand and move the source to register when needed.
24022         Use UNSPEC_STA.
24023         (atomic_store<mode>_1): Use UNSPEC_STA.
24024         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
24025         Fix moves from memory operand.  Use UNSPEC_STA.
24027 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24029         * expmed.c (strict_volatile_bitfield_p): Check that the access will
24030         not cross a MODESIZE boundary.
24031         (store_bit_field, extract_bit_field): Added assertions in the
24032         strict volatile bitfields code path.
24034 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
24036         PR target/65624
24037         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
24038         Increase args array size by one to avoid buffer overflow.
24040 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
24042         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
24043         split_part.
24044         * ipa-inline.c (edge_badness): Add wrapper penalty.
24045         (sum_callers): Move up.
24046         (inline_small_functions): Set single_caller.
24047         * ipa-inline.h (inline_summary): Add single_caller.
24048         * ipa-split.c (split_function): Set split_part.
24049         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
24050         * cgraph.h (cgraph_node): Add split_part.
24052 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
24054         PR target/58945
24055         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
24056         Do not split operands 0 and operands 2 to halfmode.
24057         (atomic_compare_and_swap<mode>): Update for
24058         atomic_compare_and_swap<dwi>_doubleword changes.
24060 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
24062         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
24063         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
24064         no caching is done.
24066 2015-03-31  Martin Liska  <mliska@suse.cz>
24068         PR ipa/65557
24069         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
24070         has already filled up function summary.
24071         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
24073 2015-03-31  Richard Biener  <rguenther@suse.de>
24075         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
24076         of types.
24078 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24080         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
24081         nested functions.
24082         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
24083         (s390_asm_output_function_label): Adapt to new signature of
24084         s390_function_num_hotpatch_hw
24085         Optimise the code generating assembler output.
24086         Add comments to assembler file.
24088 2015-03-31  Richard Biener  <rguenther@suse.de>
24090         PR middle-end/65626
24091         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
24092         of the noreturn call so it is last and cleanup_control_flow_bb
24093         can do the CFG part.
24095 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
24097         PR target/65531
24098         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
24099         same_comdat_group for external symbols.
24100         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
24101         infinite same_comdat_group traversal loop.
24103 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
24105         PR plugins/61176
24106         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
24107         automatically to $headers.
24109 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
24111         PR ipa/65610
24112         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
24113         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
24114         function.
24115         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
24116         Use it.
24117         * ipa-prop.c (param_type_may_change_p): Likewise.
24118         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
24119         (remove_unused_scope_block_p): Add in_ctor_dtor_block
24120         argument.  Before inlining, preserve
24121         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
24122         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
24123         recursive calls.
24124         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
24126 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
24128         PR ipa/65076
24129         * ipa-inline.c (edge_badness): Base denominator on callee's
24130         grwoth squared.
24132 2015-03-27  Martin Jambor  <mjambor@suse.cz>
24134         PR ipa/65478
24135         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
24136         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
24137         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
24138         node_calling_single_call.
24139         * ipa-cp.c (count_callers): New function.
24140         (set_single_call_flag): Likewise.
24141         (initialize_node_lattices): Count callers and set single_flag_call if
24142         necessary.
24143         (incorporate_penalties): New function.
24144         (good_cloning_opportunity_p): Use it, dump new flags.
24145         (propagate_constants_topo): Set node_within_scc flag if appropriate.
24146         * doc/invoke.texi (ipa-cp-recursion-penalty,
24147         ipa-cp-single-call-pentalty): Document.
24149 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
24151         PR ipa/65588
24152         * symtab.c (symtab_node::get_partitioning_class): Register vars
24153         are duplicated.
24154         * varpool.c (symbol_table::output_variables) Do not assemble unefined
24155         decls for non-symbols.
24157 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24159         PR target/65248
24160         * output.h (default_binds_local_p_2): New.
24161         * varasm.c (default_binds_local_p_2): Renamed to ...
24162         (default_binds_local_p_3): This.  Don't return true on protected
24163         data symbol if protected data may be external.
24164         (default_binds_local_p): Use default_binds_local_p_3.
24165         (default_binds_local_p_1): Likewise.
24166         (default_binds_local_p_2): New.
24167         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
24168         default_binds_local_p_2 if TARGET_MACHO is undefined.
24170 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
24172         PR target/65593
24173         * config/i386/i386.c (legitimize_pic_address): If base
24174         is SYMBOL_REF or LABEL_REF using %rip addressing, force
24175         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
24177 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
24179         PR target/65531
24180         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
24181         comdat groups.
24183 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
24185         PR ipa/65600
24186         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
24187         of optimized out indirect call.
24188         (redirect_to_unreachable): Always build symbol table node for
24189         BUILT_IN_UNREACHABLE
24191 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
24193         PR target/65407
24194         * ira-costs.c (record_reg_classes): Process all constraint string
24195         containing 0-9.
24197 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
24199         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
24200         memory_operand.
24202         PR target/65052
24203         * config/c6x/constraints.md (S3): New constraint.
24204         * config/c6x/c6x.md (real_jump): Use it.
24206 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
24208         PR middle-end/65595
24209         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
24210         do redirection if the call is not optimized out.
24212 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
24214         PR target/65495
24215         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
24216         (fchkp-check-incomplete-type): Add LTO.
24217         (fchkp-zero-input-bounds-for-main): Likewise.
24218         (fchkp-first-field-has-own-bounds): Likewise.
24219         (fchkp-narrow-bounds): Likewise.
24220         (fchkp-narrow-to-innermost-array): Likewise.
24221         (fchkp-use-static-bounds): Likewise.
24222         (fchkp-use-static-const-bounds): Likewise.
24223         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
24225 2015-03-27  Marek Polacek  <polacek@redhat.com>
24227         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
24229 2015-03-27  Marek Polacek  <polacek@redhat.com>
24231         PR sanitizer/65583
24232         * ubsan.c (ubsan_create_edge): New function.
24233         (instrument_bool_enum_load): Call it.
24234         (instrument_nonnull_arg): Likewise.
24235         (instrument_nonnull_return): Likewise.
24236         (instrument_object_size): Likewise.
24238 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
24240         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
24241         auto_vec.
24243 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
24245         PR lto/65536
24246         * lto-streamer.h (class lto_location_cache): New.
24247         (struct data_in): Add location_cache.
24248         (lto_input_location): Update prototype.
24249         (stream_input_location_now): New.
24250         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
24251         pointer to location.
24252         (stream_input_location): Update.
24253         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
24254         (warn_odr): Apply location cache before warning.
24255         (lto_input_location): Update prototype.
24256         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
24257         Use stream_input_location_now.
24258         * lto-streamer-in.c (lto_location_cache::current_cache): New static
24259         variable.
24260         (lto_location_cache::cmp_loc): New function.
24261         (lto_location_cache::apply_location_cache): New function.
24262         (lto_location_cache::accept_location_cache): New function.
24263         (lto_location_cache::revert_location_cache): New function.
24264         (lto_location_cache::input_location): New function.
24265         (lto_input_location): Do location caching.
24266         (stream_input_location_now): New function.
24267         (input_eh_region, input_struct_function_base): Use
24268         stream_input_location_now.
24269         (lto_data_in_create): use new.
24270         (lto_data_in_delete): Use delete.
24271         * tree-streamer-in.c (unpack_ts_block_value_fields,
24272         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
24273         lto_input_ts_exp_tree_pointers): Update for cached location api.
24275 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
24277         PR ipa/65076
24278         * passes.def: Add pass_nothrow.
24279         * ipa-pure-const.c: (pass_data_nothrow): New.
24280         (pass_nothrow): New.
24281         (pass_nothrow::execute): New.
24282         (make_pass_nothrow): New.
24283         * tree-pass.h (make_pass_nothrow): Declare.
24285 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
24287         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
24288         edge to change by speculation resolution or redirection.
24289         (edge_set_predicate): Likewise.
24290         (inline_summary_t::duplicate): Likewise.
24291         (remap_edge_summaries): Likewise.
24293 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
24295         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
24296         New macros.
24297         (can_inline_edge_p): Relax option matching for always inline functions.
24299 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
24301         PR target/65561
24302         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
24303         Check operand 4 and operand 0 for equality.
24304         (avx512f_vextract<shuffletype>32x4_1_maskm):
24305         Check operand 6 and operand 0 for equality.
24306         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
24307         for equality.
24308         (vec_extract_hi_<mode>_maskm): Ditto.
24310 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
24312         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
24313         dead calls back to live.
24314         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
24315         cross check to ...
24316         (cgraph_node::verify_node): ... here; verify only callee edges,
24317         not caller.
24318         * cif-code.def (CILK_SPAWN): New code.
24320 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
24322         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
24323         (edge_set_predicate): Use it to mark unreachable edges.
24324         (inline_summary_t::duplicate): Remove unnecesary code.
24325         (remap_edge_summaries): Likewise.
24326         (dump_inline_summary): Report contains_cilk_spawn.
24327         (compute_inline_parameters): Compute contains_cilk_spawn.
24328         (inline_read_section, inline_write_summary): Stream
24329         contains_cilk_spawn.
24330         * ipa-inline.c (can_inline_edge_p): Do not touch
24331         DECL_STRUCT_FUNCTION that may not be available;
24332         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
24333         remove check for callee_fun->can_throw_non_call_exceptions and
24334         replace it by optimization attribute check; check for flag_exceptions.
24335         * ipa-inline-transform.c (inline_call): Maintain
24336         DECL_FUNCTION_PERSONALITY
24337         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
24339 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
24341         PR tree-optimization/65551
24342         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
24343         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
24345 2015-03-26  Richard Biener  <rguenther@suse.de>
24347         PR middle-end/65555
24348         * tree-cfg.c (verify_gimple_call): Do not require a call to
24349         have no LHS if it wasn't recognized as control altering yet.
24351 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
24353         PR tree-optimization/64715
24354         * passes.def: Add another instance of pass_object_sizes before ccp1.
24355         * tree-object-size.c (pass_object_sizes::execute): In
24356         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
24357         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
24358         __bos result and the computed constant.  Remove redundant
24359         checks, obsoleted by gimple_call_builtin_p test.
24361         * var-tracking.c (variable_tracking_main_1): Don't track
24362         variables for targetm.no_register_allocation targets.
24364 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
24366         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
24367         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
24369 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
24371         PR target/65569
24372         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
24373         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
24374         0.0 is correctly setup.
24375         (extenddftf2_internal): Likewise.
24377 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
24379         PR tree-optimization/65177
24380         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
24381         (bb_in_bbs): New.
24382         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
24383         edges not adjacent on the path to the original code.
24385 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
24387         PR bootstrap/65537
24388         * doc/install.texi (Building a native compiler): Document new
24389         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
24390         configuration assumes that the host supports the linker plugin.
24392 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
24394         PR target/65508
24395         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
24396         chain for generated call.
24398 2015-03-25  Richard Biener  <rguenther@suse.de>
24400         * passes.c (pass_manager::execute_early_local_passes): Guard
24401         execution of pass_chkp_instrumentation_passes with
24402         flag_check_pointer_bounds.
24403         (pass_chkp_instrumentation_passes::gate): Likewise.
24405 2015-03-25  Martin Liska  <mliska@suse.cz>
24407         PR tree-optimization/65538
24408         * symbol-summary.h (function_summary::~function_summary):
24409         Relese memory for allocated summaries.
24410         (function_summary::release): New function.
24412 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
24414         PR lto/65515
24415         * lto-streamer-out.c (DFS::worklist): New struct.
24416         (DFS::worklist_vec): New data member.
24417         (DFS::next_dfs_num): Remove.
24418         (DFS::DFS): Rewritten using worklist instead of recursion,
24419         using most of code from DFS::DFS_write_tree.
24420         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
24421         pass it to DFS_write_tree calls.
24422         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
24423         quick initial checks push it into worklist_vec and return.
24425 2015-03-25  Richard Biener  <rguenther@suse.de>
24427         PR middle-end/65519
24428         * genmatch.c (expr::gen_transform): Re-write to avoid
24429         using gimple_build.
24431 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
24433         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
24435 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
24437         * config/arm/arm.opt (print_tune_info): New option.
24438         * config/arm/arm.c (arm_print_tune_info): New function.
24439         (arm_file_start): Call arm_print_tune_info.
24440         * config/arm/arm-protos.h (struct tune_params): Add comment.
24441         * doc/invoke.texi (@item -mprint-tune-info): New item.
24442         (-mtune): mention it in ARM Option Summary.
24444 2015-03-25  DJ Delorie  <dj@redhat.com>
24446         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
24447         correct clause.
24449 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
24450             Martin Liska  <mliska@suse.cz>
24452         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
24453         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
24454         (sem_item::add_type): New function.
24455         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
24456         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
24457         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
24458         (sem_function::equals_wpa): Fix typo.
24459         * ipa-icf.h (sem_item::add_type): New function.
24460         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
24461         order.
24463 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
24465         PR tree-optimization/65533
24466         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
24467         with swapped operands, call vect_free_slp_tree on
24468         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
24469         vector.
24471 2015-03-24  Richard Biener  <rguenther@suse.de>
24473         PR middle-end/65517
24474         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
24475         for fixup if necessary.
24477 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
24479         * doc/extend.texi (Function Attributes): Add @cindex entries
24480         for all attributes and regularize their format.  Delete text
24481         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
24482         information about "eightbit_data", "tiny_data", and "model"
24483         variable attributes to the Variable Attributes section.  Fix
24484         some obvious typos and copy-editing issues.
24485         (Variable Attributes, Type Attributes): Likewise add/fix
24486         @cindex entries for all attributes.
24488 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
24490         PR target/65523
24491         * tree-chkp.c (chkp_build_returned_bound): Ignore
24492         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
24494 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
24496         PR target/65505
24497         * config/sh/predicates.md (simple_mem_operand,
24498         displacement_mem_operand): Add test for reg.
24499         (short_displacement_mem_operand): Test for displacement_mem_operand
24500         before invoking sh_disp_addr_displacement.
24501         * config/sh/constraints.md (Sdd, Sra): Simplify.
24502         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
24503         Remove redundant displacement_mem_operand tests.
24505 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
24507         PR target/65296
24508         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
24509         the same -mmcu=MCU more than once.
24511 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
24513         PR bootstrap/65522
24514         * ipa-devirt.c: Remove duplicate demangle.h include.
24516         PR target/65504
24517         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
24518         on the pseudo.
24519         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
24520         REG_POINTER on *destptr after adjusting it for prologue size.
24522         PR ipa/65521
24523         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
24524         ultimate_alias_target ()->order ints instead of
24525         ultimate_alias_target () pointers.
24527 2015-03-23  Richard Biener  <rguenther@suse.de>
24529         PR tree-optimization/65518
24530         * tree-vect-stmts.c (vectorizable_load): Reject single-element
24531         interleaving cases we generate absymal code for.
24533 2015-03-23  Richard Biener  <rguenther@suse.de>
24535         PR tree-optimization/65494
24536         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
24537         matches here.
24538         (vect_analyze_slp_instance): But do that here, always and once.
24540 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24542         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
24543         adding T or multiplying by T+1 and subracting T.
24545 2015-03-22  Jeff Law  <law@redhat.com>
24547         PR rtl-optimization/64317
24548         * Makefile.in (OBJS): Add gcse-common.c
24549         * gcse.c: Include gcse-common.h
24550         (struct modify_pair_s): Move structure definition to gcse-common.h
24551         (compute_transp): Move function to gcse-common.c.
24552         (canon_list_insert): Similarly.
24553         (record_last_mem_set_info): Break out some code and put it into
24554         gcse-common.c.  Call into the new common code.
24555         (compute_local_properties): Pass additional arguments to compute_transp.
24556         * postreload-gcse.c: Include gcse-common.h and df.h
24557         (modify_mem_list_set, blocks_with_calls): New variables.
24558         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
24559         (get_bb_avail_insn): Pass in the expression index too.
24560         (alloc_mem): Allocate memory for the new bitmaps and lists.
24561         (free_mem): Free memory for the new bitmaps and lists.
24562         (insert_expr_in_table): Record a bitmap index for each entry we
24563         add to the table.
24564         (record_last_mem_set_info): Call into common code in gcse-common.c.
24565         (get_bb_avail_insn): If no available insn was found in the requested
24566         BB.  If BB has a single predecessor, see if the expression is
24567         transparent in BB and available in that single predecessor.
24568         (compute_expr_transp): New wrapper for compute_transp.
24569         (eliminate_partially_redundant_load): Pass expression's bitmap_index
24570         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
24571         (gcse_after_reload_main): If there are elements in the hash table,
24572         then compute transparency for all the elements in the hash table.
24573         * gcse-common.h: New file.
24574         * gcse-common.c: New file.
24576 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
24578         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
24579         as an adjective.
24580         (System Headers): Likewise.
24581         (Ifdef): Likewise.
24582         (Traditional macros): Likewise.
24583         (Invocation): Likewise.
24584         (Option Index): Likewise.
24585         * doc/cppopts.texi (-M): Likewise.
24586         (-finput-charset): Likewise.
24587         (--help): Likewise.
24588         * doc.invoke.texi (AVR Options): Likewise.
24589         (V850 Options): Likewise.
24591 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
24593         PR ipa/65475
24594         * ipa-devirt.c: Include demangle.h
24595         (odr_type_d): Add field rtti_broken.
24596         (odr_subtypes_equivalent_p): Do not require name to match.
24597         (compare_virtual_tables): Fix typo; if type already has ODR violation,
24598         bypass the tests; be ready for function referneces in vtables that are
24599         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
24600         (warn_odr): Give up for nameless types.
24601         (warn_types_mismatch): Report mismatch in mangled names;
24602         report mismatch in anonymous namespaces; look into component types to
24603         give useful error; report when mismatch is dragged in from other ODR
24604         type.
24605         (odr_types_equivalent_p): Match types for being polymorphic; avoid
24606         duplicated diagnostics.
24607         (add_type_duplicate): Reorder checks so more informative ones come
24608         first; fix typo; do not output "the extra base is defined here" when
24609         we did not warn.
24610         (BINFO_N_BASE_BINFOS): Relax sanity check.
24612 2015-03-22  Martin Liska  <mliska@suse.cz>
24613             Jakub Jelinek  <jakub@redhat.com>
24615         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
24616         masks that can potentially include a builtin.
24617         (ix86_add_new_builtins): Introduce fast filter for isa values
24618         that cannot trigger builtin inclusion.
24620 2015-03-22  Martin Liska  <mliska@suse.cz>
24622         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
24623         (sem_item::update_hash_by_local_refs): Likewise.
24624         (sem_variable::get_hash): Empty line is fixed.
24625         (sem_item_optimizer::execute): Include adding of hash references.
24626         (sem_item_optimizer::update_hash_by_addr_refs): New function.
24627         (sem_item_optimizer::build_hash_based_classes): Use local hash.
24628         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
24629         (sem_item::update_hash_by_local_refs): Likewise.
24631 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
24633         PR ipa/65502
24634         * ipa-comdats.c (enqueue_references): Walk through thunks.
24635         (ipa_comdats): Likewise.
24636         (set_comdat_group_1): New function.
24638 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
24640         PR ipa/65475
24641         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
24642         non-polymorphic
24644 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
24645             Gerald Pfeifer  <gerald@pfeifer.com>
24647         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
24649 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
24650             Sandra Loosemore  <sandra@codesourcery.com>
24652         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
24653         function parameter declaration.
24654         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
24655         Update arguments to nios2_adjust_call_address().
24656         (sibcall_internal): Rename from *sibcall.
24657         (sibcall_value_internal): Rename from *sibcall_value.
24658         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
24659         (nios2_large_got_address): Add target temp reg parameter.
24660         (nios2_got_address): Adjust call to nios2_large_got_address, add
24661         force_reg around it.
24662         (nios2_load_pic_address): Add target temp reg parameter, replace call
24663         to nios2_got_address with corresponding code.
24664         (nios2_legitimize_constant_address): Update call to
24665         nios2_load_pic_address.
24666         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
24667         to use temp reg for PIC loading purposes.
24668         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
24669         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
24670         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
24672 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
24674         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
24675         usage of "the @option{...}".
24676         (-Wopenmp-simd): Likewise.
24677         (-fsanitize-recover): Likewise.
24678         (-fsanitize-undefined-trap-on-error): Likewise.
24679         (-flto): Likewise.
24680         (tracer-dynamic-coverage-feedback): Likewise.
24681         (reorder-block-duplicate-feedback): Likewise.
24682         (loop-unroll-jam-size): Likewise.
24683         (-B): Likewise.
24684         (-I-): Likewise.
24685         (-mabs=legacy): Likewise.
24686         (-mupper-regs-df): Likewise.
24687         (-mupper-regs-sf): Likewise.
24688         (-mpointers-to-nested-functions): Likewise.
24690 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
24692         * doc/extend.texi (Cilk Plus Builtins): Add markup.
24694 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
24696         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
24697         additional index entries and cross-references.
24698         (-fchkp-check-incomplete-type): Likewise.
24699         (-fchkp-first-field-has-own-bounds): Likewise.
24700         (-fchkp-narrow-to-innermost-array): Likewise.
24701         (-fchkp-use-fast-string-functions): Likewise.
24702         (-fchkp-use-nochk-string-functions): Likewise.
24703         (-fchkp-use-static-const-bounds): Likewise.
24704         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
24705         (-fchkp-instrument-marked-only): Likewise.
24706         (-fchkp-use-wrappers): Likewise.
24707         (-static-libmpx): Likewise.
24708         (-static-libmpxwrappers): Likewise.
24709         * doc/extend.texi (bnd_legacy): Likewise.
24710         (bnd_instrument): Likewise.
24711         (bnd_variable_size): Likewise.
24712         (Pointer Bounds Checker builtins): Likewise.
24714 2015-03-21  Tom de Vries  <tom@codesourcery.com>
24716         PR tree-optimization/65458
24717         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
24718         * cgraph.h (cgraph_node): Add parallelized_function field.
24719         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
24720         (input_overwrite_node): Read parallelized_function field.
24721         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
24722         parallelized_function on cgraph_node for child_fn.
24723         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
24724         Remove include of gt-tree-parloops.h.
24725         (parallelized_functions): Remove static variable.
24726         (parallelized_function_p): Rewrite using parallelized_function field of
24727         cgraph_node.
24728         (create_loop_fn): Remove adding to parallelized_functions.
24729         * Makefile.in (GTFILES): Remove tree-parloops.c
24731 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
24733         PR rtl-optimization/64366
24734         * lra.c (lra_update_insn_regno_info): Consider regs in
24735         CALL_INSN_FUNCTION_USAGE memory.
24737 2015-03-20  Richard Biener  <rguenther@suse.de>
24739         PR middle-end/64715
24740         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
24741         for type comparison and gcc_checking_assert.
24742         (chrec_fold_plus_poly_poly): Likewise.
24743         (chrec_fold_multiply_poly_poly): Likewise.
24744         (chrec_convert_1): Likewise.
24745         * gimplify.c (gimplify_expr): Remove premature folding of
24746         &X + CST to &MEM[&X, CST].
24748 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
24750         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
24751         already is final.
24752         (ipa_inline): Recompute inline_failed codes.
24753         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
24754         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
24755         CIF_FINAL_ERROR.
24757 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
24759         PR rtl-optimization/60851
24760         * recog.c (constrain_operands): Accept a pseudo register before reload
24761         for LRA enabled targets.
24763 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
24765         PR target/65240
24766         * config/rs6000/predicates.md (easy_fp_constant): Remove special
24767         -ffast-math handling that kept non-0 constants live in the RTL
24768         until reload.  Remove logic testing the number of instructions it
24769         took to create a constant in a GPR that was never used, due to a
24770         test for soft-float earlier.
24771         (memory_fp_constant): Delete, no longer used.
24773         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
24774         alternatives for loading non-0 constants into GPRs for hard
24775         floating point that is no longer needed due to changes in
24776         easy_fp_constant.  Add support for loading 0.0 into GPRs.
24777         (mov<mode>_hardfloat32): Likewise.
24778         (mov<mode>_hardfloat64): Likewise.
24779         (mov<mode>_64bit_dm): Likewise.
24780         (movtd_64bit_nodm): Likewise.
24781         (pre-reload move FP constant define_split): Delete define_split,
24782         since it is no longer used.
24783         (extenddftf2_internal): Remove GHF constraints that are not valid
24784         for extenddftf2.
24786 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
24788         PR rtl-optimization/63491
24789         * lra-constraints.c (check_and_process_move): Use src instead of
24790         sreg.  Remove some dead code.
24792 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
24794         PR ipa/65380
24795         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
24796         (sem_variable::merge): Likewise.
24798 2015-03-19  Martin Liska  <mliska@suse.cz>
24800         PR ipa/65465
24801         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
24802         all fields of cgraph_thunk_info.
24804 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
24806         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
24807         clone instrumented thunks.
24809 2015-03-19  Richard Biener  <rguenther@suse.de>
24811         Revert
24812         2015-03-10  Richard Biener  <rguenther@suse.de>
24814         PR middle-end/63155
24815         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
24816         * tree-ssa-coalesce.c: Include timevar.h.
24817         (attempt_coalesce): Handle graph being NULL.
24818         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
24819         Split out abnormal coalescing to ...
24820         (perform_abnormal_coalescing): ... this function.
24821         (coalesce_ssa_name): Perform abnormal coalescing without computing
24822         live/conflict.
24823         (verify_ssa_coalescing_worker): New function.
24824         (verify_ssa_coalescing): Likewise.
24826 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24827             Jakub Jelinek  <jakub@redhat.com>
24829         PR sanitizer/65400
24830         * tsan.c (instrument_gimple): Clear tail call flag on
24831         calls.
24833 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
24835         PR sanitizer/65400
24836         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
24837         call in the return bb.
24838         (find_split_points): Add RETURN_BB argument, don't call
24839         find_return_bb.
24840         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
24841         if true append TSAN_FUNC_EXIT internal call after the call to
24842         the split off function.
24843         (execute_split_functions): Call find_return_bb here.
24844         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
24845         Adjust find_split_points and split_function calls.
24847 2015-03-18  DJ Delorie  <dj@redhat.com>
24849         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
24850         (iorqi3_virt): Likewise.
24852 2015-03-18  Tom de Vries  <tom@codesourcery.com>
24854         * tree-parloops.c (parallelize_loops): Make static.
24855         * tree-parloops.h (parallelize_loops): Remove extern declaration.
24857 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
24859         PR middle-end/64491
24860         Revert:
24861         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
24863         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
24864         condition would be removed due to undefined behaviour.
24866 2015-03-18  Martin Liska  <mliska@suse.cz>
24868         PR ipa/65432
24869         * cgraph.c (cgraph_node::get_create): Remove unnecessary
24870         xstrdup_for_dump wrapper.
24871         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
24872         sem_item::name.
24873         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
24874         with xstrdup_for_dump.
24875         (sem_variable::equals): Likewise.
24876         (sem_item_optimizer::read_section): Use symtab_node::name instead of
24877         sem_item::name.
24878         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
24879         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
24880         symtab_node::asm_name with xstrdup_for_dump.
24881         (congruence_class::dump): Use symtab_node::name instead of
24882         sem_item::name.
24883         * ipa-icf.h (symtab_node::name): Remove.
24884         (symtab_node::asm_name): Likewise.
24886 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
24888         PR tree-optimization/65450
24889         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
24890         function.
24891         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
24892         it instead of duplicate_ssa_name_ptr_info.
24894         PR target/65222
24895         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
24897 2015-03-18  Richard Biener  <rguenther@suse.de>
24899         * tree-data-ref.h (struct access_matrix): Remove.
24900         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
24901         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
24902         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
24903         (am_vector_index_for_loop): Likewise.
24904         (struct data_reference): Remove access_matrix member.
24905         (DR_ACCESS_MATRIX): Remove.
24906         (lambda_vector_new): Add comment.
24907         (lambda_matrix_new): Use XOBNEWVEC.
24909 2015-03-18  Richard Biener  <rguenther@suse.de>
24911         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
24912         (pass_ch::execute): Cleanup the CFG only if we did sth.
24913         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
24915 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24917         * expmed.c (synth_mult): Use std::swap instead of manually
24918         swapping algorithms.
24920 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
24922         PR target/65078
24923         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
24925 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
24927         PR target/65296
24928         * config/avr/avr.opt (-nodevicelib): New option.
24929         * doc/invoke.texi (AVR Options): Document it.
24930         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
24931         libgcc.a, libc.a, libm.a.
24932         * config/avr/specs.h: Same.
24933         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
24934         which don't (directly) depend on the device.  Print more help.
24935         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
24936         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
24937         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
24938         case of an error.
24939         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
24940         for specs file name.
24941         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
24942         * config/avr/avr-mcus.def: Adjust initializers and comments.
24944 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
24946         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
24947         DECL_ONE_ONLY to check if decl is one only.
24948         * ipa-split.c (consider_split): Limit splitt of one only functions.
24950 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
24952         PR tree-optimization/65427
24953         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
24954         functions.
24955         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
24957 2015-03-16  Marek Polacek  <polacek@redhat.com>
24959         * cgraph.h (add_new_static_var): Remove declaration.
24960         * varpool.c (add_new_static_var): Remove function.
24962 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
24964         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
24965         instead of vec<tree> * with vec_alloc and release for args.
24966         Adjust all users.
24968         PR middle-end/65431
24969         * omp-low.c (delete_omp_context): Only splay_tree_delete
24970         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
24971         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
24973 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
24975         PR sanitizer/64820
24976         * cfgexpand.c (align_base): New function.
24977         (alloc_stack_frame_space): Call it.
24978         (expand_stack_vars): Align prev_frame to be sure
24979         data->asan_vec elements aligned properly.
24981 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
24983         PR middle-end/65409
24984         * expr.c (store_field): Do not do a direct block copy if the source is
24985         a PARALLEL with BLKmode.
24987 2015-03-16  Tom de Vries  <tom@codesourcery.com>
24989         PR middle-end/65414
24990         Revert:
24991         2015-03-12  Tom de Vries  <tom@codesourcery.com>
24993         PR rtl-optimization/64895
24994         * lra-lives.c (check_pseudos_live_through_calls): Use
24995         actual_call_used_reg_set instead of call_used_reg_set, if available.
24997 2015-03-16  Alan Modra  <amodra@gmail.com>
24999         PR target/63150
25000         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
25001         Modify Z->r bswapdi splitter to use dest in place of scratch.
25002         In r->Z and Z->r bswapdi splitter rename word_high, word_low
25003         to word1, word2 and rearrange logic to suit.
25004         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
25005         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
25006         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
25007         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
25008         early clobber.
25010 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
25012         PR tree-optimization/65369
25013         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
25014         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
25015         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
25017         PR tree-optimization/65418
25018         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
25019         are casts in the first PLUS_EXPR operand, ensure tbias and
25020         *totallowp are in the inner type.
25022         PR rtl-optimization/65401
25023         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
25024         argument.  If true, adjust_address_nv of x with big-endian
25025         correction for the mode widening to GET_MODE (y).
25026         (make_field_assignment): Don't do MEM mode widening here.
25027         Use MEM_P instead of GET_CODE == MEM.
25029 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
25031         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
25032         the external decls.
25034 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25036         PR target/64600
25037         * config/arm/arm.c (arm_gen_constant, AND case): Use
25038         ARM_SIGN_EXTEND when constructing AND mask.
25040 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25042         * graph.c (print_graph_cfg): Make function names visible and append
25043         parenthesis to it.  Also make groups of basic blocks belonging to the
25044         same function visible.
25046 2015-03-12  Richard Biener  <rguenther@suse.de>
25048         PR middle-end/44563
25049         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
25050         to avoid quadratic behavior with inline expansion splitting blocks.
25051         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
25052         with the successor if the predecessor will be merged with it.
25053         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
25054         entry block with its successor.
25056 2015-03-13  Richard Biener  <rguenther@suse.de>
25058         PR middle-end/44563
25059         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
25060         (cleanup_tree_cfg_1): Do not call it.
25061         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
25062         (fixup_noreturn_call): Mark the stmt as control altering.
25063         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
25064         here.
25065         (pass_data_fixup_cfg): Produce a dump file.
25066         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
25067         (need_noreturn_fixup): New global.
25068         (pass_dominator::execute): Fixup queued noreturn calls.
25069         (optimize_stmt): Queue calls that became noreturn for fixup.
25070         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
25071         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
25072         (el_to_fixup): New global.
25073         (eliminate_dom_walker::before_dom_childre): Queue calls that
25074         became noreturn for fixup.
25075         (eliminate): Fixup queued noreturn calls.
25076         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
25077         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
25078         (substitute_and_fold_dom_walker::before_dom_children): Queue
25079         alls that became noreturn for fixup.
25080         (substitute_and_fold): Fixup queued noreturn calls.
25082 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
25084         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
25085         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
25086         are building; for methods check ODR type of class they belong to if
25087         they may lead to a polymorphic call.
25088         (sem_function::compare_polymorphic_p): Be bit smarter about testing
25089         when function may lead to a polymorphic call.
25090         (sem_function::compare_type_list): Remove.
25091         (sem_variable::equals): Update use of compatible_types_p.
25092         (sem_variable::parse_tree_refs): Remove.
25093         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
25094         cdtor.
25095         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
25096         matching here.
25097         (func_checker::compatible_polymorphic_types_p): Break out from ...
25098         (unc_checker::compatible_types_p): ... here.
25099         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
25100         Declare.
25101         (unc_checker::compatible_types_p): Update.
25102         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
25103         Remove.
25105 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25107         PR rtl-optimization/65235
25108         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
25109         When first element of vec_concat is const_int, calculate its size
25110         using second element.
25112 2015-03-12  Richard Biener  <rguenther@suse.de>
25114         PR middle-end/65270
25115         * fold-const.c (operand_equal_p): Fix ordering of resetting
25116         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
25118 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25120         * config/s390/s390.c (s390_reorg): Move code to output nops after label
25121         to s390_reorg ().
25122         (s390_asm_output_function_label): Likewise.
25123         * config/s390/s390.c (s390_asm_output_function_label):
25124         Fix function label alignment with -mhtopatch.
25125         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
25126         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
25127         ("nop_2_byte"): New define_insn.
25128         ("nop_4_byte"): Likewise.
25129         ("nop_6_byte"): Likewise.
25130         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
25131         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
25133 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
25135         PR target/65103
25136         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
25137         register.
25139 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
25141         PR target/65044
25142         * toplev.c (process_options): Restrict Pointer Bounds Checker
25143         usage with Address Sanitizer.
25145 2015-03-12  Richard Biener  <rguenther@suse.de>
25147         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
25148         to split on.
25149         * omp-low.c (expand_omp_taskreg): Split block before removing
25150         the stmt.
25151         (expand_omp_target): Likewise.
25152         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
25153         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
25154         stmt to split_block.
25156 2015-03-12  Tom de Vries  <tom@codesourcery.com>
25158         PR rtl-optimization/64895
25159         * lra-lives.c (check_pseudos_live_through_calls): Use
25160         actual_call_used_reg_set instead of call_used_reg_set, if available.
25162 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
25164         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
25165         (cgraph_node::remove): Likewise.
25166         (cgraph_node::get_untransformed_body): Likewise.
25167         * varpool.c (varpool_node::remove): Likewise.
25168         (varpool_node::get_constructor): Add sanity check.
25170 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
25172         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
25173         old GCC versions.
25174         (-fabi-compat-version): Likewise.
25175         (-ffriend-injection): Likewise.
25176         (-Wdeclaration-after-statement): Likewise.
25177         (-fomit-frame-pointer): Likewise.
25178         (-ftree-coalesce-inlined-vars): Likewise.
25179         (-fvisibility=): Likewise.
25180         * doc/extend.texi (Typeof): Likewise.
25181         (Zero Length): Likewise.
25182         (Escaped Newlines): Likewise.
25183         (Compound Literals): Likewise.
25184         (Function Attributes): Likewise.
25185         (Label Attributes): Likewise.
25186         (Type Attributes): Likewise.
25187         (Function Names): Likewise.
25188         (Other Builtins): Likewise.
25189         (Function Specific Option Pragmas): Likewise.
25190         (C++ Interface): Likewise.
25192 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
25194         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
25196 2015-03-11  Marek Polacek  <polacek@redhat.com>
25198         PR tree-optimization/65388
25199         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
25201 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
25203         PR target/65296
25204         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
25205         * configure: Regenerate.
25206         * config.in: Regenerate.
25207         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
25208         [-mn-flash]: Document it.
25209         [__AVR_ARCH__]: Document avrtiny.
25211         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
25212         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
25213         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
25215 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25217         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
25219 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
25221         PR target/65242
25222         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
25223         allow reloads of PLUS in floating point/VSX registers.
25225 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
25227         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
25228         crypto_sha256_fast.
25229         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
25231 2015-03-11  Richard Biener  <rguenther@suse.de>
25233         PR tree-optimization/65310
25234         * tree-sra.c (build_ref_for_offset): Also preserve larger
25235         alignment.
25237 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
25239         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
25241 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
25243         PR target/65368
25244         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
25245         new define_expand.
25246         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
25248 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
25250         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
25251         (sem_function::equals_wpa): ... here.
25253 2015-03-10  Marek Polacek  <polacek@redhat.com>
25254             Jakub Jelinek  <jakub@redhat.com>
25256         PR sanitizer/65367
25257         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
25258         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
25259         separately.
25261 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
25263         PR target/65286
25264         * config/rs6000/t-linux: For powerpc64* target set
25265         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
25267 2015-03-10  Richard Biener  <rguenther@suse.de>
25269         PR middle-end/44563
25270         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
25271         for redirect_all_calls.
25273 2015-03-10  Marek Polacek  <polacek@redhat.com>
25275         * gdbinit.in (pcfun): Define and document.
25277 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
25279         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
25280         of libgomp-plugin.h.
25281         (find_target_compiler): Support a case when the path to gcc is
25282         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
25283         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
25284         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
25285         libgomp-plugin.h.
25286         (main): Use GCC_INSTALL_NAME as target_driver_name.
25287         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
25288         define.
25289         (mkoffload.o): Remove obsolete include path and defines.
25290         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
25292 2015-03-10  Richard Biener  <rguenther@suse.de>
25294         PR middle-end/63155
25295         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
25296         * tree-ssa-coalesce.c: Include timevar.h.
25297         (attempt_coalesce): Handle graph being NULL.
25298         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
25299         Split out abnormal coalescing to ...
25300         (perform_abnormal_coalescing): ... this function.
25301         (coalesce_ssa_name): Perform abnormal coalescing without computing
25302         live/conflict.
25303         (verify_ssa_coalescing_worker): New function.
25304         (verify_ssa_coalescing): Likewise.
25306 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
25308         PR target/65296
25309         * config.gcc (extra_options) [avr]: Remove.
25310         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
25311         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
25312         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
25314         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
25315         (-mmcu=): Add Var and MissingArgError properties.
25316         (-march=): Remove.
25317         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
25318         * config/avr/t-multilib: Regenerate.
25319         * config/avr/specs.h: New file.
25320         * config/avr/driver-avr.c: New file.
25321         * config/avr/genopt.sh: Remove file.
25322         * config/avr/avr-tables.opt: Remove file.
25323         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
25324         * config/avr/avr-c.c: Same.
25325         * avr-arch.h: Same.
25326         (avr_current_device): Remove proto.
25327         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
25328         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
25329         (EXTRA_SPEC_FUNCTIONS): Define.
25330         (avr_devicespecs_file): New specs function proto.
25331         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
25332         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
25333         (avr_current_device): Remove definition and usage.
25334         (avr_set_core_architecture): New static function.
25335         (avr_option_override): Use it.
25336         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
25337         (mcu_name): New static array.
25338         (comparator, avr_archs_str, avr_mcus_str): New static functions.
25339         (avr_inform_devices, avr_inform_core_architectures): New functions.
25340         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
25341         (avrlibc.h) [WITH_AVRLIBC]: Include.
25342         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
25343         (print_mcu): Rewrite from scratch.
25344         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
25345         Forward to avr-specific specs defined in device-specs file.
25346         * config/avr/t-avr (driver-avr.o): New rule.
25347         (avr-devices.o): Depend on avr-arch.h.
25348         (avr-mcus): No more depend on avr-tables.opt.
25349         (avr-tables.opt): Remove rule.
25350         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
25352 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
25354         * c-family/c.opt (fchkp-use-wrappers): New.
25355         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
25356         (chkp_wrap_function): New.
25357         (chkp_build_instrumented_fndecl): Support wrapped
25358         functions.
25359         * doc/invoke.texi (-fcheck-pointer-bounds): New.
25360         (-fchkp-check-incomplete-type): New.
25361         (-fchkp-first-field-has-own-bounds): New.
25362         (-fchkp-narrow-bounds): New.
25363         (-fchkp-narrow-to-innermost-array): New.
25364         (-fchkp-optimize): New.
25365         (-fchkp-use-fast-string-functions): New.
25366         (-fchkp-use-nochk-string-functions): New.
25367         (-fchkp-use-static-bounds): New.
25368         (-fchkp-use-static-const-bounds): New.
25369         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
25370         (-fchkp-check-read): New.
25371         (-fchkp-check-write): New.
25372         (-fchkp-store-bounds): New.
25373         (-fchkp-instrument-calls): New.
25374         (-fchkp-instrument-marked-only): New.
25375         (-fchkp-use-wrappers): New.
25376         (-static-libmpx): New.
25377         (-static-libmpxwrappers): New.
25379 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
25381         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
25382         (CHKP_SPEC): Add wrappers library.
25383         * c-family/c.opt (static-libmpxwrappers): New.
25385 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
25387         * config/i386/linux-common.h (LIBMPX_LIBS): New.
25388         (LIBMPX_SPEC): New.
25389         (CHKP_SPEC): New.
25390         * gcc.c (CHKP_SPEC): New.
25391         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
25392         * c-family/c.opt (static-libmpx): New.
25394 2015-03-10  Richard Biener  <rguenther@suse.de>
25396         PR middle-end/44563
25397         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
25398         for compare_type.
25399         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
25400         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
25401         (cgraph_add_edge_to_call_site_hash): Likewise.
25402         (cgraph_node::get_edge): Likewise.
25403         (cgraph_edge::set_call_stmt): Likewise.
25404         (cgraph_edge::remove_caller): Likewise.
25406 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
25408         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
25409         (callee_saved_gpr_regs_size): ... this.
25410         (callee_saved_regs_first_regno): Rename to ...
25411         (callee_saved_first_gpr_regno): ... this.
25412         (callee_saved_regs_last_regno) Rename to ...
25413         (callee_saved_last_gpr_regno): ... this.
25414         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
25415         variables.
25416         (nds32_initial_elimination_offset): Likewise.
25417         (nds32_expand_prologue): Likewise.
25418         (nds32_expand_epilogue): Likewise.
25419         (nds32_expand_prologue_v3push): Likewise.
25420         (nds32_expand_epilogue_v3pop): Likewise.
25421         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
25422         Adjust renamed variables.
25423         (nds32_output_stack_pop): Likewise.
25425 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25427         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
25428         code in comment.
25430 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
25432         PR rtl-optimization/65321
25433         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
25434         than shift mode.
25435         * var-tracking.c (use_narrower_mode): Likewise.
25437 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
25439         PR tree-optimization/65355
25440         * varasm.c (notice_global_symbol): Do not produce RTL.
25441         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
25442         anchor.
25443         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
25444         check for section anchors.
25446 2015-03-10  Alan Modra  <amodra@gmail.com>
25448         PR target/65286
25449         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
25450         to be single-arch by default.  Set cpu_is_64bit for powerpc64
25451         given --with-cpu=native.
25452         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
25453         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
25454         and powerpc64le.
25455         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
25456         rs6000_isa_flags rather than TARGET_64BIT.
25458 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
25459             Kaz Kojima  <kkojima@gcc.gnu.org>
25461         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
25463 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
25465         PR lto/65361
25466         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
25467         on a TREE_BINFO, instead use BINFO_TYPE.
25469 2015-03-09  Richard Biener  <rguenther@suse.de>
25471         PR middle-end/65270
25472         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
25473         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
25474         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
25475         of that.  When comparing dereferences compare alignment.
25476         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
25478 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
25480         * ipa-inline-analysis.c (check_callers): Check
25481         node->can_remove_if_no_direct_calls_and_refs_p.
25482         (growth_likely_positive): Reorganize to call
25483         can_remove_if_no_direct_calls_p later.
25484         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
25485         will_be_removed_from_program_if_no_direct_calls_p): Add
25486         will_inline parameter.
25487         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
25488         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
25489         Handle inliner case correctly.
25491 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25493         PR tree-optimization/63743
25494         * cfgexpand.c (reorder_operands): Also reorder if only second operand
25495         had its definition forwarded by TER.
25497 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
25499         PR lto/65316
25500         * ipa-utils.h (types_odr_comparable): Add strict argument.
25501         * ipa-devirt.c: Fix whitespace;
25502         (odr_hasher): Remove.
25503         (odr_name_hasher, odr_vtable_hasher): New hashers.
25504         (can_be_name_hashed_p): New predicate.
25505         (hash_type_name): remove.
25506         (hash_odr_name): New.
25507         (odr_name_hasher::hash): new.
25508         (can_be_vtable_hashed_p): New.
25509         (hash_odr_vtable): New.
25510         (odr_vtable_hasher::hash): New.
25511         (types_same_for_odr): Add strict parameter.
25512         (types_odr_comparable): Likewise.
25513         (odr_name_hasher::equal): New.
25514         (odr_vtable_hasher::equal): New.
25515         (odr_name_hasher::remove): New.
25516         (odr_hash_type): Change to hash_table<odr_name_hasher>.
25517         (odr_vtable_hash_type): New.
25518         (odr_vtable_hash): New.
25519         (odr_subtypes_equivalent_p): Do strict comparsion.
25520         (add_type_duplicate): Merge type names; cleanup; avoid type
25521         duplicates.
25522         (register_odr_type): Initialize vtable hash.
25523         (build_type_inheritance_graph): Likewise
25524         (get_odr_type): Reorg to use two hashes.
25525         (dump_possible_polymorphic_call_targets): Move sanity check after debug
25526         output.
25527         (ipa_devirt): Dump type_inheritance_graph.
25528         (types_same_for_odr): Add strict mode.
25530 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
25532         PR ipa/65334
25533         * cgraph.h (symtab_node): Add definition_alignment,
25534         can_increase_alignment_p and increase_alignment.
25535         * symtab.c (symtab_node::can_increase_alignment_p,
25536         increase_alignment_1, symtab_node::increase_alignment,
25537         symtab_node::definition_alignment): New.
25538         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
25539         can_increase_alignment_p.
25540         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
25541         * tree-vect-stmts.c (ensure_base_align): Likewise.
25542         * varasm.c (function_section_1): Use definition_alignment.
25543         (assemble_start_function): Likewise.
25544         (emit_local): likewise.
25545         (build_constant_desc): Likewsie.
25546         (output_constant_def_contents): Likewise.
25547         (place_block_symbol): Likewise.
25548         (output_object_block): Likewise.
25550 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
25552         PR ipa/65316
25553         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
25554         when outputting debug.
25556 2015-03-07  Marek Polacek  <polacek@redhat.com>
25557             Martin Uecker  <uecker@eecs.berkeley.edu>
25559         PR sanitizer/65280
25560         * doc/invoke.texi: Update description of -fsanitize=bounds.
25562 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
25564         * tree-ssa-phiopt.c (neg_replacement): Remove.
25565         (tree_ssa_phiopt_worker): Remove negate optimization.
25567 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
25569         PR ipa/65302
25570         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
25572 2015-03-06  Richard Biener  <rguenther@suse.de>
25574         PR middle-end/64928
25575         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
25576         and liveout_obstack members.
25577         (calculate_live_on_exit): Remove.
25578         (calculate_live_ranges): Change declaration.
25579         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
25580         (new_tree_live_info): Adjust.
25581         (calculate_live_ranges): Delete livein when not wanted.
25582         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
25583         Deal with partly deleted live info.
25584         (loe_visit_block): Remove temporary bitmap by using
25585         bitmap_ior_and_compl_into.
25586         (live_worklist): Adjust accordingly.
25587         (calculate_live_on_exit): Make static.
25588         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
25589         we do not need livein.
25591 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
25593         * real.c (real_from_string): Fix typo in assertion.
25595 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
25597         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
25598         the patch.
25600 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
25602         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
25604 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
25606         PR target/64342
25607         * lra-assigns.c (find_hard_regno_for): Rename to
25608         find_hard_regno_for_1.  Add a new parameter.
25609         (find_hard_regno_for): New function using find_hard_regno_for_1.
25611 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25613         PR rtl-optimization/65067
25614         * expmed.c (store_bit_field, extract_bit_field): Reworked the
25615         strict volatile bitfield handling.
25617 2015-03-05  Martin Liska  <mliska@suse.cz>
25619         PR ipa/65318
25620         * ipa-icf.c (sem_variable::equals): Compare variables types.
25622 2015-03-05  Richard Henderson  <rth@redhat.com>
25624         PR target/65121
25625         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
25626         correctly check weak symbol binding.
25628 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
25630         PR middle-end/65315
25631         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
25632         needed alignment.
25634 2015-03-05  Martin Liska  <mliska@suse.cz>
25636         * ipa-inline.c (inline_small_functions): Set default value to
25637         prevent warning during bootstrap.
25638         * tree.h: Add pragma guard that ignores false positives during
25639         bootstrap.
25641 2015-03-05  Richard Biener  <rguenther@suse.de>
25643         PR tree-optimization/65310
25644         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
25645         Properly preserve alignment of the base of the access.
25647 2015-03-05  Richard Biener  <rguenther@suse.de>
25649         PR ipa/65270
25650         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
25651         Compare dependence info.
25653 2015-03-05  Richard Biener  <rguenther@suse.de>
25655         PR middle-end/65233
25656         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
25657         tree-into-ssa.h.
25658         (walk_ssa_copies): Revert last chage.  Instead do not walk
25659         SSA names registered for SSA update.
25661 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
25663         PR ipa/65270
25664         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
25665         vtable references for their containing type.
25666         (sem_function::equals_wpa): Compare TYPE_RESTRICT
25667         and type attributes.
25669 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
25671         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
25672         before negating it.
25673         * stor-layout.c (finalize_record_size): Revert latest change.
25675 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
25677         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
25679 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
25681         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
25682         for correct comdat handling.
25683         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
25684         Likewise.
25685         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
25686         (used_from_object_file_p_worker): Remove.
25687         (cgraph_node::only_called_directly_or_alised): Add
25688         used_from_object_file_p.
25689         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
25690         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
25691         can_remove_if_no_direct_calls_and_refs_p.
25693 2015-03-04  Nick Clifton  <nickc@redhat.com>
25695         * config/rl78/rl78.h (enum reg_class): Remove real registers from
25696         General register class.
25697         * config/rl78/rl78-real.md: Replace general register constraints
25698         with real+virtual register constraints.
25700 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25702         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
25703         from checking for -mhtm option.
25705 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
25707         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
25708         (struct ipa_sra_check_caller_data): Add has_thunk field.
25709         (ipa_sra_check_caller): Check for thunk.
25710         (ipa_sra_preliminary_function_checks): Give up on function with
25711         thunks.
25712         (ipa_early_sra): Use call_for_symbol_and_aliases.
25714 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
25716         PR target/65249
25717         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
25718         called for __stack_chk_guard symbol.
25720 2015-03-03  DJ Delorie  <dj@redhat.com>
25722         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
25723         inc/dec.
25724         (*addhi3_real): Likewise.
25725         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
25726         pattern to match incrementing memory.
25727         * config/rl78/predicates.md (rl78_1_2_operand): New.
25728         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
25729         it's the same and only mem.
25730         (rl78_alloc_physical_registers_op2): If there's effectively only
25731         one MEM, transcode it into HL.
25732         (rl78_far_p): Reject addresses that aren't legitimate.
25734 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
25736         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
25737         negating it.
25739         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
25741 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
25743         Implement call0 ABI for xtensa
25744         * config/xtensa/constraints.md ("a" constraint): Include stack
25745         pointer in case of call0 ABI.
25746         ("q" constraint): Make empty in case of call0 ABI.
25747         ("D" constraint): Include stack pointer in case of call0 ABI.
25748         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
25749         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
25750         prototypes.
25751         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
25752         variable.
25753         (xtensa_regno_to_class): Make it a local variable in the
25754         function xtensa_regno_to_class.
25755         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
25756         macro, function prototype and implementation.
25757         (reg_nonleaf_alloc_order): Make it a local variable in the
25758         function order_regs_for_local_alloc.
25759         (xtensa_conditional_register_usage): New function.
25760         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
25761         (xtensa_valid_move): Allow direct moves to stack pointer
25762         register in call0 ABI.
25763         (xtensa_setup_frame_addresses): Only spill register windows in
25764         windowed ABI.
25765         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
25766         call0 ABI respectively.
25767         (xtensa_function_arg_1): Only mark a7 register for copying in
25768         windowed ABI.
25769         (xtensa_call_save_reg): New function.
25770         (compute_frame_size): Add space for callee saved register
25771         storage to the frame size in call0 ABI.
25772         (xtensa_expand_prologue): Generate code to set up stack frame
25773         and save callee-saved registers in call0 ABI.
25774         (xtensa_expand_epilogue): New function.
25775         (xtensa_set_return_address): New function.
25776         (xtensa_return_addr): Calculate return address in call0 ABI.
25777         (xtensa_builtin_saveregs): Only mark a7 register for copying and
25778         emit copying code in windowed ABI.
25779         (order_regs_for_local_alloc): Add preferred register allocation
25780         order for non-leaf function in call0 ABI.
25781         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
25782         (xtensa_asm_trampoline_template): Add trampoline generation for
25783         call0 ABI.
25784         (xtensa_trampoline_init): Add trampoline initialization for
25785         call0 ABI.
25786         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
25787         functions.
25788         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
25789         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
25790         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
25791         ABI call-used registers.
25792         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
25793         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
25794         call0 ABI.
25795         (REG_CLASS_CONTENTS): Include all registers into the preferred
25796         reload registers set, adjust the set in the
25797         xtensa_conditional_register_usage.
25798         (xtensa_regno_to_class): Drop variable declaration.
25799         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
25800         function.
25801         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
25802         respectively.
25803         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
25804         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
25805         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
25806         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
25807         location in call0 ABI.
25808         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
25809         stack adjustment size when handling exception.
25810         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
25811         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
25812         definitions.
25813         ("return" pattern): Generate ret.n/ret in call0 ABI.
25814         ("epilogue" pattern): Expand epilogue.
25815         ("nonlocal_goto" pattern): Use default in call0 ABI.
25816         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
25817         emit eh_set_a0_* depending on ABI.
25818         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
25819         ("eh_set_a0_call0", "blockage"): New patterns.
25821 2015-03-03  Martin Liska  <mliska@suse.cz>
25823         PR ipa/65287
25824         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
25826 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
25828         PR 65138/target
25829         * config/rs6000/rs6000-tables.opt: Regenerate table.
25831 2015-03-03  Renlin Li  <renlin.li@arm.com>
25833         * doc/md.texi (@item ^): Change ? into ^.
25835 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
25837         * doc/tm.texi: Regenerated.
25839 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
25841         * builtins.c (expand_builtin_return_addr): Add
25842         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
25843         surrounding #ifdef.
25844         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
25845         definition to 1.
25846         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
25847         Likewise.
25848         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
25849         undefined.
25850         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
25851         paragraph.
25853 2015-03-03  Martin Jambor  <mjambor@suse.cz>
25854             Eric Botcazou  <ebotcazou@adacore.com>
25856         * tree-sra.c (ipa_sra_check_caller_data): New type.
25857         (has_caller_p): Removed.
25858         (ipa_sra_check_caller): New function.
25859         (ipa_sra_preliminary_function_checks): Use it.
25861 2015-03-03  Martin Liska  <mliska@suse.cz>
25863         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
25864         instead of if branch.
25866 2015-03-03  Martin Liska  <mliska@suse.cz>
25868         PR ipa/65282
25869         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
25871 2015-03-23  Jeff Law  <law@redhat.com>
25873         PR tree-optimization/65241
25874         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
25875         hash table if INSERT is true.
25877 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
25879         PR target/65296
25880         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
25882 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
25884         PR target/64331
25885         * config/avr/avr.c (context.h, tree-pass.h): Include them.
25886         (avr_pass_data_recompute_notes): New static variable.
25887         (avr_pass_recompute_notes): New class.
25888         (avr_register_passes): New static function.
25889         (avr_option_override): Call it.
25891 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
25893         Fix various problems with specs file generation.
25895         PR target/65296
25896         * config.gcc (extra_gcc_objs) [avr]: Remove.
25897         * config/avr/driver-avr.c: Remove file.
25898         * config/avr/t-avr (driver-avr.o): Remove rule.
25899         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
25900         INCLUDES to build.  Depend on TM_H.
25901         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
25902         build warnings.  Fix non-matching types and non-existing %-codes.
25903         (tm.h): Include.
25904         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
25905         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
25906         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
25907         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
25908         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
25909         (LIBGCC_SPEC): Remove definitions.
25911 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
25913         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
25914         to create a register in testing mode.
25916 2015-03-03  Martin Liska  <mliska@suse.cz>
25917             Jan Hubicka  <hubicka@ucw.cz>
25919         PR ipa/65263
25920         * cgraph.c (cgraph_node::has_thunk_p): New function.
25921         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
25922         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
25923         (sem_function::merge): Assert is changed.
25925 2015-03-03  Martin Liska  <mliska@suse.cz>
25926             Martin Jambor  <mjambor@suse.cz>
25928         PR ipa/65087
25929         * ipa-icf.c (sem_item_optimizer::execute): Change function
25930         return value to boolean.
25931         (sem_item_optimizer::merge_classes): Likewise.
25932         (ipa_icf_driver): Return TODO_remove_functions in case there's
25933         a merge operation processed.
25934         * ipa-icf.h: Change function return value to boolean.
25936 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25938         PR 65138/target
25939         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
25940         processor type for 64-bit little endian PowerPC.
25942         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
25943         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
25944         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
25945         printing built-in mask so it does not pass NULL pointers.
25947         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
25948         -mcpu=powerpc64le.
25950 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
25952         PR target/58158
25953         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
25954         !ISA_HAS_FP_CONDMOVE.
25956 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
25958         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
25959         reload_completed.
25961 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
25963         * doc/invoke.texi (Options for Code Generation Conventions):
25964         Fix URL of DSO paper.
25966 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
25968         PR ipa/65130
25969         * ipa-inline.c (check_callers): Looks for recursion.
25970         (inline_to_all_callers): Give up on uninlinable or recursive edges.
25971         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
25972         summary of inline clones.
25973         (do_estimate_growth_1): Fix recursion check.
25975 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
25977         PR ipa/64988
25978         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
25979         comdat groups.
25981 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
25982             Aldy Hernandez  <aldyh@redhat.com>
25984         PR lto/65276
25985         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
25986         when checking TYPE_BINFO.
25988 2015-03-02  Richard Biener  <rguenther@suse.de>
25990         PR ipa/65270
25991         * ipa-icf-gimple.c: Include builtins.h.
25992         (func_checker::compare_memory_operand): Compare base alignment.
25994 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
25996         PR target/65184
25997         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
25998         are never passed by reference.
26000 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
26002         PR target/65183
26003         * tree-chkp.c (chkp_check_lower): Don't check against
26004         zero bounds for already instrumented functions.
26005         (chkp_check_upper): Likewise.
26006         (chkp_fini): Clean pass local data to avoid wrong reusage.
26008 2015-02-28  Martin Liska  <mliska@suse.cz>
26009             Jan Hubicka  <hubicka@ucw.cz>
26011         * ipa-icf.c (sem_variable::equals): Improve debug output;
26012         get variable constructor.
26013         (sem_variable::parse): Do not filter out too early; give up on
26014         volatile and register vars.
26015         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
26016         variables.
26017         * ipa-icf.h (sem_variable::init): Do not set ctor.
26018         (sem_variable::ctor): Remove.
26020 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
26022         PR middle-end/65233
26023         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
26025 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
26027         * ipa-icf.c: Include stor-layout.h
26028         (sem_function::compare_cgraph_references): Rename to ...
26029         (sem_item::compare_cgraph_references): ... this one.
26030         (sem_variable::equals_wpa): New function
26031         (sem_variable::equals): Do not check stuff already verified by
26032         equals_wpa.
26033         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
26034         * ipa-icf.h (sem_item): Add compare_cgraph_references.
26035         (sem_function): Remove compare_cgraph_references.
26036         (sem_variable): Turns equals_wpa into non-inline.
26038 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
26040         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
26041         (sem_item::add_expr): New function.
26042         (sem_function::hash_stmt): Handle operands of most statements.
26043         (sem_variable::get_hash): Hash the actual constructor.
26044         * ipa-icf.h (sem_item): Add add_expr.
26045         (sem_function): Update prototype of hash_stmt
26047 2015-02-28  Martin Liska  <mliska@suse.cz>
26048             Jan Hubicka  <hubicka@ucw.cz>
26050         PR ipa/65245
26051         * ipa-icf-gimple.c (func_checker::compare_function_decl):
26052         Remove.
26053         (func_checker::compare_variable_decl): Skip symtab vars.
26054         (func_checker::compare_cst_or_decl): Update.
26055         * ipa-icf.c (sem_function::parse): Do not consider aliases.
26056         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
26057         use correct symtab predicates.
26058         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
26059         (sem_variable::parse):  Update comment.
26060         (sem_item_optimizer::build_graph): Consider ultimate aliases
26061         for references.
26063 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
26065         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
26066         of OBJ_TYPE_REF.
26068 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
26070         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
26071         (sem_variable::merge) Likewise.
26073 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
26075         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
26076         target; also match flag_ipa_devirt.
26078 2015-03-01  Martin Liska  <mliska@suse.cz>
26079             Jan Hubicka  <hubicka@ucw.cz>
26081         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
26082         Validate variable alignment.
26083         * ipa-icf.c (sem_function::equals_private): Be more precise
26084         about non-common function attributes.
26085         (sem_variable::equals): Likewise.
26087 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
26089         PR ipa/65237
26090         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
26091         across COMDAT group boundary.
26093 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
26095         PR ipa/65232
26096         * ipa-icf.c (clear_decl_rtl): New function.
26097         (sem_function::merge): Clear RTL before forming alias.
26098         (sem_variable::merge): Clear RTL before forming alias.
26100 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
26102         PR ipa/65236
26103         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
26105 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
26107         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
26108         to neon_to_gp<q>.
26110 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
26112         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
26113         a typo in the description.
26115 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
26117         PR target/64317
26118         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
26119         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
26120         * lra-constraints.c: Include "params.h".
26121         (EBB_PROBABILITY_CUTOFF): Use
26122         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
26123         (lra_inheritance): Use '<' instead of '<=' for
26124         EBB_PROBABILITY_CUTOFF.
26125         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
26126         Document change.
26128 2015-02-27  Martin Liska  <mliska@suse.cz>
26130         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
26131         vector length condition.
26133 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
26135         * doc/extend.texi (x86 transactional memory intrinsics):
26136         Reorganize discussion of _xbegin.  Clarify that the return
26137         value is a bit mask.  Expand example and move to end of section.
26139 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
26140             Aldy Hernandez  <aldyh@redhat.com>
26142         PR rtl-optimization/65220
26143         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
26145 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
26147         PR target/65032
26148         * lra-remat.c (update_scratch_ops): New.
26149         (do_remat): Call it.
26150         * lra.c (lra_register_new_scratch_op): New. Take code from ...
26151         (remove_scratches): ... here.
26152         * lra-int.h (lra_register_new_scratch_op): New prototype.
26154 2015-02-27  Marek Polacek  <polacek@redhat.com>
26156         PR c/65040
26157         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
26158         -Wformat-signedness anymore.
26160 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26162         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
26163         function.
26164         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
26166 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26168         * config/s390/s390.c (enum s390_builtin):
26169         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
26170         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
26171         (s390_init_builtins): Generate new builtin functions.
26172         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
26173         (s390_sfpc, s390_efpc): New pattern definitions.
26175 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26177         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
26178         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
26179         (s390_builtin_decls): New array.
26180         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
26181         (s390_builtin_decl): New function.
26182         (TARGET_BUILTIN_DECL): Define macro.
26184 2015-02-27  Richard Biener  <rguenther@suse.de>
26186         PR middle-end/63175
26187         * builtins.c (get_object_alignment_2): Make sure to re-apply
26188         the ANDed mask after recursing to its operand gets us a new
26189         misalignment bit position.
26191 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
26192             Martin Liska  <mliska@suse.cz>
26194         PR bootstrap/65150
26195         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
26196         Use address_matters_p.
26197         (redirect_all_callers, set_addressable): New functions.
26198         (sem_function::merge): Reorganize and fix merging issues.
26199         (sem_variable::merge): Likewise.
26200         (sem_variable::compare_sections): Remove.
26201         * common.opt (fmerge-all-constants, fmerge-constants): Remove
26202         Optimization flag.
26203         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
26204         redirect them.
26205         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
26206         decl is used.
26207         (address_matters_1): New function.
26208         (symtab_node::address_matters_p): New function.
26209         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
26210         check for merged flag.
26211         * cgraph.h (address_matters_p): Declare.
26212         (symtab_node::address_taken_from_non_vtable_p): Remove.
26213         (symtab_node::address_can_be_compared_p): New method.
26214         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
26215         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
26216         Remove.
26217         (comdat_can_be_unshared_p_1) Use address_matters_p.
26218         (update_vtable_references): Fix formating.
26219         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
26220         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
26221         * cgraphclones.c: Preserve merged and icf_merged flags.
26223 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
26225         * doc/extend.texi (Function Attributes): Fix spelling and typos.
26226         (Label Attributes): Likewise.
26227         (Cilk Plus Builtins): Likewise.
26228         (ARC SIMD Built-in Functions): Likewise.
26229         (ARM C Language Extensions (ACLE)): Likewise.
26230         (PowerPC Built-in Functions): Likewise.
26231         (PowerPC Hardware Transactional Memory Built-in Functions):
26232         Likewise.
26234 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
26236         PR tree-optimization/65216
26237         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
26238         new stmt and new SSA_NAME for lhs whenever the arguments have
26239         changed and weren't just swapped.  Fix comment typo.
26241         PR tree-optimization/65215
26242         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
26243         for PDP endian targets.
26244         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
26245         Fix up formatting issues.
26246         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
26247         size is smaller than the original, adjust MEM_REF offset by the
26248         difference of sizes.  Use is_gimple_mem_ref_addr instead of
26249         is_gimple_min_invariant test to avoid adding address temporaries.
26251 2015-02-26  Martin Liska  <mliska@suse.cz>
26252             Jan Hubicka  <hubicka@ucw.cz>
26254         PR ipa/64693
26255         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
26256         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
26257         (sem_item_optimizer::process_cong_reduction): Include division by
26258         sensitive references.
26259         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
26260         * ipa-ref.c (ipa_ref::address_matters_p): New function.
26261         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
26263 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
26265         PR target/65192
26266         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
26267         Remove.
26268         * config/avr/avr.c: Same.
26269         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
26270         Refuse any constant address not in 0..0xbf.
26271         * config/avr/avr.md (*mov<mode>, *movsf): Remove
26272         tiny_valid_direct_memory_access_range from insn conditions.
26273         (mov<mode>): Don't special-case expansion of avrtiny addresses.
26275 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
26277         PR target/61142
26278         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
26279         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
26280         * config/sh/predicates.md (const_logical_operand): New predicate.
26281         * config/sh/sh.md: Add new peephole2 patterns.
26283 2015-02-26  Marek Polacek  <polacek@redhat.com>
26285         PR ipa/65008
26286         * ipa-inline.c (early_inliner): Recompute inline parameters.
26288 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26290         PR target/65171
26291         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
26292         instructions with TImode operands are included in the analysis.
26294 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
26296         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
26297         of an EDGE_FSM_THREAD.
26299 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26301         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
26303 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
26305         PR debug/46102
26306         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
26308 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
26310         PR tree-optimization/65048
26311         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
26312         (thread_through_all_blocks): Call valid_jump_thread_path.
26313         Remove invalid FSM jump-thread paths.
26315 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
26317         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
26318         (ipa_write_optimization_summaries): Likewise.
26319         * tree-streamer.h: Include data-streamer.h.
26320         (streamer_mode_table): Declare extern variable.
26321         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
26322         * lto-streamer-out.c (lto_output_init_mode_table,
26323         lto_write_mode_table): New functions.
26324         (produce_asm_for_decls): Call lto_write_mode_table when streaming
26325         offloading LTO.
26326         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
26327         (lto_create_simple_input_block): Add mode_table argument to the
26328         lto_input_block constructors.
26329         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
26330         Likewise.
26331         * data-streamer-in.c (string_for_index): Likewise.
26332         * ipa-inline-analysis.c (inline_read_section): Likewise.
26333         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
26334         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
26335         * lto-streamer-in.c (lto_read_body_or_constructor,
26336         lto_input_toplevel_asms): Likewise.
26337         (lto_input_mode_table): New function.
26338         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
26339         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
26340         Use bp_pack_machine_mode.
26341         * real.h (struct real_format): Add name field.
26342         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
26343         (class lto_input_block): Add mode_table member.
26344         (lto_input_block::lto_input_block): Add mode_table_ argument,
26345         initialize mode_table.
26346         (struct lto_file_decl_data): Add mode_table field.
26347         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
26348         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
26349         unpack_ts_decl_common_value_fields,
26350         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
26351         * tree-streamer.c (streamer_mode_table): New variable.
26352         * real.c (ieee_single_format, mips_single_format,
26353         motorola_single_format, spu_single_format, ieee_double_format,
26354         mips_double_format, motorola_double_format,
26355         ieee_extended_motorola_format, ieee_extended_intel_96_format,
26356         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
26357         ibm_extended_format, mips_extended_format, ieee_quad_format,
26358         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
26359         decimal_single_format, decimal_double_format, decimal_quad_format,
26360         ieee_half_format, arm_half_format, real_internal_format): Add name
26361         field.
26362         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
26364 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
26366         PR target/65161
26367         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
26368         reordering for selective scheduling.
26370 2015-02-26  Terry Guo  <terry.guo@arm.com>
26372         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
26373         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
26374         (arm_arch_no_volatile_ce): Declare new global variable.
26375         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
26376         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
26377         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
26378         (TARGET_NO_VOLATILE_CE): New macro.
26379         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
26380         volatile memory access in IT block
26382 2015-02-25  Kai Tietz  <ktietz@redhat.com>
26384         PR tree-optimization/61917
26385         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
26386         that reduc_def_stmt is null.
26388 2015-02-25  Martin Liska  <mliska@suse.cz>
26390         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
26391         hard register variables.
26393 2015-02-25  Kai Tietz  <ktietz@redhat.com>
26395         PR target/64212
26396         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
26397         (symtab::noninterposable_alias): Likewise.
26399 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
26401         PR target/65167
26402         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
26403         bounds registers.
26404         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
26406 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
26408         PR target/64997
26409         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
26410         as split condition; force split via '#' in output pattern.
26412 2015-02-25  Richard Biener  <rguenther@suse.de>
26413             Kai Tietz  <ktietz@redhat.com>
26415         PR tree-optimization/61917
26416         * tree-vect-loop.c (vectorizable_reduction): Allow
26417         vect_internal_def without reduction to exit graceful.
26419 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
26421         PR target/65196
26422         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
26423         only with NONDEBUG_INSN_P.
26425 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
26427         Use variadic macros with avr-log.c.
26429         * config/avr/avr-protos.h (avr_vdump): New prototype.
26430         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
26431         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
26432         * config/avr/avr-log.c: Adjust comments.
26433         (avr_vdump): New function.
26434         (avr_vadump): Pass caller as 2nd argument instead of format string.
26435         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
26436         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
26438 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
26440         PR lto/64374
26441         * target.def (target_option_stream_in): New target hook.
26442         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
26443         targetm.target_option.post_stream_in if non-NULL.
26444         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
26445         * doc/tm.texi: Updated.
26446         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
26447         function.
26448         (TARGET_OPTION_POST_STREAM_IN): Redefine.
26450 2015-02-24  Jeff Law  <law@redhat.com>
26452         PR target/65117
26453         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
26454         of operand 0 and operand 2.
26455         (zero_cost_loop_end, loop_end): Similarly.
26457 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
26459         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
26460         CXX_MEM_STAT_INFO.
26462 2015-02-24  DJ Delorie  <dj@redhat.com>
26464         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
26465         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
26466         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
26467         instead of hardcoding SImode.
26469 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
26471         * omp-low.c (create_omp_child_function): Tag entrypoint
26472         functions with a special attribute.
26474 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
26476         PR target/65058
26477         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
26479 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
26481         PR rtl-optimization/65123
26482         * lra-remat.c (operand_to_remat): Check hard regs in insn
26483         definition too.
26485 2015-02-24  Nick Clifton  <nickc@redhat.com>
26487         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
26488         to the assembler.
26490 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
26492         PR libgomp/64625
26493         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
26494         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
26495         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
26496         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
26497         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
26498         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
26499         (BUILT_IN_GOACC_PARALLEL): Specify as
26500         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
26501         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
26502         * builtin-types.def
26503         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
26504         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
26505         Remove function types.
26506         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
26507         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
26508         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
26509         New function types.
26511 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
26513         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
26515 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
26517         PR tree-optimization/65170
26518         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
26519         if val[1] < 0, clear also val[2] and return 3.
26521 2015-02-24  Alan Modra  <amodra@gmail.com>
26523         PR target/65172
26524         * config/rs6000/rs6000.c (get_memref_parts): Only return true
26525         when *base is a reg.  Handle nested plus addresses.  Simplify
26526         pre_modify test.
26528 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
26530         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
26531         use natural alignment when optimizing for size.
26533 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
26535         PR target/65153
26536         * config/sh/sh.md (movsicc_true+3): Remove peephole.
26537         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
26538         * config/sh/sh.c (replace_n_hard_rtx): Remove.
26540 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
26542         PR fortran/63427
26543         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
26544         too big for a wide_int.  Implement missing wrapping operation.
26546 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
26548         PR target/65163
26549         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
26550         instead of const_int 4294901760.
26552 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
26554         * config/avr/t-avr: Fix typo in comment.
26556 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
26558         * doc/rtl.texi (fma): Clarify documentation.
26560 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
26562         PR debug/58123
26563         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
26564         over input_location.
26566 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
26568         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
26569         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
26570         restrict alignments to absolute_biggest_alignment.
26571         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
26572         Define.
26573         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
26574         * doc/tm.texi: Regenerate.
26575         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
26577 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
26579         PR target/64172
26580         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
26582 2015-02-20  Richard Biener  <rguenther@suse.de>
26584         PR tree-optimization/65136
26585         * tree-ssa-propagate.c: Include cfgloop.h.
26586         (replace_phi_args_in): Avoid replacing loop latch edge PHI
26587         arguments with constants.
26589 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
26590             Martin Liska  <mliska@suse.cz>
26592         PR target/63892
26593         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
26594         don't try to create_thunk if stdarg_p.  If
26595         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
26596         redirect_callers if possible.
26597         (sem_item_optimizer::execute): Call unregister_hooks here...
26598         (ipa_icf_driver): ... instead of here.
26600 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26602         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
26603         Mark operand 0 as earlyclobber in 2nd alternative.
26604         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
26605         Write negated shift amount into QI lowpart operand 0 and use it
26606         in the shift step.
26607         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
26609 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
26611         * cgraph.h (clone_function_name_1): Declare.
26612         * cgraphclones.c (clone_function_name_1): New function.
26613         (clone_function_name): Use it.
26614         * lto-partition.c: Include "stringpool.h".
26615         (must_not_rename, maybe_rewrite_identifier)
26616         (validize_symbol_for_target): New static functions.
26617         (privatize_symbol_name): Use must_not_rename.
26618         (promote_symbol): Call validize_symbol_for_target.
26619         (lto_promote_cross_file_statics): Likewise.
26620         (lto_promote_statics_nonwpa): Likewise.
26622 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
26624         PR target/64452
26625         * config/avr/avr.md (pushhi_insn): New insn.
26626         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
26628 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
26629             Jakub Jelinek  <jakub@redhat.com>
26631         * tree-streamer.c (preload_common_nodes): Don't preload
26632         TI_VA_LIST* for offloading.
26633         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
26634         in_lto_p.
26636 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
26638         * config/pa/pa.c (pa_emit_move_sequence): Always force
26639         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
26640         note on insn.
26642         * config/pa/pa.c (pa_reloc_rw_mask): New function.
26643         (TARGET_ASM_RELOC_RW_MASK): Define.
26644         (pa_cannot_force_const_mem): Revert previous change.
26646 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
26647             Jan Hubicka  <hubicka@ucw.cz>
26649         PR ipa/65028
26650         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
26651         across jump functions.
26653 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
26655         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
26657 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
26659         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
26661 2015-02-19  Richard Henderson  <rth@redhat.com>
26663         PR middle-end/65074
26664         * varasm.c (default_binds_local_p_2): Don't test node->definition;
26665         test DECL_EXTERNAL independent of symtab_node.
26667 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
26669         PR lto/65012
26670         * varpool.c (varpool_node::get_constructor): Return early
26671         if this->lto_file_data is NULL.
26673 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
26675         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
26676         (rank_for_schedule_debug): Update.
26677         (ready_sort): Make static.  Move sorting logic to ...
26678         (ready_sort_debug, ready_sort_real): New static functions.
26679         (schedule_block): Sort both debug insns and real insns in preparation
26680         for ready list trimming.  Improve debug output.
26681         * sched-int.h (ready_sort): Remove global declaration.
26683 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
26685         * ipa-icf.c (sem_function::equals_private): Adjust.
26686         (sem_function::bb_dict_test): Take a vec<int> * instead of
26687         auto_vec<int>.
26688         * ipa-icf.h (bb_dict_test): Likewise.
26690 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
26692         PR gcov-profile/64634
26693         * tree-eh.c (frob_into_branch_around): Fix up typos
26694         in function comment.
26695         (lower_catch): Put eh_seq resulting from EH lowering of
26696         the cleanup sequence after the cleanup rather than before it.
26698 2015-02-18  Tom de Vries  <tom@codesourcery.com>
26700         * common.opt (fstdarg-opt): New option.
26701         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
26702         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
26703         (@item -fstdarg-opt): New item.
26705 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
26707         PR target/65064
26708         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
26709         for common symbols.
26711 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
26713         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
26714         insn-modes.h.
26715         (ALL_HOST_OBJS): Add mkoffload.o.
26716         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
26718 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
26720         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
26721         (compare_virtual_tables): Be smarter about skipping typeinfos;
26722         do sane output on virtual table table mismatch.
26723         (warn_odr): Be ready for forward declarations of enums;
26724         output sane info on base mismatch and virtual table mismatch.
26725         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
26726         when only one type is polymorphic.
26727         (get_odr_type): Fix hashtable corruption.
26728         (dump_odr_type): Dump mangled names.
26730 2015-02-18  Richard Biener  <rguenther@suse.de>
26732         PR tree-optimization/65063
26733         * tree-predcom.c (determine_unroll_factor): Return 1 if we
26734         have replaced looparound PHIs.
26736 2015-02-18  Martin Liska  <mliska@suse.cz>
26738         * lto-streamer.c (lto_streamer_init): Encapsulate
26739         streamer_check_handled_ts_structures with checking macro.
26741 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
26743         PR ipa/65087
26744         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
26745         section if !implicit_section.
26746         (cgraph_node::create_version_clone_with_body): Likewise.
26747         * trans-mem.c (ipa_tm_create_version): Likewise.
26749 2015-02-18  Richard Biener  <rguenther@suse.de>
26751         PR tree-optimization/62217
26752         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
26753         into BIVs.
26755 2015-02-18  Marek Polacek  <polacek@redhat.com>
26757         PR sanitizer/65081
26758         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
26759         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
26760         is in range [-16K, -1].  Don't issue run-time error if
26761         (ptr > ptr + offset).
26763 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
26765         * doc/install.texi (nvptx-*-none): New section.
26766         * doc/invoke.texi (Nvidia PTX Options): Likewise.
26767         * config/nvptx/nvptx.opt: Update.
26769         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
26770         (access_check): New functions, copied from
26771         config/i386/intelmic-mkoffload.c.
26772         (main): For non-installed testing, look in all COMPILER_PATHs for
26773         GCC_INSTALL_NAME.
26775         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
26777 2015-02-18  Andrew Pinski  <apinski@cavium.com>
26778             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
26780         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
26781         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
26783 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
26785         * ipa-visibility.c (function_and_variable_visibility): Only
26786         check locality if node is not already local.
26787         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
26788         call_for_symbol_and_aliases instead of
26789         call_for_symbol_thunks_and_aliases.
26790         (ipa_inline): Likewise.
26791         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
26792         first walk aliases.
26793         * ipa.c (symbol_table::remove_unreachable_nodes): Use
26794         call_for_symbol_and_aliases.
26795         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
26796         (ipa_propagate_frequency_1): Use it; use opt_for_fn
26797         (ipa_propagate_frequency): Update.
26798         (ipa_profile): Add opt_for_fn gueards.
26800 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
26802         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
26803         * doc/invoke.texi (SH options): Document it.
26804         * config/sh/sh.c (sh_insn_length_adjustment): Check
26805         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
26807 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
26809         * common.opt (fipa-cp-alignment): New.
26810         * ipa-cp.c (ipcp_store_alignment_results): Check
26811         flag_ipa_cp_alignment.
26812         * opts.c (default_options_table): Enable -fipa-cp-alignment for
26813         -O2.
26814         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
26815         * doc/invoke.texi: Document -fipa-cp-alignment.
26817 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
26819         PR target/64793
26820         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
26821         to nil.  Adjust comments.
26823 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
26825         * ipa-visibility.c (function_and_variable_visibility): Only
26826         check locality if node is not already local.
26827         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
26828         call_for_symbol_and_aliases instead of
26829         call_for_symbol_thunks_and_aliases.
26830         (ipa_inline): Likewise.
26831         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
26832         first walk aliases.
26833         * ipa.c (symbol_table::remove_unreachable_nodes): Use
26834         call_for_symbol_and_aliases.
26835         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
26836         (ipa_propagate_frequency_1): Use it; use opt_for_fn
26837         (ipa_propagate_frequency): Update.
26838         (ipa_profile): Add opt_for_fn guards.
26840 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
26842         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
26843         skipping of "strange" tokens.
26845 2015-02-17  Jeff Law  <law@redhat.com>
26847         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
26848         obsolete comment.
26850 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
26852         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
26853         as forcing a HARD_DEP between instructions, thereby
26854         disallowing rewriting to break dependencies.
26856 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
26858         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
26859         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
26860         variables in boundary that have no inlitalizer encoded and are
26861         not aliases.
26862         * varasm.c (default_binds_local_p_2): External definitions do not
26863         count as definitions here.
26865 2015-02-16  Jeff Law  <law@redhat.com>
26867         PR tree-optimization/64823
26868         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
26869         statements.
26870         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
26871         threading through blocks with PHIs, but no statements.
26872         (thread_through_normal_block): Distinguish between blocks where
26873         we did not process all the statements and blocks with no statements.
26875 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
26876             James Greenhalgh  <james.greenhalgh@arm.com>
26878         PR ipa/64963
26879         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
26880         section if not linkonce.  Fix up formatting.
26881         (cgraph_node::create_version_clone_with_body): Copy section.
26882         * trans-mem.c (ipa_tm_create_version): Likewise.
26884 2015-02-16  Richard Biener  <rguenther@suse.de>
26886         PR tree-optimization/65077
26887         * tree-ssa-structalias.c (get_constraint_for_1): Handle
26888         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
26889         (find_func_aliases): Allow float values to carry pointers again.
26891 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
26893         * doc/install.texi (Specific): Reorder targets list to put
26894         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
26895         from the top menu.
26897 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
26898             David Edelsohn  <dje.gcc@gmail.com>
26900         PR target/65058
26901         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
26902         mapping class to external variable or function reference.
26903         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
26904         mapping class.
26906 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
26908         PR target/53348
26909         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
26910         ASM_WEAKEN_DECL if defined.
26912 2015-02-16  Richard Biener  <rguenther@suse.de>
26914         PR lto/65015
26915         * varasm.c (default_file_start): For LTO produced units
26916         emit <artificial> as file directive.
26918 2015-02-16  Richard Biener  <rguenther@suse.de>
26920         PR tree-optimization/63593
26921         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
26922         stmts and releasing SSA names until...
26923         (execute_pred_commoning): ... after processing all chains.
26925 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
26927         PR ipa/65059
26928         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
26929         external functions.
26931 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
26933         * doc/bugreport.texi: Adjust section titles throughout the file
26934         to use "Title Case".
26935         * doc/extend.texi: Likewise.
26936         * doc/gcov.texi: Likewise.
26937         * doc/implement-c.texi: Likewise.
26938         * doc/implement-cxx.texi: Likewise.
26939         * doc/invoke.texi: Likewise.
26940         * doc/objc.texi: Likewise.
26941         * doc/standards.texi: Likewise.
26942         * doc/trouble.texi: Likewise.
26944 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
26946         * cgraph.h (symtab_node::has_aliases_p): Simplify.
26947         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
26948         * tree.c (lookup_binfo_at_offset): Make static.
26949         (get_binfo_at_offset): Do not shadow offset; add explanatory
26950         comment.
26952 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
26954         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
26955         for all floading point loads and stores except those using a register
26956         index address.
26957         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
26958         to a register.
26960 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
26962         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
26963         (do_estimate_growth_1): Record if any uninlinable edge was seen.
26964         (estimate_growth): Handle uninlinable edges correctly.
26965         (check_callers): New.
26966         (growth_likely_positive): Handle aliases correctly.
26968 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
26970         * ipa-chkp.c: Use iterate_direct_aliases.
26971         * symtab.c (resolution_used_from_other_file_p): Move inline.
26972         (symtab_node::create_reference): Fix formating.
26973         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
26974         (symtab_node::iterate_reference): Move inline.
26975         (symtab_node::iterate_referring): Move inline.
26976         (symtab_node::iterate_direct_aliases): Move inline.
26977         (symtab_node::used_from_object_file_p_worker): Inline into ...
26978         (symtab_node::used_from_object_file_p): ... this one; move inline.
26979         (symtab_node::call_for_symbol_and_aliases): Move inline;
26980         use iterate_direct_aliases.
26981         (symtab_node::call_for_symbol_and_aliases_1): New method.
26982         (cgraph_node::call_for_symbol_and_aliases): Move inline;
26983         use iterate_direct_aliases.
26984         (cgraph_node::call_for_symbol_and_aliases_1): New method.
26985         (varpool_node::call_for_node_and_aliases): Rename to ...
26986         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
26987         use iterate_direct_aliases.
26988         (varpool_node::call_for_symbol_and_aliases_1): New method.
26989         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
26990         (ipa_discover_readonly_nonaddressable_var): Update.
26991         * ipa-devirt.c: Fix formating.
26992         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
26993         Move inline.
26994         (cgraph_node::call_for_symbol_and_aliases): Move inline.
26995         (cgraph_node::call_for_symbol_and_aliases_1): New function..
26996         * cgraph.h (used_from_object_file_p_worker): Remove.
26997         (resolution_used_from_other_file_p): Move inline.
26998         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
26999         (symtab_node::iterate_reference): Move inline.
27000         (symtab_node::iterate_referring): Move inline.
27001         (symtab_node::iterate_direct_aliases): Move inline.
27002         (symtab_node::used_from_object_file_p_worker): Inline into ...
27003         (symtab_node::used_from_object_file_p): Move inline.
27004         * tree-emutls.c (ipa_lower_emutls): Update.
27005         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
27006         (varpool_node::call_for_node_and_aliases): Remove.
27008 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
27010         PR tree-optimization/62209
27011         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
27012         op == range->exp, insert seq and gimplified code after labels
27013         instead of after the phi.
27015 2015-02-13  Jeff Law  <law@redhat.com>
27017         PR bootstrap/65060
27018         Revert my change for tree-optimization/64823.
27020 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
27022         PR tree-optimization/65053
27023         * tree-ssa-phiopt.c (value_replacement): When moving assign before
27024         cond, either reset VR on lhs or set it to phi result VR.
27026 2015-02-13  Jeff Law  <law@redhat.com>
27028         PR tree-optimization/64823
27029         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
27030         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
27031         threading through blocks with PHIs, but no statements.
27032         (thread_through_normal_block): Distinguish between blocks where
27033         we did not process all the statements and blocks with no statements.
27035         PR rtl-optimization/47477
27036         * match.pd (convert (plus/minus (convert @0) (convert @1): New
27037         simplifier to narrow arithmetic.
27039 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
27041         PR ipa/65028
27042         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
27043         polymorphic call info when type is not known to be preserved.
27045 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
27047         PR ipa/65028
27048         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
27049         (inline_call): Use it.
27051 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
27053         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
27054         GOMP_DEVICE_NVIDIA_PTX.
27056 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
27058         PR ipa/65034
27059         * stmt.c (emit_case_nodes): Use void_type_node instead of
27060         NULL_TREE as LABEL_DECL type.
27062 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
27064         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
27065         constraints.
27066         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
27067         symbolic references to data to be forced to constant memory on the
27068         SOM target.
27070 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
27072         PR tree-optimization/65002
27073         * tree-cfg.c (pass_data_fixup_cfg): Don't update
27074         SSA on start.
27075         * tree-sra.c (some_callers_have_no_vuse_p): New.
27076         (ipa_early_sra): Reject functions whose callers
27077         assume function is read only.
27079 2015-02-13  Richard Biener  <rguenther@suse.de>
27081         PR lto/65015
27082         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
27083         for LTO produced CUs.
27085 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
27087         PR tree-optimization/64705
27088         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
27089         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
27090         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
27091         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
27092         expand_simple_operations.
27094 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
27095             Richard Henderson  <rth@redhat.com>
27097         PR rtl/32219
27098         * cgraphunit.c (cgraph_node::finalize_function): Set definition
27099         before notice_global_symbol.
27100         (varpool_node::finalize_decl): Likewise.
27101         * varasm.c (default_binds_local_p_2): Rename from
27102         default_binds_local_p_1, add weak_dominate argument.  Use direct
27103         returns instead of assigning to local variable.  Unify varpool and
27104         cgraph paths via symtab_node.  Reject undef weak variables before
27105         testing visibility.  Reorder tests for simplicity.
27106         (default_binds_local_p): Use default_binds_local_p_2.
27107         (default_binds_local_p_1): Likewise.
27108         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
27109         via symtab_node.
27110         (default_elf_asm_output_external): Emit visibility when specified.
27112 2015-02-13  Alan Modra  <amodra@gmail.com>
27114         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
27115         code setting up r11 for out-of-line fp restore.
27117 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
27119         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
27120         (muser-mode): Likewise.
27122 2015-02-13  Alan Modra  <amodra@gmail.com>
27124         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
27125         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
27127 2015-02-12  David Howells  <dhowells@redhat.com>
27129         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
27130         warning.
27131         * tree-ssa-uninit.c (dump_predicates): Likewise.
27132         * opts.c (print_filtered_help): Likewise.
27134 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
27136         * dwarf2out.c (output_die): Use "%s", name instead of name to
27137         avoid -Wformat-security warning.
27139         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
27140         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
27141         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
27142         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
27144 2015-02-12  Jason Merrill  <jason@redhat.com>
27146         * common.opt (-flifetime-dse): New.
27148 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
27150         PR sanitizer/65019
27151         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
27153         PR tree-optimization/65014
27154         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
27155         use original second operand of arg0 or arg1 instead of
27156         that adjusted by STRIP_NOPS.
27158 2015-02-11  Jeff Law  <law@redhat.com>
27160         PR target/63347
27161         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
27162         that needs to be queued, just queue it for a single cycle.
27164 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
27166         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
27167         bodies of thunks; comment on why.
27168         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
27169         symbols are extern.
27171 2015-02-11  Richard Henderson  <rth@redhat.com>
27173         PR sanitize/65000
27174         * tree-eh.c (mark_reachable_handlers): Mark source and destination
27175         regions of __builtin_eh_copy_values.
27177 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
27179         PR middle-end/65003
27180         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
27181         ultimate alias is MEM with SYMBOL_REF satisfying
27182         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
27183         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
27185 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
27187         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
27188         "diagnostic-core.h".
27189         (main): Initialize progname, and call diagnostic_initialize.
27191         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
27192         instead of __OPENMP_TARGET__.
27194         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
27195         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
27196         hard-coding PTX_ID.
27198 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
27200         * doc/sourcebuild.texi (pie_enabled): Document.
27202 2015-02-11  Martin Liska  <mliska@suse.cz>
27204         PR ipa/64813
27205         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
27206         a return value for call to a function that is noreturn.
27208 2015-02-11  Richard Biener  <rguenther@suse.de>
27210         PR lto/65015
27211         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
27212         and -fresolution.
27214 2015-02-11  Andrew Pinski  <apinski@cavium.com>
27216         PR target/64893
27217         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
27218         Change the first argument type to size_type_node and add another
27219         size_type_node.
27220         (aarch64_simd_expand_builtin): Handle the new argument to
27221         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
27222         print an out when the first two arguments are not
27223         nonzero integer constants.
27224         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
27225         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
27227 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
27229         PR target/61925
27230         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
27231         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
27232         (ix86_set_current_function): Rewritten.
27233         (ix86_add_new_builtins): Temporarily clear current_target_pragma
27234         when creating builtin fndecls.
27236 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
27238         PR ipa/65005
27239         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
27240         function.
27241         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
27242         have no comdat group.
27243         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
27244         (lto_output_varpool_node): Always output alias info.
27245         (output_refs): Output refs of boundary aliases, too.
27246         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
27247         (output_symtab): Output call eges in thunks in boundary.
27248         (get_alias_symbol): Remove.
27249         (input_node, input_varpool_node): Do not special case weakrefs.
27250         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
27251         alias and thunks targets in the boundary; do not take removed symbols
27252         from their comdat groups.
27253         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
27254         (cgraph_node::global_info): Remove.
27255         (cgraph_node::rtl_info): Look through aliases and thunks.
27256         * cgrpah.h (global_info): Remove.
27257         (non_local_p): Remove.
27259 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
27260             Sandra Loosemore  <sandra@codesourcery.com>
27262         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
27263         to inline asm.  List dialects in proper order.
27265 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
27266             Sandra Loosemore  <sandra@codesourcery.com>
27268         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
27270 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
27272         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
27273         modified) reference to Solaris.
27275 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
27277         * doc/extend.texi (Extended Asm): Fix typos.
27279 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
27281         PR sanitizer/65004
27282         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
27284 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
27286         PR target/64661
27287         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
27288         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
27289         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
27290         * config/sh/constraints.md (Ara, Add): New constraints.
27291         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
27292         predicates.
27293         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
27294         atomic_mem_operand_0.  Don't use force_reg on the memory address.
27295         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
27296         Sra constraint.  Convert to insn_and_split.  Add workaround for
27297         PR 64974.
27298         (atomic_compare_and_swap<mode>_hard): Copy to
27299         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
27300         Use atomic_mem_operand_0 predicate.
27301         (atomic_compare_and_swap<mode>_soft_gusa,
27302         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
27303         AraAdd constraints.
27304         (atomic_compare_and_swap<mode>_soft_tcb,
27305         atomic_compare_and_swap<mode>_soft_imask,
27306         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
27307         atomic_mem_operand_0 predicate and SraSdd constraints.
27308         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
27309         constraint.
27310         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
27311         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
27312         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
27313         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
27314         force_reg on the memory address.
27315         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
27316         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
27317         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
27318         atomic_mem_operand_1 predicate and Sra constraint.
27319         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
27320         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
27321         Use atomic_mem_operand_1 predicate.
27322         (atomic_<fetchop_name><mode>_hard): Copy to
27323         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
27324         Use atomic_mem_operand_1 predicate.
27325         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
27326         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
27327         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
27328         insn_and_split.  Use atomic_mem_operand_1 predicate.
27329         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
27330         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
27331         Use atomic_mem_operand_1 predicate.
27332         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
27333         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
27334         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
27335         in generated insn with original mem operand before emitting the insn.
27336         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
27337         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
27338         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
27339         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
27340         Use atomic_mem_operand_1 predicate and AraAdd constraints.
27341         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
27342         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
27343         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
27344         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
27345         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
27346         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
27347         atomic_not_fetch<mode>_soft_tcb,
27348         atomic_<fetchop_name>_fetch<mode>_soft_imask,
27349         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
27350         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
27351         Use atomic_mem_operand_1 predicate and SraSdd constraints.
27353 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
27355         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
27356         and 3 earlyclobber operands.
27358 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
27360         * common.opt (fstack-reuse): Mark as optimization.
27362 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
27364         PR ipa/64982
27365         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
27367 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
27369         PR tree-optimization/64326
27370         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
27372 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
27374         PR gcov-profile/61889
27375         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
27377 2015-02-10  Richard Biener  <rguenther@suse.de>
27379         PR tree-optimization/64995
27380         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
27381         value we use is final.
27382         (visit_reference_op_store): Always valueize op.
27383         (visit_use): Properly valueize vuses.
27385 2015-02-10  Richard Biener  <rguenther@suse.de>
27387         PR tree-optimization/64909
27388         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
27389         pass a scalar-stmt count estimate to the cost model.
27390         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
27392 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
27394         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
27395         enabled by default together with var-tracking.
27397 2015-02-10  Nick Clifton  <nickc@redhat.com>
27399         * config/rl78/rl78.c: Remove DIV attribute code accidentally
27400         included in previous rl78 commit.
27402 2015-02-10  Richard Biener  <rguenther@suse.de>
27404         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
27405         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
27406         return the bitpack.
27408 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
27410         PR gcov-profile/61889
27411         * config.in: regenerate.
27412         * configure.in: Likewise.
27413         * configure.ac: Check for ftw.h.
27414         * gcov-tool.c: Check for ftw.h before using nftw.
27416 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
27418         PR lto/64076
27419         * ipa-visibility.c (update_visibility_by_resolution_info): Only
27420         assert when not in lto mode.
27422 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
27424         * ira-color.c (setup_left_conflict_sizes_p): Simplify
27425         initialization/assignment of conflict_size.
27427 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
27429         PR ipa/64978
27430         * ipa-cp.c (gather_caller_stats): Skip thunks.
27431         (propagate_constants_topo): Skip aliases.
27433 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
27435         PR target/64761
27436         * config/sh/sh.c (sh_option_override): Don't change
27437         -freorder-blocks-and-partition to -freorder-blocks even when
27438         unwinding is enabled.
27439         (sh_can_follow_jump): Return false if the followee jump is
27440         a crossing jump when -freorder-blocks-and-partition is specified.
27441         * config/sh/sh.md (*jump_compact_crossing): New insn.
27443 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
27444             Kaz Kojima  <kkojima@gcc.gnu.org>
27446         PR target/64761
27447         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
27448         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
27449         (sh_can_redirect_branch): Rename to ...
27450         (sh_can_follow_jump): ... this.  Constify argument types.
27451         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
27452         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
27453         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
27454         * doc/tm.texi: Regenerate.
27456 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
27458         PR sanitizer/64981
27459         * builtins.c (expand_builtin): Call targetm.expand_builtin
27460         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
27462 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
27464         PR ipa/61548
27465         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
27467 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
27469         PR ipa/63566
27470         * ipa-icf.c (set_local): New function.
27471         (sem_function::merge): Use it.
27473 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
27475         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
27476         (add_type_duplicate): Fix comparison of BINFOs.
27478 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
27480         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
27481         on getting VOID pointer.
27483 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
27485         PR target/64979
27486         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
27487         va_list escapes.
27489 2015-02-09  Richard Biener  <rguenther@suse.de>
27491         * genmatch.c (replace_id): Copy expr_type.
27493 2015-02-09  Richard Biener  <rguenther@suse.de>
27495         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
27496         (streamer_write_tree_bitfields): Declare.
27497         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
27498         properly unpack padding.
27499         (unpack_value_fields): Inline ...
27500         (streamer_read_tree_bitfields): ... here.
27501         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
27502         and properly add padding bits.
27503         (streamer_pack_tree_bitfields): Fold into ...
27504         (streamer_write_tree_bitfields): ... this new function,
27505         exposing the bitpack object.
27506         * lto-streamer-out.c (lto_write_tree_1): Call
27507         streamer_write_tree_bitfields.
27509 2015-02-09  Richard Biener  <rguenther@suse.de>
27511         PR tree-optimization/54000
27512         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
27513         (struct ivopts_data): Add loop_loc member.
27514         (tree_ssa_iv_optimize_loop): Dump loop location.
27515         (create_new_ivs): Likewise, also dump number of IVs generated.
27517 2015-02-09  Martin Liska  <mliska@suse.cz>
27519         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
27520         just if not yet registered.
27521         (ipa_icf_generate_summary): Register callgraph hooks.
27523 2015-02-08  Andrew Pinski  <apinski@cavium.com>
27525         * config/aarch64/aarch64.c (gty_dummy): Delete.
27527 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
27529         PR ipa/63566
27530         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
27531         (cgraph_node::local_p): Remove thunk related FIXME.
27533 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
27535         PR ipa/63566
27536         * i386.c (ix86_function_regparm): Look through aliases to see if callee
27537         is local and optimized.
27538         (ix86_function_sseregparm): Likewise; also use target's SSE math
27539         settings; error out instead of silently generating wrong code
27540         on mismatches.
27541         (init_cumulative_args): Look through aliases.
27543 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
27545         PR ipa/63566
27546         * ipa-split.c (execute_split_functions): Split if function has aliases.
27548 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
27550         PR ipa/63566
27551         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
27552         aliases before trying to expand it.
27553         (cgraph_node::expand_thunk): Fix formating.
27555 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
27557         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
27558         (Using Assembly Language with C): Expand introduction.
27559         (Basic Asm): Copy-edit.  Add more information about uses of
27560         basic asm.
27561         (Extended Asm): Copy-edit.  Document new escape syntax and
27562         %l[label] syntax.
27563         (Global Reg Vars): Copy-edit.
27564         (Local Reg Vars): Likewise.
27566 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
27568         PR debug/2714
27569         PR bootstrap/64256
27570         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
27571         (DBX_CONTIN_CHAR): Define.
27573 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
27574             Brian Rzycki  <b.rzycki@samsung.com>
27576         PR tree-optimization/64878
27577         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
27578         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
27579         Stop recursion at loop phi nodes after having visited a loop phi node.
27581 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
27583         * toplev.c (process_options): Change flag_ipa_ra before creating
27584         optimization_{default,current}_node.
27586         PR ipa/64896
27587         * cgraphunit.c (cgraph_node::expand_thunk): If
27588         restype is not is_gimple_reg_type nor the thunk_fndecl
27589         returns aggregate_value_p, set restmp to a temporary variable
27590         instead of resdecl.
27592 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
27594         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
27596 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
27598         PR target/64205
27599         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
27600         add a general secondary reload handler for SDmode, unless we have
27601         both read/write support for SDmode.
27603 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
27605         PR middle-end/64937
27606         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
27607         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
27608         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
27609         1 before, push it to abstract_vec.
27610         (dwarf2out_abstract_function): Adjust caller.  Don't call
27611         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
27612         DECL_ABSTRACT_P flags for all abstract_vec elts.
27614 2015-02-06  Renlin Li  <renlin.li@arm.com>
27616         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
27617         complex gimple.
27618         * tree-ssa.c (execute_update_addresses_taken): Likewise.
27620 2015-02-06  Jeff Law  <law@redhat.com>
27622         PR target/64889
27623         * config/h8300/h8300.c (push): New argument "in_prologue".
27624         Pass "in_prologue" along to "F".
27625         (h8300_push_pop): Corresponding changes.
27626         (h8300_expand_prologue): Likewise.
27627         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
27629 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
27631         PR rtl-optimization/64957
27632         PR debug/64817
27633         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
27634         IOR rather than for AND.
27636 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
27638         PR target/62631
27639         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
27640         of shift-add and (add + shift) operations.  Rename local variable.
27642 2015-02-05  Jeff Law  <law@redhat.com>
27644         PR target/17306
27645         * config/h8300/constraints.md (U): Correctly dectect
27646         "eightbit_data" memory addresses.
27647         * config/h8300/h8300.c (eightbit_constant_address_p): Also
27648         handle (const (plus (symbol_ref (x)))) where x is declared
27649         as an 8-bit data memory address.
27650         * config/h8300/h8300.md (call, call_value): Correctly detect
27651         "funcvec" functions.
27653         PR target/43264
27654         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
27655         24 to 28 bits for the H8/300.
27657 2015-02-06  Alan Modra  <amodra@gmail.com>
27659         PR target/64876
27660         * config/rs6000/rs6000.c (chain_already_loaded): New function.
27661         (rs6000_call_aix): Use it.
27663 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
27665         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
27666         check.
27668 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
27670         * config/h8300/constraints.md ("U" constraint): Use strict
27671         variant of REG_OK_FOR_BASE_P after reload has started.
27673 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
27675         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
27676         define to zero if !TARGET_NEON.
27677         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
27679 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
27680             Trevor Saunders  <tsaunders@mozilla.com>
27682         PR ipa/61548
27683         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
27685 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
27687         PR ipa/61548
27688         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
27689         when removing varpool nodes.
27691 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
27693         PR ipa/61548
27694         * varpool.c (varpool_node::remove): Fix order of variables.
27696 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
27698         PR ipa/64686
27699         * ipa-inline.c (inline_small_functions): Fix ordering issue between
27700         speculation resolution and key updates.
27702 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
27704         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
27705         about not letting any speculative edges unupdated.
27707 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
27709         PR gcov/64123
27710         * gcov-io.c (gcov_var): Export.
27712 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
27714         PR middle-end/64922
27715         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
27716         edges that become speculative.
27718 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
27720         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
27721         or DW_LANG_Fortran08.
27722         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
27723         DW_LANG_Fortran08.
27724         (gen_compile_unit_die): Handle "GNU Fortran2003" and
27725         "GNU Fortran2008" language strings.
27726         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
27727         * langhooks.h (lang_GNU_Fortran): New prototype.
27728         * langhooks.c (lang_GNU_Fortran): New function.
27729         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
27730         lang_GNU_Fortran.
27732 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
27734         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
27735         (RTX_OK_FOR_OLO10_P): Likewise.
27737 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
27739         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
27741 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
27743         PR middle-end/64922
27744         * gimple.c: Include gimple-ssa.h.
27745         (maybe_remove_unused_call_args): New function.
27746         * gimple.h (maybe_remove_unused_call_args): Declare.
27747         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
27748         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
27749         * gimple-fold.c (gimple_fold_call): Likewise.
27751 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
27753         PR rtl-optimization/64905
27754         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
27755         pointer alignment if it isn't needed.
27757 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
27759         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
27760         cortex-a72.cortex-a53.
27761         * config/aarch64/aarch64-tune.md: Regenerate.
27762         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
27764 2015-02-04  Nick Clifton  <nickc@redhat.com>
27766         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
27767         inside a MEM.
27769 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
27771         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
27772         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
27773         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
27774         of DEF_BUILTIN.
27775         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
27776         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
27777         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
27778         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
27779         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
27780         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
27781         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
27782         * tree-core.h (enum built_in_function): In between
27783         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
27784         for builtins that use DEF_BUILTIN_CHKP macro.
27786 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
27788         PR debug/64817
27789         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
27790         operands for tcc_comparison exprs.  Fix typos.
27792         PR debug/64817
27793         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
27794         of two XORs that have an intervening AND or IOR.
27796         PR debug/64817
27797         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
27798         simplification of XOR of AND to not allocate new rtx before
27799         committing to a simplification.
27801 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27803         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
27804         manual swaps in all peepholes.
27806 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27808         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
27809         of manual swapping implementation.
27810         (aarch64_expand_vec_perm_const_1): Likewise.
27812 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
27814         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
27815         (generic_addrcost_table): Remove NAMED_PARAM.
27816         (cortexa57_addrcost_table): Likewise.
27817         (xgene1_addrcost_table): Likewise.
27818         (generic_regmove_table): Likewise.
27819         (cortexa53_regmove_table): Likewise.
27820         (xgene1_regmove_table): Likewise.
27821         (generic_vector_table): Likewise.
27822         (cortexa57_vector_table): Likewise.
27823         (xgene1_vector_table): Likewise.
27824         (generic_tunings): Likewise.
27825         (cortexa53_tunings): Likewise.
27826         (cortexa57_tunings): Likewise.
27827         (xgene1_tunings): Likewise.
27829 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
27831         * config/arm/arm-cores.def: Add cortex-a72 and
27832         cortex-a72.cortex-a53.
27833         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
27834         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
27835         * config/arm/arm-tune.md: Regenerate.
27836         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
27837         "cortex-a72.cortex-a53".
27838         * doc/invoke.texi (ARM Options/-mtune): Likewise.
27840 2015-02-04  Nick Clifton  <nickc@redhat.com>
27842         PR target/64408
27843         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
27844         of accepted codes.
27845         (nonimmediate_di_operand): Likewise.
27847         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
27848         prefixes of known F5 using MSP430 MCUs.
27850 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27852         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
27853         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
27854         instead of __builtin_sqrt.
27856 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
27858         * varasm.c (do_assemble_alias): Follow transparent alias
27859         chain for target.
27860         (default_assemble_visibility): Follow transparent alias
27861         chain for decl name.
27863 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27865         PR middle-end/62103
27866         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
27867         to compute size of referenced value in the constant case.
27869 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
27871         PR rtl-optimization/64756
27872         * cse.c (invalidate_dest): New function.
27873         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
27874         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
27875         invalidate and do not record it.
27877 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
27879         PR target/64660
27880         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
27881         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
27882         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
27883         atomic_nand<mode>_soft_tcb): New insns.
27884         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
27885         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
27886         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
27887         Split into atomic_not_fetchsi_hard if operands[0] is unused.
27888         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
27889         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
27890         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
27891         atomic_not<mode>_hard if operands[0] is unused.
27892         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
27893         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
27894         if operands[0] is unused.
27895         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
27896         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
27897         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
27898         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
27899         unused.
27900         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
27901         into atomic_not<mode>_soft_tcb if operands[0] is unused.
27902         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
27903         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
27904         if operands[0] is unused.
27905         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
27906         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
27907         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
27908         atomic_nand_fetchsi_hard if operands[0] is unused.
27909         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
27910         atomic_nand<mode>_hard if operands[0] is unused.
27911         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
27912         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
27913         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
27914         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
27915         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
27916         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
27917         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
27918         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
27919         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
27920         atomic_not<mode>_hard if operands[0] is unused.
27921         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
27922         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
27923         unused.
27924         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
27925         into atomic_not<mode>_soft_tcb if operands[0] is unused.
27926         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
27927         atomic_nand<mode>_hard if operands[0] is unused.
27928         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
27929         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
27931 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
27933         PR jit/64810
27934         * Makefile.in (GCC_OBJS): Add gcc-main.o.
27935         * gcc-main.c: New file, containing "main" taken from gcc.c.
27936         * gcc.c (do_self_spec): Free decoded_options.
27937         (class driver): Move declaration to gcc.h.
27938         (main): Move declaration and implementation to new file
27939         gcc-main.c.
27940         (driver_get_configure_time_options): New function.
27941         * gcc.h (class driver): Move this declaration here, from
27942         gcc.c.
27943         (driver_get_configure_time_options): New declaration.
27945 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
27947         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
27948         cross-module inlining.
27949         * cgraph.h (cgraph_node): Add flag merged.
27950         * ipa-icf.c (sem_function::merge): Maintain it.
27952 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
27954         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
27955         instead of OBJECT_P.
27957 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
27959         PR target/62631
27960         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
27961         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
27962         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
27963         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
27965 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
27967         PR other/63504
27968         * combine.c (reg_n_sets_max): New variable.
27969         (can_change_dest_mode, reg_nonzero_bits_for_combine,
27970         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
27971         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
27972         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
27973         (rest_of_handle_combine): Initialize reg_n_sets_max.
27975 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
27977         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
27978         if some always_inline was inlined, apply changes before inlining
27979         heuristically.
27981 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
27983         PR jit/64810
27984         * config/arm/arm.c (arm_option_override): Set
27985         arm_selected_arch/cpu/tune to NULL on entry.
27987 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
27988             Andrew Pinski  <pinskia@gcc.gnu.org>
27989             Jakub Jelinek  <jakub@gcc.gnu.org>
27991         PR target/64231
27992         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
27993         integer typing for small model. Use IN_RANGE.
27995 2015-02-02  Richard Biener  <rguenther@suse.de>
27997         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
27998         * tree-vrp.c (vrp_valueize_1): Likewise.
28000 2015-02-02  Alan Modra  <amodra@gmail.com>
28002         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
28003         than mem for toc_restore.
28004         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
28005         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
28006         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
28008 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
28010         PR target/64047
28011         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
28012         explicit default options.
28014 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
28016         PR ipa/64872
28017         * ipa-utils.c (ipa_merge_profiles): Add release argument.
28018         * ipa-icf.c (sem_function::merge): Do not release body when merging.
28019         * ipa-utils.h (ipa_merge_profiles): Update prototype.
28021 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
28023         PR debug/64817
28024         * cfgexpand.c (deep_ter_debug_map): New variable.
28025         (avoid_deep_ter_for_debug): New function.
28026         (expand_debug_expr): If TERed SSA_NAME is in
28027         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
28028         instead of trying to expand SSA_NAME's def stmt.
28029         (expand_debug_locations): When expanding debug bind
28030         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
28031         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
28032         value.
28033         (pass_expand::execute): Call avoid_deep_ter_for_debug on
28034         all debug bind stmts.  Delete deep_ter_debug_map after
28035         expand_debug_location if non-NULL and clear it.
28037 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
28039         PR target/64851
28040         * config/sh/sync.md (atomic_fetch_notsi_hard,
28041         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
28042         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
28043         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
28044         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
28045         atomic_not_fetch<mode>_soft_imask): New insns.
28047 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
28049         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
28050         (rank_for_schedule_debug): Split from ...
28051         (rank_for_schedule): ... this.
28052         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
28053         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
28055 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
28057         * doc/md.texi (Machine Constraints): Alphabetize table by target.
28058         * doc/extend.texi (x86 Variable Attributes): Move section to
28059         correct alphabetization after renaming.
28060         (x86 Type Attributes): Likewise.
28061         (Target Builtins): Re-alphabetize menu.
28062         (x86 Built-in Functions): Move section to correct alphabetization
28063         after renaming.
28064         (x86 transactional memory intrinsics): Likewise.
28065         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
28066         and x86 Windows Options in table and menu.
28067         (x86 Options): Move section to correct alphabetization after
28068         renaming.
28069         (x86 Windows Options): Likewise.
28071 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
28073         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
28074         preferred names of the architecture and its 32- and 64-bit
28075         variants.
28076         * doc/invoke.texi: Likewise.
28077         * doc/md.texi: Likewise.
28079 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
28081         PR target/64882
28082         * config/i386/predicates.md (address_no_seg_operand): Reject
28083         non-CONST_INT_P operands in invalid mode.
28085 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
28087         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
28088         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
28089         * config/i386/predicates.md (address_no_seg_operand): Call
28090         address_operand with VOIDmode.
28091         (vsib_address_operand): Ditto.
28092         (address_mpx_no_base_operand): Ditto.
28093         (address_mpx_no_index_operand): Ditto.
28095 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
28097         PR target/64688
28098         * lra-constraints.c (original_subreg_reg_mode): New.
28099         (simplify_operand_subreg): Try to simplify subreg of const.  Use
28100         original_subreg_reg_mode for it.
28101         (swap_operands): Update original_subreg_reg_mode.
28102         (curr_insn_transform): Set up original_subreg_reg_mode.
28104 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
28106         PR target/64617
28107         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
28108         function.
28109         (process_alt_operands): Use it.
28110         (curr_insn_transform): Check the optional reload pseudo class is
28111         ok for the mode.
28113 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
28115         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
28116         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
28117         prototype.
28118         * toplev.h (init_asm_output): Update comment on use of
28119         UNKNOWN_LOCATION with fatal_error.
28120         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
28121         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
28122         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
28123         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
28124         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
28125         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
28126         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
28127         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
28128         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
28129         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
28130         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
28131         fatal_error changed to pass input_location as first argument.
28133 2015-01-30  Martin Liska  <mliska@suse.cz>
28135         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
28136         in #pragma GCC diagnostic guards.
28138 2015-01-30  Richard Biener  <rguenther@suse.de>
28140         PR tree-optimization/64829
28141         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
28142         not add a widening conversion pattern but hand off extra
28143         widenings to callers.
28144         (vect_recog_widen_mult_pattern): Handle extra widening produced
28145         by vect_handle_widen_op_by_const.
28146         (vect_recog_widen_shift_pattern): Likewise.
28147         (vect_pattern_recog_1): Remove excess vertical space in dumping.
28148         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
28149         (vect_init_vector_1): Likewise.
28150         (vect_get_vec_def_for_operand): Likewise.
28151         (vect_finish_stmt_generation): Likewise.
28152         (vectorizable_load): Likewise.
28153         (vect_analyze_stmt): Likewise.
28154         (vect_is_simple_use): Likewise.
28156 2015-01-29  Jeff Law  <law@redhat.com>
28158         * combine.c (try_combine): Fix typo in comment.
28160 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
28162         PR target/64580
28163         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
28164         (rs6000_stack_info): Add assert.
28165         (rs6000_output_savres_externs): New function, split off from...
28166         (rs6000_output_function_prologue): ... here.  Do not call it for
28167         thunks.
28169 2015-01-29  Jeff Law  <law@redhat.com>
28171         PR target/15184
28172         * combine.c (try_combine): If I0 is a memory load and I3 a store
28173         to a related address, increase the "goodness" of doing a 4-insn
28174         combination with I0-I3.
28175         (make_field_assignment): Handle SUBREGs in the ior+and case.
28177 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
28179         PR tree-optimization/64746
28180         * tree-if-conv.c (mask_exists): New function.
28181         (predicate_mem_writes): Save created mask with given size for further
28182         use.
28183         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
28184         (ifcvt_repair_bool_pattern): Collect all statements that are root
28185         of bool pattern and use iterative algorithm to remove multiple uses
28186         of predicates, display number of required iterations.
28188 2015-01-29  Richard Biener  <rguenther@suse.de>
28190         PR tree-optimization/64853
28191         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
28192         stmt will get simulated again.
28193         * tree-ssa-ccp.c (valueize_op_1): Likewise.
28195 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28197         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
28198         return_in_pc.  Remove redundant assignments.
28199         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
28200         (arm_expand_epilogue): Don't compare boolean with true in if condition.
28202 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
28204         * config/i386/i386.c (ix86_mode_after): Make static.
28206 2015-01-29  Richard Biener  <rguenther@suse.de>
28208         PR tree-optimization/64844
28209         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
28210         dump cost model analysis.
28211         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
28212         Do not register adjusted load/store costs here.
28214 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
28215             Uros Bizjak  <ubizjak@gmail.com>
28217         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
28218         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
28219         using x86_use_pseudo_pic_reg.
28220         * config/i386/i386.c (ix86_conditional_register_usage): Remove
28221         support for fixed PIC register.
28222         (ix86_use_pseudo_pic_reg): Not static any more.
28224 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
28226         PR middle-end/64805
28227         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
28228         to avoid error in cgraph node verification.
28230 2015-01-29  Marek Polacek  <polacek@redhat.com>
28232         * doc/standards.texi: Reflect that the default for C is gnu11.
28234 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
28236         PR target/64761
28237         * reorg.c (switch_text_sections_between_p): New function.
28238         (relax_delay_slots): Call it when testing if the jump insn
28239         is removable.  Use targetm.can_follow_jump when testing if
28240         the conditional branch can follow an unconditional jump.
28242 2015-01-27  Caroline Tice  <cmtice@google.com>
28244         Committing VTV Cywin/Ming patch for Patrick Wollgast
28245         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
28246         if -fvtable-verify=preinit/std is used.
28247         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
28248         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
28249         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
28250         if -fvtable-verify=preinit/std is used.
28251         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
28252         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
28253         if -fvtable-verify=preinit/std is used.
28254         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
28255         * config/i386/mingw32.h (LIB_SPEC): Likewise.
28256         * varasm.c (assemble_variable): Add code to properly set the comdat
28257         section and name for the .vtable_map_vars section in case the
28258         target is PE or COFF.
28260 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
28262         PR ipa/64801
28263         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
28264         make sane BB profile.
28265         (cgraph_node::expand_thunk): Make sane BB profile.
28266         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
28267         * cgraph.h (init_lowered_empty_function): Update prototype.
28268         * config/i386/i386.c (make_resolver_func): Update call.
28269         * predict.c (gate): Disable branch prediction pass if
28270         profile is already there.
28272 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
28274         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
28275         * opth-gen.awk: Likewise.
28276         * common.opt: Mark flag_fp_contract_mode as Optimization.
28278 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28280         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
28281         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
28283 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
28285         PR target/64659
28286         * config/sh/predicates.md (atomic_arith_operand,
28287         atomic_logical_operand): Remove.
28288         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
28289         (atomic_arith_operand_0): New predicate.
28290         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
28291         Use atomic_arith_operand_0 for input values.
28292         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
28293         atomic_compare_and_swap<mode>_soft_gusa,
28294         atomic_compare_and_swap<mode>_soft_tcb,
28295         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
28296         arith_reg_operand instead of register_operand.
28297         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
28298         atomic_arith_operand_0 for newval input.
28299         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
28300         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
28301         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
28302         arith_reg_operand instead of register_operand.
28303         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
28304         fetchop_predicate_1, fetchop_constraint_1_llcs,
28305         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
28306         fetchop_constraint_1_imask): New code iterator attributes.
28307         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
28308         register_operand.  Use fetchop_predicate_1.
28309         (atomic_fetch_<fetchop_name>si_hard,
28310         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
28311         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
28312         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
28313         and arith_reg_operand instead of register_operand.  Use
28314         fetchop_predicate_1, fetchop_constraint_1_gusa.
28315         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
28316         and arith_reg_operand instead of register_operand.  Use
28317         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
28318         to allow R0 usage.
28319         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
28320         and arith_reg_operand instead of register_operand.  Use
28321         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
28322         to allow R0 usage.
28323         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
28324         register_operand.  Use atomic_logical_operand_1.
28325         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
28326         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
28327         arith_reg_operand instead of register_operand.
28328         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
28329         Use arith_reg_dest and arith_reg_operand instead of register_operand.
28330         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
28331         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
28332         register_operand.  Use fetchop_predicate_1.
28333         (atomic_<fetchop_name>_fetchsi_hard,
28334         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
28335         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
28336         fetchop_constraint_1_llcs.
28337         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
28338         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
28339         fetchop_constraint_1_gusa.
28340         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
28341         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
28342         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
28343         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
28344         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
28345         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
28346         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
28347         register_operand.  Use atomic_logical_operand_1.
28348         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
28349         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
28350         arith_reg_operand instead of register_operand.
28351         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
28352         arith_reg_operand instead of register_operand.  Use logical_operand
28353         and K08.  Adjust asm sequence to allow R0 usage.
28354         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
28355         arith_reg_operand instead of register_operand.  Use logical_operand
28356         and K08.
28358 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
28360         PR other/63504
28361         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
28362         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
28363         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
28364         only get_full_len HOST_WIDE_INTs from get_val () array rather than
28365         all bits in *val_wide.
28367 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
28369         * varpool.c (tls_model_names): Fix names.
28370         (varpool_node::dump): Dump tls- prefix for tls models.
28372 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
28373             Bernd Schmidt  <bernds@codesourcery.com>
28374             Nathan Sidwell  <nathan@codesourcery.com>
28376         * config/nvptx/mkoffload.c: New file.
28377         * config/nvptx/t-nvptx: Add build rules for it.
28378         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
28379         (extra_programs): Add mkoffload.
28380         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
28381         function.
28382         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
28384 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
28386         PR middle-end/64809
28387         * cfgexpand.c (reorder_operands): Skip debug gimples.
28389 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
28391         PR tree-optimization/64277
28392         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
28393         range info when possible to refine estimation.
28395 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28397         PR tree-optimization/64718
28398         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
28399         be a 16bit unsigned integer when n->range is 16.
28400         (bswap_replace): Convert src to that type if necessary for all bswap
28401         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
28402         set in pass_optimize_bswap::execute ().
28404 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
28406         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
28407         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
28408         integer and floating point variants.
28409         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
28411 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
28413         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
28414         for all vector modes.
28416 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
28418         PR bootstrap/64612
28419         * doc/sourcebuild.texi (comdat_group): Document.
28421 2015-01-28  Terry Guo  <terry.guo@arm.com>
28423         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
28425 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
28427         * toplev.c (print_version): Add param "show_global_state", and
28428         only print GGC and plugin information if it is true.
28429         (init_asm_output): Pass in "true" for the new param when calling
28430         print_version.
28431         (process_options): Likewise.
28432         (toplev::main): Likewise.
28433         * toplev.h (print_version): Add new param to decl.
28435 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
28437         PR ipa/60871
28438         PR ipa/64139
28439         * tree.c (lookup_binfo_at_offset): New function.
28440         (get_binfo_at_offset): Use it.
28442 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
28444         PR ipa/64282
28445         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
28446         on vtable being vtable.
28448 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28450         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
28451         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
28452         -mhotpatch= option.
28453         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
28454         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
28455         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
28456         Renamed.
28457         (s390_hotpatch_trampoline_halfwords_max): Renamed.
28458         (s390_hotpatch_hw_max): New name.
28459         (s390_hotpatch_trampoline_halfwords): Renamed.
28460         (s390_hotpatch_hw_before_label): New name.
28461         (get_hotpatch_attribute): Removed.
28462         (s390_hotpatch_hw_after_label): New name.
28463         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
28464         attribute.
28465         (s390_attribute_table): Ditto.
28466         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
28467         (s390_function_num_hotpatch_hw): New name.
28468         Remove special handling of inline functions and hotpatching.
28469         Return number of nops before and after the function label.
28470         (s390_can_inline_p): Removed.
28471         (s390_asm_output_function_label): Emit a configurable number of nops
28472         after the function label.
28473         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
28474         (TARGET_CAN_INLINE_P) Removed.
28475         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
28477 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28478             Jiong Wang  <jiong.wang@arm.com>
28480         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
28481         of scratch reg.
28482         (cb<optab><mode>1): Likewise.
28483         * config/aarch64/iterators.md (bcond): New define_code_attr.
28485 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28487         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
28488         memory accesses.
28490 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28492         * config/s390/s390.c (s390_register_move_cost): Increase costs for
28493         FPR->GPR moves.
28495 2015-01-27  Richard Biener  <rguenther@suse.de>
28497         * tree-vrp.c (update_value_range): Intersect the range with
28498         old recorded SSA name range information.
28500 2015-01-27  Nick Clifton  <nickc@redhat.com>
28502         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
28503         BC, DE and HL registers directly, not via AX.
28504         When decrementing the stack pointer by a large amount, transfer SP
28505         into AX and perform the subtraction there.
28506         (rl78_expand_epilogue): Perform the inverse of the above
28507         enhancements.
28509 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28511         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
28513 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
28514             Yury Gribov  <y.gribov@samsung.com>
28516         PR ubsan/64741
28517         * ubsan.c (ubsan_source_location): Refactor code.
28518         (ubsan_type_descriptor): Update type size. Refactor code.
28520 2015-01-27  Richard Biener  <rguenther@suse.de>
28522         PR tree-optimization/56273
28523         PR tree-optimization/59124
28524         PR tree-optimization/64277
28525         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
28526         from the first VRP pass.
28528 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
28530         PR ipa/64776
28531         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
28532         handle the first argument in the same loop as all the other arguments.
28534         PR rtl-optimization/61058
28535         * jump.c (cleanup_barriers): Update basic block boundaries
28536         if BLOCK_FOR_INSN is non-NULL on PREV.
28538 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
28540         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
28541         bounds narrowing, already instrumented calls and calls to
28542         not instrumentable functions.
28544 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
28546         PR tree-optimization/64807
28547         * wide-int.cc (wi::divmod_internal): Clear
28548         b_dividend[dividend_blocks_needed].
28550 2015-01-26  DJ Delorie  <dj@redhat.com>
28552         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
28553         volatile memory references.
28555 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
28557         PR target/49263
28558         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
28559         remove_insn.
28560         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
28561         shifts if it already fits into K08.
28563 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
28565         PR ipa/64730
28566         * ipa-inline.c (inline_small_functions): Print "unknown" even
28567         if edge->call_stmt is non-NULL, but has builtins or unknown
28568         location.
28570         PR middle-end/64421
28571         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
28572         with asterisk, skip the first character.
28574 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
28576         PR target/64806
28577         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
28578         order change.
28580 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
28582         PR target/64795
28583         * config/i386/i386.md (*movdi_internal): Also check operand 0
28584         to determine TYPE_LEA operand.
28585         (*movsi_internal): Ditto.
28587 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
28589         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
28590         OPTION_MASK_QUAD_MEMORY_ATOMIC.
28592 2015-01-26  Renlin Li  <renlin.li@arm.com>
28594         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
28595         the comment.
28596         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
28597         for higher part.
28599 2015-01-26  Richard Biener  <rguenther@suse.de>
28601         PR middle-end/64764
28602         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
28603         combining two BIT_AND_EXPR predicates.
28605 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
28607         PR bootstrap/64754
28608         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
28610 2015-01-26  Terry Guo  <terry.guo@arm.com>
28612         * config/arm/arm.c (arm_file_start): Update the assignment of
28613         Tag_ABI_HardFP_use.
28615 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
28617         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
28618         pipeline model.
28619         config/arm/arm.md: Include the new Cortex-A57 model.
28620         (generic_sched): Don't use generic_sched when tuning for
28621         Cortex-A57.
28623 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
28624             Uros Bizjak  <ubizjak@gmail.com>
28626         * config/i386/i386.c (get_builtin_code_for_version): Add
28627         support for BMI and BMI2 multiversion functions.
28629 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
28631         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
28632         (extract_bit_field): Likewise.
28633         (extract_low_bits): Likewise.
28634         (expand_mult): Likewise.
28635         (expand_mult_highpart_adjust): Likewise.
28637 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
28639         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
28640         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
28641         * config/i386/i386.c (processor_model): Add
28642         M_INTEL_COREI7_BROADWELL.
28643         (arch_names_table): Add "broadwell".
28645 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
28647         PR target/49263
28648         PR target/53987
28649         PR target/64345
28650         PR target/59533
28651         PR target/52933
28652         PR target/54236
28653         PR target/51244
28654         * config/sh/sh-protos.h
28655         (sh_extending_set_of_reg::can_use_as_unextended_reg,
28656         sh_extending_set_of_reg::use_as_unextended_reg,
28657         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
28658         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
28659         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
28660         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
28661         (sh_treg_insns): New class.
28662         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
28663         (scope_counter): New class.
28664         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
28665         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
28666         sh_extending_set_of_reg::can_use_as_unextended_reg,
28667         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
28668         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
28669         sh_split_treg_set_expr): New functions.
28670         (addsubcosts): Handle treg_set_expr.
28671         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
28672         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
28673         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
28674         (sh_insn_operands_modified_between_p): Make non-static.
28675         * config/sh/predicates.md (zero_extend_movu_operand): Allow
28676         simple_mem_operand in addition to displacement_mem_operand.
28677         (zero_extend_operand): Don't allow zero_extend_movu_operand.
28678         (treg_set_expr, treg_set_expr_not_const01,
28679         arith_reg_or_treg_set_expr): New predicates.
28680         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
28681         arith_or_int_operand instead of logical_operand.  Convert to
28682         insn_and_split.  Try to optimize constant operand in splitter.
28683         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
28684         (*tstqi_t_zero): Delete.
28685         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
28686         (tstsi_t_and_not): Delete.
28687         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
28688         Convert to insn_and_split.
28689         (unnamed split, tstsi_t_zero_extract_xor,
28690         tstsi_t_zero_extract_subreg_xor_little,
28691         tstsi_t_zero_extract_subreg_xor_big): Delete.
28692         (*tstsi_t_shift_mask): New insn_and_split.
28693         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
28694         to recombine with surrounding insns when splitting.
28695         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
28696         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
28697         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
28698         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
28699         (*cbranch_div0s: Delete.
28700         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
28701         Try to recombine with surrounding insns when splitting.  Add operand
28702         order variants.
28703         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
28704         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
28705         *addc_r_r_msb, *addc_2r_msb): Delete.
28706         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
28707         order variant.
28708         (*addc_negreg_t): New insn_and_split.
28709         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
28710         Try to recombine with surrounding insns when splitting.
28711         Add operand order variants.
28712         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
28713         insn_and_split patterns.
28714         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
28715         surrounding insns when splitting.
28716         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
28717         (*rotcl): Likewise.  Add zero_extract variant.
28718         (*ashrsi2_31): New insn_and_split.
28719         (*negc): Convert to insn_and_split.  Use treg_set_expr.
28720         (*zero_extend<mode>si2_disp_mem): Update comment.
28721         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
28722         condition.
28723         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
28724         with surrounding insns when splitting.
28725         (any_treg_expr_to_reg): New insn_and_split.
28726         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
28727         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
28728         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
28729         *zero_extract_2): New single bit zero extract patterns.
28730         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
28731         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
28732         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
28733         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
28734         set destination.
28735         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
28736         register_operand for set source.
28738 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
28740         * i386.opt (prefetch_sse): New targetsave.
28741         * i386.c (ix86_function_specific_save): Save prefetch_sse.
28742         (ix86_function_specific_restore): Restore prefetch_sse and initialize
28743         ix86_cost/ix86_tune_cost.
28745 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
28747         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
28748         Support the JIT by using 0 as the language type.
28750 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
28752         PR target/64317
28753         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
28754         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
28755         (mark_regno_live, process_bb_lives): Pass new parameter value to
28756         make_hard_regno_born.
28758 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
28760         PR rtl-optimization/63637
28761         PR rtl-optimization/60663
28762         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
28763         if elt->cost is MAX_COST for ASM_OPERANDS.
28764         (find_sets_in_insn): Fix up comment typo.
28765         (cse_insn): Don't set src_volatile for all non-volatile
28766         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
28767         or with "memory" clobber.  Set elt->cost to MAX_COST
28768         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
28769         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
28771 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
28773         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
28774         alternative 1.
28776 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
28778         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
28779         libgcc/config/i386/elf-lib.h.
28781 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
28783         PR driver/64737
28784         * gcc.c (print_configuration): Don't print a blank line at the end
28785         here...
28786         (run_attempt): ... but here unstead.
28788         PR middle-end/64734
28789         * omp-low.c (scan_sharing_clauses): Don't ignore
28790         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
28791         on target data/update constructs.
28793 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28795         PR target/50928
28796         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
28797         (DEBUG_RELOAD): Removed define.
28798         (m32c_limit_reload_class): Enable traces with if DEBUG0.
28799         (m32c_function_arg): Added a type cast.
28800         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
28801         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
28802         * config/m32c/bitops.md (andqi3_16): Likewise.
28803         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
28804         (push_a01_l): Likewise.
28806 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
28808         PR jit/64721
28809         * main.c (main): Construct toplev instances with init_signals=true.
28810         * toplev.c (general_init): Add param "init_signals", and use it to
28811         conditionalize the calls to signal and host_hooks.extra_signals.
28812         (toplev::toplev): Add param "init_signals".
28813         (toplev::main): When invoking general_init, pass m_init_signals
28814         to control whether signal-handlers are installed.
28815         * toplev.h (toplev::toplev): Add param "init_signals".
28816         (toplev::m_init_signals): New field.
28818 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
28820         PR jit/64722
28821         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
28822         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
28823         latter may be affected by the former (e.g. on i686).
28825 2015-01-23  Martin Liska  <mliska@suse.cz>
28827         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
28828         false positive during profiledbootstrap.
28830 2015-01-23  Tom de Vries  <tom@codesourcery.com>
28832         PR libgomp/64672
28833         * lto-opts.c (lto_write_options): Output non-explicit conservative
28834         -fno-openacc.
28835         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
28836         (append_compiler_options): Pass -fopenacc through.
28838 2015-01-23  Tom de Vries  <tom@codesourcery.com>
28840         PR libgomp/64707
28841         * lto-opts.c (lto_write_options): Output non-explicit conservative
28842         -fno-openmp.
28843         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
28844         (append_compiler_options): Pass -fopenmp through.
28846 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
28848         PR debug/64511
28849         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
28850         GTY markup.
28852         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
28853         * diagnostic.def (DK_ICE_NOBT): New kind.
28854         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
28855         like DK_ICE, but never print backtrace.
28856         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
28857         (internal_error_no_backtrace): New function.
28858         * gcc.c (execute): Use internal_error_no_backtrace instead of
28859         internal_error.
28861 2015-01-22  Jeff Law  <law@redhat.com>
28863         PR target/52076
28864         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
28865         improve code density for small immediate to memory case.
28866         (insv): Better handle bitfield assignments when the field is
28867         being set to all ones.
28868         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
28869         operand predicate.
28871 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28872             Jakub Jelinek  <jakub@redhat.com>
28874         PR middle-end/64729
28875         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
28876         for !TARGET_LIBC_PROVIDES_SSP version and
28877         -fstack-protector-{all,strong,explicit} otherwise.
28878         * config/freebsd.h (LINK_SSP_SPEC): Handle
28879         -fstack-protector-{strong,explicit}.
28881 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
28882             H.J. Lu  <hongjiu.lu@intel.com>
28884         PR ipa/64694
28885         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
28886         heap.
28888 2015-01-22  Wei Mi  <wmi@google.com>
28890         PR rtl-optimization/64557
28891         * dse.c (record_store): Call get_addr for mem_addr.
28892         (check_mem_read_rtx): Likewise.
28894 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
28896         * fold-const.c (const_binop): Add early return for non-tcc_binary.
28898 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
28900         * toplev.c (init_local_tick): Process the failure when read
28901         fails for random_seed.
28903         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
28904         'pretty_name' to avoid memory overflow.
28906 2015-01-22  Richard Biener  <rguenther@suse.de>
28908         PR middle-end/64728
28909         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
28910         abnormal coalescing on undefined SSA names.
28912 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
28914         PR target/64688
28915         PR target/64477
28916         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
28917         for alternative 3.
28918         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
28920 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
28922         PR middle-end/63325
28923         * fold-const.c (fold_checksum_tree): Don't include value of
28924         expr->decl_with_vis.symtab_node in the checksum.
28926 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28928         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
28930 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
28932         PR driver/64690
28933         * gcc.c (insert_comments): New function.
28934         (try_generate_repro): Call it.
28935         (append_text): Removed.
28937 2015-01-22  Richard Biener  <rguenther@suse.de>
28939         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
28940         with IL incompatible options.  Properly honor user optimize
28941         attributes.
28943 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
28945         PR rtl-optimization/64682
28946         * combine.c (distribute_notes): When moving a death note for
28947         a register that is set in the new I2, make sure to put it
28948         before that new I2.
28950 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
28952         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
28953         not TARGET_DEFAULT.
28955 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
28957         PR debug/64511
28958         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
28959         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
28960         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
28962         PR sanitizer/64706
28963         * doc/invoke.texi (-fsanitize=vptr): Document.
28965         PR rtl-optimization/62078
28966         * dse.c: Include cfgcleanup.h.
28967         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
28968         anything call purge_all_dead_edges and cleanup_cfg at the end
28969         of the pass.
28971 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
28973         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
28974         edges.
28976 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28978         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
28979         decl attribute.
28981 2015-01-21  David Sherwood  <david.sherwood@arm.com>
28982             Tejas Belagod <Tejas.Belagod@arm.com>
28984         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
28985         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
28986         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
28987         Removed.
28989 2015-01-21  David Sherwood  <david.sherwood@arm.com>
28990             Tejas Belagod <Tejas.Belagod@arm.com>
28992         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
28993         (aarch64_reverse_mask): New decls.
28994         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
28995         (insn_count): New mode_attr.
28996         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
28997         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
28998         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
28999         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
29000         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
29001         (aarch64_simd_st4): New patterns.
29002         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
29003         (aarch64_reverse_mask): New functions.
29005 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
29007         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
29008         Declare.
29009         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
29010         addressing modes for BE.
29011         (aarch64_print_operand): Add 'R' specifier.
29012         (aarch64_simd_disambiguate_copy): Delete.
29013         (aarch64_simd_emit_reg_reg_move): New function.
29014         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
29015         in define_splits for structural moves.
29016         (mov<mode>): Use less restrictive predicates.
29017         (*aarch64_mov<mode>): Simplify and only allow for LE.
29018         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
29020 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
29022         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
29024 2015-01-21  Richard Henderson  <rth@redhat.com>
29026         PR target/64669
29027         * ccmp.c (used_in_cond_stmt_p): Remove.
29028         (expand_ccmp_expr): Don't use it.
29030 2015-01-21  Nick Clifton  <nickc@redhat.com>
29032         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
29033         PARALLELs.
29035 2015-01-21  Richard Biener  <rguenther@suse.de>
29037         PR middle-end/64313
29038         * tree-core.h (builtin_info, builtin_info_type): Turn from
29039         an object with two arrays into an array of an object with
29040         decl and two flags, implicit_p and declared_p.
29041         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
29042         set_builtin_decl, set_builtin_decl_implicit_p,
29043         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
29044         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
29045         * builtins.c (builtin_info): Adjust.
29046         * gimplify.c (gimplify_addr_expr): References to builtins
29047         that have been declared by the user makes them eligible for
29048         use by the compiler.  Call set_builtin_decl_implicit_p on them.
29050 2015-01-20  Jeff Law  <law@redhat.com>
29052         PR target/59946
29053         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
29054         allow pc-relative addresses in operand predicates or constraints.
29056 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
29058         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
29059         neon on aarch32 processors for stringops.
29061 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
29063         PR ipa/63576
29064         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
29066 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
29068         PR lto/45375
29069         * ipa-inline.c: Include lto-streamer.h
29070         (report_inline_failed_reason): Output source file differences and
29071         flags on optimization/target node mismatch.
29072         (can_inline_edge_p): Consider caller to be the outer inline function;
29073         be less restrictive about matching opimize and optimize_size attributes.
29074         (inline_account_function_p): Break out from ...
29075         (inline_small_functions): ... here.
29076         * ipa-inline-transform.c (clone_inlined_nodes): Use
29077         inline_account_function_p.
29078         (inline_call): Use optimize attribution; use inline_account_function_p.
29079         (inline_transform): Use opt_for_fn.
29080         * ipa-inline.h (inline_account_function_p): Declare.
29082 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
29084         PR debug/64663
29085         * dwarf2out.c (decl_piece_node): Don't put bitsize into
29086         mode if bitsize <= 0.
29087         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
29088         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
29089         sizes and positions.
29091 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
29093         * config/nios2/nios2.c (nios2_asm_file_end): Implement
29094         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
29095         needed.
29096         (TARGET_ASM_FILE_END): Define.
29098 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
29100         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
29101         (struct tune_params): Use the enum.
29102         * arm.c (arm_*_tune): Update.
29103         (arm_option_override): Update.
29105 2015-01-20  Richard Biener  <rguenther@suse.de>
29107         PR ipa/64684
29108         * ipa-reference.c (add_static_var): Inline ...
29109         (analyze_function): ... here after splitting out from ...
29110         (is_proper_for_analysis): ... this.
29112 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
29114         PR target/64149
29115         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
29116         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
29117         replace the conditional with it's true branch.
29118         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
29119         (arm_lra_p): Remove.
29121 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
29123         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
29125 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
29127         * config/tilegx/mul-tables.c: Move symtab.h include after
29128         coretypes.h include.
29129         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
29130         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
29131         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
29132         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
29133         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
29135 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
29137         PR bootstrap/64676
29138         Revert:
29139         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
29141         PR rtl-optimization/64081
29142         * loop-iv.c (def_pred_latch_p): New function.
29143         (latch_dominating_def): Allow specific cases with non-single
29144         definitions.
29145         (iv_get_reaching_def): Likewise.
29146         (check_complex_exit_p): New function.
29147         (check_simple_exit): Use check_complex_exit_p to allow certain cases
29148         with exits not executing on any iteration.
29150 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
29152         PR lto/45375
29153         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
29154         to set branch cost.
29156 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
29158         PR lto/45375
29159         * i386.c (gate): Check flag_expensive_optimizations and
29160         optimize_size.
29161         (ix86_option_override_internal): Drop optimize_size condition
29162         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
29163         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
29164         MASK_PREFER_AVX128.
29165         (ix86_avx256_split_vector_move_misalign,
29166         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
29167         * sse.md (all uses of TARGET_PREFER_AVX128): Add
29168         optimize_insn_for_speed_p check.
29170 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
29172         * config/mips/mips.h (FP_ASM_SPEC): New define.
29173         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
29174         instead.
29176 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
29178         PR target/53988
29179         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
29180         nullptr for insn when reaching the first insn.
29181         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
29182         (sh_insn_operands_modified_between_p): Add nullptr check.
29183         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
29184         sign extending mem load if the insn contains any UNSPEC or
29185         UNSPEC_VOLATILE.
29187 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
29189         * params.def (inline-unit-growth): Drop to 15%.
29190         * invoke.texi (inline-unit-growth): Document change.
29192 2015-01-19  Martin Liska  <mliska@suse.cz>
29194         PR ipa/64668
29195         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
29196         function for second argument of OBJ_TYPE_REF.
29198 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
29200         PR ipa/64218
29201         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
29202         whether function is an alias.
29204 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
29206         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
29207         cases.
29209 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
29211         PR rtl-optimization/64671
29212         * lra-remat.c (operand_to_remat): Don't consider jump and call
29213         insns.
29215 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
29217         PR target/59828
29218         * config/rs6000/default64.h: Include rs6000-cpus.def.
29219         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
29220         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
29221         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
29222         and POWER8.
29223         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
29224         POWER8.
29225         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
29226         pseudo-op to specify assembler dialect.
29228 2015-01-19  Martin Liska  <mliska@suse.cz>
29230         PR ipa/64664
29231         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
29232         Handle safe potentially removed nodes during filtering.
29234 2015-01-19  Martin Liska  <mliska@suse.cz>
29236         * doc/extend.texi (no_icf): Add new attribute description.
29237         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
29238         where the pass attempts to merge a function with no_icf attribute.
29240 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29242         PR target/64532
29243         * doc/md.texi (ARM Options): Document register constraints.
29245 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
29246             Andrew Pinski  <apinski@cavium.com>
29248         PR target/64304
29249         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
29250         (ashl<mode>3): Don't expand if operands[2] is not constant.
29252 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29254         PR target/64448
29255         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
29256         Match xor-and-xor RTL pattern.
29258 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
29260         PR rtl-optimization/64081
29261         * loop-iv.c (def_pred_latch_p): New function.
29262         (latch_dominating_def): Allow specific cases with non-single
29263         definitions.
29264         (iv_get_reaching_def): Likewise.
29265         (check_complex_exit_p): New function.
29266         (check_simple_exit): Use check_complex_exit_p to allow certain cases
29267         with exits not executing on any iteration.
29269 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
29271         * common.opt (fgraphite): Fix a typo.
29273 2015-01-19  Felix Yang  <felix.yang@huawei.com>
29275         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
29276         pattern.
29277         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
29278         uminp, smax_nanp, smin_nanp): New builtins.
29279         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
29280         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
29281         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
29282         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
29283         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
29284         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
29285         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
29286         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
29287         vpminnms_f32): Rewrite using builtin functions.
29289 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
29291         PR libgomp/64625
29292         * omp-low.c (offload_symbol_decl): Remove variable.
29293         (get_offload_symbol_decl): Remove function.
29294         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
29295         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
29296         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
29297         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
29298         BUILT_IN_GOACC_UPDATE don't pass it at all.
29300 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
29302         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
29303         callers.
29305 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
29307         * ipa-chkp.c (chkp_produce_thunks): Add early param
29308         to split thunks production into two passes.  Keep
29309         'always_inline' function bodies after the first pass.
29310         (pass_data_ipa_chkp_early_produce_thunks): New.
29311         (pass_ipa_chkp_early_produce_thunks): New.
29312         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
29313         chkp_produce_thunks signature.
29314         (make_pass_ipa_chkp_early_produce_thunks): New.
29315         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
29316         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
29317         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
29319 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
29321         * cgraph.c (cgraph_node::dump): Dump profile flags.
29323 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
29325         PR target/64652
29326         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
29327         reg appear first in the parallel.
29329 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
29331         * ipa-reference.c (set_reference_optimization_summary,
29332         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
29333         disabled.
29334         (ignore_module_statics): New static var.
29335         (propagate_bits): If ipa-reference is disabled, do not look into local
29336         properties.
29337         (analyze_function): Disable analysis when ipa_reference is disabled.
29338         (generate_summary): Do not dump when reference is disabled;
29339         collect vars accessed from functions with ipa-reference disabled.
29340         (get_read_write_all_from_node): When ipa-reference is disabled, use the
29341         node flags.
29342         (gate): Enable for LTO.
29343         (ignore_edge_p): New function.
29344         (propagate): Skip functions w/o ipa-reference analysis.
29345         * optc-save-gen.awk: Handle optimize_debug correctly.
29346         * opth-gen.awk: Likewise.
29347         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
29348         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
29349         fira-share-save-slots, fira-share-spill-slots,
29350         fmodulo-sched-allow-regmoves, fpartial-inlining,
29351         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
29352         ftracer, ftree-parallelize-loops, fassociative-math,
29353         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
29354         Optimization
29355         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
29356         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
29357         Optimization.
29358         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
29359         Fix for IPA.
29361 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
29363         PR ipa/64378
29364         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
29365         flag correctly.
29366         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
29368 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
29370         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
29371         Remove duplicate option listings.
29373 2015-01-18  Felix Yang  <felix.yang@huawei.com>
29375         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
29376         (autofdo_source_profile::get_callsite_total_count,
29377         function_instance::get_function_instance_by_decl,
29378         string_table::get_index, string_table::get_index_by_decl,
29379         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
29380         Fix comment typos. Reformatting and minor code rearrangement.
29382 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
29384         * config/rs6000/rs6000.md (probe_stack): Delete.
29385         (probe_stack_address): New.
29387 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
29389         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
29390         to test for 32-bit ABIs, not !TARGET_POWERPC64.
29392 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
29394         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
29395         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
29396         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
29397         snafu.
29398         (rs6000_libcall_value): Use the new function.
29400 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
29402         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
29404 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
29406         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
29407         implement a more precise life analysis for it during backward scan.
29409 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
29411         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
29413 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
29415         PR rtl-optimization/52773
29416         * calls.c (emit_library_call_value): When pushing arguments use
29417         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
29418         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
29419         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
29421 2015-01-17  Jeff Law  <law@redhat.com>
29423         PR rtl-optimization/32790
29424         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
29425         not ZERO_EXTEND in SET_DESTs.
29427 2015-01-17  Alan Modra  <amodra@gmail.com>
29429         * cprop.c (do_local_cprop): Revert last change.
29431 2015-01-16  DJ Delorie  <dj@redhat.com>
29432             Nick Clifton  <nickc@redhat.com>
29434         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
29435         (addhi3_real): Likewise.  Fix [HL+0] syntax.
29436         (subqi3_real): Likewise.
29437         (subhi3_real): Likewise.
29438         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
29439         (cbranchhi4_real): Likewise.
29440         (cbranchhi4_real_inverted): Likewise.
29441         (cbranchsi4_real_lt): Likewise.
29442         (cbranchsi4_real_ge): Likewise.
29443         (cbranchsi4_real_ge): Likewise.
29444         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
29445         (sub<mode>3_virt): Likewise.
29446         (cbranchqi4_virt): Likewise.
29447         (cbranchhi4_virt): Likewise.
29448         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
29449         always use '[reg+imm]' even when imm is zero.
29450         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
29451         (rl78_general_operand): New.
29452         (rl78_nonimmediate_operand): New.
29453         (rl78_nonfar_operand): Use them.
29454         (rl78_nonfar_nonimm_operand): Likewise.
29455         (rl78_stack_based_mem): Fix.
29456         * config/rl78/constraints.md (Ibqi): New.
29457         (IBqi): New.
29458         (Wsa): New.
29459         (Wsf): New.
29460         (Cs1): Fix.
29461         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
29462         (iorqi3): Likewise.
29463         (xorqi3): Likewise.
29464         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
29466         * config/rl78/constrains (Qs8): New constraint.
29467         * config/rl78/rl78.c (rl78_flags_already_set): New function.
29468         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
29469         * config/rl78/rl78-real.md (update_Z): New attribute.
29470         Update patterns to set it.
29471         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
29472         shorter compare and branch sequence can be used.
29473         (cbranchhi4_real): Likewise.
29474         (cbranchhi4_real_inverted): Likewise.
29476         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
29477         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
29478         address space.
29479         * config/rl78/rl78.c (rl78_get_name_encoding): New.
29480         (rl78_option_override): Allow -mes0 only if C.
29481         (characterize_address): Support subregs of symbol_refs.
29482         (rl78_addr_space_address_mode): Move.  Add __near.
29483         (rl78_far_p): Likewise.
29484         (rl78_addr_space_pointer_mode): Likewise.
29485         (rl78_as_legitimate_address): Likewise.
29486         (rl78_addr_space_subset_p): Likewise.
29487         (rl78_addr_space_convert): Likewise.
29488         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
29489         symbols with -mes0.
29490         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
29491         addressing.
29492         (rl78_alloc_physical_registers_op1): Change logic to prefer
29493         symbol[BC] addressing.
29494         (frodata_section): New.
29495         (rl78_asm_init_sections): Initialize it.
29496         (rl78_select_section): Put __far readonly symbols in .frodata.
29497         (rl78_make_type_far): New.
29498         (rl78_insert_attributes): Force all readonly symbols to be
29499         __far when -mes0.
29500         (rl78_asm_out_integer): New.
29501         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
29502         * config/rl78/rl78.opt (-mes0): New.
29504         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
29505         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
29506         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
29507         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
29508         (rl78_saddr_p): New.
29509         (rl78_output_aligned_common): New.
29510         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
29511         (rl78_handle_saddr_attribute): New.
29512         (rl78_handle_naked_attribute): New.
29513         (rl78_attribute_table): Add saddr.
29514         (rl78_print_operand_1): Don't print '!' on saddr operands.
29515         (rl78_print_operand_1): Strip encodings.
29516         (rl78_sfr_p): New.
29517         (rl78_strip_name_encoding): New.
29518         (rl78_attrlist_to_encoding): New.
29519         (rl78_encode_section_info): New.
29520         (rl78_asm_init_sections): New.
29521         (rl78_select_section): New.
29522         (rl78_output_labelref): New.
29523         (rl78_output_aligned_common): New.
29524         (rl78_asm_out_integer): New.
29525         (rl78_asm_ctor_dtor): New.
29526         (rl78_asm_constructor): New.
29527         (rl78_asm_destructor): New.
29529         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
29530         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
29531         (transcode_memory_rtx): Update.
29532         (rl78_expand_epilogue): Use A_REG instead of 0.
29534 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
29536         * config/arm/arm-protos.h (struct tune_params): New field
29537         sched_autopref_queue_depth.
29538         * config/arm/arm.c (sched-int.h): Include header.
29539         (arm_first_cycle_multipass_dfa_lookahead_guard,)
29540         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
29541         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
29542         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
29543         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
29544         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
29545         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
29546         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
29547         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
29548         * config/arm/t-arm (arm.o): Update.
29549         * haifa-sched.c (update_insn_after_change): Update.
29550         (rank_for_schedule): Use auto-prefetcher model, if requested.
29551         (autopref_multipass_init): New static function.
29552         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
29553         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
29554         variable for debug dumps.
29555         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
29556         (autopref_multipass_dfa_lookahead_guard): New global function that
29557         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
29558         (init_h_i_d): Update.
29559         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
29560         * sched-int.h (enum autopref_multipass_data_status): New const enum.
29561         (autopref_multipass_data_): Structure for auto-prefetcher data.
29562         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
29563         (struct _haifa_insn_data:autopref_multipass_data): New field.
29564         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
29565         (autopref_multipass_dfa_lookahead_guard): Declare.
29567 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
29569         * rtlanal.c (get_base_term): Handle SCRATCH.
29571 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
29573         * config/aarch64/aarch64.c
29574         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
29575         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
29576         * config/arm/arm.c
29577         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
29578         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
29580 2015-01-17  Alan Modra  <amodra@gmail.com>
29582         * cprop.c (do_local_cprop): Disallow replacement of fixed
29583         hard registers.
29585 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29587         PR target/62066
29588         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
29589         early return 0.
29591 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29593         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
29594         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
29596 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29598         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
29599         * config/arm/thumb1.md: ... Here.
29601 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
29603         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
29604         TImode for TARGET_32BIT.
29606 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
29608         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
29609         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
29610         as ...
29611         (rs6000_abi_word_mode): New function.
29613 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
29615         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
29616         instead of UNITS_PER_WORD to describe the size of stack slots.
29618 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
29620         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
29621         as rs6000_promote_function_mode.  Move comment to there.
29622         (rs6000_promote_function_mode): New function.
29624 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
29626         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
29627         -mpowerpc64 is active.
29629 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
29631         PR middle-end/64353
29632         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
29633         virtuals on start.
29635 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
29637         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
29638         introduced in revision 219724.
29640 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29641             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29643         PR target/64263
29644         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
29645         destination is not a GP reg.
29646         (*movdi_aarch64): Likewise.
29648 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
29650         PR target/64623
29651         * config/rs6000/default64.h: Revert ISA change.
29653 2015-01-16  Richard Biener  <rguenther@suse.de>
29655         PR middle-end/64614
29656         * tree-ssa-uninit.c: Include tree-cfg.h.
29657         (MAX_SWITCH_CASES): New define.
29658         (convert_control_dep_chain_into_preds): Handle switch statements.
29659         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
29660         (normalize_one_pred_1): Do not split bit-manipulations.
29661         Record (x & CST).
29663 2015-01-16  Richard Biener  <rguenther@suse.de>
29665         PR tree-optimization/64568
29666         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
29667         complex load rewriting for TARGET_MEM_REFs.
29669 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
29671         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
29673 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
29675         PR target/64149
29676         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
29677         variable.
29678         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
29679         (aarch64_lra_p): Remove.
29681 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
29683         PR target/64363
29684         * ipa-chkp.h (chkp_instrumentable_p): New.
29685         * ipa-chkp.c: Include tree-inline.h.
29686         (chkp_instrumentable_p): New.
29687         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
29688         Fix processing of not instrumentable functions.
29689         (chkp_versioning): Use chkp_instrumentable_p. Warn about
29690         not instrumentable functions.
29691         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
29692         chkp_instrumentable_p.
29693         * tree-inline.h (copy_forbidden): New.
29694         * tree-inline.c (copy_forbidden): Not static anymore.
29696 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29698         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
29699         ptr1, ptr2 unused.
29701 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
29703         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
29704         type OP_OUT to OP_INOUT.
29706 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
29708         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
29709         (high x) y) to y if x and y have the same base.
29711 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
29713         * config/arm/cortex-a57.md: New.
29714         * config/aarch64/aarch64.md: Include it.
29715         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
29716         * config/aarch64/aarch64-tune.md: Regenerate.
29718 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
29720         PR target/64015
29721         * ccmp.c (expand_ccmp_next): New function.
29722         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
29723         and compare insn sequence.
29724         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
29725         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
29726         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
29727         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
29728         (*ccmp_ior): Changed to ccmp_ior<mode>.
29729         (cmp<mode>): New pattern.
29730         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
29731         parameters.
29732         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
29734 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
29736         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
29737         _mm256_bsrli_epi128): New.
29738         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
29740 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
29742         * expmed.c (store_bit_field_using_insv): Improve warning message.
29743         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
29745 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
29747         PR rtl-optimization/64011
29748         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
29749         there is partial overflow.
29751 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
29753         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
29754         prototype.
29755         (nds32_expand_epilogue_v3pop): Likewise.
29756         * config/nds32/nds32.md (sibcall): Define this for sibling call
29757         optimization.
29758         (sibcall_register): Likewise.
29759         (sibcall_immediate): Likewise.
29760         (sibcall_value): Likewise.
29761         (sibcall_value_register): Likewise.
29762         (sibcall_value_immediate): Likewise.
29763         (sibcall_epilogue): Likewise.
29764         (epilogue): Pass false to indicate this is not a sibcall epilogue.
29765         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
29766         (nds32_expand_epilogue_v3pop): Likewise.
29768 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
29770         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
29771         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
29772         (return_internal): New.
29773         (return): Define this named pattern.
29774         (simple_return): Define this named pattern.
29775         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
29776         pattern instead of unspec_volatile_func_return.
29777         (nds32_expand_epilogue_v3pop): Likewise.
29778         (nds32_can_use_return_insn): New function.
29780 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
29782         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
29783         * config/nds32/nds32.md (pop25return): New.
29784         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
29785         pop25return pattern.
29787 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
29789         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
29790         -mforbid-fp-as-gp, and -mex9 options.
29792 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
29794         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
29795         remove -mgp-direct option.
29797 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
29799         * doc/invoke.texi (--param early-inlining-insns): Update default value.
29800         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
29802 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
29804         * ipa-inline.c (inline_small_functions): Work around hints
29805         cache issue.
29807 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
29809         PR target/59710
29810         * doc/invoke.texi (Option Summary): Document new Nios II
29811         -mgpopt= syntax.
29812         (Nios II Options): Likewise.
29813         * config/nios2/nios2.opt: Add -mgpopt= option support.
29814         Modify existing -mgpopt and -mno-gpopt options to be aliases.
29815         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
29816         * config/nios2/nios2.c (nios2_option_override): Adjust
29817         -mgpopt defaulting.
29818         (nios2_in_small_data_p): Return true for explicit small data
29819         sections even with -G0.
29820         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
29821         option choices.
29823 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
29825         PR ipa/64612
29826         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
29827         of comdat locals.
29828         (inline_call): Fix removal of aliases.
29830 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
29832         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
29833         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
29834         * opts.c (common_handle_option): Add -fsanitize=vptr.
29835         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
29836         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
29837         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
29838         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
29839         (ubsan_expand_vptr_ifn): New prototype.
29840         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
29841         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
29842         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
29843         expand_LOOP_VECTORIZED): Make argument nameless, remove
29844         ATTRIBUTE_UNUSED.
29845         (expand_UBSAN_VPTR): New function.
29846         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
29847         in fn spec.
29848         (UBSAN_VPTR): New internal function.
29849         * sanopt.c (tree_map_traits): Renamed to ...
29850         (sanopt_tree_map_traits): ... this.
29851         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
29852         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
29853         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
29854         (maybe_optimize_ubsan_vptr_ifn): New function.
29855         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
29856         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
29857         -fsanitize=vptr.
29858         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
29859         internal calls like pure functions for aliasing, even when they
29860         have other side-effects that prevent making them ECF_PURE.
29861         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
29862         (ubsan_expand_vptr_ifn): New function.
29864 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
29866         PR rtl-optimization/64110
29867         * stmt.c (parse_output_constraint): Process '^' and '$'.
29868         (parse_input_constraint): Ditto.
29869         * lra-constraints.c (process_alt_operands): Process the new
29870         constraints.
29871         * ira-costs.c (record_reg_classes): Process the new constraint
29872         '^'.
29873         * genoutput.c (indep_constraints): Add '^' and '$'.
29874         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
29875         * doc/md.texi: Add description of the new constraints.
29877 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
29878             Bernd Schmidt  <bernds@codesourcery.com>
29879             Cesar Philippidis  <cesar@codesourcery.com>
29880             James Norris  <jnorris@codesourcery.com>
29881             Tom de Vries  <tom@codesourcery.com>
29882             Ilmir Usmanov  <i.usmanov@samsung.com>
29883             Dmitry Bocharnikov  <dmitry.b@samsung.com>
29884             Evgeny Gavrin  <e.gavrin@samsung.com>
29885             Jakub Jelinek  <jakub@redhat.com>
29887         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
29888         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
29889         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
29890         New function types.
29891         * builtins.c: Include "gomp-constants.h".
29892         (expand_builtin_acc_on_device): New function.
29893         (expand_builtin, is_inexpensive_builtin): Handle
29894         BUILT_IN_ACC_ON_DEVICE.
29895         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
29896         New macros.
29897         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
29898         flag_openmp.
29899         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
29900         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
29901         i386/intelmic-offload.h.
29902         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
29903         to libgomp and its dependencies.
29904         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
29905         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
29906         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
29907         * config/ia64/hpux.h (LIB_SPEC): Likewise.
29908         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
29909         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
29910         * doc/generic.texi: Update for OpenACC changes.
29911         * doc/gimple.texi: Likewise.
29912         * doc/invoke.texi: Likewise.
29913         * doc/sourcebuild.texi: Likewise.
29914         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
29915         GF_OMP_FOR_KIND_OACC_LOOP.
29916         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
29917         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
29918         GF_OMP_TARGET_KIND_OACC_UPDATE,
29919         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
29920         Dump more data.
29921         * gimple.c: Update comments for OpenACC changes.
29922         * gimple.def: Likewise.
29923         * gimple.h: Likewise.
29924         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
29925         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
29926         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
29927         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
29928         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
29929         appropriate place.
29930         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
29931         * gimplify.c: Include "gomp-constants.h".
29932         Update comments for OpenACC changes.
29933         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
29934         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
29935         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
29936         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
29937         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
29938         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
29939         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
29940         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
29941         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
29942         OMP_CLAUSE_SEQ.
29943         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
29944         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
29945         OMP_CLAUSE_SET_MAP_KIND.
29946         (gimplify_oacc_cache): New function.
29947         (gimplify_omp_for): Handle OACC_LOOP.
29948         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
29949         OACC_DATA.
29950         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
29951         OACC_EXIT_DATA, OACC_UPDATE.
29952         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
29953         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
29954         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
29955         (gimplify_body): Consider flag_openacc next to flag_openmp.
29956         * lto-streamer-out.c: Include "gomp-constants.h".
29957         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
29958         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
29959         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
29960         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
29961         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
29962         (BUILT_IN_ACC_ON_DEVICE): New builtins.
29963         * omp-low.c: Include "gomp-constants.h".
29964         Update comments for OpenACC changes.
29965         (struct omp_context): Add reduction_map, gwv_below, gwv_this
29966         members.
29967         (extract_omp_for_data, use_pointer_for_field, install_var_field)
29968         (new_omp_context, delete_omp_context, scan_sharing_clauses)
29969         (create_omp_child_function, scan_omp_for, scan_omp_target)
29970         (check_omp_nesting_restrictions, lower_reduction_clauses)
29971         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
29972         Update for OpenACC changes.
29973         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
29974         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
29975         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
29976         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
29977         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
29978         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
29979         OMP_CLAUSE_MAP_*.
29980         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
29981         Handle GF_OMP_FOR_KIND_OACC_LOOP.
29982         (expand_omp_target, lower_omp_target): Handle
29983         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
29984         GF_OMP_TARGET_KIND_OACC_UPDATE,
29985         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
29986         GF_OMP_TARGET_KIND_OACC_DATA.
29987         (pass_expand_omp::execute, execute_lower_omp)
29988         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
29989         flag_openmp.
29990         (offload_symbol_decl): New variable.
29991         (oacc_get_reduction_array_id, oacc_max_threads)
29992         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
29993         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
29994         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
29995         (oacc_gimple_assign, oacc_initialize_reduction_data)
29996         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
29997         functions.
29998         (is_targetreg_ctx): Remove function.
29999         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
30000         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
30001         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
30002         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
30003         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
30004         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
30005         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
30006         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
30007         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
30008         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
30009         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
30010         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
30011         * tree-core.h: Update comments for OpenACC changes.
30012         (enum omp_clause_map_kind): Remove.
30013         (struct tree_omp_clause): Change type of map_kind member from enum
30014         omp_clause_map_kind to unsigned char.
30015         * tree-inline.c: Update comments for OpenACC changes.
30016         * tree-nested.c: Likewise.  Include "gomp-constants.h".
30017         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
30018         (convert_tramp_reference_stmt, convert_gimple_call): Update for
30019         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
30020         OMP_CLAUSE_SET_MAP_KIND.
30021         * tree-pretty-print.c: Include "gomp-constants.h".
30022         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
30023         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
30024         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
30025         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
30026         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
30027         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
30028         instead of OMP_CLAUSE_MAP_*.
30029         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
30030         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
30031         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
30032         * tree-streamer-in.c: Include "gomp-constants.h".
30033         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
30034         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
30035         * tree-streamer-out.c: Include "gomp-constants.h".
30036         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
30037         OMP_CLAUSE_MAP_*.
30038         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
30039         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
30040         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
30041         * tree.c (omp_clause_num_ops): Update accordingly.
30042         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
30043         Likewise.
30044         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
30045         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
30046         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
30047         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
30048         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
30049         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
30050         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
30051         (OMP_CLAUSE_SET_MAP_KIND): New macro.
30052         * varpool.c (varpool_node::get_create): Consider flag_openacc next
30053         to flag_openmp.
30054         * config/i386/intelmic-offload.h: New file.
30055         * config/nvptx/offload.h: Likewise.
30057 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30059         * explow.h: Remove duplicate contents.
30060         * dojump.h: Likewise.
30062 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
30064         * arm.c (arm_xgene_tune): Add default initializer for instruction
30065         fusion.
30067 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
30069         PR ipa/64068
30070         PR ipa/64559
30071         * ipa.c (symbol_table::remove_unreachable_nodes):
30072         Do not put abstract origins into boundary.
30074 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
30076         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
30077         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
30079 2015-01-15  Steve Ellcey  <sellcey@mips.com>
30081         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
30082         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
30083         builtins.def, and chkp-builtins.def.
30085 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
30087         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
30088         ISA 2.7 (POWER8).
30090 2015-01-15  Richard Biener  <rguenther@suse.de>
30092         PR tree-optimization/61743
30093         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
30094         information on PHIs for some simple cases.
30096 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
30098         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
30099         Include xgene1.md.
30100         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
30101         * config/arm/arm-cores.def (xgene1): New entry.
30102         * config/arm/arm-tables.opt: Regenerate.
30103         * config/arm/arm-tune.md: Regenerate.
30104         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
30106 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
30108         * tree-if-conv.c: Include hash-map.h.
30109         (aggressive_if_conv): New variable.
30110         (fold_build_cond_expr): Add simplification of non-zero condition.
30111         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
30112         destination block is not always executed.
30113         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
30114         than two predecessors if AGGRESSIVE_IF_CONV is true.
30115         (if_convertible_stmt_p): Fix commentary.
30116         (all_preds_critical_p): New function.
30117         (has_pred_critical_p): New function.
30118         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
30119         BB can have more than two predecessors and all incoming edges can be
30120         critical.
30121         (predicate_bbs): Skip predication for loop exit block, use build2_loc
30122         to compute predicate for true edge.
30123         (find_phi_replacement_condition): Delete this function.
30124         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
30125         Allow interchange PHI arguments if EXTENDED is false.
30126         Change check that block containing reduction statement candidate
30127         is predecessor of phi-block since phi may have more than two arguments.
30128         (phi_args_hash_traits): New helper structure.
30129         (struct phi_args_hash_traits): New type.
30130         (phi_args_hash_traits::hash): New function.
30131         (phi_args_hash_traits::equal_keys): New function.
30132         (gen_phi_arg_condition): New function.
30133         (predicate_scalar_phi): Add handling of phi nodes with more than two
30134         arguments, delete COND and TRUE_BB arguments, insert body of
30135         find_phi_replacement_condition to predicate ordinary phi nodes.
30136         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
30137         delete call of find_phi_replacement_condition and invoke
30138         predicate_scalar_phi with two arguments.
30139         (insert_gimplified_predicates): Add assert that non-predicated block
30140         don't have statements to insert.
30141         (ifcvt_split_critical_edges): New function.
30142         (ifcvt_split_def_stmt): Likewise.
30143         (ifcvt_walk_pattern_tree): Likewise.
30144         (stmt_is_root_of_bool_pattern): Likewise.
30145         (ifcvt_repair_bool_pattern): Likewise.
30146         (ifcvt_local_dce): Likewise.
30147         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
30148         is copy of inner or outer loop force_vectorize field, invoke
30149         ifcvt_split_critical_edges, ifcvt_local_dce and
30150         ifcvt_repair_bool_pattern for aggressive if-conversion.
30152 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
30154         * config/aarch64/aarch64.md: Include xgene1.md.
30155         * config/aarch64/xgene1.md: New file.
30157 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
30159         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
30160         xgene1 (APM XGene-1) core definition.
30161         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
30162         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
30163         * doc/invoke.texi: Document -mcpu=xgene1.
30165 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30167         * dojump.h: New header file.
30168         * explow.h: Likewise.
30169         * expr.h: Remove includes.
30170         Move expmed.c prototypes to expmed.h.
30171         Move dojump.c prototypes to dojump.h.
30172         Move alias.c prototypes to alias.h.
30173         Move explow.c prototypes to explow.h.
30174         Move calls.c prototypes to calls.h.
30175         Move emit-rtl.c prototypes to emit-rtl.h.
30176         Move varasm.c prototypes to varasm.h.
30177         Move stmt.c prototypes to stmt.h.
30178         (saved_pending_stack_adjust): Move to dojump.h.
30179         (adjust_address): Move to explow.h.
30180         (adjust_address_nv): Move to emit-rtl.h.
30181         (adjust_bitfield_address): Likewise.
30182         (adjust_bitfield_address_size): Likewise.
30183         (adjust_bitfield_address_nv): Likewise.
30184         (adjust_automodify_address_nv): Likewise.
30185         * explow.c (expr_size): Move to expr.c.
30186         (int_expr_size): Likewise.
30187         (tree_expr_size): Likewise.
30188         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30189         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
30190         * genemit.c (main): Generate includes statistics.h, real.h,
30191         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
30192         stmt.h.
30193         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
30194         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
30195         explow.h, emit-rtl.h, stmt.h.
30196         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
30197         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
30198         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
30199         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
30200         emit-rtl.h, varasm.h, stmt.h.
30201         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
30202         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
30203         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
30204         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
30205         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
30206         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
30207         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
30208         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
30209         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
30210         tm.h tree.h varasm.h vec.h wide-int.h.
30211         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
30212         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
30213         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
30214         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
30215         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
30216         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
30217         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
30218         * loop-iv.c: Likewise.
30219         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
30220         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
30221         statistics.h stmt.h tree.h varasm.h wide-int.h.
30222         * lra-constraints.c: Likewise.
30223         * lra-eliminations.c: Likewise.
30224         * lra-lives.c: Likewise.
30225         * lra-remat.c: Likewise.
30226         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
30227         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
30228         statistics.h stmt.h tree.h varasm.h wide-int.h.
30229         * hw-doloop.c: Likewise.
30230         * ira-color.c: Likewise.
30231         * ira-emit.c: Likewise.
30232         * loop-doloop.c: Likewise.
30233         * loop-invariant.c: Likewise.
30234         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
30235         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
30236         statistics.h stmt.h tree.h varasm.h wide-int.h.
30237         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
30238         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
30239         statistics.h stmt.h tree.h varasm.h wide-int.h.
30240         * combine-stack-adj.c: Likewise.
30241         * cse.c: Likewise.
30242         * ddg.c: Likewise.
30243         * ifcvt.c: Likewise.
30244         * ira-costs.c: Likewise.
30245         * jump.c: Likewise.
30246         * lra-coalesce.c: Likewise.
30247         * lra-spills.c: Likewise.
30248         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
30249         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
30250         stmt.h varasm.h wide-int.h.
30251         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
30252         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
30253         varasm.h.
30254         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
30255         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
30256         statistics.h stmt.h varasm.h wide-int.h.
30257         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
30258         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
30259         varasm.h wide-int.h.
30260         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
30261         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
30262         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
30263         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
30264         statistics.h stmt.h.
30265         * config/tilepro/tilepro.c: Likewise.
30266         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
30267         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
30268         * config/pdp11/pdp11.c: Likewise.
30269         * config/xtensa/xtensa.c: Likewise.
30270         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
30271         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
30272         varasm.h.
30273         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30274         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
30275         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
30276         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30277         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
30278         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
30279         * rtl-chkp.c: Likewise.
30280         * tree-chkp-opt.c: Likewise.
30281         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
30282         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
30283         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
30284         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30285         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
30286         statistics.h stmt.h.
30287         * tree-vect-data-refs.c: Likewise.
30288         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
30289         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
30290         rtl.h statistics.h stmt.h varasm.h.
30291         * internal-fn.c: Likewise.
30292         * ipa-icf-gimple.c: Likewise.
30293         * lto-section-out.c: Likewise.
30294         * tree-data-ref.c: Likewise.
30295         * tree-nested.c: Likewise.
30296         * tree-outof-ssa.c: Likewise.
30297         * tree-predcom.c: Likewise.
30298         * tree-pretty-print.c: Likewise.
30299         * tree-scalar-evolution.c: Likewise.
30300         * tree-ssa-strlen.c: Likewise.
30301         * tree-vect-loop.c: Likewise.
30302         * tree-vect-patterns.c: Likewise.
30303         * tree-vect-slp.c: Likewise.
30304         * tree-vect-stmts.c: Likewise.
30305         * tsan.c: Likewise.
30306         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30307         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
30308         stmt.h.
30309         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
30310         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
30311         statistics.h stmt.h varasm.h.
30312         * loop-unroll.c: Likewise.
30313         * ubsan.c: Likewise.
30314         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
30315         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
30316         stmt.h varasm.h.
30317         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30318         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
30319         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
30320         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
30321         statistics.h stmt.h.
30322         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
30323         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
30324         statistics.h stmt.h varasm.h.
30325         * gimple-match-head.c: Likewise.
30326         * lto-cgraph.c: Likewise.
30327         * lto-section-in.c: Likewise.
30328         * lto-streamer-in.c: Likewise.
30329         * lto-streamer-out.c: Likewise.
30330         * tree-affine.c: Likewise.
30331         * tree-cfg.c: Likewise.
30332         * tree-cfgcleanup.c: Likewise.
30333         * tree-if-conv.c: Likewise.
30334         * tree-into-ssa.c: Likewise.
30335         * tree-ssa-alias.c: Likewise.
30336         * tree-ssa-copyrename.c: Likewise.
30337         * tree-ssa-dse.c: Likewise.
30338         * tree-ssa-forwprop.c: Likewise.
30339         * tree-ssa-live.c: Likewise.
30340         * tree-ssa-math-opts.c: Likewise.
30341         * tree-ssa-pre.c: Likewise.
30342         * tree-ssa-sccvn.c: Likewise.
30343         * tree-tailcall.c: Likewise.
30344         * tree-vect-generic.c: Likewise.
30345         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30346         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
30347         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30348         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
30349         * varasm.c: Likewise.
30350         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30351         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
30352         varasm.h.
30353         * init-regs.c: Likewise.
30354         * ira.c: Likewise.
30355         * omp-low.c: Likewise.
30356         * stack-ptr-mod.c: Likewise.
30357         * tree-ssa-reassoc.c: Likewise.
30358         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30359         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
30360         varasm.h.
30361         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30362         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
30363         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30364         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
30365         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30366         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
30367         * tree-ssa-phiopt.c: Likewise.
30368         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30369         fixed-value.h hashtab.h real.h statistics.h stmt.h.
30370         * config/fr30/fr30.c: Likewise.
30371         * config/frv/frv.c: Likewise.
30372         * expr.c: Likewise.
30373         * final.c: Likewise.
30374         * optabs.c: Likewise.
30375         * passes.c: Likewise.
30376         * simplify-rtx.c: Likewise.
30377         * stmt.c: Likewise.
30378         * toplev.c: Likewise.
30379         * var-tracking.c: Likewise.
30380         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30381         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
30382         * lower-subreg.c: Likewise.
30383         * postreload-gcse.c: Likewise.
30384         * ree.c: Likewise.
30385         * reginfo.c: Likewise.
30386         * store-motion.c: Likewise.
30387         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30388         fixed-value.h hashtab.h real.h stmt.h varasm.h.
30389         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30390         fixed-value.h hashtab.h statistics.h stmt.h.
30391         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30392         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
30393         * except.c: Likewise.
30394         * explow.c: Likewise.
30395         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30396         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
30397         varasm.h.
30398         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30399         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
30400         * tree-ssa-structalias.c: Likewise.
30401         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30402         fixed-value.h insn-config.h real.h statistics.h.
30403         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30404         fixed-value.h insn-config.h real.h statistics.h stmt.h.
30405         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30406         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
30407         * cfgbuild.c: Likewise.
30408         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30409         fixed-value.h real.h rtl.h statistics.h stmt.h.
30410         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30411         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
30412         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30413         fixed-value.h real.h statistics.h stmt.h.
30414         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30415         fixed-value.h real.h statistics.h stmt.h varasm.h.
30416         * cprop.c: Likewise.
30417         * modulo-sched.c: Likewise.
30418         * postreload.c: Likewise.
30419         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
30420         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
30421         statistics.h stmt.h varasm.h.
30422         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
30423         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
30424         rtl.h statistics.h stmt.h varasm.h.
30425         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
30426         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
30427         varasm.h.
30428         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
30429         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
30430         varasm.h.
30431         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
30432         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
30433         varasm.h.
30434         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
30435         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
30436         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
30437         function.h real.h statistics.h stmt.h varasm.h.
30438         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
30439         insn-config.h real.h statistics.h stmt.h.
30440         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
30441         statistics.h stmt.h.
30442         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
30443         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
30444         statistics.h stmt.h varasm.h.
30445         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
30446         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
30447         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
30448         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
30449         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
30450         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
30451         statistics.h stmt.h varasm.h.
30452         * ipa-polymorphic-call.c: Likewise.
30453         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
30454         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
30455         statistics.h stmt.h.
30456         * config/c6x/c6x.c: Likewise.
30457         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
30458         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
30459         statistics.h stmt.h varasm.h.
30460         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
30461         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
30462         stmt.h varasm.h.
30463         * ipa-split.c: Likewise.
30464         * tree-eh.c: Likewise.
30465         * tree-ssa-dce.c: Likewise.
30466         * tree-ssa-loop-niter.c: Likewise.
30467         * tree-vrp.c: Likewise.
30468         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
30469         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
30470         stmt.h.
30471         * config/nds32/nds32-fp-as-gp.c: Likewise.
30472         * config/nds32/nds32-intrinsic.c: Likewise.
30473         * config/nds32/nds32-isr.c: Likewise.
30474         * config/nds32/nds32-md-auxiliary.c: Likewise.
30475         * config/nds32/nds32-memory-manipulation.c: Likewise.
30476         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
30477         * config/nds32/nds32-predicates.c: Likewise.
30478         * config/nds32/nds32.c: Likewise.
30479         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
30480         fixed-value.h hashtab.h real.h statistics.h.
30481         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
30482         fixed-value.h hashtab.h real.h statistics.h stmt.h.
30483         * config/arm/arm.c: Likewise.
30484         * config/avr/avr.c: Likewise.
30485         * config/bfin/bfin.c: Likewise.
30486         * config/h8300/h8300.c: Likewise.
30487         * config/i386/i386.c: Likewise.
30488         * config/ia64/ia64.c: Likewise.
30489         * config/iq2000/iq2000.c: Likewise.
30490         * config/m32c/m32c.c: Likewise.
30491         * config/m32r/m32r.c: Likewise.
30492         * config/m68k/m68k.c: Likewise.
30493         * config/mcore/mcore.c: Likewise.
30494         * config/mep/mep.c: Likewise.
30495         * config/mips/mips.c: Likewise.
30496         * config/mn10300/mn10300.c: Likewise.
30497         * config/moxie/moxie.c: Likewise.
30498         * config/pa/pa.c: Likewise.
30499         * config/rl78/rl78.c: Likewise.
30500         * config/rx/rx.c: Likewise.
30501         * config/s390/s390.c: Likewise.
30502         * config/sh/sh.c: Likewise.
30503         * config/sparc/sparc.c: Likewise.
30504         * config/spu/spu.c: Likewise.
30505         * config/stormy16/stormy16.c: Likewise.
30506         * config/v850/v850.c: Likewise.
30507         * config/vax/vax.c: Likewise.
30508         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
30509         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
30510         * config/msp430/msp430.c: Likewise.
30511         * predict.c: Likewise.
30512         * value-prof.c: Likewise.
30513         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
30514         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
30515         * config/microblaze/microblaze.c: Likewise.
30516         * config/nios2/nios2.c: Likewise.
30517         * config/rs6000/rs6000.c: Likewise.
30518         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
30519         insn-config.h real.h rtl.h statistics.h stmt.h.
30520         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
30521         insn-config.h real.h statistics.h stmt.h.
30522         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
30523         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
30524         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
30525         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
30526         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
30527         fixed-value.h real.h statistics.h stmt.h.
30528         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
30529         fixed-value.h statistics.h stmt.h.
30530         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
30531         stmt.h.
30533 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
30535         * gengtype.c (create_user_defined_type): Workaround
30536         -Wmaybe-uninitialized false positives.
30537         * cse.c (fold_rtx): Likewise.
30538         * loop-invariant.c (gain_for_invariant): Likewise.
30540 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
30542         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
30543         set the memory attributes in all cases but clear MEM_EXPR if need be.
30545 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
30547         PR tree-optimization/64434
30548         * cfgexpand.c (reorder_operands): New function.
30549         (expand_gimple_basic_block): Insert call of reorder_operands if
30550         optimized is true.
30552 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
30554         * config/mips/micromips.md (*swp): Remove explicit parallel.
30555         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
30556         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
30557         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
30558         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
30559         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
30560         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
30561         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
30562         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
30563         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
30564         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
30565         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
30566         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
30567         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
30568         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
30569         (mips_wrdsp): Likewise.
30570         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
30571         parallel.
30572         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
30573         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
30574         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
30575         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
30576         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
30577         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
30578         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
30579         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
30580         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
30582 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
30584         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
30585         (mips_print_operand): Support 'y' to print exact log2 in decimal
30586         of a const_int.
30587         * config/mips/mips.h (ISA_HAS_LSA): New define.
30588         (ISA_HAS_DLSA): Likewise.
30589         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
30590         * config/mips/predicates.md (const_immlsa_operand): New predicate.
30592 2015-01-15  Martin Liska  <mliska@suse.cz>
30594         PR target/64377
30595         * optc-save-gen.awk: Add support for array types.
30597 2015-01-15  Richard Biener  <rguenther@suse.de>
30599         PR middle-end/64365
30600         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
30601         for MEM_REF access functions with the same base can never partially
30602         overlap.
30604 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
30606         * common.opt: New option -fstack-protector-explicit.
30607         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
30608         (stack_protect_decl_phase): Handle stack_protect attribute for
30609         explicit stack protection requests.
30610         (expand_used_vars): Similarly.
30611         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
30612         * doc/extend.texi: Add documentation for "stack_protect" attribute.
30613         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
30615 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
30617         PR target/53988
30618         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
30619         reg-reg copies.
30620         (sh_extending_set_of_reg): New struct.
30621         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
30622         sh_remove_reg_dead_or_unused_notes): New Declarations.
30623         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
30624         sh_find_extending_set_of_reg, sh_split_tst_subregs,
30625         sh_extending_set_of_reg::use_as_extended_reg): New functions.
30626         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
30627         convert to insn_and_split and use new function sh_split_tst_subregs.
30629 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
30631         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
30632         option.
30633         (Optimization Options): Move -fuse-ld documentation to...
30634         (Link Options): ...here.
30636 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
30638         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
30639         offsets.
30640         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
30641         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
30642         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
30643         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
30644         instead of ZR for the memory operand of LL/SC.
30645         (compare_and_swap_12, sync_add<mode>): Likewise.
30646         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
30647         (sync_new_<optab>_12, sync_nand_12): Likewise.
30648         (sync_old_nand_12, sync_new_nand_12): Likewise.
30649         (sync_sub<mode>, sync_old_add<mode>): Likewise.
30650         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
30651         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
30652         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
30653         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
30654         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
30655         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
30656         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
30657         * doc/md.texi (ZC): Update description.
30659 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
30661         * builtins.c (expand_builtin_atomic_exchange): Remove error when
30662         memory model is CONSUME.
30663         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
30664         expand_builtin_atomic_store): Change invalid memory model errors to
30665         warnings.
30666         (expand_builtin_atomic_clear): Change invalid model errors to warnings
30667         and issue warning for CONSUME.
30669 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
30671         * lto-cgraph: Update function comments for
30672         lto_symtab_encoder_encode_*.
30674 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
30676         * Makefile.in (site.exp): Do not set ENABLE_LTO.
30678 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
30680         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
30681         * lto-cgraph.c (select_what_to_stream): Remove argument, use
30682         lto_stream_offload_p instead.
30683         * lto-streamer.h (select_what_to_stream): Remove argument.
30684         * passes.c (ipa_write_summaries): Likewise.
30685         * tree-pass.h (ipa_write_summaries): Likewise.
30687 2015-01-14  Richard Biener  <rguenther@suse.de>
30689         PR tree-optimization/59354
30690         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
30691         groups larger than the slp group size as having gaps.
30693 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
30695         PR middle-end/59448
30696         * builtins.c (get_memmodel): Promote consume to acquire always.
30698 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
30700         PR target/64386
30701         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
30702         V32HImode.
30704 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
30706         PR target/64393
30707         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
30708         Enable AVX512BW.
30709         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
30710         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
30711         AVX512VBMI, as it implies AVX512BW.
30713 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
30715         PR target/64387
30716         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
30717         (vec_unpacks_hi_v16sf): Ditto.
30719 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30721         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
30722         is not available.
30724 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30726         * doc/invoke.texi (mapcs): Mention deprecation.
30727         (mapcs-frame): Likewise.
30729 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30731         PR target/64453
30732         * config/arm/arm.c (callee_saved_reg_p): Define.
30733         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
30734         register is callee saved instead of !call_used_regs[reg].
30735         (thumb1_compute_save_reg_mask): Likewise.
30737 2015-01-14  Hale Wang  <hale.wang@arm.com>
30739         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
30740         Cortex-M7.
30742 2015-01-14  Richard Biener  <rguenther@suse.de>
30744         PR lto/64415
30745         * tree-inline.c (insert_debug_decl_map): Check destination
30746         function MAY_HAVE_DEBUG_STMTS.
30747         (insert_init_debug_bind): Likewise.
30748         (insert_init_stmt): Remove redundant check.
30749         (remap_gimple_stmt): Drop debug stmts if the destination
30750         function has var-tracking assignments disabled.
30752 2015-01-14  Martin Liska  <mliska@suse.cz>
30754         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
30755         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
30757 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30759         PR target/64460
30760         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
30761         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
30763 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
30765         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
30766         level from an ARCH; do not inject the default.
30767         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
30768         MIPS_ISA_LEVEL_SPEC.
30769         (MIPS_ISA_NAN2008_SPEC): Update comment.
30770         (BASE_DRIVER_SELF_SPECS): Likewise.
30771         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
30772         MIPS_DEFAULT_ISA_LEVEL_SPEC.
30773         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
30774         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
30775         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
30777 2015-01-14  Richard Biener  <rguenther@suse.de>
30779         PR tree-optimization/64493
30780         PR tree-optimization/64495
30781         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
30782         assign the proper vectorized PHI to the inner loop exit PHIs.
30784 2015-01-14  Joey Ye  <joey.ye@arm.com>
30786         * config/arm/arm.c (arm_compute_save_reg_mask):
30787         Do not save lr in case of tail call.
30788         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
30790 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
30792         * tree-vrp.c (check_array_ref): Emit more warnings
30793         for warn_array_bounds >= 2.
30794         * common.opt: New option -Warray-bounds=.
30795         * doc/invoke.texi: Document -Warray-bounds=.
30797 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
30799         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
30800         (mforbid-fp-as-gp): Remove.
30801         (mex9): Remove.
30802         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
30803         (nds32_symbol_load_store_p): Remove.
30804         (nds32_fp_as_gp_check_available): Clean up implementation.
30805         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
30806         cases.
30807         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
30808         fp-as-gp and ex9 cases.
30810 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
30812         * tree-profile.c (init_ic_make_global_vars): Drop workaround
30813         for bintuils bug 14342.
30814         (init_ic_make_global_vars): Likewise.
30815         (gimple_init_edge_profiler): Likewise.
30816         (gimple_gen_ic_func_profiler): Likewise.
30818 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30820         * ipa-inline.c (inline_small_functions): Swap the operands in
30821         enum.
30823 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
30825         PR ipa/64481
30826         * ipa-inline-analysis.c (node_growth_cache): Remove.
30827         (initialize_growth_caches): Do not initialize it.
30828         (free_growth_caches): Do not free it.
30829         (do_estimate_growth): Rename to ...
30830         (estimate_growth): ... this one; drop growth cache code.
30831         (growth_likely_positive): Always go the heuristics way.
30832         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
30833         (reset_edge_caches): Do not reset node growth.
30834         (heap_edge_removal_hook): Do not maintain cache.
30835         (inline_small_functions): Likewise; strenghten sanity check.
30836         (ipa_inline): Do not maintain caches.
30837         * ipa-inline.h (node_growth_cache): Remove.
30838         (do_estimate_growth): Remove to ...
30839         (estimate_growth): this one; remove inline version.
30840         (reset_node_growth_cache): Remove.
30842 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
30844         PR ipa/64565
30845         * ipa-inline.c (inline_small_functions): Update callee keys after
30846         resolving speculation
30847         (inline_small_functions): Always check monotonicity of the queue.
30849 2015-01-13  Marek Polacek  <polacek@redhat.com>
30851         PR middle-end/64391
30852         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
30854 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
30856         PR rtl-optimization/64286
30857         * ree.c (combine_reaching_defs): Move part of comment earlier,
30858         remove !SCALAR_INT_MODE_P check.
30859         (add_removable_extension): Don't add vector mode
30860         extensions if all uses of the source register aren't the same
30861         vector extensions.
30863 2015-01-13  Renlin Li  <renlin.li@arm.com>
30865         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
30866         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
30868 2015-01-13  Martin Liska  <mliska@suse.cz>
30870         * ipa-icf.c (sem_function::equals_private): Call new functions
30871         cl_target_option_print_diff and cl_optimization_print_diff.
30872         * optc-save-gen.awk (cl_target_option_print_diff): New function.
30873         (cl_optimization_print_diff): Likewise.
30874         * opth-gen.awk: Likewise.
30876 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
30878         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
30879         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
30880         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
30881         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
30882         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
30883         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
30885 2015-01-13  Andrew Pinski  <apinski@cavium.com>
30887         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
30888         instead of src mode.
30890 2015-01-13  Richard Biener  <rguenther@suse.de>
30892         PR lto/64373
30893         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
30894         DECL_CONTEXT.
30896 2015-01-13  Andrew Pinski  <apinski@cavium.com>
30898         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
30899         volatile mems.
30900         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
30902 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
30904         PR middle-end/63974
30905         * cfgexpand.c (expand_computed_goto): Don't call
30906         convert_memory_address here.
30908 2015-01-13  Richard Biener  <rguenther@suse.de>
30910         PR tree-optimization/64406
30911         * tree-loop-distibution.c (pass_loop_distribution::execute):
30912         Reset the SCEV hashtable if we distributed anything.
30914 2015-01-13  Richard Biener  <rguenther@suse.de>
30916         PR tree-optimization/64404
30917         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
30918         SLP types for CSEd loads.
30920 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30922         PR tree-optimization/64436
30923         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
30924         merge of two symbolic numbers for a bitwise OR to ...
30925         (perform_symbolic_merge): This. Also fix computation of the range and
30926         end of the symbolic number corresponding to the result of a bitwise OR.
30928 2015-01-13  Richard Biener  <rguenther@suse.de>
30930         PR tree-optimization/64568
30931         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
30932         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
30934 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
30936         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
30937         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
30939 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
30941         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
30942         target-specific symbol_ref flag.
30943         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
30944         resides in rodata section.
30945         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
30946         (nds32_encode_section_info): New function.
30948 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
30950         * config/nds32/nds32.md (call): Use pseudo instruction bal which
30951         clobbers TA_REGNUM if large code model is specified.
30952         (call_register): Likewise.
30953         (call_immediate): Likewise.
30954         (call_value): Likewise.
30955         (call_value_register): Likewise.
30956         (call_value_immediate): Likewise.
30958 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
30960         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
30961         (TARGET_CMODEL_MEDIUM): New macro.
30962         (TARGET_CMODEL_LARGE): New macro.
30963         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
30964         code model setting in assembly code.
30966 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
30968         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
30969         Remove MASK_GP_DIRECT flag.
30970         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
30971         one of the multilib default options.
30972         * config/nds32/nds32.opt (mgp-direct): Remove.
30973         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
30974         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
30976 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
30978         * config/nds32/nds32.opt (mcmodel): Add new option.
30979         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
30980         to describe code model.
30982 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
30984         PR target/64479
30985         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
30987 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
30989         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
30990         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
30991         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
30992         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
30993         __builtin_sh_set_fpscr.
30995 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
30997         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
30998         after a funtion name just to indicate it is a function.
30999         ([-fsanitize-undefined-trap-on-error]): Likewise.
31000         ([-fdbg-cnt=]): Likewise.
31001         ([-mmemcpy]): Likewise.
31002         ([-mflush-func]): Likewise.
31003         ([-msynci]): Likewise.
31005 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
31007         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
31008         example.
31010 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
31012         PR tree-optimization/64563
31013         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
31014         instead of != VR_VARYING.
31016         PR target/64513
31017         * config/i386/i386.c (ix86_expand_prologue): Add
31018         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
31020         PR tree-optimization/64454
31021         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
31022         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
31023         for signed or [0, op1 - 1] for unsigned modulo.
31024         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
31025         even if op1 does not satisfy integer_pow2p.
31027         PR other/64370
31028         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
31030 2015-01-12  Jeff Law  <law@redhat.com>
31032         PR target/64461
31033         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
31034         (trunchiqi2, truncsihi2): Similarly.
31036         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
31037         rather than calling F.
31039 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31041         * tsan.c (instrument_expr): Use force_gimple_operand.
31042         Use may_be_nonaddressable_p instead of is_gimple_addressable.
31044 2015-01-12  Richard Biener  <rguenther@suse.de>
31046         PR tree-optimization/64530
31047         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
31048         back dr1.
31050 2015-01-12  Richard Biener  <rguenther@suse.de>
31052         PR middle-end/64357
31053         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
31054         latches properly.
31056 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31058         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
31059         Cortex-A17 tuning parameters.
31060         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
31062 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31064         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
31065         * config/arm/arm.c (arm_macro_fusion_p): New function.
31066         (arm_macro_fusion_pair_p): Likewise.
31067         (TARGET_SCHED_MACRO_FUSION_P): Define.
31068         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
31069         (ARM_FUSE_NOTHING): Likewise.
31070         (ARM_FUSE_MOVW_MOVT): Likewise.
31071         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
31072         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
31073         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
31074         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
31075         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
31076         arm_cortex_a5_tune): Specify fuseable_ops value.
31078 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
31080         PR bootstrap/64561
31081         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
31082         test for PIE with copy reloc.
31083         * configure: Regenerated.
31085 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31087         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
31088         in gen_rtx_REG.
31089         (arm_tls_descseq_addr): Likewise.
31090         (arm_gen_movmemqi): Likewise.
31091         (arm_expand_epilogue_apcs_frame): Likewise.
31092         (arm_expand_epilogue): Likewise.
31093         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
31094         in gen_rtx_REG.
31096 2015-01-12  Martin Liska  <mliska@suse.cz>
31098         PR ipa/64550
31099         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
31100         volatility for correct operands.
31102 2015-01-12  Martin Liska  <mliska@suse.cz>
31104         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
31105         indication that a function is not leaf.
31106         (sem_function::compare_polymorphic_p): Likewise.
31108 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
31110         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
31111         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
31112         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
31113         fold-const.h, tree-check.h.
31115 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
31117         PR ipa/63967
31118         PR ipa/64425
31119         * ipa-inline.c (compute_uninlined_call_time,
31120         compute_inlined_call_time): Use counts for extra precision when
31121         needed possible.
31122         (big_speedup_p): Fix formating.
31123         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
31124         (relative_time_benefit): Remove.
31125         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
31126         merge guessed and read profile paths.
31127         (inline_small_functions): Count only !optimize_size functions into
31128         initial size; be more lax about sanity check when profile is used;
31129         be sure to update inlined function profile when profile is read.
31131 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
31133         PR ipa/63470
31134         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
31135         cost when edge becomes direct.
31136         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
31137         is resolved or when introducing new speculation.
31139 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
31141         PR ipa/64551
31142         PR ipa/64552
31143         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
31144         '||' to fix typo issue.
31146         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
31147         accept and return NULL.
31149 2015-01-12  Martin Liska  <mliska@suse.cz>
31151         * cgraph.c (cgraph_edge::remove_callee): Move function to header
31152         file for being inlined.
31153         (cgraph_set_edge_callee): Delete.
31154         (cgraph_edge::redirect_callee): Move function to header file
31155         for being inlined.
31156         (cgraph_edge::make_direct): Use new function.
31157         (cgraph_edge::dump_edge_flags): New function created from
31158         static dump_edge_flags function.
31159         (cgraph_node::dump): Use new function.
31160         (cgraph_edge::verify_count_and_frequency): New function created
31161         from verify_edge_count_and_frequency.
31162         (cgraph_edge::verify_corresponds_to_fndecl): New function created
31163         from verify_edge_corresponds_to_fndecl.
31164         (verify_edge_corresponds_to_fndecl): Delete.
31165         (cgraph_node::verify_node): Use new function.
31166         * cgraph.h (cgraph_edge::set_callee): New function.
31167         (cgraph_edge::dump_edge_flags): Likewise.
31168         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
31170 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
31172         * ipa-utils.c (estimate_function_body_sizes): Do not
31173         free node params when called late with early=true.
31175 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
31177         * doc/md.texi (Instruction Patterns): Rewrite text for
31178         clarity.
31179         (Example): Likewise.
31181 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
31183         * doc/invoke.texi (Option Summary): Break long lines.
31184         [(-fdiagnostics-color)]: Put long literal in @smallexample
31185         instead of inline.
31186         [(-fsanitize-recover)]: Likewise.
31187         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
31188         [(-ffast-math)]: Likewise.
31189         [(--param max-inline-insns-recursive)]: Likewise.
31190         [(--param max-inline-recursive-depth)]: Likewise.
31191         [(-mno-text-section-literals)]: Likewise.
31193 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
31195         * doc/install.texi: Update for libgomp being renamed from "GNU
31196         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
31197         Runtime Library".
31198         * doc/sourcebuild.texi: Likewise.
31200 2015-01-10  Anthony Green  <green@moxielogic.com>
31202         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
31203         mul.x availability for moxiebox configuration.
31205 2015-01-09  Anthony Green  <green@moxielogic.com>
31207         * config/moxie/moxie.md: Tabify assembly output.
31209 2015-01-09  Anthony Green  <green@moxielogic.com>
31211         * config/moxie/moxie.md (CC_REG): Correct register definition.
31213 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
31215         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
31216         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
31217         of log files.
31219 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
31221         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
31223 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
31224             Jakub Jelinek  <jakub@redhat.com>
31226         PR middle-end/64412
31227         * lto-streamer.h (lto_stream_offload_p): New declaration.
31228         * lto-streamer.c (lto_stream_offload_p): New variable.
31229         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
31230         at the same time as section_name_prefix.
31231         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
31232         if lto_stream_offload_p.
31233         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
31234         stream TREE_TARGET_OPTION if lto_stream_offload_p.
31235         (write_ts_function_decl_tree_pointers): Don't
31236         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
31237         * tree-streamer-in.c (unpack_value_fields): Don't stream
31238         TREE_TARGET_OPTION in if ACCEL_COMPILER.
31239         (lto_input_ts_function_decl_tree_pointers): Don't stream
31240         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
31241         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
31242         instead of section_name_prefix string comparisons.
31244 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
31246         PR rtl-optimization/64536
31247         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
31248         tablejumps.
31250 2015-01-09  Michael Collison  <michael.collison@linaro.org>
31252         PR tree-optimization/64322
31253         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
31254         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
31256 2015-01-09  Tom de Vries  <tom@codesourcery.com>
31258         PR rtl-optimization/64539
31259         * regcprop.c (kill_clobbered_values): Factor out of ...
31260         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
31261         instead of note_stores with kill_clobbered_value.
31263 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
31265          * ginclude/unwind-arm-common.h: Revert previous commit.
31267 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
31269         * config.gcc (arm*-*-freebsd*): New configuration.
31270         * config/arm/freebsd.h: New file.
31271         * config.host: Add extra components for arm*-*-freebsd*.
31272         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
31273         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
31275 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
31277         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
31278         for -mcpu=e6500.
31279         * config/rs6000/t-rtems: Add e6500 multilibs.
31281 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
31283         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
31284         MPC8540.
31286 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
31288         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
31289         MULTILIB_EXCEPTIONS.
31291 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
31293         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
31294         MULTILIB_EXCEPTIONS.
31296 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
31298         * config/arm/t-rtems-eabi: Rename to...
31299         * config/arm/t-rtems: ...this.
31300         * config/arm/rtems-eabi.h: Rename to...
31301         * config/arm/rtems.h: ...this.
31302         * config.gcc (arm*-*-rtems*): Reflect changes above.
31304 2015-01-09  Richard Biener  <rguenther@suse.de>
31306         PR tree-optimization/64410
31307         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
31308         on the LHS.
31309         (execute_update_addresses_taken): Deal with that.
31310         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
31311         loads/stores for complex variables.
31313 2015-01-09  Martin Liska  <mliska@suse.cz>
31315         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
31316         name comparison.
31317         (func_checker::compare_memory_operand): New function.
31318         (func_checker::compare_operand): Split case to newly
31319         added functions.
31320         (func_checker::compare_cst_or_decl): New function.
31321         (func_checker::compare_gimple_call): Identify
31322         memory operands.
31323         (func_checker::compare_gimple_assign): Likewise.
31324         * ipa-icf-gimple.h: New function.
31326 2015-01-09  Martin Liska  <mliska@suse.cz>
31328         PR ipa/64503
31329         * sreal.c (sreal::dump): Change unsigned format to signed for
31330         m_exp value.
31331         (sreal::to_double): Replace exp2 with scalbln.
31333 2015-01-09  Martin Liska  <mliska@suse.cz>
31335         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
31336         * ipa-icf.c (sem_function::equals_private): Add support for target and
31337         (sem_item_optimizer::merge_classes): Remove redundant function
31338         optimization flags comparison.
31339         * tree.h (target_opts_for_fn): New function.
31341 2015-01-09  Tom de Vries  <tom@codesourcery.com>
31343         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
31345 2015-01-09  Kito Cheng  <kito@0xlab.org>
31347         PR rtl-optimization/64348
31348         * lra-constraints.c (split_reg): Fix caller-save store/restore
31349         instruction generation.
31351 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
31353         PR gcov-profile/61790
31354         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
31355         long long.  Fallback to int64_t if host doesn't have long long and
31356         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
31358 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
31360         PR tree-optimization/63989
31361         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
31362         from 1000 to 10000.
31363         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
31364         (get_stridx): If we don't have a record for certain SSA_NAME,
31365         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
31366         constant offset, call get_stridx_plus_constant.
31367         (get_stridx_plus_constant): New function.
31368         (zero_length_string): Don't use get_stridx here.
31370         PR target/55023
31371         PR middle-end/64388
31372         * dse.c (struct insn_info): Mention frame_read set also
31373         before reload for tail calls on some targets.
31374         (scan_insn): Revert 2014-12-22 change.  Set frame_read
31375         also before reload for tail calls if
31376         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
31377         instead of add_non_frame_wild_read for non-const/memset
31378         tail calls after reload.
31380 2015-01-08  Jason Merrill  <jason@redhat.com>
31382         * ubsan.c (do_ubsan_in_current_function): New.
31383         (pass_ubsan::gate): Use it.
31384         * ubsan.h: Declare it.
31385         * convert.c (convert_to_integer): Use it.
31387 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
31389         PR target/64338
31390         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
31391         compare_code when it is unconditionally overwritten afterwards.
31392         Use ix86_reverse_condition instead of reverse_condition.  Don't
31393         change code if *reverse_condition* returned UNKNOWN and don't
31394         swap ct/cf and negate diff in that case.
31396 2015-01-08  Mike Stump  <mikestump@comcast.net>
31398         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
31399         (pass_tsan_O0::gate): Likewise.
31400         * extend.texi (Function Attributes): Add no_sanitize_thread
31401         documentation.
31403 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
31405         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
31406         for registering builtins.
31407         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
31408         add -fopenmp to the argv_obstack used when invoking
31409         compile_for_target.
31411         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
31412         add "-m32" or "-m64" to argv_obstack.
31413         (generate_host_descr_file): Likewise, when invoking host_compiler.
31414         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
31415         ld.
31417 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
31419         * config/sh/sh-mem.cc: Use constant as second operand when emitting
31420         tstsi_t insns.
31422 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
31424         PR target/55212
31425         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
31426         constant load if constant operand fits into I08.
31428 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
31430         PR sanitizer/64336
31431         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
31432         and TREE_THIS_VOLATILE for MEM_REFs.
31433         (build5_stat): Fix up initialization of TREE_READONLY and
31434         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
31436 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
31438         PR target/64533
31439         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
31440         of r for the second alternative of the destination operand.
31442 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
31444         PR target/36557
31445         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
31447 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
31449         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
31450         keywords.
31451         ([-fivar-visibility], [-fvisibility]): Likewise.
31453 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
31455         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
31456         the file where @code, @command, etc is more appropriate.
31458 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
31460         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
31461         of -mrecip= documentation.
31463 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
31465         PR target/64505
31466         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
31467         correct reload handler if -m32 -mpowerpc64 is used.
31469 2015-01-06  Tom de Vries  <tom@codesourcery.com>
31471         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
31473 2015-01-08  Christian Bruel  <christian.bruel@st.com>
31475         PR target/64507
31476         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
31478 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31480         PR tree-optimization/63259
31481         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
31482         if optab exists for 16bit byteswap.
31484 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
31486         * opts.c (common_handle_option): Add support for
31487         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
31488         * doc/invoke.texi: Document -fno-sanitize=all,
31489         -f{,no-}sanitize-recover=all.  Document that
31490         -fsanitize=float-cast-overflow is not enabled
31491         by -fsanitize=undefined.  Fix up documentation
31492         of -f{,no-}sanitize-recover.
31494 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
31496         * config.gcc: Add Visium support.
31497         * configure.ac: Likewise.
31498         * configure: Regenerate.
31499         * doc/extend.texi (interrupt attribute): Add Visium.
31500         * doc/invoke.texi: Document Visium options.
31501         * doc/install.texi: Document Visium target.
31502         * doc/md.texi: Document Visium constraints.
31503         * common/config/visium: New directory.
31504         * config/visium: Likewise.
31506 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
31508         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
31509         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
31511 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
31513         * combine.c (combine_validate_cost): Do not count the cost of a
31514         split I2 twice.  Do not display it twice in the dump, either.
31516 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
31518         Revert parts of r219199.
31519         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
31520         <inttypes.h>.
31521         ([-Wtraditional]): Restore markup on <limits.h>.
31523 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
31525         PR c++/31397
31526         * doc/invoke.texi: Document -Wsuggest-override.
31528 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
31530         PR rtl-optimization/64287
31531         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
31532         (process_options): Disable flag_ipa_ra if profiling.
31534 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
31536         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
31538 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
31540         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
31541         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
31542         put under #if TARGET_LOOPS guard.
31544 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
31546         * config/i386/i386.c (output_387_binary_op): Use std::swap.
31548 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
31550         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
31551         * rtl.h (refers_to_regno_p): Add overload.
31552         * cse.c: Use it.
31553         * bt-load.c: Likewise.
31554         * combine.c: Likewise.
31555         * df-scan.c: Likewise.
31556         * sched-deps.c: Likewise.
31557         * config/s390/s390.c: Likewise.
31558         * config/m32r/m32r.c: Likewise.
31559         * config/rs6000/spe.md: Likewise.
31560         * config/rs6000/rs6000.c: Likewise.
31561         * config/pa/pa.c: Likewise.
31562         * config/stormy16/stormy16.c: Likewise.
31563         * config/cris/cris.c: Likewise.
31564         * config/arc/arc.md: Likewise.
31565         * config/arc/arc.c: Likewise.
31566         * config/sh/sh.md: Likewise.
31567         * config/sh/sh.c: Likewise.
31568         * config/frv/frv.c: Likewise.
31570 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
31572         PR sanitizer/64265
31573         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
31574         call as cleanup of the whole body.
31575         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
31576         * tsan.c (replace_func_exit): New function.
31577         (instrument_func_exit): Moved earlier.
31578         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
31579         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
31580         been found.
31581         (tsan_pass): Don't call instrument_func_exit.
31582         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
31583         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
31584         inlining.
31586         PR sanitizer/64344
31587         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
31588         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
31589         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
31590         if the result is integer_zerop, return NULL_TREE.
31591         * convert.c (convert_to_integer): Pass expr as ARG.
31593         PR tree-optimization/64465
31594         * tree-inline.c (redirect_all_calls): During inlining
31595         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
31596         changed the stmt to a non-throwing call.
31598 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
31600         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
31601         etc markup throughout the file.
31603 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31605         Enable experimental TSAN support for Ada.
31606         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
31608 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
31610         PR tree-optimization/64494
31611         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
31612         clear SSA_NAME_ANTI_RANGE_P flag.
31614 2015-01-05  Marek Polacek  <polacek@redhat.com>
31616         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
31618 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
31620         Update copyright years.
31622         * gcc.c (process_command): Update copyright notice dates.
31623         * gcov-dump.c: Ditto.
31624         * gcov.c: Ditto.
31625         * doc/cpp.texi: Bump @copying's copyright year.
31626         * doc/cppinternals.texi: Ditto.
31627         * doc/gcc.texi: Ditto.
31628         * doc/gccint.texi: Ditto.
31629         * doc/gcov.texi: Ditto.
31630         * doc/install.texi: Ditto.
31631         * doc/invoke.texi: Ditto.
31633         * auto-profile.c, auto-profile.h: Fix up Copyright line.
31635 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
31637         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
31638         verb tense, etc.
31639         ([-fvtable-verify], [-fvtv-debug]): Likewise.
31640         ([-Wabi]): Likewise.
31641         ([-fmessage-length]): Likewise.
31642         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
31643         ([-Wno-discarded-qualifiers]): Likewise.
31644         ([-Wnodiscarded-array-qualifiers]): Likewise.
31645         ([-Wno-virtual-move-assign]): Likewise.
31646         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
31647         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
31648         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
31649         ([-fsanitize-undefined-trap-on-error]): Likewise.
31650         ([-floop-interchange]): Likewise.
31651         ([-ftree-coalesce-inlined-vars]): Likewise.
31652         ([-fvect-cost-model]): Likewise.
31653         ([-flto]): Likewise.
31654         ([--param]): Likewise.
31655         (Spec Files): Likewise.
31656         ([-mstrict-align]): Likewise.
31657         ([-mfix-cortex-a53-835769]): Likewise.
31658         ([-march], [-mtune]): Likewise.
31659         ([-mpic-register]): Likewise.
31660         ([-munaligned-access]): Likewise.
31661         ([-msp8]): Likewise.
31662         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
31663         (AVR Built-in Macros): Likewise.
31664         ([-mpreferred-stack-boundary]): Likewise.
31665         ([-mtune-crtl]): Likewise.
31666         ([-mashf]): Likewise.
31667         ([-mmcu=]): Likewise.
31668         ([-minrt]): Likewise.
31669         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
31670         ([-mupper-regs]): Likewise.
31671         ([-matomic-model]): Likewise.
31672         ([-mdiv]): Likewise.
31673         ([-mzdcbranch]): Likewise.
31674         ([-mdisable-callt]): Likewise.
31675         ([-msoft-float]): Likewise.
31676         ([-m8byte-align]): Likewise.
31677         ([-fstack-reuse]): Likewise.
31679 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
31681         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
31682         Fix markup, light copy-editing.
31683         ([-fauto-profile]): Rewrite to fix formatting and content
31684         problems.
31686 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
31688         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
31689         Copy-edit description.
31690         ([-fisolate-erroneous-paths-attribute]): Likewise.
31691         * common.opt (fisolate-erroneous-paths-dereference):
31692         Copy-edit description.
31693         (fisolate-erroneous-paths-attribute): Likewise.
31695 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
31697         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
31698         tidy grammar.
31700 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
31702         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
31703         ([-fvtv-debug]): Likewise.
31704         ([-Wc++-compat]): Likewise.
31705         ([-Wc++11-compat]): Likewise.
31706         ([-Wc++14-compat]): Likewise.
31707         ([-Wno-sized-deallocation]): Likewise.
31708         ([-femit-class-debug-always]): Likewise.
31709         ([-femit-struct-debug-detailed]): Likewise.
31710         ([-fno-keep-inline-dllexport]): Likewise.
31711         ([-fira-algorithm]): Likewise.
31712         ([-fira-region]): Likewise.
31713         ([-flra-remat]): Likewise.
31714         ([-fipa-ra]): Likewise.
31715         ([-fhoist-adjacent-loads]): Likewise.
31716         ([-fisolate-erroneous-paths-dereference]): Likewise.
31717         ([-fisolate-erroneous-paths-attribute]): Likewise.
31718         ([-ftree-switch-conversion]): Likewise.
31719         ([-ftree-tail-merge]): Likewise.
31720         ([-ftree-loop-if-convert]): Likewise.
31721         ([-ftree-loop-if-convert-stores]): Likewise.
31722         ([-ftree-loop-distribution]): Likewise.
31723         ([-ftree-loop-distribute-patterns]): Likewise.
31724         ([-flto-compression-level]): Likewise.
31725         ([-flto-report]): Likewise.
31726         ([-flto-report-wpa]): Likewise.
31727         ([-fuse-linker-plugin]): Likewise.
31728         ([-mfix-cortex-a53-835769]): Likewise.
31729         ([-mno-fix-cortex-a53-835769]): Likewise.
31730         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
31731         explicit listing; add a note to the discussion indicating they
31732         exist.  Reorder table to group similar options.  Add missing
31733         @opindex entries.  Add @need commands throughout the table to
31734         allow it to be split across multiple pages.
31735         ([-m8bit-idiv]): Fix @opindex.
31736         ([-mavx256-split-unaligned-load]): Likewise.
31737         ([-mavx256-split-unaligned-store]): Likewise.
31738         ([-mstack-protector-guard]): Likewise.
31739         ([-mcpu=]): Likewise.
31740         ([-mcpu]): Likewise.
31741         ([-mpointer-size=]): Likewise.
31743 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
31745         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
31746         instead of `m' constraint.  Likewise for unnamed movb comparison
31747         patterns using reg_before_reload_operand predicate.
31748         * config/pa/predicates.md (reg_before_reload_operand): Tighten
31749         predicate to reject register index and LO_SUM DLT memory forms
31750         after reload.
31752 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
31754         * doc/invoke.texi (Option Summary): Fix spelling of
31755         -fdevirtualize-at-ltrans.
31756         ([-fdevirtualize]): Fix markup.
31757         ([-fdevirtualize-speculatively]): Fix typo.
31758         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
31759         implementor-speaky.
31760         * common.opt (fdevirtualize-at-ltrans): Likewise.
31761         * ipa-devirt.c: Fix typos in comments throughout the file.
31762         (ipa_devirt): Fix typos in format strings for dump output.
31764 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
31766         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
31767         discussion of defaults, light copy-editing.
31769 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31771         * tsan.c (instrument_expr): corrected previous checkin.
31773 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31775         Instrument bit field and unaligned accesses for TSAN.
31776         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
31777         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
31778         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
31779         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
31780         unaligned memory regions.
31782 2015-01-01  Anthony Green  <green@moxielogic.com>
31784         * config/moxie/predicates.md (moxie_general_movsrc_operand):
31785         Restrict move source register offsets to 16 bits.
31787 Copyright (C) 2015 Free Software Foundation, Inc.
31789 Copying and distribution of this file, with or without modification,
31790 are permitted in any medium without royalty provided the copyright
31791 notice and this notice are preserved.