Allow indirect branch via GOT slot for x32
[official-gcc.git] / gcc / ChangeLog
blobe5fa370ad4c9cf65298cb06dd28072e0bbbbfbb5
1 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3         PR target/66232
4         * config/i386/constraints.md (Bg): New constraint for GOT memory
5         operand.
6         * config/i386/i386.md (*call_got_x32): New pattern.
7         (*call_value_got_x32): Likewise.
8         * config/i386/predicates.md (GOT_memory_operand): New predicate.
10 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
12         PR tree-optimization/66233
13         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
14         Simplify.
16 2015-05-21  Jeff Law  <law@redhat.com>
18         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
19         than MULT for shadd sequences.
21 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
23         * alias.c (alias_stats): New static var.        
24         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
25         (dump_alias_stats_in_alias_c): New function.
26         * alias.h (dump_alias_stats_in_alias_c): Declare.
27         * tree-ssa-alias.c (dump_alias_stats): Call it.
29 2015-05-08  Michael Matz  <matz@suse.de>
31         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
32         to strided_p.
33         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
34         (STMT_VINFO_STRIDED_P): ... this.
35         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
36         (vect_verify_datarefs_alignment): Likewise.
37         (vect_enhance_data_refs_alignment): Likewise.
38         (vect_analyze_data_ref_access): Likewise.
39         (vect_analyze_data_refs): Accept strided stores.
40         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
41         (vect_model_load_cost): Adjust for macro rename.
42         (vectorizable_mask_load_store): Likewise.
43         (vectorizable_load): Likewise.
44         (vectorizable_store): Open code strided stores.
46 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
48         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
49         Document sqrt_insn.
51 2015-05-21  Richard Biener  <rguenther@suse.de>
53         PR c++/66211
54         * match.pd: Guard pattern optimzing (int)(float)int
55         conversions to apply only on GIMPLE.
57 2015-05-21  Jeff Law  <law@redhat.com>
59         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
60         multiply-accumulate/shift-add insn generation.
62 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
64         PR target/54236
65         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
66         operands[1] are the same.
68 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
70         PR middle-end/66221
71         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
72         build_distinct_type_copy to copy bounds.
74 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
76         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
77         Change to unsigned int.
79 2015-05-20  Jeff Law  <law@redhat.com>
81         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
82         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
83         (pa_shadd_constant_p): Allow constants for shadd insns rather
84         than valid scaling constants for memory addresses.
85         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
86         * config/pa/predicates.md (mem_shadd_operand): New predicate.
87         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
88         (shift-add insns using ASHIFT): New patterns.
90 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
92         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
93         feasible.
94         (fix_up_fall_thru_edges): Likewise.
95         (fix_crossing_conditional_branches): Likewise. Promote jump targets
96         from to rtx_insn to rtx_code_label where feasible.
97         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
98         gen_move_insn (returned type changed to rtx_insn).
99         * builtins.c (expand_errno_check): Fix arguments of
100         do_compare_rtx_and_jump (now expects rtx_code_label).
101         (expand_builtin_acc_on_device): Likewise.
102         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
103         invert_jump (now exprects rtx_jump_insn).
104         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
105         (construct_init_block): Use rtx_code_label.
106         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
107         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
108         calling redirect_jump.
109         (patch_jump_insn): Likewise.
110         (redirect_branch_edge): Likewise.
111         (force_nonfallthru_and_redirect): Likewise.
112         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
113         when suitable.
114         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
115         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
116         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
117         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
118         to store the value retured by gen_label_rtx.
119         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
120         rtx_jump_insn.
121         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
122         (split_branches): Fix calls of redirect_jump.
123         * dojump.c (jumpifnot): Promote argument type from rtx to rtx_code_label.
124         (jumpifnot_1): Likewise.
125         (jumpif): Likewise.
126         (jumpif_1): Likewise.
127         (do_jump_1): Likewise.
128         (do_jump): Likewise. Use rtx_code_label when feasible.
129         (do_jump_by_parts_greater_rtx): Likewise.
130         (do_jump_by_parts_zero_rtx): Likewise.
131         (do_jump_by_parts_equality_rtx): Likewise.
132         (do_compare_rtx_and_jump): Likewise.
133         * dojump.h: Update function prototypes.
134         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
135         returns rtx_insn).
136         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
137         rtx_jump_insn.
138         (emit_label_before): Likewise.
139         (emit_jump_insn_after_noloc): Likewise.
140         (emit_jump_insn_after_setloc): Likewise.
141         (emit_jump_insn_after): Likewise
142         (emit_jump_insn_before_setloc): Likewise.
143         (emit_jump_insn_before): Likewise.
144         (emit_label_before): Promote return type to rtx_code_label.
145         (emit_label): Likewise.
146         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
147         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
148         gen_move_insn.
149         (emit_stack_restore): Likewise.
150         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
151         (do_cmp_and_jump): Likewise.
152         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
153         from rtx to rtx_code_label.
154         (gen_move_insn_uncast): New function.
155         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
156         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
157         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
158         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
159         invert_jump_1 and redirect_jump_1.
160         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
161         do_compare_rtx_and_jump.
162         (expand_addsub_overflow): Likewise.
163         (expand_neg_overflow): Likewise.
164         (expand_mul_overflow): Likewise.
165         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
166         return value of gen_move_insn.
167         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
168         * loop-doloop.c (add_test): Use rtx_code_label.
169         (doloop_modify): Likewise.
170         (doloop_optimize): Likewise.
171         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
172         * lra-constraints.c (emit_spill_move): Remove cast of value returned
173         by gen_move_insn.
174         (inherit_reload_reg): Add cast when calling dump_insn_slim.
175         (split_reg): Likewise.
176         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
177         gen_move_insn.
178         * optabs.c (expand_binop_directly): Remove casts of values returned by
179         maybe_gen_insn.
180         (expand_unop_direct): Likewise.
181         (expand_abs): Likewise.
182         (maybe_emit_unop_insn): Likewise.
183         (maybe_gen_insn): Promote return type to rtx_insn.
184         * optabs.h: Update prototype of maybe_gen_insn.
185         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
186         redundant cast.
187         * recog.c (struct peep2_insn_data): Promote type of insn field to
188         rtx_insn.
189         (peep2_reinit_state): Use NULL instead of NULL_RTX.
190         (peep2_attempt): Remove casts of insn in peep2_insn_data.
191         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
192         * recog.h (struct insn_gen_fn): Promote return types of function
193         pointers and operator ().from rtx to rtx_insn.
194         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
195         (fill_eager_delay_slots): Likewise.
196         (relax_delay_slots): Likewise.
197         (make_return_insns): Likewise.
198         (dbr_schedule): Likewise.
199         (optimize_skips): Likewise.
200         (reorg_redirect_jump): Likewise.
201         (fill_slots_from_thread): Likewise.
202         * reorg.h: Update prototypes.
203         * resource.c (find_dead_or_set_registers): Use dyn_cast to
204         rtx_jump_insn instead of check.  Use it's jump_target method.
205         * rtl.h (rtx_jump_insn::jump_label): Define new method.
206         (rtx_jump_insn::jump_target): Define new method.
207         (rtx_jump_insn::set_jump_target): Define new method.
208         * rtlanal.c (tablejump_p): Promote type of one local variable.
209         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
210         (sched_analyze_insn): Likewise.
211         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
212         (print_insn): Likewise.
213         * stmt.c (label_rtx): Promote return type to rtx_insn.
214         (force_label_rtx): Likewise.
215         (jump_target_rtx): Define new function.
216         (expand_label): Use it, get rid of one cast.
217         (expand_naked_return): Promote rtx to rtx_code_label.
218         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
219         (expand_case): Use rtx_code_label instread of rtx where feasible.
220         (expand_sjlj_dispatch_table): Likewise.
221         (emit_case_nodes): Likewise.
222         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
223         * store-motion.c (insert_store): Make use of new return type of
224         gen_move_insn and remove a cast.
225         (replace_store_insn): Likewise.
227 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
229         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
230         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
232 2015-05-20  Jeff Law  <law@redhat.com>
234         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
235         dispose of the jump thread path when the jump threading
236         opportunity is cancelled.
238 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
240         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
241         when printing the caret character.
243 2015-05-20  Marek Polacek  <polacek@redhat.com>
245         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
247 2015-05-20  Marek Polacek  <polacek@redhat.com>
249         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
250         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
251         * gimple-fold.c (canonicalize_bool): Likewise.
252         (same_bool_result_p): Likewise.
253         * tree-if-conv.c (parse_predicate): Likewise.
255 2015-05-20  Marek Polacek  <polacek@redhat.com>
257         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
258         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
260 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
262         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
263         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
264         values.
266 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
268         * config/mips/mips.h (micromips_globals): Declare.
270 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
272         * timevar.def (TV_INITIALIZE_RTL): New.
273         * toplev.c (initialize_rtl): Use an auto_timevar to account this
274         function's time to TV_INITIALIZE_RTL.
276 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
278         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
279         gimple_build_nop calls.
280         (chkp_find_bounds_for_elem): Likewise.
281         (chkp_get_zero_bounds): Likewise.
282         (chkp_get_none_bounds): Likewise.
283         (chkp_get_bounds_by_definition): Likewise.
284         (chkp_generate_extern_var_bounds): Likewise.
285         (chkp_get_bounds_for_decl_addr): Likewise.
286         (chkp_get_bounds_for_string_cst): Likewise.
288 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
290         PR tree-optimization/65447
291         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
292         (dump_use, dump_uses): Support to dump sub use.
293         (record_use): New parameters to support sub use.  Remove call to
294         dump_use.
295         (record_sub_use, record_group_use): New functions.
296         (compute_max_addr_offset, split_all_small_groups): New functions.
297         (group_address_uses, rewrite_use_address): New functions.
298         (strip_offset): New declaration.
299         (find_interesting_uses_address): Call record_group_use.
300         (add_candidate): New assertion.
301         (infinite_cost_p): Move definition forward.
302         (add_costs): Check INFTY cost and return immediately.
303         (get_computation_cost_at): Clear setup cost and dependent bitmap
304         for sub uses.
305         (determine_use_iv_cost_address): Compute cost for sub uses.
306         (rewrite_use_address_1): Rename from old rewrite_use_address.
307         (free_loop_data): Free sub uses.
308         (tree_ssa_iv_optimize_loop): Call group_address_uses.
310 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
311             Jim Wilson  <jim.wilson@linaro.org>
313         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
314         new  fields loadv and storev.
315         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
316         Initialize loadv and storev.
317         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
318         (cortexa53_extra_costs): Likewise.
319         (cortexa57_extra_costs): Likewise.
320         (xgene1_extra_costs): Likewise.
321         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
322         rtx_costs.
324 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
326         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
327          storev.
328         (cortexa8_extra_costs): Likewise.
329         (cortexa5_extra_costs): Likewise.
330         (cortexa7_extra_costs): Likewise.
331         (cortexa12_extra_costs): Likewise.
332         (cortexa15_extra_costs): Likewise.
333         (v7m_extra_costs): Likewise.
335 2015-05-20  Jeff Law  <law@redhat.com>
337         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
338         instead of open-coded version.  Also delete the jump thread created
339         within this function.
341 2015-05-20  Alan Modra  <amodra@gmail.com>
343         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
344         stack adjusting insn.  Formatting.
345         (rs6000_emit_prologue): Track stack adjusting insn, and use of
346         r12.  If possible, emit first -fsplit-stack arg pointer insn
347         before stack adjust.  Don't use r12 to save cr if split-stack.
349 2015-05-20  Alan Modra  <amodra@gmail.com>
351         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
352         Define.
353         (rs6000_supports_split_stack): New function.
354         * gcc/config/rs6000/rs6000.c (machine_function): Add
355         split_stack_arg_pointer.
356         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
357         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
358         rather than virtual_incoming_args_rtx.
359         (rs6000_va_start): Likewise.
360         (split_stack_arg_pointer_used_p): New function.
361         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
362         (morestack_ref): New var.
363         (gen_add3_const, rs6000_expand_split_stack_prologue,
364         rs6000_internal_arg_pointer, rs6000_live_on_entry,
365         rs6000_split_stack_space_check): New functions.
366         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
367         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
368         (UNSPECV_SPLIT_STACK_RETURN): Define.
369         (split_stack_prologue, load_split_stack_limit,
370         load_split_stack_limit_di, load_split_stack_limit_si,
371         split_stack_return, split_stack_space_check): New expands and insns.
372         * gcc/config/rs6000/rs6000-protos.h
373         (rs6000_expand_split_stack_prologue): Declare.
374         (rs6000_split_stack_space_check): Declare.
376 2015-05-20  Alan Modra  <amodra@gmail.com>
378         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
379         (rs6000_stack_info): Don't zero offsets when not saving registers.
380         (debug_stack_info): Adjust to omit printing unused offsets,
381         as before.
382         (direct_return): Test vrsave_size rather than vrsave_mask.
383         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
384         (rs6000_emit_epilogue): Likewise.
386 2015-05-20  Alan Modra  <amodra@gmail.com>
388         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
389         when not saving registers.
390         (debug_stack_info): Adjust to omit printing unused offsets,
391         as before.
392         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
393         expression.
395 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
397         PR c++/65835
398         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
399         value_type to const char *.
401 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
403         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
404         to build a biarch toolchain again.
406 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
408         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
409         or implicit declarations.
410         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
411         into it.
412         (get_odr_type): Check type has linkage before adding bases.
413         (register_odr_type): Check that type has linkage before adding it.
414         (type_known_to_have_no_deriavations_p): Rename to ..
415         (type_known_to_have_no_derivations_p): This one.
416         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
417         (type_known_to_have_no_derivations_p): This one.
418         * ipa-polymorphic-call.c
419         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
420         type has linkage.
422 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
424         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
425         (layout_type): Use RECORD_OR_UNION_TYPE_P.
427 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
429         * config/s390/s390.c (s390_vector_bool_type_p): New function.
430         (s390_invalid_binary_op): New function.
431         (TARGET_INVALID_BINARY_OP): Define macro.
433 2015-05-19  David Sherwood  <david.sherwood@arm.com>
435         * loop-invariant.c (create_new_invariant): Don't calculate address cost
436         if mode is not a scalar integer.
437         (get_inv_cost): Increase computational cost for unused invariants.
439 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
441         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
442         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
443         * config/s390/s390-builtin-types.def: New file.
444         * config/s390/s390-builtins.def: New file.
445         * config/s390/s390-builtins.h: New file.
446         * config/s390/s390-c.c: New file.
447         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
448         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
449         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
450         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
451         prototypes.
452         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
453         Include.
454         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
455         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
456         variable definitions.
457         (s390_const_operand_ok): New function.
458         (s390_expand_builtin): Rewrite.
459         (s390_init_builtins): New function.
460         (s390_handle_vectorbool_attribute): New function.
461         (s390_attribute_table): Add s390_vector_bool attribute.
462         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
463         (s390_branch_condition_mask): Generate masks for new modes.
464         (s390_expand_vec_compare_cc): New function.
465         (s390_mangle_type): Add mangling for vector bool types.
466         (enum s390_builtin): Remove.
467         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
468         efpc builtins.
469         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
470         s390_cpu_cpp_builtins.
471         (REGISTER_TARGET_PRAGMAS): New macro.
472         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
473         (insn_cmp mode attribute): Add new CC modes.
474         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
475         (lcbb): New pattern definition.
476         * config/s390/s390intrin.h: Include vecintrin.h.
477         * config/s390/t-s390: New file.
478         * config/s390/vecintrin.h: New file.
479         * config/s390/vector.md: Include vx-builtins.md.
480         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
481         support.
483 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
485         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
486         CCVFHE.
487         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
488         (s390_select_ccmode): Likewise.
489         (s390_canonicalize_comparison): Swap operands if necessary.
490         (s390_expand_vec_compare_scalar): Expand DFmode compare using
491         single element vector instructions.
492         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
493         (s390_branch_condition_mask): Generate CC masks for the new modes.
494         * config/s390/s390.md (v0, vf, vd): New mode attributes.
495         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
496         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
497         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
498         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
499         (*extend<DSF:mode><BFP:mode>2): New insn definition.
500         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
501         (extend<DSF:mode><BFP:mode>2): Turn into expander.
502         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
503         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
504         (sqrt<mode>2): Add vector instruction.
506 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
508         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
509         constraints.
510         * config/s390/predicates.md (const0_operand, constm1_operand)
511         (constable_operand): Accept vector operands.
512         * config/s390/s390-modes.def: Add supported vector modes.
513         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
514         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
515         (s390_bytemask_vector_p, s390_expand_vec_strlen)
516         (s390_expand_vec_compare, s390_expand_vcond)
517         (s390_expand_vec_init): Add prototypes.
518         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
519         (s390_vector_mode_supported_p): New function.
520         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
521         (s390_contiguous_bitmask_vector_p): New function.
522         (s390_bytemask_vector_p): New function.
523         (s390_split_ok_p): Vector regs don't work either.
524         (regclass_map): Add VEC_REGS.
525         (s390_legitimate_constant_p): Handle vector constants.
526         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
527         (legitimate_reload_vector_constant_p): New function.
528         (s390_preferred_reload_class): Handle CONST_VECTOR.
529         (s390_reload_symref_address):  Likewise.
530         (s390_secondary_reload): Vector memory instructions only support
531         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
532         (s390_emit_ccraw_jump): New function.
533         (s390_expand_vec_strlen): New function.
534         (s390_expand_vec_compare): New function.
535         (s390_expand_vcond): New function.
536         (s390_expand_vec_init): New function.
537         (s390_dwarf_frame_reg_mode): New function.
538         (print_operand): Handle addresses with 'O' and 'R' constraints.
539         (NR_C_MODES, constant_modes): Add vector modes.
540         (s390_output_pool_entry): Handle vector constants.
541         (s390_hard_regno_mode_ok): Handle vector registers.
542         (s390_class_max_nregs): Likewise.
543         (s390_cannot_change_mode_class): New function.
544         (s390_invalid_arg_for_unprototyped_fn): New function.
545         (s390_function_arg_vector): New function.
546         (s390_function_arg_float): Remove size variable.
547         (s390_pass_by_reference): Handle vector arguments.
548         (s390_function_arg_advance): Likewise.
549         (s390_function_arg): Likewise.
550         (s390_return_in_memory): Vector values are returned in a VR if
551         possible.
552         (s390_function_and_libcall_value): Handle vector arguments.
553         (s390_gimplify_va_arg): Likewise.
554         (s390_call_saved_register_used): Consider the arguments named.
555         (s390_conditional_register_usage): Disable v16-v31 for non-vec
556         targets.
557         (s390_preferred_simd_mode): New function.
558         (s390_support_vector_misalignment): New function.
559         (s390_vector_alignment): New function.
560         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
561         (TARGET_VECTOR_MODE_SUPPORTED_P)
562         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
563         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
564         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
565         (TARGET_VECTOR_ALIGNMENT): Define target macro.
566         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
567         (FIRST_PSEUDO_REGISTER): Increase value.
568         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
569         (VECTOR_REG_P): Define macros.
570         (FIXED_REGISTERS, CALL_USED_REGISTERS)
571         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
572         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
573         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
574         Add vector registers.
575         (CANNOT_CHANGE_MODE_CLASS): Call C function.
576         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
577         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
578         memory.
579         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
580         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
581         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
582         (VR*_REGNUM): New constants.
583         (ALL): New mode iterator.
584         (INTALL): Remove mode iterator.
585         Include vector.md.
586         (movti): Implement TImode moves for VRs.
587         Disable TImode splitter for VR targets.
588         Implement splitting TImode GPR<->VR moves.
589         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
590         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
591         reload<mode>_la_in, reload<mode>_la_out.
592         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
593         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
594         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
595         (mov<mode> SF SD): Prefer lder, lde for loading.
596         Add lrl and strl instructions.
597         Add vector instructions.
598         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
599         Call s390_expand_vec_strlen on z13.
600         (*cc_to_int): Change predicate to nonimmediate_operand.
601         (addti3): Rename to *addti3.  New expander.
602         (subti3): Rename to *subti3.  New expander.
603         * config/s390/vector.md: New file.
605 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
607         * common/config/s390/s390-common.c (processor_flags_table): Add
608         z13.
609         * config.gcc: Add z13.
610         * config/s390/s390-opts.h (enum processor_type): Add
611         PROCESSOR_2964_Z13.
612         * config/s390/s390.c (s390_adjust_priority): Check for
613         PROCESSOR_2964_Z13.
614         (s390_reorg): Likewise.
615         (s390_sched_reorder): Likewise.
616         (s390_sched_variable_issue): Likewise.
617         (s390_loop_unroll_adjust): Likewise.
618         (s390_option_override): Likewise. Default to -mvx when available.
619         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
620         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
621         (TARGET_VX_ABI): Define macros.
622         macros.
623         (TARGET_DEFAULT): Add MASK_OPT_VX.
624         * config/s390/s390.md ("cpu" attribute): Add z13.
625         ("cpu_facility" attribute): Add vec.
626         * config/s390/s390.opt (processor_type): Add z13.
627         (mvx): New options.
628         * doc/invoke.texi: Add z13 option for -march.
630 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
632         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
633         mode check to make sure that only scalar integer values are
634         accepted.
636 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
638         * tree.c (verify_type_variant): Fix #undef.
639         (gimple_canonical_types_compatible_p): Move here from lto.c
640         (verify_type): Verify TYPE_CANONICAL compatibility.
641         * tree.h (gimple_canonical_types_compatible_p): Declare.
643 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
645         PR middle-end/66199
646         * tree.h (OMP_TEAMS_COMBINED): Define.
647         * gimplify.c (enum gimplify_omp_var_data): Add
648         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
649         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
650         (omp_notice_variable): Accept both ORT_TEAMS
651         and ORT_COMBINED_TEAMS.  Don't recurse if
652         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
653         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
654         GOVD_FIRSTPRIVATE.
655         (omp_no_lastprivate): New function.
656         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
657         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
658         notice_outer and set appropriate bits, otherwise make
659         sure default(none) combined constructs won't complain.
660         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
661         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
662         omp_no_lastprivate either remove the clause or turn it
663         into OMP_CLAUSE_PRIVATE.
664         (gimplify_omp_for): Fix up handling of implicit
665         lastprivate or linear iterators.
666         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
667         ORT_COMBINED_TEAMS.
668         * omp-low.c (lower_omp_for_lastprivate): For combined
669         for simd use fd.loop.n2 from the for rather than simd.
671 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
673         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
674         instead of gen_rtx_raw_REG.
675         (cris_expand_epilogue): Likewise.
676         * config/microblaze/microblaze.c (microblaze_classify_address):
677         Likewise.
678         * config/sparc/sparc.md: Likewise.
680 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
682         * config/alpha/alpha.c (alpha_legitimize_reload_address)
683         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
684         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
685         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
686         Use CASE_CONST_SCALAR_INT.
687         (print_operand) <case 'M'>: Use mode_width_operand to check the
688         value of the constant.
689         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
690         * config/alpha/predicates.md (input_operand): Use general_operand
691         instead of match_code as operand check.
692         (symbolic_operand): Use match_code with subexpression digits.
693         * config/alpha/constraints.md (Q): Ditto.
695 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
697         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
699 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
701         * config/s390/s390.c (s390_secondary_reload): Fix check for
702         load/store relative.
704 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
706         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
707         alternative_mask to uint64_t.
709 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
711         PR tree-optimization/66187
712         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
713         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
714         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
716 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
718         * diagnostic.c (diagnostic_report_current_module): Strengthen
719         local "new_map" from const line_map * to
720         const line_map_ordinary *.
721         * genmatch.c (error_cb): Likewise for local "map".
722         (output_line_directive): Likewise for local "map".
723         * input.c (expand_location_1): Likewise for local "map".
724         Pass NULL rather than &map to
725         linemap_unwind_to_first_non_reserved_loc, since the value is never
726         read from there, and the value written back not read from here.
727         (is_location_from_builtin_token): Strengthen local "map" from
728         const line_map * to const line_map_ordinary *.
729         (dump_location_info): Strengthen locals "map" from
730         line_map *, one to const line_map_ordinary *, the other
731         to const line_map_macro *.
732         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
733         const line_map * to const line_map_macro *.
734         (maybe_unwind_expanded_macro_loc): Add a call to
735         linemap_check_macro when writing to the "map" field of the
736         loc_map_pair.
737         Introduce local const line_map_ordinary * "ord_map", using it in
738         place of "map" in the part of the function where we know we have
739         an ordinary map.  Strengthen local "m" from const line_map * to
740         const line_map_ordinary *.
742 2015-05-19  Nick Clifton  <nickc@redhat.com>
744         PR target/66156
745         * config/msp430/msp430.md (zero_extendhisi2): Add support for
746         separate source and destination registers.
748 2015-05-19  Richard Biener  <rguenther@suse.de>
750         PR tree-optimization/66165
751         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
752         for no load permutation.
754         PR tree-optimization/66185
755         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
756         when building the SLP node from scalars.
758 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
759             Tristan Gingold  <gingold@adacore.com>
761         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
762         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
763         (expand_stack_restore): Call record_new_stack_level.
764         (expand_stack_save): Do not call do_pending_stack_adjust.
765         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
766         * calls.c (expand_call): Call record_new_stack_level for alloca.
767         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
768         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
769         (update_sjlj_context): New global function.
770         * except.h (update_sjlj_context): Declare.
771         * explow.c (record_new_stack_level): New global function.
772         (allocate_dynamic_stack_space): Call record_new_stack_level.
773         * explow.h (record_new_stack_level): Declare.
774         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
775         * cfgrtl.c (duplicate_insn_chain): Likewise.
777 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
779         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
780         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
781         STACK_GROWS_DOWNWARD as normal if.
782         (expand_call): Likewise.
784 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
786         PR target/54236
787         * config/sh/sh.md (*round_int_even): New insn_and_split and
788         accompanying new unnamed split.
790 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
792         * bitmap.c (bitmap_set_range): Handle count==1 specially.
793         (bitmap_clear_range): Likewise.
794         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
795         bitmap_set_range unconditionally.
796         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
797         * df-scan.c (df_mark_reg): Likewise.
798         * haifa-sched.c (setup_ref_regs): Likewise.
799         * sched-rgn.c (update_live_1): Likewise.
801 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
803         * regs.h (END_HARD_REGNO): Delete.
804         (END_REGNO): Move to...
805         * rtl.h: ...here.
806         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
807         * caller-save.c (mark_set_regs): Likewise.
808         * combine.c (move_deaths, distribute_notes): Likewise.
809         * cse.c (invalidate, invalidate_for_call): Likewise.
810         * df-scan.c (df_ref_record): Likewise.
811         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
812         (record_last_reg_set_info): Likewise.
813         * reg-stack.c (convert_regs_exit): Likewise.
814         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
815         * resource.c (update_live_status): Likewise.
816         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
818 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
820         * rtl.h (reg_info): Add an nregs field.
821         (REG_NREGS): Use it.
822         (SET_REGNO_RAW): Delete.
823         (set_regno_raw): New function.
824         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
825         (END_REGNO): Redefine in terms of REG_NREGS.
826         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
827         SET_REGNO_RAW.
828         * emit-rtl.c (set_mode_and_regno): Likewise.
829         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
830         instead of SET_REGNO_RAW.
832 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
834         * rtl.h (PUT_MODE_RAW): New macro.
835         (PUT_REG_NOTE_KIND): Use it.
836         (set_mode_and_regno): Declare.
837         (gen_raw_REG): Change regno to "unsigned int".
838         (gen_rtx_REG): Change "unsigned" to "unsigned int".
839         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
840         use set_mode_and_regno to change the mode of registers.
841         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
842         * emit-rtl.c (set_mode_and_regno): New function.
843         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
844         * caller-save.c (reg_save_code): Use set_mode_and_regno.
845         * expr.c (init_expr_target): Likewise.
846         * ira.c (setup_prohibited_mode_move_regs): Likewise.
847         * postreload.c (reload_cse_simplify_operands): Likewise.
849 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
851         * caller-save.c (init_caller_save): Use word_mode and
852         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
853         * expr.c (init_expr_target): Likewise.
854         * ira.c (setup_prohibited_mode_move_regs): Likewise.
855         * postreload.c (reload_cse_regs_1): Likewise.
857 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
859         * rtl.def (REG): Change format to "r".
860         * rtl.h (rtunion): Remove rt_reg.
861         (reg_info): New structure.
862         (rtx_def): Add reg field to main union.
863         (X0REGATTR): Delete.
864         (REG_CHECK): New macro.
865         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
866         * rtl.c (rtx_format): Document "r".
867         (rtx_code_size): Handle REG specially.
868         * gengenrtl.c (special_format): Return true for formats
869         that include 'r'.
870         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
871         Deal with REG_ATTRS after the field loop.
872         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
873         * expmed.c (init_expmed): Call gen_raw_REG instead of
874         gen_rtx_raw_REG.
875         * expr.c (init_expr_target): Likewise.
876         * regcprop.c (maybe_mode_change): Likewise.
877         * varasm.c (make_decl_rtl): Likewise.
878         * final.c (leaf_renumber_regs_insn): Return early after
879         handling REGs.
880         * genemit.c (gen_exp): Handle 'r' fields.
881         * genpeep.c (match_rtx): Likewise.
882         * gensupport.c (subst_pattern_match): Likewise.
883         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
884         (alter_constraints, subst_dup): Likewise.
885         * read-rtl.c (read_rtx_code): Likewise.
886         * print-rtl.c (print_rtx): Likewise.
887         * genrecog.c (find_operand, find_matching_operand): Likewise.
888         (validate_pattern, match_pattern_2): Likewise.
889         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
890         (rtx_test::regno_field): New function.
891         (operator ==, safe_to_hoist_p, transition_parameter_type)
892         (parameter_type_string, print_parameter_value)
893         (print_nonbool_test, print_test): Handle new enum values.
894         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
895         * lra-constraints.c (operands_match_p): Likewise.
897 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
899         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
900         Change type of new_regno to unsigned int.
901         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
902         new_regno to unsigned int.
903         (df_ref_change_reg_with_loc): Remove old_regno parameter.
904         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
905         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
906         (SET_REGNO_RAW): Add space after ",".
908 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
910         * rtl.h (REG_NREGS): New macro
911         * alias.c (record_set): Use it.
912         * cfgcleanup.c (mark_effect): Likewise.
913         * combine.c (likely_spilled_retval_1): Likewise.
914         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
915         (move_deaths, distribute_notes): Likewise.
916         * cselib.c (cselib_record_set): Likewise.
917         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
918         * df-scan.c (df_mark_reg): Likewise.
919         * dse.c (look_for_hardregs): Likewise.
920         * dwarf2out.c (reg_loc_descriptor): Likewise.
921         (multiple_reg_loc_descriptor): Likewise.
922         * expr.c (write_complex_part, read_complex_part): Likewise.
923         (emit_move_complex): Likewise.
924         * haifa-sched.c (setup_ref_regs): Likewise.
925         * ira-lives.c (mark_hard_reg_live): Likewise.
926         * lra.c (lra_set_insn_recog_data): Likewise.
927         * mode-switching.c (create_pre_exit): Likewise.
928         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
929         (reload_combine_recognize_pattern): Likewise.
930         (reload_combine_note_use, move2add_record_mode): Likewise.
931         (reload_cse_move2add): Likewise.
932         * reg-stack.c (subst_stack_regs_pat): Likewise.
933         * regcprop.c (kill_value, copy_value): Likewise.
934         (copyprop_hardreg_forward_1): Likewise.
935         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
936         (build_def_use): Likewise.
937         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
938         (deps_analyze_insn): Likewise.
939         * sched-rgn.c (check_live_1, update_live_1): Likewise.
940         * sel-sched.c (count_occurrences_equiv): Likewise.
941         * valtrack.c (dead_debug_insert_temp): Likewise.
943 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
945         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
946         * dse.c (note_add_store): Likewise.
947         * ira-lives.c (mark_hard_reg_dead): Likewise.
948         * loop-invariant.c (mark_reg_store): Likewise.
949         (mark_reg_death): Likewise.
950         * postreload.c (reload_combine): Likewise.
951         (reload_combine_note_store): Likewise.
952         (reload_combine_note_use): Likewise.
953         * recog.c (peep2_reg_dead_p): Likewise.
955 2015-05-19  Alan Modra  <amodra@gmail.com>
957         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
958         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
959         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
960         unused predicates.
961         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
962         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
963         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
964         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
966 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
968         * config/mips/mips.md (JOIN_MODE): New mode iterator.
969         (join2_load_Store<JOIN_MODE:mode>): New pattern.
970         (join2_loadhi): Likewise.
971         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
972         load-load and store-stores.
973         * config/mips/mips.opt (mload-store-pairs): New option.
974         (TARGET_LOAD_STORE_PAIRS): New macro.
975         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
976         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
977         * config/mips/mips.c (mips_load_store_bonding_p): New function.
979 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
981         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
982         explicit swaps.
983         * dojump.c (do_compare_rtx_and_jump): Likewise.
984         * expmed.c (emit_store_flag_1): Likewise.
985         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
986         * final.c (sprint_ul): Use std::reverse for reversing a string.
987         * fold-const.c (extract_muldiv_1): Use std::swap.
988         * genmodes.c (emit_mode_int_n): Likewise.
989         * ifcvt.c (dead_or_predicable): Likewise.
990         * ira-build.c (ira_merge_live_ranges): Likewise.
991         (swap_allocno_copy_ends_if_necessary): Likewise.
992         * ira.c (ira_setup_alts): Likewise.
993         * loop-iv.c (iv_analyze_expr): Likewise.
994         (implies_p): Likewise.
995         (canon_condition): Likewise.
996         * lra-constraints.c (swap_operands): Likewise.
997         * lra-lives.c (lra_merge_live_ranges): Likewise.
998         * omega.c (swap): Remove.
999         (bswap): Remove.
1000         (omega_unprotect_1): Use std::swap.
1001         (omega_solve_geq): Likewise.
1002         * optabs.c (expand_binop_directly): Likewise.
1003         (expand_binop): Likewise.
1004         (emit_conditional_move): Likewise.
1005         (emit_conditional_add): Likewise.
1006         * postreload.c (reload_cse_simplify_operands): Likewise.
1007         * reg-stack.c (emit_swap_insn): Likewise.
1008         (swap_to_top): Likewise.
1009         (compare_for_stack_reg): Likewise.
1010         (subst_asm_stack_regs): Likewise.
1011         * reload.c (find_reloads): Likewise.
1012         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
1013         * sel-sched.c (invoke_reorder_hooks): Likewise.
1014         (create_block_for_bookkeeping): Likewise.
1015         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
1016         (lambda_matrix_right_hermite): Use std::swap.
1017         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
1018         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
1019         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
1020         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
1021         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
1022         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
1023         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
1024         * tree-vrp.c (compare_ranges): Likewise.
1025         * var-tracking.c (add_with_sets): Likewise.
1026         (vt_find_locations): Likewise.
1028 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
1030         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
1031         pie executables.
1032         (FBSD_ENDFILE_SPEC): Likewise.
1033         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
1034         config/freebsd-spec.h.
1035         (ENDFILE_SPEC): Likewise.
1037 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
1038             Richard Henderson  <rth@redhat.com>
1040         PR target/57032
1041         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
1042         Check for a memory location that is not a reference (using an AND)
1043         to an unaligned location here.
1044         * config/alpha/predicates.md (normal_memory_operand): Remove.
1046 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
1048         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
1049         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
1051 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
1053         * config/mips/mips.c (micromips_globals): New variable.
1054         (mips_set_compression_mode): Save and reinitialize target-dependent
1055         state for microMIPS.
1057 2015-05-18  Martin Liska  <mliska@suse.cz>
1059         * dbgcnt.def: Add new counter.
1060         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
1062 2015-05-18  Martin Liska  <mliska@suse.cz>
1064         * dbgcnt.def: Sort counters.
1065         * opts.c (common_handle_option): Do not compile if
1066         -fdbg-cnt-list is enabled.
1068 2015-05-18  Tom de Vries  <tom@codesourcery.com>
1070         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
1071         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
1072         address operator to va_list operand.
1073         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
1074         unconditionally.
1075         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
1076         operand.
1077         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
1078         * config/s390/s390.c (s390_gimplify_va_arg): Same.
1079         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
1081 2015-05-18  Tom de Vries  <tom@codesourcery.com>
1083         * tree-ssa-tail-merge.c: Fix whitespace.
1085 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
1087         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
1088         cortex-a17, and cortex-a17.cortex-a7.
1090 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
1092         PR target/54236
1093         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
1095 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
1097         PR target/66174
1098         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
1099         QImode inner modes for TARGET_AVX512BW.  Force mask operand
1100         to a register for AVX512F modes.
1102 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
1104         * toplev.c (emit_debug_global_declarations): Do not output debug info
1105         when doing slim LTO objects.
1107 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
1109         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
1110         odr_types_equivalent_p): Declare.
1111         (odr_type_p): Use gcc_checking_assert.
1112         (type_in_anonymous_namespace_p) Declare.
1113         (type_with_linkage_p): Declare.
1114         * common.opt (Wlto-type-mismatch): New warning.
1115         * ipa-devirt.c (compound_type_base): New function.
1116         (odr_or_derived_type_p): New function.
1117         (odr_types_equivalent_p): New function.
1118         (add_type_duplicate): Simplify.
1119         (type_with_linkage_p): Add hack to prevent false positives on C types
1120         (type_in_anonymous_namespace_p): Likewise.
1121         * tree.c (need_assembler_name_p): Use type_with_linkage.
1122         * tree.h (type_in_anonymous_namespace_p): Remove.
1123         * doc/invoke.texi (-Wlto-type-mismatch): Document
1125 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
1127         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
1128         (verify_type): Verify STRING_FLAG.
1130 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1132         PR fortran/44054
1133         * tree-pretty-print.c (percent_K_format): Replace locus pointer
1134         with accessor function.
1135         * tree-diagnostic.c (diagnostic_report_current_function): Use
1136         diagnostic_location function.
1137         (maybe_unwind_expanded_macro_loc): Likewise.
1138         (virt_loc_aware_diagnostic_finalizer): Likewise.
1139         (default_tree_printer): Replace locus pointer with accessor function.
1140         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
1141         (diagnostic_set_info_translated): Initialize second location.
1142         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
1143         (diagnostic_show_locus): Handle two locations. Call
1144         diagnostic_print_caret_line.
1145         (diagnostic_print_caret_line): New.
1146         (default_diagnostic_starter): Use diagnostic_location function.
1147         (diagnostic_report_diagnostic): Use diagnostic_location function.
1148         (verbatim): Do not set text.locus.
1149         * diagnostic.h (struct diagnostic_info): Remove location field.
1150         (struct diagnostic_context): Make caret_chars an array of two.
1151         (diagnostic_location): New inline.
1152         (diagnostic_expand_location): Handle two locations.
1153         (diagnostic_same_line): New inline.
1154         (diagnostic_print_caret_line): Declare.
1155         (CARET_LINE_MARGIN): New constant.
1156         * pretty-print.c (pp_printf): Do not set text.locus.
1157         (pp_verbatim): Do not set text.locus.
1158         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
1159         (struct text_info): Replace locus pointer with locations
1160         array. Add accessor functions.
1162 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
1163             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
1165         PR target/65768
1166         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
1167         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
1168          large constants in register instead of splitting them.
1170 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
1172         PR target/66140
1173         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
1174         replacements in memory addresses.
1175         (get_unaligned_address): Ditto.
1177 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
1179         PR tree-optimization/64454
1180         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
1181         (-1 - A -> ~A): Remove unnecessary condition.
1183 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
1185         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
1186         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
1187         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
1189 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
1191         * ipa-chkp.h (chkp_wrap_function): New.
1192         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
1193         (chkp_wrap_function_name): New.
1194         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
1195         to get wrapper name.
1196         * lto-cgraph.c: Include ipa-chkp.h.
1197         (input_cgraph_1): Avoid alias chain for wrappers.
1199 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
1201         PR middle-end/66134
1202         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
1203         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
1205 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1207         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
1208         (AARCH64_FL_SLOWMUL): Delete.
1209         (AARCH64_FL_CRC): Redefine to 1<<3.
1210         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
1212 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1214         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
1215         casting.
1217 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
1219         * config/alpha/alpha.md (extendqidi2): Use general_operand
1220         instead of some_operand for operand[1] predicate.
1221         (extendhidi2): Ditto.
1222         (cbranchdi4): Use general_operand instead of some_operand
1223         for operand[1] and operands[2] predicates.
1224         (cstoredi4): Ditto.
1225         * config/alpha/predicates.md (some_operand): Remove unused predicate.
1226         (some_ni_operand): Ditto.
1228 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
1230         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
1231         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
1232         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
1233         low part of the constant using alpha_emit_set_const_1.
1234         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
1236 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
1238         * varasm.c (output_constant_pool_1): Pass down alignment from
1239         constant pool entry's descriptor to output_constant_pool_2.
1240         (output_object_block): Add comment prior to call to
1241         output_constant_pool_1.
1243 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
1245         PR rtl-optimization/65862
1246         * target.def (ira_change_pseudo_allocno_class): New hook.
1247         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
1248         value of the hook.
1249         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
1250         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
1251         hook.
1252         * ira-costs.c (find_costs_and_classes): Call the hook and change
1253         classes when it is necessary.
1254         * doc/tm.texi: Update.
1256 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
1258         * config/i386/i386.md (sibcall_memory): Check that register with
1259         callee address is not also used as one of the arguments, instead
1260         of checking that it is not live after the sibcall.
1261         (sibcall_pop_memory): Ditto.
1262         (sibcall_value_memory): Ditto.
1263         (sibcall_value_pop_memory): Ditto.
1265 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
1267         * generic-match-head.c (types_match): Handle non-types.
1268         * gimple-match-head.c (types_match): Likewise.
1269         * match.pd: Remove unnecessary TREE_TYPE for types_match.
1271 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
1273         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
1274         (csneg3<mode>_insn): Enable expansion of pattern.
1276 2015-05-14  Nick Clifton  <nickc@redhat.com>
1278         * config/rl78/rl78.c (rl78_select_section): Select the correct
1279         default section based upon the category of the decl.
1281 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
1283         PR rtl-optimization/30967
1284         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
1285         destination mode for the cost of scc patterns.
1287 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
1289         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
1290         using SWIM248 mode iterator.
1291         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
1292         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
1293         for operand[2] constraint.
1294         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
1296 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
1298         PR middle-end/66133
1299         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
1300         make sure it is never noreturn, even when the task body does not
1301         return.
1302         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
1303         right before GIMPLE_OMP_RETURN.
1304         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
1305         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
1306         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
1308 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1310         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
1311         * tree-ssa-math-opts.c: Include params.h
1312         (pow_synth_sqrt_info): New struct.
1313         (representable_as_half_series_p): New function.
1314         (get_fn_chain): Likewise.
1315         (print_nested_fn): Likewise.
1316         (dump_fractional_sqrt_sequence): Likewise.
1317         (dump_integer_part): Likewise.
1318         (expand_pow_as_sqrts): Likewise.
1319         (gimple_expand_builtin_pow): Use above to attempt to expand
1320         pow as series of square roots.  Removed now unused variables.
1322 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
1324         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
1325         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
1326         Remove *p0 and *p1 arguments.  Rewrite function.
1327         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
1328         (alpha_split_const_mov): Update calls to alpha_extract_integer and
1329         alpha_emit_set_long_const.
1330         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
1331         (alpha_output_mi_thunk_osf): Ditto.
1332         * config/alpha/alpha.md (movti): Do not check operands[1]
1333         for CONST_DOUBLE.
1335 2015-05-13  Richard Biener  <rguenther@suse.de>
1337         PR tree-optimization/66129
1338         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
1339         commutative.
1340         (vect_schedule_slp_instance): Fix typo.
1342 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
1344         * common.opt (fdump-internal-locations): New option.
1345         * input.c: Include diagnostic-core.h.
1346         (get_end_location): New function.
1347         (write_digit): New function.
1348         (write_digit_row): New function.
1349         (dump_location_range): New function.
1350         (dump_labelled_location_range): New function.
1351         (dump_location_info): New function.
1352         * input.h (dump_location_info): New prototype.
1353         * toplev.c (compile_file): Handle flag_dump_locations.
1355 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
1357         * gimple-expr.h (is_gimple_constant): Reorder.
1358         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
1360 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
1362         * combine.c (simplify_set): When generating a CC set, if the
1363         source already is in the correct mode, do not wrap it in a
1364         compare.  Simplify the rest of that code.
1366 2015-05-13  Richard Biener  <rguenther@suse.de>
1368         PR tree-optimization/66123
1369         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
1370         a taken edge.
1372 2015-05-13  Richard Biener  <rguenther@suse.de>
1374         PR middle-end/66110
1375         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
1376         specially.
1377         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
1379 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
1381         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
1382         * aclocal.m4: Regenerated with automake-1.11.6.
1384 2015-05-13  Tom de Vries  <tom@codesourcery.com>
1386         PR tree-optimization/66010
1387         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
1388         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
1389         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
1390         and rval based on do_deref.
1392 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
1394         PR target/65103
1395         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
1396         link time constants into adress expressions and therefore set
1397         their cost to 0.
1399 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
1401         PR target/66112
1402         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
1403         Use SWI248 iterator instead of SWI.
1404         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
1405         Use eq_attr "alternative" "0" instead of match_test in
1406         length_immediate attribute computation.
1407         (*mulvhi4, *mulvhi4_1): New define_insns.
1409         PR target/66112
1410         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
1411         SIGNED to get precision of non-negative value.
1413 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
1415         PR target/66048
1416         * function.c (diddle_return_value_1): Process bounds first.
1417         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
1418         register.
1420 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1422         PR rtl-optimization/64616
1423         * loop-invariant.c (can_move_invariant_reg): New.
1424         (move_invariant_reg): Call above new function to decide whether
1425         instruction can just be moved, skipping creation of temporary
1426         register.
1428 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
1430         PR target/pr66047.c
1431         * i386.c (ix86_function_sseregparm): Only return -1 if local function
1432         with implied regparm is called from -mno-sse function.
1433         (init_cumulative_args): Output error if ix86_function_sseregparm
1434         return -1 and SSE register would be needed.
1435         (function_arg_advance_32): Likewise.
1436         (function_arg_32): Likewise.
1437         * i386.h (ix86_args): Add decl field.
1439 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
1441         PR ipa/65873
1442         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
1443         inlines across optimization boundary.
1445 2015-05-12  Jason Merrill  <jason@redhat.com>
1447         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
1448         string literal and macro name.
1450 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
1452         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
1453         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
1454         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
1456 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
1458         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
1459         (-Wmisleading-indentation): New option.
1460         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
1462 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
1464         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
1465         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
1466         (alpha_extract_integer): Ditto.
1467         (alpha_legitimate_constant_p): Ditto.
1468         (alpha_split_tmode_pair): Ditto.
1469         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
1470         (alpha_expand_mov): Ditto.
1471         (print_operand): Remove handling of 'H' modifier.
1472         <case 'm'>: Remove CONST_DOUBLE handling.
1473         (summarize_insn): Handle CONST_WIDE_INT.
1474         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
1475         (anddi3): Ditto.
1476         (movti): Handle CONST_WIDE_INT.
1477         * config/alpha/constraints.md ('H'): Remove constraint definition.
1478         ('G'): Do not match MODE_FLOAT class.
1479         * config/alpha/predicates.md (const0_operand): Also match
1480         const_wide_int.
1481         (non_add_const_operand): Ditto.
1482         (non_zero_const_operand): Ditto.
1483         (some_operand): Ditto.
1484         (input_operand): Ditto.  Handle CONST_WIDE_INT.
1485         (and_operand): Do not match const_double.
1486         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
1488 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
1490         PR target/65697
1491         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
1492         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
1493         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
1494         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
1495         is_mm_seq_cst, is_mm_sync): New accessor functions.
1496         * builtins.c (expand_builtin_sync_operation,
1497         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
1498         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
1499         (get_memmodel,  expand_builtin_atomic_compare_exchange,
1500         expand_builtin_atomic_load, expand_builtin_atomic_store,
1501         expand_builtin_atomic_clear): Use new accessor routines.
1502         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
1503         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
1504         (maybe_emit_sync_lock_test_and_set): Use new accessors and
1505         MEMMODEL_SYNC_ACQUIRE.
1506         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
1507         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
1508         expand_atomic_store): Use new accessors.
1509         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
1510         * tsan.c (instrument_builtin_call): Update check for memory model beyond
1511         final enum to use MEMMODEL_LAST.
1512         * c-family/c-common.c: Use new accessor for memmodel_base.
1513         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
1514         accessors.
1515         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
1516         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
1517         mem_thread_fence, *dmb): Likewise.
1518         * config/alpha/alpha.c (alpha_split_compare_and_swap,
1519         alpha_split_compare_and_swap_12): Likewise.
1520         * config/arm/arm.c (arm_expand_compare_and_swap,
1521         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
1522         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
1523         atomic_loaddi): Likewise.
1524         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
1525         Likewise.
1526         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
1527         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
1528         use new accessors.
1529         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
1530         atomic_store<mode>, atomic_compare_and_swap<mode>,
1531         atomic_exchange<mode>): Use new accessors.
1532         * config/mips/mips.c (mips_process_sync_loop): Likewise.
1533         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
1534         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
1535         rs6000_post_atomic_barrier): Add new cases.
1536         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
1537         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
1538         (atomic_load<mode>): Add new cases and use new accessors.
1539         (store_quadpti): Add new cases.
1540         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
1541         accessors.
1542         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
1543         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
1544         model, not 8.
1546 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
1548         * ipa-devirt.c (type_with_linkage_p): New function.
1549         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
1550         type has linkage.
1551         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
1552         (can_be_name_hashed_p): Simplify.
1553         (hash_odr_name): Check that type has linkage before checking if it is
1554         anonymous.
1555         (types_same_for_odr): Likewise.
1556         (odr_name_hasher::equal): Likewise.
1557         (odr_subtypes_equivalent_p): Likewise.
1558         (warn_types_mismatch): Likewise.
1559         (get_odr_type): Likewise.
1560         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
1561         * ipa-utils.h (odr_type_p): Move offline.
1562         * tree.c (need_assembler_name_p): Fix handling of types
1563         without linkages.
1564         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
1566 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
1568         * timevar.c (timevar_enable): Delete in favor of...
1569         (g_timer): New global.
1570         (struct timevar_def): Move to timevar.h inside class timer.
1571         (struct timevar_stack_def): Likewise.
1572         (timevars): Delete global in favor of field "m_timevars" within
1573         class timer in timevar.h
1574         (stack): Likewise, in favor of field "m_stack".
1575         (unused_stack_instances): Likewise, in favor of field
1576         "m_unused_stack_instances".
1577         (start_time): Likewise, in favor of field "m_start_time".
1578         (get_time): Eliminate check for timevar_enable.
1579         (timer::timer): New function, built from part of timevar_init.
1580         (timevar_init): Rewrite idempotency test from using
1581         "timevar_enable" bool to using dynamic allocation of "g_timer".
1582         Move rest of implementation into timer's constructor.
1583         (timevar_push_1): Rename to...
1584         (timer::push): ...this, adding "m_" prefixes to variables that
1585         are now fields of timer.
1586         (timevar_pop_1): Likewise, rename to...
1587         (timer::pop): ...this, and add "m_" prefixes.
1588         (timevar_start): Replace test for "timevar_enable" with one for
1589         "g_timer", and move bulk of implementation to...
1590         (timer::start): ...here, adding "m_" prefixes.
1591         (timevar_stop): Likewise, from here...
1592         (timer::stop): ...to here.
1593         (timevar_cond_start): Likewise, from here...
1594         (timer::cond_start): ...to here.
1595         (timevar_cond_stop): Likewise, from here...
1596         (timer::cond_stop): ...to here.
1597         (validate_phases): Rename to...
1598         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
1599         locals "total" and "tv" const.
1600         (timevar_print): Rename to...
1601         (timer::print): ...this, and add "m_" prefixes.  Make locals
1602         "total" and "tv" const.  Eliminate test for timevar_enable.
1603         * timevar.h (timevar_enable): Eliminate.
1604         (g_timer): New declaration.
1605         (timevar_push_1): Eliminate.
1606         (timevar_pop_1): Eliminate.
1607         (timevar_print): Eliminate.
1608         (class timer): New class.
1609         (timevar_push): Rewrite to use g_timer.
1610         (timevar_pop): Likewise.
1611         * toplev.c (toplev::~toplev): Likewise.
1613 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
1615         * arm-protos.h (arm_sched_autopref): Delete.
1616         (tune_params): Re-organize, use enums for flag values.
1617         (FUSE_OPS): New macro.
1618         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
1619         (ARM_PREFETCH_BENEFICIAL): Likewise.
1620         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
1621         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
1622         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
1623         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
1624         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
1625         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
1626         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
1627         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
1628         format.
1629         (arm_option_override, thumb2_reorg, arm_print_tune_info)
1630         (aarch_macro_fusion_pair_p): Update uses of current_tune.
1631         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
1633 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
1635         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
1636         "break".
1638 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
1639             Sandra Loosemore <sandra@codesourcery.com>
1641         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
1642         value.
1643         (REG_CLASS_NAMES): Add "IJMP_REGS".
1644         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
1645         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
1646         use new "c" register constraint.
1647         * config/nios2/constraint.md (c): New register constraint
1648         corresponding to IJMP_REGS.
1650 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
1652         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
1653         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
1654         define_splits): Delete, revamp, transmogrify into ...
1655         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
1656         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
1657         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
1658         New.
1660 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
1662         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
1663         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
1665 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
1667         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
1668         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
1669         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
1670         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
1671         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
1672         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
1673         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
1674         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
1675         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
1676         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
1677         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
1678         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
1679         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
1680         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
1681         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
1682         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
1683         and 30 corresponding splitters): Delete.
1685 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
1687         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
1688         zero_extract.
1690 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
1692         * combine.c (recog_for_combine_1): New function, factored out
1693         from recog_for_combine.
1694         (change_zero_ext): New function.
1695         (recog_for_combine): If recog fails, try again with the pattern
1696         modified by change_zero_ext; if that still fails, restore the
1697         pattern.
1699 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
1701         * combine.c (get_undo_marker): New function.
1702         (undo_to_marker): New function, largely factored out from ...
1703         (undo_all): ... this.  Adjust.
1705 2015-05-12  Richard Biener  <rguenther@suse.de>
1707         PR tree-optimization/66101
1708         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
1709         fixup if we turn a loop exit edge to a fallthru edge.
1711 2015-05-12  Richard Biener  <rguenther@suse.de>
1713         PR tree-optimization/37021
1714         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
1715         (SLP_TREE_TWO_OPERATORS): New define.
1716         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
1717         SLP_TREE_TWO_OPERATORS.
1718         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
1719         SLP node.
1720         (vect_build_slp_tree): Adjust.
1721         (vect_analyze_slp_cost_1): Likewise.
1722         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
1723         emitting two vector stmts and mixing the results.
1725 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1727         * call.c (print_z_candidates): Remove dead code.
1729 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1731         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
1732         and zEC12_simple_fp.
1733         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
1734         to 1.
1736 2015-05-12  Tom de Vries  <tom@codesourcery.com>
1738         PR tree-optimization/66010
1739         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
1740         ifn_va_arg.
1741         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
1742         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
1743         va_lists are passed, and remove corresponding handling.
1744         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
1745         do_deref argument to ifn_va_arg.
1746         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
1747         ifn_va_arg.
1749 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1751         PR target/65955
1752         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
1753         REG before taking its REGNO.
1755 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1757         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
1758         rsp->sign_bit_copies and rsp->nonzero_bits into ...
1759         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
1760         present to get more accurate information about the number of sign bit
1761         copies and non zero bits.
1763 2015-05-12  Richard Biener  <rguenther@suse.de>
1765         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
1766         do not allow unrolling.
1768 2015-05-11  Richard Henderson  <rth@redhat.com>
1770         * config/i386/i386-modes.def (CCP): New.
1771         * config/i386/i386.c (put_condition_code): Handle it.
1772         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
1774 2015-05-11  Richard Henderson  <rth@redhat.com>
1776         * target.def (md_asm_clobbers): Replace with...
1777         (md_asm_adjust): this.
1778         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
1779         (TARGET_MD_ASM_ADJUST): New.
1780         * tm.texi: Rebuild.
1781         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
1782         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
1783         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
1785         * cfgexpand.c (check_operand_nalternatives): Accept vector of
1786         constraints instead of lists of outputs and inputs.
1787         (expand_asm_stmt): Save and restore input_location around the
1788         body of the function.  Move asm data into vectors instead of
1789         building tree lists.  Generate cleanup sequences as needed,
1790         rather than waiting til the end.  Use new md_asm_adjust hook.
1792         * config/vxworks.c: Include vec.h before target.h.
1793         * gimple.c: Likewise.
1794         * incpath.c: Likewise.
1795         * mode-switching.c: Likewise.
1797         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
1798         (cris_md_asm_adjust): this.
1799         (TARGET_MD_ASM_CLOBBERS): Remove.
1800         (TARGET_MD_ASM_ADJUST): New.
1801         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
1802         (ix86_md_asm_adjust): this.
1803         (TARGET_MD_ASM_CLOBBERS): Remove.
1804         (TARGET_MD_ASM_ADJUST): New.
1805         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
1806         (mn10300_md_asm_adjust): this.
1807         (TARGET_MD_ASM_CLOBBERS): Remove.
1808         (TARGET_MD_ASM_ADJUST): New.
1809         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
1810         (rs6000_md_asm_adjust): this.
1811         (TARGET_MD_ASM_CLOBBERS): Remove.
1812         (TARGET_MD_ASM_ADJUST): New.
1813         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
1814         (visium_md_asm_adjust): this.
1815         (TARGET_MD_ASM_CLOBBERS): Remove.
1816         (TARGET_MD_ASM_ADJUST): New.
1818 2015-05-11  Richard Henderson  <rth@redhat.com>
1820         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
1821         if noutputs is zero.
1822         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
1824         * cfgexpand.c (expand_asm_operands): Merge into...
1825         (expand_asm_stmt): ... here.
1827         * cfgexpand.c (expand_asm_operands): Don't call
1828         resolve_asm_operand_names.
1829         * stmt.c (resolve_asm_operand_names): Clarify block comment.
1831 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
1833         * dwarf2out.c (gen_member_die): Sanity check that we access
1834         TYPE_MAIN_VARIANT for TYPE_METHODS.
1835         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
1836         checking TYPE_METHODS.
1837         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
1838         if non-null.
1839         (build_distinct_type_copy): Clear TYPE_METHODS.
1840         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
1841         (verify_type): Allow TYPE_METHODS to be error_mark_node.
1842         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
1844 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1846         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
1847         (emit_pattern_before_setloc): Likewise.
1849 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
1851         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
1852         for define_peephole2s.
1853         (get_peephole2_pattern): New function.
1854         (main): Use it.  Call validate_pattern.
1856 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
1858         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
1859         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
1860         (Last callee saved reg is different for AVR_TINY architecture)
1862 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
1864         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
1865         when looking for memory references.
1867 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
1869         PR target/65753
1870         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
1871         via function pointers.
1873 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
1875         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
1876         indirect call by forcing address into a pseudo with -fno-plt.
1877         * common.opt (flag_plt): New option.
1878         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
1879         ([-fno-plt]): Document.
1881 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
1883         PR bootstrap/66105
1884         * config/rs6000/option-defaults.h: Add space between string literal
1885         and macro name.
1887 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1889         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
1890         accross ARM targets.
1892 2015-05-11  Christian Bruel  <christian.bruel@st.com>
1894         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
1895         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
1897 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
1899         PR rtl-optimization/66076
1900         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
1901         Don't grow the heap array if it is already big enough from a
1902         previous iteration.
1904 2015-05-11  Christian Bruel  <christian.bruel@st.com>
1906         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
1907         (is_called_in_ARM_mode): Remove.
1908         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
1909         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
1910         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
1911          arm_declare_function_name.
1913 2015-05-11  Christian Bruel  <christian.bruel@st.com>
1915         * config/arm/arm.c (arm_option_override): Reoganized and split into :
1916         (arm_option_params_internal); New function.
1917         (arm_option_check_internal): New function.
1918         (arm_option_override_internal): New function.
1919         (thumb_code, thumb1_code): Remove.
1920         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
1921         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
1922         (thumb_code, thumb1_code): Remove.
1923         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
1925 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
1927         * config/alpha/alpha.c (alpha_emit_set_const_1)
1928         (alpha_emit_set_long_const, alpha_extract_integer)
1929         (alpha_legitimate_constant_p, alpha_split_const_mov)
1930         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
1931         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
1932         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
1933         HOST_WIDE_INT_1U.
1934         * config/alpha/predicates.md (mode_mask_operand): Do not match
1935         const_double RTX.
1936         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
1937         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
1938         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
1939         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
1940         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
1942 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
1944         PR target/65780
1945         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
1946         default_binds_local_p_2.
1947         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
1948         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
1950 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
1952         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
1954 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
1956         Patch by Richard Biener
1957         * coverage.c (coverage_obj_init): Delay building of type variant
1958         until the type is finished.
1960 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
1962         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
1963         mismatch between C and C++ type; compoare correctly ARG_TYPES
1964         for non-prototypes and output correctly parameter index for METHOD_TYPE.
1965         (odr_types_equivalent_p): Fix wording of warning about attributes;
1966         it is OK to match prototype and non-prototype.
1968 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
1970         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
1971         TYPE_ARG_TYPES list.
1972         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
1973         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
1975 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
1977         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
1978         * tree.h (is_lang_specific): Constify.
1980 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
1982         PR tree-optimization/64454
1983         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
1984         Rewrite.
1986 2015-05-08  Jason Merrill  <jason@redhat.com>
1988         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
1989         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
1990         config/darwin.h, config/darwin9.h, config/elfos.h,
1991         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
1992         config/microblaze/microblaze.h, config/mips/mips.h,
1993         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
1994         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
1995         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
1996         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
1997         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
1998         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
1999         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
2000         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
2001         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
2002         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
2003         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
2004         between string literal and macro name.
2006 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2008         * jump.c: Change argument types to rtx_insn *.
2009         * rtl.h: Adjust.
2011 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2013         * lra-constraints.c: Change argument type to rtx_insn *.
2015 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2017         * df-problems.c: Change argument type to rtx_insn *.
2019 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2021         * combine.c: Change argument type to rtx_insn *.
2023 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2025         * rtl.h: Adjust.
2026         * rtlanal.c: Change argument type to rtx_insn *.
2028 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2030         * sched-deps.c: Change argument types to rtx_insn *.
2031         * sched-int.h: Adjust.
2033 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2035         * dwarf2cfi.c: Change argument type to rtx_insn *.
2037 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2039         * ira.c (decrease_live_ranges_number): Changetype of local
2040         variable to rtx_insn *.
2041         * recog.c: Change argument types to rtx_insn *.
2042         * recog.h: Adjust.
2044 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2046         * reorg.c: Change argument types to rtx_insn *.
2048 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2050         * ira-color.c: Change argument types to rtx_insn *.
2051         * lra-eliminations.c: Likewise.
2052         * ira.h: Adjust.
2054 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2056         * gcse.c: Change argument types to rtx_insn *.
2058 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2060         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
2062 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2064         * emit-rtl.c (emit_debug_insn_before): Change argument type to
2065         rtx_insn *.
2066         * rtl.h: Adjust.
2068 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2070         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
2071         * rtl.h: Adjust.
2073 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2075         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
2076         * rtl.h: Adjust.
2078 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2080         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
2081         * rtl.h: Adjust.
2083 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2085         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
2086         * rtl.h: Adjust.
2088 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2090         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
2091         to rtx_insn *.
2092         * rtl.h: Adjust.
2094 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2096         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
2097         to rtx_insn *.
2098         * rtl.h: Likewise.
2100 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2102         * except.c (can_nonlocal_goto): Change type of argument to
2103         rtx_insn *.
2104         * rtl.h: Adjust.
2106 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2108         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
2109         * rtl.h: Adjust.
2111 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2113         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
2114         * cfgrtl.c (can_delete_label_p): Adjust.
2115         * rtl.h: likewise.
2117 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2119         * reorg.c (stop_search_p): Change argument to rtx_insn *.
2121 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2123         * except.c (make_reg_eh_region_note): Change argument to
2124         rtx_insn *.
2125         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
2126         * except.h: Adjust.
2128 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2130         * mode-switching.c (commit_mode_sets): Change type of local
2131         variable from rtx to rtx_insn *.
2133 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
2135         * doc/install.texi (--enable-languages): Add missing jit and lto info.
2136         Add ^ to grep command.
2137         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
2138         arg to last gimple_simplify declaration.  Add missing gimple_build
2139         declaration for built-in function case with four tree args.
2141 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
2142             Szabolcs Nagy  <szabolcs.nagy@arm.com>
2144         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2145         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
2146         (GNU_USER_DYNAMIC_LINKERN32): Update.
2148 2015-05-08  Richard Biener  <rguenther@suse.de>
2150         PR tree-optimization/66036
2151         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2152         Handle strided group loads.
2153         (vect_verify_datarefs_alignment): Likewise.
2154         (vect_enhance_data_refs_alignment): Likewise.
2155         (vect_analyze_group_access): Likewise.
2156         (vect_analyze_data_ref_access): Likewise.
2157         (vect_analyze_data_ref_accesses): Likewise.
2158         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
2159         (vectorizable_load): Likewise.
2161 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
2163         * config/rs6000/rs6000.md: Require operand inequality in one
2164         of the peepholes.
2166 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
2167             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2169         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
2170         from (set ...).
2171         * config/rx/rx.md (movdi, movdf): Likewise.
2172         Likewise for define_peephole2s.
2174 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
2176         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
2177         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
2178         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
2179         vtst_u64): Rewrite using gcc vector extensions.
2181 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
2183         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
2184         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
2186 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
2188         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
2190 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2192         * config/glibc-stdint.h (OPTION_MUSL): Define.
2193         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
2194         Change the definition based on OPTION_MUSL for 64 bit targets.
2195         * config/linux.h (OPTION_MUSL): Redefine.
2196         * config/alpha/linux.h (OPTION_MUSL): Redefine.
2197         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
2198         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
2200 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
2201             Szabolcs Nagy  <szabolcs.nagy@arm.com>
2203         * config.gcc (LIBC_MUSL): New tm_defines macro.
2204         * config/linux.h (OPTION_MUSL): Define.
2205         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
2206         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
2207         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
2208         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
2209         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
2210         * config/linux.opt (mmusl): New option.
2211         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
2212         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
2213         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
2214         * configure: Regenerate.
2216 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
2217             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2219         PR target/48904
2220         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
2221         * config/i386/knetbsd-gnu64.h: New file.
2223 2015-05-08  Marek Polacek  <polacek@redhat.com>
2225         PR c/64918
2226         * doc/invoke.texi: Document -Woverride-init-side-effects.
2228 2015-05-07  Marek Polacek  <polacek@redhat.com>
2230         PR c/65179
2231         * doc/invoke.texi: Document -Wshift-negative-value.
2233 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
2235         * gcov-tool.c (do_merge): Refactore to remove int ret.
2236         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
2237         !type == FUNC to type != FUNC.
2238         * reload.h (struct target_reload): Changee to type of
2239         x_spill_indirect_levels from bool to unsigned char.
2241 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
2243         * rtl.h (always_void_p): New function.
2244         * gengenrtl.c (always_void_p): Likewise.
2245         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
2246         with code foo are always VOIDmode.
2247         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
2248         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
2249         compare-elim.c, config/aarch64/aarch64.c,
2250         config/aarch64/aarch64.md, config/alpha/alpha.c,
2251         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
2252         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
2253         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
2254         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
2255         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
2256         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
2257         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
2258         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
2259         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
2260         config/ia64/vect.md, config/iq2000/iq2000.c,
2261         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
2262         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
2263         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
2264         config/mep/mep.c, config/microblaze/microblaze.c,
2265         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
2266         config/mn10300/mn10300.c, config/msp430/msp430.c,
2267         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
2268         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
2269         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
2270         config/rs6000/altivec.md, config/rs6000/rs6000.c,
2271         config/rs6000/rs6000.md, config/rs6000/vector.md,
2272         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
2273         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
2274         config/sh/sh.md, config/sh/sh_treg_combine.cc,
2275         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
2276         config/spu/spu.md, config/stormy16/stormy16.c,
2277         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
2278         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
2279         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
2280         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
2281         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
2282         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
2283         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
2284         var-tracking.c: Update calls accordingly.
2286 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
2288         PR middle-end/192
2289         PR middle-end/54303
2290         * varasm.c (function_mergeable_rodata_prefix): New function.
2291         (mergeable_string_section): Use it.
2292         (mergeable_constant_section): Use it.
2294 2015-05-07  Jeff Law  <law@redhat.com>
2296         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
2297         simplifier to narrow arithmetic.
2298         * generic-match-head.c: (types_match, single_use): New functions.
2299         * gimple-match-head.c: (types_match, single_use): New functions.
2301 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
2303         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
2304         rtx type.
2306 2015-05-07  Richard Biener  <rguenther@suse.de>
2308         PR tree-optimization/66002
2309         * passes.def: Schedule another pass_merge_phi after ifcombine, right
2310         before phiopt.
2312 2015-05-07  Marek Polacek  <polacek@redhat.com>
2313             Martin Uecker  <uecker@eecs.berkeley.edu>
2315         * doc/invoke.texi: Document -fsanitize=bounds-strict.
2316         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
2317         into SANITIZE_NONDEFAULT.
2318         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
2320 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
2322         PR target/66015
2323         * config/alpha/alpha.c (alpha_override_options_after_change): New.
2324         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
2325         (alpha_override_options): Move align_loops, align_jumps and
2326         align_functions handling into alpha_override_options_after_change.
2328 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
2329             Chris Jones  <chrisj@nvidia.com>
2330             Joshua Conner  <jconner@nvidia.com>
2332         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
2333         linking of crtfastmath.o.
2334         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
2336 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
2338         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
2339         (cstore<mode>4_unsigned_imm): New expander.
2340         (cstore<mode>4): Remove empty constraint strings.  Use the new
2341         expanders.
2343 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
2345         PR target/64208
2346         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
2347         alternatives.
2349 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2351         * config/aarch64/geniterators.sh: Use standard BRE in sed.
2353 2015-05-06  Alan Modra  <amodra@gmail.com>
2355         PR target/66033
2356         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
2357         (UNSPEC_NOP): Define.
2358         (reload_vsx_from_gpr<mode>): Add missing DONE.
2359         (reload_gpr_from_vsx<mode>): Likewise.
2360         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
2361         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
2363 2015-05-06  Christian Bruel  <christian.bruel@st.com>
2365         PR target/66015
2366         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
2367         align_jumps, align_functions into aarch64_override_options_after_change.
2369 2015-05-06  Richard Biener  <rguenther@suse.de>
2371         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
2372         vect_transform_slp_perm_load to check if we support a permutation
2373         for basic-block vectorization.
2375 2015-05-06  Nick Clifton  <nickc@redhat.com>
2377         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
2378         used, even if it is not being used as a frame pointer.
2380 2015-05-05  Jason Merrill  <jason@redhat.com>
2382         * dwarf2out.c (gen_member_die): Don't emit anything for an
2383         anonymous class constructor.
2385 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
2387         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
2388         that it reflects the block structure.
2389         (afdo_propagate_edge): Likewise.
2390         (afdo_calculate_branch_prob): Likewise.
2391         (afdo_annotate_cfg): Likewise.
2392         * cfgcleanup.c (equal_different_set_p): Likewise.
2393         (try_crossjump_to_edge): Likewise.
2394         * cgraph.c (cgraph_node::verify_node): Likewise.
2395         * cgraphunit.c (expand_all_functions): Likewise.
2396         * config/i386/i386.c (ix86_expand_copysign): Likewise.
2397         (exact_dependency_1): Likewise.
2398         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
2399         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
2400         * gensupport.c (process_define_subst): Likewise.
2401         * lto-wrapper.c (merge_and_complain): Likewise.
2402         * tree-if-conv.c (if_convertible_bb_p): Likewise.
2403         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
2404         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
2405         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
2406         * tree-vect-loop.c (vectorizable_reduction): Likewise.
2407         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
2408         * tree-vect-stmts.c (vectorizable_shift): Likewise.
2409         * tree-vrp.c (vrp_finalize): Likewise.
2410         * tree.c (variably_modified_type_p): Likewise.
2412 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
2414         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
2415         on darwin12 and later.
2416         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
2417         file to pass -rdynamic on darwin12 and later.
2418         * config/darwin.opt (rdynamic): Add.
2420 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
2422         * doc/extend.texi (C Extensions): Update menu for moved Variable
2423         Attributes and Type Attributes sections.
2425 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
2427         PR target/65990
2428         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
2429         if rep_8byte stringop strategy was specified for 32-bit target.
2431 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
2433         PR target/65915
2434         * config/i386/i386.md (vector convert to float spltiter): Check for
2435         xmm16+, when splitting scalar float conversion.
2436         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
2438 2015-05-05  Nick Clifton  <nickc@redhat.com>
2440         * config/msp430/msp430-opts.h (enum msp430_regions): New.
2441         * config/msp430/msp430.c (msp430_override_options): Complain if
2442         -mcode-region or -mdata-region is used on a non MSP430X.
2443         (msp430_section_attr): New function.  Checks lower, upper and
2444         either attributes.
2445         (msp430_attribute_table): Add lower, upper and either.
2446         (gen_prefix): New function.  Generates a prefix for a section
2447         name.
2448         (msp430_select_section): New function - handles the choice of
2449         section for an object.  Takes into account memory region
2450         attributes and options.
2451         (msp430_function_section): Use gen_prefix.
2452         (TARGET_SECTION_TYPE_FLAGS): Define.
2453         (msp430_section_type_flags): New function.
2454         (TARGET_ASM_UNIQUE_SECTION): Define.
2455         (msp430_unique_section): New function.
2456         (msp430_output_aligned_decl_common): New function.
2457         (msp430_do_not_relax_short_jumps): New function.
2458         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
2459         Define.
2460         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2461         * config/msp430/msp430-protos.h
2462         (msp430_do_not_relax_short_jumps): New prototype.
2463         (msp430_output_aligned_decl_common): New prototype.
2464         * config/msp430/msp430.md (length): New attribute.
2465         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
2466         then use a long code sequence for short jumps.
2467         * config/msp430/msp430.opt (mcode-region): New.
2468         (mdata-region): New.
2469         * doc/invoke.texi: Document new options.
2470         * doc/extend.texi: Document new attributes.
2472 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
2474         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
2475         (tune_params): Add field branch_costs.
2476         (aarch64_branch_cost): Declare.
2477         * gcc/config/aarch64.c (generic_branch_cost): New.
2478         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
2479         (cortexa53_tunings): Likewise.
2480         (cortexa57_tunings): Likewise.
2481         (thunderx_tunings): Likewise.
2482         (xgene1_tunings): Likewise.
2483         (aarch64_branch_cost): Define.
2484         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
2486 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
2488         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
2489         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
2490         * config/i386/i386.md: Ditto.
2491         * config/i386/winnt.c: Ditto.
2493 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
2495         * doc/extend.texi (__atomic Builtins): Move implementation details
2496         to the end of the description, rewrite opening paragraphs, state
2497         difference with __sync builtins, state C11/C++11 assumptions,
2498         weaken itemized descriptions, add explanation of memory model
2499         behaviour, expand description of compare-exchange, simplify text.
2501 2015-05-05  Renlin Li  <renlin.li@arm.com>
2503         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
2505 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
2507         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
2508         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
2509         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
2510         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
2511         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
2512         * configure: Regenerate.
2513         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
2514         * doc/install.texi (aarch64*-*-*): Document new
2515         --enable-fix-cortex-a53-843419 option.
2516         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
2517         and -mno-fix-cortex-a53-843419 options.
2519 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
2521         PR target/65871
2522         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
2524 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
2526         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
2527         fix overactive TYPE_MIN_VALUE check and add FIXME for type
2528         compatibility problems.
2530 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
2532         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
2533         constraints.
2534         (cbranchsi4_reg): New.
2535         * config/microblaze/microblaze.c
2536         (microblaze_expand_conditional_branch_reg): New.
2537         * config/microblaze/microblaze-protos.h
2538         (microblaze_expand_conditional_branch_reg): New prototype.
2540 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
2542         * config/microblaze/microblaze.md (peephole2): New.
2544 2015-05-04  Jeff Law  <law@redhat.com>
2546         Revert:
2547         2015-05-04  Jeff Law  <law@redhat.com>
2549         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
2550         simplifier to narrow arithmetic.
2551         * generic-match-head.c: (types_match, single_use): New functions.
2552         * gimple-match-head.c: (types_match, single_use): New functions.
2554 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
2556         PR target/65987
2557         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
2558         (split_branches): Likewise.
2560 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
2562         * common.opt (fdelete-null-pointer-checks): Init to -1.
2563         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
2564         override flag_delete_null_pointer_checks default.
2565         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
2566         behavior re address zero.  Better document target-specific behavior.
2567         (-fisolate-errneous-paths-dereference): Mention relationship to
2568         -fdelete-null-pointer-checks.
2570 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
2572         PR tree-optimization/65984
2573         * ubsan.c: Include tree-cfg.h.
2574         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
2575         stmt_could_throw_p test, rename can_throw variable to ends_bb.
2577 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
2579         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
2580         to CONST_DOUBLE_P predicate.
2581         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
2582         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
2583         allow only operands that satisfy standard_sse_constant_p predicate.
2584         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
2585         to CONST_DOUBLE_P predicate.
2587 2015-05-04  Jeff Law  <law@redhat.com>
2589         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
2590         simplifier to narrow arithmetic.
2591         * generic-match-head.c: (types_match, single_use): New functions.
2592         * gimple-match-head.c: (types_match, single_use): New functions.
2594 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
2596         * config/arm/arm.c: Restore bootstrap.
2598 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
2600         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
2601         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
2602         as CONST_WIDE_INT, not CONST_DOUBLE.
2603         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
2604         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
2605         (ix86_find_base_term): Do not check for CONST_DOUBLE.
2606         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
2607         (ix86_build_signbit_mask): Rewrite using wide ints.
2608         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
2609         (ix86_rtx_costs): Handle CONST_WIDE_INT.
2610         (find_constant): Ditto.
2611         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
2612         using gen_int_mode.
2613         * config/i386/predicates.md (x86_64_immediate_operand)
2614         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
2615         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
2616         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
2617         (const0_operand): Also match const_wide_int.
2618         (constm1_operand): Ditto.
2619         (const1_operand): Ditto.
2621 2015-05-04  Richard Biener  <rguenther@suse.de>
2623         PR tree-optimization/65965
2624         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
2625         store groups at gaps.
2627 2015-05-04  Richard Biener  <rguenther@suse.de>
2629         PR tree-optimization/65935
2630         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
2631         then make sure to apply that swapping to the IL.
2633 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
2635         * Makefile.in (PATCHLEVEL_c): New variable.
2636         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
2637         expand the same way as if DEVPHASE_c was non-empty.
2639 2015-05-04  Kai Tietz  <ktietz@redhat.com>
2641         PR target/65559
2642         * lto-wrapper.c (run_gcc): Open filename
2643         in binary-mode.
2645 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
2647         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
2648         sections up in file, to immediately after the Function Attributes
2649         section.
2651 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
2653         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
2655 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2657         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
2658         (insert_partition_copy_on_edge): Adjust.
2659         (insert_rtx_to_part_on_edge): Likewise.
2660         (insert_part_to_rtx_on_edge): Likewise.
2662 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2664         * function.c (set_return_jump_label): Change type of argument to
2665         rtx_insn *.
2666         * function.h (set_return_jump_label): Adjust.
2668 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2670         * reload.h (struct reg_equivs_t): Change type of init to
2671         rtx_insn *.
2672         * ira.c (fix_reg_equiv_init): Adjust.
2673         * reload1.c (eliminate_regs_1): Likewise.
2674         (init_eliminable_invariants): Likewise.
2676 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2678         * cselib.c (fp_setter_insn): Take a rtx_insn *.
2679         * cselib.h (fp_setter_insn): Adjust.
2681 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2683         * recog.c (struct validate_replace_src_data): Change type of
2684         insn field to rtx_insn *.
2685         (validate_replace_src_group): Change type of argument to rtx_insn *.
2686         * recog.h (validate_replace_src_group): Adjust.
2688 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2690         * haifa-sched.c: Change the type of some variables to rtx_insn *.
2691         * sched-deps.c: Likewise.
2692         * sched-int.h: Likewise.
2693         * sched-rgn.c: Likewise.
2694         * sel-sched.c: Likewise.
2696 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2698         to rtx_insn *.
2699         * config/i386/i386.c: Change the type of some arguments to
2700         rtx_insn *.
2701         * config/arm/arm.c: Likewise.
2703 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2705         * lra-constraints.c: Change type of some arguments to rtx_insn *.
2707 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2709         * regcprop.c (kill_autoinc_value): Change type of argument to
2710         rtx_insn *.
2712 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2714         * genrecog.c (print_subroutine): Adjust.
2715         * recog.c (get_bool_attr_mask_uncached): Likewise.
2716         * recog.h (struct recog_data_d): Change the type of insn to
2717         rtx_insn *.
2719 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2721         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
2723 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2725         * df-problems.c (df_set_note): Change type of argument to
2726         rtx_insn *.
2728 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2730         * builtins.c (expand_builtin_trap): Change type of local
2731         variable to rtx_insn *.
2732         (add_sched_insns_for_speculation): Likewise.
2733         (ix86_emit_save_regs): Likewise.
2734         (get_scratch_register_on_entry): Likewise.
2735         (ix86_emit_restore_reg_using_pop): Likewise.
2736         (ix86_emit_leave): Likewise.
2737         (ix86_emit_restore_regs_using_mov): Likewise.
2738         (ix86_expand_epilogue): Likewise.
2739         Likewise.
2740         (rl78_alloc_physical_registers_umul): Likewise.
2741         * cselib.c (discard_useless_locs): Likewise.
2742         (cselib_invalidate_regno): Likewise.
2743         (cselib_invalidate_mem): Likewise.
2744         * function.c (expand_function_start): Likewise.
2745         (emit_use_return_register_into_block): Likewise.
2746         * gcse.c: Likewise.
2747         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
2748         * ifcvt.c (noce_get_alt_condition): Likewise.
2749         * loop-doloop.c (doloop_condition_get): Likewise.
2750         * lra-constraints.c (inherit_in_ebb): Likewise.
2751         * modulo-sched.c (sms_schedule_by_order): Likewise.
2752         * recog.c (next_insn_tests_no_inequality): Likewise.
2753         * reorg.c (emit_delay_sequence): Likewise.
2754         (update_reg_dead_notes): Likewise.
2755         (fix_reg_dead_note): Likewise.
2756         (fill_slots_from_thread): Likewise.
2757         (delete_computation): Likewise.
2759 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
2761         * doc/extend.texi (Variable Attributes): Add menu and proper
2762         @nodes to subsections.  Move Microsoft Windows attributes to
2763         their own subsection.
2764         (Type Attributes): Reorganize introduction to remove duplicate
2765         list of attributes.  Add menu and proper @nodes to subsections.
2766         Alphabetize the main table of common attributes.
2768 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
2770         * match.pd: New simplification patterns.
2771         (x + (x & 1))  -> ((x + 1) & ~1)
2772         (x & ~(x & y)) -> ((x & ~y))
2773         (x | ~(x | y)) -> ((x | ~y))
2775 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2777         * target.def (attribute_table): Mention that struct attribute_spec
2778         is defined in tree-core.h rather than tree.h
2779         * doc/tm.texi: Regenerate.
2781 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
2783         * genrecog.c (test): Rename to rtx_test.  Update rest of file
2784         accordingly.
2786 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
2788         PR translation/65959
2789         * params.h (DEFPARAM): Rename msgid to nocmsgid.
2791 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
2793         * gcc/config/aarch64/aarch64-protos.h (tune_params):
2794         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
2795         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
2796         Return value depending on target.
2797         (generic_tunings): Initialize new target settings.
2798         (cortexa53_tunings): Likewise.
2799         (cortexa57_tunings): Likewise.
2800         (thunderx_tunings): Likewise.
2801         (xgene1_tunings): Likewise.
2803 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
2805         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
2806         Make Cortex-A53 shift costs more accurate.
2808 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2810         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
2811         UNSIGNED_FLOAT.
2813 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
2815         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
2816         Calculate cost of op0 and op1 in PLUS and MINUS cases.
2818 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2820         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
2821         Add cost of op0 in the compare-with-fpzero case.
2823 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
2825         * builtins.c (fold_builtin_1): Remove spurious second
2826         semicolon.
2827         * cgraph.h (symtab_node::get_availability): Likewise.
2828         * opts.c (common_handle_option): Remove spurious second semicolon.
2829         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
2830         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
2832 2015-04-30  Caroline Tice  <cmtice@google.com>
2834         PR gcov-profile/65929
2835         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
2836         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
2837         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
2838         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
2839         * doc/tm.texi: Regenerate.
2840         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
2841         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
2842         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
2843         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
2845 2015-04-30  Marek Polacek  <polacek@redhat.com>
2847         * varasm.c (handle_cache_entry): Fix logic.
2849 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2851         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
2852         (*extrsi5_insn_uxtw_alt): Likewise.
2853         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
2854         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
2855         operations.
2857 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2859         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
2860         fabd in ABS case.
2862 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2864         * config/aarch64/aarch64.md
2865         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
2866         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
2867         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
2868         appropriately.  Handle alternative EON form.
2870 2015-04-30  Renlin Li  <renlin.li@arm.com>
2872         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
2873         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
2875 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
2877         PR ipa/65873
2878         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
2879         -fstrict-aliasing boundaries.
2881 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2883         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
2884         and [SU]MNEGL patterns.
2886 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2888         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
2889         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
2890         combined arithmetic-shift ops.  Properly handle all shift and extend
2891         operations that can occur in combination with PLUS/MINUS.
2892         Rename maybe_fma to compound_p.
2893         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
2894         arithmetic and shift operations.
2896 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2898         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
2899         rather than arith_shift cost when costing ADD/MINUS of an
2900         extended value.
2902 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
2904         PR lto/65948
2905         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
2906         to itself.
2908 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
2910         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
2911         are for the same position.
2913 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
2915         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
2916         vectorize_loops.
2917         (vectorize_loops): Use it.
2919 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
2921         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
2922         for aggregate types.
2923         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
2924         type to be non_ODR.
2925         * tree.c (need_assembler_name_p): Compute mangled name for
2926         non-fundamental types and integer types.
2928 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
2930         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
2931         manual swaps.
2932         * expr.c (expand_expr_real_2): Likewise.
2934 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
2936         * tree.c (build_common_builtin_nodes): Do not build
2937         __builtin_alloca_with_align as equivalent of library alloca.
2939 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
2941         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
2942         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
2943         bugus variants.
2944         * tree.c: Include print-tree.h and ipa-utils.h
2945         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
2946         (free_lang_data_in_cgraph): Call verify_type.
2947         (verify_type_variant): New function.
2948         (verify_type): New function.
2949         * tree.h (verify_type): Declare.
2951 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
2953         * config/mips/mips-cpus.def: (mips4): Change default processor
2954         from PROCESSOR_R8000 to PROCESSOR_R10000.
2956 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
2958         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
2959         la/jalr instead of jal.
2961 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
2963         PR target/65871
2964         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
2965         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
2966         (setcc+movzbl peephole2): Check also clobbered reg.
2967         (setcc+andl peephole2): Ditto.
2969 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
2971         PR libgomp/65099
2972         * config/nvptx/mkoffload.c (target_ilp32): New variable.
2973         (main): Set it depending on "-foffload-abi=[...]".
2974         (compile_native, main): Use it to pass "-m32" or "-m64" to the
2975         compiler.
2977 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
2979         PR target/65770
2980         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
2981         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
2982         Flip lane index back at assembly time for bigendian.
2984 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
2986         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
2987         * gimplify.c (gimplify_omp_workshare): Use it.
2989 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
2991         * Makefile.in (build/genrecog.o): Depend on inchash.h.
2992         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
2993         build/inchash.o
2994         * genrecog.c: Rewrite most of the code except for the third page.
2996 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
2998         * inchash.h, inchash.c: Include bconfig.h for build objects.
2999         * Makefile.in (build/inchash.o): New rule.
3001 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
3003         PR target/65924
3004         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
3005         number in type attribute expression.
3007 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
3009         * loop-iv.c (canon_condition): Generalize to all types of integer
3010         constant.
3012 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
3014         * gimple-walk.c: Prune duplicate or unneeded includes.
3015         (walk_gimple_asm): Only call parse_input_constraint or
3016         parse_output_constraint if their findings are used.
3017         Honour parse_input_constraint and parse_output_constraint
3018         result.
3020 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
3022         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
3024 2015-04-29  Tom de Vries  <tom@codesourcery.com>
3026         PR tree-optimization/65893
3027         * passes.def (pass_all_optimizations): Move pass_stdarg to after
3028         pass_dce.
3030 2015-04-29  Richard Biener  <rguenther@suse.de>
3032         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
3033         compute GROUP_SIZE for basic-block SLP.
3034         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
3035         take into account gaps.
3036         (vect_get_mask_element): Properly reject references to previous
3037         vectors.
3038         (vect_transform_slp_perm_load): Likewise.
3040 2015-04-29  Christian Bruel  <christian.bruel@st.com>
3042         PR target/64835
3043         * config/i386/i386.c (ix86_default_align): New function.
3044         (ix86_override_options_after_change): Call ix86_default_align.
3045         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
3046         (ix86_override_options_after_change): New function.
3048 2015-04-28  Jeff Law  <law@redhat.com>
3050         * tree-ssa-dom.c (record_equality); Fix comment typos.
3052 2015-04-28  Tom de Vries  <tom@codesourcery.com>
3054         PR tree-optimization/65887
3055         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
3057 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
3059         * doc/extend.texi (Declaring Attributes of Functions): Split into
3060         subsections by target.  Alphabetize the table of common attributes.
3061         Rewrite some of the introductory text to reflect the new structure.
3062         Update some cross-references to point to the new subsections.
3063         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
3064         duplicate copies in the discussion of function, label, and type
3065         attributes.
3067 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
3069         PR bootstrap/65910
3070         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
3072 2015-04-28  Jason Merrill  <jason@redhat.com>
3074         PR c++/65734
3075         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
3076         (finalize_type_size): Respect TYPE_USER_ALIGN.
3077         (layout_type) [ARRAY_TYPE]: Likewise.
3079 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
3081         * config/arm/arm.md (*arm_movt): Fix type attribute.
3082         (*cmpsi_shiftsi): Likewise.
3083         (*cmpsi_shiftsi_swp): Likewise.
3084         (*movsicc_insn): Likewise.
3085         (*cond_move): Likewise.
3086         (*if_plus_move): Likewise.
3087         (*if_move_plus): Likewise.
3088         (*if_arith_move): Likewise.
3089         (*if_move_arith): Likewise.
3090         (*if_shift_move): Likewise.
3091         (*if_move_shift): Likewise.
3092         (*arm_movtas_ze): Likewise.
3093         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
3094         redundancy and type attribute.
3095         (*thumb2_movsi_insn): Fix type attribute.
3096         (*thumb2_addsi_short): Likewise.
3097         (thumb2_addsi3_compare0): Likewise.
3098         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
3099         attributes accordingly.
3101 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
3103         PR other/65911
3104         * function.c (pad_to_arg_alignment): Add parentheses.
3106 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
3108         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
3109         libgcc/config/frv/elf-lib.h.
3111 2015-04-28  Tom de Vries  <tom@codesourcery.com>
3113         * tree-call-cdce.c: Fix example in header comment.
3115 2015-04-28  Richard Biener  <rguenther@suse.de>
3117         PR tree-optimization/62283
3118         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
3119         fails fatally and we are vectorizing a basic-block simply
3120         cause the child to be constructed piecewise.
3121         (vect_analyze_slp_cost_1): Adjust.
3122         (vect_detect_hybrid_slp_stmts): Likewise.
3123         (vect_bb_slp_scalar_cost): Likewise.
3124         (vect_get_constant_vectors): For piecewise constructed
3125         constants place them after the last def.
3126         (vect_get_slp_defs): Adjust.
3127         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
3128         externals for basic-block vectorization.
3130 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3132         PR target/63503
3133         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
3134         aarch64-*-*.
3135         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
3136         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
3137         (AARCH64_TUNE_FMA_STEERING): Likewise.
3138         * config/aarch64/aarch64-cores.def: Set
3139         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
3140         FMUL/FMADD instructions.
3141         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
3142         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
3143         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
3144         * config/aarch64/cortex-a57-fma-steering.h: New file.
3145         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3147 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
3149         * gensupport.c (std_preds): Add missing codes to address_operand entry.
3151 2015-04-28  Richard Biener  <rguenther@suse.de>
3153         PR tree-optimization/65851
3154         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
3155         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
3156         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
3157         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
3158         (ccp_visit_phi_node): Adjust.
3159         (evaluate_stmt): For simplifications to SSA names return its
3160         lattice value if that isn't VARYING.  Return immediately when
3161         simplified to a constant.
3162         (visit_assignment): Adjust.
3163         (ccp_visit_stmt): Likewise.
3165 2015-04-28  Tom de Vries  <tom@codesourcery.com>
3167         PR tree-optimization/65818
3168         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
3169         evaluated.
3171 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3173         * calls.c (save_fixed_argument_area): Don't check
3174         ARGS_GROW_DOWNWARD with the preprocessor.
3175         (restore_fixed_argument_area): Likewise.
3176         (mem_overlaps_already_clobbered_arg_p): Likewise.
3177         (check_sibcall_argument_overlap): Likewise.
3178         (expand_call): Likewise.
3179         (emit_library_call_value_1): Likewise.
3180         (store_one_arg): Likewise.
3181         * function.c (assign_parms): Likewise.
3182         (locate_and_pad_parm): Likewise.
3183         (pad_to_arg_alignment): Likewise.
3184         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
3186 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3188         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
3189         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
3190         * calls.c (save_fixed_argument_area): Don't chekc if
3191         ARGS_GROW_DOWNWARD is defined.
3192         (restore_fixed_argument_area): Likewise.
3193         (mem_overlaps_already_clobbered_arg_p): Likewise.
3194         (check_sibcall_argument_overlap): Likewise.
3195         (expand_call): Likewise.
3196         (emit_library_call_value_1): Likewise.
3197         (store_one_arg): Likewise.
3198         * function.c (assign_parms): Likewise.
3199         (locate_and_pad_parm): Likewise.
3200         (pad_to_arg_alignment): Likewise.
3201         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
3203 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3205         * defaults.h (gen_epilogue): New function.
3206         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
3207         defined.
3208         * cfgrtl.c (cfg_layout_finalize): Likewise.
3209         * df-scan.c: Likewise.
3210         * function.c (thread_prologue_and_epilogue_insns): Likewise.
3211         (reposition_prologue_and_epilogue_notes): Likewise.
3212         * reorg.c (find_end_label): Likewise.
3213         * toplev.c: Likewise.
3215 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3217         * bb-reorder.c (HAVE_return): Don't check if its undefined.
3218         * defaults.h (gen_simple_return): New function.
3219         (gen_simple_return): Likewise.
3220         (HAVE_return): Add default definition to false.
3221         (HAVE_simple_return): Likewise.
3222         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
3223         HAVE_return and HAVE_simple_return are defined.
3224         * function.c (gen_return_pattern): Likewise.
3225         (convert_jumps_to_returns): Likewise.
3226         (thread_prologue_and_epilogue_insns): Likewise.
3227         * reorg.c (find_end_label): Likewise.
3228         (dbr_schedule): Likewise.
3229         * shrink-wrap.c: Likewise.
3230         * shrink-wrap.h: Likewise.
3232 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3234         * defaults.h (EPILOGUE_USES): Add default definition of false.
3235         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
3236         * resource.c (init_resource_info): Likewise.
3238 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3240         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
3241         to false.
3242         * dwarf2out.c (field_byte_offset): REmove check if
3243         PCC_BITFIELD_TYPE_MATTERS is defined.
3244         * stor-layout.c (layout_decl): Likewise.
3245         (update_alignment_for_field): Likewise.
3246         (place_field): Likewise.
3248 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3250         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
3251         true.
3252         * regrename.c (check_new_reg_p): Remove check if
3253         HARD_REGNO_RENAME_OK is defined.
3254         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
3256 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3258         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
3259         * cse.c (fold_rtx): Likewise.
3260         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
3261         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
3262         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
3263         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
3264         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
3265         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
3266         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
3267         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
3268         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
3269         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
3270         * Likewise.
3271         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
3272         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
3273         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
3274         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
3275         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
3276         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
3277         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
3278         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
3279         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
3280         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
3281         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
3282         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
3283         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
3284         * doc/tm.texi: Regenerate.
3285         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
3286         either true or false.
3288 2015-04-27  Jeff Law  <law@redhat.com>
3290         PR tree-optimization/65217
3291         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
3292         of them has a single use, make sure it is the LHS of the implied
3293         copy.
3295 2015-04-28  Alan Modra  <amodra@gmail.com>
3297         PR target/65810
3298         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
3299         (offsettable_ok_by_alignment): Use minimum of decl and toc
3300         pointer alignment.  Replace dead code with assertion.
3301         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
3302         case if size exceeds toc pointer alignment.
3303         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
3304         (rs6000_emit_move): Likewise.
3305         * configure.ac: Add linker toc pointer alignment check.
3306         * configure: Regenerate.
3307         * config.in: Regenerate.
3309 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
3311         * config.gcc: Add h8300-*-linux.
3312         * config/h8300/linux.h: New.
3313         * config/h8300/t-linux: New.
3314         * config/h8300/h8300.c (h8300_option_override): Normal mode
3315         is not supported for h8300-*-linux.
3316         (h8300_file_start): Target priority change.
3317         (get_shift_alg): Likewise.
3318         (h8300_shift_need_scratch_p): Likewise.
3319         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3320         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
3322 2015-04-27  Caroline Tice  <cmtice@google.com>
3324         * final.c (final_scan_insn):  Output cold_function_name as function
3325         type.
3326         * varasm.c (cold_function_name):  Make global.
3327         (assemble_start_function):  Re-set cold_function_name.
3328         (assemble_end_function): Output cold partition size.
3329         * varasm.h (cold_function_name):  Declare global.
3331 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
3333         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
3334         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
3335         constraint.
3336         (*movxi_internal_avx512f): Ditto.
3337         (define_split): Check for xmm16+, when splitting scalar float_extend.
3338         (*extendsfdf2_mixed): Use "v" constraint.
3339         (define_split): Check for xmm16+, when splitting scalar float_truncate.
3340         (*truncdfsf_fast_sse): Use "v" constraint.
3341         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
3342         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
3343         (define_peephole2): Check for xmm16+, when converting scalar
3344         float_truncate.
3345         (define_peephole2): Check for xmm16+, when converting scalar
3346         float_extend.
3347         (*fop_<mode>_comm_mixed): Use "v" constraint.
3348         (*fop_<mode>_comm_sse): Ditto.
3349         (*fop_<mode>_1_mixed): Ditto.
3350         (*sqrt<mode>2_sse): Ditto.
3351         (*ieee_s<ieee_maxmin><mode>3): Ditto.
3353 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3355         * combine.c (simplify_if_then_else): Use std::swap instead
3356         of manually swapping.
3357         (known_cond): Likewise.
3358         (simplify_comparison): Likewise.
3360 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
3362         PR target/64579
3363         * config/rs6000/htm.md: Remove all define_expands.
3364         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
3365         UNSPECV_HTM_TABORTWCI): Remove.
3366         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
3367         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
3368         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
3369         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
3370         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
3371         tabortwci_internal): Remove define_insns.
3372         (tabort<wd>c, tabort<wd>ci): New define_insns.
3373         (tabort): Use gpc_reg_operand.
3374         (tcheck): Remove operand.
3375         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
3376         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
3377         expected value.
3378         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
3379         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
3380         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
3381         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
3382         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
3383         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
3384         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
3385         (tcheck): Remove builtin argument.
3386         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
3387         not TARGET_64BIT.
3388         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
3389         tabortdc and tabortdci builtins when not in 64-bit mode.
3390         Modify code to handle the loss of the HTM define_expands.
3391         Emit code to copy the CR register to TARGET.
3392         (htm_init_builtins): Modify code to handle the loss of the HTM
3393         define_expands.
3394         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
3395         (RS6000_BTC_64BIT): Likewise.
3396         (RS6000_BTC_CR): New macro.
3397         * doc/extend.texi: Update documentation for htm builtins.
3399 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3401         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
3402         of manually swapping.
3403         (simplify_associative_operation): Likewise.
3404         (simplify_binary_operation): Likewise.
3405         (simplify_plus_minus): Likewise.
3406         (simplify_relational_operation): Likewise.
3407         (simplify_ternary_operation): Likewise.
3409 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
3411         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
3412         (xs_hi_nonmemory_operand): Remove error.
3413         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
3414         general_operand rather than xs_hi_general_operand.
3416 2015-04-27  Richard Biener  <rguenther@suse.de>
3418         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
3419         (record_equivalences_from_stmt): Valueize rhs.
3420         (record_equality): Canonicalize x and y order via
3421         tree_swap_operands_p.  Do not swap operands for same loop depth.
3423 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
3425         PR target/65296
3426         PR target/65895
3427         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
3428         Add hint how to use own spec file.
3430 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
3432         PR tree-optimization/65875
3433         * tree-vrp.c (update_value_range): If in is_new case setting
3434         old_vr to VR_VARYING, also set new_vr to it.  Remove
3435         old_vr->type == VR_VARYING test.
3436         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
3437         SSA_PROP_INTERESTING if update_value_range returned true,
3438         but new range is VR_VARYING.
3440 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3442         * combine.c (sign_extend_short_imm): New.
3443         (set_nonzero_bits_and_sign_copies): Use above new function for sign
3444         extension of src short immediate.
3445         (reg_nonzero_bits_for_combine): Likewise for tem.
3447 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
3449         * stor-layout.c (self_referential_component_ref_p): New predicate.
3450         (copy_self_referential_tree_r): Use it.
3451         (self_referential_size): Punt for simple operations directly involving
3452         self-referential component references.
3453         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
3455 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
3457         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
3459 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
3461         * vec.h (vec): Make splice arguments const.  Update definitions
3462         accordingly.
3464 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
3466         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
3467         alternatives.
3469 2015-04-26  Tom de Vries  <tom@codesourcery.com>
3471         PR tree-optimization/65826
3472         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
3474 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
3476         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
3477         (*madd3<mode>): Ditto.
3478         (*msub4<mode>): Ditto.
3479         (*msub3<mode>): Ditto.
3480         (*nmadd4<mode>): Ditto.
3481         (*nmadd3<mode>): Ditto.
3482         (*nmadd4<mode>_fastmath): Ditto.
3483         (*nmadd3<mode>_fastmath): Ditto.
3484         (*nmsub4<mode>): Ditto.
3485         (*nmsub3<mode>): Ditto.
3486         (*nmsub4<mode>_fastmath): Ditto.
3487         (*nmsub3<mode>_fastmath): Ditto.
3489 2015-04-24  Jason Merrill  <jason@redhat.com>
3491         PR c++/50800
3492         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
3493         down when building TYPE_CANONICAL.
3494         (build_pointer_type_for_mode): Likewise.
3496 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
3498         * genrecog.c (validate_pattern): Check matching constraint refers
3499         to a lower numbered operand.
3501 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3503         PR target/65849
3504         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
3505         save to independent variables use the Save attribute.  This will
3506         allow these options to be modified with the #pragma/attribute
3507         target support.
3508         (-mallow-movmisalign): Likewise.
3509         (-mallow-df-permute): Likewise.
3510         (-msched-groups): Likewise.
3511         (-malways-hint): Likewise.
3512         (-malign-branch-targets): Likewise.
3513         (-mvectorize-builtins): Likewise.
3514         (-msave-toc-indirect): Likewise.
3516         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
3517         can be set via the #pragma/attribute target support.
3518         (rs6000_opt_vars): Likewise.
3519         (rs6000_inner_target_options): If VSX was set, also set
3520         -mno-avoid-indexed-addresses.
3522 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3524         * config/arm/iterators.md (shiftable_ops): Rename to...
3525         (SHIFTABLE_OPS): ... This.  Update use in comments.
3526         (ior_xor): Rename to...
3527         (IOR_XOR): ... This.
3528         (vqh_ops): Rename to...
3529         (VQH_OPS): ... This.
3530         (vqhs_ops): Rename to...
3531         (VQHS_OPS): ... This.
3532         (rshifts): Rename to...
3533         (RSHIFTS): ... This.
3534         (returns): Rename to...
3535         (RETURNS): ... This.
3536         * config/arm/arm.md: Update uses of the above.
3537         * config/arm/neon.md: Likewise.
3539 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3541         * config.host (case ${host}): Add aarch64*-*-linux case.
3542         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
3543         fields to all the cores.
3544         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
3545         Add MCPU_MTUNE_NATIVE_SPECS.
3546         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
3547         field to all extensions.
3548         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
3549         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
3550         Adjust definition of AARCH64_OPT_EXTENSION.
3551         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
3552         (MCPU_MTUNE_NATIVE_SPECS): Define.
3553         * config/aarch64/driver-aarch64.c: New file.
3554         * config/aarch64/x-arch64: New file.
3555         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
3556         -mtune and -march.
3558 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
3559             Wei Mi  <wmi@google.com>
3561         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
3562         * config/i386/i386.c (extract_base_offset_in_addr): New function.
3563         (ix86_operands_ok_for_move_multiple): Ditto.
3564         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
3565         (movlpd/movhpd to movupd peephole2): Ditto.
3567 2015-04-24  Marek Polacek  <polacek@redhat.com>
3569         PR c/61534
3570         * input.h (from_macro_expansion_at): Define.
3572         PR c/63357
3573         * doc/invoke.texi: Update description of -Wlogical-op.
3575 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3577         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
3578         ternary operator in fprintf and harmonize spacing.
3580 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
3582         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
3583         Mark operand1 commutative.
3585 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
3587         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
3588         input operands in memory.
3589         (*vec_concatv2si_sse4_1): Ditto.
3590         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
3591         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
3592         register_operand.
3593         (vec_extract_hi_v32hi): Ditto.
3594         (vec_extract_hi_v64hi): Ditto.
3595         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
3597 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3598             Steven Bosscher <steven@gcc.gnu.org>
3600         PR rtl-optimization/34503
3601         * cprop.c (cprop_reg_p): New.
3602         (hash_scan_set): Use above function to check if register can be
3603         propagated.
3604         (find_avail_set): Return up to two sets, one whose source is a
3605         register and one whose source is a constant.  Sets are returned in an
3606         array passed as parameter rather than as a return value.
3607         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
3608         sets returned by find_avail_set, starting with the one whose source is
3609         a constant. Use cprop_reg_p to check if register can be propagated.
3610         (do_local_cprop): Use cprop_reg_p to check if register can be
3611         propagated.
3612         (implicit_set_cond_p): Likewise.
3614 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
3616         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
3617         (sem_function::equals): IGNORED_NODES parameter is now unused;
3618         update call of equals_private.
3619         (sem_function::equals_private): Do not call equals_wpa; skip
3620         gimple body matching if there is no body.
3621         (sem_function::init): Add logic to hash tthunk info.
3622         (sem_function::parse): Also parse thunks.
3623         * ipa-icf.h (equals_private): Update declaration.
3625 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3627         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
3628         asterisk from name so this can be generated directly.
3629         (*altivec_stvx_<mode>_internal): Likewise.
3630         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
3631         that this is never called during or after reload/lra.
3632         (rs6000_frame_related): Remove split_reg
3633         argument and logic that references it.
3634         (emit_frame_save): Remove last parameter from call to
3635         rs6000_frame_related.
3636         (rs6000_emit_prologue): Remove last parameter from eight calls to
3637         rs6000_frame_related.  Force generation of stvx instruction for
3638         Altivec register saves.  Remove split_reg handling, which is no
3639         longer needed.
3640         (rs6000_emit_epilogue):  Force generation of lvx instruction for
3641         Altivec register restores.
3643 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3645         * config/rs6000/rs6000.opt (mcrypto): Change option description to
3646         match category changes in ISA 2.07B.
3648 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3650         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
3651         iterators.
3652         (cmp_op, cmp_type): New code attributes.
3653         (NEON_VCMP, NEON_VACMP): New int iterators.
3654         (cmp_op_unsp): New int attribute.
3655         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
3656         (neon_vceq<mode>): Delete.
3657         (neon_vc<cmp_op><mode>_insn): New pattern.
3658         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
3659         (neon_vcgeu<mode>): Delete.
3660         (neon_vcle<mode>): Likewise.
3661         (neon_vclt<mode>: Likewise.
3662         (neon_vcage<mode>): Likewise.
3663         (neon_vcagt<mode>): Likewise.
3664         (neon_vca<cmp_op><mode>): New define_expand.
3665         (neon_vca<cmp_op><mode>_insn): New pattern.
3666         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
3668 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
3670         * tree.h (attribute_value_equal): Declare.
3671         * tree.c (attribute_value_equal): Export.
3673 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
3675         * ipa-icf.c (sem_item::compare_attributes): New function.
3676         (sem_item::compare_referenced_symbol_properties): Compare variable
3677         attributes.
3678         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
3679         (sem_function::param_used_p): New function.
3680         (sem_function::equals_wpa): Fix attribute comparsion; match
3681         parameter type codes; do not compare paremter flags when
3682         they are not used; compare edge flags; compare indirect calls.
3683         (sem_item::update_hash_by_addr_refs): Hash reference type.
3684         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
3685         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
3686         reference use type.
3687         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
3688         * ipa-icf.h (compare_attributes, param_used_p): Declare.
3690 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
3692         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
3693         cleanup.
3694         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
3695         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
3696         (sem_item::compare_referenced_symbol_properties): New.
3697         (sem_item::hash_referenced_symbol_properties): New.
3698         (sem_item::compare_cgraph_references): Rename to ...
3699         (sem_item::compare_symbol_references): ... this one; use
3700         compare_referenced_symbol_properties.
3701         (sem_function::equals_wpa): Do not compare
3702         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
3703         DECL_IS_OPERATOR_NEW; compare pointer sizes.
3704         (sem_item::update_hash_by_addr_refs): Call
3705         hash_referenced_symbol_properties.
3706         (sem_item::update_hash_by_local_refs): Cleanup.
3707         (sem_function::merge): Do not mix up symbol properties.
3708         (sem_variable::equals_wpa): Use compare_symbol_references.
3709         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
3710         (sem_item::hash_referenced_symbol_properties): New.
3711         (sem_item::compare_symbol_references): New.
3712         (sem_item::compare_cgraph_references): Remove.
3714 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
3716         PR target/26702
3717         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
3718         Emit size of local.
3720 2015-04-23  Nick Clifton  <nickc@redhat.com>
3722         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
3723         ATTRIBUTE_UNUSED to x parameter.
3724         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
3726 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3728         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
3729         TARGET_CRYPTO to TARGET_P8_VECTOR>
3730         (crypto_vpermxor_<mode>): Likewise.
3731         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
3732         (BU_CRYPTO_3A): Likewise.
3733         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
3734         (BU_CRYPTO_OVERLOAD_3A): New #define.
3735         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
3736         (VPMSUMH): Likewise.
3737         (VPMSUMW): Likewise.
3738         (VPMSUMD): Likewise.
3739         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
3740         (VPERMXOR_V4SI): Likewise.
3741         (VPERMXOR_V8HI): Likewise.
3742         (VPERMXOR_V16QI): Likewise.
3743         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
3744         BU_CRYPTO_OVERLOAD_2A.
3745         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
3746         BU_CRYPTO_OVERLOAD_3A.
3747         * config/rs6000/rs6000.opt (mcrypto): Change description of
3748         option.
3750 2015-04-23  Richard Biener  <rguenther@suse.de>
3752         * passes.def: Remove copy propagation passes run directly after CCP.
3753         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
3754         SSA names.
3755         (ccp_visit_phi_node): Rework to handle first executable edge
3756         specially.
3758 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
3760         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
3761         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
3762         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
3763         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
3764         (thumb_legimitimize_reload_address): Remove.
3765         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
3766         Remove.
3767         (thumb_legimitimize_reload_address): Remove.
3769 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3771         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
3773 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3775         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
3776         MAX_LDM_STM_OPS.
3777         (store_multiple): Likewise.
3779 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3781         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
3782         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
3783         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
3784         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
3785         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
3786         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
3787         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
3788         Specify issue_rate value.
3789         (arm_issue_rate): Look up issue rate from tuning structs. Remove
3790         large switch statement.
3791         (arm_marvell_pj4_tune): New struct.
3792         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
3793         struct.
3795 2015-04-23  Richard Biener  <rguenther@suse.de>
3797         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
3798         (vect_find_last_store_in_slp_instance): Rename to ...
3799         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
3800         (vect_analyze_slp_cost_1): Use vector_load for constant defs
3801         and vec_construct for external defs when estimating prologue cost.
3802         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
3803         Compute costs here only when vectorizing loops.
3804         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
3805         have been determined.
3806         (vect_schedule_slp_instance): Simplify vectorized code placement
3807         and prepare for in-BB external defs.
3808         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
3809         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
3810         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
3811         guard.
3812         (vect_model_load_cost): Likewise.
3813         (vectorizable_store): Instead add it here.
3814         (vectorizable_load): Likewise.
3815         (vect_is_simple_use): Dump def type textually.
3817 2015-04-23  Richard Biener  <rguenther@suse.de>
3819         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
3820         * cfgloop.c (verify_loop_structure): Verify the root loop node.
3821         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
3822         instead of get_eh_region_from_lp_number.
3823         * loop-init.c (fix_loop_structure): If we removed a loop, reset
3824         the SCEV cache.
3826 2015-04-23  Anton Blanchard  <anton@samba.org>
3828         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
3829         need for -mprofile-kernel to save LR to stack.
3831 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3833         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
3834         adjustments.
3835         (insn_is_swappable_p): Return 1 for a convert from double to
3836         single precision when all of its uses are splats of BE element
3837         zero.
3839 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
3841         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
3843 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3845         PR target/65456
3846         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
3847         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
3848         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
3849         option.
3850         (rs6000_builtin_mask_for_load): Return 0 for targets with
3851         efficient unaligned VSX accesses so that the vectorizer will use
3852         direct unaligned loads.
3853         (rs6000_builtin_support_vector_misalignment): Always return true
3854         for targets with efficient unaligned VSX accesses.
3855         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
3856         stores on targets with efficient unaligned VSX accesses is almost
3857         always the same as the cost of an aligned load or store, so model
3858         it that way.
3859         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
3860         unaligned vectors if we have efficient unaligned VSX accesses.
3861         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
3862         undocumented option.
3864 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3866         Revert:
3867         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
3869         * config.gcc (LIBC_MUSL): New tm_defines macro.
3870         * config/linux.h (OPTION_MUSL): Define.
3871         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
3872         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
3873         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
3875         * config/linux.opt (mmusl): New option.
3876         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
3877         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
3879         * configure: Regenerate.
3881 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
3883         * config.gcc (LIBC_MUSL): New tm_defines macro.
3884         * config/linux.h (OPTION_MUSL): Define.
3885         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
3886         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
3887         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
3889         * config/linux.opt (mmusl): New option.
3890         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
3891         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
3893         * configure: Regenerate.
3895 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
3897         * doc/invoke.texi (-fsanitize-sections): Update description.
3898         * asan.c (set_sanitized_sections): Parse incoming arg.
3899         (section_sanitized_p): Support wildcards.
3901 2015-04-22  Tom de Vries  <tom@codesourcery.com>
3903         PR tree-optimization/65823
3904         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
3905         equality between ap_copy and ap.
3907 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3909         PR target/47098
3910         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
3912 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3914         PR target/47122
3915         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
3917 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3919         PR target/55144
3920         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
3921         remove already contained t-files.
3923 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3925         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
3926         Remove unneeded forward declarations.
3927         (suitable_for_tail_call_opt_p): Commentary typo fix.
3929 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3931         * varasm.c (emit_bss): Remove redundant guard.
3933 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3935         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
3937 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3939         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
3941 2015-04-22  Hale Wang  <hale.wang@arm.com>
3942             Terry Guo  <terry.guo@arm.com>
3944         PR rtl-optimization/64818
3945         * combine.c (can_combine_p): Don't combine user-specified
3946         register if it is in an asm input.
3948 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
3950         PR ipa/65076
3951         * passes.def (early_optimizations): Add pass_dse.
3953 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3955         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
3956         * reorg.c (redundant_insn): Remove ifdef
3957         INSN_REFERENCES_ARE_DELAYED.
3958         * resource.c (mark_referenced_resources): Likewise.
3960 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3962         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
3963         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
3964         * resource.c (mark_set_resources): Likewise.
3966 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3968         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
3969         * cfgcleanup.c (flow_find_cross_jump): Likewise.
3970         (flow_find_head_matching_sequence): Likewise.
3971         (try_head_merge_bb): Likewise.
3972         * combine.c (can_combine_p): Likewise.
3973         (try_combine): Likewise.
3974         (distribute_notes): Likewise.
3975         * df-problems.c (can_move_insns_across): Likewise.
3976         * final.c (final): Likewise.
3977         * gcse.c (insert_insn_end_basic_block): Likewise.
3978         * ira.c (find_moveable_pseudos): Likewise.
3979         * reorg.c (try_merge_delay_insns): Likewise.
3980         (fill_simple_delay_slots): Likewise.
3981         (fill_slots_from_thread): Likewise.
3982         * sched-deps.c (sched_analyze_2): Likewise.
3984 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3986         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
3987         PIC_OFFSET_TABLE_REGNUM.
3989 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3991         * alias.c (init_alias_target): Remove ifdef
3992         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
3993         * df-scan.c (df_insn_refs_collect): Likewise.
3994         (df_get_regular_block_artificial_uses): Likewise.
3995         (df_get_eh_block_artificial_uses): Likewise.
3996         (df_get_entry_block_def_set): Likewise.
3997         (df_get_exit_block_use_set): Likewise.
3998         * emit-rtl.c (gen_rtx_REG): Likewise.
3999         * ira.c (ira_setup_eliminable_regset): Likewise.
4000         * reginfo.c (init_reg_sets_1): Likewise.
4001         * regrename.c (rename_chains): Likewise.
4002         * reload1.c (reload): Likewise.
4003         (eliminate_regs_in_insn): Likewise.
4004         * resource.c (mark_referenced_resources): Likewise.
4005         (init_resource_info): Likewise.
4007 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4009         * defaults.h (MASK_RETURN_ADDR): New definition.
4010         * except.c (expand_builtin_extract_return_addr): Remove ifdef
4011         MASK_RETURN_ADDR.
4013 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4015         * defaults.h (RETURN_ADDR_OFFSET): New definition.
4016         * except.c (expand_builtin_extract_return_addr): Remove ifdef
4017         RETURN_ADDR_OFFSET.
4018         (expand_builtin_frob_return_addr): Likewise.
4020 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4022         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
4023         (try_redirect_by_replacing_jump): Likewise.
4024         (rtl_tidy_fallthru_edge): Likewise.
4025         * combine.c (insn_a_feeds_b): Likewise.
4026         (find_split_point): Likewise.
4027         (simplify_set): Likewise.
4028         * cprop.c (cprop_jump): Likewise.
4029         * cse.c (cse_extended_basic_block): Likewise.
4030         * df-problems.c (can_move_insns_across): Likewise.
4031         * function.c (emit_use_return_register_into_block): Likewise.
4032         * haifa-sched.c (sched_init): Likewise.
4033         * ira.c (find_moveable_pseudos): Likewise.
4034         * loop-invariant.c (find_invariant_insn): Likewise.
4035         * lra-constraints.c (curr_insn_transform): Likewise.
4036         * postreload.c (reload_combine_recognize_const_pattern):
4037         * Likewise.
4038         * reload.c (find_reloads): Likewise.
4039         * reorg.c (delete_scheduled_jump): Likewise.
4040         (steal_delay_list_from_target): Likewise.
4041         (steal_delay_list_from_fallthrough): Likewise.
4042         (redundant_insn): Likewise.
4043         (fill_simple_delay_slots): Likewise.
4044         (fill_slots_from_thread): Likewise.
4045         (delete_computation): Likewise.
4046         * sched-rgn.c (add_branch_dependences): Likewise.
4048 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4050         * genconfig.c (main): Always define HAVE_cc0.
4051         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
4052         HAVE_cc0.
4053         * cfgcleanup.c (flow_find_cross_jump): Likewise.
4054         (flow_find_head_matching_sequence): Likewise.
4055         (try_head_merge_bb): Likewise.
4056         * cfgrtl.c (rtl_merge_blocks): Likewise.
4057         (try_redirect_by_replacing_jump): Likewise.
4058         (rtl_tidy_fallthru_edge): Likewise.
4059         * combine.c (do_SUBST_MODE): Likewise.
4060         (insn_a_feeds_b): Likewise.
4061         (combine_instructions): Likewise.
4062         (can_combine_p): Likewise.
4063         (try_combine): Likewise.
4064         (find_split_point): Likewise.
4065         (subst): Likewise.
4066         (simplify_set): Likewise.
4067         (distribute_notes): Likewise.
4068         * cprop.c (cprop_jump): Likewise.
4069         * cse.c (cse_extended_basic_block): Likewise.
4070         * df-problems.c (can_move_insns_across): Likewise.
4071         * final.c (final): Likewise.
4072         (final_scan_insn): Likewise.
4073         * function.c (emit_use_return_register_into_block): Likewise.
4074         * gcse.c (insert_insn_end_basic_block): Likewise.
4075         * haifa-sched.c (sched_init): Likewise.
4076         * ira.c (find_moveable_pseudos): Likewise.
4077         * loop-invariant.c (find_invariant_insn): Likewise.
4078         * lra-constraints.c (curr_insn_transform): Likewise.
4079         * optabs.c (prepare_cmp_insn): Likewise.
4080         * postreload.c (reload_combine_recognize_const_pattern):
4081         * Likewise.
4082         * reload.c (find_reloads): Likewise.
4083         (find_reloads_address_1): Likewise.
4084         * reorg.c (delete_scheduled_jump): Likewise.
4085         (steal_delay_list_from_target): Likewise.
4086         (steal_delay_list_from_fallthrough): Likewise.
4087         (try_merge_delay_insns): Likewise.
4088         (redundant_insn): Likewise.
4089         (fill_simple_delay_slots): Likewise.
4090         (fill_slots_from_thread): Likewise.
4091         (delete_computation): Likewise.
4092         (relax_delay_slots): Likewise.
4093         * sched-deps.c (sched_analyze_2): Likewise.
4094         * sched-rgn.c (add_branch_dependences): Likewise.
4096 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4098         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
4099         that is trivially ded on non cc0 targets.
4100         (simplify_set): Likewise.
4101         (mark_used_regs_combine): Likewise.
4102         * cse.c (new_basic_block): Likewise.
4103         (fold_rtx): Likewise.
4104         (cse_insn): Likewise.
4105         (cse_extended_basic_block): Likewise.
4106         (set_live_p): Likewise.
4107         * rtlanal.c (canonicalize_condition): Likewise.
4108         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4110 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4112         * conditions.h: Define macros even if HAVE_cc0 is undefined.
4113         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
4114         * final.c: Likewise.
4115         * jump.c: Likewise.
4116         * recog.c: Likewise.
4117         * recog.h: Declare functions even when HAVE_cc0 is undefined.
4118         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
4120 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4122         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
4123         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
4124         * builtins.c (expand_builtin): Remove check if
4125         EH_RETURN_DATA_REGNO is defined.
4126         * df-scan.c (df_bb_refs_collect): Likewise.
4127         (df_get_exit_block_use_set): Likewise.
4128         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
4129         * ira-lives.c (process_bb_node_lives): Likewise.
4130         * lra-lives.c (process_bb_lives): Likewise.
4132 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
4134         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
4135         FIRST_PSEUDO_REG): New.
4136         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
4137         (ARG_POINTER_REGNUM): Define to ARGP_REG.
4138         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
4139         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
4140         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
4141         (FIRST_INT_REG): New.
4142         (LAST_INT_REG): New.
4143         (FIRST_*_REG): Define using *_REG.
4144         (LAST_*_REG): Ditto.
4145         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
4146         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
4147         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
4149 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4151         * expmed.c: (synth_mult): Only assume overlapping
4152         shift with previous steps in alg_sub_t_m2 case.
4154 2015-04-21  Richard Biener  <rguenther@suse.de>
4156         PR tree-optimization/65650
4157         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
4158         transitions involving copies.
4159         (set_lattice_value): Adjust for copy lattice state.
4160         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
4161         if that doesn't dominate the merge point.
4162         (bit_value_unop): Adjust what we treat as varying mask.
4163         (bit_value_binop): Likewise.
4164         (bit_value_assume_aligned): Likewise.
4165         (evaluate_stmt): When we simplified to a SSA name record a copy
4166         instead of dropping to varying.
4167         (visit_assignment): Simplify.
4169         * gimple-match.h (gimple_simplify): Add another callback.
4170         * gimple-fold.c (fold_stmt_1): Adjust caller.
4171         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
4172         for the 2nd callback.
4173         * gimple-match-head.c (gimple_simplify): Add a callback that is
4174         used to valueize the stmt operands and use it that way.
4176 2015-04-21  Richard Biener  <rguenther@suse.de>
4178         PR tree-optimization/65788
4179         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
4181 2015-04-21  Richard Biener  <rguenther@suse.de>
4183         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
4184         vec_construct cost by vec_stmt_cost.
4186 2015-04-21  Richard Biener  <rguenther@suse.de>
4188         * cfghooks.h (create_basic_block): Replace with two overloads
4189         for RTL and GIMPLE.
4190         (split_block): Likewise.
4191         * cfghooks.c (split_block): Rename to ...
4192         (split_block_1): ... this.
4193         (split_block): Add two type-safe overloads for RTL and GIMPLE.
4194         (split_block_after_labels): Call split_block_1.
4195         (create_basic_block): Rename to ...
4196         (create_basic_block_1): ... this.
4197         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
4198         (create_empty_bb): Call create_basic_block_1.
4199         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
4200         split_block_after_labels.
4201         * omp-low.c (expand_parallel_call): Likewise.
4202         (expand_omp_target): Likewise.
4203         (simd_clone_adjust): Likewise.
4204         * tree-chkp.c (chkp_get_entry_block): Likewise.
4205         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
4206         create_basic_block overload.
4207         (cgraph_node::expand_thunk): Likewise.
4208         * tree-cfg.c (make_blocks): Likewise.
4209         (handle_abnormal_edges): Likewise.
4210         * tree-inline.c (copy_bb): Likewise.
4212 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4214         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
4215         New pattern.
4216         (*xor_one_cmplsidi3_ze): Likewise.
4218 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4220         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
4221         use df_remove_problem rather than manually removing problems, leaving
4222         holes in df->problems_in_order[].
4224 2015-04-21  Tom de Vries  <tom@codesourcery.com>
4226         PR tree-optimization/65802
4227         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
4229 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4231         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
4232         Increase to 128.
4233         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
4234         at '.'.  Assert that there's enough space for everything.
4236 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
4238         PR tree-optimization/64950
4239         Revert:
4240         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
4242         PR target/41089
4243         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
4244         as volatile.
4246 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
4248         PR rtl-optimization/64916
4249         * cfgcleanup.c (values_equal_p): New function.
4250         (can_replace_by): Use it.
4252 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
4254         PR c++/65801
4255         * doc/invoke.texi ([-Wnarrowing]): Update.
4257 2015-04-20  Jeff Law  <law@redhat.com>
4259         PR tree-optimization/65658
4260         * tree-ssa-threadupdate.c (redirection_block_p): Remove
4261         redundant test for GIMPLE_ASSIGN in last change.
4263 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
4265         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
4266         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
4267         (legitimize_tls_address): Ditto.
4268         (ix86_expand_move): Ditto.
4269         (ix86_expand_binary_operator): Remove reload_in_progress checks.
4270         (ix86_expand_unary_operator): Ditto.
4271         * config/i386/predicates.md (index_register_operand): Ditto.
4273 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
4275         * reorg.c (try_merge_delay_insns): Improve correctness checking
4276         for targets with multiple delay slots.
4278 2015-04-20  Jeff Law  <law@redhat.com>
4280         PR tree-optimization/65658
4281         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
4282         statements too.
4284 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
4286         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
4287         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
4288         Delete.
4290 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
4292         PR debug/65807
4293         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
4295 2015-04-20  Richard Biener  <rguenther@suse.de>
4297         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
4298         * gimple-fold.c (gimple_build_valueize): New function.
4299         (gimple_build): Always use gimple_build_valueize as valueize hook.
4301 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
4303         PR target/64134
4304         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
4305         and overwrite variable parts if <= 1/2 the elements are variable.
4307 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
4309         PR rtl-optimization/65805
4310         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
4311         Don't use difference of offset and previous offset if
4312         update_sp_offset is non-zero.
4313         (eliminate_regs_in_insn): Ditto.
4314         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
4315         lra_eliminate_regs_1 call.
4316         * lra-constraints.c (get_equiv_with_elimination): Ditto.
4318 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
4320         * hash-table.h: Remove version of hash_table that stored value_type *.
4321         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
4322         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
4323         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
4324         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
4325         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
4326         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
4327         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
4328         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
4329         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
4330         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
4331         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
4332         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
4333         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
4334         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
4335         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
4336         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
4338 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4339             Jakub Jelinek  <jakub@redhat.com>
4341         PR target/65787
4342         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
4343         subsequent SH_NONE operand does not overwrite an existing *special
4344         value.
4345         (adjust_extract): Handle case where a vec_extract operation is
4346         wrapped in a PARALLEL.
4348 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
4350         PR target/65780
4351         * config/i386/i386.c (ix86_binds_local_p): Define only if
4352         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
4354 2015-04-17  Jeff Law  <law@redhat.com>
4356         PR tree-optimization/47679
4357         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
4358         * tree-ssa-scopedtables.c: New file.
4359         * tree-ssa-scopedtables.h: New file.
4360         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
4361         (const_and_copies): Change name/type.
4362         (record_const_or_copy): Move into tree-ssa-scopedtables.c
4363         (record_const_or_copy_1): Similarly.
4364         (restore_vars_to_original_value): Similarly.
4365         (pass_dominator::execute): Create and destroy const_and_copies table.
4366         (thread_across_edge): Update passing of const_and_copies.
4367         (record_temporary_equivalence): Use method calls rather than
4368         manipulating const_and_copies directly.
4369         (record_equality, cprop_into_successor_phis): Similarly.
4370         (dom_opt_dom_walker::before_dom_children): Similarly.
4371         (dom_opt_dom_walker::after_dom_children): Similarly.
4372         (eliminate_redundant_computations): Similarly.
4373         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
4374         (record_temporary_equivalence): Likewise.
4375         (invalidate_equivalences): Likewise.
4376         (record_temporary_equivalences_from_phis): Update due to type
4377         change of const_and_copies.  Use method calls rather than
4378         manipulating the stack directly.
4379         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4380         (thread_through_normal_block, thread_across_edge): Likewise.
4381         (thread_across_edge): Likewise.
4382         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
4383         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
4384         of equiv_stack.
4385         (identify_jump_threads): Update due to type change of equiv_stack.
4386         (finalize_jump_threads): Delete the equiv_stack when complete.
4388 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
4390         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
4391         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
4392         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
4394 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
4396         PR target/65535
4397         * config.gcc: Exit with a comment when we do not have a major version
4398         number for the FreeBSD target.
4400 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
4402         PR target/65689
4403         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
4404         maybe_allows_mem bitfields.
4405         (maybe_allows_none_start, maybe_allows_none_end,
4406         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
4407         maybe_allows_mem_end): New variables.
4408         (compute_maybe_allows): New function.
4409         (add_constraint): Use it to initialize maybe_allows_reg and
4410         maybe_allows_mem fields.
4411         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
4412         is_address constraints such that those that allow neither mem nor
4413         reg come first, then those that only allow reg but not mem, then
4414         those that only allow mem but not reg, then the rest.
4415         (write_allows_reg_mem_function): New function.
4416         (write_tm_preds_h): Call it.
4417         * stmt.c (parse_output_constraint, parse_input_constraint): Use
4418         the generated insn_extra_constraint_allows_reg_mem function
4419         instead of always setting *allows_reg = true; *allows_mem = true;
4420         for unknown extra constraints.
4422 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
4424         PR target/65780
4425         * output.h (default_binds_local_p_3): New.
4426         * varasm.c (default_binds_local_p_3): Make it public.  Take an
4427         argument to indicate if common symbol may be local.  If common
4428         symbol may be local, treat non-external variable as defined
4429         locally.
4430         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
4431         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
4432         * config/i386/i386.c (ix86_binds_local_p): New.
4433         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
4434         ix86_binds_local_p.
4436 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
4438         PR debug/65771
4439         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
4440         trying mem_loc_descriptor on XEXP (rtl, 0).
4442 2015-04-17  Martin Liska  <mliska@suse.cz>
4444         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
4445         Release symbol_compare_collection.
4446         * ipa-reference.c: Add TODO that a vector should be released.
4448 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
4450         PR target/65296
4451         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
4452         to new AVR-LibC file layout (bug #44574).
4453         (*avrlibc_devicelib): Same.
4454         * config/avr/avr-mcus.def: Adjust comments.
4455         * config/avr/avr.opt (nodevicelib): Adjust help.
4457 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
4459         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
4461 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
4463         PR c++/64527
4464         * gimplify.c (gimplify_init_constructor): Always emit a
4465         side-effecting constructor.
4467 2015-04-17  Tom de Vries  <tom@codesourcery.com>
4469         PR tree-optimization/64950
4470         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
4471         in cfun->curr_properties.
4472         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
4473         if we generate an IFN_VA_ARG.
4474         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
4475         function if PROP_gimple_lva is not set in src function.
4477 2015-04-17  Tom de Vries  <tom@codesourcery.com>
4478             Michael Matz  <matz@suse.de>
4480         PR tree-optimization/64950
4481         * gimple-iterator.c (update_modified_stmts): Remove static.
4482         * gimple-iterator.h (update_modified_stmts): Declare.
4483         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
4484         (gimplify_va_arg_internal): New function.
4485         (gimplify_va_arg_expr): Use IFN_VA_ARG.
4486         * gimplify.h (gimplify_va_arg_internal): Declare.
4487         * internal-fn.c (expand_VA_ARG): New unreachable function.
4488         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
4489         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
4490         (expand_ifn_va_arg): New function.
4491         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
4492         (pass_stdarg::execute): Call expand_ifn_va_arg.
4493         (pass_data_lower_vaarg): New pass_data.
4494         (pass_lower_vaarg): New gimple_opt_pass.
4495         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
4496         (make_pass_lower_vaarg): New function.
4497         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
4498         properties_required field.
4499         * passes.def (all_passes): Add pass_lower_vaarg.
4500         * tree-pass.h (PROP_gimple_lva): Add define.
4501         (make_pass_lower_vaarg): Declare.
4503 2015-04-17  Tom de Vries  <tom@codesourcery.com>
4505         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
4506         * calls.c (call_expr_flags): Same.
4508 2015-04-17  Tom de Vries  <tom@codesourcery.com>
4510         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
4511         (pass_stdarg::execute): ... here.
4513 2015-04-17  Tom de Vries  <tom@codesourcery.com>
4514             Michael Matz  <matz@suse.de>
4516         * tree-cfg.c (make_blocks_1): Factor out of ...
4517         (make_blocks): ... here.
4518         (make_edges_bb): Factor out of ...
4519         (make_edges): ... here.
4520         (gimple_find_sub_bbs): New function.
4521         * tree-cfg.h (gimple_find_sub_bbs): Declare.
4523 2015-04-17  Tom de Vries  <tom@codesourcery.com>
4525         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
4527 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
4529         * asan.c (set_sanitized_sections): New function.
4530         (section_sanitized_p): Ditto.
4531         (asan_protect_global): Optionally sanitize user-defined
4532         sections.
4533         * asan.h (set_sanitized_sections): Declare new function.
4534         * common.opt (fsanitize-sections): New option.
4535         * doc/invoke.texi (-fsanitize-sections): Document new option.
4536         * opts-global.c (handle_common_deferred_options): Handle new
4537         option.
4539 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
4541         PR debug/65771
4542         * dwarf2out.c (loc_list_from_tree): Return NULL
4543         for DEBUG_EXPR_DECL.
4545 2015-04-17  Christian Bruel  <christian.bruel@st.com>
4547         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
4548         same attributes.
4550 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
4552         * ira-color.c (setup_left_conflict_sizes_p): Do not process
4553         node itself when computing left conflict subnode size.
4555 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
4557         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
4558         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
4559         *fop_<mode>_1_sse using enabled attribute.  Use
4560         register_mixssei387nonimm_operand operand 1 predicate. Change
4561         alternative 3 constraints from "x" to "v".
4563 2015-04-16  Richard Biener  <rguenther@suse.de>
4565         PR tree-optimization/65774
4566         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
4567         bit-value tracking on.
4569 2015-04-16  Richard Biener  <rguenther@suse.de>
4571         PR tree-optimization/64277
4572         * tree-vrp.c (check_array_ref): Fix anti-range handling,
4573         simplify upper bound handling.
4574         (search_for_addr_array): Simplify.
4575         (check_array_bounds): Handle ADDR_EXPRs here.
4576         (check_all_array_refs): Simplify.
4578 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
4580         * config/i386/i386.c (print_reg): Rewrite function.
4582 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4584         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
4585         Invert the condition.
4587 2015-04-16  Renlin Li  <renlin.li@arm.com>
4589         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
4590         simplifications for UNSIGNED_FLOAT.
4592 2015-04-16  Nick Clifton  <nickc@redhat.com>
4594         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
4595         MUL_UNINIT.
4596         (enum rl78_cpu_type): New.
4597         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
4598         (umulhi3_shift_virt): Remove m constraint from operand 1.
4599         (umulqihi3_virt): Likewise.
4600         * config/rl78/rl78.c (rl78_option_override): Add code to process
4601         -mcpu and -mmul options.
4602         (rl78_alloc_physical_registers): Add code to handle divhi and
4603         divsi valloc attributes.
4604         (set_origin): Likewise.
4605         * config/rl78/rl78.h (RL78_MUL_G14): Define.
4606         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
4607         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
4608         __RL78_Gxx__.
4609         (ASM_SPEC): Pass -mcpu on to assembler.
4610         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
4611         (mulqi3_rl78): Likewise.
4612         (mulhi3_g13): Likewise.
4613         (mulhi3): Generate the G13 or G14 versions of the insn directly.
4614         (mulsi3): Likewise.
4615         (mulhi3_g14): Add clobbers of AX and BC.
4616         (mulsi3_g14): Likewise.
4617         (mulsi3_g13): Likewise.
4618         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
4619         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
4620         * config/rl78/rl78.opt (mmul): Initialise value to
4621         RL78_MUL_UNINIT.
4622         (mcpu): New option.
4623         (m13, m14, mrl78): New option aliases.
4624         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
4625         (MULTILIB_DIRNAMES): Add g13 and g14.
4626         * doc/invoke.texi: Document -mcpu and -mmul options.
4628 2015-04-16  Richard Biener  <rguenther@suse.de>
4630         * tree-ssa-ccp.c (likely_value): See if we have operands that
4631         are marked as never simulate again and return CONSTANT in this
4632         case.
4633         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
4634         not have any operands that will be simulated again as
4635         not being simulated again.
4637 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
4639         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
4640         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
4641         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
4642         attribute.
4643         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
4644         enabled attribute.
4645         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
4646         *float<SWI48:mode><MODEF:mode>2_sse.
4647         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
4648         enabled attribute.
4649         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
4650         enabled attribute.
4652 2015-04-15  Tom de Vries  <tom@codesourcery.com>
4654         PR other/65487
4655         * function.c (push_dummy_function): New function.
4656         (init_dummy_function_start): Use push_dummy_function.
4657         (pop_dummy_function): New function.  Factored out of ...
4658         (expand_dummy_function_end): ... here.
4659         * function.h (push_dummy_function, pop_dummy_function): Declare.
4660         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
4661         pop_dummy_function.
4662         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
4664 2015-04-15  Jeff Law  <law@redhat.com>
4666         PR tree-optimization/47679
4667         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
4668         need for forward declaration in upcoming changes.
4669         (record_conditions, record_edge_info): Likewise.
4671         PR rtl-optimization/42522
4672         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
4673         SIGN_EXTRACT as a whole object rather than simplifying
4674         its operand.
4676 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
4678         PR ipa/65765
4679         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
4680         and GIMPLE_PREDICT use break instead of return true. For
4681         GIMPLE_EH_DISPATCH, compare dispatch region.
4683 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
4685         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
4686         details about the implementation.  Make clear preference for
4687         __atomic builtins.  Reduce possibility of future change.
4689 2015-04-15  Nick Clifton  <nickc@redhat.com>
4691         * config/rx/rx.opt (mallow-string-insns): New option.
4692         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
4693         builtin if string instructions are denied.
4694         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
4695         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
4696         appropriate.
4697         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
4698         * config/rx/rx.md (movstr): Enable pattern only if string
4699         instructions are allowed.
4700         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
4701         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
4702         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
4703         (MULTILIB_DIRNAMES): Add no-strings.
4704         * doc/invoke.texi: Document -mno-allow-string-insns.
4706 2015-04-15  Alan Modra  <amodra@gmail.com>
4708         PR target/65408
4709         PR target/58744
4710         PR middle-end/36043
4711         * calls.c (load_register_parameters): Don't load past end of
4712         mem unless suitably aligned.
4714 2015-04-15  Nick Clifton  <nickc@redhat.com>
4716         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
4717         decrement instruction as being frame related.
4718         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
4719         based addresses.
4720         If zero extending a function address enclose the operation in
4721         %code(...).
4722         (rl78_preferred_reload_class): New function.
4723         (TARGET_PREFERRED_RELOAD_CLASS): Define.
4724         * config/rl78/rl78.md: Remove useless constraints in expanders.
4725         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
4726         (mulhi3_rl78): Likewise.
4727         (mulhi3_g13): Likewise.
4728         (mulsi3_rl78): Likewise.
4729         (es_addr): Move to before the multiply patterns.
4731 2015-04-15  Alan Modra  <amodra@gmail.com>
4733         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
4734         and sequence_stack.  Add seq.
4735         (seq_stack): Delete.
4736         * function.c (prepare_function_start): Don't access x_last_insn.
4737         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
4738         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
4739         * emit_rtl.c (start_sequence, push_topmost_sequence,
4740         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
4741         sequence accessors.
4742         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
4743         remove_insn): Likewise.  Simplify.
4744         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
4745         and pop_topmost_sequence.
4746         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
4747         debug insns.
4748         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
4750 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
4752         PR target/65729
4753         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
4754         the assertiion.
4756 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
4758         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
4759         (LEGACY_INT_REGNO_P): Ditto.
4760         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
4761         (ANY_MASK_REG_P): Remove.
4762         (BND_REG_P): Rename from ANY_BND_REG_P.
4763         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
4764         legacy integer registers.  Do not handle MMX_REG_P in a special way.
4765         Merge 64byte and 32byte SSE handling.
4767 2015-04-14  Nick Clifton  <nickc@redhat.com>
4769         * expr.c (expand_assignment): Force an address offset computation
4770         into a register before changing its mode.
4771         (expand_expr_real_1): Likewise.
4773 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
4775         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
4776         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
4777         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
4778         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
4779         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
4780         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
4781         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
4782         and __aarch64_vget_lane_any.
4784 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
4786         PR rtl-optimization/65761
4787         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
4788         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
4790 2015-04-14  Richard Biener  <rguenther@suse.de>
4792         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
4793         (graphite_can_represent_scev): Use POINTER_TYPE_P.
4795 2015-04-14  Richard Biener  <rguenther@suse.de>
4797         PR tree-optimization/65758
4798         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
4799         against -1.
4800         (ccp_lattice_meet): Likewise.
4801         (bit_value_unop): Likewise.
4802         (bit_value_binop): Likewise.
4803         (bit_value_assume_aligned): Likewise.
4805 2015-04-14  Christian Bruel  <christian.bruel@st.com>
4807         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
4808         function.
4810 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
4812         PR tree-optimization/63387
4813         * match.pd ((x unord x) | (y unord y) -> (x unord y),
4814         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
4816 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
4818         * config/i386/predicates.md (any_QIreg_operand): Rename from
4819         q_regs_operand.  Do not process subregs.
4820         (QIreg_operand): Use QI_REGNO_P predicate.
4821         (ext_QIreg_operand): Ditto.
4822         (ext_register_operand): Ditto.
4823         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
4824         (AND splitters): Ditto.
4825         (AND with -65536 splitter): Add SWI48 mode for operand 0.
4826         (AND with -256 splitter): Use any_QIreg_operand predicate and
4827         SWI248 mode for operand 0.
4828         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
4829         mode for operand 0.
4830         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
4832 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
4834         * doc/plugins.texi: Rewrite first introductory paragraph.
4836 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
4838         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
4839         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
4841 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
4843         * ipa-profie.c (ipa_profile): Check number of parameters
4844         and possible polymorphic call targets before
4845         devirtualizing.
4847 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
4849         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
4850         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
4852 2015-04-13  Richard Biener  <rguenther@suse.de>
4854         PR tree-optimization/65204
4855         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
4856         takens for bit-CCP.
4858 2015-04-13  Richard Biener  <rguenther@suse.de>
4860         PR target/65660
4861         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
4862         and cond_not_taken_branch_cost to 4 and 2.
4863         (bdver2_cost): Likewise.
4864         (bdver3_cost): Likewise.
4865         (bdver4_cost): Likewise.
4867 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
4869         * hash-table.h (hash_table constructor): Add mem stats.
4870         (alloc_entries): Likewise.
4872 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
4874         * ipa-cp.c (ipcp_driver): Relase prev_edge.
4875         * passes.c (execute_one_pass): Only add transform if pass has one.
4877 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
4879         * config/i386/i386.c (ix86_option_override_internal): Don't set
4880         -fprefetch-loop-arrays if optimizing for size.
4882 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
4883             Gerald Pfeifer  <gerald@pfeifer.com>
4885         * doc/contrib.texi (Contributors): Add Martin Jambor and
4886         Michael Matz.
4888 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
4890         * BASE-VER: Set to 6.0.0.
4892         PR tree-optimization/65747
4893         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
4894         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
4896 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
4898         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
4899         sentence.  Improve grammar.
4901 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
4903         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
4905 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
4907         PR ipa/65743
4908         * ipa-inline-transform.c (speculation_removed): Remove static var.
4909         (check_speculations): New function.
4910         (clone_inlined_nodes): Do not check spculations.
4911         (inline_call): Call check_speculations.
4912         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
4913         consider non-invariants.
4915 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
4916             Martin Liska  <mliska@suse.cz>
4918         PR ipa/65722
4919         * ipa-icf.c (sem_item::compare_cgraph_references): function and
4920         variable can not match.
4921         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
4922         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
4924 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
4926         PR tree-optimization/65735
4927         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
4928         Remove visited_phis argument, add visited_bbs, avoid recursing into the
4929         same bb rather than just into the same phi node.
4930         (thread_through_normal_block): Adjust caller.
4932 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
4934         * doc/contrib.texi (Contributors): Add Ira Rosen.
4936 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
4938         * gcov.c (find_source): Fix miswording in error message.
4939         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
4940         (ix86_expand_sse_comi_round): Fix typo in error message.
4942 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
4944         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
4946 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
4948         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
4950 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
4952         PR target/65710
4953         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
4954         Print bad_spills_num and insn_pseudos_num.
4956 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4958         PR target/65694
4959         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
4960         when creating +1 values for SImode.
4962 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
4964         PR target/65729
4965         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
4966         assert.
4968 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
4969             Iain Sandoe  <iain@codesourcery.com>
4971         PR target/65351
4972         * configure: Regenerate.
4974 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
4976         PR target/65671
4977         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
4979 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
4981         * doc/contrib.texi (Contributors): Add John Marino.
4983 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
4985         PR tree-optimization/65709
4986         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
4987         TREE_TYPE (TREE_TYPE (t)).
4989 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
4991         PR target/65710
4992         * lra-int.h (lra_bad_spill_regno_start): New.
4993         * lra.c (lra_bad_spill_regno_start): New.
4994         (lra): Set up lra_bad_spill_regno_start.  Set up
4995         lra_constraint_new_regno_start unconditionally.
4996         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
4997         spill preferences.
4999 2015-04-09  Marek Polacek  <polacek@redhat.com>
5000             Jakub Jelinek  <jakub@redhat.com>
5002         PR middle-end/65554
5003         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
5004         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
5005         of STRIP_NOPS.
5007 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
5009         PR rtl-optimization/65693
5010         * combine.c (is_parallel_of_n_reg_sets): Move outside of
5011         #ifndef HAVE_cc0.
5013 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
5015         PR target/65296
5016         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
5017         device specs file if "device-specs%s" didn't resolve to a path.
5019 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
5021         PR target/65676
5022         * config/i386/i386.c (fixup_modeless_constant): New.
5023         (ix86_expand_args_builtin): Fixup modeless constant operand.
5024         (ix86_expand_round_builtin): Ditto.
5025         (ix86_expand_special_args_builtin): Ditto.
5026         (ix86_expand_builtin): Ditto.
5028 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
5030         PR target/65693
5031         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
5032         any pow2 integer in between 2 and 0x80000000U inclusive.
5034 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
5036         PR rtl-optimization/65693
5037         * combine.c (is_parallel_of_n_reg_sets): Change first argument
5038         from an rtx_insn * to an rtx.
5039         (try_combine): Adjust both callers.  Use it once more.
5041 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
5043         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
5044         (chkp_make_static_const_bounds): Search existing
5045         symbol by assembler name.  Use make_decl_one_only.
5046         (chkp_get_zero_bounds_var): Remove node search which
5047         is now performed in chkp_make_static_const_bounds.
5048         (chkp_get_none_bounds_var): Likewise.
5050 2015-04-08  Michael Witten  <mfwitten@gmail.com>
5052         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
5053         to an example.
5055 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5057         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
5059 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
5061         * doc/extend.texi (__sync Builtins): Fix grammar.
5063 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5065         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
5067 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5069         * varasm.c (emit_local): Move definition of align.
5071 2015-04-08  Julian Brown  <julian@codesourcery.com>
5073         * config/nvptx/mkoffload.c (process): Support variable mapping.
5075 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
5077         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
5078         alpha_links **.
5079         (alpha_write_one_linkage): Correct typo.
5081 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
5083         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
5085 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
5087         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
5089 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
5091         * tree-chkp.h (chkp_insert_retbnd_call): New.
5092         * tree-chkp.c (chkp_insert_retbnd_call): New.
5093         * ipa-split.c (insert_bndret_call_after): Remove.
5094         (split_function): Use chkp_insert_retbnd_call.
5095         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
5096         bounds for instrumented functions.
5098 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
5100         PR ipa/65540
5101         * calls.c (initialize_argument_information): When producing tail
5102         call also turn SSA_NAMES passed by references to original PARM_DECLs
5104 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
5106         PR target/65648
5107         * lra-remat.c (do_remat): Process input and non-input insn
5108         registers separately.
5110 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
5112         PR debug/65678
5113         * valtrack.c (debug_lowpart_subreg): New function.
5114         (dead_debug_insert_temp): Use it.
5116         PR middle-end/65680
5117         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
5118         into signed HOST_WIDE_INT the same as negative bit_offset.
5120 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
5122         * ipa-comdats.c (ipa_comdats): Visit all thunks
5123         to set proper comdat group.
5125 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5127         PR target/65489
5128         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
5129         on constants for NEON VSTRUCT modes.
5131 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
5132             Iain Sandoe  <iain@codesourcery.com>
5134         PR target/65351
5135         * configure: Regenerate.
5137 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
5139         PR target/65614
5140         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
5141         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
5142         that LFD is used to load double constants instead of LFS.  Add
5143         defaults for all costs structures.  Add comments for missing
5144         initialization fields.
5145         (size32_cost): Likewise.
5146         (size64_cost): Likewise.
5147         (rs64a_cost): Likewise.
5148         (mpccore_cost): Likewise.
5149         (ppc403_cost): Likewise.
5150         (ppc405_cost): Likewise.
5151         (ppc440_cost): Likewise.
5152         (ppc476_cost): Likewise.
5153         (ppc601_cost): Likewise.
5154         (ppc603_cost): Likewise.
5155         (ppc604_cost): Likewise.
5156         (ppc604e_cost): Likewise.
5157         (ppc620_cost): Likewise.
5158         (ppc630_cost): Likewise.
5159         (ppccell_cost): Likewise.
5160         (ppc750_cost): Likewise.
5161         (ppc7450_cost): Likewise.
5162         (ppc8540_cost): Likewise.
5163         (ppce300c2c3_cost): Likewise.
5164         (ppce500mc_cost): Likewise.
5165         (ppce500mc64_cost): Likewise.
5166         (ppce5500_cost): Likewise.
5167         (ppce6500_cost): Likewise.
5168         (titan_cost): Likewise.
5169         (power4_cost): Likewise.
5170         (power6_cost): Likewise.
5171         (power7_cost): Likewise.
5172         (power8_cost): Likewise.
5173         (ppca2_cost): Likewise.
5174         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
5176         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
5177         instead of XXLOR to copy SFmode to clear out dirty bits created
5178         when SFmode denormals are generated.
5179         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
5180         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
5182 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
5184         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
5185         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
5186         * config/aarch64/aarch64-tune.md: Regenerate.
5188 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
5190         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
5191         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
5192         * config/arm/arm-cores.def (exynos-m1): New core.
5193         * config/arm/arm-tune.md: Regenerate.
5194         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
5195         * config/arm/bpabi.h: Likewise.
5197 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
5199         * ipa-cp (set_single_call_flag): Remove too
5200         restrictive assert.
5202 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
5204         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
5205         GOMP_offload_unregister from the destructor.
5207 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
5209         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
5210         flags for instrumentation thunk.
5211         (chkp_produce_thunks): Likewise.
5213 2015-04-05  Martin Liska  <mliska@suse.cz>
5215         PR ipa/65665
5216         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
5217         has computed data structure.
5218         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
5220 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
5222         * invoke.texi (inline-unit-growth): Increase growth to 20%
5223         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
5225 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5227         PR target/65647
5228         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
5229         value checking.
5230         (lra_rematerialization_iter): New.
5231         * lra.c (lra): Initialize lra_rematerialization_iter.
5232         Stop updating lra_constraint_new_regno_start after switching of
5233         inheritance and rematerialization.
5234         * lra-remat.c (lra_rematerialization_iter): New.
5235         (lra_remat): Add printing pass iteration.  Do rematerialization
5236         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
5238 2015-04-04  Richard Biener  <rguenther@suse.de>
5240         PR tree-optimization/64909
5241         PR tree-optimization/65660
5242         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
5243         to take a cost vector for scalar iteration cost.
5244         (vect_get_single_scalar_iteration_cost): Likewise.
5245         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
5246         Compute the scalar iteration cost into a cost vector.
5247         (vect_get_known_peeling_cost): Use the scalar cost vector to
5248         account for the cost of the peeled iterations.
5249         (vect_estimate_min_profitable_iters): Likewise.
5250         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
5251         Likewise.
5253 2015-04-04  Alan Modra  <amodra@gmail.com>
5255         PR target/65576
5256         PR target/65240
5257         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
5258         0.0 constant unless TARGET_VSX.
5259         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
5260         alternative.
5262 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
5264         PR ipa/65654
5265         * ipa-inline-transform.c (inline_call): Skip sanity check to work
5266         around the ICE
5268 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
5270         PR ipa/65655
5271         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
5272         speculative indirect edges to avoid ordering issue.
5274 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
5276         PR ipa/65076
5277         * ipa-inline.c (edge_badness): Add combined size to the denominator.
5279 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
5281         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
5282         TYPE_ARTIFICIAL on the .omp_data* types.
5284 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
5286         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
5287         instrumentation thunks.
5289 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
5291         * config/i386/i386.c (ix86_expand_call): Avoid nested
5292         PARALLEL in returned call value.
5294 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
5296         * lto-cgraph.c (input_cgraph_1): Always link instrumented
5297         assembler name with original one.
5299 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
5301         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
5303 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
5305         Revert parts of r216820.
5306         * config/i386/i386.md (movqi_internal): Correct type calculation
5307         for alternatives 3 and 5.
5309 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
5311         PR preprocessor/61977
5312         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
5313         predefine __vector/__bool/__pixel macros nor context sensitive
5314         macros for CLK_ASM.
5315         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
5317 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
5319         * config/pa/pa.c (pa_output_move_double): Directly handle register
5320         indexed memory operand.  Simplify handling of scaled register indexed
5321         memory operands.
5323 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
5325         PR driver/65444
5326         * config/i386/linux-common.h (MPX_SPEC): New.
5327         (CHKP_SPEC): Add MPX_SPEC.
5328         * doc/invoke.texi (-fcheck-pointer-boudns): Document
5329         possible issues with '-z bndplt' support in linker.
5331 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
5333         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
5334         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
5335         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
5336         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
5337         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
5339 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
5341         * config/i386/sync.md (UNSPEC_MOVA): Remove.
5342         (atomic_load<mode>): Change operand 0 predicate to
5343         nonimmediate_operand and fix up the destination when needed.
5344         Use UNSPEC_LDA.
5345         (atomic_loaddi_fpu): Use UNSPEC_LDA.
5346         (atomic_store<mode>): Change operand 1 predicate to
5347         nonimmendate_operand and move the source to register when needed.
5348         Use UNSPEC_STA.
5349         (atomic_store<mode>_1): Use UNSPEC_STA.
5350         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
5351         Fix moves from memory operand.  Use UNSPEC_STA.
5353 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5355         * expmed.c (strict_volatile_bitfield_p): Check that the access will
5356         not cross a MODESIZE boundary.
5357         (store_bit_field, extract_bit_field): Added assertions in the
5358         strict volatile bitfields code path.
5360 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
5362         PR target/65624
5363         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
5364         Increase args array size by one to avoid buffer overflow.
5366 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
5368         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
5369         split_part.
5370         * ipa-inline.c (edge_badness): Add wrapper penalty.
5371         (sum_callers): Move up.
5372         (inline_small_functions): Set single_caller.
5373         * ipa-inline.h (inline_summary): Add single_caller.
5374         * ipa-split.c (split_function): Set split_part.
5375         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
5376         * cgraph.h (cgraph_node): Add split_part.
5378 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
5380         PR target/58945
5381         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
5382         Do not split operands 0 and operands 2 to halfmode.
5383         (atomic_compare_and_swap<mode>): Update for
5384         atomic_compare_and_swap<dwi>_doubleword changes.
5386 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
5388         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
5389         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
5390         no caching is done.
5392 2015-03-31  Martin Liska  <mliska@suse.cz>
5394         PR ipa/65557
5395         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
5396         has already filled up function summary.
5397         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
5399 2015-03-31  Richard Biener  <rguenther@suse.de>
5401         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
5402         of types.
5404 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5406         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
5407         nested functions.
5408         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
5409         (s390_asm_output_function_label): Adapt to new signature of
5410         s390_function_num_hotpatch_hw
5411         Optimise the code generating assembler output.
5412         Add comments to assembler file.
5414 2015-03-31  Richard Biener  <rguenther@suse.de>
5416         PR middle-end/65626
5417         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
5418         of the noreturn call so it is last and cleanup_control_flow_bb
5419         can do the CFG part.
5421 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
5423         PR target/65531
5424         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
5425         same_comdat_group for external symbols.
5426         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
5427         infinite same_comdat_group traversal loop.
5429 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
5431         PR plugins/61176
5432         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
5433         automatically to $headers.
5435 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
5437         PR ipa/65610
5438         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
5439         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
5440         function.
5441         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
5442         Use it.
5443         * ipa-prop.c (param_type_may_change_p): Likewise.
5444         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
5445         (remove_unused_scope_block_p): Add in_ctor_dtor_block
5446         argument.  Before inlining, preserve
5447         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
5448         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
5449         recursive calls.
5450         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
5452 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
5454         PR ipa/65076
5455         * ipa-inline.c (edge_badness): Base denominator on callee's
5456         grwoth squared.
5458 2015-03-27  Martin Jambor  <mjambor@suse.cz>
5460         PR ipa/65478
5461         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
5462         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
5463         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
5464         node_calling_single_call.
5465         * ipa-cp.c (count_callers): New function.
5466         (set_single_call_flag): Likewise.
5467         (initialize_node_lattices): Count callers and set single_flag_call if
5468         necessary.
5469         (incorporate_penalties): New function.
5470         (good_cloning_opportunity_p): Use it, dump new flags.
5471         (propagate_constants_topo): Set node_within_scc flag if appropriate.
5472         * doc/invoke.texi (ipa-cp-recursion-penalty,
5473         ipa-cp-single-call-pentalty): Document.
5475 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
5477         PR ipa/65588
5478         * symtab.c (symtab_node::get_partitioning_class): Register vars
5479         are duplicated.
5480         * varpool.c (symbol_table::output_variables) Do not assemble unefined
5481         decls for non-symbols.
5483 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5485         PR target/65248
5486         * output.h (default_binds_local_p_2): New.
5487         * varasm.c (default_binds_local_p_2): Renamed to ...
5488         (default_binds_local_p_3): This.  Don't return true on protected
5489         data symbol if protected data may be external.
5490         (default_binds_local_p): Use default_binds_local_p_3.
5491         (default_binds_local_p_1): Likewise.
5492         (default_binds_local_p_2): New.
5493         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
5494         default_binds_local_p_2 if TARGET_MACHO is undefined.
5496 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
5498         PR target/65593
5499         * config/i386/i386.c (legitimize_pic_address): If base
5500         is SYMBOL_REF or LABEL_REF using %rip addressing, force
5501         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
5503 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
5505         PR target/65531
5506         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
5507         comdat groups.
5509 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
5511         PR ipa/65600
5512         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
5513         of optimized out indirect call.
5514         (redirect_to_unreachable): Always build symbol table node for
5515         BUILT_IN_UNREACHABLE
5517 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
5519         PR target/65407
5520         * ira-costs.c (record_reg_classes): Process all constraint string
5521         containing 0-9.
5523 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
5525         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
5526         memory_operand.
5528         PR target/65052
5529         * config/c6x/constraints.md (S3): New constraint.
5530         * config/c6x/c6x.md (real_jump): Use it.
5532 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
5534         PR middle-end/65595
5535         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
5536         do redirection if the call is not optimized out.
5538 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
5540         PR target/65495
5541         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
5542         (fchkp-check-incomplete-type): Add LTO.
5543         (fchkp-zero-input-bounds-for-main): Likewise.
5544         (fchkp-first-field-has-own-bounds): Likewise.
5545         (fchkp-narrow-bounds): Likewise.
5546         (fchkp-narrow-to-innermost-array): Likewise.
5547         (fchkp-use-static-bounds): Likewise.
5548         (fchkp-use-static-const-bounds): Likewise.
5549         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
5551 2015-03-27  Marek Polacek  <polacek@redhat.com>
5553         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
5555 2015-03-27  Marek Polacek  <polacek@redhat.com>
5557         PR sanitizer/65583
5558         * ubsan.c (ubsan_create_edge): New function.
5559         (instrument_bool_enum_load): Call it.
5560         (instrument_nonnull_arg): Likewise.
5561         (instrument_nonnull_return): Likewise.
5562         (instrument_object_size): Likewise.
5564 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
5566         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
5567         auto_vec.
5569 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
5571         PR lto/65536
5572         * lto-streamer.h (class lto_location_cache): New.
5573         (struct data_in): Add location_cache.
5574         (lto_input_location): Update prototype.
5575         (stream_input_location_now): New.
5576         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
5577         pointer to location.
5578         (stream_input_location): Update.
5579         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
5580         (warn_odr): Apply location cache before warning.
5581         (lto_input_location): Update prototype.
5582         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
5583         Use stream_input_location_now.
5584         * lto-streamer-in.c (lto_location_cache::current_cache): New static
5585         variable.
5586         (lto_location_cache::cmp_loc): New function.
5587         (lto_location_cache::apply_location_cache): New function.
5588         (lto_location_cache::accept_location_cache): New function.
5589         (lto_location_cache::revert_location_cache): New function.
5590         (lto_location_cache::input_location): New function.
5591         (lto_input_location): Do location caching.
5592         (stream_input_location_now): New function.
5593         (input_eh_region, input_struct_function_base): Use
5594         stream_input_location_now.
5595         (lto_data_in_create): use new.
5596         (lto_data_in_delete): Use delete.
5597         * tree-streamer-in.c (unpack_ts_block_value_fields,
5598         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
5599         lto_input_ts_exp_tree_pointers): Update for cached location api.
5601 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
5603         PR ipa/65076
5604         * passes.def: Add pass_nothrow.
5605         * ipa-pure-const.c: (pass_data_nothrow): New.
5606         (pass_nothrow): New.
5607         (pass_nothrow::execute): New.
5608         (make_pass_nothrow): New.
5609         * tree-pass.h (make_pass_nothrow): Declare.
5611 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
5613         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
5614         edge to change by speculation resolution or redirection.
5615         (edge_set_predicate): Likewise.
5616         (inline_summary_t::duplicate): Likewise.
5617         (remap_edge_summaries): Likewise.
5619 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
5621         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
5622         New macros.
5623         (can_inline_edge_p): Relax option matching for always inline functions.
5625 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
5627         PR target/65561
5628         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
5629         Check operand 4 and operand 0 for equality.
5630         (avx512f_vextract<shuffletype>32x4_1_maskm):
5631         Check operand 6 and operand 0 for equality.
5632         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
5633         for equality.
5634         (vec_extract_hi_<mode>_maskm): Ditto.
5636 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
5638         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
5639         dead calls back to live.
5640         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
5641         cross check to ...
5642         (cgraph_node::verify_node): ... here; verify only callee edges,
5643         not caller.
5644         * cif-code.def (CILK_SPAWN): New code.
5646 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
5648         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
5649         (edge_set_predicate): Use it to mark unreachable edges.
5650         (inline_summary_t::duplicate): Remove unnecesary code.
5651         (remap_edge_summaries): Likewise.
5652         (dump_inline_summary): Report contains_cilk_spawn.
5653         (compute_inline_parameters): Compute contains_cilk_spawn.
5654         (inline_read_section, inline_write_summary): Stream
5655         contains_cilk_spawn.
5656         * ipa-inline.c (can_inline_edge_p): Do not touch
5657         DECL_STRUCT_FUNCTION that may not be available;
5658         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
5659         remove check for callee_fun->can_throw_non_call_exceptions and
5660         replace it by optimization attribute check; check for flag_exceptions.
5661         * ipa-inline-transform.c (inline_call): Maintain
5662         DECL_FUNCTION_PERSONALITY
5663         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
5665 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
5667         PR tree-optimization/65551
5668         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
5669         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
5671 2015-03-26  Richard Biener  <rguenther@suse.de>
5673         PR middle-end/65555
5674         * tree-cfg.c (verify_gimple_call): Do not require a call to
5675         have no LHS if it wasn't recognized as control altering yet.
5677 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
5679         PR tree-optimization/64715
5680         * passes.def: Add another instance of pass_object_sizes before ccp1.
5681         * tree-object-size.c (pass_object_sizes::execute): In
5682         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
5683         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
5684         __bos result and the computed constant.  Remove redundant
5685         checks, obsoleted by gimple_call_builtin_p test.
5687         * var-tracking.c (variable_tracking_main_1): Don't track
5688         variables for targetm.no_register_allocation targets.
5690 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
5692         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
5693         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
5695 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
5697         PR target/65569
5698         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
5699         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
5700         0.0 is correctly setup.
5701         (extenddftf2_internal): Likewise.
5703 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
5705         PR tree-optimization/65177
5706         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
5707         (bb_in_bbs): New.
5708         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
5709         edges not adjacent on the path to the original code.
5711 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
5713         PR bootstrap/65537
5714         * doc/install.texi (Building a native compiler): Document new
5715         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
5716         configuration assumes that the host supports the linker plugin.
5718 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
5720         PR target/65508
5721         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
5722         chain for generated call.
5724 2015-03-25  Richard Biener  <rguenther@suse.de>
5726         * passes.c (pass_manager::execute_early_local_passes): Guard
5727         execution of pass_chkp_instrumentation_passes with
5728         flag_check_pointer_bounds.
5729         (pass_chkp_instrumentation_passes::gate): Likewise.
5731 2015-03-25  Martin Liska  <mliska@suse.cz>
5733         PR tree-optimization/65538
5734         * symbol-summary.h (function_summary::~function_summary):
5735         Relese memory for allocated summaries.
5736         (function_summary::release): New function.
5738 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
5740         PR lto/65515
5741         * lto-streamer-out.c (DFS::worklist): New struct.
5742         (DFS::worklist_vec): New data member.
5743         (DFS::next_dfs_num): Remove.
5744         (DFS::DFS): Rewritten using worklist instead of recursion,
5745         using most of code from DFS::DFS_write_tree.
5746         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
5747         pass it to DFS_write_tree calls.
5748         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
5749         quick initial checks push it into worklist_vec and return.
5751 2015-03-25  Richard Biener  <rguenther@suse.de>
5753         PR middle-end/65519
5754         * genmatch.c (expr::gen_transform): Re-write to avoid
5755         using gimple_build.
5757 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
5759         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
5761 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
5763         * config/arm/arm.opt (print_tune_info): New option.
5764         * config/arm/arm.c (arm_print_tune_info): New function.
5765         (arm_file_start): Call arm_print_tune_info.
5766         * config/arm/arm-protos.h (struct tune_params): Add comment.
5767         * doc/invoke.texi (@item -mprint-tune-info): New item.
5768         (-mtune): mention it in ARM Option Summary.
5770 2015-03-25  DJ Delorie  <dj@redhat.com>
5772         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
5773         correct clause.
5775 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
5776             Martin Liska  <mliska@suse.cz>
5778         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
5779         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
5780         (sem_item::add_type): New function.
5781         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
5782         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
5783         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
5784         (sem_function::equals_wpa): Fix typo.
5785         * ipa-icf.h (sem_item::add_type): New function.
5786         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
5787         order.
5789 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
5791         PR tree-optimization/65533
5792         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
5793         with swapped operands, call vect_free_slp_tree on
5794         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
5795         vector.
5797 2015-03-24  Richard Biener  <rguenther@suse.de>
5799         PR middle-end/65517
5800         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
5801         for fixup if necessary.
5803 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
5805         * doc/extend.texi (Function Attributes): Add @cindex entries
5806         for all attributes and regularize their format.  Delete text
5807         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
5808         information about "eightbit_data", "tiny_data", and "model"
5809         variable attributes to the Variable Attributes section.  Fix
5810         some obvious typos and copy-editing issues.
5811         (Variable Attributes, Type Attributes): Likewise add/fix
5812         @cindex entries for all attributes.
5814 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
5816         PR target/65523
5817         * tree-chkp.c (chkp_build_returned_bound): Ignore
5818         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
5820 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
5822         PR target/65505
5823         * config/sh/predicates.md (simple_mem_operand,
5824         displacement_mem_operand): Add test for reg.
5825         (short_displacement_mem_operand): Test for displacement_mem_operand
5826         before invoking sh_disp_addr_displacement.
5827         * config/sh/constraints.md (Sdd, Sra): Simplify.
5828         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
5829         Remove redundant displacement_mem_operand tests.
5831 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
5833         PR target/65296
5834         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
5835         the same -mmcu=MCU more than once.
5837 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
5839         PR bootstrap/65522
5840         * ipa-devirt.c: Remove duplicate demangle.h include.
5842         PR target/65504
5843         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
5844         on the pseudo.
5845         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
5846         REG_POINTER on *destptr after adjusting it for prologue size.
5848         PR ipa/65521
5849         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
5850         ultimate_alias_target ()->order ints instead of
5851         ultimate_alias_target () pointers.
5853 2015-03-23  Richard Biener  <rguenther@suse.de>
5855         PR tree-optimization/65518
5856         * tree-vect-stmts.c (vectorizable_load): Reject single-element
5857         interleaving cases we generate absymal code for.
5859 2015-03-23  Richard Biener  <rguenther@suse.de>
5861         PR tree-optimization/65494
5862         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
5863         matches here.
5864         (vect_analyze_slp_instance): But do that here, always and once.
5866 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5868         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
5869         adding T or multiplying by T+1 and subracting T.
5871 2015-03-22  Jeff Law  <law@redhat.com>
5873         PR rtl-optimization/64317
5874         * Makefile.in (OBJS): Add gcse-common.c
5875         * gcse.c: Include gcse-common.h
5876         (struct modify_pair_s): Move structure definition to gcse-common.h
5877         (compute_transp): Move function to gcse-common.c.
5878         (canon_list_insert): Similarly.
5879         (record_last_mem_set_info): Break out some code and put it into
5880         gcse-common.c.  Call into the new common code.
5881         (compute_local_properties): Pass additional arguments to compute_transp.
5882         * postreload-gcse.c: Include gcse-common.h and df.h
5883         (modify_mem_list_set, blocks_with_calls): New variables.
5884         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
5885         (get_bb_avail_insn): Pass in the expression index too.
5886         (alloc_mem): Allocate memory for the new bitmaps and lists.
5887         (free_mem): Free memory for the new bitmaps and lists.
5888         (insert_expr_in_table): Record a bitmap index for each entry we
5889         add to the table.
5890         (record_last_mem_set_info): Call into common code in gcse-common.c.
5891         (get_bb_avail_insn): If no available insn was found in the requested
5892         BB.  If BB has a single predecessor, see if the expression is
5893         transparent in BB and available in that single predecessor.
5894         (compute_expr_transp): New wrapper for compute_transp.
5895         (eliminate_partially_redundant_load): Pass expression's bitmap_index
5896         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
5897         (gcse_after_reload_main): If there are elements in the hash table,
5898         then compute transparency for all the elements in the hash table.
5899         * gcse-common.h: New file.
5900         * gcse-common.c: New file.
5902 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
5904         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
5905         as an adjective.
5906         (System Headers): Likewise.
5907         (Ifdef): Likewise.
5908         (Traditional macros): Likewise.
5909         (Invocation): Likewise.
5910         (Option Index): Likewise.
5911         * doc/cppopts.texi (-M): Likewise.
5912         (-finput-charset): Likewise.
5913         (--help): Likewise.
5914         * doc.invoke.texi (AVR Options): Likewise.
5915         (V850 Options): Likewise.
5917 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
5919         PR ipa/65475
5920         * ipa-devirt.c: Include demangle.h
5921         (odr_type_d): Add field rtti_broken.
5922         (odr_subtypes_equivalent_p): Do not require name to match.
5923         (compare_virtual_tables): Fix typo; if type already has ODR violation,
5924         bypass the tests; be ready for function referneces in vtables that are
5925         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
5926         (warn_odr): Give up for nameless types.
5927         (warn_types_mismatch): Report mismatch in mangled names;
5928         report mismatch in anonymous namespaces; look into component types to
5929         give useful error; report when mismatch is dragged in from other ODR
5930         type.
5931         (odr_types_equivalent_p): Match types for being polymorphic; avoid
5932         duplicated diagnostics.
5933         (add_type_duplicate): Reorder checks so more informative ones come
5934         first; fix typo; do not output "the extra base is defined here" when
5935         we did not warn.
5936         (BINFO_N_BASE_BINFOS): Relax sanity check.
5938 2015-03-22  Martin Liska  <mliska@suse.cz>
5939             Jakub Jelinek  <jakub@redhat.com>
5941         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
5942         masks that can potentially include a builtin.
5943         (ix86_add_new_builtins): Introduce fast filter for isa values
5944         that cannot trigger builtin inclusion.
5946 2015-03-22  Martin Liska  <mliska@suse.cz>
5948         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
5949         (sem_item::update_hash_by_local_refs): Likewise.
5950         (sem_variable::get_hash): Empty line is fixed.
5951         (sem_item_optimizer::execute): Include adding of hash references.
5952         (sem_item_optimizer::update_hash_by_addr_refs): New function.
5953         (sem_item_optimizer::build_hash_based_classes): Use local hash.
5954         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
5955         (sem_item::update_hash_by_local_refs): Likewise.
5957 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
5959         PR ipa/65502
5960         * ipa-comdats.c (enqueue_references): Walk through thunks.
5961         (ipa_comdats): Likewise.
5962         (set_comdat_group_1): New function.
5964 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
5966         PR ipa/65475
5967         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
5968         non-polymorphic
5970 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
5971             Gerald Pfeifer  <gerald@pfeifer.com>
5973         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
5975 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
5976             Sandra Loosemore  <sandra@codesourcery.com>
5978         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
5979         function parameter declaration.
5980         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
5981         Update arguments to nios2_adjust_call_address().
5982         (sibcall_internal): Rename from *sibcall.
5983         (sibcall_value_internal): Rename from *sibcall_value.
5984         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
5985         (nios2_large_got_address): Add target temp reg parameter.
5986         (nios2_got_address): Adjust call to nios2_large_got_address, add
5987         force_reg around it.
5988         (nios2_load_pic_address): Add target temp reg parameter, replace call
5989         to nios2_got_address with corresponding code.
5990         (nios2_legitimize_constant_address): Update call to
5991         nios2_load_pic_address.
5992         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
5993         to use temp reg for PIC loading purposes.
5994         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
5995         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
5996         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
5998 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
6000         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
6001         usage of "the @option{...}".
6002         (-Wopenmp-simd): Likewise.
6003         (-fsanitize-recover): Likewise.
6004         (-fsanitize-undefined-trap-on-error): Likewise.
6005         (-flto): Likewise.
6006         (tracer-dynamic-coverage-feedback): Likewise.
6007         (reorder-block-duplicate-feedback): Likewise.
6008         (loop-unroll-jam-size): Likewise.
6009         (-B): Likewise.
6010         (-I-): Likewise.
6011         (-mabs=legacy): Likewise.
6012         (-mupper-regs-df): Likewise.
6013         (-mupper-regs-sf): Likewise.
6014         (-mpointers-to-nested-functions): Likewise.
6016 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
6018         * doc/extend.texi (Cilk Plus Builtins): Add markup.
6020 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
6022         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
6023         additional index entries and cross-references.
6024         (-fchkp-check-incomplete-type): Likewise.
6025         (-fchkp-first-field-has-own-bounds): Likewise.
6026         (-fchkp-narrow-to-innermost-array): Likewise.
6027         (-fchkp-use-fast-string-functions): Likewise.
6028         (-fchkp-use-nochk-string-functions): Likewise.
6029         (-fchkp-use-static-const-bounds): Likewise.
6030         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
6031         (-fchkp-instrument-marked-only): Likewise.
6032         (-fchkp-use-wrappers): Likewise.
6033         (-static-libmpx): Likewise.
6034         (-static-libmpxwrappers): Likewise.
6035         * doc/extend.texi (bnd_legacy): Likewise.
6036         (bnd_instrument): Likewise.
6037         (bnd_variable_size): Likewise.
6038         (Pointer Bounds Checker builtins): Likewise.
6040 2015-03-21  Tom de Vries  <tom@codesourcery.com>
6042         PR tree-optimization/65458
6043         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
6044         * cgraph.h (cgraph_node): Add parallelized_function field.
6045         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
6046         (input_overwrite_node): Read parallelized_function field.
6047         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
6048         parallelized_function on cgraph_node for child_fn.
6049         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
6050         Remove include of gt-tree-parloops.h.
6051         (parallelized_functions): Remove static variable.
6052         (parallelized_function_p): Rewrite using parallelized_function field of
6053         cgraph_node.
6054         (create_loop_fn): Remove adding to parallelized_functions.
6055         * Makefile.in (GTFILES): Remove tree-parloops.c
6057 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
6059         PR rtl-optimization/64366
6060         * lra.c (lra_update_insn_regno_info): Consider regs in
6061         CALL_INSN_FUNCTION_USAGE memory.
6063 2015-03-20  Richard Biener  <rguenther@suse.de>
6065         PR middle-end/64715
6066         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
6067         for type comparison and gcc_checking_assert.
6068         (chrec_fold_plus_poly_poly): Likewise.
6069         (chrec_fold_multiply_poly_poly): Likewise.
6070         (chrec_convert_1): Likewise.
6071         * gimplify.c (gimplify_expr): Remove premature folding of
6072         &X + CST to &MEM[&X, CST].
6074 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
6076         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
6077         already is final.
6078         (ipa_inline): Recompute inline_failed codes.
6079         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
6080         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
6081         CIF_FINAL_ERROR.
6083 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
6085         PR rtl-optimization/60851
6086         * recog.c (constrain_operands): Accept a pseudo register before reload
6087         for LRA enabled targets.
6089 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
6091         PR target/65240
6092         * config/rs6000/predicates.md (easy_fp_constant): Remove special
6093         -ffast-math handling that kept non-0 constants live in the RTL
6094         until reload.  Remove logic testing the number of instructions it
6095         took to create a constant in a GPR that was never used, due to a
6096         test for soft-float earlier.
6097         (memory_fp_constant): Delete, no longer used.
6099         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
6100         alternatives for loading non-0 constants into GPRs for hard
6101         floating point that is no longer needed due to changes in
6102         easy_fp_constant.  Add support for loading 0.0 into GPRs.
6103         (mov<mode>_hardfloat32): Likewise.
6104         (mov<mode>_hardfloat64): Likewise.
6105         (mov<mode>_64bit_dm): Likewise.
6106         (movtd_64bit_nodm): Likewise.
6107         (pre-reload move FP constant define_split): Delete define_split,
6108         since it is no longer used.
6109         (extenddftf2_internal): Remove GHF constraints that are not valid
6110         for extenddftf2.
6112 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
6114         PR rtl-optimization/63491
6115         * lra-constraints.c (check_and_process_move): Use src instead of
6116         sreg.  Remove some dead code.
6118 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
6120         PR ipa/65380
6121         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
6122         (sem_variable::merge): Likewise.
6124 2015-03-19  Martin Liska  <mliska@suse.cz>
6126         PR ipa/65465
6127         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
6128         all fields of cgraph_thunk_info.
6130 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
6132         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
6133         clone instrumented thunks.
6135 2015-03-19  Richard Biener  <rguenther@suse.de>
6137         Revert
6138         2015-03-10  Richard Biener  <rguenther@suse.de>
6140         PR middle-end/63155
6141         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
6142         * tree-ssa-coalesce.c: Include timevar.h.
6143         (attempt_coalesce): Handle graph being NULL.
6144         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
6145         Split out abnormal coalescing to ...
6146         (perform_abnormal_coalescing): ... this function.
6147         (coalesce_ssa_name): Perform abnormal coalescing without computing
6148         live/conflict.
6149         (verify_ssa_coalescing_worker): New function.
6150         (verify_ssa_coalescing): Likewise.
6152 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6153             Jakub Jelinek  <jakub@redhat.com>
6155         PR sanitizer/65400
6156         * tsan.c (instrument_gimple): Clear tail call flag on
6157         calls.
6159 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
6161         PR sanitizer/65400
6162         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
6163         call in the return bb.
6164         (find_split_points): Add RETURN_BB argument, don't call
6165         find_return_bb.
6166         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
6167         if true append TSAN_FUNC_EXIT internal call after the call to
6168         the split off function.
6169         (execute_split_functions): Call find_return_bb here.
6170         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
6171         Adjust find_split_points and split_function calls.
6173 2015-03-18  DJ Delorie  <dj@redhat.com>
6175         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
6176         (iorqi3_virt): Likewise.
6178 2015-03-18  Tom de Vries  <tom@codesourcery.com>
6180         * tree-parloops.c (parallelize_loops): Make static.
6181         * tree-parloops.h (parallelize_loops): Remove extern declaration.
6183 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
6185         PR middle-end/64491
6186         Revert:
6187         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
6189         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
6190         condition would be removed due to undefined behaviour.
6192 2015-03-18  Martin Liska  <mliska@suse.cz>
6194         PR ipa/65432
6195         * cgraph.c (cgraph_node::get_create): Remove unnecessary
6196         xstrdup_for_dump wrapper.
6197         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
6198         sem_item::name.
6199         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
6200         with xstrdup_for_dump.
6201         (sem_variable::equals): Likewise.
6202         (sem_item_optimizer::read_section): Use symtab_node::name instead of
6203         sem_item::name.
6204         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
6205         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
6206         symtab_node::asm_name with xstrdup_for_dump.
6207         (congruence_class::dump): Use symtab_node::name instead of
6208         sem_item::name.
6209         * ipa-icf.h (symtab_node::name): Remove.
6210         (symtab_node::asm_name): Likewise.
6212 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
6214         PR tree-optimization/65450
6215         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
6216         function.
6217         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
6218         it instead of duplicate_ssa_name_ptr_info.
6220         PR target/65222
6221         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
6223 2015-03-18  Richard Biener  <rguenther@suse.de>
6225         * tree-data-ref.h (struct access_matrix): Remove.
6226         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
6227         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
6228         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
6229         (am_vector_index_for_loop): Likewise.
6230         (struct data_reference): Remove access_matrix member.
6231         (DR_ACCESS_MATRIX): Remove.
6232         (lambda_vector_new): Add comment.
6233         (lambda_matrix_new): Use XOBNEWVEC.
6235 2015-03-18  Richard Biener  <rguenther@suse.de>
6237         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
6238         (pass_ch::execute): Cleanup the CFG only if we did sth.
6239         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
6241 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6243         * expmed.c (synth_mult): Use std::swap instead of manually
6244         swapping algorithms.
6246 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
6248         PR target/65078
6249         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
6251 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
6253         PR target/65296
6254         * config/avr/avr.opt (-nodevicelib): New option.
6255         * doc/invoke.texi (AVR Options): Document it.
6256         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
6257         libgcc.a, libc.a, libm.a.
6258         * config/avr/specs.h: Same.
6259         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
6260         which don't (directly) depend on the device.  Print more help.
6261         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
6262         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
6263         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
6264         case of an error.
6265         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
6266         for specs file name.
6267         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
6268         * config/avr/avr-mcus.def: Adjust initializers and comments.
6270 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
6272         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
6273         DECL_ONE_ONLY to check if decl is one only.
6274         * ipa-split.c (consider_split): Limit splitt of one only functions.
6276 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
6278         PR tree-optimization/65427
6279         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
6280         functions.
6281         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
6283 2015-03-16  Marek Polacek  <polacek@redhat.com>
6285         * cgraph.h (add_new_static_var): Remove declaration.
6286         * varpool.c (add_new_static_var): Remove function.
6288 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
6290         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
6291         instead of vec<tree> * with vec_alloc and release for args.
6292         Adjust all users.
6294         PR middle-end/65431
6295         * omp-low.c (delete_omp_context): Only splay_tree_delete
6296         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
6297         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
6299 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
6301         PR sanitizer/64820
6302         * cfgexpand.c (align_base): New function.
6303         (alloc_stack_frame_space): Call it.
6304         (expand_stack_vars): Align prev_frame to be sure
6305         data->asan_vec elements aligned properly.
6307 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
6309         PR middle-end/65409
6310         * expr.c (store_field): Do not do a direct block copy if the source is
6311         a PARALLEL with BLKmode.
6313 2015-03-16  Tom de Vries  <tom@codesourcery.com>
6315         PR middle-end/65414
6316         Revert:
6317         2015-03-12  Tom de Vries  <tom@codesourcery.com>
6319         PR rtl-optimization/64895
6320         * lra-lives.c (check_pseudos_live_through_calls): Use
6321         actual_call_used_reg_set instead of call_used_reg_set, if available.
6323 2015-03-16  Alan Modra  <amodra@gmail.com>
6325         PR target/63150
6326         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
6327         Modify Z->r bswapdi splitter to use dest in place of scratch.
6328         In r->Z and Z->r bswapdi splitter rename word_high, word_low
6329         to word1, word2 and rearrange logic to suit.
6330         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
6331         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
6332         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
6333         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
6334         early clobber.
6336 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
6338         PR tree-optimization/65369
6339         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
6340         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
6341         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
6343         PR tree-optimization/65418
6344         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
6345         are casts in the first PLUS_EXPR operand, ensure tbias and
6346         *totallowp are in the inner type.
6348         PR rtl-optimization/65401
6349         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
6350         argument.  If true, adjust_address_nv of x with big-endian
6351         correction for the mode widening to GET_MODE (y).
6352         (make_field_assignment): Don't do MEM mode widening here.
6353         Use MEM_P instead of GET_CODE == MEM.
6355 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
6357         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
6358         the external decls.
6360 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6362         PR target/64600
6363         * config/arm/arm.c (arm_gen_constant, AND case): Use
6364         ARM_SIGN_EXTEND when constructing AND mask.
6366 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6368         * graph.c (print_graph_cfg): Make function names visible and append
6369         parenthesis to it.  Also make groups of basic blocks belonging to the
6370         same function visible.
6372 2015-03-12  Richard Biener  <rguenther@suse.de>
6374         PR middle-end/44563
6375         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
6376         to avoid quadratic behavior with inline expansion splitting blocks.
6377         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
6378         with the successor if the predecessor will be merged with it.
6379         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
6380         entry block with its successor.
6382 2015-03-13  Richard Biener  <rguenther@suse.de>
6384         PR middle-end/44563
6385         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
6386         (cleanup_tree_cfg_1): Do not call it.
6387         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
6388         (fixup_noreturn_call): Mark the stmt as control altering.
6389         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
6390         here.
6391         (pass_data_fixup_cfg): Produce a dump file.
6392         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
6393         (need_noreturn_fixup): New global.
6394         (pass_dominator::execute): Fixup queued noreturn calls.
6395         (optimize_stmt): Queue calls that became noreturn for fixup.
6396         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
6397         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
6398         (el_to_fixup): New global.
6399         (eliminate_dom_walker::before_dom_childre): Queue calls that
6400         became noreturn for fixup.
6401         (eliminate): Fixup queued noreturn calls.
6402         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
6403         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
6404         (substitute_and_fold_dom_walker::before_dom_children): Queue
6405         alls that became noreturn for fixup.
6406         (substitute_and_fold): Fixup queued noreturn calls.
6408 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
6410         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
6411         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
6412         are building; for methods check ODR type of class they belong to if
6413         they may lead to a polymorphic call.
6414         (sem_function::compare_polymorphic_p): Be bit smarter about testing
6415         when function may lead to a polymorphic call.
6416         (sem_function::compare_type_list): Remove.
6417         (sem_variable::equals): Update use of compatible_types_p.
6418         (sem_variable::parse_tree_refs): Remove.
6419         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
6420         cdtor.
6421         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
6422         matching here.
6423         (func_checker::compatible_polymorphic_types_p): Break out from ...
6424         (unc_checker::compatible_types_p): ... here.
6425         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
6426         Declare.
6427         (unc_checker::compatible_types_p): Update.
6428         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
6429         Remove.
6431 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6433         PR rtl-optimization/65235
6434         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
6435         When first element of vec_concat is const_int, calculate its size
6436         using second element.
6438 2015-03-12  Richard Biener  <rguenther@suse.de>
6440         PR middle-end/65270
6441         * fold-const.c (operand_equal_p): Fix ordering of resetting
6442         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
6444 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6446         * config/s390/s390.c (s390_reorg): Move code to output nops after label
6447         to s390_reorg ().
6448         (s390_asm_output_function_label): Likewise.
6449         * config/s390/s390.c (s390_asm_output_function_label):
6450         Fix function label alignment with -mhtopatch.
6451         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
6452         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
6453         ("nop_2_byte"): New define_insn.
6454         ("nop_4_byte"): Likewise.
6455         ("nop_6_byte"): Likewise.
6456         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
6457         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
6459 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
6461         PR target/65103
6462         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
6463         register.
6465 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
6467         PR target/65044
6468         * toplev.c (process_options): Restrict Pointer Bounds Checker
6469         usage with Address Sanitizer.
6471 2015-03-12  Richard Biener  <rguenther@suse.de>
6473         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
6474         to split on.
6475         * omp-low.c (expand_omp_taskreg): Split block before removing
6476         the stmt.
6477         (expand_omp_target): Likewise.
6478         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
6479         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
6480         stmt to split_block.
6482 2015-03-12  Tom de Vries  <tom@codesourcery.com>
6484         PR rtl-optimization/64895
6485         * lra-lives.c (check_pseudos_live_through_calls): Use
6486         actual_call_used_reg_set instead of call_used_reg_set, if available.
6488 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
6490         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
6491         (cgraph_node::remove): Likewise.
6492         (cgraph_node::get_untransformed_body): Likewise.
6493         * varpool.c (varpool_node::remove): Likewise.
6494         (varpool_node::get_constructor): Add sanity check.
6496 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
6498         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
6499         old GCC versions.
6500         (-fabi-compat-version): Likewise.
6501         (-ffriend-injection): Likewise.
6502         (-Wdeclaration-after-statement): Likewise.
6503         (-fomit-frame-pointer): Likewise.
6504         (-ftree-coalesce-inlined-vars): Likewise.
6505         (-fvisibility=): Likewise.
6506         * doc/extend.texi (Typeof): Likewise.
6507         (Zero Length): Likewise.
6508         (Escaped Newlines): Likewise.
6509         (Compound Literals): Likewise.
6510         (Function Attributes): Likewise.
6511         (Label Attributes): Likewise.
6512         (Type Attributes): Likewise.
6513         (Function Names): Likewise.
6514         (Other Builtins): Likewise.
6515         (Function Specific Option Pragmas): Likewise.
6516         (C++ Interface): Likewise.
6518 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
6520         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
6522 2015-03-11  Marek Polacek  <polacek@redhat.com>
6524         PR tree-optimization/65388
6525         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
6527 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
6529         PR target/65296
6530         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
6531         * configure: Regenerate.
6532         * config.in: Regenerate.
6533         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
6534         [-mn-flash]: Document it.
6535         [__AVR_ARCH__]: Document avrtiny.
6537         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
6538         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
6539         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
6541 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6543         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
6545 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
6547         PR target/65242
6548         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
6549         allow reloads of PLUS in floating point/VSX registers.
6551 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
6553         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
6554         crypto_sha256_fast.
6555         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
6557 2015-03-11  Richard Biener  <rguenther@suse.de>
6559         PR tree-optimization/65310
6560         * tree-sra.c (build_ref_for_offset): Also preserve larger
6561         alignment.
6563 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
6565         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
6567 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
6569         PR target/65368
6570         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
6571         new define_expand.
6572         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
6574 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
6576         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
6577         (sem_function::equals_wpa): ... here.
6579 2015-03-10  Marek Polacek  <polacek@redhat.com>
6580             Jakub Jelinek  <jakub@redhat.com>
6582         PR sanitizer/65367
6583         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
6584         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
6585         separately.
6587 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
6589         PR target/65286
6590         * config/rs6000/t-linux: For powerpc64* target set
6591         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
6593 2015-03-10  Richard Biener  <rguenther@suse.de>
6595         PR middle-end/44563
6596         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
6597         for redirect_all_calls.
6599 2015-03-10  Marek Polacek  <polacek@redhat.com>
6601         * gdbinit.in (pcfun): Define and document.
6603 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
6605         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
6606         of libgomp-plugin.h.
6607         (find_target_compiler): Support a case when the path to gcc is
6608         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
6609         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
6610         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
6611         libgomp-plugin.h.
6612         (main): Use GCC_INSTALL_NAME as target_driver_name.
6613         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
6614         define.
6615         (mkoffload.o): Remove obsolete include path and defines.
6616         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
6618 2015-03-10  Richard Biener  <rguenther@suse.de>
6620         PR middle-end/63155
6621         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
6622         * tree-ssa-coalesce.c: Include timevar.h.
6623         (attempt_coalesce): Handle graph being NULL.
6624         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
6625         Split out abnormal coalescing to ...
6626         (perform_abnormal_coalescing): ... this function.
6627         (coalesce_ssa_name): Perform abnormal coalescing without computing
6628         live/conflict.
6629         (verify_ssa_coalescing_worker): New function.
6630         (verify_ssa_coalescing): Likewise.
6632 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
6634         PR target/65296
6635         * config.gcc (extra_options) [avr]: Remove.
6636         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
6637         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
6638         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
6640         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
6641         (-mmcu=): Add Var and MissingArgError properties.
6642         (-march=): Remove.
6643         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
6644         * config/avr/t-multilib: Regenerate.
6645         * config/avr/specs.h: New file.
6646         * config/avr/driver-avr.c: New file.
6647         * config/avr/genopt.sh: Remove file.
6648         * config/avr/avr-tables.opt: Remove file.
6649         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
6650         * config/avr/avr-c.c: Same.
6651         * avr-arch.h: Same.
6652         (avr_current_device): Remove proto.
6653         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
6654         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
6655         (EXTRA_SPEC_FUNCTIONS): Define.
6656         (avr_devicespecs_file): New specs function proto.
6657         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
6658         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
6659         (avr_current_device): Remove definition and usage.
6660         (avr_set_core_architecture): New static function.
6661         (avr_option_override): Use it.
6662         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
6663         (mcu_name): New static array.
6664         (comparator, avr_archs_str, avr_mcus_str): New static functions.
6665         (avr_inform_devices, avr_inform_core_architectures): New functions.
6666         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
6667         (avrlibc.h) [WITH_AVRLIBC]: Include.
6668         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
6669         (print_mcu): Rewrite from scratch.
6670         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
6671         Forward to avr-specific specs defined in device-specs file.
6672         * config/avr/t-avr (driver-avr.o): New rule.
6673         (avr-devices.o): Depend on avr-arch.h.
6674         (avr-mcus): No more depend on avr-tables.opt.
6675         (avr-tables.opt): Remove rule.
6676         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
6678 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
6680         * c-family/c.opt (fchkp-use-wrappers): New.
6681         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
6682         (chkp_wrap_function): New.
6683         (chkp_build_instrumented_fndecl): Support wrapped
6684         functions.
6685         * doc/invoke.texi (-fcheck-pointer-bounds): New.
6686         (-fchkp-check-incomplete-type): New.
6687         (-fchkp-first-field-has-own-bounds): New.
6688         (-fchkp-narrow-bounds): New.
6689         (-fchkp-narrow-to-innermost-array): New.
6690         (-fchkp-optimize): New.
6691         (-fchkp-use-fast-string-functions): New.
6692         (-fchkp-use-nochk-string-functions): New.
6693         (-fchkp-use-static-bounds): New.
6694         (-fchkp-use-static-const-bounds): New.
6695         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
6696         (-fchkp-check-read): New.
6697         (-fchkp-check-write): New.
6698         (-fchkp-store-bounds): New.
6699         (-fchkp-instrument-calls): New.
6700         (-fchkp-instrument-marked-only): New.
6701         (-fchkp-use-wrappers): New.
6702         (-static-libmpx): New.
6703         (-static-libmpxwrappers): New.
6705 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
6707         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
6708         (CHKP_SPEC): Add wrappers library.
6709         * c-family/c.opt (static-libmpxwrappers): New.
6711 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
6713         * config/i386/linux-common.h (LIBMPX_LIBS): New.
6714         (LIBMPX_SPEC): New.
6715         (CHKP_SPEC): New.
6716         * gcc.c (CHKP_SPEC): New.
6717         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
6718         * c-family/c.opt (static-libmpx): New.
6720 2015-03-10  Richard Biener  <rguenther@suse.de>
6722         PR middle-end/44563
6723         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
6724         for compare_type.
6725         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
6726         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
6727         (cgraph_add_edge_to_call_site_hash): Likewise.
6728         (cgraph_node::get_edge): Likewise.
6729         (cgraph_edge::set_call_stmt): Likewise.
6730         (cgraph_edge::remove_caller): Likewise.
6732 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
6734         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
6735         (callee_saved_gpr_regs_size): ... this.
6736         (callee_saved_regs_first_regno): Rename to ...
6737         (callee_saved_first_gpr_regno): ... this.
6738         (callee_saved_regs_last_regno) Rename to ...
6739         (callee_saved_last_gpr_regno): ... this.
6740         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
6741         variables.
6742         (nds32_initial_elimination_offset): Likewise.
6743         (nds32_expand_prologue): Likewise.
6744         (nds32_expand_epilogue): Likewise.
6745         (nds32_expand_prologue_v3push): Likewise.
6746         (nds32_expand_epilogue_v3pop): Likewise.
6747         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
6748         Adjust renamed variables.
6749         (nds32_output_stack_pop): Likewise.
6751 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6753         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
6754         code in comment.
6756 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
6758         PR rtl-optimization/65321
6759         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
6760         than shift mode.
6761         * var-tracking.c (use_narrower_mode): Likewise.
6763 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
6765         PR tree-optimization/65355
6766         * varasm.c (notice_global_symbol): Do not produce RTL.
6767         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
6768         anchor.
6769         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
6770         check for section anchors.
6772 2015-03-10  Alan Modra  <amodra@gmail.com>
6774         PR target/65286
6775         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
6776         to be single-arch by default.  Set cpu_is_64bit for powerpc64
6777         given --with-cpu=native.
6778         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
6779         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
6780         and powerpc64le.
6781         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
6782         rs6000_isa_flags rather than TARGET_64BIT.
6784 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
6785             Kaz Kojima  <kkojima@gcc.gnu.org>
6787         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
6789 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
6791         PR lto/65361
6792         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
6793         on a TREE_BINFO, instead use BINFO_TYPE.
6795 2015-03-09  Richard Biener  <rguenther@suse.de>
6797         PR middle-end/65270
6798         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
6799         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
6800         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
6801         of that.  When comparing dereferences compare alignment.
6802         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
6804 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
6806         * ipa-inline-analysis.c (check_callers): Check
6807         node->can_remove_if_no_direct_calls_and_refs_p.
6808         (growth_likely_positive): Reorganize to call
6809         can_remove_if_no_direct_calls_p later.
6810         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
6811         will_be_removed_from_program_if_no_direct_calls_p): Add
6812         will_inline parameter.
6813         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
6814         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
6815         Handle inliner case correctly.
6817 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6819         PR tree-optimization/63743
6820         * cfgexpand.c (reorder_operands): Also reorder if only second operand
6821         had its definition forwarded by TER.
6823 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
6825         PR lto/65316
6826         * ipa-utils.h (types_odr_comparable): Add strict argument.
6827         * ipa-devirt.c: Fix whitespace;
6828         (odr_hasher): Remove.
6829         (odr_name_hasher, odr_vtable_hasher): New hashers.
6830         (can_be_name_hashed_p): New predicate.
6831         (hash_type_name): remove.
6832         (hash_odr_name): New.
6833         (odr_name_hasher::hash): new.
6834         (can_be_vtable_hashed_p): New.
6835         (hash_odr_vtable): New.
6836         (odr_vtable_hasher::hash): New.
6837         (types_same_for_odr): Add strict parameter.
6838         (types_odr_comparable): Likewise.
6839         (odr_name_hasher::equal): New.
6840         (odr_vtable_hasher::equal): New.
6841         (odr_name_hasher::remove): New.
6842         (odr_hash_type): Change to hash_table<odr_name_hasher>.
6843         (odr_vtable_hash_type): New.
6844         (odr_vtable_hash): New.
6845         (odr_subtypes_equivalent_p): Do strict comparsion.
6846         (add_type_duplicate): Merge type names; cleanup; avoid type
6847         duplicates.
6848         (register_odr_type): Initialize vtable hash.
6849         (build_type_inheritance_graph): Likewise
6850         (get_odr_type): Reorg to use two hashes.
6851         (dump_possible_polymorphic_call_targets): Move sanity check after debug
6852         output.
6853         (ipa_devirt): Dump type_inheritance_graph.
6854         (types_same_for_odr): Add strict mode.
6856 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
6858         PR ipa/65334
6859         * cgraph.h (symtab_node): Add definition_alignment,
6860         can_increase_alignment_p and increase_alignment.
6861         * symtab.c (symtab_node::can_increase_alignment_p,
6862         increase_alignment_1, symtab_node::increase_alignment,
6863         symtab_node::definition_alignment): New.
6864         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
6865         can_increase_alignment_p.
6866         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
6867         * tree-vect-stmts.c (ensure_base_align): Likewise.
6868         * varasm.c (function_section_1): Use definition_alignment.
6869         (assemble_start_function): Likewise.
6870         (emit_local): likewise.
6871         (build_constant_desc): Likewsie.
6872         (output_constant_def_contents): Likewise.
6873         (place_block_symbol): Likewise.
6874         (output_object_block): Likewise.
6876 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
6878         PR ipa/65316
6879         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
6880         when outputting debug.
6882 2015-03-07  Marek Polacek  <polacek@redhat.com>
6883             Martin Uecker  <uecker@eecs.berkeley.edu>
6885         PR sanitizer/65280
6886         * doc/invoke.texi: Update description of -fsanitize=bounds.
6888 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
6890         * tree-ssa-phiopt.c (neg_replacement): Remove.
6891         (tree_ssa_phiopt_worker): Remove negate optimization.
6893 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
6895         PR ipa/65302
6896         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
6898 2015-03-06  Richard Biener  <rguenther@suse.de>
6900         PR middle-end/64928
6901         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
6902         and liveout_obstack members.
6903         (calculate_live_on_exit): Remove.
6904         (calculate_live_ranges): Change declaration.
6905         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
6906         (new_tree_live_info): Adjust.
6907         (calculate_live_ranges): Delete livein when not wanted.
6908         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
6909         Deal with partly deleted live info.
6910         (loe_visit_block): Remove temporary bitmap by using
6911         bitmap_ior_and_compl_into.
6912         (live_worklist): Adjust accordingly.
6913         (calculate_live_on_exit): Make static.
6914         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
6915         we do not need livein.
6917 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
6919         * real.c (real_from_string): Fix typo in assertion.
6921 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
6923         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
6924         the patch.
6926 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
6928         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
6930 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
6932         PR target/64342
6933         * lra-assigns.c (find_hard_regno_for): Rename to
6934         find_hard_regno_for_1.  Add a new parameter.
6935         (find_hard_regno_for): New function using find_hard_regno_for_1.
6937 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6939         PR rtl-optimization/65067
6940         * expmed.c (store_bit_field, extract_bit_field): Reworked the
6941         strict volatile bitfield handling.
6943 2015-03-05  Martin Liska  <mliska@suse.cz>
6945         PR ipa/65318
6946         * ipa-icf.c (sem_variable::equals): Compare variables types.
6948 2015-03-05  Richard Henderson  <rth@redhat.com>
6950         PR target/65121
6951         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
6952         correctly check weak symbol binding.
6954 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
6956         PR middle-end/65315
6957         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
6958         needed alignment.
6960 2015-03-05  Martin Liska  <mliska@suse.cz>
6962         * ipa-inline.c (inline_small_functions): Set default value to
6963         prevent warning during bootstrap.
6964         * tree.h: Add pragma guard that ignores false positives during
6965         bootstrap.
6967 2015-03-05  Richard Biener  <rguenther@suse.de>
6969         PR tree-optimization/65310
6970         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
6971         Properly preserve alignment of the base of the access.
6973 2015-03-05  Richard Biener  <rguenther@suse.de>
6975         PR ipa/65270
6976         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
6977         Compare dependence info.
6979 2015-03-05  Richard Biener  <rguenther@suse.de>
6981         PR middle-end/65233
6982         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
6983         tree-into-ssa.h.
6984         (walk_ssa_copies): Revert last chage.  Instead do not walk
6985         SSA names registered for SSA update.
6987 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
6989         PR ipa/65270
6990         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
6991         vtable references for their containing type.
6992         (sem_function::equals_wpa): Compare TYPE_RESTRICT
6993         and type attributes.
6995 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
6997         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
6998         before negating it.
6999         * stor-layout.c (finalize_record_size): Revert latest change.
7001 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
7003         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
7005 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
7007         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
7008         for correct comdat handling.
7009         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
7010         Likewise.
7011         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
7012         (used_from_object_file_p_worker): Remove.
7013         (cgraph_node::only_called_directly_or_alised): Add
7014         used_from_object_file_p.
7015         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
7016         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
7017         can_remove_if_no_direct_calls_and_refs_p.
7019 2015-03-04  Nick Clifton  <nickc@redhat.com>
7021         * config/rl78/rl78.h (enum reg_class): Remove real registers from
7022         General register class.
7023         * config/rl78/rl78-real.md: Replace general register constraints
7024         with real+virtual register constraints.
7026 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7028         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
7029         from checking for -mhtm option.
7031 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
7033         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
7034         (struct ipa_sra_check_caller_data): Add has_thunk field.
7035         (ipa_sra_check_caller): Check for thunk.
7036         (ipa_sra_preliminary_function_checks): Give up on function with
7037         thunks.
7038         (ipa_early_sra): Use call_for_symbol_and_aliases.
7040 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
7042         PR target/65249
7043         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
7044         called for __stack_chk_guard symbol.
7046 2015-03-03  DJ Delorie  <dj@redhat.com>
7048         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
7049         inc/dec.
7050         (*addhi3_real): Likewise.
7051         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
7052         pattern to match incrementing memory.
7053         * config/rl78/predicates.md (rl78_1_2_operand): New.
7054         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
7055         it's the same and only mem.
7056         (rl78_alloc_physical_registers_op2): If there's effectively only
7057         one MEM, transcode it into HL.
7058         (rl78_far_p): Reject addresses that aren't legitimate.
7060 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
7062         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
7063         negating it.
7065         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
7067 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
7069         Implement call0 ABI for xtensa
7070         * config/xtensa/constraints.md ("a" constraint): Include stack
7071         pointer in case of call0 ABI.
7072         ("q" constraint): Make empty in case of call0 ABI.
7073         ("D" constraint): Include stack pointer in case of call0 ABI.
7074         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
7075         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
7076         prototypes.
7077         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
7078         variable.
7079         (xtensa_regno_to_class): Make it a local variable in the
7080         function xtensa_regno_to_class.
7081         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
7082         macro, function prototype and implementation.
7083         (reg_nonleaf_alloc_order): Make it a local variable in the
7084         function order_regs_for_local_alloc.
7085         (xtensa_conditional_register_usage): New function.
7086         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
7087         (xtensa_valid_move): Allow direct moves to stack pointer
7088         register in call0 ABI.
7089         (xtensa_setup_frame_addresses): Only spill register windows in
7090         windowed ABI.
7091         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
7092         call0 ABI respectively.
7093         (xtensa_function_arg_1): Only mark a7 register for copying in
7094         windowed ABI.
7095         (xtensa_call_save_reg): New function.
7096         (compute_frame_size): Add space for callee saved register
7097         storage to the frame size in call0 ABI.
7098         (xtensa_expand_prologue): Generate code to set up stack frame
7099         and save callee-saved registers in call0 ABI.
7100         (xtensa_expand_epilogue): New function.
7101         (xtensa_set_return_address): New function.
7102         (xtensa_return_addr): Calculate return address in call0 ABI.
7103         (xtensa_builtin_saveregs): Only mark a7 register for copying and
7104         emit copying code in windowed ABI.
7105         (order_regs_for_local_alloc): Add preferred register allocation
7106         order for non-leaf function in call0 ABI.
7107         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
7108         (xtensa_asm_trampoline_template): Add trampoline generation for
7109         call0 ABI.
7110         (xtensa_trampoline_init): Add trampoline initialization for
7111         call0 ABI.
7112         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
7113         functions.
7114         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
7115         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
7116         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
7117         ABI call-used registers.
7118         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
7119         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
7120         call0 ABI.
7121         (REG_CLASS_CONTENTS): Include all registers into the preferred
7122         reload registers set, adjust the set in the
7123         xtensa_conditional_register_usage.
7124         (xtensa_regno_to_class): Drop variable declaration.
7125         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
7126         function.
7127         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
7128         respectively.
7129         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
7130         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
7131         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
7132         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
7133         location in call0 ABI.
7134         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
7135         stack adjustment size when handling exception.
7136         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
7137         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
7138         definitions.
7139         ("return" pattern): Generate ret.n/ret in call0 ABI.
7140         ("epilogue" pattern): Expand epilogue.
7141         ("nonlocal_goto" pattern): Use default in call0 ABI.
7142         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
7143         emit eh_set_a0_* depending on ABI.
7144         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
7145         ("eh_set_a0_call0", "blockage"): New patterns.
7147 2015-03-03  Martin Liska  <mliska@suse.cz>
7149         PR ipa/65287
7150         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
7152 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
7154         PR 65138/target
7155         * config/rs6000/rs6000-tables.opt: Regenerate table.
7157 2015-03-03  Renlin Li  <renlin.li@arm.com>
7159         * doc/md.texi (@item ^): Change ? into ^.
7161 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
7163         * doc/tm.texi: Regenerated.
7165 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
7167         * builtins.c (expand_builtin_return_addr): Add
7168         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
7169         surrounding #ifdef.
7170         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
7171         definition to 1.
7172         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
7173         Likewise.
7174         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
7175         undefined.
7176         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
7177         paragraph.
7179 2015-03-03  Martin Jambor  <mjambor@suse.cz>
7180             Eric Botcazou  <ebotcazou@adacore.com>
7182         * tree-sra.c (ipa_sra_check_caller_data): New type.
7183         (has_caller_p): Removed.
7184         (ipa_sra_check_caller): New function.
7185         (ipa_sra_preliminary_function_checks): Use it.
7187 2015-03-03  Martin Liska  <mliska@suse.cz>
7189         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
7190         instead of if branch.
7192 2015-03-03  Martin Liska  <mliska@suse.cz>
7194         PR ipa/65282
7195         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
7197 2015-03-23  Jeff Law  <law@redhat.com>
7199         PR tree-optimization/65241
7200         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
7201         hash table if INSERT is true.
7203 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
7205         PR target/65296
7206         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
7208 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
7210         PR target/64331
7211         * config/avr/avr.c (context.h, tree-pass.h): Include them.
7212         (avr_pass_data_recompute_notes): New static variable.
7213         (avr_pass_recompute_notes): New class.
7214         (avr_register_passes): New static function.
7215         (avr_option_override): Call it.
7217 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
7219         Fix various problems with specs file generation.
7221         PR target/65296
7222         * config.gcc (extra_gcc_objs) [avr]: Remove.
7223         * config/avr/driver-avr.c: Remove file.
7224         * config/avr/t-avr (driver-avr.o): Remove rule.
7225         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
7226         INCLUDES to build.  Depend on TM_H.
7227         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
7228         build warnings.  Fix non-matching types and non-existing %-codes.
7229         (tm.h): Include.
7230         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
7231         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
7232         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
7233         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
7234         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
7235         (LIBGCC_SPEC): Remove definitions.
7237 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
7239         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
7240         to create a register in testing mode.
7242 2015-03-03  Martin Liska  <mliska@suse.cz>
7243             Jan Hubicka  <hubicka@ucw.cz>
7245         PR ipa/65263
7246         * cgraph.c (cgraph_node::has_thunk_p): New function.
7247         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
7248         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
7249         (sem_function::merge): Assert is changed.
7251 2015-03-03  Martin Liska  <mliska@suse.cz>
7252             Martin Jambor  <mjambor@suse.cz>
7254         PR ipa/65087
7255         * ipa-icf.c (sem_item_optimizer::execute): Change function
7256         return value to boolean.
7257         (sem_item_optimizer::merge_classes): Likewise.
7258         (ipa_icf_driver): Return TODO_remove_functions in case there's
7259         a merge operation processed.
7260         * ipa-icf.h: Change function return value to boolean.
7262 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
7264         PR 65138/target
7265         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
7266         processor type for 64-bit little endian PowerPC.
7268         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
7269         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
7270         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
7271         printing built-in mask so it does not pass NULL pointers.
7273         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
7274         -mcpu=powerpc64le.
7276 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
7278         PR target/58158
7279         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
7280         !ISA_HAS_FP_CONDMOVE.
7282 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
7284         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
7285         reload_completed.
7287 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
7289         * doc/invoke.texi (Options for Code Generation Conventions):
7290         Fix URL of DSO paper.
7292 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
7294         PR ipa/65130
7295         * ipa-inline.c (check_callers): Looks for recursion.
7296         (inline_to_all_callers): Give up on uninlinable or recursive edges.
7297         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
7298         summary of inline clones.
7299         (do_estimate_growth_1): Fix recursion check.
7301 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
7303         PR ipa/64988
7304         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
7305         comdat groups.
7307 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
7308             Aldy Hernandez  <aldyh@redhat.com>
7310         PR lto/65276
7311         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
7312         when checking TYPE_BINFO.
7314 2015-03-02  Richard Biener  <rguenther@suse.de>
7316         PR ipa/65270
7317         * ipa-icf-gimple.c: Include builtins.h.
7318         (func_checker::compare_memory_operand): Compare base alignment.
7320 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
7322         PR target/65184
7323         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
7324         are never passed by reference.
7326 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
7328         PR target/65183
7329         * tree-chkp.c (chkp_check_lower): Don't check against
7330         zero bounds for already instrumented functions.
7331         (chkp_check_upper): Likewise.
7332         (chkp_fini): Clean pass local data to avoid wrong reusage.
7334 2015-02-28  Martin Liska  <mliska@suse.cz>
7335             Jan Hubicka  <hubicka@ucw.cz>
7337         * ipa-icf.c (sem_variable::equals): Improve debug output;
7338         get variable constructor.
7339         (sem_variable::parse): Do not filter out too early; give up on
7340         volatile and register vars.
7341         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
7342         variables.
7343         * ipa-icf.h (sem_variable::init): Do not set ctor.
7344         (sem_variable::ctor): Remove.
7346 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
7348         PR middle-end/65233
7349         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
7351 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
7353         * ipa-icf.c: Include stor-layout.h
7354         (sem_function::compare_cgraph_references): Rename to ...
7355         (sem_item::compare_cgraph_references): ... this one.
7356         (sem_variable::equals_wpa): New function
7357         (sem_variable::equals): Do not check stuff already verified by
7358         equals_wpa.
7359         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
7360         * ipa-icf.h (sem_item): Add compare_cgraph_references.
7361         (sem_function): Remove compare_cgraph_references.
7362         (sem_variable): Turns equals_wpa into non-inline.
7364 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
7366         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
7367         (sem_item::add_expr): New function.
7368         (sem_function::hash_stmt): Handle operands of most statements.
7369         (sem_variable::get_hash): Hash the actual constructor.
7370         * ipa-icf.h (sem_item): Add add_expr.
7371         (sem_function): Update prototype of hash_stmt
7373 2015-02-28  Martin Liska  <mliska@suse.cz>
7374             Jan Hubicka  <hubicka@ucw.cz>
7376         PR ipa/65245
7377         * ipa-icf-gimple.c (func_checker::compare_function_decl):
7378         Remove.
7379         (func_checker::compare_variable_decl): Skip symtab vars.
7380         (func_checker::compare_cst_or_decl): Update.
7381         * ipa-icf.c (sem_function::parse): Do not consider aliases.
7382         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
7383         use correct symtab predicates.
7384         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
7385         (sem_variable::parse):  Update comment.
7386         (sem_item_optimizer::build_graph): Consider ultimate aliases
7387         for references.
7389 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
7391         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
7392         of OBJ_TYPE_REF.
7394 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
7396         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
7397         (sem_variable::merge) Likewise.
7399 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
7401         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
7402         target; also match flag_ipa_devirt.
7404 2015-03-01  Martin Liska  <mliska@suse.cz>
7405             Jan Hubicka  <hubicka@ucw.cz>
7407         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
7408         Validate variable alignment.
7409         * ipa-icf.c (sem_function::equals_private): Be more precise
7410         about non-common function attributes.
7411         (sem_variable::equals): Likewise.
7413 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
7415         PR ipa/65237
7416         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
7417         across COMDAT group boundary.
7419 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
7421         PR ipa/65232
7422         * ipa-icf.c (clear_decl_rtl): New function.
7423         (sem_function::merge): Clear RTL before forming alias.
7424         (sem_variable::merge): Clear RTL before forming alias.
7426 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
7428         PR ipa/65236
7429         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
7431 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
7433         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
7434         to neon_to_gp<q>.
7436 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
7438         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
7439         a typo in the description.
7441 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
7443         PR target/64317
7444         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
7445         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
7446         * lra-constraints.c: Include "params.h".
7447         (EBB_PROBABILITY_CUTOFF): Use
7448         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
7449         (lra_inheritance): Use '<' instead of '<=' for
7450         EBB_PROBABILITY_CUTOFF.
7451         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
7452         Document change.
7454 2015-02-27  Martin Liska  <mliska@suse.cz>
7456         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
7457         vector length condition.
7459 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
7461         * doc/extend.texi (x86 transactional memory intrinsics):
7462         Reorganize discussion of _xbegin.  Clarify that the return
7463         value is a bit mask.  Expand example and move to end of section.
7465 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
7466             Aldy Hernandez  <aldyh@redhat.com>
7468         PR rtl-optimization/65220
7469         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
7471 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
7473         PR target/65032
7474         * lra-remat.c (update_scratch_ops): New.
7475         (do_remat): Call it.
7476         * lra.c (lra_register_new_scratch_op): New. Take code from ...
7477         (remove_scratches): ... here.
7478         * lra-int.h (lra_register_new_scratch_op): New prototype.
7480 2015-02-27  Marek Polacek  <polacek@redhat.com>
7482         PR c/65040
7483         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
7484         -Wformat-signedness anymore.
7486 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7488         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
7489         function.
7490         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
7492 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7494         * config/s390/s390.c (enum s390_builtin):
7495         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
7496         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
7497         (s390_init_builtins): Generate new builtin functions.
7498         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
7499         (s390_sfpc, s390_efpc): New pattern definitions.
7501 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7503         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
7504         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
7505         (s390_builtin_decls): New array.
7506         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
7507         (s390_builtin_decl): New function.
7508         (TARGET_BUILTIN_DECL): Define macro.
7510 2015-02-27  Richard Biener  <rguenther@suse.de>
7512         PR middle-end/63175
7513         * builtins.c (get_object_alignment_2): Make sure to re-apply
7514         the ANDed mask after recursing to its operand gets us a new
7515         misalignment bit position.
7517 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
7518             Martin Liska  <mliska@suse.cz>
7520         PR bootstrap/65150
7521         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
7522         Use address_matters_p.
7523         (redirect_all_callers, set_addressable): New functions.
7524         (sem_function::merge): Reorganize and fix merging issues.
7525         (sem_variable::merge): Likewise.
7526         (sem_variable::compare_sections): Remove.
7527         * common.opt (fmerge-all-constants, fmerge-constants): Remove
7528         Optimization flag.
7529         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
7530         redirect them.
7531         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
7532         decl is used.
7533         (address_matters_1): New function.
7534         (symtab_node::address_matters_p): New function.
7535         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
7536         check for merged flag.
7537         * cgraph.h (address_matters_p): Declare.
7538         (symtab_node::address_taken_from_non_vtable_p): Remove.
7539         (symtab_node::address_can_be_compared_p): New method.
7540         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
7541         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
7542         Remove.
7543         (comdat_can_be_unshared_p_1) Use address_matters_p.
7544         (update_vtable_references): Fix formating.
7545         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
7546         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
7547         * cgraphclones.c: Preserve merged and icf_merged flags.
7549 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
7551         * doc/extend.texi (Function Attributes): Fix spelling and typos.
7552         (Label Attributes): Likewise.
7553         (Cilk Plus Builtins): Likewise.
7554         (ARC SIMD Built-in Functions): Likewise.
7555         (ARM C Language Extensions (ACLE)): Likewise.
7556         (PowerPC Built-in Functions): Likewise.
7557         (PowerPC Hardware Transactional Memory Built-in Functions):
7558         Likewise.
7560 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
7562         PR tree-optimization/65216
7563         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
7564         new stmt and new SSA_NAME for lhs whenever the arguments have
7565         changed and weren't just swapped.  Fix comment typo.
7567         PR tree-optimization/65215
7568         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
7569         for PDP endian targets.
7570         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
7571         Fix up formatting issues.
7572         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
7573         size is smaller than the original, adjust MEM_REF offset by the
7574         difference of sizes.  Use is_gimple_mem_ref_addr instead of
7575         is_gimple_min_invariant test to avoid adding address temporaries.
7577 2015-02-26  Martin Liska  <mliska@suse.cz>
7578             Jan Hubicka  <hubicka@ucw.cz>
7580         PR ipa/64693
7581         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
7582         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
7583         (sem_item_optimizer::process_cong_reduction): Include division by
7584         sensitive references.
7585         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
7586         * ipa-ref.c (ipa_ref::address_matters_p): New function.
7587         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
7589 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
7591         PR target/65192
7592         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
7593         Remove.
7594         * config/avr/avr.c: Same.
7595         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
7596         Refuse any constant address not in 0..0xbf.
7597         * config/avr/avr.md (*mov<mode>, *movsf): Remove
7598         tiny_valid_direct_memory_access_range from insn conditions.
7599         (mov<mode>): Don't special-case expansion of avrtiny addresses.
7601 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
7603         PR target/61142
7604         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
7605         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
7606         * config/sh/predicates.md (const_logical_operand): New predicate.
7607         * config/sh/sh.md: Add new peephole2 patterns.
7609 2015-02-26  Marek Polacek  <polacek@redhat.com>
7611         PR ipa/65008
7612         * ipa-inline.c (early_inliner): Recompute inline parameters.
7614 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7616         PR target/65171
7617         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
7618         instructions with TImode operands are included in the analysis.
7620 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
7622         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
7623         of an EDGE_FSM_THREAD.
7625 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7627         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
7629 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
7631         PR debug/46102
7632         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
7634 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
7636         PR tree-optimization/65048
7637         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
7638         (thread_through_all_blocks): Call valid_jump_thread_path.
7639         Remove invalid FSM jump-thread paths.
7641 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
7643         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
7644         (ipa_write_optimization_summaries): Likewise.
7645         * tree-streamer.h: Include data-streamer.h.
7646         (streamer_mode_table): Declare extern variable.
7647         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
7648         * lto-streamer-out.c (lto_output_init_mode_table,
7649         lto_write_mode_table): New functions.
7650         (produce_asm_for_decls): Call lto_write_mode_table when streaming
7651         offloading LTO.
7652         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
7653         (lto_create_simple_input_block): Add mode_table argument to the
7654         lto_input_block constructors.
7655         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
7656         Likewise.
7657         * data-streamer-in.c (string_for_index): Likewise.
7658         * ipa-inline-analysis.c (inline_read_section): Likewise.
7659         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
7660         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7661         * lto-streamer-in.c (lto_read_body_or_constructor,
7662         lto_input_toplevel_asms): Likewise.
7663         (lto_input_mode_table): New function.
7664         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
7665         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
7666         Use bp_pack_machine_mode.
7667         * real.h (struct real_format): Add name field.
7668         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
7669         (class lto_input_block): Add mode_table member.
7670         (lto_input_block::lto_input_block): Add mode_table_ argument,
7671         initialize mode_table.
7672         (struct lto_file_decl_data): Add mode_table field.
7673         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
7674         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
7675         unpack_ts_decl_common_value_fields,
7676         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
7677         * tree-streamer.c (streamer_mode_table): New variable.
7678         * real.c (ieee_single_format, mips_single_format,
7679         motorola_single_format, spu_single_format, ieee_double_format,
7680         mips_double_format, motorola_double_format,
7681         ieee_extended_motorola_format, ieee_extended_intel_96_format,
7682         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
7683         ibm_extended_format, mips_extended_format, ieee_quad_format,
7684         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
7685         decimal_single_format, decimal_double_format, decimal_quad_format,
7686         ieee_half_format, arm_half_format, real_internal_format): Add name
7687         field.
7688         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
7690 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
7692         PR target/65161
7693         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
7694         reordering for selective scheduling.
7696 2015-02-26  Terry Guo  <terry.guo@arm.com>
7698         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
7699         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
7700         (arm_arch_no_volatile_ce): Declare new global variable.
7701         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
7702         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
7703         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
7704         (TARGET_NO_VOLATILE_CE): New macro.
7705         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
7706         volatile memory access in IT block
7708 2015-02-25  Kai Tietz  <ktietz@redhat.com>
7710         PR tree-optimization/61917
7711         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
7712         that reduc_def_stmt is null.
7714 2015-02-25  Martin Liska  <mliska@suse.cz>
7716         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
7717         hard register variables.
7719 2015-02-25  Kai Tietz  <ktietz@redhat.com>
7721         PR target/64212
7722         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
7723         (symtab::noninterposable_alias): Likewise.
7725 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
7727         PR target/65167
7728         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
7729         bounds registers.
7730         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
7732 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
7734         PR target/64997
7735         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
7736         as split condition; force split via '#' in output pattern.
7738 2015-02-25  Richard Biener  <rguenther@suse.de>
7739             Kai Tietz  <ktietz@redhat.com>
7741         PR tree-optimization/61917
7742         * tree-vect-loop.c (vectorizable_reduction): Allow
7743         vect_internal_def without reduction to exit graceful.
7745 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
7747         PR target/65196
7748         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
7749         only with NONDEBUG_INSN_P.
7751 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
7753         Use variadic macros with avr-log.c.
7755         * config/avr/avr-protos.h (avr_vdump): New prototype.
7756         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
7757         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
7758         * config/avr/avr-log.c: Adjust comments.
7759         (avr_vdump): New function.
7760         (avr_vadump): Pass caller as 2nd argument instead of format string.
7761         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
7762         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
7764 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
7766         PR lto/64374
7767         * target.def (target_option_stream_in): New target hook.
7768         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
7769         targetm.target_option.post_stream_in if non-NULL.
7770         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
7771         * doc/tm.texi: Updated.
7772         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
7773         function.
7774         (TARGET_OPTION_POST_STREAM_IN): Redefine.
7776 2015-02-24  Jeff Law  <law@redhat.com>
7778         PR target/65117
7779         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
7780         of operand 0 and operand 2.
7781         (zero_cost_loop_end, loop_end): Similarly.
7783 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
7785         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
7786         CXX_MEM_STAT_INFO.
7788 2015-02-24  DJ Delorie  <dj@redhat.com>
7790         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
7791         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
7792         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
7793         instead of hardcoding SImode.
7795 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
7797         * omp-low.c (create_omp_child_function): Tag entrypoint
7798         functions with a special attribute.
7800 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
7802         PR target/65058
7803         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
7805 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
7807         PR rtl-optimization/65123
7808         * lra-remat.c (operand_to_remat): Check hard regs in insn
7809         definition too.
7811 2015-02-24  Nick Clifton  <nickc@redhat.com>
7813         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
7814         to the assembler.
7816 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
7818         PR libgomp/64625
7819         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
7820         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
7821         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
7822         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
7823         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
7824         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
7825         (BUILT_IN_GOACC_PARALLEL): Specify as
7826         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
7827         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
7828         * builtin-types.def
7829         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
7830         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
7831         Remove function types.
7832         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
7833         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
7834         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
7835         New function types.
7837 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
7839         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
7841 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
7843         PR tree-optimization/65170
7844         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
7845         if val[1] < 0, clear also val[2] and return 3.
7847 2015-02-24  Alan Modra  <amodra@gmail.com>
7849         PR target/65172
7850         * config/rs6000/rs6000.c (get_memref_parts): Only return true
7851         when *base is a reg.  Handle nested plus addresses.  Simplify
7852         pre_modify test.
7854 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
7856         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
7857         use natural alignment when optimizing for size.
7859 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
7861         PR target/65153
7862         * config/sh/sh.md (movsicc_true+3): Remove peephole.
7863         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
7864         * config/sh/sh.c (replace_n_hard_rtx): Remove.
7866 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
7868         PR fortran/63427
7869         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
7870         too big for a wide_int.  Implement missing wrapping operation.
7872 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
7874         PR target/65163
7875         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
7876         instead of const_int 4294901760.
7878 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
7880         * config/avr/t-avr: Fix typo in comment.
7882 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
7884         * doc/rtl.texi (fma): Clarify documentation.
7886 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
7888         PR debug/58123
7889         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
7890         over input_location.
7892 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
7894         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
7895         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
7896         restrict alignments to absolute_biggest_alignment.
7897         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
7898         Define.
7899         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
7900         * doc/tm.texi: Regenerate.
7901         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
7903 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
7905         PR target/64172
7906         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
7908 2015-02-20  Richard Biener  <rguenther@suse.de>
7910         PR tree-optimization/65136
7911         * tree-ssa-propagate.c: Include cfgloop.h.
7912         (replace_phi_args_in): Avoid replacing loop latch edge PHI
7913         arguments with constants.
7915 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
7916             Martin Liska  <mliska@suse.cz>
7918         PR target/63892
7919         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
7920         don't try to create_thunk if stdarg_p.  If
7921         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
7922         redirect_callers if possible.
7923         (sem_item_optimizer::execute): Call unregister_hooks here...
7924         (ipa_icf_driver): ... instead of here.
7926 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7928         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
7929         Mark operand 0 as earlyclobber in 2nd alternative.
7930         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
7931         Write negated shift amount into QI lowpart operand 0 and use it
7932         in the shift step.
7933         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
7935 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
7937         * cgraph.h (clone_function_name_1): Declare.
7938         * cgraphclones.c (clone_function_name_1): New function.
7939         (clone_function_name): Use it.
7940         * lto-partition.c: Include "stringpool.h".
7941         (must_not_rename, maybe_rewrite_identifier)
7942         (validize_symbol_for_target): New static functions.
7943         (privatize_symbol_name): Use must_not_rename.
7944         (promote_symbol): Call validize_symbol_for_target.
7945         (lto_promote_cross_file_statics): Likewise.
7946         (lto_promote_statics_nonwpa): Likewise.
7948 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
7950         PR target/64452
7951         * config/avr/avr.md (pushhi_insn): New insn.
7952         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
7954 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
7955             Jakub Jelinek  <jakub@redhat.com>
7957         * tree-streamer.c (preload_common_nodes): Don't preload
7958         TI_VA_LIST* for offloading.
7959         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
7960         in_lto_p.
7962 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
7964         * config/pa/pa.c (pa_emit_move_sequence): Always force
7965         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
7966         note on insn.
7968         * config/pa/pa.c (pa_reloc_rw_mask): New function.
7969         (TARGET_ASM_RELOC_RW_MASK): Define.
7970         (pa_cannot_force_const_mem): Revert previous change.
7972 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
7973             Jan Hubicka  <hubicka@ucw.cz>
7975         PR ipa/65028
7976         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
7977         across jump functions.
7979 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
7981         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
7983 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
7985         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
7987 2015-02-19  Richard Henderson  <rth@redhat.com>
7989         PR middle-end/65074
7990         * varasm.c (default_binds_local_p_2): Don't test node->definition;
7991         test DECL_EXTERNAL independent of symtab_node.
7993 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
7995         PR lto/65012
7996         * varpool.c (varpool_node::get_constructor): Return early
7997         if this->lto_file_data is NULL.
7999 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
8001         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
8002         (rank_for_schedule_debug): Update.
8003         (ready_sort): Make static.  Move sorting logic to ...
8004         (ready_sort_debug, ready_sort_real): New static functions.
8005         (schedule_block): Sort both debug insns and real insns in preparation
8006         for ready list trimming.  Improve debug output.
8007         * sched-int.h (ready_sort): Remove global declaration.
8009 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
8011         * ipa-icf.c (sem_function::equals_private): Adjust.
8012         (sem_function::bb_dict_test): Take a vec<int> * instead of
8013         auto_vec<int>.
8014         * ipa-icf.h (bb_dict_test): Likewise.
8016 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
8018         PR gcov-profile/64634
8019         * tree-eh.c (frob_into_branch_around): Fix up typos
8020         in function comment.
8021         (lower_catch): Put eh_seq resulting from EH lowering of
8022         the cleanup sequence after the cleanup rather than before it.
8024 2015-02-18  Tom de Vries  <tom@codesourcery.com>
8026         * common.opt (fstdarg-opt): New option.
8027         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
8028         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
8029         (@item -fstdarg-opt): New item.
8031 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
8033         PR target/65064
8034         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
8035         for common symbols.
8037 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
8039         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
8040         insn-modes.h.
8041         (ALL_HOST_OBJS): Add mkoffload.o.
8042         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
8044 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
8046         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
8047         (compare_virtual_tables): Be smarter about skipping typeinfos;
8048         do sane output on virtual table table mismatch.
8049         (warn_odr): Be ready for forward declarations of enums;
8050         output sane info on base mismatch and virtual table mismatch.
8051         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
8052         when only one type is polymorphic.
8053         (get_odr_type): Fix hashtable corruption.
8054         (dump_odr_type): Dump mangled names.
8056 2015-02-18  Richard Biener  <rguenther@suse.de>
8058         PR tree-optimization/65063
8059         * tree-predcom.c (determine_unroll_factor): Return 1 if we
8060         have replaced looparound PHIs.
8062 2015-02-18  Martin Liska  <mliska@suse.cz>
8064         * lto-streamer.c (lto_streamer_init): Encapsulate
8065         streamer_check_handled_ts_structures with checking macro.
8067 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
8069         PR ipa/65087
8070         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
8071         section if !implicit_section.
8072         (cgraph_node::create_version_clone_with_body): Likewise.
8073         * trans-mem.c (ipa_tm_create_version): Likewise.
8075 2015-02-18  Richard Biener  <rguenther@suse.de>
8077         PR tree-optimization/62217
8078         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
8079         into BIVs.
8081 2015-02-18  Marek Polacek  <polacek@redhat.com>
8083         PR sanitizer/65081
8084         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
8085         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
8086         is in range [-16K, -1].  Don't issue run-time error if
8087         (ptr > ptr + offset).
8089 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
8091         * doc/install.texi (nvptx-*-none): New section.
8092         * doc/invoke.texi (Nvidia PTX Options): Likewise.
8093         * config/nvptx/nvptx.opt: Update.
8095         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
8096         (access_check): New functions, copied from
8097         config/i386/intelmic-mkoffload.c.
8098         (main): For non-installed testing, look in all COMPILER_PATHs for
8099         GCC_INSTALL_NAME.
8101         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
8103 2015-02-18  Andrew Pinski  <apinski@cavium.com>
8104             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8106         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
8107         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
8109 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
8111         * ipa-visibility.c (function_and_variable_visibility): Only
8112         check locality if node is not already local.
8113         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
8114         call_for_symbol_and_aliases instead of
8115         call_for_symbol_thunks_and_aliases.
8116         (ipa_inline): Likewise.
8117         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
8118         first walk aliases.
8119         * ipa.c (symbol_table::remove_unreachable_nodes): Use
8120         call_for_symbol_and_aliases.
8121         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
8122         (ipa_propagate_frequency_1): Use it; use opt_for_fn
8123         (ipa_propagate_frequency): Update.
8124         (ipa_profile): Add opt_for_fn gueards.
8126 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
8128         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
8129         * doc/invoke.texi (SH options): Document it.
8130         * config/sh/sh.c (sh_insn_length_adjustment): Check
8131         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
8133 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
8135         * common.opt (fipa-cp-alignment): New.
8136         * ipa-cp.c (ipcp_store_alignment_results): Check
8137         flag_ipa_cp_alignment.
8138         * opts.c (default_options_table): Enable -fipa-cp-alignment for
8139         -O2.
8140         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
8141         * doc/invoke.texi: Document -fipa-cp-alignment.
8143 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
8145         PR target/64793
8146         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
8147         to nil.  Adjust comments.
8149 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
8151         * ipa-visibility.c (function_and_variable_visibility): Only
8152         check locality if node is not already local.
8153         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
8154         call_for_symbol_and_aliases instead of
8155         call_for_symbol_thunks_and_aliases.
8156         (ipa_inline): Likewise.
8157         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
8158         first walk aliases.
8159         * ipa.c (symbol_table::remove_unreachable_nodes): Use
8160         call_for_symbol_and_aliases.
8161         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
8162         (ipa_propagate_frequency_1): Use it; use opt_for_fn
8163         (ipa_propagate_frequency): Update.
8164         (ipa_profile): Add opt_for_fn guards.
8166 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
8168         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
8169         skipping of "strange" tokens.
8171 2015-02-17  Jeff Law  <law@redhat.com>
8173         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
8174         obsolete comment.
8176 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
8178         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
8179         as forcing a HARD_DEP between instructions, thereby
8180         disallowing rewriting to break dependencies.
8182 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
8184         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
8185         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
8186         variables in boundary that have no inlitalizer encoded and are
8187         not aliases.
8188         * varasm.c (default_binds_local_p_2): External definitions do not
8189         count as definitions here.
8191 2015-02-16  Jeff Law  <law@redhat.com>
8193         PR tree-optimization/64823
8194         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
8195         statements.
8196         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
8197         threading through blocks with PHIs, but no statements.
8198         (thread_through_normal_block): Distinguish between blocks where
8199         we did not process all the statements and blocks with no statements.
8201 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
8202             James Greenhalgh  <james.greenhalgh@arm.com>
8204         PR ipa/64963
8205         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
8206         section if not linkonce.  Fix up formatting.
8207         (cgraph_node::create_version_clone_with_body): Copy section.
8208         * trans-mem.c (ipa_tm_create_version): Likewise.
8210 2015-02-16  Richard Biener  <rguenther@suse.de>
8212         PR tree-optimization/65077
8213         * tree-ssa-structalias.c (get_constraint_for_1): Handle
8214         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
8215         (find_func_aliases): Allow float values to carry pointers again.
8217 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
8219         * doc/install.texi (Specific): Reorder targets list to put
8220         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
8221         from the top menu.
8223 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
8224             David Edelsohn  <dje.gcc@gmail.com>
8226         PR target/65058
8227         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
8228         mapping class to external variable or function reference.
8229         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
8230         mapping class.
8232 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
8234         PR target/53348
8235         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
8236         ASM_WEAKEN_DECL if defined.
8238 2015-02-16  Richard Biener  <rguenther@suse.de>
8240         PR lto/65015
8241         * varasm.c (default_file_start): For LTO produced units
8242         emit <artificial> as file directive.
8244 2015-02-16  Richard Biener  <rguenther@suse.de>
8246         PR tree-optimization/63593
8247         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
8248         stmts and releasing SSA names until...
8249         (execute_pred_commoning): ... after processing all chains.
8251 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
8253         PR ipa/65059
8254         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
8255         external functions.
8257 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
8259         * doc/bugreport.texi: Adjust section titles throughout the file
8260         to use "Title Case".
8261         * doc/extend.texi: Likewise.
8262         * doc/gcov.texi: Likewise.
8263         * doc/implement-c.texi: Likewise.
8264         * doc/implement-cxx.texi: Likewise.
8265         * doc/invoke.texi: Likewise.
8266         * doc/objc.texi: Likewise.
8267         * doc/standards.texi: Likewise.
8268         * doc/trouble.texi: Likewise.
8270 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
8272         * cgraph.h (symtab_node::has_aliases_p): Simplify.
8273         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
8274         * tree.c (lookup_binfo_at_offset): Make static.
8275         (get_binfo_at_offset): Do not shadow offset; add explanatory
8276         comment.
8278 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
8280         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
8281         for all floading point loads and stores except those using a register
8282         index address.
8283         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
8284         to a register.
8286 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
8288         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
8289         (do_estimate_growth_1): Record if any uninlinable edge was seen.
8290         (estimate_growth): Handle uninlinable edges correctly.
8291         (check_callers): New.
8292         (growth_likely_positive): Handle aliases correctly.
8294 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
8296         * ipa-chkp.c: Use iterate_direct_aliases.
8297         * symtab.c (resolution_used_from_other_file_p): Move inline.
8298         (symtab_node::create_reference): Fix formating.
8299         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
8300         (symtab_node::iterate_reference): Move inline.
8301         (symtab_node::iterate_referring): Move inline.
8302         (symtab_node::iterate_direct_aliases): Move inline.
8303         (symtab_node::used_from_object_file_p_worker): Inline into ...
8304         (symtab_node::used_from_object_file_p): ... this one; move inline.
8305         (symtab_node::call_for_symbol_and_aliases): Move inline;
8306         use iterate_direct_aliases.
8307         (symtab_node::call_for_symbol_and_aliases_1): New method.
8308         (cgraph_node::call_for_symbol_and_aliases): Move inline;
8309         use iterate_direct_aliases.
8310         (cgraph_node::call_for_symbol_and_aliases_1): New method.
8311         (varpool_node::call_for_node_and_aliases): Rename to ...
8312         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
8313         use iterate_direct_aliases.
8314         (varpool_node::call_for_symbol_and_aliases_1): New method.
8315         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
8316         (ipa_discover_readonly_nonaddressable_var): Update.
8317         * ipa-devirt.c: Fix formating.
8318         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
8319         Move inline.
8320         (cgraph_node::call_for_symbol_and_aliases): Move inline.
8321         (cgraph_node::call_for_symbol_and_aliases_1): New function..
8322         * cgraph.h (used_from_object_file_p_worker): Remove.
8323         (resolution_used_from_other_file_p): Move inline.
8324         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
8325         (symtab_node::iterate_reference): Move inline.
8326         (symtab_node::iterate_referring): Move inline.
8327         (symtab_node::iterate_direct_aliases): Move inline.
8328         (symtab_node::used_from_object_file_p_worker): Inline into ...
8329         (symtab_node::used_from_object_file_p): Move inline.
8330         * tree-emutls.c (ipa_lower_emutls): Update.
8331         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
8332         (varpool_node::call_for_node_and_aliases): Remove.
8334 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
8336         PR tree-optimization/62209
8337         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
8338         op == range->exp, insert seq and gimplified code after labels
8339         instead of after the phi.
8341 2015-02-13  Jeff Law  <law@redhat.com>
8343         PR bootstrap/65060
8344         Revert my change for tree-optimization/64823.
8346 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
8348         PR tree-optimization/65053
8349         * tree-ssa-phiopt.c (value_replacement): When moving assign before
8350         cond, either reset VR on lhs or set it to phi result VR.
8352 2015-02-13  Jeff Law  <law@redhat.com>
8354         PR tree-optimization/64823
8355         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
8356         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
8357         threading through blocks with PHIs, but no statements.
8358         (thread_through_normal_block): Distinguish between blocks where
8359         we did not process all the statements and blocks with no statements.
8361         PR rtl-optimization/47477
8362         * match.pd (convert (plus/minus (convert @0) (convert @1): New
8363         simplifier to narrow arithmetic.
8365 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
8367         PR ipa/65028
8368         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
8369         polymorphic call info when type is not known to be preserved.
8371 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
8373         PR ipa/65028
8374         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
8375         (inline_call): Use it.
8377 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
8379         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
8380         GOMP_DEVICE_NVIDIA_PTX.
8382 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
8384         PR ipa/65034
8385         * stmt.c (emit_case_nodes): Use void_type_node instead of
8386         NULL_TREE as LABEL_DECL type.
8388 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
8390         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
8391         constraints.
8392         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
8393         symbolic references to data to be forced to constant memory on the
8394         SOM target.
8396 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
8398         PR tree-optimization/65002
8399         * tree-cfg.c (pass_data_fixup_cfg): Don't update
8400         SSA on start.
8401         * tree-sra.c (some_callers_have_no_vuse_p): New.
8402         (ipa_early_sra): Reject functions whose callers
8403         assume function is read only.
8405 2015-02-13  Richard Biener  <rguenther@suse.de>
8407         PR lto/65015
8408         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
8409         for LTO produced CUs.
8411 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
8413         PR tree-optimization/64705
8414         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
8415         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
8416         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
8417         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
8418         expand_simple_operations.
8420 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
8421             Richard Henderson  <rth@redhat.com>
8423         PR rtl/32219
8424         * cgraphunit.c (cgraph_node::finalize_function): Set definition
8425         before notice_global_symbol.
8426         (varpool_node::finalize_decl): Likewise.
8427         * varasm.c (default_binds_local_p_2): Rename from
8428         default_binds_local_p_1, add weak_dominate argument.  Use direct
8429         returns instead of assigning to local variable.  Unify varpool and
8430         cgraph paths via symtab_node.  Reject undef weak variables before
8431         testing visibility.  Reorder tests for simplicity.
8432         (default_binds_local_p): Use default_binds_local_p_2.
8433         (default_binds_local_p_1): Likewise.
8434         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
8435         via symtab_node.
8436         (default_elf_asm_output_external): Emit visibility when specified.
8438 2015-02-13  Alan Modra  <amodra@gmail.com>
8440         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
8441         code setting up r11 for out-of-line fp restore.
8443 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
8445         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
8446         (muser-mode): Likewise.
8448 2015-02-13  Alan Modra  <amodra@gmail.com>
8450         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
8451         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
8453 2015-02-12  David Howells  <dhowells@redhat.com>
8455         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
8456         warning.
8457         * tree-ssa-uninit.c (dump_predicates): Likewise.
8458         * opts.c (print_filtered_help): Likewise.
8460 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
8462         * dwarf2out.c (output_die): Use "%s", name instead of name to
8463         avoid -Wformat-security warning.
8465         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
8466         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
8467         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
8468         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
8470 2015-02-12  Jason Merrill  <jason@redhat.com>
8472         * common.opt (-flifetime-dse): New.
8474 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
8476         PR sanitizer/65019
8477         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
8479         PR tree-optimization/65014
8480         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
8481         use original second operand of arg0 or arg1 instead of
8482         that adjusted by STRIP_NOPS.
8484 2015-02-11  Jeff Law  <law@redhat.com>
8486         PR target/63347
8487         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
8488         that needs to be queued, just queue it for a single cycle.
8490 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
8492         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
8493         bodies of thunks; comment on why.
8494         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
8495         symbols are extern.
8497 2015-02-11  Richard Henderson  <rth@redhat.com>
8499         PR sanitize/65000
8500         * tree-eh.c (mark_reachable_handlers): Mark source and destination
8501         regions of __builtin_eh_copy_values.
8503 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
8505         PR middle-end/65003
8506         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
8507         ultimate alias is MEM with SYMBOL_REF satisfying
8508         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
8509         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
8511 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
8513         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
8514         "diagnostic-core.h".
8515         (main): Initialize progname, and call diagnostic_initialize.
8517         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
8518         instead of __OPENMP_TARGET__.
8520         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
8521         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
8522         hard-coding PTX_ID.
8524 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
8526         * doc/sourcebuild.texi (pie_enabled): Document.
8528 2015-02-11  Martin Liska  <mliska@suse.cz>
8530         PR ipa/64813
8531         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
8532         a return value for call to a function that is noreturn.
8534 2015-02-11  Richard Biener  <rguenther@suse.de>
8536         PR lto/65015
8537         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
8538         and -fresolution.
8540 2015-02-11  Andrew Pinski  <apinski@cavium.com>
8542         PR target/64893
8543         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
8544         Change the first argument type to size_type_node and add another
8545         size_type_node.
8546         (aarch64_simd_expand_builtin): Handle the new argument to
8547         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
8548         print an out when the first two arguments are not
8549         nonzero integer constants.
8550         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
8551         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
8553 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
8555         PR target/61925
8556         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
8557         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
8558         (ix86_set_current_function): Rewritten.
8559         (ix86_add_new_builtins): Temporarily clear current_target_pragma
8560         when creating builtin fndecls.
8562 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
8564         PR ipa/65005
8565         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
8566         function.
8567         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
8568         have no comdat group.
8569         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
8570         (lto_output_varpool_node): Always output alias info.
8571         (output_refs): Output refs of boundary aliases, too.
8572         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
8573         (output_symtab): Output call eges in thunks in boundary.
8574         (get_alias_symbol): Remove.
8575         (input_node, input_varpool_node): Do not special case weakrefs.
8576         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
8577         alias and thunks targets in the boundary; do not take removed symbols
8578         from their comdat groups.
8579         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
8580         (cgraph_node::global_info): Remove.
8581         (cgraph_node::rtl_info): Look through aliases and thunks.
8582         * cgrpah.h (global_info): Remove.
8583         (non_local_p): Remove.
8585 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
8586             Sandra Loosemore  <sandra@codesourcery.com>
8588         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
8589         to inline asm.  List dialects in proper order.
8591 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
8592             Sandra Loosemore  <sandra@codesourcery.com>
8594         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
8596 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
8598         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
8599         modified) reference to Solaris.
8601 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
8603         * doc/extend.texi (Extended Asm): Fix typos.
8605 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
8607         PR sanitizer/65004
8608         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
8610 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
8612         PR target/64661
8613         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
8614         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
8615         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
8616         * config/sh/constraints.md (Ara, Add): New constraints.
8617         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
8618         predicates.
8619         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
8620         atomic_mem_operand_0.  Don't use force_reg on the memory address.
8621         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
8622         Sra constraint.  Convert to insn_and_split.  Add workaround for
8623         PR 64974.
8624         (atomic_compare_and_swap<mode>_hard): Copy to
8625         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
8626         Use atomic_mem_operand_0 predicate.
8627         (atomic_compare_and_swap<mode>_soft_gusa,
8628         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
8629         AraAdd constraints.
8630         (atomic_compare_and_swap<mode>_soft_tcb,
8631         atomic_compare_and_swap<mode>_soft_imask,
8632         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
8633         atomic_mem_operand_0 predicate and SraSdd constraints.
8634         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
8635         constraint.
8636         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
8637         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
8638         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
8639         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
8640         force_reg on the memory address.
8641         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
8642         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
8643         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
8644         atomic_mem_operand_1 predicate and Sra constraint.
8645         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
8646         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
8647         Use atomic_mem_operand_1 predicate.
8648         (atomic_<fetchop_name><mode>_hard): Copy to
8649         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
8650         Use atomic_mem_operand_1 predicate.
8651         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
8652         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
8653         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
8654         insn_and_split.  Use atomic_mem_operand_1 predicate.
8655         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
8656         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
8657         Use atomic_mem_operand_1 predicate.
8658         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
8659         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
8660         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
8661         in generated insn with original mem operand before emitting the insn.
8662         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
8663         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
8664         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
8665         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
8666         Use atomic_mem_operand_1 predicate and AraAdd constraints.
8667         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
8668         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
8669         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
8670         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
8671         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
8672         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
8673         atomic_not_fetch<mode>_soft_tcb,
8674         atomic_<fetchop_name>_fetch<mode>_soft_imask,
8675         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
8676         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
8677         Use atomic_mem_operand_1 predicate and SraSdd constraints.
8679 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
8681         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
8682         and 3 earlyclobber operands.
8684 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
8686         * common.opt (fstack-reuse): Mark as optimization.
8688 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
8690         PR ipa/64982
8691         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
8693 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
8695         PR tree-optimization/64326
8696         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
8698 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
8700         PR gcov-profile/61889
8701         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
8703 2015-02-10  Richard Biener  <rguenther@suse.de>
8705         PR tree-optimization/64995
8706         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
8707         value we use is final.
8708         (visit_reference_op_store): Always valueize op.
8709         (visit_use): Properly valueize vuses.
8711 2015-02-10  Richard Biener  <rguenther@suse.de>
8713         PR tree-optimization/64909
8714         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
8715         pass a scalar-stmt count estimate to the cost model.
8716         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
8718 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
8720         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
8721         enabled by default together with var-tracking.
8723 2015-02-10  Nick Clifton  <nickc@redhat.com>
8725         * config/rl78/rl78.c: Remove DIV attribute code accidentally
8726         included in previous rl78 commit.
8728 2015-02-10  Richard Biener  <rguenther@suse.de>
8730         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
8731         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
8732         return the bitpack.
8734 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
8736         PR gcov-profile/61889
8737         * config.in: regenerate.
8738         * configure.in: Likewise.
8739         * configure.ac: Check for ftw.h.
8740         * gcov-tool.c: Check for ftw.h before using nftw.
8742 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
8744         PR lto/64076
8745         * ipa-visibility.c (update_visibility_by_resolution_info): Only
8746         assert when not in lto mode.
8748 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
8750         * ira-color.c (setup_left_conflict_sizes_p): Simplify
8751         initialization/assignment of conflict_size.
8753 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
8755         PR ipa/64978
8756         * ipa-cp.c (gather_caller_stats): Skip thunks.
8757         (propagate_constants_topo): Skip aliases.
8759 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
8761         PR target/64761
8762         * config/sh/sh.c (sh_option_override): Don't change
8763         -freorder-blocks-and-partition to -freorder-blocks even when
8764         unwinding is enabled.
8765         (sh_can_follow_jump): Return false if the followee jump is
8766         a crossing jump when -freorder-blocks-and-partition is specified.
8767         * config/sh/sh.md (*jump_compact_crossing): New insn.
8769 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
8770             Kaz Kojima  <kkojima@gcc.gnu.org>
8772         PR target/64761
8773         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
8774         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
8775         (sh_can_redirect_branch): Rename to ...
8776         (sh_can_follow_jump): ... this.  Constify argument types.
8777         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
8778         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
8779         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
8780         * doc/tm.texi: Regenerate.
8782 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
8784         PR sanitizer/64981
8785         * builtins.c (expand_builtin): Call targetm.expand_builtin
8786         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
8788 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
8790         PR ipa/61548
8791         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
8793 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
8795         PR ipa/63566
8796         * ipa-icf.c (set_local): New function.
8797         (sem_function::merge): Use it.
8799 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
8801         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
8802         (add_type_duplicate): Fix comparison of BINFOs.
8804 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
8806         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
8807         on getting VOID pointer.
8809 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
8811         PR target/64979
8812         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
8813         va_list escapes.
8815 2015-02-09  Richard Biener  <rguenther@suse.de>
8817         * genmatch.c (replace_id): Copy expr_type.
8819 2015-02-09  Richard Biener  <rguenther@suse.de>
8821         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
8822         (streamer_write_tree_bitfields): Declare.
8823         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
8824         properly unpack padding.
8825         (unpack_value_fields): Inline ...
8826         (streamer_read_tree_bitfields): ... here.
8827         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
8828         and properly add padding bits.
8829         (streamer_pack_tree_bitfields): Fold into ...
8830         (streamer_write_tree_bitfields): ... this new function,
8831         exposing the bitpack object.
8832         * lto-streamer-out.c (lto_write_tree_1): Call
8833         streamer_write_tree_bitfields.
8835 2015-02-09  Richard Biener  <rguenther@suse.de>
8837         PR tree-optimization/54000
8838         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
8839         (struct ivopts_data): Add loop_loc member.
8840         (tree_ssa_iv_optimize_loop): Dump loop location.
8841         (create_new_ivs): Likewise, also dump number of IVs generated.
8843 2015-02-09  Martin Liska  <mliska@suse.cz>
8845         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
8846         just if not yet registered.
8847         (ipa_icf_generate_summary): Register callgraph hooks.
8849 2015-02-08  Andrew Pinski  <apinski@cavium.com>
8851         * config/aarch64/aarch64.c (gty_dummy): Delete.
8853 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
8855         PR ipa/63566
8856         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
8857         (cgraph_node::local_p): Remove thunk related FIXME.
8859 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
8861         PR ipa/63566
8862         * i386.c (ix86_function_regparm): Look through aliases to see if callee
8863         is local and optimized.
8864         (ix86_function_sseregparm): Likewise; also use target's SSE math
8865         settings; error out instead of silently generating wrong code
8866         on mismatches.
8867         (init_cumulative_args): Look through aliases.
8869 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
8871         PR ipa/63566
8872         * ipa-split.c (execute_split_functions): Split if function has aliases.
8874 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
8876         PR ipa/63566
8877         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
8878         aliases before trying to expand it.
8879         (cgraph_node::expand_thunk): Fix formating.
8881 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
8883         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
8884         (Using Assembly Language with C): Expand introduction.
8885         (Basic Asm): Copy-edit.  Add more information about uses of
8886         basic asm.
8887         (Extended Asm): Copy-edit.  Document new escape syntax and
8888         %l[label] syntax.
8889         (Global Reg Vars): Copy-edit.
8890         (Local Reg Vars): Likewise.
8892 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
8894         PR debug/2714
8895         PR bootstrap/64256
8896         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
8897         (DBX_CONTIN_CHAR): Define.
8899 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
8900             Brian Rzycki  <b.rzycki@samsung.com>
8902         PR tree-optimization/64878
8903         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
8904         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
8905         Stop recursion at loop phi nodes after having visited a loop phi node.
8907 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
8909         * toplev.c (process_options): Change flag_ipa_ra before creating
8910         optimization_{default,current}_node.
8912         PR ipa/64896
8913         * cgraphunit.c (cgraph_node::expand_thunk): If
8914         restype is not is_gimple_reg_type nor the thunk_fndecl
8915         returns aggregate_value_p, set restmp to a temporary variable
8916         instead of resdecl.
8918 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
8920         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
8922 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
8924         PR target/64205
8925         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
8926         add a general secondary reload handler for SDmode, unless we have
8927         both read/write support for SDmode.
8929 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
8931         PR middle-end/64937
8932         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
8933         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
8934         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
8935         1 before, push it to abstract_vec.
8936         (dwarf2out_abstract_function): Adjust caller.  Don't call
8937         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
8938         DECL_ABSTRACT_P flags for all abstract_vec elts.
8940 2015-02-06  Renlin Li  <renlin.li@arm.com>
8942         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
8943         complex gimple.
8944         * tree-ssa.c (execute_update_addresses_taken): Likewise.
8946 2015-02-06  Jeff Law  <law@redhat.com>
8948         PR target/64889
8949         * config/h8300/h8300.c (push): New argument "in_prologue".
8950         Pass "in_prologue" along to "F".
8951         (h8300_push_pop): Corresponding changes.
8952         (h8300_expand_prologue): Likewise.
8953         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
8955 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
8957         PR rtl-optimization/64957
8958         PR debug/64817
8959         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
8960         IOR rather than for AND.
8962 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
8964         PR target/62631
8965         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
8966         of shift-add and (add + shift) operations.  Rename local variable.
8968 2015-02-05  Jeff Law  <law@redhat.com>
8970         PR target/17306
8971         * config/h8300/constraints.md (U): Correctly dectect
8972         "eightbit_data" memory addresses.
8973         * config/h8300/h8300.c (eightbit_constant_address_p): Also
8974         handle (const (plus (symbol_ref (x)))) where x is declared
8975         as an 8-bit data memory address.
8976         * config/h8300/h8300.md (call, call_value): Correctly detect
8977         "funcvec" functions.
8979         PR target/43264
8980         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
8981         24 to 28 bits for the H8/300.
8983 2015-02-06  Alan Modra  <amodra@gmail.com>
8985         PR target/64876
8986         * config/rs6000/rs6000.c (chain_already_loaded): New function.
8987         (rs6000_call_aix): Use it.
8989 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
8991         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
8992         check.
8994 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
8996         * config/h8300/constraints.md ("U" constraint): Use strict
8997         variant of REG_OK_FOR_BASE_P after reload has started.
8999 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
9001         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
9002         define to zero if !TARGET_NEON.
9003         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
9005 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
9006             Trevor Saunders  <tsaunders@mozilla.com>
9008         PR ipa/61548
9009         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
9011 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
9013         PR ipa/61548
9014         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
9015         when removing varpool nodes.
9017 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
9019         PR ipa/61548
9020         * varpool.c (varpool_node::remove): Fix order of variables.
9022 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
9024         PR ipa/64686
9025         * ipa-inline.c (inline_small_functions): Fix ordering issue between
9026         speculation resolution and key updates.
9028 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
9030         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
9031         about not letting any speculative edges unupdated.
9033 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
9035         PR gcov/64123
9036         * gcov-io.c (gcov_var): Export.
9038 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
9040         PR middle-end/64922
9041         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
9042         edges that become speculative.
9044 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
9046         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
9047         or DW_LANG_Fortran08.
9048         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
9049         DW_LANG_Fortran08.
9050         (gen_compile_unit_die): Handle "GNU Fortran2003" and
9051         "GNU Fortran2008" language strings.
9052         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
9053         * langhooks.h (lang_GNU_Fortran): New prototype.
9054         * langhooks.c (lang_GNU_Fortran): New function.
9055         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
9056         lang_GNU_Fortran.
9058 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
9060         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
9061         (RTX_OK_FOR_OLO10_P): Likewise.
9063 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
9065         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
9067 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
9069         PR middle-end/64922
9070         * gimple.c: Include gimple-ssa.h.
9071         (maybe_remove_unused_call_args): New function.
9072         * gimple.h (maybe_remove_unused_call_args): Declare.
9073         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
9074         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
9075         * gimple-fold.c (gimple_fold_call): Likewise.
9077 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
9079         PR rtl-optimization/64905
9080         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
9081         pointer alignment if it isn't needed.
9083 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
9085         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
9086         cortex-a72.cortex-a53.
9087         * config/aarch64/aarch64-tune.md: Regenerate.
9088         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
9090 2015-02-04  Nick Clifton  <nickc@redhat.com>
9092         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
9093         inside a MEM.
9095 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
9097         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
9098         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
9099         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
9100         of DEF_BUILTIN.
9101         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
9102         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
9103         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
9104         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
9105         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
9106         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
9107         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
9108         * tree-core.h (enum built_in_function): In between
9109         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
9110         for builtins that use DEF_BUILTIN_CHKP macro.
9112 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
9114         PR debug/64817
9115         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
9116         operands for tcc_comparison exprs.  Fix typos.
9118         PR debug/64817
9119         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
9120         of two XORs that have an intervening AND or IOR.
9122         PR debug/64817
9123         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
9124         simplification of XOR of AND to not allocate new rtx before
9125         committing to a simplification.
9127 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9129         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
9130         manual swaps in all peepholes.
9132 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9134         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
9135         of manual swapping implementation.
9136         (aarch64_expand_vec_perm_const_1): Likewise.
9138 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
9140         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
9141         (generic_addrcost_table): Remove NAMED_PARAM.
9142         (cortexa57_addrcost_table): Likewise.
9143         (xgene1_addrcost_table): Likewise.
9144         (generic_regmove_table): Likewise.
9145         (cortexa53_regmove_table): Likewise.
9146         (xgene1_regmove_table): Likewise.
9147         (generic_vector_table): Likewise.
9148         (cortexa57_vector_table): Likewise.
9149         (xgene1_vector_table): Likewise.
9150         (generic_tunings): Likewise.
9151         (cortexa53_tunings): Likewise.
9152         (cortexa57_tunings): Likewise.
9153         (xgene1_tunings): Likewise.
9155 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
9157         * config/arm/arm-cores.def: Add cortex-a72 and
9158         cortex-a72.cortex-a53.
9159         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
9160         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
9161         * config/arm/arm-tune.md: Regenerate.
9162         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
9163         "cortex-a72.cortex-a53".
9164         * doc/invoke.texi (ARM Options/-mtune): Likewise.
9166 2015-02-04  Nick Clifton  <nickc@redhat.com>
9168         PR target/64408
9169         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
9170         of accepted codes.
9171         (nonimmediate_di_operand): Likewise.
9173         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
9174         prefixes of known F5 using MSP430 MCUs.
9176 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9178         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
9179         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
9180         instead of __builtin_sqrt.
9182 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
9184         * varasm.c (do_assemble_alias): Follow transparent alias
9185         chain for target.
9186         (default_assemble_visibility): Follow transparent alias
9187         chain for decl name.
9189 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9191         PR middle-end/62103
9192         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
9193         to compute size of referenced value in the constant case.
9195 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
9197         PR rtl-optimization/64756
9198         * cse.c (invalidate_dest): New function.
9199         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
9200         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
9201         invalidate and do not record it.
9203 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
9205         PR target/64660
9206         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
9207         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
9208         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
9209         atomic_nand<mode>_soft_tcb): New insns.
9210         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
9211         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
9212         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
9213         Split into atomic_not_fetchsi_hard if operands[0] is unused.
9214         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
9215         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
9216         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
9217         atomic_not<mode>_hard if operands[0] is unused.
9218         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
9219         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
9220         if operands[0] is unused.
9221         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
9222         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
9223         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
9224         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
9225         unused.
9226         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
9227         into atomic_not<mode>_soft_tcb if operands[0] is unused.
9228         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
9229         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
9230         if operands[0] is unused.
9231         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
9232         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
9233         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
9234         atomic_nand_fetchsi_hard if operands[0] is unused.
9235         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
9236         atomic_nand<mode>_hard if operands[0] is unused.
9237         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
9238         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
9239         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
9240         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
9241         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
9242         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
9243         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
9244         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
9245         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
9246         atomic_not<mode>_hard if operands[0] is unused.
9247         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
9248         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
9249         unused.
9250         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
9251         into atomic_not<mode>_soft_tcb if operands[0] is unused.
9252         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
9253         atomic_nand<mode>_hard if operands[0] is unused.
9254         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
9255         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
9257 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
9259         PR jit/64810
9260         * Makefile.in (GCC_OBJS): Add gcc-main.o.
9261         * gcc-main.c: New file, containing "main" taken from gcc.c.
9262         * gcc.c (do_self_spec): Free decoded_options.
9263         (class driver): Move declaration to gcc.h.
9264         (main): Move declaration and implementation to new file
9265         gcc-main.c.
9266         (driver_get_configure_time_options): New function.
9267         * gcc.h (class driver): Move this declaration here, from
9268         gcc.c.
9269         (driver_get_configure_time_options): New declaration.
9271 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
9273         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
9274         cross-module inlining.
9275         * cgraph.h (cgraph_node): Add flag merged.
9276         * ipa-icf.c (sem_function::merge): Maintain it.
9278 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
9280         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
9281         instead of OBJECT_P.
9283 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
9285         PR target/62631
9286         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
9287         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
9288         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
9289         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
9291 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
9293         PR other/63504
9294         * combine.c (reg_n_sets_max): New variable.
9295         (can_change_dest_mode, reg_nonzero_bits_for_combine,
9296         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
9297         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
9298         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
9299         (rest_of_handle_combine): Initialize reg_n_sets_max.
9301 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
9303         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
9304         if some always_inline was inlined, apply changes before inlining
9305         heuristically.
9307 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
9309         PR jit/64810
9310         * config/arm/arm.c (arm_option_override): Set
9311         arm_selected_arch/cpu/tune to NULL on entry.
9313 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
9314             Andrew Pinski  <pinskia@gcc.gnu.org>
9315             Jakub Jelinek  <jakub@gcc.gnu.org>
9317         PR target/64231
9318         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
9319         integer typing for small model. Use IN_RANGE.
9321 2015-02-02  Richard Biener  <rguenther@suse.de>
9323         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
9324         * tree-vrp.c (vrp_valueize_1): Likewise.
9326 2015-02-02  Alan Modra  <amodra@gmail.com>
9328         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
9329         than mem for toc_restore.
9330         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
9331         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
9332         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
9334 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
9336         PR target/64047
9337         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
9338         explicit default options.
9340 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
9342         PR ipa/64872
9343         * ipa-utils.c (ipa_merge_profiles): Add release argument.
9344         * ipa-icf.c (sem_function::merge): Do not release body when merging.
9345         * ipa-utils.h (ipa_merge_profiles): Update prototype.
9347 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
9349         PR debug/64817
9350         * cfgexpand.c (deep_ter_debug_map): New variable.
9351         (avoid_deep_ter_for_debug): New function.
9352         (expand_debug_expr): If TERed SSA_NAME is in
9353         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
9354         instead of trying to expand SSA_NAME's def stmt.
9355         (expand_debug_locations): When expanding debug bind
9356         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
9357         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
9358         value.
9359         (pass_expand::execute): Call avoid_deep_ter_for_debug on
9360         all debug bind stmts.  Delete deep_ter_debug_map after
9361         expand_debug_location if non-NULL and clear it.
9363 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
9365         PR target/64851
9366         * config/sh/sync.md (atomic_fetch_notsi_hard,
9367         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
9368         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
9369         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
9370         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
9371         atomic_not_fetch<mode>_soft_imask): New insns.
9373 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
9375         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
9376         (rank_for_schedule_debug): Split from ...
9377         (rank_for_schedule): ... this.
9378         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
9379         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
9381 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
9383         * doc/md.texi (Machine Constraints): Alphabetize table by target.
9384         * doc/extend.texi (x86 Variable Attributes): Move section to
9385         correct alphabetization after renaming.
9386         (x86 Type Attributes): Likewise.
9387         (Target Builtins): Re-alphabetize menu.
9388         (x86 Built-in Functions): Move section to correct alphabetization
9389         after renaming.
9390         (x86 transactional memory intrinsics): Likewise.
9391         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
9392         and x86 Windows Options in table and menu.
9393         (x86 Options): Move section to correct alphabetization after
9394         renaming.
9395         (x86 Windows Options): Likewise.
9397 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
9399         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
9400         preferred names of the architecture and its 32- and 64-bit
9401         variants.
9402         * doc/invoke.texi: Likewise.
9403         * doc/md.texi: Likewise.
9405 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
9407         PR target/64882
9408         * config/i386/predicates.md (address_no_seg_operand): Reject
9409         non-CONST_INT_P operands in invalid mode.
9411 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
9413         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
9414         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
9415         * config/i386/predicates.md (address_no_seg_operand): Call
9416         address_operand with VOIDmode.
9417         (vsib_address_operand): Ditto.
9418         (address_mpx_no_base_operand): Ditto.
9419         (address_mpx_no_index_operand): Ditto.
9421 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
9423         PR target/64688
9424         * lra-constraints.c (original_subreg_reg_mode): New.
9425         (simplify_operand_subreg): Try to simplify subreg of const.  Use
9426         original_subreg_reg_mode for it.
9427         (swap_operands): Update original_subreg_reg_mode.
9428         (curr_insn_transform): Set up original_subreg_reg_mode.
9430 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
9432         PR target/64617
9433         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
9434         function.
9435         (process_alt_operands): Use it.
9436         (curr_insn_transform): Check the optional reload pseudo class is
9437         ok for the mode.
9439 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
9441         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
9442         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
9443         prototype.
9444         * toplev.h (init_asm_output): Update comment on use of
9445         UNKNOWN_LOCATION with fatal_error.
9446         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
9447         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
9448         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
9449         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
9450         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
9451         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
9452         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
9453         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
9454         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
9455         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
9456         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
9457         fatal_error changed to pass input_location as first argument.
9459 2015-01-30  Martin Liska  <mliska@suse.cz>
9461         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
9462         in #pragma GCC diagnostic guards.
9464 2015-01-30  Richard Biener  <rguenther@suse.de>
9466         PR tree-optimization/64829
9467         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
9468         not add a widening conversion pattern but hand off extra
9469         widenings to callers.
9470         (vect_recog_widen_mult_pattern): Handle extra widening produced
9471         by vect_handle_widen_op_by_const.
9472         (vect_recog_widen_shift_pattern): Likewise.
9473         (vect_pattern_recog_1): Remove excess vertical space in dumping.
9474         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
9475         (vect_init_vector_1): Likewise.
9476         (vect_get_vec_def_for_operand): Likewise.
9477         (vect_finish_stmt_generation): Likewise.
9478         (vectorizable_load): Likewise.
9479         (vect_analyze_stmt): Likewise.
9480         (vect_is_simple_use): Likewise.
9482 2015-01-29  Jeff Law  <law@redhat.com>
9484         * combine.c (try_combine): Fix typo in comment.
9486 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
9488         PR target/64580
9489         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
9490         (rs6000_stack_info): Add assert.
9491         (rs6000_output_savres_externs): New function, split off from...
9492         (rs6000_output_function_prologue): ... here.  Do not call it for
9493         thunks.
9495 2015-01-29  Jeff Law  <law@redhat.com>
9497         PR target/15184
9498         * combine.c (try_combine): If I0 is a memory load and I3 a store
9499         to a related address, increase the "goodness" of doing a 4-insn
9500         combination with I0-I3.
9501         (make_field_assignment): Handle SUBREGs in the ior+and case.
9503 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
9505         PR tree-optimization/64746
9506         * tree-if-conv.c (mask_exists): New function.
9507         (predicate_mem_writes): Save created mask with given size for further
9508         use.
9509         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
9510         (ifcvt_repair_bool_pattern): Collect all statements that are root
9511         of bool pattern and use iterative algorithm to remove multiple uses
9512         of predicates, display number of required iterations.
9514 2015-01-29  Richard Biener  <rguenther@suse.de>
9516         PR tree-optimization/64853
9517         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
9518         stmt will get simulated again.
9519         * tree-ssa-ccp.c (valueize_op_1): Likewise.
9521 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9523         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
9524         return_in_pc.  Remove redundant assignments.
9525         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
9526         (arm_expand_epilogue): Don't compare boolean with true in if condition.
9528 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
9530         * config/i386/i386.c (ix86_mode_after): Make static.
9532 2015-01-29  Richard Biener  <rguenther@suse.de>
9534         PR tree-optimization/64844
9535         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
9536         dump cost model analysis.
9537         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9538         Do not register adjusted load/store costs here.
9540 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
9541             Uros Bizjak  <ubizjak@gmail.com>
9543         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
9544         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
9545         using x86_use_pseudo_pic_reg.
9546         * config/i386/i386.c (ix86_conditional_register_usage): Remove
9547         support for fixed PIC register.
9548         (ix86_use_pseudo_pic_reg): Not static any more.
9550 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
9552         PR middle-end/64805
9553         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
9554         to avoid error in cgraph node verification.
9556 2015-01-29  Marek Polacek  <polacek@redhat.com>
9558         * doc/standards.texi: Reflect that the default for C is gnu11.
9560 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
9562         PR target/64761
9563         * reorg.c (switch_text_sections_between_p): New function.
9564         (relax_delay_slots): Call it when testing if the jump insn
9565         is removable.  Use targetm.can_follow_jump when testing if
9566         the conditional branch can follow an unconditional jump.
9568 2015-01-27  Caroline Tice  <cmtice@google.com>
9570         Committing VTV Cywin/Ming patch for Patrick Wollgast
9571         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
9572         if -fvtable-verify=preinit/std is used.
9573         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
9574         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
9575         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
9576         if -fvtable-verify=preinit/std is used.
9577         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
9578         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
9579         if -fvtable-verify=preinit/std is used.
9580         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
9581         * config/i386/mingw32.h (LIB_SPEC): Likewise.
9582         * varasm.c (assemble_variable): Add code to properly set the comdat
9583         section and name for the .vtable_map_vars section in case the
9584         target is PE or COFF.
9586 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
9588         PR ipa/64801
9589         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
9590         make sane BB profile.
9591         (cgraph_node::expand_thunk): Make sane BB profile.
9592         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
9593         * cgraph.h (init_lowered_empty_function): Update prototype.
9594         * config/i386/i386.c (make_resolver_func): Update call.
9595         * predict.c (gate): Disable branch prediction pass if
9596         profile is already there.
9598 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
9600         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
9601         * opth-gen.awk: Likewise.
9602         * common.opt: Mark flag_fp_contract_mode as Optimization.
9604 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9606         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
9607         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
9609 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
9611         PR target/64659
9612         * config/sh/predicates.md (atomic_arith_operand,
9613         atomic_logical_operand): Remove.
9614         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
9615         (atomic_arith_operand_0): New predicate.
9616         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
9617         Use atomic_arith_operand_0 for input values.
9618         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
9619         atomic_compare_and_swap<mode>_soft_gusa,
9620         atomic_compare_and_swap<mode>_soft_tcb,
9621         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
9622         arith_reg_operand instead of register_operand.
9623         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
9624         atomic_arith_operand_0 for newval input.
9625         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
9626         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
9627         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
9628         arith_reg_operand instead of register_operand.
9629         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
9630         fetchop_predicate_1, fetchop_constraint_1_llcs,
9631         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
9632         fetchop_constraint_1_imask): New code iterator attributes.
9633         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
9634         register_operand.  Use fetchop_predicate_1.
9635         (atomic_fetch_<fetchop_name>si_hard,
9636         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
9637         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
9638         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
9639         and arith_reg_operand instead of register_operand.  Use
9640         fetchop_predicate_1, fetchop_constraint_1_gusa.
9641         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
9642         and arith_reg_operand instead of register_operand.  Use
9643         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
9644         to allow R0 usage.
9645         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
9646         and arith_reg_operand instead of register_operand.  Use
9647         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
9648         to allow R0 usage.
9649         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
9650         register_operand.  Use atomic_logical_operand_1.
9651         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
9652         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
9653         arith_reg_operand instead of register_operand.
9654         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
9655         Use arith_reg_dest and arith_reg_operand instead of register_operand.
9656         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
9657         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
9658         register_operand.  Use fetchop_predicate_1.
9659         (atomic_<fetchop_name>_fetchsi_hard,
9660         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
9661         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
9662         fetchop_constraint_1_llcs.
9663         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
9664         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
9665         fetchop_constraint_1_gusa.
9666         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
9667         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
9668         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
9669         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
9670         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
9671         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
9672         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
9673         register_operand.  Use atomic_logical_operand_1.
9674         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
9675         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
9676         arith_reg_operand instead of register_operand.
9677         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
9678         arith_reg_operand instead of register_operand.  Use logical_operand
9679         and K08.  Adjust asm sequence to allow R0 usage.
9680         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
9681         arith_reg_operand instead of register_operand.  Use logical_operand
9682         and K08.
9684 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
9686         PR other/63504
9687         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
9688         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
9689         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
9690         only get_full_len HOST_WIDE_INTs from get_val () array rather than
9691         all bits in *val_wide.
9693 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
9695         * varpool.c (tls_model_names): Fix names.
9696         (varpool_node::dump): Dump tls- prefix for tls models.
9698 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
9699             Bernd Schmidt  <bernds@codesourcery.com>
9700             Nathan Sidwell  <nathan@codesourcery.com>
9702         * config/nvptx/mkoffload.c: New file.
9703         * config/nvptx/t-nvptx: Add build rules for it.
9704         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
9705         (extra_programs): Add mkoffload.
9706         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
9707         function.
9708         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
9710 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
9712         PR middle-end/64809
9713         * cfgexpand.c (reorder_operands): Skip debug gimples.
9715 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
9717         PR tree-optimization/64277
9718         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
9719         range info when possible to refine estimation.
9721 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9723         PR tree-optimization/64718
9724         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
9725         be a 16bit unsigned integer when n->range is 16.
9726         (bswap_replace): Convert src to that type if necessary for all bswap
9727         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
9728         set in pass_optimize_bswap::execute ().
9730 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
9732         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
9733         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
9734         integer and floating point variants.
9735         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
9737 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
9739         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
9740         for all vector modes.
9742 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
9744         PR bootstrap/64612
9745         * doc/sourcebuild.texi (comdat_group): Document.
9747 2015-01-28  Terry Guo  <terry.guo@arm.com>
9749         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
9751 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
9753         * toplev.c (print_version): Add param "show_global_state", and
9754         only print GGC and plugin information if it is true.
9755         (init_asm_output): Pass in "true" for the new param when calling
9756         print_version.
9757         (process_options): Likewise.
9758         (toplev::main): Likewise.
9759         * toplev.h (print_version): Add new param to decl.
9761 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
9763         PR ipa/60871
9764         PR ipa/64139
9765         * tree.c (lookup_binfo_at_offset): New function.
9766         (get_binfo_at_offset): Use it.
9768 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
9770         PR ipa/64282
9771         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
9772         on vtable being vtable.
9774 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9776         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
9777         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
9778         -mhotpatch= option.
9779         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
9780         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
9781         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
9782         Renamed.
9783         (s390_hotpatch_trampoline_halfwords_max): Renamed.
9784         (s390_hotpatch_hw_max): New name.
9785         (s390_hotpatch_trampoline_halfwords): Renamed.
9786         (s390_hotpatch_hw_before_label): New name.
9787         (get_hotpatch_attribute): Removed.
9788         (s390_hotpatch_hw_after_label): New name.
9789         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
9790         attribute.
9791         (s390_attribute_table): Ditto.
9792         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
9793         (s390_function_num_hotpatch_hw): New name.
9794         Remove special handling of inline functions and hotpatching.
9795         Return number of nops before and after the function label.
9796         (s390_can_inline_p): Removed.
9797         (s390_asm_output_function_label): Emit a configurable number of nops
9798         after the function label.
9799         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
9800         (TARGET_CAN_INLINE_P) Removed.
9801         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
9803 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9804             Jiong Wang  <jiong.wang@arm.com>
9806         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
9807         of scratch reg.
9808         (cb<optab><mode>1): Likewise.
9809         * config/aarch64/iterators.md (bcond): New define_code_attr.
9811 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9813         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
9814         memory accesses.
9816 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9818         * config/s390/s390.c (s390_register_move_cost): Increase costs for
9819         FPR->GPR moves.
9821 2015-01-27  Richard Biener  <rguenther@suse.de>
9823         * tree-vrp.c (update_value_range): Intersect the range with
9824         old recorded SSA name range information.
9826 2015-01-27  Nick Clifton  <nickc@redhat.com>
9828         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
9829         BC, DE and HL registers directly, not via AX.
9830         When decrementing the stack pointer by a large amount, transfer SP
9831         into AX and perform the subtraction there.
9832         (rl78_expand_epilogue): Perform the inverse of the above
9833         enhancements.
9835 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9837         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
9839 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
9840             Yury Gribov  <y.gribov@samsung.com>
9842         PR ubsan/64741
9843         * ubsan.c (ubsan_source_location): Refactor code.
9844         (ubsan_type_descriptor): Update type size. Refactor code.
9846 2015-01-27  Richard Biener  <rguenther@suse.de>
9848         PR tree-optimization/56273
9849         PR tree-optimization/59124
9850         PR tree-optimization/64277
9851         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
9852         from the first VRP pass.
9854 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
9856         PR ipa/64776
9857         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
9858         handle the first argument in the same loop as all the other arguments.
9860         PR rtl-optimization/61058
9861         * jump.c (cleanup_barriers): Update basic block boundaries
9862         if BLOCK_FOR_INSN is non-NULL on PREV.
9864 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
9866         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
9867         bounds narrowing, already instrumented calls and calls to
9868         not instrumentable functions.
9870 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
9872         PR tree-optimization/64807
9873         * wide-int.cc (wi::divmod_internal): Clear
9874         b_dividend[dividend_blocks_needed].
9876 2015-01-26  DJ Delorie  <dj@redhat.com>
9878         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
9879         volatile memory references.
9881 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
9883         PR target/49263
9884         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
9885         remove_insn.
9886         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
9887         shifts if it already fits into K08.
9889 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
9891         PR ipa/64730
9892         * ipa-inline.c (inline_small_functions): Print "unknown" even
9893         if edge->call_stmt is non-NULL, but has builtins or unknown
9894         location.
9896         PR middle-end/64421
9897         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
9898         with asterisk, skip the first character.
9900 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
9902         PR target/64806
9903         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
9904         order change.
9906 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
9908         PR target/64795
9909         * config/i386/i386.md (*movdi_internal): Also check operand 0
9910         to determine TYPE_LEA operand.
9911         (*movsi_internal): Ditto.
9913 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
9915         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
9916         OPTION_MASK_QUAD_MEMORY_ATOMIC.
9918 2015-01-26  Renlin Li  <renlin.li@arm.com>
9920         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
9921         the comment.
9922         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
9923         for higher part.
9925 2015-01-26  Richard Biener  <rguenther@suse.de>
9927         PR middle-end/64764
9928         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
9929         combining two BIT_AND_EXPR predicates.
9931 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
9933         PR bootstrap/64754
9934         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
9936 2015-01-26  Terry Guo  <terry.guo@arm.com>
9938         * config/arm/arm.c (arm_file_start): Update the assignment of
9939         Tag_ABI_HardFP_use.
9941 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
9943         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
9944         pipeline model.
9945         config/arm/arm.md: Include the new Cortex-A57 model.
9946         (generic_sched): Don't use generic_sched when tuning for
9947         Cortex-A57.
9949 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
9950             Uros Bizjak  <ubizjak@gmail.com>
9952         * config/i386/i386.c (get_builtin_code_for_version): Add
9953         support for BMI and BMI2 multiversion functions.
9955 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9957         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
9958         (extract_bit_field): Likewise.
9959         (extract_low_bits): Likewise.
9960         (expand_mult): Likewise.
9961         (expand_mult_highpart_adjust): Likewise.
9963 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
9965         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
9966         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
9967         * config/i386/i386.c (processor_model): Add
9968         M_INTEL_COREI7_BROADWELL.
9969         (arch_names_table): Add "broadwell".
9971 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
9973         PR target/49263
9974         PR target/53987
9975         PR target/64345
9976         PR target/59533
9977         PR target/52933
9978         PR target/54236
9979         PR target/51244
9980         * config/sh/sh-protos.h
9981         (sh_extending_set_of_reg::can_use_as_unextended_reg,
9982         sh_extending_set_of_reg::use_as_unextended_reg,
9983         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
9984         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
9985         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
9986         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
9987         (sh_treg_insns): New class.
9988         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
9989         (scope_counter): New class.
9990         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
9991         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
9992         sh_extending_set_of_reg::can_use_as_unextended_reg,
9993         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
9994         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
9995         sh_split_treg_set_expr): New functions.
9996         (addsubcosts): Handle treg_set_expr.
9997         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
9998         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
9999         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
10000         (sh_insn_operands_modified_between_p): Make non-static.
10001         * config/sh/predicates.md (zero_extend_movu_operand): Allow
10002         simple_mem_operand in addition to displacement_mem_operand.
10003         (zero_extend_operand): Don't allow zero_extend_movu_operand.
10004         (treg_set_expr, treg_set_expr_not_const01,
10005         arith_reg_or_treg_set_expr): New predicates.
10006         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
10007         arith_or_int_operand instead of logical_operand.  Convert to
10008         insn_and_split.  Try to optimize constant operand in splitter.
10009         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
10010         (*tstqi_t_zero): Delete.
10011         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
10012         (tstsi_t_and_not): Delete.
10013         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
10014         Convert to insn_and_split.
10015         (unnamed split, tstsi_t_zero_extract_xor,
10016         tstsi_t_zero_extract_subreg_xor_little,
10017         tstsi_t_zero_extract_subreg_xor_big): Delete.
10018         (*tstsi_t_shift_mask): New insn_and_split.
10019         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
10020         to recombine with surrounding insns when splitting.
10021         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
10022         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
10023         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
10024         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
10025         (*cbranch_div0s: Delete.
10026         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
10027         Try to recombine with surrounding insns when splitting.  Add operand
10028         order variants.
10029         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
10030         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
10031         *addc_r_r_msb, *addc_2r_msb): Delete.
10032         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
10033         order variant.
10034         (*addc_negreg_t): New insn_and_split.
10035         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
10036         Try to recombine with surrounding insns when splitting.
10037         Add operand order variants.
10038         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
10039         insn_and_split patterns.
10040         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
10041         surrounding insns when splitting.
10042         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
10043         (*rotcl): Likewise.  Add zero_extract variant.
10044         (*ashrsi2_31): New insn_and_split.
10045         (*negc): Convert to insn_and_split.  Use treg_set_expr.
10046         (*zero_extend<mode>si2_disp_mem): Update comment.
10047         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
10048         condition.
10049         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
10050         with surrounding insns when splitting.
10051         (any_treg_expr_to_reg): New insn_and_split.
10052         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
10053         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
10054         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
10055         *zero_extract_2): New single bit zero extract patterns.
10056         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
10057         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
10058         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
10059         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
10060         set destination.
10061         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
10062         register_operand for set source.
10064 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
10066         * i386.opt (prefetch_sse): New targetsave.
10067         * i386.c (ix86_function_specific_save): Save prefetch_sse.
10068         (ix86_function_specific_restore): Restore prefetch_sse and initialize
10069         ix86_cost/ix86_tune_cost.
10071 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
10073         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
10074         Support the JIT by using 0 as the language type.
10076 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
10078         PR target/64317
10079         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
10080         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
10081         (mark_regno_live, process_bb_lives): Pass new parameter value to
10082         make_hard_regno_born.
10084 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
10086         PR rtl-optimization/63637
10087         PR rtl-optimization/60663
10088         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
10089         if elt->cost is MAX_COST for ASM_OPERANDS.
10090         (find_sets_in_insn): Fix up comment typo.
10091         (cse_insn): Don't set src_volatile for all non-volatile
10092         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
10093         or with "memory" clobber.  Set elt->cost to MAX_COST
10094         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
10095         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
10097 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
10099         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
10100         alternative 1.
10102 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
10104         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
10105         libgcc/config/i386/elf-lib.h.
10107 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
10109         PR driver/64737
10110         * gcc.c (print_configuration): Don't print a blank line at the end
10111         here...
10112         (run_attempt): ... but here unstead.
10114         PR middle-end/64734
10115         * omp-low.c (scan_sharing_clauses): Don't ignore
10116         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
10117         on target data/update constructs.
10119 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10121         PR target/50928
10122         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
10123         (DEBUG_RELOAD): Removed define.
10124         (m32c_limit_reload_class): Enable traces with if DEBUG0.
10125         (m32c_function_arg): Added a type cast.
10126         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
10127         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
10128         * config/m32c/bitops.md (andqi3_16): Likewise.
10129         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
10130         (push_a01_l): Likewise.
10132 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
10134         PR jit/64721
10135         * main.c (main): Construct toplev instances with init_signals=true.
10136         * toplev.c (general_init): Add param "init_signals", and use it to
10137         conditionalize the calls to signal and host_hooks.extra_signals.
10138         (toplev::toplev): Add param "init_signals".
10139         (toplev::main): When invoking general_init, pass m_init_signals
10140         to control whether signal-handlers are installed.
10141         * toplev.h (toplev::toplev): Add param "init_signals".
10142         (toplev::m_init_signals): New field.
10144 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
10146         PR jit/64722
10147         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
10148         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
10149         latter may be affected by the former (e.g. on i686).
10151 2015-01-23  Martin Liska  <mliska@suse.cz>
10153         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
10154         false positive during profiledbootstrap.
10156 2015-01-23  Tom de Vries  <tom@codesourcery.com>
10158         PR libgomp/64672
10159         * lto-opts.c (lto_write_options): Output non-explicit conservative
10160         -fno-openacc.
10161         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
10162         (append_compiler_options): Pass -fopenacc through.
10164 2015-01-23  Tom de Vries  <tom@codesourcery.com>
10166         PR libgomp/64707
10167         * lto-opts.c (lto_write_options): Output non-explicit conservative
10168         -fno-openmp.
10169         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
10170         (append_compiler_options): Pass -fopenmp through.
10172 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
10174         PR debug/64511
10175         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
10176         GTY markup.
10178         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
10179         * diagnostic.def (DK_ICE_NOBT): New kind.
10180         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
10181         like DK_ICE, but never print backtrace.
10182         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
10183         (internal_error_no_backtrace): New function.
10184         * gcc.c (execute): Use internal_error_no_backtrace instead of
10185         internal_error.
10187 2015-01-22  Jeff Law  <law@redhat.com>
10189         PR target/52076
10190         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
10191         improve code density for small immediate to memory case.
10192         (insv): Better handle bitfield assignments when the field is
10193         being set to all ones.
10194         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
10195         operand predicate.
10197 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10198             Jakub Jelinek  <jakub@redhat.com>
10200         PR middle-end/64729
10201         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
10202         for !TARGET_LIBC_PROVIDES_SSP version and
10203         -fstack-protector-{all,strong,explicit} otherwise.
10204         * config/freebsd.h (LINK_SSP_SPEC): Handle
10205         -fstack-protector-{strong,explicit}.
10207 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
10208             H.J. Lu  <hongjiu.lu@intel.com>
10210         PR ipa/64694
10211         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
10212         heap.
10214 2015-01-22  Wei Mi  <wmi@google.com>
10216         PR rtl-optimization/64557
10217         * dse.c (record_store): Call get_addr for mem_addr.
10218         (check_mem_read_rtx): Likewise.
10220 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
10222         * fold-const.c (const_binop): Add early return for non-tcc_binary.
10224 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
10226         * toplev.c (init_local_tick): Process the failure when read
10227         fails for random_seed.
10229         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
10230         'pretty_name' to avoid memory overflow.
10232 2015-01-22  Richard Biener  <rguenther@suse.de>
10234         PR middle-end/64728
10235         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
10236         abnormal coalescing on undefined SSA names.
10238 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
10240         PR target/64688
10241         PR target/64477
10242         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
10243         for alternative 3.
10244         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
10246 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
10248         PR middle-end/63325
10249         * fold-const.c (fold_checksum_tree): Don't include value of
10250         expr->decl_with_vis.symtab_node in the checksum.
10252 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10254         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
10256 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
10258         PR driver/64690
10259         * gcc.c (insert_comments): New function.
10260         (try_generate_repro): Call it.
10261         (append_text): Removed.
10263 2015-01-22  Richard Biener  <rguenther@suse.de>
10265         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
10266         with IL incompatible options.  Properly honor user optimize
10267         attributes.
10269 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
10271         PR rtl-optimization/64682
10272         * combine.c (distribute_notes): When moving a death note for
10273         a register that is set in the new I2, make sure to put it
10274         before that new I2.
10276 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
10278         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
10279         not TARGET_DEFAULT.
10281 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
10283         PR debug/64511
10284         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
10285         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
10286         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
10288         PR sanitizer/64706
10289         * doc/invoke.texi (-fsanitize=vptr): Document.
10291         PR rtl-optimization/62078
10292         * dse.c: Include cfgcleanup.h.
10293         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
10294         anything call purge_all_dead_edges and cleanup_cfg at the end
10295         of the pass.
10297 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
10299         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
10300         edges.
10302 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10304         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
10305         decl attribute.
10307 2015-01-21  David Sherwood  <david.sherwood@arm.com>
10308             Tejas Belagod <Tejas.Belagod@arm.com>
10310         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
10311         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
10312         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
10313         Removed.
10315 2015-01-21  David Sherwood  <david.sherwood@arm.com>
10316             Tejas Belagod <Tejas.Belagod@arm.com>
10318         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
10319         (aarch64_reverse_mask): New decls.
10320         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
10321         (insn_count): New mode_attr.
10322         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
10323         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
10324         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
10325         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
10326         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
10327         (aarch64_simd_st4): New patterns.
10328         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
10329         (aarch64_reverse_mask): New functions.
10331 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
10333         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
10334         Declare.
10335         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
10336         addressing modes for BE.
10337         (aarch64_print_operand): Add 'R' specifier.
10338         (aarch64_simd_disambiguate_copy): Delete.
10339         (aarch64_simd_emit_reg_reg_move): New function.
10340         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
10341         in define_splits for structural moves.
10342         (mov<mode>): Use less restrictive predicates.
10343         (*aarch64_mov<mode>): Simplify and only allow for LE.
10344         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
10346 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
10348         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
10350 2015-01-21  Richard Henderson  <rth@redhat.com>
10352         PR target/64669
10353         * ccmp.c (used_in_cond_stmt_p): Remove.
10354         (expand_ccmp_expr): Don't use it.
10356 2015-01-21  Nick Clifton  <nickc@redhat.com>
10358         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
10359         PARALLELs.
10361 2015-01-21  Richard Biener  <rguenther@suse.de>
10363         PR middle-end/64313
10364         * tree-core.h (builtin_info, builtin_info_type): Turn from
10365         an object with two arrays into an array of an object with
10366         decl and two flags, implicit_p and declared_p.
10367         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
10368         set_builtin_decl, set_builtin_decl_implicit_p,
10369         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
10370         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
10371         * builtins.c (builtin_info): Adjust.
10372         * gimplify.c (gimplify_addr_expr): References to builtins
10373         that have been declared by the user makes them eligible for
10374         use by the compiler.  Call set_builtin_decl_implicit_p on them.
10376 2015-01-20  Jeff Law  <law@redhat.com>
10378         PR target/59946
10379         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
10380         allow pc-relative addresses in operand predicates or constraints.
10382 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
10384         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
10385         neon on aarch32 processors for stringops.
10387 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
10389         PR ipa/63576
10390         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
10392 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
10394         PR lto/45375
10395         * ipa-inline.c: Include lto-streamer.h
10396         (report_inline_failed_reason): Output source file differences and
10397         flags on optimization/target node mismatch.
10398         (can_inline_edge_p): Consider caller to be the outer inline function;
10399         be less restrictive about matching opimize and optimize_size attributes.
10400         (inline_account_function_p): Break out from ...
10401         (inline_small_functions): ... here.
10402         * ipa-inline-transform.c (clone_inlined_nodes): Use
10403         inline_account_function_p.
10404         (inline_call): Use optimize attribution; use inline_account_function_p.
10405         (inline_transform): Use opt_for_fn.
10406         * ipa-inline.h (inline_account_function_p): Declare.
10408 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
10410         PR debug/64663
10411         * dwarf2out.c (decl_piece_node): Don't put bitsize into
10412         mode if bitsize <= 0.
10413         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
10414         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
10415         sizes and positions.
10417 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
10419         * config/nios2/nios2.c (nios2_asm_file_end): Implement
10420         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
10421         needed.
10422         (TARGET_ASM_FILE_END): Define.
10424 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
10426         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
10427         (struct tune_params): Use the enum.
10428         * arm.c (arm_*_tune): Update.
10429         (arm_option_override): Update.
10431 2015-01-20  Richard Biener  <rguenther@suse.de>
10433         PR ipa/64684
10434         * ipa-reference.c (add_static_var): Inline ...
10435         (analyze_function): ... here after splitting out from ...
10436         (is_proper_for_analysis): ... this.
10438 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
10440         PR target/64149
10441         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
10442         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
10443         replace the conditional with it's true branch.
10444         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
10445         (arm_lra_p): Remove.
10447 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
10449         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
10451 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10453         * config/tilegx/mul-tables.c: Move symtab.h include after
10454         coretypes.h include.
10455         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
10456         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
10457         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
10458         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
10459         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
10461 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
10463         PR bootstrap/64676
10464         Revert:
10465         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
10467         PR rtl-optimization/64081
10468         * loop-iv.c (def_pred_latch_p): New function.
10469         (latch_dominating_def): Allow specific cases with non-single
10470         definitions.
10471         (iv_get_reaching_def): Likewise.
10472         (check_complex_exit_p): New function.
10473         (check_simple_exit): Use check_complex_exit_p to allow certain cases
10474         with exits not executing on any iteration.
10476 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
10478         PR lto/45375
10479         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
10480         to set branch cost.
10482 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
10484         PR lto/45375
10485         * i386.c (gate): Check flag_expensive_optimizations and
10486         optimize_size.
10487         (ix86_option_override_internal): Drop optimize_size condition
10488         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
10489         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
10490         MASK_PREFER_AVX128.
10491         (ix86_avx256_split_vector_move_misalign,
10492         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
10493         * sse.md (all uses of TARGET_PREFER_AVX128): Add
10494         optimize_insn_for_speed_p check.
10496 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
10498         * config/mips/mips.h (FP_ASM_SPEC): New define.
10499         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
10500         instead.
10502 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
10504         PR target/53988
10505         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
10506         nullptr for insn when reaching the first insn.
10507         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
10508         (sh_insn_operands_modified_between_p): Add nullptr check.
10509         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
10510         sign extending mem load if the insn contains any UNSPEC or
10511         UNSPEC_VOLATILE.
10513 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
10515         * params.def (inline-unit-growth): Drop to 15%.
10516         * invoke.texi (inline-unit-growth): Document change.
10518 2015-01-19  Martin Liska  <mliska@suse.cz>
10520         PR ipa/64668
10521         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
10522         function for second argument of OBJ_TYPE_REF.
10524 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
10526         PR ipa/64218
10527         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
10528         whether function is an alias.
10530 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
10532         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
10533         cases.
10535 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
10537         PR rtl-optimization/64671
10538         * lra-remat.c (operand_to_remat): Don't consider jump and call
10539         insns.
10541 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
10543         PR target/59828
10544         * config/rs6000/default64.h: Include rs6000-cpus.def.
10545         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
10546         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
10547         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
10548         and POWER8.
10549         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
10550         POWER8.
10551         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
10552         pseudo-op to specify assembler dialect.
10554 2015-01-19  Martin Liska  <mliska@suse.cz>
10556         PR ipa/64664
10557         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
10558         Handle safe potentially removed nodes during filtering.
10560 2015-01-19  Martin Liska  <mliska@suse.cz>
10562         * doc/extend.texi (no_icf): Add new attribute description.
10563         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
10564         where the pass attempts to merge a function with no_icf attribute.
10566 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10568         PR target/64532
10569         * doc/md.texi (ARM Options): Document register constraints.
10571 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
10572             Andrew Pinski  <apinski@cavium.com>
10574         PR target/64304
10575         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
10576         (ashl<mode>3): Don't expand if operands[2] is not constant.
10578 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10580         PR target/64448
10581         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
10582         Match xor-and-xor RTL pattern.
10584 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
10586         PR rtl-optimization/64081
10587         * loop-iv.c (def_pred_latch_p): New function.
10588         (latch_dominating_def): Allow specific cases with non-single
10589         definitions.
10590         (iv_get_reaching_def): Likewise.
10591         (check_complex_exit_p): New function.
10592         (check_simple_exit): Use check_complex_exit_p to allow certain cases
10593         with exits not executing on any iteration.
10595 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
10597         * common.opt (fgraphite): Fix a typo.
10599 2015-01-19  Felix Yang  <felix.yang@huawei.com>
10601         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
10602         pattern.
10603         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
10604         uminp, smax_nanp, smin_nanp): New builtins.
10605         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
10606         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
10607         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
10608         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
10609         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
10610         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
10611         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
10612         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
10613         vpminnms_f32): Rewrite using builtin functions.
10615 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
10617         PR libgomp/64625
10618         * omp-low.c (offload_symbol_decl): Remove variable.
10619         (get_offload_symbol_decl): Remove function.
10620         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
10621         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
10622         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
10623         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
10624         BUILT_IN_GOACC_UPDATE don't pass it at all.
10626 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
10628         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
10629         callers.
10631 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
10633         * ipa-chkp.c (chkp_produce_thunks): Add early param
10634         to split thunks production into two passes.  Keep
10635         'always_inline' function bodies after the first pass.
10636         (pass_data_ipa_chkp_early_produce_thunks): New.
10637         (pass_ipa_chkp_early_produce_thunks): New.
10638         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
10639         chkp_produce_thunks signature.
10640         (make_pass_ipa_chkp_early_produce_thunks): New.
10641         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
10642         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
10643         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
10645 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
10647         * cgraph.c (cgraph_node::dump): Dump profile flags.
10649 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
10651         PR target/64652
10652         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
10653         reg appear first in the parallel.
10655 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
10657         * ipa-reference.c (set_reference_optimization_summary,
10658         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
10659         disabled.
10660         (ignore_module_statics): New static var.
10661         (propagate_bits): If ipa-reference is disabled, do not look into local
10662         properties.
10663         (analyze_function): Disable analysis when ipa_reference is disabled.
10664         (generate_summary): Do not dump when reference is disabled;
10665         collect vars accessed from functions with ipa-reference disabled.
10666         (get_read_write_all_from_node): When ipa-reference is disabled, use the
10667         node flags.
10668         (gate): Enable for LTO.
10669         (ignore_edge_p): New function.
10670         (propagate): Skip functions w/o ipa-reference analysis.
10671         * optc-save-gen.awk: Handle optimize_debug correctly.
10672         * opth-gen.awk: Likewise.
10673         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
10674         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
10675         fira-share-save-slots, fira-share-spill-slots,
10676         fmodulo-sched-allow-regmoves, fpartial-inlining,
10677         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
10678         ftracer, ftree-parallelize-loops, fassociative-math,
10679         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
10680         Optimization
10681         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
10682         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
10683         Optimization.
10684         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
10685         Fix for IPA.
10687 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
10689         PR ipa/64378
10690         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
10691         flag correctly.
10692         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
10694 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
10696         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
10697         Remove duplicate option listings.
10699 2015-01-18  Felix Yang  <felix.yang@huawei.com>
10701         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
10702         (autofdo_source_profile::get_callsite_total_count,
10703         function_instance::get_function_instance_by_decl,
10704         string_table::get_index, string_table::get_index_by_decl,
10705         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
10706         Fix comment typos. Reformatting and minor code rearrangement.
10708 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
10710         * config/rs6000/rs6000.md (probe_stack): Delete.
10711         (probe_stack_address): New.
10713 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
10715         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
10716         to test for 32-bit ABIs, not !TARGET_POWERPC64.
10718 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
10720         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
10721         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
10722         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
10723         snafu.
10724         (rs6000_libcall_value): Use the new function.
10726 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
10728         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
10730 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
10732         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
10733         implement a more precise life analysis for it during backward scan.
10735 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
10737         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
10739 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
10741         PR rtl-optimization/52773
10742         * calls.c (emit_library_call_value): When pushing arguments use
10743         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
10744         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
10745         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
10747 2015-01-17  Jeff Law  <law@redhat.com>
10749         PR rtl-optimization/32790
10750         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
10751         not ZERO_EXTEND in SET_DESTs.
10753 2015-01-17  Alan Modra  <amodra@gmail.com>
10755         * cprop.c (do_local_cprop): Revert last change.
10757 2015-01-16  DJ Delorie  <dj@redhat.com>
10758             Nick Clifton  <nickc@redhat.com>
10760         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
10761         (addhi3_real): Likewise.  Fix [HL+0] syntax.
10762         (subqi3_real): Likewise.
10763         (subhi3_real): Likewise.
10764         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
10765         (cbranchhi4_real): Likewise.
10766         (cbranchhi4_real_inverted): Likewise.
10767         (cbranchsi4_real_lt): Likewise.
10768         (cbranchsi4_real_ge): Likewise.
10769         (cbranchsi4_real_ge): Likewise.
10770         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
10771         (sub<mode>3_virt): Likewise.
10772         (cbranchqi4_virt): Likewise.
10773         (cbranchhi4_virt): Likewise.
10774         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
10775         always use '[reg+imm]' even when imm is zero.
10776         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
10777         (rl78_general_operand): New.
10778         (rl78_nonimmediate_operand): New.
10779         (rl78_nonfar_operand): Use them.
10780         (rl78_nonfar_nonimm_operand): Likewise.
10781         (rl78_stack_based_mem): Fix.
10782         * config/rl78/constraints.md (Ibqi): New.
10783         (IBqi): New.
10784         (Wsa): New.
10785         (Wsf): New.
10786         (Cs1): Fix.
10787         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
10788         (iorqi3): Likewise.
10789         (xorqi3): Likewise.
10790         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
10792         * config/rl78/constrains (Qs8): New constraint.
10793         * config/rl78/rl78.c (rl78_flags_already_set): New function.
10794         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
10795         * config/rl78/rl78-real.md (update_Z): New attribute.
10796         Update patterns to set it.
10797         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
10798         shorter compare and branch sequence can be used.
10799         (cbranchhi4_real): Likewise.
10800         (cbranchhi4_real_inverted): Likewise.
10802         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
10803         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
10804         address space.
10805         * config/rl78/rl78.c (rl78_get_name_encoding): New.
10806         (rl78_option_override): Allow -mes0 only if C.
10807         (characterize_address): Support subregs of symbol_refs.
10808         (rl78_addr_space_address_mode): Move.  Add __near.
10809         (rl78_far_p): Likewise.
10810         (rl78_addr_space_pointer_mode): Likewise.
10811         (rl78_as_legitimate_address): Likewise.
10812         (rl78_addr_space_subset_p): Likewise.
10813         (rl78_addr_space_convert): Likewise.
10814         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
10815         symbols with -mes0.
10816         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
10817         addressing.
10818         (rl78_alloc_physical_registers_op1): Change logic to prefer
10819         symbol[BC] addressing.
10820         (frodata_section): New.
10821         (rl78_asm_init_sections): Initialize it.
10822         (rl78_select_section): Put __far readonly symbols in .frodata.
10823         (rl78_make_type_far): New.
10824         (rl78_insert_attributes): Force all readonly symbols to be
10825         __far when -mes0.
10826         (rl78_asm_out_integer): New.
10827         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
10828         * config/rl78/rl78.opt (-mes0): New.
10830         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
10831         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
10832         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
10833         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
10834         (rl78_saddr_p): New.
10835         (rl78_output_aligned_common): New.
10836         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
10837         (rl78_handle_saddr_attribute): New.
10838         (rl78_handle_naked_attribute): New.
10839         (rl78_attribute_table): Add saddr.
10840         (rl78_print_operand_1): Don't print '!' on saddr operands.
10841         (rl78_print_operand_1): Strip encodings.
10842         (rl78_sfr_p): New.
10843         (rl78_strip_name_encoding): New.
10844         (rl78_attrlist_to_encoding): New.
10845         (rl78_encode_section_info): New.
10846         (rl78_asm_init_sections): New.
10847         (rl78_select_section): New.
10848         (rl78_output_labelref): New.
10849         (rl78_output_aligned_common): New.
10850         (rl78_asm_out_integer): New.
10851         (rl78_asm_ctor_dtor): New.
10852         (rl78_asm_constructor): New.
10853         (rl78_asm_destructor): New.
10855         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
10856         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
10857         (transcode_memory_rtx): Update.
10858         (rl78_expand_epilogue): Use A_REG instead of 0.
10860 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
10862         * config/arm/arm-protos.h (struct tune_params): New field
10863         sched_autopref_queue_depth.
10864         * config/arm/arm.c (sched-int.h): Include header.
10865         (arm_first_cycle_multipass_dfa_lookahead_guard,)
10866         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
10867         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
10868         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
10869         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
10870         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
10871         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
10872         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
10873         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
10874         * config/arm/t-arm (arm.o): Update.
10875         * haifa-sched.c (update_insn_after_change): Update.
10876         (rank_for_schedule): Use auto-prefetcher model, if requested.
10877         (autopref_multipass_init): New static function.
10878         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
10879         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
10880         variable for debug dumps.
10881         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
10882         (autopref_multipass_dfa_lookahead_guard): New global function that
10883         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
10884         (init_h_i_d): Update.
10885         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
10886         * sched-int.h (enum autopref_multipass_data_status): New const enum.
10887         (autopref_multipass_data_): Structure for auto-prefetcher data.
10888         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
10889         (struct _haifa_insn_data:autopref_multipass_data): New field.
10890         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
10891         (autopref_multipass_dfa_lookahead_guard): Declare.
10893 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
10895         * rtlanal.c (get_base_term): Handle SCRATCH.
10897 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
10899         * config/aarch64/aarch64.c
10900         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
10901         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
10902         * config/arm/arm.c
10903         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
10904         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
10906 2015-01-17  Alan Modra  <amodra@gmail.com>
10908         * cprop.c (do_local_cprop): Disallow replacement of fixed
10909         hard registers.
10911 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10913         PR target/62066
10914         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
10915         early return 0.
10917 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10919         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
10920         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
10922 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10924         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
10925         * config/arm/thumb1.md: ... Here.
10927 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
10929         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
10930         TImode for TARGET_32BIT.
10932 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
10934         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
10935         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
10936         as ...
10937         (rs6000_abi_word_mode): New function.
10939 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
10941         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
10942         instead of UNITS_PER_WORD to describe the size of stack slots.
10944 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
10946         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
10947         as rs6000_promote_function_mode.  Move comment to there.
10948         (rs6000_promote_function_mode): New function.
10950 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
10952         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
10953         -mpowerpc64 is active.
10955 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
10957         PR middle-end/64353
10958         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
10959         virtuals on start.
10961 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
10963         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
10964         introduced in revision 219724.
10966 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10967             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10969         PR target/64263
10970         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
10971         destination is not a GP reg.
10972         (*movdi_aarch64): Likewise.
10974 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
10976         PR target/64623
10977         * config/rs6000/default64.h: Revert ISA change.
10979 2015-01-16  Richard Biener  <rguenther@suse.de>
10981         PR middle-end/64614
10982         * tree-ssa-uninit.c: Include tree-cfg.h.
10983         (MAX_SWITCH_CASES): New define.
10984         (convert_control_dep_chain_into_preds): Handle switch statements.
10985         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
10986         (normalize_one_pred_1): Do not split bit-manipulations.
10987         Record (x & CST).
10989 2015-01-16  Richard Biener  <rguenther@suse.de>
10991         PR tree-optimization/64568
10992         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
10993         complex load rewriting for TARGET_MEM_REFs.
10995 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
10997         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
10999 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
11001         PR target/64149
11002         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
11003         variable.
11004         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
11005         (aarch64_lra_p): Remove.
11007 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
11009         PR target/64363
11010         * ipa-chkp.h (chkp_instrumentable_p): New.
11011         * ipa-chkp.c: Include tree-inline.h.
11012         (chkp_instrumentable_p): New.
11013         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
11014         Fix processing of not instrumentable functions.
11015         (chkp_versioning): Use chkp_instrumentable_p. Warn about
11016         not instrumentable functions.
11017         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
11018         chkp_instrumentable_p.
11019         * tree-inline.h (copy_forbidden): New.
11020         * tree-inline.c (copy_forbidden): Not static anymore.
11022 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11024         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
11025         ptr1, ptr2 unused.
11027 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
11029         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
11030         type OP_OUT to OP_INOUT.
11032 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
11034         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
11035         (high x) y) to y if x and y have the same base.
11037 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
11039         * config/arm/cortex-a57.md: New.
11040         * config/aarch64/aarch64.md: Include it.
11041         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
11042         * config/aarch64/aarch64-tune.md: Regenerate.
11044 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
11046         PR target/64015
11047         * ccmp.c (expand_ccmp_next): New function.
11048         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
11049         and compare insn sequence.
11050         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
11051         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
11052         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
11053         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
11054         (*ccmp_ior): Changed to ccmp_ior<mode>.
11055         (cmp<mode>): New pattern.
11056         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
11057         parameters.
11058         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
11060 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
11062         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
11063         _mm256_bsrli_epi128): New.
11064         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
11066 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
11068         * expmed.c (store_bit_field_using_insv): Improve warning message.
11069         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
11071 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
11073         PR rtl-optimization/64011
11074         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
11075         there is partial overflow.
11077 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
11079         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
11080         prototype.
11081         (nds32_expand_epilogue_v3pop): Likewise.
11082         * config/nds32/nds32.md (sibcall): Define this for sibling call
11083         optimization.
11084         (sibcall_register): Likewise.
11085         (sibcall_immediate): Likewise.
11086         (sibcall_value): Likewise.
11087         (sibcall_value_register): Likewise.
11088         (sibcall_value_immediate): Likewise.
11089         (sibcall_epilogue): Likewise.
11090         (epilogue): Pass false to indicate this is not a sibcall epilogue.
11091         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
11092         (nds32_expand_epilogue_v3pop): Likewise.
11094 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
11096         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
11097         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
11098         (return_internal): New.
11099         (return): Define this named pattern.
11100         (simple_return): Define this named pattern.
11101         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
11102         pattern instead of unspec_volatile_func_return.
11103         (nds32_expand_epilogue_v3pop): Likewise.
11104         (nds32_can_use_return_insn): New function.
11106 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
11108         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
11109         * config/nds32/nds32.md (pop25return): New.
11110         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
11111         pop25return pattern.
11113 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
11115         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
11116         -mforbid-fp-as-gp, and -mex9 options.
11118 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
11120         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
11121         remove -mgp-direct option.
11123 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
11125         * doc/invoke.texi (--param early-inlining-insns): Update default value.
11126         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
11128 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
11130         * ipa-inline.c (inline_small_functions): Work around hints
11131         cache issue.
11133 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
11135         PR target/59710
11136         * doc/invoke.texi (Option Summary): Document new Nios II
11137         -mgpopt= syntax.
11138         (Nios II Options): Likewise.
11139         * config/nios2/nios2.opt: Add -mgpopt= option support.
11140         Modify existing -mgpopt and -mno-gpopt options to be aliases.
11141         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
11142         * config/nios2/nios2.c (nios2_option_override): Adjust
11143         -mgpopt defaulting.
11144         (nios2_in_small_data_p): Return true for explicit small data
11145         sections even with -G0.
11146         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
11147         option choices.
11149 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
11151         PR ipa/64612
11152         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
11153         of comdat locals.
11154         (inline_call): Fix removal of aliases.
11156 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
11158         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
11159         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
11160         * opts.c (common_handle_option): Add -fsanitize=vptr.
11161         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
11162         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
11163         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
11164         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
11165         (ubsan_expand_vptr_ifn): New prototype.
11166         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
11167         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
11168         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
11169         expand_LOOP_VECTORIZED): Make argument nameless, remove
11170         ATTRIBUTE_UNUSED.
11171         (expand_UBSAN_VPTR): New function.
11172         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
11173         in fn spec.
11174         (UBSAN_VPTR): New internal function.
11175         * sanopt.c (tree_map_traits): Renamed to ...
11176         (sanopt_tree_map_traits): ... this.
11177         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
11178         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
11179         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
11180         (maybe_optimize_ubsan_vptr_ifn): New function.
11181         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
11182         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
11183         -fsanitize=vptr.
11184         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
11185         internal calls like pure functions for aliasing, even when they
11186         have other side-effects that prevent making them ECF_PURE.
11187         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
11188         (ubsan_expand_vptr_ifn): New function.
11190 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
11192         PR rtl-optimization/64110
11193         * stmt.c (parse_output_constraint): Process '^' and '$'.
11194         (parse_input_constraint): Ditto.
11195         * lra-constraints.c (process_alt_operands): Process the new
11196         constraints.
11197         * ira-costs.c (record_reg_classes): Process the new constraint
11198         '^'.
11199         * genoutput.c (indep_constraints): Add '^' and '$'.
11200         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
11201         * doc/md.texi: Add description of the new constraints.
11203 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
11204             Bernd Schmidt  <bernds@codesourcery.com>
11205             Cesar Philippidis  <cesar@codesourcery.com>
11206             James Norris  <jnorris@codesourcery.com>
11207             Tom de Vries  <tom@codesourcery.com>
11208             Ilmir Usmanov  <i.usmanov@samsung.com>
11209             Dmitry Bocharnikov  <dmitry.b@samsung.com>
11210             Evgeny Gavrin  <e.gavrin@samsung.com>
11211             Jakub Jelinek  <jakub@redhat.com>
11213         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
11214         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
11215         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
11216         New function types.
11217         * builtins.c: Include "gomp-constants.h".
11218         (expand_builtin_acc_on_device): New function.
11219         (expand_builtin, is_inexpensive_builtin): Handle
11220         BUILT_IN_ACC_ON_DEVICE.
11221         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
11222         New macros.
11223         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
11224         flag_openmp.
11225         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
11226         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
11227         i386/intelmic-offload.h.
11228         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
11229         to libgomp and its dependencies.
11230         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
11231         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
11232         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
11233         * config/ia64/hpux.h (LIB_SPEC): Likewise.
11234         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11235         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
11236         * doc/generic.texi: Update for OpenACC changes.
11237         * doc/gimple.texi: Likewise.
11238         * doc/invoke.texi: Likewise.
11239         * doc/sourcebuild.texi: Likewise.
11240         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
11241         GF_OMP_FOR_KIND_OACC_LOOP.
11242         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
11243         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
11244         GF_OMP_TARGET_KIND_OACC_UPDATE,
11245         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
11246         Dump more data.
11247         * gimple.c: Update comments for OpenACC changes.
11248         * gimple.def: Likewise.
11249         * gimple.h: Likewise.
11250         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
11251         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
11252         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
11253         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
11254         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
11255         appropriate place.
11256         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
11257         * gimplify.c: Include "gomp-constants.h".
11258         Update comments for OpenACC changes.
11259         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
11260         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
11261         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
11262         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
11263         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
11264         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
11265         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
11266         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
11267         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
11268         OMP_CLAUSE_SEQ.
11269         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
11270         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
11271         OMP_CLAUSE_SET_MAP_KIND.
11272         (gimplify_oacc_cache): New function.
11273         (gimplify_omp_for): Handle OACC_LOOP.
11274         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
11275         OACC_DATA.
11276         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
11277         OACC_EXIT_DATA, OACC_UPDATE.
11278         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
11279         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
11280         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
11281         (gimplify_body): Consider flag_openacc next to flag_openmp.
11282         * lto-streamer-out.c: Include "gomp-constants.h".
11283         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
11284         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
11285         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
11286         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
11287         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
11288         (BUILT_IN_ACC_ON_DEVICE): New builtins.
11289         * omp-low.c: Include "gomp-constants.h".
11290         Update comments for OpenACC changes.
11291         (struct omp_context): Add reduction_map, gwv_below, gwv_this
11292         members.
11293         (extract_omp_for_data, use_pointer_for_field, install_var_field)
11294         (new_omp_context, delete_omp_context, scan_sharing_clauses)
11295         (create_omp_child_function, scan_omp_for, scan_omp_target)
11296         (check_omp_nesting_restrictions, lower_reduction_clauses)
11297         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
11298         Update for OpenACC changes.
11299         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
11300         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
11301         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
11302         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
11303         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
11304         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
11305         OMP_CLAUSE_MAP_*.
11306         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
11307         Handle GF_OMP_FOR_KIND_OACC_LOOP.
11308         (expand_omp_target, lower_omp_target): Handle
11309         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
11310         GF_OMP_TARGET_KIND_OACC_UPDATE,
11311         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
11312         GF_OMP_TARGET_KIND_OACC_DATA.
11313         (pass_expand_omp::execute, execute_lower_omp)
11314         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
11315         flag_openmp.
11316         (offload_symbol_decl): New variable.
11317         (oacc_get_reduction_array_id, oacc_max_threads)
11318         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
11319         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
11320         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
11321         (oacc_gimple_assign, oacc_initialize_reduction_data)
11322         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
11323         functions.
11324         (is_targetreg_ctx): Remove function.
11325         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
11326         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
11327         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
11328         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
11329         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
11330         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
11331         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
11332         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
11333         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
11334         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
11335         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
11336         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
11337         * tree-core.h: Update comments for OpenACC changes.
11338         (enum omp_clause_map_kind): Remove.
11339         (struct tree_omp_clause): Change type of map_kind member from enum
11340         omp_clause_map_kind to unsigned char.
11341         * tree-inline.c: Update comments for OpenACC changes.
11342         * tree-nested.c: Likewise.  Include "gomp-constants.h".
11343         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
11344         (convert_tramp_reference_stmt, convert_gimple_call): Update for
11345         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
11346         OMP_CLAUSE_SET_MAP_KIND.
11347         * tree-pretty-print.c: Include "gomp-constants.h".
11348         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
11349         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
11350         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
11351         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
11352         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
11353         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
11354         instead of OMP_CLAUSE_MAP_*.
11355         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
11356         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
11357         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
11358         * tree-streamer-in.c: Include "gomp-constants.h".
11359         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
11360         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
11361         * tree-streamer-out.c: Include "gomp-constants.h".
11362         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
11363         OMP_CLAUSE_MAP_*.
11364         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
11365         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
11366         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
11367         * tree.c (omp_clause_num_ops): Update accordingly.
11368         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
11369         Likewise.
11370         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
11371         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
11372         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
11373         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
11374         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
11375         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
11376         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
11377         (OMP_CLAUSE_SET_MAP_KIND): New macro.
11378         * varpool.c (varpool_node::get_create): Consider flag_openacc next
11379         to flag_openmp.
11380         * config/i386/intelmic-offload.h: New file.
11381         * config/nvptx/offload.h: Likewise.
11383 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11385         * explow.h: Remove duplicate contents.
11386         * dojump.h: Likewise.
11388 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
11390         * arm.c (arm_xgene_tune): Add default initializer for instruction
11391         fusion.
11393 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
11395         PR ipa/64068
11396         PR ipa/64559
11397         * ipa.c (symbol_table::remove_unreachable_nodes):
11398         Do not put abstract origins into boundary.
11400 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
11402         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
11403         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
11405 2015-01-15  Steve Ellcey  <sellcey@mips.com>
11407         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
11408         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
11409         builtins.def, and chkp-builtins.def.
11411 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
11413         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
11414         ISA 2.7 (POWER8).
11416 2015-01-15  Richard Biener  <rguenther@suse.de>
11418         PR tree-optimization/61743
11419         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
11420         information on PHIs for some simple cases.
11422 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
11424         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
11425         Include xgene1.md.
11426         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
11427         * config/arm/arm-cores.def (xgene1): New entry.
11428         * config/arm/arm-tables.opt: Regenerate.
11429         * config/arm/arm-tune.md: Regenerate.
11430         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
11432 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
11434         * tree-if-conv.c: Include hash-map.h.
11435         (aggressive_if_conv): New variable.
11436         (fold_build_cond_expr): Add simplification of non-zero condition.
11437         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
11438         destination block is not always executed.
11439         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
11440         than two predecessors if AGGRESSIVE_IF_CONV is true.
11441         (if_convertible_stmt_p): Fix commentary.
11442         (all_preds_critical_p): New function.
11443         (has_pred_critical_p): New function.
11444         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
11445         BB can have more than two predecessors and all incoming edges can be
11446         critical.
11447         (predicate_bbs): Skip predication for loop exit block, use build2_loc
11448         to compute predicate for true edge.
11449         (find_phi_replacement_condition): Delete this function.
11450         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
11451         Allow interchange PHI arguments if EXTENDED is false.
11452         Change check that block containing reduction statement candidate
11453         is predecessor of phi-block since phi may have more than two arguments.
11454         (phi_args_hash_traits): New helper structure.
11455         (struct phi_args_hash_traits): New type.
11456         (phi_args_hash_traits::hash): New function.
11457         (phi_args_hash_traits::equal_keys): New function.
11458         (gen_phi_arg_condition): New function.
11459         (predicate_scalar_phi): Add handling of phi nodes with more than two
11460         arguments, delete COND and TRUE_BB arguments, insert body of
11461         find_phi_replacement_condition to predicate ordinary phi nodes.
11462         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
11463         delete call of find_phi_replacement_condition and invoke
11464         predicate_scalar_phi with two arguments.
11465         (insert_gimplified_predicates): Add assert that non-predicated block
11466         don't have statements to insert.
11467         (ifcvt_split_critical_edges): New function.
11468         (ifcvt_split_def_stmt): Likewise.
11469         (ifcvt_walk_pattern_tree): Likewise.
11470         (stmt_is_root_of_bool_pattern): Likewise.
11471         (ifcvt_repair_bool_pattern): Likewise.
11472         (ifcvt_local_dce): Likewise.
11473         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
11474         is copy of inner or outer loop force_vectorize field, invoke
11475         ifcvt_split_critical_edges, ifcvt_local_dce and
11476         ifcvt_repair_bool_pattern for aggressive if-conversion.
11478 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
11480         * config/aarch64/aarch64.md: Include xgene1.md.
11481         * config/aarch64/xgene1.md: New file.
11483 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
11485         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
11486         xgene1 (APM XGene-1) core definition.
11487         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
11488         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
11489         * doc/invoke.texi: Document -mcpu=xgene1.
11491 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11493         * dojump.h: New header file.
11494         * explow.h: Likewise.
11495         * expr.h: Remove includes.
11496         Move expmed.c prototypes to expmed.h.
11497         Move dojump.c prototypes to dojump.h.
11498         Move alias.c prototypes to alias.h.
11499         Move explow.c prototypes to explow.h.
11500         Move calls.c prototypes to calls.h.
11501         Move emit-rtl.c prototypes to emit-rtl.h.
11502         Move varasm.c prototypes to varasm.h.
11503         Move stmt.c prototypes to stmt.h.
11504         (saved_pending_stack_adjust): Move to dojump.h.
11505         (adjust_address): Move to explow.h.
11506         (adjust_address_nv): Move to emit-rtl.h.
11507         (adjust_bitfield_address): Likewise.
11508         (adjust_bitfield_address_size): Likewise.
11509         (adjust_bitfield_address_nv): Likewise.
11510         (adjust_automodify_address_nv): Likewise.
11511         * explow.c (expr_size): Move to expr.c.
11512         (int_expr_size): Likewise.
11513         (tree_expr_size): Likewise.
11514         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11515         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
11516         * genemit.c (main): Generate includes statistics.h, real.h,
11517         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
11518         stmt.h.
11519         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
11520         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
11521         explow.h, emit-rtl.h, stmt.h.
11522         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
11523         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
11524         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
11525         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
11526         emit-rtl.h, varasm.h, stmt.h.
11527         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
11528         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
11529         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
11530         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
11531         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
11532         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
11533         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
11534         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
11535         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
11536         tm.h tree.h varasm.h vec.h wide-int.h.
11537         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
11538         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
11539         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
11540         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
11541         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
11542         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
11543         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
11544         * loop-iv.c: Likewise.
11545         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
11546         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
11547         statistics.h stmt.h tree.h varasm.h wide-int.h.
11548         * lra-constraints.c: Likewise.
11549         * lra-eliminations.c: Likewise.
11550         * lra-lives.c: Likewise.
11551         * lra-remat.c: Likewise.
11552         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
11553         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
11554         statistics.h stmt.h tree.h varasm.h wide-int.h.
11555         * hw-doloop.c: Likewise.
11556         * ira-color.c: Likewise.
11557         * ira-emit.c: Likewise.
11558         * loop-doloop.c: Likewise.
11559         * loop-invariant.c: Likewise.
11560         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
11561         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
11562         statistics.h stmt.h tree.h varasm.h wide-int.h.
11563         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
11564         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
11565         statistics.h stmt.h tree.h varasm.h wide-int.h.
11566         * combine-stack-adj.c: Likewise.
11567         * cse.c: Likewise.
11568         * ddg.c: Likewise.
11569         * ifcvt.c: Likewise.
11570         * ira-costs.c: Likewise.
11571         * jump.c: Likewise.
11572         * lra-coalesce.c: Likewise.
11573         * lra-spills.c: Likewise.
11574         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
11575         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
11576         stmt.h varasm.h wide-int.h.
11577         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
11578         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
11579         varasm.h.
11580         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
11581         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
11582         statistics.h stmt.h varasm.h wide-int.h.
11583         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
11584         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
11585         varasm.h wide-int.h.
11586         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
11587         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
11588         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
11589         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
11590         statistics.h stmt.h.
11591         * config/tilepro/tilepro.c: Likewise.
11592         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
11593         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
11594         * config/pdp11/pdp11.c: Likewise.
11595         * config/xtensa/xtensa.c: Likewise.
11596         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
11597         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
11598         varasm.h.
11599         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11600         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
11601         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
11602         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11603         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
11604         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
11605         * rtl-chkp.c: Likewise.
11606         * tree-chkp-opt.c: Likewise.
11607         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
11608         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
11609         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
11610         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11611         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
11612         statistics.h stmt.h.
11613         * tree-vect-data-refs.c: Likewise.
11614         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
11615         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
11616         rtl.h statistics.h stmt.h varasm.h.
11617         * internal-fn.c: Likewise.
11618         * ipa-icf-gimple.c: Likewise.
11619         * lto-section-out.c: Likewise.
11620         * tree-data-ref.c: Likewise.
11621         * tree-nested.c: Likewise.
11622         * tree-outof-ssa.c: Likewise.
11623         * tree-predcom.c: Likewise.
11624         * tree-pretty-print.c: Likewise.
11625         * tree-scalar-evolution.c: Likewise.
11626         * tree-ssa-strlen.c: Likewise.
11627         * tree-vect-loop.c: Likewise.
11628         * tree-vect-patterns.c: Likewise.
11629         * tree-vect-slp.c: Likewise.
11630         * tree-vect-stmts.c: Likewise.
11631         * tsan.c: Likewise.
11632         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11633         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
11634         stmt.h.
11635         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
11636         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
11637         statistics.h stmt.h varasm.h.
11638         * loop-unroll.c: Likewise.
11639         * ubsan.c: Likewise.
11640         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
11641         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
11642         stmt.h varasm.h.
11643         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11644         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
11645         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
11646         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
11647         statistics.h stmt.h.
11648         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
11649         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
11650         statistics.h stmt.h varasm.h.
11651         * gimple-match-head.c: Likewise.
11652         * lto-cgraph.c: Likewise.
11653         * lto-section-in.c: Likewise.
11654         * lto-streamer-in.c: Likewise.
11655         * lto-streamer-out.c: Likewise.
11656         * tree-affine.c: Likewise.
11657         * tree-cfg.c: Likewise.
11658         * tree-cfgcleanup.c: Likewise.
11659         * tree-if-conv.c: Likewise.
11660         * tree-into-ssa.c: Likewise.
11661         * tree-ssa-alias.c: Likewise.
11662         * tree-ssa-copyrename.c: Likewise.
11663         * tree-ssa-dse.c: Likewise.
11664         * tree-ssa-forwprop.c: Likewise.
11665         * tree-ssa-live.c: Likewise.
11666         * tree-ssa-math-opts.c: Likewise.
11667         * tree-ssa-pre.c: Likewise.
11668         * tree-ssa-sccvn.c: Likewise.
11669         * tree-tailcall.c: Likewise.
11670         * tree-vect-generic.c: Likewise.
11671         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11672         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
11673         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11674         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
11675         * varasm.c: Likewise.
11676         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11677         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
11678         varasm.h.
11679         * init-regs.c: Likewise.
11680         * ira.c: Likewise.
11681         * omp-low.c: Likewise.
11682         * stack-ptr-mod.c: Likewise.
11683         * tree-ssa-reassoc.c: Likewise.
11684         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11685         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
11686         varasm.h.
11687         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11688         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
11689         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11690         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
11691         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11692         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
11693         * tree-ssa-phiopt.c: Likewise.
11694         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11695         fixed-value.h hashtab.h real.h statistics.h stmt.h.
11696         * config/fr30/fr30.c: Likewise.
11697         * config/frv/frv.c: Likewise.
11698         * expr.c: Likewise.
11699         * final.c: Likewise.
11700         * optabs.c: Likewise.
11701         * passes.c: Likewise.
11702         * simplify-rtx.c: Likewise.
11703         * stmt.c: Likewise.
11704         * toplev.c: Likewise.
11705         * var-tracking.c: Likewise.
11706         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11707         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
11708         * lower-subreg.c: Likewise.
11709         * postreload-gcse.c: Likewise.
11710         * ree.c: Likewise.
11711         * reginfo.c: Likewise.
11712         * store-motion.c: Likewise.
11713         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11714         fixed-value.h hashtab.h real.h stmt.h varasm.h.
11715         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11716         fixed-value.h hashtab.h statistics.h stmt.h.
11717         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11718         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
11719         * except.c: Likewise.
11720         * explow.c: Likewise.
11721         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11722         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
11723         varasm.h.
11724         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11725         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
11726         * tree-ssa-structalias.c: Likewise.
11727         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11728         fixed-value.h insn-config.h real.h statistics.h.
11729         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11730         fixed-value.h insn-config.h real.h statistics.h stmt.h.
11731         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11732         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
11733         * cfgbuild.c: Likewise.
11734         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11735         fixed-value.h real.h rtl.h statistics.h stmt.h.
11736         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11737         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
11738         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11739         fixed-value.h real.h statistics.h stmt.h.
11740         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
11741         fixed-value.h real.h statistics.h stmt.h varasm.h.
11742         * cprop.c: Likewise.
11743         * modulo-sched.c: Likewise.
11744         * postreload.c: Likewise.
11745         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
11746         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
11747         statistics.h stmt.h varasm.h.
11748         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
11749         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
11750         rtl.h statistics.h stmt.h varasm.h.
11751         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
11752         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
11753         varasm.h.
11754         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
11755         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
11756         varasm.h.
11757         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
11758         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
11759         varasm.h.
11760         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
11761         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
11762         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
11763         function.h real.h statistics.h stmt.h varasm.h.
11764         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
11765         insn-config.h real.h statistics.h stmt.h.
11766         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
11767         statistics.h stmt.h.
11768         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
11769         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
11770         statistics.h stmt.h varasm.h.
11771         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
11772         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
11773         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
11774         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
11775         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
11776         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
11777         statistics.h stmt.h varasm.h.
11778         * ipa-polymorphic-call.c: Likewise.
11779         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
11780         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
11781         statistics.h stmt.h.
11782         * config/c6x/c6x.c: Likewise.
11783         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
11784         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
11785         statistics.h stmt.h varasm.h.
11786         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
11787         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
11788         stmt.h varasm.h.
11789         * ipa-split.c: Likewise.
11790         * tree-eh.c: Likewise.
11791         * tree-ssa-dce.c: Likewise.
11792         * tree-ssa-loop-niter.c: Likewise.
11793         * tree-vrp.c: Likewise.
11794         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
11795         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
11796         stmt.h.
11797         * config/nds32/nds32-fp-as-gp.c: Likewise.
11798         * config/nds32/nds32-intrinsic.c: Likewise.
11799         * config/nds32/nds32-isr.c: Likewise.
11800         * config/nds32/nds32-md-auxiliary.c: Likewise.
11801         * config/nds32/nds32-memory-manipulation.c: Likewise.
11802         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11803         * config/nds32/nds32-predicates.c: Likewise.
11804         * config/nds32/nds32.c: Likewise.
11805         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
11806         fixed-value.h hashtab.h real.h statistics.h.
11807         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
11808         fixed-value.h hashtab.h real.h statistics.h stmt.h.
11809         * config/arm/arm.c: Likewise.
11810         * config/avr/avr.c: Likewise.
11811         * config/bfin/bfin.c: Likewise.
11812         * config/h8300/h8300.c: Likewise.
11813         * config/i386/i386.c: Likewise.
11814         * config/ia64/ia64.c: Likewise.
11815         * config/iq2000/iq2000.c: Likewise.
11816         * config/m32c/m32c.c: Likewise.
11817         * config/m32r/m32r.c: Likewise.
11818         * config/m68k/m68k.c: Likewise.
11819         * config/mcore/mcore.c: Likewise.
11820         * config/mep/mep.c: Likewise.
11821         * config/mips/mips.c: Likewise.
11822         * config/mn10300/mn10300.c: Likewise.
11823         * config/moxie/moxie.c: Likewise.
11824         * config/pa/pa.c: Likewise.
11825         * config/rl78/rl78.c: Likewise.
11826         * config/rx/rx.c: Likewise.
11827         * config/s390/s390.c: Likewise.
11828         * config/sh/sh.c: Likewise.
11829         * config/sparc/sparc.c: Likewise.
11830         * config/spu/spu.c: Likewise.
11831         * config/stormy16/stormy16.c: Likewise.
11832         * config/v850/v850.c: Likewise.
11833         * config/vax/vax.c: Likewise.
11834         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
11835         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
11836         * config/msp430/msp430.c: Likewise.
11837         * predict.c: Likewise.
11838         * value-prof.c: Likewise.
11839         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
11840         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
11841         * config/microblaze/microblaze.c: Likewise.
11842         * config/nios2/nios2.c: Likewise.
11843         * config/rs6000/rs6000.c: Likewise.
11844         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
11845         insn-config.h real.h rtl.h statistics.h stmt.h.
11846         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
11847         insn-config.h real.h statistics.h stmt.h.
11848         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
11849         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
11850         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
11851         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
11852         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
11853         fixed-value.h real.h statistics.h stmt.h.
11854         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
11855         fixed-value.h statistics.h stmt.h.
11856         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
11857         stmt.h.
11859 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
11861         * gengtype.c (create_user_defined_type): Workaround
11862         -Wmaybe-uninitialized false positives.
11863         * cse.c (fold_rtx): Likewise.
11864         * loop-invariant.c (gain_for_invariant): Likewise.
11866 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
11868         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
11869         set the memory attributes in all cases but clear MEM_EXPR if need be.
11871 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
11873         PR tree-optimization/64434
11874         * cfgexpand.c (reorder_operands): New function.
11875         (expand_gimple_basic_block): Insert call of reorder_operands if
11876         optimized is true.
11878 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
11880         * config/mips/micromips.md (*swp): Remove explicit parallel.
11881         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
11882         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
11883         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
11884         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
11885         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
11886         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
11887         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
11888         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
11889         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
11890         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
11891         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
11892         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
11893         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
11894         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
11895         (mips_wrdsp): Likewise.
11896         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
11897         parallel.
11898         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
11899         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
11900         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
11901         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
11902         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
11903         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
11904         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
11905         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
11906         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
11908 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
11910         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
11911         (mips_print_operand): Support 'y' to print exact log2 in decimal
11912         of a const_int.
11913         * config/mips/mips.h (ISA_HAS_LSA): New define.
11914         (ISA_HAS_DLSA): Likewise.
11915         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
11916         * config/mips/predicates.md (const_immlsa_operand): New predicate.
11918 2015-01-15  Martin Liska  <mliska@suse.cz>
11920         PR target/64377
11921         * optc-save-gen.awk: Add support for array types.
11923 2015-01-15  Richard Biener  <rguenther@suse.de>
11925         PR middle-end/64365
11926         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
11927         for MEM_REF access functions with the same base can never partially
11928         overlap.
11930 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
11932         * common.opt: New option -fstack-protector-explicit.
11933         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
11934         (stack_protect_decl_phase): Handle stack_protect attribute for
11935         explicit stack protection requests.
11936         (expand_used_vars): Similarly.
11937         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
11938         * doc/extend.texi: Add documentation for "stack_protect" attribute.
11939         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
11941 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
11943         PR target/53988
11944         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
11945         reg-reg copies.
11946         (sh_extending_set_of_reg): New struct.
11947         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
11948         sh_remove_reg_dead_or_unused_notes): New Declarations.
11949         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
11950         sh_find_extending_set_of_reg, sh_split_tst_subregs,
11951         sh_extending_set_of_reg::use_as_extended_reg): New functions.
11952         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
11953         convert to insn_and_split and use new function sh_split_tst_subregs.
11955 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
11957         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
11958         option.
11959         (Optimization Options): Move -fuse-ld documentation to...
11960         (Link Options): ...here.
11962 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
11964         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
11965         offsets.
11966         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
11967         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
11968         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
11969         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
11970         instead of ZR for the memory operand of LL/SC.
11971         (compare_and_swap_12, sync_add<mode>): Likewise.
11972         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
11973         (sync_new_<optab>_12, sync_nand_12): Likewise.
11974         (sync_old_nand_12, sync_new_nand_12): Likewise.
11975         (sync_sub<mode>, sync_old_add<mode>): Likewise.
11976         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
11977         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
11978         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
11979         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
11980         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
11981         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
11982         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
11983         * doc/md.texi (ZC): Update description.
11985 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
11987         * builtins.c (expand_builtin_atomic_exchange): Remove error when
11988         memory model is CONSUME.
11989         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
11990         expand_builtin_atomic_store): Change invalid memory model errors to
11991         warnings.
11992         (expand_builtin_atomic_clear): Change invalid model errors to warnings
11993         and issue warning for CONSUME.
11995 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
11997         * lto-cgraph: Update function comments for
11998         lto_symtab_encoder_encode_*.
12000 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
12002         * Makefile.in (site.exp): Do not set ENABLE_LTO.
12004 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
12006         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
12007         * lto-cgraph.c (select_what_to_stream): Remove argument, use
12008         lto_stream_offload_p instead.
12009         * lto-streamer.h (select_what_to_stream): Remove argument.
12010         * passes.c (ipa_write_summaries): Likewise.
12011         * tree-pass.h (ipa_write_summaries): Likewise.
12013 2015-01-14  Richard Biener  <rguenther@suse.de>
12015         PR tree-optimization/59354
12016         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
12017         groups larger than the slp group size as having gaps.
12019 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
12021         PR middle-end/59448
12022         * builtins.c (get_memmodel): Promote consume to acquire always.
12024 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
12026         PR target/64386
12027         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
12028         V32HImode.
12030 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
12032         PR target/64393
12033         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
12034         Enable AVX512BW.
12035         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
12036         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
12037         AVX512VBMI, as it implies AVX512BW.
12039 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
12041         PR target/64387
12042         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
12043         (vec_unpacks_hi_v16sf): Ditto.
12045 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12047         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
12048         is not available.
12050 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12052         * doc/invoke.texi (mapcs): Mention deprecation.
12053         (mapcs-frame): Likewise.
12055 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12057         PR target/64453
12058         * config/arm/arm.c (callee_saved_reg_p): Define.
12059         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
12060         register is callee saved instead of !call_used_regs[reg].
12061         (thumb1_compute_save_reg_mask): Likewise.
12063 2015-01-14  Hale Wang  <hale.wang@arm.com>
12065         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
12066         Cortex-M7.
12068 2015-01-14  Richard Biener  <rguenther@suse.de>
12070         PR lto/64415
12071         * tree-inline.c (insert_debug_decl_map): Check destination
12072         function MAY_HAVE_DEBUG_STMTS.
12073         (insert_init_debug_bind): Likewise.
12074         (insert_init_stmt): Remove redundant check.
12075         (remap_gimple_stmt): Drop debug stmts if the destination
12076         function has var-tracking assignments disabled.
12078 2015-01-14  Martin Liska  <mliska@suse.cz>
12080         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
12081         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
12083 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12085         PR target/64460
12086         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
12087         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
12089 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
12091         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
12092         level from an ARCH; do not inject the default.
12093         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
12094         MIPS_ISA_LEVEL_SPEC.
12095         (MIPS_ISA_NAN2008_SPEC): Update comment.
12096         (BASE_DRIVER_SELF_SPECS): Likewise.
12097         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
12098         MIPS_DEFAULT_ISA_LEVEL_SPEC.
12099         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
12100         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
12101         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
12103 2015-01-14  Richard Biener  <rguenther@suse.de>
12105         PR tree-optimization/64493
12106         PR tree-optimization/64495
12107         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
12108         assign the proper vectorized PHI to the inner loop exit PHIs.
12110 2015-01-14  Joey Ye  <joey.ye@arm.com>
12112         * config/arm/arm.c (arm_compute_save_reg_mask):
12113         Do not save lr in case of tail call.
12114         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
12116 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
12118         * tree-vrp.c (check_array_ref): Emit more warnings
12119         for warn_array_bounds >= 2.
12120         * common.opt: New option -Warray-bounds=.
12121         * doc/invoke.texi: Document -Warray-bounds=.
12123 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
12125         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
12126         (mforbid-fp-as-gp): Remove.
12127         (mex9): Remove.
12128         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
12129         (nds32_symbol_load_store_p): Remove.
12130         (nds32_fp_as_gp_check_available): Clean up implementation.
12131         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
12132         cases.
12133         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
12134         fp-as-gp and ex9 cases.
12136 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
12138         * tree-profile.c (init_ic_make_global_vars): Drop workaround
12139         for bintuils bug 14342.
12140         (init_ic_make_global_vars): Likewise.
12141         (gimple_init_edge_profiler): Likewise.
12142         (gimple_gen_ic_func_profiler): Likewise.
12144 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
12146         * ipa-inline.c (inline_small_functions): Swap the operands in
12147         enum.
12149 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
12151         PR ipa/64481
12152         * ipa-inline-analysis.c (node_growth_cache): Remove.
12153         (initialize_growth_caches): Do not initialize it.
12154         (free_growth_caches): Do not free it.
12155         (do_estimate_growth): Rename to ...
12156         (estimate_growth): ... this one; drop growth cache code.
12157         (growth_likely_positive): Always go the heuristics way.
12158         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
12159         (reset_edge_caches): Do not reset node growth.
12160         (heap_edge_removal_hook): Do not maintain cache.
12161         (inline_small_functions): Likewise; strenghten sanity check.
12162         (ipa_inline): Do not maintain caches.
12163         * ipa-inline.h (node_growth_cache): Remove.
12164         (do_estimate_growth): Remove to ...
12165         (estimate_growth): this one; remove inline version.
12166         (reset_node_growth_cache): Remove.
12168 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
12170         PR ipa/64565
12171         * ipa-inline.c (inline_small_functions): Update callee keys after
12172         resolving speculation
12173         (inline_small_functions): Always check monotonicity of the queue.
12175 2015-01-13  Marek Polacek  <polacek@redhat.com>
12177         PR middle-end/64391
12178         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
12180 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
12182         PR rtl-optimization/64286
12183         * ree.c (combine_reaching_defs): Move part of comment earlier,
12184         remove !SCALAR_INT_MODE_P check.
12185         (add_removable_extension): Don't add vector mode
12186         extensions if all uses of the source register aren't the same
12187         vector extensions.
12189 2015-01-13  Renlin Li  <renlin.li@arm.com>
12191         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
12192         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
12194 2015-01-13  Martin Liska  <mliska@suse.cz>
12196         * ipa-icf.c (sem_function::equals_private): Call new functions
12197         cl_target_option_print_diff and cl_optimization_print_diff.
12198         * optc-save-gen.awk (cl_target_option_print_diff): New function.
12199         (cl_optimization_print_diff): Likewise.
12200         * opth-gen.awk: Likewise.
12202 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
12204         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
12205         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
12206         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
12207         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
12208         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
12209         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
12211 2015-01-13  Andrew Pinski  <apinski@cavium.com>
12213         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
12214         instead of src mode.
12216 2015-01-13  Richard Biener  <rguenther@suse.de>
12218         PR lto/64373
12219         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
12220         DECL_CONTEXT.
12222 2015-01-13  Andrew Pinski  <apinski@cavium.com>
12224         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
12225         volatile mems.
12226         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
12228 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
12230         PR middle-end/63974
12231         * cfgexpand.c (expand_computed_goto): Don't call
12232         convert_memory_address here.
12234 2015-01-13  Richard Biener  <rguenther@suse.de>
12236         PR tree-optimization/64406
12237         * tree-loop-distibution.c (pass_loop_distribution::execute):
12238         Reset the SCEV hashtable if we distributed anything.
12240 2015-01-13  Richard Biener  <rguenther@suse.de>
12242         PR tree-optimization/64404
12243         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
12244         SLP types for CSEd loads.
12246 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12248         PR tree-optimization/64436
12249         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
12250         merge of two symbolic numbers for a bitwise OR to ...
12251         (perform_symbolic_merge): This. Also fix computation of the range and
12252         end of the symbolic number corresponding to the result of a bitwise OR.
12254 2015-01-13  Richard Biener  <rguenther@suse.de>
12256         PR tree-optimization/64568
12257         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
12258         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
12260 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
12262         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
12263         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
12265 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
12267         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
12268         target-specific symbol_ref flag.
12269         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
12270         resides in rodata section.
12271         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
12272         (nds32_encode_section_info): New function.
12274 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
12276         * config/nds32/nds32.md (call): Use pseudo instruction bal which
12277         clobbers TA_REGNUM if large code model is specified.
12278         (call_register): Likewise.
12279         (call_immediate): Likewise.
12280         (call_value): Likewise.
12281         (call_value_register): Likewise.
12282         (call_value_immediate): Likewise.
12284 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
12286         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
12287         (TARGET_CMODEL_MEDIUM): New macro.
12288         (TARGET_CMODEL_LARGE): New macro.
12289         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
12290         code model setting in assembly code.
12292 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
12294         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
12295         Remove MASK_GP_DIRECT flag.
12296         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
12297         one of the multilib default options.
12298         * config/nds32/nds32.opt (mgp-direct): Remove.
12299         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
12300         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
12302 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
12304         * config/nds32/nds32.opt (mcmodel): Add new option.
12305         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
12306         to describe code model.
12308 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
12310         PR target/64479
12311         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
12313 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
12315         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
12316         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
12317         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
12318         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
12319         __builtin_sh_set_fpscr.
12321 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
12323         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
12324         after a funtion name just to indicate it is a function.
12325         ([-fsanitize-undefined-trap-on-error]): Likewise.
12326         ([-fdbg-cnt=]): Likewise.
12327         ([-mmemcpy]): Likewise.
12328         ([-mflush-func]): Likewise.
12329         ([-msynci]): Likewise.
12331 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
12333         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
12334         example.
12336 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
12338         PR tree-optimization/64563
12339         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
12340         instead of != VR_VARYING.
12342         PR target/64513
12343         * config/i386/i386.c (ix86_expand_prologue): Add
12344         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
12346         PR tree-optimization/64454
12347         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
12348         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
12349         for signed or [0, op1 - 1] for unsigned modulo.
12350         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
12351         even if op1 does not satisfy integer_pow2p.
12353         PR other/64370
12354         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
12356 2015-01-12  Jeff Law  <law@redhat.com>
12358         PR target/64461
12359         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
12360         (trunchiqi2, truncsihi2): Similarly.
12362         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
12363         rather than calling F.
12365 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12367         * tsan.c (instrument_expr): Use force_gimple_operand.
12368         Use may_be_nonaddressable_p instead of is_gimple_addressable.
12370 2015-01-12  Richard Biener  <rguenther@suse.de>
12372         PR tree-optimization/64530
12373         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
12374         back dr1.
12376 2015-01-12  Richard Biener  <rguenther@suse.de>
12378         PR middle-end/64357
12379         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
12380         latches properly.
12382 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12384         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
12385         Cortex-A17 tuning parameters.
12386         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
12388 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12390         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
12391         * config/arm/arm.c (arm_macro_fusion_p): New function.
12392         (arm_macro_fusion_pair_p): Likewise.
12393         (TARGET_SCHED_MACRO_FUSION_P): Define.
12394         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
12395         (ARM_FUSE_NOTHING): Likewise.
12396         (ARM_FUSE_MOVW_MOVT): Likewise.
12397         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
12398         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
12399         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
12400         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
12401         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
12402         arm_cortex_a5_tune): Specify fuseable_ops value.
12404 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
12406         PR bootstrap/64561
12407         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
12408         test for PIE with copy reloc.
12409         * configure: Regenerated.
12411 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12413         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
12414         in gen_rtx_REG.
12415         (arm_tls_descseq_addr): Likewise.
12416         (arm_gen_movmemqi): Likewise.
12417         (arm_expand_epilogue_apcs_frame): Likewise.
12418         (arm_expand_epilogue): Likewise.
12419         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
12420         in gen_rtx_REG.
12422 2015-01-12  Martin Liska  <mliska@suse.cz>
12424         PR ipa/64550
12425         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
12426         volatility for correct operands.
12428 2015-01-12  Martin Liska  <mliska@suse.cz>
12430         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
12431         that a function is not leaf.
12432         (sem_function::compare_polymorphic_p): Likewise.
12434 2015-01-12  Martin Liska  <mliska@suse.cz>
12436         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
12437         that a function is not leaf.
12438         (sem_function::compare_polymorphic_p): Likewise.
12440 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12442         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
12443         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
12444         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
12445         fold-const.h, tree-check.h.
12447 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
12449         PR ipa/63967
12450         PR ipa/64425
12451         * ipa-inline.c (compute_uninlined_call_time,
12452         compute_inlined_call_time): Use counts for extra precision when
12453         needed possible.
12454         (big_speedup_p): Fix formating.
12455         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
12456         (relative_time_benefit): Remove.
12457         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
12458         merge guessed and read profile paths.
12459         (inline_small_functions): Count only !optimize_size functions into
12460         initial size; be more lax about sanity check when profile is used;
12461         be sure to update inlined function profile when profile is read.
12463 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
12465         PR ipa/63470
12466         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
12467         cost when edge becomes direct.
12468         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
12469         is resolved or when introducing new speculation.
12471 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
12473         PR ipa/64551
12474         PR ipa/64552
12475         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
12476         '||' to fix typo issue.
12478         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
12479         accept and return NULL.
12481 2015-01-12  Martin Liska  <mliska@suse.cz>
12483         * cgraph.c (cgraph_edge::remove_callee): Move function to header
12484         file for being inlined.
12485         (cgraph_set_edge_callee): Delete.
12486         (cgraph_edge::redirect_callee): Move function to header file
12487         for being inlined.
12488         (cgraph_edge::make_direct): Use new function.
12489         (cgraph_edge::dump_edge_flags): New function created from
12490         static dump_edge_flags function.
12491         (cgraph_node::dump): Use new function.
12492         (cgraph_edge::verify_count_and_frequency): New function created
12493         from verify_edge_count_and_frequency.
12494         (cgraph_edge::verify_corresponds_to_fndecl): New function created
12495         from verify_edge_corresponds_to_fndecl.
12496         (verify_edge_corresponds_to_fndecl): Delete.
12497         (cgraph_node::verify_node): Use new function.
12498         * cgraph.h (cgraph_edge::set_callee): New function.
12499         (cgraph_edge::dump_edge_flags): Likewise.
12500         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
12502 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
12504         * ipa-utils.c (estimate_function_body_sizes): Do not
12505         free node params when called late with early=true.
12507 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
12509         * doc/md.texi (Instruction Patterns): Rewrite text for
12510         clarity.
12511         (Example): Likewise.
12513 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
12515         * doc/invoke.texi (Option Summary): Break long lines.
12516         [(-fdiagnostics-color)]: Put long literal in @smallexample
12517         instead of inline.
12518         [(-fsanitize-recover)]: Likewise.
12519         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
12520         [(-ffast-math)]: Likewise.
12521         [(--param max-inline-insns-recursive)]: Likewise.
12522         [(--param max-inline-recursive-depth)]: Likewise.
12523         [(-mno-text-section-literals)]: Likewise.
12525 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
12527         * doc/install.texi: Update for libgomp being renamed from "GNU
12528         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
12529         Runtime Library".
12530         * doc/sourcebuild.texi: Likewise.
12532 2015-01-10  Anthony Green  <green@moxielogic.com>
12534         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
12535         mul.x availability for moxiebox configuration.
12537 2015-01-09  Anthony Green  <green@moxielogic.com>
12539         * config/moxie/moxie.md: Tabify assembly output.
12541 2015-01-09  Anthony Green  <green@moxielogic.com>
12543         * config/moxie/moxie.md (CC_REG): Correct register definition.
12545 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
12547         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
12548         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
12549         of log files.
12551 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
12553         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
12555 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
12556             Jakub Jelinek  <jakub@redhat.com>
12558         PR middle-end/64412
12559         * lto-streamer.h (lto_stream_offload_p): New declaration.
12560         * lto-streamer.c (lto_stream_offload_p): New variable.
12561         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
12562         at the same time as section_name_prefix.
12563         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
12564         if lto_stream_offload_p.
12565         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
12566         stream TREE_TARGET_OPTION if lto_stream_offload_p.
12567         (write_ts_function_decl_tree_pointers): Don't
12568         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
12569         * tree-streamer-in.c (unpack_value_fields): Don't stream
12570         TREE_TARGET_OPTION in if ACCEL_COMPILER.
12571         (lto_input_ts_function_decl_tree_pointers): Don't stream
12572         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
12573         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
12574         instead of section_name_prefix string comparisons.
12576 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
12578         PR rtl-optimization/64536
12579         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
12580         tablejumps.
12582 2015-01-09  Michael Collison  <michael.collison@linaro.org>
12584         PR tree-optimization/64322
12585         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
12586         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
12588 2015-01-09  Tom de Vries  <tom@codesourcery.com>
12590         PR rtl-optimization/64539
12591         * regcprop.c (kill_clobbered_values): Factor out of ...
12592         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
12593         instead of note_stores with kill_clobbered_value.
12595 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
12597          * ginclude/unwind-arm-common.h: Revert previous commit.
12599 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
12601         * config.gcc (arm*-*-freebsd*): New configuration.
12602         * config/arm/freebsd.h: New file.
12603         * config.host: Add extra components for arm*-*-freebsd*.
12604         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
12605         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
12607 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12609         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
12610         for -mcpu=e6500.
12611         * config/rs6000/t-rtems: Add e6500 multilibs.
12613 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12615         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
12616         MPC8540.
12618 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12620         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
12621         MULTILIB_EXCEPTIONS.
12623 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12625         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
12626         MULTILIB_EXCEPTIONS.
12628 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12630         * config/arm/t-rtems-eabi: Rename to...
12631         * config/arm/t-rtems: ...this.
12632         * config/arm/rtems-eabi.h: Rename to...
12633         * config/arm/rtems.h: ...this.
12634         * config.gcc (arm*-*-rtems*): Reflect changes above.
12636 2015-01-09  Richard Biener  <rguenther@suse.de>
12638         PR tree-optimization/64410
12639         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
12640         on the LHS.
12641         (execute_update_addresses_taken): Deal with that.
12642         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
12643         loads/stores for complex variables.
12645 2015-01-09  Martin Liska  <mliska@suse.cz>
12647         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
12648         name comparison.
12649         (func_checker::compare_memory_operand): New function.
12650         (func_checker::compare_operand): Split case to newly
12651         added functions.
12652         (func_checker::compare_cst_or_decl): New function.
12653         (func_checker::compare_gimple_call): Identify
12654         memory operands.
12655         (func_checker::compare_gimple_assign): Likewise.
12656         * ipa-icf-gimple.h: New function.
12658 2015-01-09  Martin Liska  <mliska@suse.cz>
12660         PR ipa/64503
12661         * sreal.c (sreal::dump): Change unsigned format to signed for
12662         m_exp value.
12663         (sreal::to_double): Replace exp2 with scalbln.
12665 2015-01-09  Martin Liska  <mliska@suse.cz>
12667         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
12668         * ipa-icf.c (sem_function::equals_private): Add support for target and
12669         (sem_item_optimizer::merge_classes): Remove redundant function
12670         optimization flags comparison.
12671         * tree.h (target_opts_for_fn): New function.
12673 2015-01-09  Tom de Vries  <tom@codesourcery.com>
12675         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
12677 2015-01-09  Kito Cheng  <kito@0xlab.org>
12679         PR rtl-optimization/64348
12680         * lra-constraints.c (split_reg): Fix caller-save store/restore
12681         instruction generation.
12683 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
12685         PR gcov-profile/61790
12686         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
12687         long long.  Fallback to int64_t if host doesn't have long long and
12688         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
12690 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
12692         PR tree-optimization/63989
12693         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
12694         from 1000 to 10000.
12695         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
12696         (get_stridx): If we don't have a record for certain SSA_NAME,
12697         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
12698         constant offset, call get_stridx_plus_constant.
12699         (get_stridx_plus_constant): New function.
12700         (zero_length_string): Don't use get_stridx here.
12702         PR target/55023
12703         PR middle-end/64388
12704         * dse.c (struct insn_info): Mention frame_read set also
12705         before reload for tail calls on some targets.
12706         (scan_insn): Revert 2014-12-22 change.  Set frame_read
12707         also before reload for tail calls if
12708         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
12709         instead of add_non_frame_wild_read for non-const/memset
12710         tail calls after reload.
12712 2015-01-08  Jason Merrill  <jason@redhat.com>
12714         * ubsan.c (do_ubsan_in_current_function): New.
12715         (pass_ubsan::gate): Use it.
12716         * ubsan.h: Declare it.
12717         * convert.c (convert_to_integer): Use it.
12719 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
12721         PR target/64338
12722         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
12723         compare_code when it is unconditionally overwritten afterwards.
12724         Use ix86_reverse_condition instead of reverse_condition.  Don't
12725         change code if *reverse_condition* returned UNKNOWN and don't
12726         swap ct/cf and negate diff in that case.
12728 2015-01-08  Mike Stump  <mikestump@comcast.net>
12730         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
12731         (pass_tsan_O0::gate): Likewise.
12732         * extend.texi (Function Attributes): Add no_sanitize_thread
12733         documentation.
12735 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
12737         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
12738         for registering builtins.
12739         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
12740         add -fopenmp to the argv_obstack used when invoking
12741         compile_for_target.
12743         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
12744         add "-m32" or "-m64" to argv_obstack.
12745         (generate_host_descr_file): Likewise, when invoking host_compiler.
12746         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
12747         ld.
12749 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
12751         * config/sh/sh-mem.cc: Use constant as second operand when emitting
12752         tstsi_t insns.
12754 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
12756         PR target/55212
12757         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
12758         constant load if constant operand fits into I08.
12760 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
12762         PR sanitizer/64336
12763         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
12764         and TREE_THIS_VOLATILE for MEM_REFs.
12765         (build5_stat): Fix up initialization of TREE_READONLY and
12766         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
12768 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
12770         PR target/64533
12771         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
12772         of r for the second alternative of the destination operand.
12774 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
12776         PR target/36557
12777         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
12779 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
12781         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
12782         keywords.
12783         ([-fivar-visibility], [-fvisibility]): Likewise.
12785 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
12787         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
12788         the file where @code, @command, etc is more appropriate.
12790 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
12792         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
12793         of -mrecip= documentation.
12795 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
12797         PR target/64505
12798         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
12799         correct reload handler if -m32 -mpowerpc64 is used.
12801 2015-01-06  Tom de Vries  <tom@codesourcery.com>
12803         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
12805 2015-01-08  Christian Bruel  <christian.bruel@st.com>
12807         PR target/64507
12808         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
12810 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12812         PR tree-optimization/63259
12813         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
12814         if optab exists for 16bit byteswap.
12816 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
12818         * opts.c (common_handle_option): Add support for
12819         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
12820         * doc/invoke.texi: Document -fno-sanitize=all,
12821         -f{,no-}sanitize-recover=all.  Document that
12822         -fsanitize=float-cast-overflow is not enabled
12823         by -fsanitize=undefined.  Fix up documentation
12824         of -f{,no-}sanitize-recover.
12826 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
12828         * config.gcc: Add Visium support.
12829         * configure.ac: Likewise.
12830         * configure: Regenerate.
12831         * doc/extend.texi (interrupt attribute): Add Visium.
12832         * doc/invoke.texi: Document Visium options.
12833         * doc/install.texi: Document Visium target.
12834         * doc/md.texi: Document Visium constraints.
12835         * common/config/visium: New directory.
12836         * config/visium: Likewise.
12838 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
12840         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
12841         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
12843 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
12845         * combine.c (combine_validate_cost): Do not count the cost of a
12846         split I2 twice.  Do not display it twice in the dump, either.
12848 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
12850         Revert parts of r219199.
12851         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
12852         <inttypes.h>.
12853         ([-Wtraditional]): Restore markup on <limits.h>.
12855 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
12857         PR c++/31397
12858         * doc/invoke.texi: Document -Wsuggest-override.
12860 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
12862         PR rtl-optimization/64287
12863         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
12864         (process_options): Disable flag_ipa_ra if profiling.
12866 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
12868         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
12870 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
12872         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
12873         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
12874         put under #if TARGET_LOOPS guard.
12876 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
12878         * config/i386/i386.c (output_387_binary_op): Use std::swap.
12880 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
12882         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
12883         * rtl.h (refers_to_regno_p): Add overload.
12884         * cse.c: Use it.
12885         * bt-load.c: Likewise.
12886         * combine.c: Likewise.
12887         * df-scan.c: Likewise.
12888         * sched-deps.c: Likewise.
12889         * config/s390/s390.c: Likewise.
12890         * config/m32r/m32r.c: Likewise.
12891         * config/rs6000/spe.md: Likewise.
12892         * config/rs6000/rs6000.c: Likewise.
12893         * config/pa/pa.c: Likewise.
12894         * config/stormy16/stormy16.c: Likewise.
12895         * config/cris/cris.c: Likewise.
12896         * config/arc/arc.md: Likewise.
12897         * config/arc/arc.c: Likewise.
12898         * config/sh/sh.md: Likewise.
12899         * config/sh/sh.c: Likewise.
12900         * config/frv/frv.c: Likewise.
12902 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
12904         PR sanitizer/64265
12905         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
12906         call as cleanup of the whole body.
12907         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
12908         * tsan.c (replace_func_exit): New function.
12909         (instrument_func_exit): Moved earlier.
12910         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
12911         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
12912         been found.
12913         (tsan_pass): Don't call instrument_func_exit.
12914         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
12915         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
12916         inlining.
12918         PR sanitizer/64344
12919         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
12920         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
12921         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
12922         if the result is integer_zerop, return NULL_TREE.
12923         * convert.c (convert_to_integer): Pass expr as ARG.
12925         PR tree-optimization/64465
12926         * tree-inline.c (redirect_all_calls): During inlining
12927         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
12928         changed the stmt to a non-throwing call.
12930 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
12932         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
12933         etc markup throughout the file.
12935 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12937         Enable experimental TSAN support for Ada.
12938         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
12940 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
12942         PR tree-optimization/64494
12943         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
12944         clear SSA_NAME_ANTI_RANGE_P flag.
12946 2015-01-05  Marek Polacek  <polacek@redhat.com>
12948         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
12950 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
12952         Update copyright years.
12954         * gcc.c (process_command): Update copyright notice dates.
12955         * gcov-dump.c: Ditto.
12956         * gcov.c: Ditto.
12957         * doc/cpp.texi: Bump @copying's copyright year.
12958         * doc/cppinternals.texi: Ditto.
12959         * doc/gcc.texi: Ditto.
12960         * doc/gccint.texi: Ditto.
12961         * doc/gcov.texi: Ditto.
12962         * doc/install.texi: Ditto.
12963         * doc/invoke.texi: Ditto.
12965         * auto-profile.c, auto-profile.h: Fix up Copyright line.
12967 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
12969         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
12970         verb tense, etc.
12971         ([-fvtable-verify], [-fvtv-debug]): Likewise.
12972         ([-Wabi]): Likewise.
12973         ([-fmessage-length]): Likewise.
12974         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
12975         ([-Wno-discarded-qualifiers]): Likewise.
12976         ([-Wnodiscarded-array-qualifiers]): Likewise.
12977         ([-Wno-virtual-move-assign]): Likewise.
12978         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
12979         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
12980         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
12981         ([-fsanitize-undefined-trap-on-error]): Likewise.
12982         ([-floop-interchange]): Likewise.
12983         ([-ftree-coalesce-inlined-vars]): Likewise.
12984         ([-fvect-cost-model]): Likewise.
12985         ([-flto]): Likewise.
12986         ([--param]): Likewise.
12987         (Spec Files): Likewise.
12988         ([-mstrict-align]): Likewise.
12989         ([-mfix-cortex-a53-835769]): Likewise.
12990         ([-march], [-mtune]): Likewise.
12991         ([-mpic-register]): Likewise.
12992         ([-munaligned-access]): Likewise.
12993         ([-msp8]): Likewise.
12994         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
12995         (AVR Built-in Macros): Likewise.
12996         ([-mpreferred-stack-boundary]): Likewise.
12997         ([-mtune-crtl]): Likewise.
12998         ([-mashf]): Likewise.
12999         ([-mmcu=]): Likewise.
13000         ([-minrt]): Likewise.
13001         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
13002         ([-mupper-regs]): Likewise.
13003         ([-matomic-model]): Likewise.
13004         ([-mdiv]): Likewise.
13005         ([-mzdcbranch]): Likewise.
13006         ([-mdisable-callt]): Likewise.
13007         ([-msoft-float]): Likewise.
13008         ([-m8byte-align]): Likewise.
13009         ([-fstack-reuse]): Likewise.
13011 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
13013         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
13014         Fix markup, light copy-editing.
13015         ([-fauto-profile]): Rewrite to fix formatting and content
13016         problems.
13018 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
13020         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
13021         Copy-edit description.
13022         ([-fisolate-erroneous-paths-attribute]): Likewise.
13023         * common.opt (fisolate-erroneous-paths-dereference):
13024         Copy-edit description.
13025         (fisolate-erroneous-paths-attribute): Likewise.
13027 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
13029         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
13030         tidy grammar.
13032 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
13034         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
13035         ([-fvtv-debug]): Likewise.
13036         ([-Wc++-compat]): Likewise.
13037         ([-Wc++11-compat]): Likewise.
13038         ([-Wc++14-compat]): Likewise.
13039         ([-Wno-sized-deallocation]): Likewise.
13040         ([-femit-class-debug-always]): Likewise.
13041         ([-femit-struct-debug-detailed]): Likewise.
13042         ([-fno-keep-inline-dllexport]): Likewise.
13043         ([-fira-algorithm]): Likewise.
13044         ([-fira-region]): Likewise.
13045         ([-flra-remat]): Likewise.
13046         ([-fipa-ra]): Likewise.
13047         ([-fhoist-adjacent-loads]): Likewise.
13048         ([-fisolate-erroneous-paths-dereference]): Likewise.
13049         ([-fisolate-erroneous-paths-attribute]): Likewise.
13050         ([-ftree-switch-conversion]): Likewise.
13051         ([-ftree-tail-merge]): Likewise.
13052         ([-ftree-loop-if-convert]): Likewise.
13053         ([-ftree-loop-if-convert-stores]): Likewise.
13054         ([-ftree-loop-distribution]): Likewise.
13055         ([-ftree-loop-distribute-patterns]): Likewise.
13056         ([-flto-compression-level]): Likewise.
13057         ([-flto-report]): Likewise.
13058         ([-flto-report-wpa]): Likewise.
13059         ([-fuse-linker-plugin]): Likewise.
13060         ([-mfix-cortex-a53-835769]): Likewise.
13061         ([-mno-fix-cortex-a53-835769]): Likewise.
13062         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
13063         explicit listing; add a note to the discussion indicating they
13064         exist.  Reorder table to group similar options.  Add missing
13065         @opindex entries.  Add @need commands throughout the table to
13066         allow it to be split across multiple pages.
13067         ([-m8bit-idiv]): Fix @opindex.
13068         ([-mavx256-split-unaligned-load]): Likewise.
13069         ([-mavx256-split-unaligned-store]): Likewise.
13070         ([-mstack-protector-guard]): Likewise.
13071         ([-mcpu=]): Likewise.
13072         ([-mcpu]): Likewise.
13073         ([-mpointer-size=]): Likewise.
13075 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
13077         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
13078         instead of `m' constraint.  Likewise for unnamed movb comparison
13079         patterns using reg_before_reload_operand predicate.
13080         * config/pa/predicates.md (reg_before_reload_operand): Tighten
13081         predicate to reject register index and LO_SUM DLT memory forms
13082         after reload.
13084 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
13086         * doc/invoke.texi (Option Summary): Fix spelling of
13087         -fdevirtualize-at-ltrans.
13088         ([-fdevirtualize]): Fix markup.
13089         ([-fdevirtualize-speculatively]): Fix typo.
13090         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
13091         implementor-speaky.
13092         * common.opt (fdevirtualize-at-ltrans): Likewise.
13093         * ipa-devirt.c: Fix typos in comments throughout the file.
13094         (ipa_devirt): Fix typos in format strings for dump output.
13096 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
13098         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
13099         discussion of defaults, light copy-editing.
13101 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13103         * tsan.c (instrument_expr): corrected previous checkin.
13105 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13107         Instrument bit field and unaligned accesses for TSAN.
13108         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
13109         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
13110         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
13111         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
13112         unaligned memory regions.
13114 2015-01-01  Anthony Green  <green@moxielogic.com>
13116         * config/moxie/predicates.md (moxie_general_movsrc_operand):
13117         Restrict move source register offsets to 16 bits.
13119 Copyright (C) 2015 Free Software Foundation, Inc.
13121 Copying and distribution of this file, with or without modification,
13122 are permitted in any medium without royalty provided the copyright
13123 notice and this notice are preserved.