1 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
5 (combine_set_extension): Likewise for param "curr_insn".
6 (transform_ifelse): Likewise for param "def_insn".
7 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
8 from vec<rtx> * to vec<rtx_insn *> *.
9 (is_cond_copy_insn): Likewise for param "insn".
10 (struct ext_state): Strengthen the four vec fields from vec<rtx>
12 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
13 local "def_insn" from rtx to rtx_insn *.
14 (get_sub_rtx): Likewise for param "def_insn".
15 (merge_def_and_ext): Likewise.
16 (combine_reaching_defs): Likewise.
17 (add_removable_extension): Likewise for param "insn".
18 (find_removable_extensions): Likewise for local "insn".
19 (find_and_remove_re): Likewise for locals "curr_insn" and
20 "def_insn". Strengthen locals "reinsn_del_list" and
21 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
23 2014-08-22 David Malcolm <dmalcolm@redhat.com>
25 * recog.c (split_insn): Strengthen param "insn" and locals
26 "first", "last" from rtx to rtx_insn *.
27 (split_all_insns): Likewise for locals "insn", "next".
28 (split_all_insns_noflow): Likewise.
30 2014-08-22 David Malcolm <dmalcolm@redhat.com>
32 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
34 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
35 (debug_rtx_find): Likewise for param 1 "x".
37 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
38 const_rtx to const rtx_insn *. Likewise for local "insn".
39 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
40 (debug_rtx_find): Likewise for param 1 "x".
41 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
42 from const_rtx to const rtx_insn * within the appropriate cases of
45 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
46 Strengthen local "insns" from rtx to rtx_insn * since this is
47 passed to a call to debug_rtx_list.
49 2014-08-22 David Malcolm <dmalcolm@redhat.com>
51 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
54 * function.c (stack_protect_epilogue): Add checked cast to
55 rtx_insn for now when invoking predict_insn_def.
57 * predict.c (predict_insn): Strengthen param "insn" from rtx to
59 (predict_insn_def): Likewise.
60 (rtl_predict_edge): Likewise for local "last_insn".
61 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
63 (combine_predictions_for_insn): Strengthen param "insn" from rtx
65 (bb_estimate_probability_locally): Likewise for local "last_insn".
66 (expensive_function_p): Likewise for local "insn".
68 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
69 local "jmp", since this is used when invoking predict_insn_def.
71 2014-08-22 Marek Polacek <polacek@redhat.com>
74 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
76 2014-08-22 Marek Polacek <polacek@redhat.com>
79 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
80 a comparison in parens.
81 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
84 2014-08-22 David Malcolm <dmalcolm@redhat.com>
86 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
89 * cprop.c (fis_get_condition): Likewise.
91 * postreload.c (reload_cse_regs): Likewise for param "first".
92 (reload_cse_simplify): Likewise for param "insn".
93 (reload_cse_regs_1): Likewise for local "insn".
94 (reload_cse_simplify_set): Likewise for param "insn".
95 (reload_cse_simplify_operands): Likewise.
96 (struct reg_use): Likewise for field "insn".
97 (reload_combine_purge_insn_uses): Likewise for param "insn".
98 (fixup_debug_insns): Likewise for params "from", "to" and local
100 (try_replace_in_use): Likewise for local "use_insn".
101 (reload_combine_recognize_const_pattern): Likewise for param
102 "insn" and locals "add_moved_after_insn", "use_insn".
103 (reload_combine_recognize_pattern): Likewise for param "insn" and
105 (reload_combine): Likewise for locals "insn", "prev".
106 (reload_combine_note_use): Likewise for param "insn".
107 (move2add_use_add2_insn): Likewise.
108 (move2add_use_add3_insn): Likewise.
109 (reload_cse_move2add): Likewise, also for local "next".
110 (move2add_note_store): Likewise for local "insn".
112 2014-08-22 David Malcolm <dmalcolm@redhat.com>
114 * postreload-gcse.c (struct occr): Strengthen field "insn" from
116 (struct unoccr): Likewise.
117 (struct modifies_mem): Likewise.
118 (alloc_mem): Likewise for local "insn".
119 (insert_expr_in_table): Likewise for param "insn".
120 (dump_expr_hash_table_entry): Likewise for local "insn".
121 (oprs_unchanged_p): Likewise for param "insn".
122 (load_killed_in_block_p): Likewise for local "setter".
123 (record_last_reg_set_info): Likewise for param "insn".
124 (record_last_reg_set_info_regno): Likewise.
125 (record_last_mem_set_info): Likewise.
126 (record_last_set_info): Likewise for local "last_set_insn".
127 (record_opr_changes): Likewise for param "insn".
128 (hash_scan_set): Likewise.
129 (compute_hash_table): Likewise for local "insn".
130 (get_avail_load_store_reg): Likewise for param "insn".
131 (eliminate_partially_redundant_load): Likewise, also for locals
132 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
134 (eliminate_partially_redundant_loads): Likewise for local "insn".
136 2014-08-22 David Malcolm <dmalcolm@redhat.com>
138 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
140 (expand_binop): Likewise for locals "entry_last", "last", "insns"
141 (expand_twoval_unop): Likewise for locals entry_last", "last".
142 (expand_twoval_binop): Likewise.
143 (expand_twoval_binop_libfunc): Likewise for local "insns".
144 (widen_leading): Likewise for local "last".
145 (expand_doubleword_clz): Likewise for local "seq". Strengthen
146 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
147 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
148 (expand_parity): Likewise for locals "last" and "seq".
149 (expand_ffs): Likewise for local "seq". Strengthen local
150 "nonzero_label" from rtx to rtx_code_label *.
151 (expand_absneg_bit): Strengthen local "insns" from rtx to
153 (expand_unop_direct): Likewise for local "last".
154 (expand_unop): Likewise for locals "last", "insns".
155 (expand_abs_nojump): Likewise for local "last".
156 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
157 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
159 (expand_copysign_absneg): Strengthen local "label" from rtx to
161 (expand_copysign_bit): Strengthen local "insns" from rtx to
163 (struct no_conflict_data): Likewise for fields "first", "insn".
164 (emit_libcall_block_1): Likewise for param "insns" and locals
165 "next", "last", "insn".
166 (emit_libcall_block): For now, add a checked cast to rtx_insn *
167 on "insns" when invoking emit_libcall_block_1. Ultimately we
168 want to strengthen insns itself.
169 (prepare_cmp_insn): Strengthen local "last" from rtx to
171 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
172 (prepare_float_lib_cmp): Likewise for local "insns".
173 (emit_conditional_move): Likewise for local "last".
174 (emit_conditional_add): Likewise.
175 (have_sub2_insn): Likewise for local "seq".
176 (expand_float): Likewise for local "insns". Strengthen locals
177 "label", "neglabel" from rtx to rtx_code_label *.
178 (expand_fix): Likewise for locals "last", "insn", "insns" (to
179 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
180 (expand_fixed_convert): Likewise for local "insns" (to
182 (expand_sfix_optab): Likewise for local "last".
183 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
185 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
186 from rtx to rtx_insn *.
187 (expand_atomic_fetch_op): Likewise for local "insn".
188 (maybe_legitimize_operand_same_code): Likewise for local "last".
189 (maybe_legitimize_operands): Likewise.
191 2014-08-22 David Malcolm <dmalcolm@redhat.com>
193 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
194 "insn" from rtx to rtx_insn *.
195 (ps_rtl_insn): Likewise for return type.
196 (doloop_register_get): Likewise for params "head", "tail" and
197 locals "insn", "first_insn_not_to_check".
198 (schedule_reg_move): Likewise for local "this_insn".
199 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
200 of gen_move_insn for now.
201 (reset_sched_times): Strengthen local "insn" from rtx to
203 (permute_partial_schedule): Likewise.
204 (duplicate_insns_of_cycles): Likewise for local "u_insn".
205 (dump_insn_location): Likewise for param "insn".
206 (loop_canon_p): Likewise for local "insn".
207 (sms_schedule): Likewise.
208 (print_partial_schedule): Likewise.
209 (ps_has_conflicts): Likewise.
211 2014-08-22 David Malcolm <dmalcolm@redhat.com>
213 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
214 "tailp" from rtx * to rtx_insn **.
216 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
217 from rtx to rtx_insn *.
218 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
219 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
220 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
222 * modulo-sched.c (const_iteration_count): Strengthen return type
223 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
224 use of NULL_RTX with NULL when working with insns.
225 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
227 (sms_schedule): Likewise.
228 * sched-rgn.c (init_ready_list): Likewise, also for locals
229 "src_head" and "src_next_tail".
230 (compute_block_dependences): Likewise.
231 (free_block_dependencies): Likewise.
232 (debug_rgn_dependencies): Likewise.
233 (free_rgn_deps): Likewise.
234 (compute_priorities): Likewise.
235 (schedule_region): Likewise.
236 * sel-sched.c (find_ebb_boundaries): Likewise.
238 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
239 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
241 2014-08-22 David Malcolm <dmalcolm@redhat.com>
243 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
244 from rtx to rtx_insn *.
245 (new_seginfo): Likewise for param "insn".
246 (create_pre_exit): Likewise for locals "last_insn",
247 "before_return_copy", "return_copy".
248 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
251 2014-08-22 David Malcolm <dmalcolm@redhat.com>
253 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
254 from rtx to rtx_insn *.
255 (lra_push_insn): Likewise for 1st param.
256 (lra_push_insn_and_update_insn_regno_info): Likewise.
257 (lra_pop_insn): Likewise for return type.
258 (lra_invalidate_insn_data): Likewise for 1st param.
259 (lra_set_insn_deleted): Likewise.
260 (lra_delete_dead_insn): Likewise.
261 (lra_process_new_insns): Likewise for first 3 params.
262 (lra_set_insn_recog_data): Likewise for 1st param.
263 (lra_update_insn_recog_data): Likewise.
264 (lra_set_used_insn_alternative): Likewise.
265 (lra_invalidate_insn_regno_info): Likewise.
266 (lra_update_insn_regno_info): Likewise.
267 (lra_former_scratch_operand_p): Likewise.
268 (lra_eliminate_regs_1): Likewise.
269 (lra_get_insn_recog_data): Likewise.
271 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
274 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
276 (substitute_within_insn): New.
277 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
278 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
279 Replace call to "substitute" with call to substitute_within_insn.
281 * lra-constraints.c (curr_insn): Strengthen from rtx to
283 (get_equiv_with_elimination): Likewise for param "insn".
284 (match_reload): Strengthen params "before" and "after" from rtx *
286 (emit_spill_move): Likewise for return type. Add a checked cast
287 to rtx_insn * on result of gen_move_insn for now.
288 (check_and_process_move): Likewise for local "before". Replace
289 NULL_RTX with NULL when referring to insns.
290 (process_addr_reg): Strengthen params "before" and "after" from
291 rtx * to rtx_insn **.
292 (insert_move_for_subreg): Likewise.
293 (simplify_operand_subreg): Strengthen locals "before" and "after"
294 from rtx to rtx_insn *.
295 (process_address_1): Strengthen params "before" and "after" from
296 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
298 (process_address): Strengthen params "before" and "after" from
299 rtx * to rtx_insn **.
300 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
301 (curr_insn_transform): Strengthen locals "before" and "after"
302 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
304 (loc_equivalence_callback): Update cast of "data", changing
305 resulting type from rtx to rtx_insn *.
306 (substitute_pseudo_within_insn): New.
307 (inherit_reload_reg): Strengthen param "insn" from rtx to
308 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
309 NULL when referring to insns. Add a checked cast to rtx_insn *
310 when using usage_insn to invoke lra_update_insn_regno_info.
311 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
312 likewise for locals "restore", "save". Add checked casts to
313 rtx_insn * when using usage_insn to invoke
314 lra_update_insn_regno_info and lra_process_new_insns. Replace
315 NULL_RTX with NULL when referring to insns.
316 (split_if_necessary): Strengthen param "insn" from rtx to
318 (update_ebb_live_info): Likewise for params "head", "tail" and local
320 (get_last_insertion_point): Likewise for return type and local "insn".
321 (get_live_on_other_edges): Likewise for local "last".
322 (inherit_in_ebb): Likewise for params "head", "tail" and locals
323 "prev_insn", "next_insn", "restore".
324 (remove_inheritance_pseudos): Likewise for local "prev_insn".
325 (undo_optional_reloads): Likewise for local "insn".
327 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
329 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
331 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
333 (spill_pseudos): Likewise for local "insn".
334 (init_elimination): Likewise.
335 (process_insn_for_elimination): Likewise for param "insn".
337 * lra-lives.c (curr_insn): Likewise.;
339 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
340 (remove_pseudos): Likewise for param "insn".
341 (spill_pseudos): Likewise for local "insn".
342 (lra_final_code_change): Likewise for locals "insn", "curr".
344 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
345 (lra_set_insn_deleted): Likewise.
346 (lra_delete_dead_insn): Likewise, and for local "prev".
347 (new_insn_reg): Likewise for param "insn".
348 (lra_set_insn_recog_data): Likewise.
349 (lra_update_insn_recog_data): Likewise.
350 (lra_set_used_insn_alternative): Likewise.
351 (get_insn_freq): Likewise.
352 (invalidate_insn_data_regno_info): Likewise.
353 (lra_invalidate_insn_regno_info): Likewise.
354 (lra_update_insn_regno_info): Likewise.
355 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
357 (lra_push_insn_1): Strengthen param "insn" from rtx to
359 (lra_push_insn): Likewise.
360 (lra_push_insn_and_update_insn_regno_info): Likewise.
361 (lra_pop_insn): Likewise for return type and local "insn".
362 (push_insns): Likewise for params "from", "to", and local "insn".
363 (setup_sp_offset): Likewise for params "from", "last" and locals
365 (lra_process_new_insns): Likewise for params "insn", "before",
366 "after" and local "last".
367 (struct sloc): Likewise for field "insn".
368 (lra_former_scratch_operand_p): Likewise for param "insn".
369 (remove_scratches): Likewise for locals "insn", "last".
370 (check_rtl): Likewise for local "insn".
371 (add_auto_inc_notes): Likewise for param "insn".
372 (update_inc_notes): Likewise for local "insn".
373 (lra): Replace NULL_RTX with NULL when referring to insn.
375 2014-08-22 David Malcolm <dmalcolm@redhat.com>
377 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
379 (resolve_reg_notes): Likewise.
380 (resolve_simple_move): Likewise for return type, param "insn", and
381 locals "insns", "minsn".
382 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
383 (resolve_use): Likewise.
384 (resolve_debug): Likewise.
385 (find_decomposable_shift_zext): Likewise.
386 (resolve_shift_zext): Likewise for return type, param "insn", and
387 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
388 (decompose_multiword_subregs): Likewise for local "insn",
389 "orig_insn", "decomposed_shift", "end".
391 2014-08-22 David Malcolm <dmalcolm@redhat.com>
393 * basic-block.h (basic_block split_edge_and_insert): Strengthen
394 param "insns" from rtx to rtx_insn *.
396 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
398 (struct iv_to_split): Likewise.
399 (loop_exit_at_end_p): Likewise for local "insn".
400 (split_edge_and_insert): Likewise for param "insns".
401 (compare_and_jump_seq): Likewise for return type, param "cinsn",
402 and locals "seq", "jump".
403 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
404 "branch_code"; update invocations of compare_and_jump_seq to
405 eliminate NULL_RTX in favor of NULL.
406 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
408 (reset_debug_uses_in_loop): Likewise.
409 (analyze_insn_to_expand_var): Likewise for param "insn".
410 (analyze_iv_to_split_insn): Likewise.
411 (analyze_insns_in_loop): Likewise for local "insn".
412 (insert_base_initialization): Likewise for param
413 "insn" and local "seq".
414 (split_iv): Likewise for param "insn" and local "seq".
415 (expand_var_during_unrolling): Likewise for param "insn".
416 (insert_var_expansion_initialization): Likewise for local "seq".
417 (combine_var_copies_in_loop_exit): Likewise.
418 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
420 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
421 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
424 2014-08-22 David Malcolm <dmalcolm@redhat.com>
426 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
428 (iv_analyze_result): Likewise.
429 (iv_analyze_expr): Likewise.
432 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
433 local "def_insn" from rtx to rtx_insn *.
434 (get_biv_step_1): Likewise for local "insn".
435 (iv_analyze_expr): Likewise for param "insn".
436 (iv_analyze_def): Likewise for local "insn".
437 (iv_analyze_op): Likewise for param "insn".
438 (iv_analyze): Likewise.
439 (iv_analyze_result): Likewise.
441 (suitable_set_for_replacement): Likewise.
442 (simplify_using_initial_values): Likewise for local "insn".
443 (iv_number_of_iterations): Likewise for param "insn".
444 (check_simple_exit): Add checked cast to rtx_insn when invoking
445 iv_number_of_iterations for now (until get_condition is
448 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
449 "insn" from rtx to rtx_insn *.
450 (analyze_insns_in_loop): Likewise for local "insn".
452 2014-08-22 David Malcolm <dmalcolm@redhat.com>
454 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
456 (struct invariant): Likewise.
457 (hash_invariant_expr_1): Likewise for param "insn".
458 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
459 (find_exits): Likewise for local "insn".
460 (create_new_invariant): Likewise for param "insn".
461 (check_dependencies): Likewise.
462 (find_invariant_insn): Likewise.
463 (record_uses): Likewise.
464 (find_invariants_insn): Likewise.
465 (find_invariants_bb): Likewise for local "insn".
466 (get_pressure_class_and_nregs): Likewise for param "insn".
467 (calculate_loop_reg_pressure): Likewise for local "insn".
469 2014-08-22 David Malcolm <dmalcolm@redhat.com>
471 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
473 (add_test): Likewise for locals "seq", "jump".
474 (doloop_modify): Likewise for locals "sequence", "jump_insn".
476 2014-08-22 David Malcolm <dmalcolm@redhat.com>
478 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
480 (rebuild_jump_labels_chain): Likewise for param "chain".
482 * cfgexpand.c (pass_expand::execute): Add checked cast to
483 rtx_insn * when calling rebuild_jump_labels_chain in region where
484 we know e->insns.r is non-NULL.
486 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
488 (rebuild_jump_labels): Likewise.
489 (rebuild_jump_labels_chain): Likewise for param "chain".
490 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
491 (init_label_info): Likewise for param "f".
492 (maybe_propagate_label_ref): Likewise for params "jump_insn",
494 (mark_all_labels): Likewise for param "f" and locals "insn",
497 2014-08-22 David Malcolm <dmalcolm@redhat.com>
499 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
500 from rtx to rtx_insn *insn.
501 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
502 (ira_add_allocno_copy): Likewise.
503 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
505 (ira_create_copy): Likewise.
506 (ira_add_allocno_copy): Likewise.
507 (create_bb_allocnos): Likewise for local "insn".
508 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
509 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
510 process_regs_for_copy for rtx_insn * param.
511 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
512 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
513 process_regs_for_copy for rtx_insn * param.
514 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
515 * ira-costs.c (record_reg_classes): Likewise for param "insn".
516 (record_operand_costs): Likewise.
517 (scan_one_insn): Likewise for return type, and for param "insn".
518 (process_bb_for_costs): Likewise for local "insn".
519 (process_bb_node_for_hard_reg_moves): Likewise.
520 * ira-emit.c (struct move): Likewise for field "insn".
521 (create_move): Eliminate use of NULL_RTX when dealing with an
523 (emit_move_list): Strengthen return type and locals "result",
524 "insn" from rtx to rtx_insn *insn.
525 (emit_moves): Likewise for locals "insns", "tmp".
526 (ira_emit): Likewise for local "insn".
527 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
529 (find_call_crossed_cheap_reg): Likewise.
530 (process_bb_node_lives): Likewise for local "insn".
531 * ira.c (decrease_live_ranges_number): Likewise.
532 (compute_regs_asm_clobbered): Likewise.
533 (build_insn_chain): Likewise.
534 (find_moveable_pseudos): Likewise, also locals "def_insn",
535 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
536 to rtx_insn **. Add a checked cast when assigning from
537 "closest_use" into closest_uses array in a region where we know
538 it's a non-NULL insn.
539 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
541 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
542 "last_interesting_insn", "uin".
543 (move_unallocated_pseudos): Likewise for locals "def_insn",
544 "move_insn", "newinsn".
546 2014-08-22 David Malcolm <dmalcolm@redhat.com>
548 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
549 Strengthen locals "done_label", "do_error" from rtx to
551 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
552 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
554 (ubsan_expand_si_overflow_neg_check): Likewise for locals
555 "done_label", "do_error" to rtx_code_label * and local "last" to
557 (ubsan_expand_si_overflow_mul_check): Likewise for locals
558 "done_label", "do_error", "large_op0", "small_op0_large_op1",
559 "one_small_one_large", "both_ops_large", "after_hipart_neg",
560 "after_lopart_neg", "do_overflow", "hipart_different" to
561 rtx_code_label * and local "last" to rtx_insn *.
563 2014-08-22 David Malcolm <dmalcolm@redhat.com>
565 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
566 "insn" and "move_insn" from rtx to rtx_insn *.
568 2014-08-22 David Malcolm <dmalcolm@redhat.com>
570 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
572 (cheap_bb_rtx_cost_p): Likewise.
573 (first_active_insn): Likewise for return type and local "insn".
574 (last_active_insn): Likewise for return type and locals "insn",
576 (struct noce_if_info): Likewise for fields "jump", "insn_a",
578 (end_ifcvt_sequence): Likewise for return type and locals "insn",
580 (noce_try_move): Likewise for local "seq".
581 (noce_try_store_flag): Likewise.
582 (noce_try_store_flag_constants): Likewise.
583 (noce_try_addcc): Likewise.
584 (noce_try_store_flag_mask): Likewise.
585 (noce_try_cmove): Likewise.
586 (noce_try_minmax): Likewise.
587 (noce_try_abs): Likewise.
588 (noce_try_sign_mask): Likewise.
589 (noce_try_bitop): Likewise.
590 (noce_can_store_speculate_p): Likewise for local "insn".
591 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
593 (check_cond_move_block): Likewise for local "insn".
594 (cond_move_convert_if_block): Likewise.
595 (cond_move_process_if_block): Likewise for locals "seq",
597 (noce_find_if_block): Likewise for local "jump".
598 (merge_if_block): Likewise for local "last".
599 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
600 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
601 (block_has_only_trap): Likewise for return type and local "trap".
602 (find_if_case_1): Likewise for local "jump".
603 (dead_or_predicable): Likewise for locals "head", "end", "jump",
606 2014-08-22 David Malcolm <dmalcolm@redhat.com>
608 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
609 "last_insn", "loop_end" from rtx to rtx_insn *.
611 * hw-doloop.c (scan_loop): Likewise for local "insn".
612 (discover_loop): Likewise for param "tail_insn".
613 (discover_loops): Likewise for local "tail".
615 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
616 cast to rtx_insn * when assigning from an rtx local to a
617 hwloop_info's "last_insn" field.
619 2014-08-22 David Malcolm <dmalcolm@redhat.com>
621 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
622 (add_delay_dependencies): Strengthen local "pro" from rtx to
624 (recompute_todo_spec): Likewise.
625 (dep_cost_1): Likewise for locals "insn", "used".
626 (schedule_insn): Likewise for local "dbg".
627 (schedule_insn): Likewise for locals "pro", "next".
628 (unschedule_insns_until): Likewise for local "con".
629 (restore_pattern): Likewise for local "next".
630 (estimate_insn_tick): Likewise for local "pro".
631 (resolve_dependencies): Likewise for local "next".
632 (fix_inter_tick): Likewise.
633 (fix_tick_ready): Likewise for local "pro".
634 (add_to_speculative_block): Likewise for locals "check", "twin",
636 (sched_extend_bb): Likewise for locals "end", "insn".
637 (init_before_recovery): Likewise for local "x".
638 (sched_create_recovery_block): Likewise for local "barrier".
639 (create_check_block_twin): Likewise for local "pro".
640 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
642 (unlink_bb_notes): Update for change to type of bb_header.
643 Strengthen locals "prev", "label", "note", "next" from rtx to
645 (clear_priorities): Likewise for local "pro".
647 2014-08-22 David Malcolm <dmalcolm@redhat.com>
649 * gcse.c (struct occr): Strengthen field "insn" from rtx to
651 (test_insn): Likewise for this global.
652 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
654 (oprs_anticipatable_p): Likewise.
655 (oprs_available_p): Likewise.
656 (insert_expr_in_table): Strengthen param "insn" from rtx to
658 (hash_scan_set): Likewise.
659 (hash_scan_clobber): Likewise.
660 (hash_scan_call): Likewise.
661 (hash_scan_insn): Likewise.
662 (compute_hash_table_work): Likewise for local "insn".
663 (process_insert_insn): Likewise for return type and local "pat".
664 (insert_insn_end_basic_block): Likewise for locals "new_insn",
665 "pat", "pat_end", "maybe_cc0_setter".
666 (pre_edge_insert): Likewise for local "insn".
667 (pre_insert_copy_insn): Likewise for param "insn".
668 (pre_insert_copies): Likewise for local "insn".
669 (struct set_data): Likewise for field "insn".
670 (single_set_gcse): Likewise for param "insn".
671 (gcse_emit_move_after): Likewise.
672 (pre_delete): Likewise for local "insn".
673 (update_bb_reg_pressure): Likewise for param "from" and local
675 (should_hoist_expr_to_dom): Likewise for param "from".
676 (hoist_code): Likewise for local "insn".
677 (get_pressure_class_and_nregs): Likewise for param "insn".
678 (calculate_bb_reg_pressure): Likewise for local "insn".
679 (compute_ld_motion_mems): Likewise.
681 2014-08-22 David Malcolm <dmalcolm@redhat.com>
683 * genpeep.c (main): Rename param back from "uncast_ins1" to
684 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
687 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
689 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
692 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
693 documentation to state it is only for VSX operations.
695 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
696 constraint only active if VSX.
698 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
699 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
702 2014-08-22 David Malcolm <dmalcolm@redhat.com>
704 * fwprop.c (single_def_use_dom_walker::before_dom_children):
705 Strengthen local "insn" from rtx to rtx_insn *.
706 (use_killed_between): Likewise for param "target_insn".
707 (all_uses_available_at): Likewise for param "target_insn" and
709 (update_df_init): Likewise for params "def_insn", "insn".
710 (update_df): Likewise for param "insn".
711 (try_fwprop_subst): Likewise for param "def_insn" and local
713 (free_load_extend): Likewise for param "insn".
714 (forward_propagate_subreg): Likewise for param "def_insn" and
716 (forward_propagate_asm): Likewise for param "def_insn" and local
718 (forward_propagate_and_simplify): Likewise for param "def_insn"
719 and local "use_insn".
720 (forward_propagate_into): Likewise for locals "def_insn" and
723 2014-08-22 David Malcolm <dmalcolm@redhat.com>
725 * function.c (emit_initial_value_sets): Strengthen local "seq"
726 from rtx to rtx_insn *.
727 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
729 (instantiate_virtual_regs): Likewise for local "insn".
730 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
731 (reorder_blocks_1): Likewise for param "insns" and local "insn".
732 (expand_function_end): Likewise for locals "insn" and "seq".
733 (epilogue_done): Likewise for local "insn".
734 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
736 (reposition_prologue_and_epilogue_notes): Likewise for locals
737 "insn", "last", "note", "first".
738 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
739 (pass_match_asm_constraints::execute): Likewise for local "insn".
741 2014-08-22 David Malcolm <dmalcolm@redhat.com>
743 * output.h (final_scan_insn): Strengthen return type from rtx to
745 (final_forward_branch_p): Likewise for param.
746 (current_output_insn): Likewise for this global.
748 * final.c (rtx debug_insn): Likewise for this variable.
749 (current_output_insn): Likewise.
750 (get_attr_length_1): Rename param "insn" to "uncast_insn",
751 adding "insn" back in as an rtx_insn * with a checked cast, so
752 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
754 (compute_alignments): Strengthen local "label" from rtx to
756 (shorten_branches): Rename param from "first" to "uncast_first",
757 introducing a new local rtx_insn * "first" using a checked cast to
758 effectively strengthen "first" from rtx to rtx_insn * without
759 affecting the type signature. Strengthen locals "insn", "seq",
760 "next", "label" from rtx to rtx_insn *.
761 (change_scope): Strengthen param "orig_insn" and local "insn" from
763 (final_start_function): Rename param from "first" to "uncast_first",
764 introducing a new local rtx_insn * "first" using a checked cast to
765 effectively strengthen "first" from rtx to rtx_insn * without
766 affecting the type signature. Strengthen local "insn" from rtx to
768 (dump_basic_block_info): Strengthen param "insn" from rtx to
770 (final): Rename param from "first" to "uncast_first",
771 introducing a new local rtx_insn * "first" using a checked cast to
772 effectively strengthen "first" from rtx to rtx_insn * without
773 affecting the type signature. Strengthen locals "insn", "next"
774 from rtx to rtx_insn *.
775 (output_alternate_entry_point): Strengthen param "insn" from rtx to
777 (call_from_call_insn): Strengthen param "insn" from rtx to
779 (final_scan_insn): Rename param from "insn" to "uncast_insn",
780 introducing a new local rtx_insn * "insn" using a checked cast to
781 effectively strengthen "insn" from rtx to rtx_insn * without
782 affecting the type signature. Strengthen return type and locals
783 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
784 now-redundant checked cast to rtx_insn * from both invocations of
785 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
786 introducing a local "call_insn" for use when invoking
788 (notice_source_line): Strengthen param "insn" from rtx to
790 (leaf_function_p): Likewise for local "insn".
791 (final_forward_branch_p): Likewise.
792 (leaf_renumber_regs): Likewise for param "first".
793 (rest_of_clean_state): Likewise for locals "insn" and "next".
794 (self_recursive_call_p): Likewise for param "insn".
795 (collect_fn_hard_reg_usage): Likewise for local "insn".
796 (get_call_fndecl): Likewise for param "insn".
797 (get_call_cgraph_rtl_info): Likewise.
798 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
799 introducing a new local rtx_insn * "insn" using a checked cast to
800 effectively strengthen "insn" from rtx to rtx_insn * without
801 affecting the type signature.
803 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
804 cast when assigning from param "insn" to current_output_insn.
805 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
806 so that we can assign it back to current_output_insn.
808 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
810 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
811 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
812 atmxt540s and atmxt540sreva devices.
813 * config/avr/avr-tables.opt: Regenerate.
814 * config/avr/t-multilib: Regenerate.
815 * doc/avr-mmcu.texi: Regenerate.
817 2014-08-22 David Malcolm <dmalcolm@redhat.com>
819 * expr.c (convert_move): Strengthen local "insns" from rtx to
821 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
822 "top_label" from rtx to rtx_code_label *.
823 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
825 (emit_single_push_insn): Likewise for locals "prev", "last".
826 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
828 (store_constructor): Likewise for locals "loop_start", "loop_end".
829 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
831 (expand_expr_real_2): Likewise.
832 (expand_expr_real_1): Strengthen local "label" from rtx to
835 2014-08-22 David Malcolm <dmalcolm@redhat.com>
837 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
838 from rtx to rtx_insn *.
839 (store_bit_field_1): Likewise.
840 (extract_bit_field_1): Likewise.
841 (expand_mult_const): Likewise for local "insns".
842 (expmed_mult_highpart): Strengthen local "label" from rtx to
844 (expand_smod_pow2): Likewise.
845 (expand_sdiv_pow2): Likewise.
846 (expand_divmod): Strengthen locals "last", "insn" from rtx to
847 rtx_insn *. Strengthen locals "label", "label1", "label2",
848 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
849 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
850 (emit_store_flag): Likewise.
851 (emit_store_flag_force): Strengthen local "label" from rtx to
853 (do_cmp_and_jump): Likewise for param "label".
855 2014-08-22 David Malcolm <dmalcolm@redhat.com>
857 * explow.c (force_reg): Strengthen local "insn" from rtx to
859 (adjust_stack_1): Likewise.
860 (allocate_dynamic_stack_space): Likewise. Strengthen locals
861 "final_label", "available_label", "space_available" from rtx to
863 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
864 (anti_adjust_stack_and_probe): Likewise.
866 2014-08-22 David Malcolm <dmalcolm@redhat.com>
868 * except.h (sjlj_emit_function_exit_after): Strengthen param
869 "after" from rtx to rtx_insn *. This is only called with
870 result of get_last_insn (in function.c) so type-change should be
873 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
874 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
875 to rtx_insn *. These fields are only used from except.c so this
876 type-change should be self-contained to this patch.
878 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
879 local "last" from rtx to rtx_insn *.
880 (dw2_build_landing_pads): Likewise for local "seq".
881 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
882 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
883 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
885 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
887 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
888 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
889 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
890 referring to an insn. Strengthen local "dispatch_label" from
891 rtx to rtx_code_label *.
892 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
894 (expand_eh_return): Strengthen local "around_label" from
895 rtx to rtx_code_label *.
896 (convert_to_eh_region_ranges): Strengthen locals "iter",
897 "last_action_insn", "first_no_action_insn",
898 "first_no_action_insn_before_switch",
899 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
901 2014-08-22 David Malcolm <dmalcolm@redhat.com>
903 * dwarf2out.c (last_var_location_insn): Strengthen this variable
904 from rtx to rtx_insn *.
905 (cached_next_real_insn): Likewise.
906 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
908 (dwarf2out_var_location): Strengthen locals "next_real",
909 "next_note", "expected_next_loc_note", "last_start", "insn" from
912 2014-08-22 David Malcolm <dmalcolm@redhat.com>
914 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
915 from rtx to rtx_insn *.
916 (create_pseudo_cfg): Likewise for local "insn".
918 2014-08-22 David Malcolm <dmalcolm@redhat.com>
920 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
921 from rtx to rtx_insn *.
922 (df_bb_regno_last_def_find): Likewise.
924 * df-problems.c (df_rd_bb_local_compute): Likewise.
925 (df_lr_bb_local_compute): Likewise.
926 (df_live_bb_local_compute): Likewise.
927 (df_chain_remove_problem): Likewise.
928 (df_chain_create_bb): Likewise.
929 (df_word_lr_bb_local_compute): Likewise.
930 (df_remove_dead_eq_notes): Likewise for param "insn".
931 (df_note_bb_compute): Likewise for local "insn".
932 (simulate_backwards_to_point): Likewise.
933 (df_md_bb_local_compute): Likewise.
935 * df-scan.c (df_scan_free_bb_info): Likewise.
936 (df_scan_start_dump): Likewise.
937 (df_scan_start_block): Likewise.
938 (df_install_ref_incremental): Likewise for local "insn".
939 (df_insn_rescan_all): Likewise.
940 (df_reorganize_refs_by_reg_by_insn): Likewise.
941 (df_reorganize_refs_by_insn_bb): Likewise.
942 (df_recompute_luids): Likewise.
943 (df_bb_refs_record): Likewise.
944 (df_update_entry_exit_and_calls): Likewise.
945 (df_bb_verify): Likewise.
947 2014-08-22 David Malcolm <dmalcolm@redhat.com>
949 * ddg.h (struct ddg_node): Strengthen fields "insn" and
950 "first_note" from rtx to rtx_insn *.
951 (get_node_of_insn): Likewise for param 2 "insn".
952 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
954 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
956 (mem_write_insn_p): Likewise.
957 (mem_access_insn_p): Likewise.
958 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
959 (def_has_ccmode_p): Likewise for param "insn".
960 (add_cross_iteration_register_deps): Likewise for locals
961 "def_insn" and "use_insn".
962 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
963 (build_intra_loop_deps): Likewise for local "src_insn".
964 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
966 (get_node_of_insn): Likewise for param "insn".
968 2014-08-22 David Malcolm <dmalcolm@redhat.com>
970 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
971 (deletable_insn_p): Strengthen param "insn" from rtx to
972 rtx_insn *. Add checked cast to rtx_call_insn when invoking
973 find_call_stack_args, since this is guarded by CALL_P (insn).
974 (marked_insn_p): Strengthen param "insn" from rtx to
976 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
977 invoking find_call_stack_args, since this is guarded by
979 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
980 rtx_insn *; we know this is an insn since this was called by
982 (mark_nonreg_stores_2): Likewise.
983 (mark_nonreg_stores): Strengthen param "insn" from rtx to
985 (find_call_stack_args): Strengthen param "call_insn" from rtx to
986 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
988 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
989 from rtx to rtx_insn *.
990 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
992 (delete_unmarked_insns): Likewise for locals "insn", "next".
993 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
994 (mark_reg_dependencies): Likewise for param "insn".
995 (rest_of_handle_ud_dce): Likewise for local "insn".
996 (word_dce_process_block): Likewise.
997 (dce_process_block): Likewise.
999 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1001 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
1002 from rtx to rtx_insn *.
1003 (struct change_cc_mode_args): Likewise for field "insn".
1004 (this_insn): Strengthen from rtx to rtx_insn *.
1005 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
1007 (validate_canon_reg): Strengthen param "insn" from rtx to
1009 (canon_reg): Likewise.
1010 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
1012 (record_jump_equiv): Strengthen param "insn" from rtx to
1014 (try_back_substitute_reg): Likewise, also for locals "prev",
1016 (find_sets_in_insn): Likewise for param "insn".
1017 (canonicalize_insn): Likewise.
1018 (cse_insn): Likewise. Add a checked cast.
1019 (invalidate_from_clobbers): Likewise for param "insn".
1020 (invalidate_from_sets_and_clobbers): Likewise.
1021 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
1023 (cse_prescan_path): Strengthen local "insn" from rtx to
1025 (cse_extended_basic_block): Likewise for locals "insn" and
1027 (cse_main): Likewise for param "f".
1028 (check_for_label_ref): Likewise for local "insn".
1029 (set_live_p): Likewise for second param ("insn").
1030 (insn_live_p): Likewise for first param ("insn") and for local
1032 (cse_change_cc_mode_insn): Likewise for first param "insn".
1033 (cse_change_cc_mode_insns): Likewise for first and second params
1035 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
1037 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
1040 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
1041 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1042 Anna Tikhonova <anna.tikhonova@intel.com>
1043 Ilya Tocar <ilya.tocar@intel.com>
1044 Andrey Turetskiy <andrey.turetskiy@intel.com>
1045 Ilya Verbin <ilya.verbin@intel.com>
1046 Kirill Yukhin <kirill.yukhin@intel.com>
1047 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1049 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
1051 * config/i386/sse.md
1052 (define_mode_iterator VI248_AVX2): Delete.
1053 (define_mode_iterator VI2_AVX2_AVX512BW): New.
1054 (define_mode_iterator VI48_AVX2): Ditto.
1055 (define_insn <shift_insn><mode>3): Delete.
1056 (define_insn "<shift_insn><mode>3<mask_name>" with
1057 VI2_AVX2_AVX512BW): New.
1058 (define_insn "<shift_insn><mode>3<mask_name>" with
1061 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
1062 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1063 Anna Tikhonova <anna.tikhonova@intel.com>
1064 Ilya Tocar <ilya.tocar@intel.com>
1065 Andrey Turetskiy <andrey.turetskiy@intel.com>
1066 Ilya Verbin <ilya.verbin@intel.com>
1067 Kirill Yukhin <kirill.yukhin@intel.com>
1068 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1070 * config/i386/sse.md
1071 (define_mode_iterator VI4F_BRCST32x2): New.
1072 (define_mode_attr 64x2_mode): Ditto.
1073 (define_mode_attr 32x2mode): Ditto.
1074 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
1075 with VI4F_BRCST32x2): Ditto.
1076 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
1077 with V16FI mode iterator): Ditto.
1078 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
1080 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
1081 with VI8F_BRCST64x2): Ditto.
1083 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
1084 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1085 Anna Tikhonova <anna.tikhonova@intel.com>
1086 Ilya Tocar <ilya.tocar@intel.com>
1087 Andrey Turetskiy <andrey.turetskiy@intel.com>
1088 Ilya Verbin <ilya.verbin@intel.com>
1089 Kirill Yukhin <kirill.yukhin@intel.com>
1090 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1092 * config/i386/sse.md
1093 (define_mode_iterator VI8_AVX512VL): New.
1094 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
1096 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
1098 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
1099 (define_mode_iterator V48_AVX512VL): New.
1100 (define_mode_iterator V12_AVX512VL): Ditto.
1101 (define_insn <avx512>_load<mode>_mask): Split into two similar
1102 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
1103 Refactor output template.
1104 (define_insn "<avx512>_store<mode>_mask"): Ditto.
1106 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1108 * cprop.c (struct occr): Strengthen field "insn" from rtx to
1110 (reg_available_p): Likewise for param "insn".
1111 (insert_set_in_table): Likewise.
1112 (hash_scan_set): Likewise.
1113 (hash_scan_insn): Likewise.
1114 (make_set_regs_unavailable): Likewise.
1115 (compute_hash_table_work): Likewise for local "insn".
1116 (reg_not_set_p): Strengthen param "insn" from const_rtx to
1118 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
1119 (try_replace_reg): Likewise.
1120 (find_avail_set): Likewise.
1121 (cprop_jump): Likewise for params "setcc", "jump".
1122 (constprop_register): Likewise for param "insn".
1123 (cprop_insn): Likewise.
1124 (do_local_cprop): Likewise.
1125 (local_cprop_pass): Likewise for local "insn".
1126 (bypass_block): Likewise for params "setcc" and "jump".
1127 (bypass_conditional_jumps): Likewise for locals "setcc" and
1129 (one_cprop_pass): Likewise for local "insn".
1131 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1133 * compare-elim.c (struct comparison_use): Strengthen field "insn"
1134 from rtx to rtx_insn *.
1135 (struct comparison): Likewise, also for field "prev_clobber".
1136 (conforming_compare): Likewise for param "insn".
1137 (arithmetic_flags_clobber_p): Likewise.
1138 (find_flags_uses_in_insn): Likewise.
1139 (find_comparison_dom_walker::before_dom_children): Likewise for
1140 locals "insn", "next", "last_clobber".
1141 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
1143 2014-08-22 David Malcolm <dmalcolm@redhat.com>
1145 * combine-stack-adj.c (struct csa_reflist): Strengthen field
1146 "insn" from rtx to rtx_insn *.
1147 (single_set_for_csa): Likewise for param "insn".
1148 (record_one_stack_ref): Likewise.
1149 (try_apply_stack_adjustment): Likewise.
1150 (struct record_stack_refs_data): Likewise for field "insn".
1151 (maybe_move_args_size_note): Likewise for params "last" and "insn".
1152 (prev_active_insn_bb): Likewise for return type and param "insn".
1153 (next_active_insn_bb): Likewise.
1154 (force_move_args_size_note): Likewise for params "prev" and "last"
1155 and locals "test", "next_candidate", "prev_candidate".
1156 (combine_stack_adjustments_for_block): Strengthen locals
1157 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
1160 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1162 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
1163 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
1164 (subst_insn): Likewise for this variable.
1165 (added_links_insn): Likewise.
1166 (struct insn_link): Likewise for field "insn".
1167 (alloc_insn_link): Likewise for param "insn".
1168 (struct undobuf): Likewise for field "other_insn".
1169 (find_single_use): Likewise for param "insn" and local "next".
1170 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
1171 (delete_noop_moves): Likewise for locals "insn", "next".
1172 (create_log_links): Likewise for locals "insn", "use_insn".
1173 Strengthen local "next_use" from rtx * to rtx_insn **.
1174 (insn_a_feeds_b): Likewise for params "a", "b".
1175 (combine_instructions): Likewise for param "f" and locals "insn",
1176 "next", "prev", "first", "last_combined_insn", "link", "link1",
1177 "temp". Replace use of NULL_RTX with NULL when referring to
1179 (setup_incoming_promotions): Likewise for param "first"
1180 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
1181 (can_combine_p): Likewise for params "insn", "i3", "pred",
1182 "pred2", "succ", "succ2" and for local "p".
1183 (combinable_i3pat): Likewise for param "i3".
1184 (cant_combine_insn_p): Likewise for param "insn".
1185 (likely_spilled_retval_p): Likewise.
1186 (adjust_for_new_dest): Likewise.
1187 (update_cfg_for_uncondjump): Likewise, also for local "insn".
1188 (try_combine): Likewise for return type and for params "i3", "i2",
1189 "i1", "i0", "last_combined_insn", and for locals "insn",
1190 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
1191 "i0_insn". Eliminate local "tem" in favor of new locals
1192 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
1193 checked cast for now to rtx_insn * on the return type of
1194 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
1196 (find_split_point): Strengthen param "insn" from rtx to
1198 (simplify_set): Likewise for local "other_insn".
1199 (recog_for_combine): Likewise for param "insn".
1200 (record_value_for_reg): Likewise.
1201 (record_dead_and_set_regs_1): Likewise for local
1203 (record_dead_and_set_regs): Likewise for param "insn".
1204 (record_promoted_value): Likewise.
1205 (check_promoted_subreg): Likewise.
1206 (get_last_value_validate): Likewise.
1207 (reg_dead_at_p): Likewise.
1208 (move_deaths): Likewise for param "to_insn".
1209 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
1210 and locals "place", "place2", "cc0_setter". Eliminate local "tem
1211 in favor of new locals "tem_note" and "tem_insn", the latter being
1213 (distribute_links): Strengthen locals "place", "insn" from rtx to
1216 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1218 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
1220 (can_delete_label_p): Require a const rtx_code_label * rather than
1222 (delete_insn): Add checked cast to rtx_code_label * when we know
1223 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
1225 (delete_insn_chain): Strengthen locals "prev" and "current" from
1226 rtx to rtx_insn *. Add a checked cast when assigning from
1227 "finish" (strengthening the params will come later). Add a
1228 checked cast to rtx_note * in region where we know
1230 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
1232 (compute_bb_for_insn): Likewise.
1233 (free_bb_for_insn): Likewise for local "insn".
1234 (compute_bb_for_insn): Likewise.
1235 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
1236 local "insn" from rtx to rtx_insn *
1237 (flow_active_insn_p): Require a const rtx_insn * rather than a
1239 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
1241 (can_fallthru): Likewise for locals "insn" and "insn2".
1242 (bb_note): Likewise for local "note".
1243 (first_insn_after_basic_block_note): Likewise for local "note" and
1245 (rtl_split_block): Likewise for locals "insn" and "next".
1246 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
1248 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
1249 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
1251 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
1252 them), "kill_from", "barrier", "new_insn".
1253 (patch_jump_insn): Likewise for params "insn", "old_label".
1254 (redirect_branch_edge): Likewise for locals "old_label", "insn".
1255 (force_nonfallthru_and_redirect): Likewise for locals "insn",
1256 "old_label", "new_label".
1257 (rtl_tidy_fallthru_edge): Likewise for local "q".
1258 (rtl_split_edge): Likewise for locals "before", "last".
1259 (commit_one_edge_insertion): Likewise for locals "before",
1260 "after", "insns", "tmp", "last", adding a checked cast where
1261 currently necessary.
1262 (commit_edge_insertions): Likewise.
1263 (rtl_dump_bb): Likewise for locals "insn", "last".
1264 (print_rtl_with_bb): Likewise for local "x".
1265 (rtl_verify_bb_insns): Likewise for local "x".
1266 (rtl_verify_bb_pointers): Likewise for local "insn".
1267 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
1269 (rtl_verify_fallthru): Likewise for local "insn".
1270 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
1271 (purge_dead_edges): Likewise for local "insn".
1272 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
1273 (skip_insns_after_block): Likewise for return type and for locals
1274 "insn", "last_insn", "next_head", "prev".
1275 (record_effective_endpoints): Likewise for locals "next_insn",
1277 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
1278 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
1279 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
1280 (duplicate_insn_chain): For now, add checked cast from rtx to
1281 rtx_insn * when returning insn.
1282 (cfg_layout_duplicate_bb): Likewise for local "insn".
1283 (cfg_layout_delete_block): Likewise for locals "insn", "next",
1285 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
1286 (rtl_block_empty_p): Likewise.
1287 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
1288 "split_point", "last".
1289 (rtl_block_ends_with_call_p): Likewise for local "insn".
1290 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
1292 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
1293 "split_at_insn" from rtx to rtx_insn *.
1294 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
1295 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
1296 to const rtx_insn *.
1297 (rtl_account_profile_record): Likewise.
1299 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1301 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
1303 (average_num_loop_insns): Likewise.
1304 (init_set_costs): Likewise for local "seq".
1305 (seq_cost): Likewise for param "seq", from const_rtx to const
1308 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1310 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
1313 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1315 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
1316 "f1" and "f2" from rtx * to rtx_insn **.
1317 (flow_find_head_matching_sequence): Likewise.
1319 * cfgcleanup.c (try_simplify_condjump): Strengthen local
1320 "cbranch_insn" from rtx to rtx_insn *.
1321 (thread_jump): Likewise for local "insn".
1322 (try_forward_edges): Likewise for local "last".
1323 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
1324 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
1326 (can_replace_by): Likewise for params "i1", "i2".
1327 (old_insns_match_p): Likewise.
1328 (merge_notes): Likewise.
1329 (walk_to_nondebug_insn): Likewise for param "i1".
1330 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
1331 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
1332 "afterlast1", "afterlast2" from rtx to rtx_insn *.
1333 (flow_find_head_matching_sequence): Strengthen params "f1" and
1334 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
1335 "last1", "last2", "beforelast1", "beforelast2" from rtx to
1337 (outgoing_edges_match): Likewise for locals "last1", "last2".
1338 (try_crossjump_to_edge): Likewise for local "insn".
1339 Replace call to for_each_rtx with for_each_rtx_in_insn.
1341 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
1342 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
1343 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
1344 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
1345 (try_optimize_cfg): Strengthen local "last" from rtx to
1347 (delete_dead_jumptables): Likewise for locals "insn", "next",
1350 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
1351 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
1352 "rtx else_first_tail", to reflect the basic-block.h changes above.
1354 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1356 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
1358 (purge_dead_tablejump_edges): Likewise.
1359 (find_bb_boundaries): Likewise for locals "insn", "end",
1360 "flow_transfer_insn".
1362 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1364 * caller-save.c (save_call_clobbered_regs): Strengthen locals
1365 "ins" and "prev" from rtx to rtx_insn *.
1367 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1369 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
1371 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
1372 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
1374 (load_register_parameters): Likewise for local "before_arg".
1375 (check_sibcall_argument_overlap): Likewise for param "insn".
1376 (expand_call): Likewise for locals "normal_call_insns",
1377 "tail_call_insns", "insns", "before_call", "after_args",
1378 "before_arg", "last", "prev". Strengthen one of the "last" from
1379 rtx to rtx_call_insn *.
1380 (fixup_tail_calls): Strengthen local "insn" from rtx to
1382 (emit_library_call_value_1): Likewise for locals "before_call" and
1385 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1387 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
1388 and "last" from rtx to rtx_insn *.
1389 (expand_builtin_nonlocal_goto): Likewise for local "insn".
1390 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
1392 (expand_errno_check): Strengthen local "lab" from rtx to
1394 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
1396 (expand_builtin_mathfn_2): Likewise.
1397 (expand_builtin_mathfn_ternary): Likewise.
1398 (expand_builtin_mathfn_3): Likewise.
1399 (expand_builtin_interclass_mathfn): Likewise for local "last".
1400 (expand_builtin_int_roundingfn): Likewise for local "insns".
1401 (expand_builtin_int_roundingfn_2): Likewise.
1402 (expand_builtin_strlen): Likewise for local "before_strlen".
1403 (expand_builtin_strncmp): Likewise for local "seq".
1404 (expand_builtin_signbit): Likewise for local "last".
1405 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
1406 from rtx to rtx_code_label *.
1407 (expand_stack_restore): Strengthen local "prev" from rtx to
1410 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1412 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
1414 (struct btr_def_s): Likewise.
1415 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
1417 (add_btr_def): Likewise.
1418 (new_btr_user): Likewise.
1419 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
1421 (link_btr_uses): Likewise.
1422 (move_btr_def): Likewise for locals "insp", "old_insn",
1423 "new_insn". Add checked cast to rtx_insn * for now on result of
1425 (can_move_up): Strengthen param "insn" from const_rtx to
1428 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1430 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
1432 (get_uncond_jump_length): Likewise for locals "label", "jump".
1433 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
1435 (add_labels_and_missing_jumps): Likewise for local "new_jump".
1436 (fix_up_fall_thru_edges): Likewise for local "old_jump".
1437 (find_jump_block): Likewise for local "insn".
1438 (fix_crossing_conditional_branches): Likewise for locals
1439 "old_jump", "new_jump".
1440 (fix_crossing_unconditional_branches): Likewise for locals
1441 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
1442 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
1444 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1446 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
1448 (struct mem_insn): Likewise for field "insn".
1449 (reg_next_use): Strengthen from rtx * to rtx_insn **.
1450 (reg_next_inc_use): Likewise.
1451 (reg_next_def): Likewise.
1452 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
1453 from rtx to rtx_insn *.
1454 (move_insn_before): Likewise for param "next_insn" and local "insns".
1455 (attempt_change): Likewise for local "mov_insn".
1456 (try_merge): Likewise for param "last_insn".
1457 (get_next_ref): Likewise for return type and local "insn".
1458 Strengthen param "next_array" from rtx * to rtx_insn **.
1459 (parse_add_or_inc): Strengthen param "insn" from rtx to
1461 (find_inc): Likewise for locals "insn" and "other_insn" (three of
1463 (merge_in_block): Likewise for locals "insn", "curr",
1465 (pass_inc_dec::execute): Update allocations of the arrays to
1466 reflect the stronger types.
1468 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1470 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
1471 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
1472 from rtx to rtx_code_label *.
1474 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1476 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
1479 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
1481 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
1482 generated a warning and prevented bootstrapping the compiler.
1484 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1486 * rtl.h (delete_related_insns): Strengthen return type from rtx to
1489 * jump.c (delete_related_insns): Likewise, also for locals "next"
1492 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1494 * genautomata.c (output_internal_insn_latency_func): When writing
1495 the function "internal_insn_latency" to insn-automata.c,
1496 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
1497 allowing the optional guard function of (define_bypass) clauses to
1498 expect a pair of rtx_insn *, rather than a pair of rtx.
1499 (output_insn_latency_func): When writing the function
1500 "insn_latency", add an "uncast_" prefix to params "insn" and
1501 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
1502 using checked casts from the params, thus enabling the above
1503 change to the generated "internal_insn_latency" function.
1505 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
1507 PR tree-optimization/62091
1508 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
1509 handle correctly arrays.
1510 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
1512 (record_known_type): Walk into inner type.
1513 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
1514 condition on no type changes.
1516 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1518 * genattrtab.c (write_attr_get): Within the generated get_attr_
1519 functions, rename param "insn" to "uncast_insn" and reintroduce
1520 "insn" as an local rtx_insn * using a checked cast, so that "insn"
1521 is an rtx_insn * within insn-attrtab.c
1523 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1525 * output.h (peephole): Strengthen return type from rtx to
1527 * rtl.h (delete_for_peephole): Likewise for both params.
1528 * genpeep.c (main): In generated "peephole" function, strengthen
1529 return type and local "insn" from rtx to rtx_insn *. For now,
1530 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
1531 rtx_insn *, with a checked cast.
1532 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
1533 locals "insn", "next", "prev" from rtx to rtx_insn *.
1535 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
1537 PR tree-optimization/62112
1538 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
1539 * gimple-iterator.h (gsi_replace): Return bool.
1540 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
1541 moved from ref_may_alias_global_p.
1542 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
1544 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
1545 (stmt_kills_ref_p_1): Rename...
1546 (stmt_kills_ref_p): ... to this.
1547 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
1548 stmt_kills_ref_p): Declare.
1549 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
1550 Move the self-assignment case...
1551 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
1553 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1555 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
1557 * emit-rtl.c (try_split): Likewise, also for locals "before" and
1558 "after". For now, don't strengthen param "trial", which requires
1559 adding checked casts when returning it.
1561 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1563 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
1564 "label" from rtx to rtx_code_label *. Strengthen param 1 of
1565 "var_location" hook from rtx to rtx_insn *.
1566 (debug_nothing_rtx): Delete in favor of...
1567 (debug_nothing_rtx_code_label): New prototype.
1568 (debug_nothing_rtx_rtx): Delete unused prototype.
1569 (debug_nothing_rtx_insn): New prototype.
1571 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
1572 invoking debug_hooks->var_location (in two places, one in a NOTE
1573 case of a switch statement, the other guarded by a CALL_P
1574 conditional. Add checked cast to rtx_code_label * when invoking
1575 debug_hooks->label (within CODE_LABEL case of switch statement).
1577 * dbxout.c (dbx_debug_hooks): Update "label" hook from
1578 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
1579 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
1580 (xcoff_debug_hooks): Likewise.
1581 * debug.c (do_nothing_debug_hooks): Likewise.
1582 (debug_nothing_rtx): Delete in favor of...
1583 (debug_nothing_rtx_insn): New function.
1584 (debug_nothing_rtx_rtx): Delete unused function.
1585 (debug_nothing_rtx_code_label): New function.
1586 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
1587 debug_nothing_rtx to debug_nothing_rtx_code_label.
1588 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
1590 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
1591 debug_nothing_rtx to debug_nothing_rtx_insn.
1592 (sdbout_label): Strengthen param "insn" from rtx to
1594 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
1595 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
1596 "var_location" hook from debug_nothing_rtx to
1597 debug_nothing_rtx_insn.
1599 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1601 * recog.h (insn_output_fn): Update this function typedef to match
1602 the changes below to the generated output functions, strengthening
1603 the 2nd param from rtx to rtx_insn *.
1605 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
1606 insn when invoking an output function, to match the new signature
1607 of insn_output_fn with a stronger second param.
1609 * genconditions.c (write_header): In the generated code for
1610 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
1611 to match the other changes in this patch.
1613 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
1614 the generated "gen_" functions from rtx to rtx_insn * within their
1617 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
1618 the subfunctions within the generated "recog_", "split", "peephole2"
1619 function trees from rtx to rtx_insn *. For now, the top-level
1620 generated functions ("recog", "split", "peephole2") continue to
1621 take a plain rtx for "insn", to avoid introducing dependencies on
1622 other patches. Rename this 2nd param from "insn" to
1623 "uncast_insn", and reintroduce "insn" as a local variable of type
1624 rtx_insn *, initialized at the top of the generated function with
1625 a checked cast on "uncast_insn".
1626 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
1627 the generated "gen_" functions from rtx to rtx_insn * within their
1630 * genoutput.c (process_template): Strengthen the 2nd param within
1631 the generated "output_" functions "insn" from rtx to rtx_insn *.
1633 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
1635 * tree-profile.c (tree_profiling): Skip external functions
1636 when doing coverage instrumentation.
1637 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
1639 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1641 * config/rs6000/altivec.h (vec_cpsgn): New #define.
1642 (vec_mergee): Likewise.
1643 (vec_mergeo): Likewise.
1644 (vec_cntlz): Likewise.
1645 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
1646 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
1647 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
1649 * doc/extend.texi: Document various forms of vec_cpsgn,
1650 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
1651 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
1652 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
1653 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
1654 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
1656 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1658 * config/rs6000/rs6000.c (context.h): New include.
1659 (tree-pass.h): Likewise.
1660 (make_pass_analyze_swaps): New decl.
1661 (rs6000_option_override): Register pass_analyze_swaps.
1662 (swap_web_entry): New subsclass of web_entry_base (df.h).
1663 (special_handling_values): New enum.
1664 (union_defs): New function.
1665 (union_uses): Likewise.
1666 (insn_is_load_p): Likewise.
1667 (insn_is_store_p): Likewise.
1668 (insn_is_swap_p): Likewise.
1669 (rtx_is_swappable_p): Likewise.
1670 (insn_is_swappable_p): Likewise.
1671 (chain_purpose): New enum.
1672 (chain_contains_only_swaps): New function.
1673 (mark_swaps_for_removal): Likewise.
1674 (swap_const_vector_halves): Likewise.
1675 (adjust_subreg_index): Likewise.
1676 (permute_load): Likewise.
1677 (permute_store): Likewise.
1678 (handle_special_swappables): Likewise.
1679 (replace_swap_with_copy): Likewise.
1680 (dump_swap_insn_table): Likewise.
1681 (rs6000_analyze_swaps): Likewise.
1682 (pass_data_analyze_swaps): New pass_data.
1683 (pass_analyze_swaps): New rtl_opt_pass.
1684 (make_pass_analyze_swaps): New function.
1685 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
1687 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1689 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
1690 type from rtx to rtx_insn *.
1691 (create_copy_of_insn_rtx): Likewise.
1692 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
1693 (create_copy_of_insn_rtx): Likewise, also for local "res".
1695 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1697 * rtl.h (find_first_parameter_load): Strengthen return type from
1699 * rtlanal.c (find_first_parameter_load): Strengthen return type
1700 from rtx to rtx_insn *. Add checked cast for now, to postpone
1701 strengthening the params.
1703 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1706 * diagnostic.c: Set default caret.
1707 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
1709 * diagnostic.h (struct diagnostic_context):
1711 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1713 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
1714 (sel_bb_head): Strengthen return type insn_t (currently just an
1716 (sel_bb_end): Likewise.
1718 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
1719 (sel_bb_head): Strengthen return type and local "head" from
1720 insn_t (currently just an rtx) to rtx_insn *.
1721 (sel_bb_end): Likewise for return type.
1722 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
1725 2014-08-21 David Malcolm <dmalcolm@redhat.com>
1727 * basic-block.h (get_last_bb_insn): Strengthen return type from
1729 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
1732 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1735 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
1737 (diagnostic_report_diagnostic): ... from here.
1738 * toplev.c (general_init): Move code to c-family.
1740 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1742 * df.h (web_entry_base): Replace existing struct web_entry with a
1743 new class web_entry_base with only the predecessor member.
1744 (unionfind_root): Remove declaration and move to class member.
1745 (unionfind_union): Remove declaration and move to friend
1747 (union_defs): Remove declaration.
1748 * web.c (web_entry_base::unionfind_root): Modify to be member
1749 function and adjust accessors.
1750 (unionfind_union): Modify to be friend function and adjust
1752 (web_entry): New subclass of web_entry_base containing the reg
1754 (union_match_dups): Modify for struct -> class changes.
1755 (union_defs): Likewise.
1756 (entry_register): Likewise.
1757 (pass_web::execute): Likewise.
1759 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
1761 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
1762 builtin define __VEC_ELEMENT_REG_ORDER__.
1764 2014-08-20 Martin Jambor <mjambor@suse.cz>
1765 Wei Mi <wmi@google.com>
1769 * tree-ssa-operands.c (update_stmt_operands): Remove
1770 MODIFIED_NORETURN_CALLS.
1771 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
1772 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
1773 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
1774 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
1775 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
1776 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
1777 (gimple_call_set_ctrl_altering): New func.
1778 (gimple_call_ctrl_altering_p): Ditto.
1779 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
1780 (make_blocks): Use gimple_call_initialize_ctrl_altering.
1781 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
1782 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
1783 remove MODIFIED_NORETURN_CALLS.
1785 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
1787 * coverage.c (coverage_compute_profile_id): Return non-0;
1788 also handle symbols with unique name.
1789 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
1791 2014-08-20 Steve Ellcey <sellcey@mips.com>
1794 * doc/sourcebuild.texi (non_strict_align): New.
1796 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
1798 * cgraphunit.c (ipa_passes, compile): Reshedule
1799 symtab_remove_unreachable_nodes passes; update comments.
1800 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
1801 TODO_remove_functions before the pass; the functions ought to be
1803 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
1804 TODO_remove_functions.
1805 * passes.c (pass_data_early_local_passes): Do not schedule function
1807 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
1809 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1812 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
1813 before setting the option.
1814 * diagnostic.c (diagnostic_classify_diagnostic): Record
1815 command-line status.
1817 2014-08-20 Richard Biener <rguenther@suse.de>
1820 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
1821 to build uint{16,32,64}_type_node.
1823 2014-08-20 Terry Guo <terry.guo@arm.com>
1825 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
1826 with immediate_operand.
1828 2014-08-20 David Malcolm <dmalcolm@redhat.com>
1830 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
1831 "insn" from an as_a to a safe_as_a, for the case when "insn" is
1834 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1836 PR preprocessor/51303
1837 * incpath.c (remove_duplicates): Use cpp_warning.
1839 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1843 * doc/options.texi (CPP): Document it.
1844 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
1845 * optc-gen.awk: Handle CPP.
1846 * opth-gen.awk: Likewise.
1848 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1850 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
1852 (duplicate_insn_chain): Likewise.
1853 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
1854 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
1855 checked cast for now (until we can strengthen the params in the
1857 (duplicate_insn_chain): Likewise.
1859 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1861 * rtl.h (next_cc0_user): Strengthen return type from rtx to
1863 (prev_cc0_setter): Likewise.
1865 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
1866 rtx_insn *, adding checked casts for now as necessary.
1867 (prev_cc0_setter): Likewise.
1869 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1871 * expr.h (emit_move_insn): Strengthen return type from rtx to
1873 (emit_move_insn_1): Likewise.
1874 (emit_move_complex_push): Likewise.
1875 (emit_move_complex_parts): Likewise.
1877 * expr.c (emit_move_via_integer): Strengthen return type from rtx
1878 to rtx_insn *. Replace use of NULL_RTX with NULL when working
1880 (emit_move_complex_push): Strengthen return type from rtx to
1882 (emit_move_complex): Likewise, also for local "ret".
1883 (emit_move_ccmode): Likewise.
1884 (emit_move_multi_word): Likewise for return type and locals
1886 (emit_move_insn_1): Likewise for return type and locals "result",
1888 (emit_move_insn): Likewise for return type and local "last_insn".
1889 (compress_float_constant): Likewise.
1891 2014-08-19 David Malcolm <dmalcolm@redhat.com>
1893 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
1894 from rtx to rtx_insn *.
1896 * rtl.h (emit_insn_before): Likewise.
1897 (emit_insn_before_noloc): Likewise.
1898 (emit_insn_before_setloc): Likewise.
1899 (emit_jump_insn_before): Likewise.
1900 (emit_jump_insn_before_noloc): Likewise.
1901 (emit_jump_insn_before_setloc): Likewise.
1902 (emit_call_insn_before): Likewise.
1903 (emit_call_insn_before_noloc): Likewise.
1904 (emit_call_insn_before_setloc): Likewise.
1905 (emit_debug_insn_before): Likewise.
1906 (emit_debug_insn_before_noloc): Likewise.
1907 (emit_debug_insn_before_setloc): Likewise.
1908 (emit_label_before): Likewise.
1909 (emit_insn_after): Likewise.
1910 (emit_insn_after_noloc): Likewise.
1911 (emit_insn_after_setloc): Likewise.
1912 (emit_jump_insn_after): Likewise.
1913 (emit_jump_insn_after_noloc): Likewise.
1914 (emit_jump_insn_after_setloc): Likewise.
1915 (emit_call_insn_after): Likewise.
1916 (emit_call_insn_after_noloc): Likewise.
1917 (emit_call_insn_after_setloc): Likewise.
1918 (emit_debug_insn_after): Likewise.
1919 (emit_debug_insn_after_noloc): Likewise.
1920 (emit_debug_insn_after_setloc): Likewise.
1921 (emit_label_after): Likewise.
1922 (emit_insn): Likewise.
1923 (emit_debug_insn): Likewise.
1924 (emit_jump_insn): Likewise.
1925 (emit_call_insn): Likewise.
1926 (emit_label): Likewise.
1927 (gen_clobber): Likewise.
1928 (emit_clobber): Likewise.
1929 (gen_use): Likewise.
1930 (emit_use): Likewise.
1933 (emit_barrier_before): Strengthen return type from rtx to
1935 (emit_barrier_after): Likewise.
1936 (emit_barrier): Likewise.
1938 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
1939 from rtx to rtx_insn *. Add checked casts for now when converting
1940 "last" from rtx to rtx_insn *.
1941 (emit_insn_before_noloc): Likewise for return type.
1942 (emit_jump_insn_before_noloc): Likewise.
1943 (emit_call_insn_before_noloc): Likewise.
1944 (emit_debug_insn_before_noloc): Likewise.
1945 (emit_barrier_before): Strengthen return type and local "insn"
1946 from rtx to rtx_barrier *.
1947 (emit_label_before): Strengthen return type from rtx to
1948 rtx_insn *. Add checked cast for now when returning param
1949 (emit_pattern_after_noloc): Strengthen return type from rtx to
1950 rtx_insn *. Add checked casts for now when converting "last" from
1952 (emit_insn_after_noloc): Strengthen return type from rtx to
1954 (emit_jump_insn_after_noloc): Likewise.
1955 (emit_call_insn_after_noloc): Likewise.
1956 (emit_debug_insn_after_noloc): Likewise.
1957 (emit_barrier_after): Strengthen return type from rtx to
1959 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
1960 Add checked cast for now when converting "label" from rtx to
1962 (emit_pattern_after_setloc): Strengthen return type from rtx to
1963 rtx_insn *. Add checked casts for now when converting "last" from
1965 (emit_pattern_after): Strengthen return type from rtx to
1967 (emit_insn_after_setloc): Likewise.
1968 (emit_insn_after): Likewise.
1969 (emit_jump_insn_after_setloc): Likewise.
1970 (emit_jump_insn_after): Likewise.
1971 (emit_call_insn_after_setloc): Likewise.
1972 (emit_call_insn_after): Likewise.
1973 (emit_debug_insn_after_setloc): Likewise.
1974 (emit_debug_insn_after): Likewise.
1975 (emit_pattern_before_setloc): Likewise. Add checked casts for now
1976 when converting "last" from rtx to rtx_insn *.
1977 (emit_pattern_before): Strengthen return type from rtx to
1979 (emit_insn_before_setloc): Likewise.
1980 (emit_insn_before): Likewise.
1981 (emit_jump_insn_before_setloc): Likewise.
1982 (emit_jump_insn_before): Likewise.
1983 (emit_call_insn_before_setloc): Likewise.
1984 (emit_call_insn_before): Likewise.
1985 (emit_debug_insn_before_setloc): Likewise.
1986 (emit_debug_insn_before): Likewise.
1987 (emit_insn): Strengthen return type and locals "last", "insn",
1988 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
1989 within cases where we know we have an insn.
1990 (emit_debug_insn): Likewise.
1991 (emit_jump_insn): Likewise.
1992 (emit_call_insn): Strengthen return type and local "insn" from rtx
1994 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
1995 a checked cast to rtx_insn * for now on "label".
1996 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
1997 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
1998 (emit_use): Likewise.
1999 (gen_use): Likewise, also for local "seq".
2000 (emit): Likewise for return type and local "insn".
2001 (rtx_insn): Likewise for return type and local "new_rtx".
2003 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
2004 from rtx to rtx_barrier *.
2006 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
2007 changed return type from rtx to rtx_insn *, we must update
2008 "emit_fn" type, and this in turn means updating...
2009 (frame_insn): ...this. Strengthen return type from rtx to
2010 rtx_insn *. Introduce a new local "insn" of the appropriate type.
2012 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2014 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
2015 rtx to rtx_jump_table_data *. Also for local.
2016 * rtl.h (emit_jump_table_data): Likewise.
2018 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2020 * basic-block.h (create_basic_block_structure): Strengthen third
2021 param "bb_note" from rtx to rtx_note *.
2022 * rtl.h (emit_note_before): Strengthen return type from rtx to
2024 (emit_note_after): Likewise.
2025 (emit_note): Likewise.
2026 (emit_note_copy): Likewise. Also, strengthen param similarly.
2027 * function.h (struct rtl_data): Strengthen field
2028 "x_stack_check_probe_note" from rtx to rtx_note *.
2030 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
2031 from rtx to rtx_note *.
2032 * cfgrtl.c (create_basic_block_structure): Strengthen third param
2033 "bb_note" from rtx to rtx_note *.
2034 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
2035 when calling emit_note_copy.
2036 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
2038 (emit_note_after): Likewise.
2039 (emit_note_before): Likewise.
2040 (emit_note_copy): Likewise. Also, strengthen param similarly.
2041 (emit_note): Likewise.
2042 * except.c (emit_note_eh_region_end): Likewise for return type.
2043 Strengthen local "next" from rtx to rtx_insn *.
2044 (convert_to_eh_region_ranges): Strengthen local "note"
2045 from rtx to rtx_note *.
2046 * final.c (change_scope): Likewise.
2047 (reemit_insn_block_notes): Likewise, for both locals named "note".
2048 Also, strengthen local "insn" from rtx to rtx_insn *.
2049 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
2051 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
2052 strengthen local "seq" from rtx to rtx_insn *.
2053 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
2055 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
2057 (get_bb_note_from_pool): Strengthen return type from rtx to
2059 (sel_create_basic_block): Strengthen local "new_bb_note" from
2060 insn_t to rtx_note *.
2061 * var-tracking.c (emit_note_insn_var_location): Strengthen local
2062 "note" from rtx to rtx_note *.
2063 (emit_notes_in_bb): Likewise.
2065 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2067 * function.h (struct rtl_data): Strengthen field
2068 "x_parm_birth_insn" from rtx to rtx_insn *.
2069 * function.c (struct assign_parm_data_all): Strengthen fields
2070 "first_conversion_insn" and "last_conversion_insn" from rtx to
2073 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2075 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
2076 to rtx_insn *; also for local "var_end_seq".
2077 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
2078 (maybe_cleanup_end_of_block): Likewise for param "last" and local
2080 (expand_gimple_cond): Likewise for locals "last2" and "last".
2081 (mark_transaction_restart_calls): Likewise for local "insn".
2082 (expand_gimple_stmt): Likewise for return type and locals "last"
2084 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
2085 (avoid_complex_debug_insns): Likewise for param "insn".
2086 (expand_debug_locations): Likewise for locals "insn", "last",
2087 "prev_insn" and "insn2".
2088 (expand_gimple_basic_block): Likewise for local "last".
2089 (construct_exit_block): Likewise for locals "head", "end",
2091 (pass_expand::execute): Likewise for locals "var_seq",
2092 "var_ret_seq", "next".
2094 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2096 * asan.h (asan_emit_stack_protection): Strengthen return type from
2098 * asan.c (asan_emit_stack_protection): Likewise. Add local
2099 "insns" to hold the return value.
2101 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2103 * basic-block.h (bb_note): Strengthen return type from rtx to
2105 * sched-int.h (bb_note): Likewise.
2106 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
2108 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2110 * rtl.h (make_insn_raw): Strengthen return type from rtx to
2113 * emit-rtl.c (make_insn_raw): Strengthen return type and local
2114 "insn" from rtx to rtx_insn *.
2115 (make_debug_insn_raw): Strengthen return type from rtx to
2116 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
2117 (make_jump_insn_raw): Strengthen return type from rtx to
2118 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
2119 (make_call_insn_raw): Strengthen return type from rtx to
2120 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
2121 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
2122 callback from rtx to rtx_insn *; likewise for local "insn" and
2123 "next", adding a checked cast to rtx_insn in the relevant cases of
2124 the switch statement.
2125 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
2126 callback from rtx to rtx_insn *.
2127 (emit_pattern_after_setloc): Likewise.
2128 (emit_pattern_after): Likewise.
2129 (emit_pattern_before_setloc): Likewise.
2130 (emit_pattern_before): Likewise.
2132 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2134 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
2136 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
2137 accepting an rtx_insn *.
2138 (last_call_insn): Strengthen return type from rtx to
2141 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2143 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
2144 "insns" from rtx to rtx_insn *.
2145 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
2146 locals "insn" and "prev".
2148 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2150 * rtl.h (tablejump_p): Strengthen third param from rtx * to
2151 rtx_jump_table_data **.
2153 * cfgbuild.c (make_edges): Introduce local "table", using it in
2154 place of "tmp" for jump table data.
2155 (find_bb_boundaries): Strengthen local "table" from rtx to
2156 rtx_jump_table_data *.
2157 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
2158 (outgoing_edges_match): Likewise for locals "table1" and "table2".
2159 (try_crossjump_to_edge): Likewise.
2160 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
2162 (patch_jump_insn): Introduce local "table", using it in place of
2163 "tmp" for jump table data.
2164 (force_nonfallthru_and_redirect): Introduce local "table", so that
2165 call to tablejump_p can receive an rtx_jump_table_data **. Update
2166 logic around the call to overwrite "note" appropriately if
2167 tablejump_p returns non-zero.
2168 (get_last_bb_insn): Introduce local "table", using it in place of
2169 "tmp" for jump table data.
2170 * dwarf2cfi.c (create_trace_edges): Likewise.
2172 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
2173 from rtx to rtx_jump_table_data *.
2174 (create_fix_barrier): Strengthen local "tmp" from rtx to
2175 rtx_jump_table_data *.
2176 (arm_reorg): Likewise for local "table".
2178 * config/s390/s390.c (s390_chunkify_start): Likewise.
2180 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
2182 * jump.c (delete_related_insns): Strengthen local "lab_next" from
2183 rtx to rtx_jump_table_data *.
2185 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
2186 rtx_jump_table_data **. Add a checked cast when writing through
2187 the pointer: we know there that local "table" is non-NULL and that
2188 JUMP_TABLE_DATA_P (table) holds.
2189 (label_is_jump_target_p): Introduce local "table", using it in
2190 place of "tmp" for jump table data.
2192 2014-08-19 Marek Polacek <polacek@redhat.com>
2195 * doc/invoke.texi: Document -Wbool-compare.
2197 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2199 * rtl.h (entry_of_function): Strengthen return type from rtx to
2201 * cfgrtl.c (entry_of_function): Likewise.
2203 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2205 * emit-rtl.h (get_insns): Strengthen return type from rtx to
2206 rtx_insn *, adding a checked cast for now.
2207 (get_last_insn): Likewise.
2209 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2211 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
2214 * emit-rtl.c (gen_label_rtx): Likewise.
2216 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2218 * rtl.h (previous_insn): Strengthen return type from rtx to
2220 (next_insn): Likewise.
2221 (prev_nonnote_insn): Likewise.
2222 (prev_nonnote_insn_bb): Likewise.
2223 (next_nonnote_insn): Likewise.
2224 (next_nonnote_insn_bb): Likewise.
2225 (prev_nondebug_insn): Likewise.
2226 (next_nondebug_insn): Likewise.
2227 (prev_nonnote_nondebug_insn): Likewise.
2228 (next_nonnote_nondebug_insn): Likewise.
2229 (prev_real_insn): Likewise.
2230 (next_real_insn): Likewise.
2231 (prev_active_insn): Likewise.
2232 (next_active_insn): Likewise.
2234 * emit-rtl.c (next_insn): Strengthen return type from rtx to
2235 rtx_insn *, adding a checked cast.
2236 (previous_insn): Likewise.
2237 (next_nonnote_insn): Likewise.
2238 (next_nonnote_insn_bb): Likewise.
2239 (prev_nonnote_insn): Likewise.
2240 (prev_nonnote_insn_bb): Likewise.
2241 (next_nondebug_insn): Likewise.
2242 (prev_nondebug_insn): Likewise.
2243 (next_nonnote_nondebug_insn): Likewise.
2244 (prev_nonnote_nondebug_insn): Likewise.
2245 (next_real_insn): Likewise.
2246 (prev_real_insn): Likewise.
2247 (next_active_insn): Likewise.
2248 (prev_active_insn): Likewise.
2250 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
2251 param "stepfunc" so that it returns an rtx_insn * rather than an
2252 rtx, to track the change to prev_nonnote_insn_bb, which is the
2253 only function this is called with.
2254 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
2256 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
2258 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
2261 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2263 * coretypes.h (class rtx_debug_insn): Add forward declaration.
2264 (class rtx_nonjump_insn): Likewise.
2265 (class rtx_jump_insn): Likewise.
2266 (class rtx_call_insn): Likewise.
2267 (class rtx_jump_table_data): Likewise.
2268 (class rtx_barrier): Likewise.
2269 (class rtx_code_label): Likewise.
2270 (class rtx_note): Likewise.
2272 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
2273 adding the invariant DEBUG_INSN_P (X).
2274 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
2275 the invariant NONJUMP_INSN_P (X).
2276 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
2277 the invariant JUMP_P (X).
2278 (class rtx_call_insn): New, a subclass of rtx_insn, adding
2279 the invariant CALL_P (X).
2280 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
2281 invariant JUMP_TABLE_DATA_P (X).
2282 (class rtx_barrier): New, a subclass of rtx_insn, adding the
2283 invariant BARRIER_P (X).
2284 (class rtx_code_label): New, a subclass of rtx_insn, adding
2285 the invariant LABEL_P (X).
2286 (class rtx_note): New, a subclass of rtx_insn, adding
2287 the invariant NOTE_P(X).
2288 (is_a_helper <rtx_debug_insn *>::test): New.
2289 (is_a_helper <rtx_nonjump_insn *>::test): New.
2290 (is_a_helper <rtx_jump_insn *>::test): New.
2291 (is_a_helper <rtx_call_insn *>::test): New.
2292 (is_a_helper <rtx_jump_table_data *>::test): New functions,
2293 overloaded for both rtx and rtx_insn *.
2294 (is_a_helper <rtx_barrier *>::test): New.
2295 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
2296 for both rtx and rtx_insn *.
2297 (is_a_helper <rtx_note *>::test): New.
2299 2014-08-19 Marek Polacek <polacek@redhat.com>
2301 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
2302 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
2303 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
2304 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
2306 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2308 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
2309 rtx_insn *. To help with transition, for now, convert from an
2310 access macro into a pair of functions: BND_TO, returning an
2312 (SET_BND_TO): New function, for use where BND_TO is used as an
2315 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
2317 (BND_TO): New function, adding a checked cast.
2318 (SET_BND_TO): New function.
2320 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
2322 (compute_av_set_on_boundaries): Likewise.
2324 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
2326 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
2327 destination if it is used in source.
2328 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
2329 (*popcount<mode>2_falsedep_1): Likewise.
2331 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
2334 * configure.ac: Set install_gold_as_default to no first.
2335 * configure: Regenerated.
2337 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2339 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
2340 "note_list" field will eventually be an rtx_insn *. To help with
2341 transition, for now, convert from an access macro into a pair of
2342 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
2343 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
2346 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
2347 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
2349 * sel-sched-ir.c (init_bb): Likewise.
2350 (sel_restore_notes): Likewise.
2351 (move_bb_info): Likewise.
2352 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
2353 (SET_BB_NOTE_LIST): New function.
2355 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2357 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
2358 field will eventually be an rtx_insn *. To help with transition,
2359 for now, convert from an access macro into a pair of functions:
2360 VINSN_INSN_RTX, returning an rtx_insn *, and...
2361 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
2362 is used as an lvalue.
2364 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
2365 SET_VINSN_INSN_RTX where it's used as an lvalue.
2366 (VINSN_INSN_RTX): New function.
2367 (SET_VINSN_INSN_RTX): New function.
2369 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2371 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
2372 eventually be rtx_insn *, but to help with transition, for now,
2373 convert from an access macro into a pair of functions: DEP_PRO
2374 returning an rtx_insn * and...
2375 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
2376 lvalue, returning an rtx&.
2377 (DEP_CON): Analogous changes to DEP_PRO above.
2378 (SET_DEP_CON): Likewise.
2380 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
2381 an lvalue to SET_DEP_CON.
2382 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
2383 (sd_copy_back_deps): Likewise for DEP_CON.
2384 (DEP_PRO): New function, adding a checked cast for now.
2385 (DEP_CON): Likewise.
2386 (SET_DEP_PRO): New function.
2387 (SET_DEP_CON): Likewise.
2389 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
2391 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
2392 (extra_options): Add i386/cygwin.opt.
2393 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
2394 (CPP_SPEC): Accept -pthread.
2396 (GOMP_SELF_SPECS): Update comment.
2397 * config/i386/cygwin.opt: New file for -pthread flag.
2399 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2401 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
2402 * df.h (DF_REF_INSN): Convert from a macro to a function, so
2403 that we can return an rtx_insn *.
2405 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
2407 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
2408 when building executables, not DLLs. Add --large-address-aware
2409 under the same conditions.
2410 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
2411 when building executables, not DLLs. Add --large-address-aware
2412 under the same conditions when using -m32.
2414 * config/i386/cygwin-stdint.h: Throughout, make type
2415 definitions dependent on target architecture, not host.
2417 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2419 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
2420 the return type from rtx to rtx_insn *, which will enable various
2421 conversions in followup patches. For now this is is done by a
2423 (NEXT_INSN): Likewise.
2424 (SET_PREV_INSN): Convert to an inline function. This is intended
2425 for use as an lvalue, and so returns an rtx& to allow in-place
2427 (SET_NEXT_INSN): Likewise.
2429 2014-07-08 Mark Wielaard <mjw@redhat.com>
2432 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
2434 2014-08-19 Marek Polacek <polacek@redhat.com>
2437 * cgraphunit.c (handle_alias_pairs): Fix condition.
2439 2014-08-19 Richard Biener <rguenther@suse.de>
2441 * gimple-fold.c (fold_gimple_assign): Properly build a
2442 null-pointer constant when devirtualizing addresses.
2444 2014-07-07 Mark Wielaard <mjw@redhat.com>
2446 * dwarf2out.c (decl_quals): New function.
2447 (modified_type_die): Take one cv_quals argument instead of two,
2448 one for const and one for volatile.
2449 (add_type_attribute): Likewise.
2450 (generic_parameter_die): Call add_type_attribute with one modifier
2452 (base_type_for_mode): Likewise.
2453 (add_bounds_info): Likewise.
2454 (add_subscript_info): Likewise.
2455 (gen_array_type_die): Likewise.
2456 (gen_descr_array_type_die): Likewise.
2457 (gen_entry_point_die): Likewise.
2458 (gen_enumeration_type_die): Likewise.
2459 (gen_formal_parameter_die): Likewise.
2460 (gen_subprogram_die): Likewise.
2461 (gen_variable_die): Likewise.
2462 (gen_const_die): Likewise.
2463 (gen_field_die): Likewise.
2464 (gen_pointer_type_die): Likewise.
2465 (gen_reference_type_die): Likewise.
2466 (gen_ptr_to_mbr_type_die): Likewise.
2467 (gen_inheritance_die): Likewise.
2468 (gen_subroutine_type_die): Likewise.
2469 (gen_typedef_die): Likewise.
2470 (force_type_die): Likewise.
2472 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2474 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
2476 * configure: Regenerate.
2478 2014-08-19 Richard Biener <rguenther@suse.de>
2480 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
2481 DECL_EXTERNALs in BLOCKs as non-references.
2482 * tree-streamer-out.c (streamer_write_chain): Likewise.
2484 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
2485 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2486 Anna Tikhonova <anna.tikhonova@intel.com>
2487 Ilya Tocar <ilya.tocar@intel.com>
2488 Andrey Turetskiy <andrey.turetskiy@intel.com>
2489 Ilya Verbin <ilya.verbin@intel.com>
2490 Kirill Yukhin <kirill.yukhin@intel.com>
2491 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2493 * config/i386/sse.md
2494 (define_mode_iterator VI48_AVX512F): Delete.
2495 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
2496 (define_mode_iterator VI2_AVX512VL): Ditto.
2497 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
2500 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
2502 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
2503 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
2504 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
2505 with VI48_AVX512F_AVX512VL): New.
2506 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
2507 with VI2_AVX512VL): Ditto.
2509 2014-08-19 Marek Polacek <polacek@redhat.com>
2511 * doc/invoke.texi: Document -Wc99-c11-compat.
2513 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2515 * rtl.h (PREV_INSN): Split macro in two: the existing one,
2517 (SET_PREV_INSN): New macro, for use as an lvalue.
2518 (NEXT_INSN, SET_NEXT_INSN): Likewise.
2520 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
2521 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
2522 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
2523 (fixup_abnormal_edges): Likewise.
2524 (unlink_insn_chain): Likewise.
2525 (fixup_reorder_chain): Likewise.
2526 (cfg_layout_delete_block): Likewise.
2527 (cfg_layout_merge_blocks): Likewise.
2528 * combine.c (update_cfg_for_uncondjump): Likewise.
2529 * emit-rtl.c (link_insn_into_chain): Likewise.
2530 (remove_insn): Likewise.
2531 (delete_insns_since): Likewise.
2532 (reorder_insns_nobb): Likewise.
2533 (emit_insn_after_1): Likewise.
2534 * final.c (rest_of_clean_state): Likewise.
2535 (final_scan_insn): Likewise.
2536 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
2537 * haifa-sched.c (concat_note_lists): Likewise.
2538 (remove_notes): Likewise.
2539 (restore_other_notes): Likewise.
2540 (move_insn): Likewise.
2541 (unlink_bb_notes): Likewise.
2542 (restore_bb_notes): Likewise.
2543 * jump.c (delete_for_peephole): Likewise.
2544 * optabs.c (emit_libcall_block_1): Likewise.
2545 * reorg.c (emit_delay_sequence): Likewise.
2546 (fill_simple_delay_slots): Likewise.
2547 * sel-sched-ir.c (sel_move_insn): Likewise.
2548 (sel_remove_insn): Likewise.
2549 (get_bb_note_from_pool): Likewise.
2550 * sel-sched.c (move_nop_to_previous_block): Likewise.
2552 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
2553 * config/c6x/c6x.c (gen_one_bundle): Likewise.
2554 (c6x_gen_bundles): Likewise.
2555 (hwloop_optimize): Likewise.
2556 * config/frv/frv.c (frv_function_prologue): Likewise.
2557 (frv_register_nop): Likewise.
2558 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
2559 (ia64_reorg): Likewise.
2560 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
2561 (mep_make_bundle): Likewise.
2562 (mep_bundle_insns): Likewise.
2563 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
2564 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
2565 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
2567 2014-08-19 David Malcolm <dmalcolm@redhat.com>
2569 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
2570 return type from rtx to rtx_insn *.
2572 (BB_HEADER): Likewise.
2573 (BB_FOOTER): Likewise.
2574 (SET_BB_HEAD): Convert to a function.
2575 (SET_BB_END): Likewise.
2576 (SET_BB_HEADER): Likewise.
2577 (SET_BB_FOOTER): Likewise.
2579 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
2580 Strengthen the return type from rtx to rtx_insn *. For now, this
2581 is done by adding a checked cast, but this will eventually
2582 become a field lookup.
2584 (BB_HEADER): Likewise.
2585 (BB_FOOTER): Likewise.
2586 (SET_BB_HEAD): New function, from macro of same name. This is
2587 intended for use as an lvalue, and so returns an rtx& to allow
2588 in-place modification.
2589 (SET_BB_END): Likewise.
2590 (SET_BB_HEADER): Likewise.
2591 (SET_BB_FOOTER): Likewise.
2593 2014-08-18 David Malcolm <dmalcolm@redhat.com>
2595 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
2597 (SET_BB_HEAD): New macro, for use as a lvalue.
2598 (BB_END, SET_BB_END): Likewise.
2599 (BB_HEADER, SET_BB_HEADER): Likewise.
2600 (BB_FOOTER, SET_BB_FOOTER): Likewise.
2602 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
2603 of BB_* macros into SET_BB_* macros.
2604 (fix_crossing_unconditional_branches): Likewise.
2605 * caller-save.c (save_call_clobbered_regs): Likewise.
2606 (insert_one_insn): Likewise.
2607 * cfgbuild.c (find_bb_boundaries): Likewise.
2608 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
2609 (outgoing_edges_match): Likewise.
2610 (try_optimize_cfg): Likewise.
2611 * cfgexpand.c (expand_gimple_cond): Likewise.
2612 (expand_gimple_tailcall): Likewise.
2613 (expand_gimple_basic_block): Likewise.
2614 (construct_exit_block): Likewise.
2615 * cfgrtl.c (delete_insn): Likewise.
2616 (create_basic_block_structure): Likewise.
2617 (rtl_delete_block): Likewise.
2618 (rtl_split_block): Likewise.
2619 (emit_nop_for_unique_locus_between): Likewise.
2620 (rtl_merge_blocks): Likewise.
2621 (block_label): Likewise.
2622 (try_redirect_by_replacing_jump): Likewise.
2623 (emit_barrier_after_bb): Likewise.
2624 (fixup_abnormal_edges): Likewise.
2625 (record_effective_endpoints): Likewise.
2626 (relink_block_chain): Likewise.
2627 (fixup_reorder_chain): Likewise.
2628 (fixup_fallthru_exit_predecessor): Likewise.
2629 (cfg_layout_duplicate_bb): Likewise.
2630 (cfg_layout_split_block): Likewise.
2631 (cfg_layout_delete_block): Likewise.
2632 (cfg_layout_merge_blocks): Likewise.
2633 * combine.c (update_cfg_for_uncondjump): Likewise.
2634 * emit-rtl.c (add_insn_after): Likewise.
2635 (remove_insn): Likewise.
2636 (reorder_insns): Likewise.
2637 (emit_insn_after_1): Likewise.
2638 * haifa-sched.c (get_ebb_head_tail): Likewise.
2639 (restore_other_notes): Likewise.
2640 (move_insn): Likewise.
2641 (sched_extend_bb): Likewise.
2642 (fix_jump_move): Likewise.
2643 * ifcvt.c (noce_process_if_block): Likewise.
2644 (dead_or_predicable): Likewise.
2645 * ira.c (update_equiv_regs): Likewise.
2646 * reg-stack.c (change_stack): Likewise.
2647 * sel-sched-ir.c (sel_move_insn): Likewise.
2648 * sel-sched.c (move_nop_to_previous_block): Likewise.
2650 * config/c6x/c6x.c (hwloop_optimize): Likewise.
2651 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
2653 2014-08-18 David Malcolm <dmalcolm@redhat.com>
2655 * rtl.h (for_each_rtx_in_insn): New function.
2656 * rtlanal.c (for_each_rtx_in_insn): Likewise.
2658 2014-08-18 David Malcolm <dmalcolm@redhat.com>
2660 * coretypes.h (class rtx_insn): Add forward declaration.
2662 * rtl.h: Include is-a.h.
2663 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
2664 workaround to ensure gengtype knows inheritance is occurring,
2665 whilst continuing to use the pre-existing special-casing for
2667 (class rtx_insn): New subclass of rtx_def, adding the
2668 invariant that we're dealing with something we can sanely use
2669 INSN_UID, NEXT_INSN, PREV_INSN on.
2670 (is_a_helper <rtx_insn *>::test): New.
2671 (is_a_helper <const rtx_insn *>::test): New.
2673 2014-08-18 David Malcolm <dmalcolm@redhat.com>
2675 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
2677 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
2679 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
2682 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
2684 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
2685 to BUILT_IN_UNREACHABLE.
2687 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
2690 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
2692 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
2693 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
2694 (ffs<mode>2): Do not expand with tzcnt for
2695 TARGET_AVOID_FALSE_DEP_FOR_BMI.
2696 (ffssi2_no_cmove): Ditto.
2697 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
2698 (ctz<mode>2): New expander.
2699 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
2700 (*ctz<mode>2_falsedep): New insn.
2701 (*ctz<mode>2): Rename from ctz<mode>2.
2702 (clz<mode>2_lzcnt): New expander.
2703 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
2704 (*clz<mode>2_lzcnt_falsedep): New insn.
2705 (*clz<mode>2): Rename from ctz<mode>2.
2706 (popcount<mode>2): New expander.
2707 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
2708 (*popcount<mode>2_falsedep): New insn.
2709 (*popcount<mode>2): Rename from ctz<mode>2.
2710 (*popcount<mode>2_cmp): Remove.
2711 (*popcountsi2_cmp_zext): Ditto.
2713 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
2715 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
2716 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
2717 * config/microblaze/microblaze.h
2718 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
2720 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
2723 * configure.ac: Set install_gold_as_default to no for
2725 * configure: Regenerated.
2727 2014-08-18 Roman Gareev <gareevroman@gmail.com>
2729 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
2730 * config.in: Add undef of HAVE_isl.
2731 * configure: Regenerate.
2732 * configure.ac: Add definition of HAVE_isl.
2733 * graphite-blocking.c: Add checking of HAVE_isl.
2734 * graphite-dependences.c: Likewise.
2735 * graphite-interchange.c: Likewise.
2736 * graphite-isl-ast-to-gimple.c: Likewise.
2737 * graphite-optimize-isl.c: Likewise.
2738 * graphite-poly.c: Likewise.
2739 * graphite-scop-detection.c: Likewise.
2740 * graphite-sese-to-poly.c: Likewise.
2741 * graphite.c: Likewise.
2742 * toplev.c: Replace the checking of HAVE_cloog with the checking
2745 2014-08-18 Richard Biener <rguenther@suse.de>
2747 PR tree-optimization/62090
2748 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
2749 (fold_builtin_3): Do not fold snprintf.
2750 (fold_builtin_4): Likewise.
2751 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
2752 moved from builtins.c.
2753 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
2754 (gimple_fold_builtin): Do not fold sprintf here.
2756 2014-08-18 Richard Biener <rguenther@suse.de>
2758 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
2760 (maybe_canonicalize_mem_ref_addr): ... this function.
2761 (fold_stmt_1): Apply it here before all simplification.
2763 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
2766 * cgraph.h (cgraph_node::create_indirect_edge): Add
2767 compute_indirect_info param.
2768 * cgraph.c (cgraph_node::create_indirect_edge): Compute
2769 indirect_info only when it is required.
2770 * cgraphclones.c (cgraph_clone_edge): Do not recompute
2771 indirect_info fore cloned indirect edge.
2773 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2774 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2775 Anna Tikhonova <anna.tikhonova@intel.com>
2776 Ilya Tocar <ilya.tocar@intel.com>
2777 Andrey Turetskiy <andrey.turetskiy@intel.com>
2778 Ilya Verbin <ilya.verbin@intel.com>
2779 Kirill Yukhin <kirill.yukhin@intel.com>
2780 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2782 * config/i386/sse.md
2783 (define_mode_iterator VI8_AVX2_AVX512BW): New.
2784 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
2786 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2787 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2788 Anna Tikhonova <anna.tikhonova@intel.com>
2789 Ilya Tocar <ilya.tocar@intel.com>
2790 Andrey Turetskiy <andrey.turetskiy@intel.com>
2791 Ilya Verbin <ilya.verbin@intel.com>
2792 Kirill Yukhin <kirill.yukhin@intel.com>
2793 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2795 * config/i386/sse.md
2796 (define_mode_iterator VF1_AVX512VL): New.
2797 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
2798 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
2801 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2802 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2803 Anna Tikhonova <anna.tikhonova@intel.com>
2804 Ilya Tocar <ilya.tocar@intel.com>
2805 Andrey Turetskiy <andrey.turetskiy@intel.com>
2806 Ilya Verbin <ilya.verbin@intel.com>
2807 Kirill Yukhin <kirill.yukhin@intel.com>
2808 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2810 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
2811 * config/i386/i386.md
2812 (define_code_iterator any_float): New.
2813 (define_code_attr floatsuffix): New.
2814 * config/i386/sse.md
2815 (define_mode_iterator VF1_128_256VL): New.
2816 (define_mode_iterator VF2_512_256VL): New.
2817 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
2819 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
2820 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
2822 (define_mode_attr qq2pssuff): New.
2823 (define_mode_attr sselongvecmode): New.
2824 (define_mode_attr sselongvecmodelower): New.
2825 (define_mode_attr sseintvecmode3): New.
2826 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
2828 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
2829 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
2830 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
2831 (define_insn "ufloatv2siv2df2<mask_name>"): New.
2833 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2834 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2835 Anna Tikhonova <anna.tikhonova@intel.com>
2836 Ilya Tocar <ilya.tocar@intel.com>
2837 Andrey Turetskiy <andrey.turetskiy@intel.com>
2838 Ilya Verbin <ilya.verbin@intel.com>
2839 Kirill Yukhin <kirill.yukhin@intel.com>
2840 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2842 * config/i386/sse.md
2843 (define_mode_iterator VF2_AVX512VL): New.
2844 (define_mode_attr sseintvecmode2): New.
2845 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
2846 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
2847 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
2849 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
2851 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
2853 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
2856 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2857 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2858 Anna Tikhonova <anna.tikhonova@intel.com>
2859 Ilya Tocar <ilya.tocar@intel.com>
2860 Andrey Turetskiy <andrey.turetskiy@intel.com>
2861 Ilya Verbin <ilya.verbin@intel.com>
2862 Kirill Yukhin <kirill.yukhin@intel.com>
2863 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2865 * config/i386/i386.md
2866 (define_insn "*movoi_internal_avx"): Add evex version.
2867 (define_insn "*movti_internal"): Ditto.
2869 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2870 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2871 Anna Tikhonova <anna.tikhonova@intel.com>
2872 Ilya Tocar <ilya.tocar@intel.com>
2873 Andrey Turetskiy <andrey.turetskiy@intel.com>
2874 Ilya Verbin <ilya.verbin@intel.com>
2875 Kirill Yukhin <kirill.yukhin@intel.com>
2876 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2878 * config/i386/i386.md
2879 (define_attr "isa"): Add avx512dq, noavx512dq.
2880 (define_attr "enabled"): Ditto.
2881 * config/i386/sse.md
2882 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
2884 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
2885 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2886 Anna Tikhonova <anna.tikhonova@intel.com>
2887 Ilya Tocar <ilya.tocar@intel.com>
2888 Andrey Turetskiy <andrey.turetskiy@intel.com>
2889 Ilya Verbin <ilya.verbin@intel.com>
2890 Kirill Yukhin <kirill.yukhin@intel.com>
2891 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2893 * config/i386/i386.c
2894 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
2895 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
2896 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
2897 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
2898 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
2899 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
2900 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
2901 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
2902 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
2903 * config/i386/sse.md
2904 (define_mode_iterator VMOVE): Allow V4TI mode.
2905 (define_mode_iterator V_AVX512VL): New.
2906 (define_mode_iterator V): New handling for AVX512VL.
2907 (define_insn "avx512f_load<mode>_mask"): Delete.
2908 (define_insn "<avx512>_load<mode>_mask"): New.
2909 (define_insn "avx512f_store<mode>_mask"): Delete.
2910 (define_insn "<avx512>_store<mode>_mask"): New.
2913 2014-08-18 Yury Gribov <y.gribov@samsung.com>
2916 * asan.c (instrument_derefs): Fix bitfield check.
2918 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
2920 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
2921 * config/rs6000/htm.md (ttest): Remove clobber.
2922 * config/rs6000/predicates.md (any_mask_operand): New predicate.
2923 (and_operand): Reformat.
2924 (and_2rld_operand): New predicate.
2925 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
2927 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
2928 parameter. Handle AND directly.
2929 (rs6000_split_logical_di): Remove last parameter.
2930 (rs6000_split_logical): Remove last parameter. Remove obsolete
2932 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
2933 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
2934 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
2935 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
2936 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
2937 and 5 anonymous splitters): Delete.
2938 (and<mode>3): New expander.
2939 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
2940 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
2941 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
2942 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
2943 (floatdisf2_internal1): Remove clobbers.
2944 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
2945 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
2946 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
2947 (and<mode>3 for BOOL_128): Remove clobber.
2948 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
2949 rs6000_split_logical.
2950 (*bool<mode>3_internal for BOOL_128): Adjust call of
2951 rs6000_split_logical.
2952 (*boolc<mode>3_internal1 for BOOL_128,
2953 *boolc<mode>3_internal2 for BOOL_128,
2954 *boolcc<mode>3_internal1 for BOOL_128,
2955 *boolcc<mode>3_internal2 for BOOL_128,
2956 *eqv<mode>3_internal1 for BOOL_128,
2957 *eqv<mode>3_internal2 for BOOL_128,
2958 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
2959 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
2961 (*vec_reload_and_reg_<mptrsize>): Delete.
2963 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
2965 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
2966 and split, *boolccsi3_internal3 and split): Delete.
2967 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
2968 *boolccdi3_internal3 and split): Delete.
2969 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
2970 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
2972 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
2974 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
2975 and split, *boolcsi3_internal3 and split): Delete.
2976 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
2977 *boolcdi3_internal3 and split): Delete.
2978 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
2980 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
2982 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
2983 <'u'>: Also support printing the low-order 16 bits.
2984 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
2985 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
2986 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
2987 *booldi3_internal3 and split): Delete.
2988 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
2989 *bool<mode>3_dot2): New.
2990 (two anonymous define_splits for non_logical_cint_operand): Merge.
2992 2014-08-17 Marek Polacek <polacek@redhat.com>
2993 Manuel López-Ibáñez <manu@gcc.gnu.org>
2996 * diagnostic.c (adjust_line): Add gcc_checking_assert.
2997 (diagnostic_show_locus): Don't print caret diagnostic
2998 if a column is larger than the line_width.
3000 2014-08-17 Roman Gareev <gareevroman@gmail.com>
3002 * common.opt: Make the ISL AST generator to be the main code generator
3005 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
3007 * wide-int.h (generic_wide_int): Declare as class instead of struct.
3009 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
3012 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
3014 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
3015 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
3016 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
3018 * config/pa/pa.md (begin_brtab): Delete insn.
3019 (end_brtab): Likewise.
3021 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3023 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
3025 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
3027 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
3028 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
3029 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
3030 (get_dynamic_type): Remove.
3031 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
3032 (clear_speculation): Bring to ipa-deivrt.h
3033 (get_class_context): Rename to ...
3034 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
3035 (contains_type_p): Update.
3036 (get_dynamic_type): Rename to ...
3037 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
3038 (possible_polymorphic_call_targets): UPdate.
3039 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
3040 * ipa-prop.c (ipa_analyze_call_uses): Update.
3042 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
3044 * doc/invoke.texi (SH options): Document missing processor variant
3045 options. Remove references to Hitachi. Undocument deprecated mspace
3048 2014-08-15 Jason Merrill <jason@redhat.com>
3050 * tree.c (type_hash_canon): Uncomment assert.
3052 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3054 * input.h (in_system_header_at): Add comment.
3056 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3059 * diagnostic.c (build_message_string): Make it extern.
3060 * diagnostic.h (build_message_string): Make it extern.
3062 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
3064 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
3065 load/store from/to non-floating class pseudo.
3067 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3069 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
3071 2014-08-15 Richard Biener <rguenther@suse.de>
3073 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
3074 (get_constraint_for_ssa_var): Remove dead code.
3075 (get_constraint_for_1): Adjust.
3076 (find_what_var_points_to): Likewise.
3077 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
3079 2014-08-15 Ilya Tocar <tocarip@gmail.com>
3082 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
3083 (_mm512_mask_cmpge_epu32_mask): Ditto.
3084 (_mm512_cmpge_epu32_mask): Ditto.
3085 (_mm512_mask_cmpge_epi64_mask): Ditto.
3086 (_mm512_cmpge_epi64_mask): Ditto.
3087 (_mm512_mask_cmpge_epu64_mask): Ditto.
3088 (_mm512_cmpge_epu64_mask): Ditto.
3089 (_mm512_mask_cmple_epi32_mask): Ditto.
3090 (_mm512_cmple_epi32_mask): Ditto.
3091 (_mm512_mask_cmple_epu32_mask): Ditto.
3092 (_mm512_cmple_epu32_mask): Ditto.
3093 (_mm512_mask_cmple_epi64_mask): Ditto.
3094 (_mm512_cmple_epi64_mask): Ditto.
3095 (_mm512_mask_cmple_epu64_mask): Ditto.
3096 (_mm512_cmple_epu64_mask): Ditto.
3097 (_mm512_mask_cmplt_epi32_mask): Ditto.
3098 (_mm512_cmplt_epi32_mask): Ditto.
3099 (_mm512_mask_cmplt_epu32_mask): Ditto.
3100 (_mm512_cmplt_epu32_mask): Ditto.
3101 (_mm512_mask_cmplt_epi64_mask): Ditto.
3102 (_mm512_cmplt_epi64_mask): Ditto.
3103 (_mm512_mask_cmplt_epu64_mask): Ditto.
3104 (_mm512_cmplt_epu64_mask): Ditto.
3105 (_mm512_mask_cmpneq_epi32_mask): Ditto.
3106 (_mm512_mask_cmpneq_epu32_mask): Ditto.
3107 (_mm512_cmpneq_epu32_mask): Ditto.
3108 (_mm512_mask_cmpneq_epi64_mask): Ditto.
3109 (_mm512_cmpneq_epi64_mask): Ditto.
3110 (_mm512_mask_cmpneq_epu64_mask): Ditto.
3111 (_mm512_cmpneq_epu64_mask): Ditto.
3112 (_mm512_castpd_ps): Ditto.
3113 (_mm512_castpd_si512): Ditto.
3114 (_mm512_castps_pd): Ditto.
3115 (_mm512_castps_si512): Ditto.
3116 (_mm512_castsi512_ps): Ditto.
3117 (_mm512_castsi512_pd): Ditto.
3118 (_mm512_castpd512_pd128): Ditto.
3119 (_mm512_castps512_ps128): Ditto.
3120 (_mm512_castsi512_si128): Ditto.
3121 (_mm512_castpd512_pd256): Ditto.
3122 (_mm512_castps512_ps256): Ditto.
3123 (_mm512_castsi512_si256): Ditto.
3124 (_mm512_castpd128_pd512): Ditto.
3125 (_mm512_castps128_ps512): Ditto.
3126 (_mm512_castsi128_si512): Ditto.
3127 (_mm512_castpd256_pd512): Ditto.
3128 (_mm512_castps256_ps512): Ditto.
3129 (_mm512_castsi256_si512): Ditto.
3130 (_mm512_cmpeq_epu32_mask): Ditto.
3131 (_mm512_mask_cmpeq_epu32_mask): Ditto.
3132 (_mm512_mask_cmpeq_epu64_mask): Ditto.
3133 (_mm512_cmpeq_epu64_mask): Ditto.
3134 (_mm512_cmpgt_epu32_mask): Ditto.
3135 (_mm512_mask_cmpgt_epu32_mask): Ditto.
3136 (_mm512_mask_cmpgt_epu64_mask): Ditto.
3137 (_mm512_cmpgt_epu64_mask): Ditto.
3138 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
3139 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
3140 * config/i386/i386.c (enum ix86_builtins): Add
3141 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
3142 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
3143 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
3144 (bdesc_args): Add __builtin_ia32_si512_256si,
3145 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
3146 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
3147 __builtin_ia32_pd512_pd.
3148 (ix86_expand_args_builtin): Handle new FTYPEs.
3149 * config/i386/sse.md (castmode): Add 512-bit modes.
3150 (AVX512MODE2P): New.
3151 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
3152 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
3154 2014-08-15 Richard Biener <rguenther@suse.de>
3156 * fold-const.c (tree_swap_operands_p): Put all constants
3157 last, also strip sign-changing NOPs when considering further
3158 canonicalization. Canonicalize also when optimizing for size.
3160 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3162 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
3163 one_match > zero_match case to just before simple_sequence.
3165 2014-08-15 Richard Biener <rguenther@suse.de>
3167 * data-streamer.h (streamer_string_index, string_for_index):
3169 * data-streamer-out.c (streamer_string_index): Make static.
3170 * data-streamer-in.c (string_for_index): Likewise.
3171 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
3172 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
3174 2014-08-15 Richard Biener <rguenther@suse.de>
3176 PR tree-optimization/62031
3177 * tree-data-ref.c (dr_analyze_indices): Do not set
3178 DR_UNCONSTRAINED_BASE.
3179 (dr_may_alias_p): All indirect accesses have to go the
3180 formerly DR_UNCONSTRAINED_BASE path.
3181 * tree-data-ref.h (struct indices): Remove
3182 unconstrained_base member.
3183 (DR_UNCONSTRAINED_BASE): Remove.
3185 2014-08-15 Jakub Jelinek <jakub@redhat.com>
3188 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
3189 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
3190 in OMP_CLAUSE_MAP in some outer target region.
3192 2014-08-15 Bin Cheng <bin.cheng@arm.com>
3194 * tree-ssa-loop-ivopts.c (ivopts_data): New field
3195 name_expansion_cache.
3196 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
3197 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
3198 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
3199 (difference_cannot_overflow_p): New parameter. Use affine
3200 expansion for equality check.
3201 (iv_elimination_compare_lt): Pass new argument.
3203 2014-08-14 DJ Delorie <dj@redhat.com>
3205 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
3206 variables to the accumulator.
3208 * config/rl78/predicates.md (rl78_near_mem_operand): New.
3209 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
3210 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
3213 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
3214 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
3215 (umulqihi3_virt): Likewise.
3216 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
3217 (umulqihi3_real): Likewise.
3219 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
3221 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
3223 PR tree-optimization/62091
3224 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
3225 function_entry_reached.
3226 (walk_aliased_vdefs): Clear it here.
3227 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
3229 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
3231 * ipa-utils.h (compare_virtual_tables): Declare.
3232 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
3234 2014-08-14 Marek Polacek <polacek@redhat.com>
3237 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
3238 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
3240 2014-08-14 Tom de Vries <tom@codesourcery.com>
3242 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
3244 2014-08-14 Tom de Vries <tom@codesourcery.com>
3246 PR rtl-optimization/62004
3247 PR rtl-optimization/62030
3248 * ifcvt.c (rtx_interchangeable_p): New function.
3249 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
3250 * emit-rtl.h (mem_attrs_eq_p): Declare.
3252 2014-08-14 Roman Gareev <gareevroman@gmail.com>
3254 * graphite-scop-detection.c:
3255 Add inclusion of cp-tree.h.
3256 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
3257 in case they are pointers to object types
3259 2014-08-14 Richard Biener <rguenther@suse.de>
3261 * BASE-VER: Change to 5.0.0
3263 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
3264 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3265 Anna Tikhonova <anna.tikhonova@intel.com>
3266 Ilya Tocar <ilya.tocar@intel.com>
3267 Andrey Turetskiy <andrey.turetskiy@intel.com>
3268 Ilya Verbin <ilya.verbin@intel.com>
3269 Kirill Yukhin <kirill.yukhin@intel.com>
3270 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3272 * config/i386/sse.md (define_mode_attr avx512): New.
3273 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
3275 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
3276 (define_mode_attr ssse3_avx2): Ditto.
3277 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
3278 (define_mode_attr avx2_avx512bw): New.
3279 (define_mode_attr ssedoublemodelower): New.
3280 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
3282 (define_mode_attr ssebytemode): Allow V8DI modes.
3283 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
3284 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
3285 (define_mode_attr ssePSmode2): New.
3286 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
3288 (define_mode_attr dbpsadbwmode): New.
3289 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
3290 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
3291 (vi8_sse4_1_avx2_avx512): New.
3292 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
3294 (define_mode_attr blendbits): Move before its immediate use.
3296 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
3297 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3298 Anna Tikhonova <anna.tikhonova@intel.com>
3299 Ilya Tocar <ilya.tocar@intel.com>
3300 Andrey Turetskiy <andrey.turetskiy@intel.com>
3301 Ilya Verbin <ilya.verbin@intel.com>
3302 Kirill Yukhin <kirill.yukhin@intel.com>
3303 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3305 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
3306 * config/i386/subst.md
3307 (define_mode_iterator SUBST_V): Update.
3308 (define_mode_iterator SUBST_A): Ditto.
3309 (define_subst_attr "mask_operand7"): New.
3310 (define_subst_attr "mask_operand10"): New.
3311 (define_subst_attr "mask_operand_arg34") : New.
3312 (define_subst_attr "mask_expand_op3"): New.
3313 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
3314 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
3315 (define_subst_attr "mask_avx512vl_condition"): New.
3316 (define_subst_attr "round_mask_operand4"): Ditto.
3317 (define_subst_attr "round_mask_scalar_op3"): Delete.
3318 (define_subst_attr "round_mask_op4"): New.
3319 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
3321 (define_subst_attr "round_modev8sf_condition"): New.
3322 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
3324 (define_subst_attr "round_saeonly_mask_operand4"): New.
3325 (define_subst_attr "round_saeonly_mask_op4"): New.
3326 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
3327 V8DImode, V16SImode.
3328 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
3329 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
3330 (define_subst_attr "mask_expand4_args"): New.
3331 (define_subst "mask_expand4"): New.
3333 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
3334 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3335 Anna Tikhonova <anna.tikhonova@intel.com>
3336 Ilya Tocar <ilya.tocar@intel.com>
3337 Andrey Turetskiy <andrey.turetskiy@intel.com>
3338 Ilya Verbin <ilya.verbin@intel.com>
3339 Kirill Yukhin <kirill.yukhin@intel.com>
3340 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3342 * config/i386/i386.md
3343 (define_attr "isa"): Add avx512bw,noavx512bw.
3344 (define_attr "enabled"): Ditto.
3345 (define_split): Add 32/64-bit mask logic.
3346 (define_insn "*k<logic>qi"): New.
3347 (define_insn "*k<logic>hi"): New.
3348 (define_insn "*anddi_1"): Add mask version.
3349 (define_insn "*andsi_1"): Ditto.
3350 (define_insn "*<code><mode>_1"): Ditto.
3351 (define_insn "*<code>hi_1"): Ditto.
3352 (define_insn "kxnor<mode>"): New.
3353 (define_insn "kunpcksi"): New.
3354 (define_insn "kunpckdi"): New.
3355 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
3356 (define_insn "*one_cmplhi2_1"): Ditto.
3358 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
3359 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3360 Anna Tikhonova <anna.tikhonova@intel.com>
3361 Ilya Tocar <ilya.tocar@intel.com>
3362 Andrey Turetskiy <andrey.turetskiy@intel.com>
3363 Ilya Verbin <ilya.verbin@intel.com>
3364 Kirill Yukhin <kirill.yukhin@intel.com>
3365 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3367 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
3370 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
3371 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3372 Anna Tikhonova <anna.tikhonova@intel.com>
3373 Ilya Tocar <ilya.tocar@intel.com>
3374 Andrey Turetskiy <andrey.turetskiy@intel.com>
3375 Ilya Verbin <ilya.verbin@intel.com>
3376 Kirill Yukhin <kirill.yukhin@intel.com>
3377 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3379 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
3381 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
3382 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
3383 xmm/ymm16+ when availble.
3384 * config/i386/i386.h
3385 (HARD_REGNO_NREGS): Add mask regs.
3386 (VALID_AVX512F_REG_MODE): Ditto.
3387 (VALID_AVX512F_REG_MODE) : Define.
3388 (VALID_MASK_AVX512BW_MODE): Ditto.
3389 (reg_class) (MASK_REG_P(X)): Define.
3390 * config/i386/i386.md: Do not split long moves with mask register,
3391 use kmovb if avx512bw is availible.
3392 (movdi_internal): Handle mask registers.
3394 2014-08-14 Richard Biener <rguenther@suse.de>
3396 PR tree-optimization/62081
3397 * tree-ssa-loop.c (pass_fix_loops): New pass.
3398 (pass_tree_loop::gate): Do not fixup loops here.
3399 * tree-pass.h (make_pass_fix_loops): Declare.
3400 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
3402 2014-08-14 Richard Biener <rguenther@suse.de>
3404 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
3405 (type_hash_canon): ... this and avoid 2nd lookup for the add.
3407 2014-08-14 Richard Biener <rguenther@suse.de>
3409 PR tree-optimization/62090
3410 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
3411 (fold_builtin_2): Do not fold sprintf.
3412 (fold_builtin_3): Likewise.
3413 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
3414 moved from builtins.c.
3415 (gimple_fold_builtin): Fold sprintf.
3417 2014-08-14 Richard Biener <rguenther@suse.de>
3419 PR rtl-optimization/62079
3420 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
3423 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
3425 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
3426 current_function_decl.
3428 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
3430 * cgraph.c (cgraph_node::function_symbol): Fix wrong
3431 cgraph_function_node to cgraph_node::function_symbol
3434 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
3436 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
3437 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
3439 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
3441 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
3444 2014-08-13 Roman Gareev <gareevroman@gmail.com>
3446 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
3449 2014-08-12 Jakub Jelinek <jakub@redhat.com>
3452 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
3453 any registers that are used in mem_insn.
3455 2014-08-12 Steve Ellcey <sellcey@mips.com>
3457 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
3459 2014-08-12 Steve Ellcey <sellcey@mips.com>
3461 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
3462 (MULTILIB_DIRNAMES): Ditto.
3463 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
3464 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
3465 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
3466 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
3467 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
3468 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
3470 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3473 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
3474 of __ARM_SIZEOF_WCHAR_T.
3476 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3479 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
3480 Remove unnecessary attributes.
3482 2014-08-12 Yury Gribov <y.gribov@samsung.com>
3484 * internal-fn.c (init_internal_fns): Fix off-by-one.
3486 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
3487 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3488 Anna Tikhonova <anna.tikhonova@intel.com>
3489 Ilya Tocar <ilya.tocar@intel.com>
3490 Andrey Turetskiy <andrey.turetskiy@intel.com>
3491 Ilya Verbin <ilya.verbin@intel.com>
3492 Kirill Yukhin <kirill.yukhin@intel.com>
3493 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3495 * config/i386/i386.c (standard_sse_constant_opcode): Use
3496 vpxord/vpternlog if avx512 is availible.
3498 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
3501 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
3502 bitfields, that is when size doesn't match the size of type or the
3503 size of the constructor.
3505 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3507 * config/rs6000/constraints.md (wh constraint): New constraint,
3508 for FP registers if direct move is available.
3509 (wi constraint): New constraint, for VSX/FP registers that can
3510 handle 64-bit integers.
3511 (wj constraint): New constraint for VSX/FP registers that can
3512 handle 64-bit integers for direct moves.
3513 (wk constraint): New constraint for VSX/FP registers that can
3514 handle 64-bit doubles for direct moves.
3515 (wy constraint): Make documentation match implementation.
3517 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
3518 scalar_in_vmx_p field to simplify tests of whether SFmode or
3519 DFmode can go in the Altivec registers.
3520 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
3521 (rs6000_setup_reg_addr_masks): Likewise.
3522 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
3523 field, and wh/wi/wj/wk constraints.
3524 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
3525 the wh/wi/wj/wk constraints.
3526 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
3527 upper registers, prefer VSX registers unless the operation is a
3528 memory operation with REG+OFFSET addressing.
3530 * config/rs6000/vsx.md (VSr mode attribute): Add support for
3531 DImode. Change SFmode to use ww constraint instead of d to allow
3532 SF registers in the upper registers.
3535 (VSr5): Fix thinko in comment.
3536 (VSa): New mode attribute that is an alternative to wa, that
3537 returns the VSX register class that a mode can go in, but may not
3538 be the preferred register class.
3539 (VS_64dm): New mode attribute for appropriate register classes for
3540 referencing 64-bit elements of vectors for direct moves and normal
3542 (VS_64reg): Likewise.
3543 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
3544 register allocator to only registers the data type can handle.
3545 (vsx_le_perm_load_<mode>): Likewise.
3546 (vsx_le_perm_store_<mode>): Likewise.
3547 (vsx_xxpermdi2_le_<mode>): Likewise.
3548 (vsx_xxpermdi4_le_<mode>): Likewise.
3549 (vsx_lxvd2x2_le_<mode>): Likewise.
3550 (vsx_lxvd2x4_le_<mode>): Likewise.
3551 (vsx_stxvd2x2_le_<mode>): Likewise.
3552 (vsx_add<mode>3): Likewise.
3553 (vsx_sub<mode>3): Likewise.
3554 (vsx_mul<mode>3): Likewise.
3555 (vsx_div<mode>3): Likewise.
3556 (vsx_tdiv<mode>3_internal): Likewise.
3557 (vsx_fre<mode>2): Likewise.
3558 (vsx_neg<mode>2): Likewise.
3559 (vsx_abs<mode>2): Likewise.
3560 (vsx_nabs<mode>2): Likewise.
3561 (vsx_smax<mode>3): Likewise.
3562 (vsx_smin<mode>3): Likewise.
3563 (vsx_sqrt<mode>2): Likewise.
3564 (vsx_rsqrte<mode>2): Likewise.
3565 (vsx_tsqrt<mode>2_internal): Likewise.
3566 (vsx_fms<mode>4): Likewise.
3567 (vsx_nfma<mode>4): Likewise.
3568 (vsx_eq<mode>): Likewise.
3569 (vsx_gt<mode>): Likewise.
3570 (vsx_ge<mode>): Likewise.
3571 (vsx_eq<mode>_p): Likewise.
3572 (vsx_gt<mode>_p): Likewise.
3573 (vsx_ge<mode>_p): Likewise.
3574 (vsx_xxsel<mode>): Likewise.
3575 (vsx_xxsel<mode>_uns): Likewise.
3576 (vsx_copysign<mode>3): Likewise.
3577 (vsx_float<VSi><mode>2): Likewise.
3578 (vsx_floatuns<VSi><mode>2): Likewise.
3579 (vsx_fix_trunc<mode><VSi>2): Likewise.
3580 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
3581 (vsx_x<VSv>r<VSs>i): Likewise.
3582 (vsx_x<VSv>r<VSs>ic): Likewise.
3583 (vsx_btrunc<mode>2): Likewise.
3584 (vsx_b2trunc<mode>2): Likewise.
3585 (vsx_floor<mode>2): Likewise.
3586 (vsx_ceil<mode>2): Likewise.
3587 (vsx_<VS_spdp_insn>): Likewise.
3588 (vsx_xscvspdp): Likewise.
3589 (vsx_xvcvspuxds): Likewise.
3590 (vsx_float_fix_<mode>2): Likewise.
3591 (vsx_set_<mode>): Likewise.
3592 (vsx_extract_<mode>_internal1): Likewise.
3593 (vsx_extract_<mode>_internal2): Likewise.
3594 (vsx_extract_<mode>_load): Likewise.
3595 (vsx_extract_<mode>_store): Likewise.
3596 (vsx_splat_<mode>): Likewise.
3597 (vsx_xxspltw_<mode>): Likewise.
3598 (vsx_xxspltw_<mode>_direct): Likewise.
3599 (vsx_xxmrghw_<mode>): Likewise.
3600 (vsx_xxmrglw_<mode>): Likewise.
3601 (vsx_xxsldwi_<mode>): Likewise.
3602 (vsx_xscvdpspn): Tighten constraints to only use register classes
3604 (vsx_xscvspdpn): Likewise.
3605 (vsx_xscvdpspn_scalar): Likewise.
3607 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
3608 wj, and wk constraints.
3609 (GPR_REG_CLASS_P): New helper macro for register classes targeting
3610 general purpose registers.
3612 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
3614 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
3615 DImode instead of wm. Use wk constraint for direct move of DFmode
3617 (extendsidi2_lfiwax): Likewise.
3620 (movdi_internal64): Likewise.
3622 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
3623 wk constraints. Make the wy constraint documentation match them
3626 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
3628 Replacement of isl_int by isl_val
3629 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
3630 (compute_bounds_for_param): use isl_val instead of isl_int
3631 (compute_bounds_for_loop): likewise
3632 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
3633 (build_linearized_memory_access): use isl_val instead of isl_int
3634 (pdr_stride_in_loop): likewise
3635 * graphite-optimize-isl.c:
3636 (getPrevectorMap): use isl_val instead of isl_int
3638 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
3639 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
3640 (extern the_isl_ctx): declare
3641 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
3642 (extract_affine_gmp): likewise
3644 (build_loop_iteration_domains): likewise
3645 (add_param_constraints): likewise
3647 2014-08-11 Richard Biener <rguenther@suse.de>
3649 PR tree-optimization/62075
3650 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
3651 handle uses in patterns.
3653 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
3654 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3655 Anna Tikhonova <anna.tikhonova@intel.com>
3656 Ilya Tocar <ilya.tocar@intel.com>
3657 Andrey Turetskiy <andrey.turetskiy@intel.com>
3658 Ilya Verbin <ilya.verbin@intel.com>
3659 Kirill Yukhin <kirill.yukhin@intel.com>
3660 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3662 * common/config/i386/i386-common.c
3663 (OPTION_MASK_ISA_AVX512VL_SET): Define.
3664 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
3665 (ix86_handle_option): Handle OPT_mavx512vl.
3666 * config/i386/cpuid.h (bit_AVX512VL): Define.
3667 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
3668 set -mavx512vl accordingly.
3669 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3670 OPTION_MASK_ISA_AVX512VL.
3671 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
3672 (ix86_option_override_internal): Define PTA_AVX512VL, handle
3673 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
3674 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
3675 * config/i386/i386.h (TARGET_AVX512VL): Define.
3676 (TARGET_AVX512VL_P(x)): Ditto.
3677 * config/i386/i386.opt: Add mavx512vl.
3679 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
3681 PR tree-optimization/62073
3682 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
3685 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
3686 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3687 Anna Tikhonova <anna.tikhonova@intel.com>
3688 Ilya Tocar <ilya.tocar@intel.com>
3689 Andrey Turetskiy <andrey.turetskiy@intel.com>
3690 Ilya Verbin <ilya.verbin@intel.com>
3691 Kirill Yukhin <kirill.yukhin@intel.com>
3692 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3694 * common/config/i386/i386-common.c
3695 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
3696 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
3697 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
3698 (ix86_handle_option): Handle OPT_mavx512bw.
3699 * config/i386/cpuid.h (bit_AVX512BW): Define.
3700 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
3701 set -mavx512bw accordingly.
3702 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3703 OPTION_MASK_ISA_AVX512BW.
3704 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
3705 (ix86_option_override_internal): Define PTA_AVX512BW, handle
3706 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
3707 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
3708 * config/i386/i386.h (TARGET_AVX512BW): Define.
3709 (TARGET_AVX512BW_P(x)): Ditto.
3710 * config/i386/i386.opt: Add mavx512bw.
3712 2014-08-11 Richard Biener <rguenther@suse.de>
3714 PR tree-optimization/62070
3715 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
3716 Remove SSA checking.
3718 2014-08-11 Yury Gribov <y.gribov@samsung.com>
3720 * asan.c (asan_check_flags): New enum.
3721 (build_check_stmt_with_calls): Removed function.
3722 (build_check_stmt): Split inlining logic to
3723 asan_expand_check_ifn.
3724 (instrument_derefs): Rename parameter.
3725 (instrument_mem_region_access): Rename parameter.
3726 (instrument_strlen_call): Likewise.
3727 (asan_expand_check_ifn): New function.
3728 (asan_instrument): Remove old code.
3729 (pass_sanopt::execute): Change handling of
3730 asan-instrumentation-with-call-threshold.
3731 (asan_clear_shadow): Fix formatting.
3732 (asan_function_start): Likewise.
3733 (asan_emit_stack_protection): Likewise.
3734 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
3736 * internal-fn.c (expand_ASAN_CHECK): New function.
3737 * internal-fn.def (ASAN_CHECK): New internal function.
3738 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
3740 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
3741 * tree.c: Small comment fix.
3743 2014-08-11 Yury Gribov <y.gribov@samsung.com>
3745 * gimple.c (gimple_call_fnspec): Support internal functions.
3746 (gimple_call_return_flags): Use const.
3747 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
3748 * internal-fn.def: Add fnspec information.
3749 * internal-fn.h (internal_fn_fnspec): New function.
3750 (init_internal_fns): Declare new function.
3751 * internal-fn.c (internal_fn_fnspec_array): New global variable.
3752 (init_internal_fns): New function.
3753 * tree-core.h: Update macro call.
3754 * tree.c (build_common_builtin_nodes): Initialize internal fns.
3756 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
3758 * lto-streamer.h (struct output_block::symbol): Change from
3759 struct symtab_node to plain symtab_node.
3760 (referenced_from_this_partition_p): Change first parameter
3761 from struct symtab_node to plain symtab_node.
3763 2014-08-10 Marek Polacek <polacek@redhat.com>
3766 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
3768 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
3770 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
3771 DECL correctly; do not give up on types in static storage.
3773 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
3775 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
3777 2014-08-09 Roman Gareev <gareevroman@gmail.com>
3779 * graphite-isl-ast-to-gimple.c:
3780 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
3782 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
3784 2014-08-08 Guozhi Wei <carrot@google.com>
3786 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
3788 2014-08-08 Cary Coutant <ccoutant@google.com>
3790 * dwarf2out.c (get_skeleton_type_unit): Remove.
3791 (output_skeleton_debug_sections): Remove skeleton type units.
3792 (output_comdat_type_unit): Likewise.
3793 (dwarf2out_finish): Likewise.
3795 2014-08-07 Yi Yang <ahyangyi@google.com>
3797 * predict.c (expr_expected_value_1): Remove the redundant assignment.
3799 2014-08-08 Richard Biener <rguenther@suse.de>
3801 * lto-streamer.h (struct lto_input_block): Make it a class
3803 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
3804 (struct lto_function_header, struct lto_simple_header,
3805 struct lto_simple_header_with_strings,
3806 struct lto_decl_header, struct lto_function_header): Make
3807 a simple inheritance hieararchy. Remove unused fields.
3808 (struct lto_asm_header): Remove.
3809 * lto-streamer-out.c (produce_asm): Adjust.
3810 (lto_output_toplevel_asms): Likewise.
3811 (produce_asm_for_decls): Likewise.
3812 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
3813 * data-streamer-in.c (string_for_index): Likewise.
3814 * ipa-inline-analysis.c (inline_read_section): Likewise.
3815 * ipa-prop.c (ipa_prop_read_section): Likewise.
3816 (read_replacements_section): Likewise.
3817 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
3818 * lto-section-in.c (lto_create_simple_input_block): Likewise.
3819 (lto_destroy_simple_input_block): Likewise.
3820 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
3821 (lto_input_toplevel_asms): Likewise.
3823 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
3824 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3825 Anna Tikhonova <anna.tikhonova@intel.com>
3826 Ilya Tocar <ilya.tocar@intel.com>
3827 Andrey Turetskiy <andrey.turetskiy@intel.com>
3828 Ilya Verbin <ilya.verbin@intel.com>
3829 Kirill Yukhin <kirill.yukhin@intel.com>
3830 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3832 * common/config/i386/i386-common.c
3833 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
3834 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
3835 (ix86_handle_option): Handle OPT_mavx512dq.
3836 * config/i386/cpuid.h (bit_AVX512DQ): Define.
3837 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
3838 set -mavx512dq accordingly.
3839 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3840 OPTION_MASK_ISA_AVX512DQ.
3841 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
3842 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
3843 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
3844 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
3845 * config/i386/i386.h (TARGET_AVX512DQ): Define.
3846 (TARGET_AVX512DQ_P(x)): Ditto.
3847 * config/i386/i386.opt: Add mavx512dq.
3849 2014-08-08 Richard Biener <rguenther@suse.de>
3851 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
3852 target_percent, target_percent_s): Export.
3853 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
3854 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
3855 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
3856 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
3857 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
3858 Move to gimple-fold.c.
3859 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
3861 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
3862 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
3863 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
3864 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
3865 (rewrite_call_expr_array): Remove.
3866 (fold_builtin_sprintf_chk): Likewise.
3867 (fold_builtin_snprintf_chk): Likewise.
3868 (fold_builtin_varargs): Remove handling of sprintf_chk,
3869 vsprintf_chk, snprintf_chk and vsnprintf_chk.
3870 (gimple_fold_builtin_sprintf_chk): Remove.
3871 (gimple_fold_builtin_snprintf_chk): Likewise.
3872 (gimple_fold_builtin_varargs): Likewise.
3873 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
3874 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
3875 * gimple.c (gimple_seq_add_seq_without_update): New function.
3876 * gimple.h (gimple_seq_add_seq_without_update): Declare.
3877 * gimple-fold.c: Include output.h.
3878 (gsi_replace_with_seq_vops): New function, split out from ...
3879 (gimplify_and_update_call_from_tree): ... here.
3880 (replace_call_with_value): New function.
3881 (replace_call_with_call_and_fold): Likewise.
3882 (var_decl_component_p): Moved from builtins.c.
3883 (gimple_fold_builtin_memory_op): Moved from builtins.c
3884 fold_builtin_memory_op and rewritten to GIMPLE.
3885 (gimple_fold_builtin_memset): Likewise.
3886 (gimple_fold_builtin_strcpy): Likewise.
3887 (gimple_fold_builtin_strncpy): Likewise.
3888 (gimple_fold_builtin_strcat): Likewise.
3889 (gimple_fold_builtin_fputs): Likewise.
3890 (gimple_fold_builtin_memory_chk): Likewise.
3891 (gimple_fold_builtin_stxcpy_chk): Likewise.
3892 (gimple_fold_builtin_stxncpy_chk): Likewise.
3893 (gimple_fold_builtin_snprintf_chk): Likewise.
3894 (gimple_fold_builtin_sprintf_chk): Likewise.
3895 (gimple_fold_builtin_strlen): New function.
3896 (gimple_fold_builtin_with_strlen): New function split out from
3897 gimple_fold_builtin.
3898 (gimple_fold_builtin): Change signature and handle
3899 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
3900 here. Call gimple_fold_builtin_with_strlen.
3901 (gimple_fold_call): Adjust.
3903 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
3905 * calls.c (precompute_arguments): Check
3906 promoted_for_signed_and_unsigned_p and set the promoted mode.
3907 (promoted_for_signed_and_unsigned_p): New function.
3908 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
3909 and set the promoted mode.
3910 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
3911 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
3912 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
3915 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
3917 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
3918 instead of SUBREG_PROMOTED_UNSIGNED_SET.
3919 (expand_call): Likewise.
3920 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
3921 to get promoted mode.
3922 * combine.c (record_promoted_value): Skip > 0 comparison with
3923 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
3924 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
3925 of SUBREG_PROMOTED_UNSIGNED_P.
3926 (convert_modes): Likewise.
3927 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
3928 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
3929 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
3930 SUBREG_PROMOTED_UNSIGNED_SET.
3931 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
3932 instead of SUBREG_PROMOTED_UNSIGNED_SET.
3933 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
3934 SUBREG_PROMOTED_SET.
3935 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
3936 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
3937 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
3938 of SUBREG_PROMOTED_UNSIGNED_P.
3939 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
3940 (SUBREG_PROMOTED_SET): New define.
3941 (SUBREG_PROMOTED_GET): Likewise.
3942 (SUBREG_PROMOTED_SIGN): Likewise.
3943 (SUBREG_PROMOTED_SIGNED_P): Likewise.
3944 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
3945 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
3946 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
3947 instead of SUBREG_PROMOTED_UNSIGNED_GET.
3948 (nonzero_bits1): Skip > 0 comparison with the results as
3949 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
3950 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
3951 of !SUBREG_PROMOTED_UNSIGNED_P.
3952 * simplify-rtx.c (simplify_unary_operation_1): Use new
3953 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
3954 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
3955 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
3956 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
3958 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
3960 * ipa-devirt.c: Include gimple-pretty-print.h
3961 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
3963 (decl_maybe_in_construction_p): Fix conditional on cdtor check
3964 (get_polymorphic_call_info): Fix return value
3965 (type_change_info): New sturcture based on ipa-prop
3967 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
3968 based on ipa-prop variant.
3969 (extr_type_from_vtbl_ptr_store): New function
3970 based on ipa-prop variant.
3971 (record_known_type): New function.
3972 (check_stmt_for_type_change): New function.
3973 (get_dynamic_type): New function.
3974 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
3975 * tree-ssa-pre.c: ipa-utils.h
3976 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
3977 machinery; sanity check with ipa-prop devirtualization.
3978 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
3981 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
3983 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
3984 * alias.c, cfgexpand.c, cgraphbuild.c,
3985 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
3986 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
3987 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
3988 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
3989 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
3990 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
3991 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
3992 dse.c, except.c, gengtype.c, gimple-expr.c,
3993 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
3994 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
3995 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
3996 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
3997 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
3998 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
4000 * pointer-set.c: Remove file.
4001 * pointer-set.h: Remove file.
4003 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4005 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
4006 * config/arm/types.md (f_sels, f_seld): Delete.
4008 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4010 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
4011 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
4012 (aarch64_movdi_<mode>high): Likewise.
4013 (aarch64_mov<mode>high_di): Likewise.
4014 (aarch64_movdi_<mode>low): Likewise.
4015 (aarch64_mov<mode>low_di): Likewise.
4016 (aarch64_movtilow_tilow): Likewise.
4017 Add comment explaining usage of fp,simd attributes and of
4018 TARGET_FLOAT and TARGET_SIMD.
4020 2014-08-07 Ian Bolton <ian.bolton@arm.com>
4021 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4023 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
4024 Use MOVN when one of the half-words is 0xffff.
4026 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
4028 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
4030 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4032 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
4033 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
4034 (rfs_str): String corresponding to RFS_* constants.
4035 (rank_for_schedule_stats_t): New typedef.
4036 (rank_for_schedule_stats): New static variable.
4037 (rfs_result): New static function.
4038 (rank_for_schedule): Track statistics for deciding heuristics.
4039 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
4041 (ready_sort): Use them for debug printouts.
4042 (schedule_block): Init statistics state. Print statistics on
4043 rank_for_schedule decisions.
4045 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4047 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
4049 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
4051 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
4054 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
4056 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
4057 function to not conflict.
4058 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
4059 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
4060 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
4061 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
4062 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
4065 2014-08-07 Marek Polacek <polacek@redhat.com>
4067 * fold-const.c (fold_binary_loc): Add folding of
4068 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
4070 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
4072 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
4073 instead of type size.
4074 (ASM_FINISH_DECLARE_OBJECT): Likewise.
4076 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
4078 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
4079 (*thumb1_movqi_insn): Likewise.
4080 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
4082 2014-08-07 Tom de Vries <tom@codesourcery.com>
4084 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
4085 (glibc_2_11_or_earlier): Remove effective-target keywords.
4087 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
4089 * config/arm/arm.c (bdesc_2arg): Fix typo.
4090 (arm_atomic_assign_expand_fenv): Remove The default implementation.
4092 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
4094 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
4096 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
4099 * haifa-sched.c (advance_one_cycle): Fix dump.
4100 (schedule_block): Don't advance cycle if we are already at the
4101 beginning of the cycle.
4103 2014-08-06 Martin Jambor <mjambor@suse.cz>
4106 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
4108 2014-08-06 Richard Biener <rguenther@suse.de>
4111 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
4113 (lto_input_tree): Pop SCCs here.
4115 2014-08-06 Richard Biener <rguenther@suse.de>
4117 PR tree-optimization/61320
4118 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
4119 handle misaligned loads.
4121 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
4123 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
4124 (aarch64_expand_vec_perm_const): Check for dup before zip.
4126 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4128 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
4129 CONST_INT_P instead of GET_CODE and compare.
4130 (aarch64_select_cc_mode): Likewise.
4131 (aarch64_print_operand): Likewise.
4132 (aarch64_rtx_costs): Likewise.
4133 (aarch64_simd_valid_immediate): Likewise.
4134 (aarch64_simd_check_vect_par_cnst_half): Likewise.
4135 (aarch64_simd_emit_pair_result_insn): Likewise.
4137 2014-08-05 David Malcolm <dmalcolm@redhat.com>
4139 * gdbhooks.py (find_gcc_source_dir): New helper function.
4140 (class PassNames): New class, locating and parsing passes.def.
4141 (class BreakOnPass): New command "break-on-pass".
4143 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
4145 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
4148 2014-08-05 Richard Biener <rguenther@suse.de>
4150 PR rtl-optimization/61672
4151 * emit-rtl.h (mem_attrs_eq_p): Declare.
4152 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
4153 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
4154 * cfgcleanup.c (merge_memattrs): Likewise.
4157 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4159 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
4160 rather than singleton vectors.
4161 (vqdmlsls_lane_s32): Likewise.
4163 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4165 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
4166 Use VSDQ_HSI mode iterator.
4167 (aarch64_sqrdmulh_laneq<mode>): Likewise.
4168 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
4169 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
4170 Use BUILTIN_VDQHS macro.
4171 (sqrdmulh_laneq): Likewise.
4172 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
4173 (vqdmlals_laneq_s32): Likewise.
4174 (vqdmlslh_laneq_s16): Likewise.
4175 (vqdmlsls_laneq_s32): Likewise.
4176 (vqdmulhh_laneq_s16): Likewise.
4177 (vqdmulhs_laneq_s32): Likewise.
4178 (vqrdmulhh_laneq_s16): Likewise.
4179 (vqrdmulhs_laneq_s32): Likewise.
4181 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4183 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
4184 (vmuld_laneq_f64): Likewise.
4185 (vmuls_laneq_f32): Likewise.
4186 (vmul_n_f64): Likewise.
4187 (vmuld_lane_f64): Reimplement in C.
4188 (vmuls_lane_f32): Likewise.
4190 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4192 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
4194 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
4196 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4198 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
4199 (rbitsi2): Likewise.
4200 (*arm_rev): Set predicable and predicable_short_it attributes.
4202 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4204 * convert.c (convert_to_integer): Guard transformation to lrint by
4207 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
4209 * config/aarch64/aarch64-builtins.c
4210 (aarch64_simd_builtin_type_mode): Delete.
4211 (v8qi_UP): Remap to V8QImode.
4212 (v4hi_UP): Remap to V4HImode.
4213 (v2si_UP): Remap to V2SImode.
4214 (v2sf_UP): Remap to V2SFmode.
4215 (v1df_UP): Remap to V1DFmode.
4216 (di_UP): Remap to DImode.
4217 (df_UP): Remap to DFmode.
4218 (v16qi_UP):V16QImode.
4219 (v8hi_UP): Remap to V8HImode.
4220 (v4si_UP): Remap to V4SImode.
4221 (v4sf_UP): Remap to V4SFmode.
4222 (v2di_UP): Remap to V2DImode.
4223 (v2df_UP): Remap to V2DFmode.
4224 (ti_UP): Remap to TImode.
4225 (ei_UP): Remap to EImode.
4226 (oi_UP): Remap to OImode.
4227 (ci_UP): Map to CImode.
4228 (xi_UP): Remap to XImode.
4229 (si_UP): Remap to SImode.
4230 (sf_UP): Remap to SFmode.
4231 (hi_UP): Remap to HImode.
4232 (qi_UP): Remap to QImode.
4233 (aarch64_simd_builtin_datum): Make mode a machine_mode.
4234 (VAR1): Build builtin name.
4235 (aarch64_init_simd_builtins): Remove dead code.
4237 2014-08-05 Roman Gareev <gareevroman@gmail.com>
4239 * graphite-isl-ast-to-gimple.c:
4240 (set_options): New function.
4241 (scop_to_isl_ast): Add calling of set_options.
4243 2014-08-05 Jakub Jelinek <jakub@redhat.com>
4245 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
4246 (analyze_iv_to_split_insn): Don't initialize them.
4247 (get_ivts_expr): Removed.
4248 (allocate_basic_variable, insert_base_initialization): Use
4249 SET_SRC instead of *get_ivts_expr.
4250 (split_iv): Use &SET_SRC instead of get_ivts_expr.
4252 2014-08-05 Roman Gareev <gareevroman@gmail.com>
4254 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
4255 (translate_isl_ast_for_loop): Add checking of the
4256 flag_loop_parallelize_all.
4257 (ast_build_before_for): New function.
4258 (scop_to_isl_ast): Add checking of the
4259 flag_loop_parallelize_all.
4260 * graphite-dependences.c: Move the defenition of the
4261 scop_get_dependences from graphite-optimize-isl.c to this file.
4262 (apply_schedule_on_deps): Add checking of the ux's emptiness.
4263 (carries_deps): Add checking of the x's value.
4264 * graphite-optimize-isl.c: Move the defenition of the
4265 scop_get_dependences to graphite-dependences.c.
4266 * graphite-poly.h: Add declarations of scop_get_dependences
4269 2014-08-04 Rohit <rohitarulraj@freescale.com>
4272 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
4274 (alt_reg_names): Likewise.
4275 (rs6000_dwarf_register_span): For SPE high registers, replace
4276 dwarf register numbers with GCC hard register numbers.
4277 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
4278 (rs6000_dbx_register_number): For SPE high registers, return dwarf
4279 register number for the corresponding GCC hard register number.
4280 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
4281 newly added GCC hard register numbers for SPE high registers.
4282 (DWARF_FRAME_REGISTERS): Likewise.
4283 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
4284 (DWARF_FRAME_REGNUM): Likewise.
4285 (FIXED_REGISTERS): Likewise.
4286 (CALL_USED_REGISTERS): Likewise.
4287 (CALL_REALLY_USED_REGISTERS): Likewise.
4288 (REG_ALLOC_ORDER): Likewise.
4289 (enum reg_class): Likewise.
4290 (REG_CLASS_NAMES): Likewise.
4291 (REG_CLASS_CONTENTS): Likewise.
4292 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
4294 2014-08-04 Richard Biener <rguenther@suse.de>
4296 * gimple-fold.h (gimple_fold_builtin): Remove.
4297 * gimple-fold.c (gimple_fold_builtin): Make static.
4298 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
4299 fold_stmt, not gimple_fold_builtin.
4301 2014-08-04 Martin Liska <mliska@suse.cz>
4303 * cgraph.h (csi_end_p): Removed.
4304 (csi_next): Likewise.
4305 (csi_node): Likewise.
4306 (csi_start): Likewise.
4307 (cgraph_node_in_set_p): Likewise.
4308 (cgraph_node_set_size): Likewise.
4309 (vsi_end_p): Likewise.
4310 (vsi_next): Likewise.
4311 (vsi_node): Likewise.
4312 (vsi_start): Likewise.
4313 (varpool_node_set_size): Likewise.
4314 (cgraph_node_set_nonempty_p): Likewise.
4315 (varpool_node_set_nonempty_p): Likewise.
4316 * cgraphunit.c (cgraph_process_new_functions): vec replaces
4318 * ipa-inline-transform.c: Likewise.
4319 * ipa-utils.c (cgraph_node_set_new): Removed.
4320 (cgraph_node_set_add): Likewise.
4321 (cgraph_node_set_remove): Likewise.
4322 (cgraph_node_set_find): Likewise.
4323 (dump_cgraph_node_set): Likewise.
4324 (debug_cgraph_node_set): Likewise.
4325 (free_cgraph_node_set): Likewise.
4326 (varpool_node_set_new): Likewise.
4327 (varpool_node_set_add): Likewise.
4328 (varpool_node_set_remove): Likewise.
4329 (varpool_node_set_find): Likewise.
4330 (dump_varpool_node_set): Likewise.
4331 (free_varpool_node_set): Likewise.
4332 (debug_varpool_node_set): Likewise.
4333 * tree-emutls.c (struct tls_var_data):
4334 (emutls_index): Removed.
4335 (emutls_decl): Likewise.
4336 (gen_emutls_addr): Function implementation uses newly added
4337 hash_map<varpool_node *, tls_var_data>.
4338 (clear_access_vars): Likewise.
4339 (create_emultls_var): Likewise.
4340 (ipa_lower_emutls): Likewise.
4341 (reset_access): New function.
4343 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4345 * config/i386/i386.c (ix86_option_override_internal): Add
4346 PTA_RDRND and PTA_MOVBE for bdver4.
4348 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4349 James Greenhalgh <james.greenhalgh@arm.com>
4351 * doc/md.texi (clrsb): Document.
4352 (clz): Change reference to x into operand 1.
4354 (popcount): Likewise.
4356 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4359 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
4360 move to subtarget in serial version if result is ignored.
4362 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4363 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4365 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
4366 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
4367 (sched_analyze_insn): Update use of try_group_insn to
4368 sched_macro_fuse_insns.
4369 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
4370 arguments that are not conditional jumps.
4372 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4374 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
4375 family information. Handle BTVER2 cpu with cpuid family value.
4377 2014-08-04 Tom de Vries <tom@codesourcery.com>
4379 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
4380 (glibc_2_11_or_earlier): Document effective-target keywords.
4382 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
4384 * ipa-devirt.c (odr_type_warn_count): Add type.
4385 (possible_polymorphic_call_targets): Set it.
4386 (ipa_devirt): Use it.
4388 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
4390 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
4392 * ipa-devirt.c: Include hash-map.h
4393 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
4394 (clear_speculation): Break out of ...
4395 (get_class_context): ... here; speed up handling obviously useless
4397 (odr_type_warn_count, decl_warn_count): New structures.
4398 (final_warning_record): New structure.
4399 (final_warning_records): New static variable.
4400 (possible_polymorphic_call_targets): Cleanup handling of
4401 speculative info; do not build speculation when user do not care;
4402 record info about warnings when asked for.
4403 (add_decl_warning): New function.
4404 (type_warning_cmp): New function.
4405 (decl_warning_cmp): New function.
4406 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
4407 (gate): Enable pass when warnings are requested.
4408 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
4411 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
4413 * hash-map.h (default_hashmap_traits::mark_key_deleted):
4415 (hash_map::remove): New method.
4416 (hash_map::traverse): New method.
4417 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
4418 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
4419 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
4420 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
4421 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
4422 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
4425 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
4427 * hash-set.h: new File.
4428 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
4429 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
4430 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
4431 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
4432 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
4433 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
4434 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
4435 varpool.c: Use hash_set instead of pointer_set.
4437 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
4439 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
4441 2014-08-01 Jiong Wang <jiong.wang@arm.com>
4443 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
4444 for frame access when strict_p is false.
4446 2014-08-01 Renlin Li <renlin.li@arm.com>
4447 2014-08-01 Jiong Wang <jiong.wang@arm.com>
4449 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
4450 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
4451 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
4453 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
4455 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
4456 aarch64_mem_pair_offset.
4458 2014-08-01 Jiong Wang <jiong.wang@arm.com>
4460 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
4462 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
4463 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
4465 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
4467 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
4469 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
4472 * cgraphunit.c (analyze_functions): Use get_create rather than get
4473 for decls which are clones of abstract functions.
4475 2014-08-01 Martin Liska <mliska@suse.cz>
4477 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
4478 * ipa-prop.h (count_formal_params): Global function created from static.
4479 * ipa-prop.c (count_formal_params): Likewise.
4480 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
4481 profiles for semantically equivalent functions.
4482 * passes.c (do_per_function): If we load body of a function
4483 during WPA, this condition should behave same.
4484 * varpool.c (ctor_for_folding): More tolerant assert for variable
4485 aliases created during WPA.
4487 2014-08-01 Martin Liska <mliska@suse.cz>
4489 * doc/invoke.texi (Options That Control Optimization): Documentation
4490 for -foptimize-strlen introduced. Optimization levels default options
4493 2014-08-01 Jakub Jelinek <jakub@redhat.com>
4495 * opts.c (common_handle_option): Handle -fsanitize=alignment.
4496 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
4497 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
4499 * stor-layout.h (min_align_of_type): New prototype.
4500 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
4501 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
4503 * ubsan.c: Include builtins.h.
4504 (ubsan_expand_bounds_ifn): Change return type to bool,
4506 (ubsan_expand_null_ifn): Change return type to bool, change
4507 argument to gimple_stmt_iterator *. Handle both null and alignment
4508 sanitization, take type from ckind argument's type rather than
4510 (instrument_member_call): Removed.
4511 (instrument_mem_ref): Remove t argument, add mem and base arguments.
4512 Handle both null and alignment sanitization, don't say whole
4513 struct access is member access. Build 3 argument IFN_UBSAN_NULL
4514 call instead of 2 argument.
4515 (instrument_null): Adjust instrument_mem_ref caller. Don't
4516 instrument calls here.
4517 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
4519 * stor-layout.c (min_align_of_type): New function.
4520 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
4521 Or it into SANITIZE_UNDEFINED.
4522 * doc/invoke.texi (-fsanitize=alignment): Document.
4524 2014-07-31 Andi Kleen <ak@linux.intel.com>
4526 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
4528 2014-07-31 Andi Kleen <ak@linux.intel.com>
4530 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
4532 (vn_reference_compute_hash): Dito.
4533 (vn_nary_op_compute_hash): Dito.
4534 (vn_phi_compute_hash): Dito.
4535 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
4537 2014-07-31 Andi Kleen <ak@linux.intel.com>
4539 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
4540 Rename to inchash:add_expr_commutative. Convert to inchash.
4541 (iterative_hash_hashable_expr): Rename to
4542 inchash:add_hashable_expr. Convert to inchash.
4543 (avail_expr_hash): Dito.
4545 2014-07-31 Andi Kleen <ak@linux.intel.com>
4547 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
4550 2014-07-31 Andi Kleen <ak@linux.intel.com>
4552 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
4554 2014-07-31 Andi Kleen <ak@linux.intel.com>
4556 * Makefile.in (OBJS): Add rtlhash.o
4557 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
4558 (loc_checksum): Dito.
4559 (loc_checksum_ordered): Dito.
4560 (hash_loc_operands): Dito.
4562 (hash_loc_list): Dito.
4563 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
4564 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
4565 * rtlhash.c: New file.
4566 * rtlhash.h: New file.
4568 2014-07-31 Andi Kleen <ak@linux.intel.com>
4570 * inchash.h (inchash): Change inchash class to namespace.
4571 (class hash): ... Rename from inchash.
4572 (add_object): Move from macro to class template.
4573 * lto-streamer-out.c (hash_tree): Change inchash
4575 * tree.c (build_type_attribute_qual_variant): Dito.
4576 (type_hash_list): Dito.
4577 (attribute_hash_list): Dito.
4578 (iterative_hstate_expr): Rename to inchash::add_expr
4579 (build_range_type_1): Change inchash to inchash::hash
4580 and use hash::add_expr.
4581 (build_array_type_1): Dito.
4582 (build_function_type): Dito
4583 (build_method_type_directly): Dito.
4584 (build_offset_type): Dito.
4585 (build_complex_type): Dito.
4586 (make_vector_type): Dito.
4587 * tree.h (iterative_hash_expr): Dito.
4589 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
4591 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
4593 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
4595 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
4596 correct alphabetical position.
4597 (vpaddd_f64): Rewrite using builtins.
4598 (vpaddd_s64): Move to correct alphabetical position.
4601 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
4604 * config/sh/sh.c (sh_legitimate_address_p,
4605 sh_legitimize_reload_address): Handle reg+reg address modes when
4606 ALLOW_INDEXED_ADDRESS is false.
4607 * config/sh/predicates.md (general_movsrc_operand,
4608 general_movdst_operand): Likewise.
4610 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
4612 * config/aarch64/aarch64-builtins.c
4613 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
4616 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
4618 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
4619 the generated mask based on BYTES_BIG_ENDIAN.
4620 (aarch64_simd_check_vect_par_cnst_half): New.
4621 * config/aarch64/aarch64-protos.h
4622 (aarch64_simd_check_vect_par_cnst_half): New.
4623 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
4624 the check out to aarch64_simd_check_vect_par_cnst_half.
4625 (vect_par_cnst_lo_half): Likewise.
4626 * config/aarch64/aarch64-simd.md
4627 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
4628 (move_hi_quad_<mode>): Always generate a low mask.
4630 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4632 * doc/invoke.texi (AVR Options): Add documentation about
4633 __AVR_DEVICE_NAME__ built-in macro.
4635 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
4638 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
4639 constraints are satisfied.
4640 (<shift>di3_neon): Likewise.
4642 2014-07-31 Richard Biener <rguenther@suse.de>
4644 PR tree-optimization/61964
4645 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
4646 by structural equality.
4648 2014-07-31 Yury Gribov <y.gribov@samsung.com>
4650 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
4651 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
4652 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
4654 * gcc.c (sanitize_spec_function): Support new option.
4655 (SANITIZER_SPEC): Remove now redundant check.
4656 * opts.c (common_handle_option): Support new option.
4657 (finish_options): Check for incompatibilities.
4658 * toplev.c (process_options): Split userspace-specific checks.
4660 2014-07-31 Richard Biener <rguenther@suse.de>
4662 * lto-streamer.h (struct output_block): Remove global.
4663 (struct data_in): Remove labels, num_named_labels and
4665 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
4666 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
4668 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
4671 * common.opt (-Wreturn-local-addr): Moved from c.opt.
4672 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
4673 (isolate_path): New argument to avoid inserting a trap.
4674 (find_implicit_erroneous_behaviour): Handle returning the address
4675 of a local variable.
4676 (find_explicit_erroneous_behaviour): Likewise.
4678 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
4681 * toplev.c (init_random_seed): Move piece of code never called to
4683 (set_random_seed): see above.
4685 2014-07-31 Tom de Vries <tom@codesourcery.com>
4687 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
4689 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
4691 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
4692 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
4694 2014-07-31 Richard Biener <rguenther@suse.de>
4696 * data-streamer.h (streamer_write_data_stream): Declare here,
4698 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
4699 * lto-cgraph.c (lto_output_node): Adjust.
4700 (lto_output_varpool_node): Likewise.
4701 * data-streamer-out.c (streamer_string_index): Likewise.
4702 (streamer_write_data_stream, lto_append_block): Move from ...
4703 * lto-section-out.c (lto_output_data_stream,
4704 lto_append_block): ... here.
4706 2014-07-30 Mike Stump <mikestump@comcast.net>
4708 * configure.ac: Also check for popen.
4709 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
4710 * configure: Regenerate.
4711 * config.in: Regenerate.
4713 2014-07-30 Martin Jambor <mjambor@suse.cz>
4715 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
4716 parameter to gimple.
4718 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4720 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
4721 address as second parameter to __tpf_eh_return routine.
4723 2014-07-30 Jiong Wang <jiong.wang@arm.com>
4725 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
4728 2014-07-30 Tom Tromey <tromey@redhat.com>
4731 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
4732 * doc/extend.texi (Type Attributes): Document designated_init
4735 2014-07-30 Roman Gareev <gareevroman@gmail.com>
4737 * graphite-isl-ast-to-gimple.c:
4738 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
4739 (gcc_expression_from_isl_expression): Pass type to
4740 gcc_expression_from_isl_ast_expr_id.
4742 2014-07-30 Richard Biener <rguenther@suse.de>
4744 * lto-streamer.h (lto_write_data): New function.
4745 * langhooks.c (lhd_append_data): Do not free block.
4746 * lto-section-out.c (lto_write_data): New function writing
4747 raw data to the current section.
4748 (lto_write_stream): Adjust for langhook semantic change.
4749 (lto_destroy_simple_output_block): Write header directly.
4750 * lto-opts.c (lto_write_options): Write options directly.
4751 * lto-streamer-out.c (produce_asm): Write heaeder directly.
4752 (lto_output_toplevel_asms): Likewise.
4753 (copy_function_or_variable): Copy data directly.
4754 (write_global_references): Output index table directly.
4755 (lto_output_decl_state_refs): Likewise.
4756 (write_symbol): Write data directly.
4757 (produce_symtab): Adjust.
4758 (produce_asm_for_decls): Output header and refs directly.
4760 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
4762 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
4763 to speculative_targets
4764 (get_class_context): Fix handling of contextes without outer type;
4765 avoid matching non-polymorphic types in LTO.
4766 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
4767 parameter to speculative_targetsp; handle speculation.
4768 (dump_possible_polymorphic_call_targets): Update dumping.
4770 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
4772 * common.opt (Wodr): Enable by default.
4774 2014-07-29 Olivier Hainque <hainque@adacore.com>
4776 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
4778 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
4781 * gengtype.c (strtoken): New function.
4782 (create_user_defined_type): Replace strtok with strtoken.
4784 2014-07-29 Nathan Sidwell <nathan@acm.org>
4786 * gcov-io.c (gcov_var): Make hidden.
4787 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
4788 (gcov_do_dump): Declare.
4789 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
4791 2014-07-29 Martin Jambor <mjambor@suse.cz>
4793 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
4794 parameter to gimple.
4795 (sra_modify_assign): Likewise.
4797 2014-07-29 Richard Biener <rguenther@suse.de>
4800 * expr.c (expand_expr_real_2): Revert last change.
4802 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
4804 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
4805 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
4806 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
4808 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
4809 (contains_type_p): Forward declare.
4810 (polymorphic_call_target_hasher::hash): Hash speculative info.
4811 (polymorphic_call_target_hasher::equal): Compare speculative info.
4812 (get_class_context): Handle speuclation.
4813 (contains_type_p): Update.
4814 (get_polymorphic_call_info_for_decl): Update.
4815 (walk_ssa_copies): Break out from ...
4816 (get_polymorphic_call_info): ... here; set speculative context
4818 * ipa-prop.c (ipa_write_indirect_edge_info,
4819 ipa_read_indirect_edge_info): Stream speculative context.
4820 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
4821 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
4822 SPECULATIVE_MAYBE_DERIVED_TYPE).
4823 (possible_polymorphic_call_targets overriders): Update.
4824 (dump_possible_polymorphic_call_targets overriders): Update.
4825 (dump_possible_polymorphic_call_target_p overriders): Update.
4827 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
4829 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
4830 ipa-devirt path; fix thinko there.
4832 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
4834 * config/i386/i386.c (ix86_return_in_memory): Replace one
4835 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
4837 2014-07-28 Marek Polacek <polacek@redhat.com>
4839 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
4841 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
4843 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
4844 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
4845 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
4846 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
4847 (USE_LD_AS_NEEDED): Likewise.
4848 (ASM_APP_ON): Likewise.
4849 (ASM_APP_OFF): Likewise.
4850 (TARGET_POSIX_IO): Likewise.
4851 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
4852 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
4853 (USE_LD_AS_NEEDED): Likewise.
4854 (ASM_APP_ON): Likewise.
4855 (ASM_APP_OFF): Likewise.
4856 (TARGET_POSIX_IO): Likewise.
4858 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
4861 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
4862 operators other than the equality operators.
4864 2014-07-28 Richard Biener <rguenther@suse.de>
4867 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
4868 sure to register SImode ones, not only >= word_mode ones.
4869 * expr.c (expand_expr_real_2): When expanding -ftrapv
4870 binops do not use OPTAB_LIB_WIDEN.
4872 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
4875 * tree-outof-ssa.c (insert_partition_copy_on_edge)
4876 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
4877 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
4878 inserting them in the insn stream.
4880 2014-07-28 Marek Polacek <polacek@redhat.com>
4883 * common.opt (Wodr): Add Var.
4885 2014-07-28 Richard Biener <rguenther@suse.de>
4887 PR tree-optimization/61921
4888 * tree-ssa-structalias.c (create_variable_info_for_1): Check
4889 if there is a varpool node before dereferencing it.
4891 2014-07-28 Roman Gareev <gareevroman@gmail.com>
4893 * graphite-sese-to-poly.c:
4894 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
4895 id of the pbb), which contains pointer to the pbb1.
4897 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
4899 2014-07-28 Roman Gareev <gareevroman@gmail.com>
4901 * graphite-isl-ast-to-gimple.c:
4902 (graphite_create_new_guard): New function.
4903 (translate_isl_ast_node_if): New function.
4904 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
4906 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
4908 2014-07-27 Anthony Green <green@moxielogic.com>
4910 * config.gcc: Add moxie-*-moxiebox* configuration.
4911 * config/moxie/moxiebox.h: New file.
4913 2014-07-26 Andrew Pinski <apinski@cavium.com>
4915 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
4916 from the read only register.
4918 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
4920 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
4921 as the allocation class if it isn't likely to be spilled.
4923 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
4925 * rtl.h (tls_referenced_p): Declare.
4926 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
4927 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
4928 (mips_cannot_force_const_mem): Use tls_referenced_p.
4929 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
4930 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
4931 instead of pa_tls_referenced_p.
4932 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
4933 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
4934 (pa_legitimate_constant_p): Likewise.
4935 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
4936 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
4937 (rs6000_cannot_force_const_mem, rs6000_emit_move)
4938 (rs6000_address_for_altivec): Use tls_referenced_p instead of
4939 rs6000_tls_referenced_p.
4940 (rs6000_tls_symbol_ref_1): Delete.
4942 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
4945 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
4946 Optimize inverse of a VEC_CONCAT.
4948 2014-07-25 Xinliang David Li <davidxl@google.com>
4950 * params.def: New parameter.
4951 * coverage.c (get_coverage_counts): Check new flag.
4952 (coverage_compute_profile_id): Check new flag.
4953 (coverage_begin_function): Check new flag.
4954 (coverage_end_function): Check new flag.
4955 * value-prof.c (coverage_node_map_initialized_p): New function.
4956 (init_node_map): Populate map with all functions.
4957 * doc/invoke.texi: Document new parameter.
4959 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
4960 Richard Biener <rguenther@suse.de>
4962 * lto-streamer-out.c (struct sccs): Turn to ...
4963 (class DFS): ... this one; refactor the DFS walk so it can
4964 be re-done on per-SCC basis.
4965 (DFS::DFS): New constructor.
4966 (DFS::~DFS): New destructor.
4967 (hash_tree): Add new MAP argument holding in-SCC hash values;
4968 remove POINTER_TYPE hashing hack.
4969 (scc_entry_compare): Rename to ...
4970 (DFS::scc_entry_compare): ... this one.
4971 (hash_scc): Rename to ...
4972 (DFS::hash_scc): ... this one; pass output_block instead
4973 of streamer_cache; work harder to get unique and stable SCC
4975 (DFS_write_tree): Rename to ...
4976 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
4977 (lto_output_tree): Update.
4979 2014-07-25 Andi Kleen <ak@linux.intel.com>
4981 * lto-streamer-out.c (hash_tree): Convert to inchash.
4983 2014-07-25 Andi Kleen <ak@linux.intel.com>
4985 * tree.c (build_type_attribute_qual_variant): Use inchash.
4986 (type_hash_list): Dito.
4987 (attribute_hash_list): Dito
4988 (iterative_hstate_expr): Dito.
4989 (iterative_hash_expr): Dito.
4990 (build_range_type_1): Dito.
4991 (build_array_type_1): Dito.
4992 (build_function_type): Dito.
4993 (build_method_type_directly): Dito.
4994 (build_offset_type): Dito.
4995 (build_complex_type): Dito.
4996 (make_vector_type): Dito.
4997 * tree.h (iterative_hash_expr): Add compat wrapper.
4998 (iterative_hstate_expr): Add.
5000 2014-07-25 Andi Kleen <ak@linux.intel.com>
5002 * Makefile.in (OBJS): Add inchash.o.
5003 (PLUGIN_HEADERS): Add inchash.h.
5004 * ipa-devirt.c: Include inchash.h.
5005 * lto-streamer-out.c: Dito.
5006 * tree-ssa-dom.c: Dito.
5007 * tree-ssa-pre.c: Dito.
5008 * tree-ssa-sccvn.c: Dito.
5009 * tree-ssa-tail-merge.c: Dito.
5011 * tree.c (iterative_hash_hashval_t): Move to ...
5012 (iterative_hash_host_wide_int): Move to ...
5013 * inchash.c: Here. New file.
5014 * tree.h (iterative_hash_hashval_t): Move to ...
5015 (iterative_hash_host_wide_int): Move to ...
5016 * inchash.h: Here. New file.
5018 2014-07-25 Richard Biener <rguenther@suse.de>
5022 * fold-const.c (native_encode_int): Add and handle offset
5023 parameter to do partial encodings of expr.
5024 (native_encode_fixed): Likewise.
5025 (native_encode_real): Likewise.
5026 (native_encode_complex): Likewise.
5027 (native_encode_vector): Likewise.
5028 (native_encode_string): Likewise.
5029 (native_encode_expr): Likewise.
5030 * fold-const.c (native_encode_expr): Add offset parameter
5032 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
5033 (fold_ctor_reference): Handle all reads from tcc_constant
5036 2014-07-25 Richard Biener <rguenther@suse.de>
5038 * tree-inline.c (estimate_move_cost): Mark speed_p argument
5041 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5043 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
5045 2014-07-24 Kyle McMartin <kyle@redhat.com>
5047 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
5049 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5051 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
5053 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
5055 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
5056 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
5057 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
5059 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5061 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
5062 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
5063 aggregate types. Instead, *all* aggregate types, except for single-
5064 element or homogeneous float/vector aggregates, are quadword-aligned
5065 if required by their type alignment. Issue -Wpsabi note when a type
5066 is now treated differently than before.
5068 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5070 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
5071 does not fit fully into floating-point registers, and there is still
5072 space in the register parameter area, use GPRs to pass those parts
5073 of the argument. Issue -Wpsabi note if any parameter is now treated
5074 differently than before.
5075 (rs6000_arg_partial_bytes): Update.
5077 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
5079 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
5081 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
5083 * rtl.h (target_rtl): Remove lang_dependent_initialized.
5084 * toplev.c (initialize_rtl): Don't use it. Move previously
5085 "language-dependent" calls to...
5086 (backend_init): ...here.
5087 (lang_dependent_init_target): Don't set lang_dependent_initialized.
5088 Assert that RTL initialization hasn't happend yet.
5090 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
5092 PR rtl-optimization/61629
5093 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
5094 they have already been initialized.
5096 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
5099 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
5100 DECL_INCOMING_RTL and entry_parm.
5101 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
5102 * calls.c (load_register_parameters): Likewise argument values.
5103 (emit_library_call_value_1, store_one_arg): Likewise argument
5105 * config/i386/i386.c (assign_386_stack_local): Likewise the local
5107 * explow.c (validize_mem): Modify the argument in-place.
5109 2014-07-24 Jiong Wang <jiong.wang@arm.com>
5111 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
5112 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
5114 2014-07-24 Jiong Wang <jiong.wang@arm.com>
5116 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
5117 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
5119 2014-07-24 Jiong Wang <jiong.wang@arm.com>
5121 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
5122 (aarch64_save_callee_saves): New parameter "skip_wb".
5123 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
5125 2014-07-24 Jiong Wang <jiong.wang@arm.com>
5127 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
5129 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
5131 2014-07-24 Roman Gareev <gareevroman@gmail.com>
5133 * graphite-isl-ast-to-gimple.c:
5134 (graphite_create_new_loop): Add calling of isl_id_free to properly
5135 decrement reference counts.
5137 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
5139 2014-07-24 Martin Liska <mliska@suse.cz>
5140 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
5142 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
5143 (rs6000_code_end): Likewise.
5145 2014-07-24 Martin Liska <mliska@suse.cz>
5147 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
5148 symtab_node funtion used.
5149 (rs6000_xcoff_declare_object_name): Likewise.
5151 2014-07-24 Martin Liska <mliska@suse.cz>
5153 * cgraphunit.c (compile): Correct function used.
5155 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
5157 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
5160 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
5163 * varasm.c (bss_initializer_p): Handle offlined ctors.
5164 (align_variable, get_variable_align): Likewise.
5165 (make_decl_one_only): Likewise.
5166 (default_binds_local_p_1): Likewise.
5167 (decl_binds_to_current_def_p): Likewise.
5168 (get_variable_section): Get constructor if it is offlined.
5169 (assemble_variable_contents): Sanity check that the caller
5170 streamed in the ctor in LTO.
5172 2014-07-24 Roman Gareev <gareevroman@gmail.com>
5174 * graphite-isl-ast-to-gimple.c:
5175 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
5176 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
5177 isl_ast_op_pdiv_r to the different case.
5179 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
5181 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5184 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
5185 when flag_errno_math is on.
5187 2014-07-24 Martin Liska <mliska@suse.cz>
5189 * cgraph.h (varpool_node):
5190 (availability get_availability (void)):
5191 created from cgraph_variable_initializer_availability
5192 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
5193 created from: cgraph_variable_initializer_availability
5194 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
5195 (void finalize_named_section_flags (void)):
5196 created from varpool_finalize_named_section_flags
5197 (bool assemble_decl (void)): created from varpool_assemble_decl
5198 (void analyze (void)): created from varpool_analyze_node
5199 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
5200 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
5201 (void remove_initializer (void)): created from varpool_remove_initializer
5202 (tree get_constructor (void)): created from varpool_get_constructor
5203 (bool externally_visible_p (void)): created from varpool_externally_visible_p
5204 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
5205 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
5206 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
5207 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
5208 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
5209 (static bool output_variables (void)): created from varpool_output_variables
5210 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
5211 created from varpool_extra_name_alias
5212 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
5213 (static void dump_varpool (FILE *f)): created from dump_varpool
5214 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
5215 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
5216 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
5217 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
5218 (void assemble_aliases (void)): created from assemble_aliases
5220 2014-07-24 Martin Liska <mliska@suse.cz>
5222 * cgraph.h (symtab_node):
5223 (void register_symbol (void)): created from symtab_register_node
5224 (void remove (void)): created from symtab_remove_node
5225 (void dump (FILE *f)): created from dump_symtab_node
5226 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
5227 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
5228 (struct ipa_ref *add_reference (symtab_node *referred_node,
5229 enum ipa_ref_use use_type)): created from add_reference
5230 (struct ipa_ref *add_reference (symtab_node *referred_node,
5231 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
5232 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
5233 gimple stmt)): created from maybe_add_reference
5234 (bool semantically_equivalent_p (symtab_node *target)): created from
5235 symtab_semantically_equivalent_p
5236 (void remove_from_same_comdat_group (void)): created from
5237 remove_from_same_comdat_group
5238 (void add_to_same_comdat_group (symtab_node *old_node)): created from
5239 symtab_add_to_same_comdat_group
5240 (void dissolve_same_comdat_group_list (void)): created from
5241 symtab_dissolve_same_comdat_group_list
5242 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
5243 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
5244 created from symtab_alias_ultimate_target
5245 (inline symtab_node *next_defined_symbol (void)): created from
5246 symtab_next_defined_symbol
5247 (bool resolve_alias (symtab_node *target)): created from
5248 symtab_resolve_alias
5249 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
5250 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
5251 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
5252 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
5253 (void set_section (const char *section)): created from set_section_1
5254 (enum availability get_availability (void)): created from symtab_node_availability
5255 (void make_decl_local (void)): created from symtab_make_decl_local
5256 (bool real_symbol_p (void)): created from symtab_read_node
5257 (can_be_discarded_p (void)): created from symtab_can_be_discarded
5258 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
5259 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
5260 symtab_in_same_comdat_p;
5261 (bool address_taken_from_non_vtable_p (void)): created from
5262 address_taken_from_non_vtable_p
5263 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
5264 (static void dump_table (FILE *)): created from dump_symtab
5265 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
5266 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
5267 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
5268 symtab_used_from_object_file_p
5269 (void dump_base (FILE *)): created from dump_symtab_base
5270 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
5271 (void unregister (void)): created from symtab_unregister_node
5272 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
5273 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
5274 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
5275 symtab_nonoverwritable_alias_1
5276 * cgraph.h (cgraph_node):
5277 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
5278 created from cgraph_remove_node_and_inline_clones
5279 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
5280 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
5281 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
5282 (cgraph_node *function_symbol (enum availability *avail = NULL)):
5283 created from cgraph_function_node
5284 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
5285 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
5286 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
5287 created from cgraph_create_clone
5288 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
5289 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
5290 created from cgraph_create_virtual_clone
5291 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
5292 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
5293 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
5294 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
5295 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
5296 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
5297 created from cgraph_function_version_info
5298 (struct cgraph_function_version_info *insert_new_function_version (void)):
5299 created from insert_new_cgraph_node_version
5300 (struct cgraph_function_version_info *function_version (void)): created from
5301 get_cgraph_node_version
5302 (void analyze (void)): created from analyze_function
5303 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
5304 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
5305 tree real_alias) cgraph_add_thunk
5306 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
5307 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
5308 created from cgraph_function_or_thunk_node
5309 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
5310 created from expand_thunk
5311 (void reset (void)): created from cgraph_reset_node
5312 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
5313 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
5314 (void remove (void)): created from cgraph_remove_node
5315 (void dump (FILE *f)): created from dump_cgraph_node
5316 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
5317 (bool get_body (void)): created from cgraph_get_body
5318 (void release_body (void)): created from cgraph_release_function_body
5319 (void unnest (void)): created from cgraph_unnest_node
5320 (void make_local (void)): created from cgraph_make_node_local
5321 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
5322 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
5323 gcov_type count, int freq)): created from cgraph_create_edge
5324 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
5325 gcov_type count, int freq)): created from cgraph_create_indirect_edge
5326 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
5327 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
5328 created from cgraph_create_edge_including_clones
5329 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
5330 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
5331 (void remove_callers (void)): created from cgraph_node_remove_callers
5332 (void remove_callees (void)): created from cgraph_node_remove_callees
5333 (enum availability get_availability (void)): created from cgraph_function_body_availability
5334 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
5335 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
5336 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
5337 (void call_duplication_hooks (cgraph_node *node2)): created from
5338 cgraph_call_node_duplication_hooks
5339 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
5340 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
5341 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
5342 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
5343 (void call_function_insertion_hooks (void)):
5344 created from cgraph_call_function_insertion_hooks
5345 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
5346 (bool local_p (void)): created from cgraph_local_node
5347 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
5348 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
5349 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
5350 (inline bool only_called_directly_or_aliased_p (void)):
5351 created from cgraph_only_called_directly_or_aliased_p
5352 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
5353 created from cgraph_will_be_removed_from_program_if_no_direct_calls
5354 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
5355 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
5356 (bool can_remove_if_no_direct_calls_p (void)):
5357 created from cgraph_can_remove_if_no_direct_calls_p
5358 (inline bool has_gimple_body_p (void)):
5359 created from cgraph_function_with_gimple_body_p
5360 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
5361 (static void dump_cgraph (FILE *f)): created from dump_cgraph
5362 (static inline void debug_cgraph (void)): created from debug_cgraph
5363 (static void record_function_versions (tree decl1, tree decl2)):
5364 created from record_function_versions
5365 (static void delete_function_version (tree decl)):
5366 created from delete_function_version
5367 (static void add_new_function (tree fndecl, bool lowered)):
5368 created from cgraph_add_new_function
5369 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
5370 (static cgraph_node * create (tree decl)): created from cgraph_create_node
5371 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
5372 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
5373 (static cgraph_node *get_for_asmname (tree asmname)):
5374 created from cgraph_node_for_asm
5375 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
5376 created from cgraph_same_body_alias
5377 (static bool used_from_object_file_p_worker (cgraph_node *node,
5378 void *): new function
5379 (static bool non_local_p (cgraph_node *node, void *)):
5380 created from cgraph_non_local_node_p_1
5381 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
5382 created from verify_cgraph
5383 (static bool make_local (cgraph_node *node, void *)):
5384 created from cgraph_make_node_local
5385 (static cgraph_node *create_alias (tree alias, tree target)):
5386 created from cgraph_create_function_alias
5387 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
5388 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
5389 created from cgraph_create_edge_1
5390 * cgraph.h (varpool_node):
5391 (void remove (void)): created from varpool_remove_node
5392 (void dump (FILE *f)): created from dump_varpool_node
5394 2014-07-24 Richard Biener <rguenther@suse.de>
5397 * tree-ssa-structalias.c (create_variable_info_for_1):
5398 Use varpool_get_constructor.
5399 (create_variable_info_for): Likewise.
5401 2014-07-24 Jiong Wang <jiong.wang@arm.com>
5403 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
5404 subtract outgoing area size when restoring stack_pointer_rtx.
5406 2014-07-24 Nick Clifton <nickc@redhat.com>
5408 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
5409 that operations are taking place in parallel.
5410 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
5412 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
5414 * omp-low.c (extract_omp_for_data): Add missing break statement.
5416 2014-07-24 Richard Biener <rguenther@suse.de>
5418 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
5419 * tree-inline.c (estimate_move_cost): Add speed_p parameter
5420 and adjust MOVE_RATIO query accordingly.
5421 (estimate_num_insns): Adjust callers.
5422 * ipa-prop.c (ipa_populate_param_decls): Likewise.
5423 * ipa-cp.c (gather_context_independent_values,
5424 estimate_local_effects): Likewise.
5425 * ipa-split.c (consider_split): Likewise.
5427 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
5429 * config/i386/driver-i386.c: Remove names of unused arguments and
5430 unnecessary unused attributes.
5431 * config/i386/host-mingw32.c: Likewise.
5432 * config/i386/i386.c: Likewise.
5433 * config/i386/winnt-stubs.c: Likewise.
5434 * config/i386/winnt.c: Likewise.
5436 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5438 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
5439 (aarch64_gen_loadwb_pair): New helper function.
5440 (aarch64_expand_epilogue): Simplify code using new helper functions.
5441 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
5443 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5445 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
5446 (aarch64_gen_storewb_pair): New helper function.
5447 (aarch64_expand_prologue): Simplify code using new helper functions.
5448 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
5450 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5452 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
5453 Rename to aarch64_save_callee_saves, remove restore code.
5454 (aarch64_restore_callee_saves): New function.
5456 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5458 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
5459 (aarch64_save_callee_saves): New function to handle reg save
5460 for both core and vectore regs.
5462 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5464 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
5465 (aarch64_gen_store_pair): New helper function.
5466 (aarch64_save_or_restore_callee_save_registers)
5467 (aarch64_save_or_restore_fprs): Use new helper functions.
5469 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5471 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
5472 (aarch64_save_or_restore_callee_save_registers)
5473 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
5475 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5477 * config/aarch64/aarch64.c
5478 (aarch64_save_or_restore_callee_save_registers)
5479 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
5481 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5483 * config/aarch64/aarch64.c
5484 (aarch64_save_or_restore_callee_save_registers)
5485 (aarch64_save_or_restore_fprs): Remove 'increment'.
5487 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5489 * config/aarch64/aarch64.c
5490 (aarch64_save_or_restore_callee_save_registers)
5491 (aarch64_save_or_restore_fprs): Use register offset in
5492 cfun->machine->frame.reg_offset.
5494 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5496 * config/aarch64/aarch64.c
5497 (aarch64_save_or_restore_callee_save_registers)
5498 (aarch64_save_or_restore_fprs): Remove base_rtx.
5500 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5502 * config/aarch64/aarch64.c
5503 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
5504 to 'start_offset'. Remove local variable 'start_offset'.
5506 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5508 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
5509 type to HOST_WIDE_INT.
5511 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5513 * config/aarch64/aarch64.c (aarch64_expand_prologue)
5514 (aarch64_save_or_restore_fprs)
5515 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
5517 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
5519 * config/arm/t-rtems-eabi: Add
5520 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
5521 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
5522 mbig-endian/mthumb/march=armv7-r, and
5523 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
5526 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
5527 Chris Johns <chrisj@rtems.org>
5528 Joel Sherrill <joel.sherrill@oarcorp.com>
5530 * config.gcc: Add nios2-*-rtems*.
5531 * config/nios2/rtems.h: New file.
5532 * gcc/config/nios2/t-rtems: New file.
5534 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
5537 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
5538 constant numbers, not general constants.
5539 (rs6000_expand_vector_init): Ditto.
5541 2014-07-23 Nathan Sidwell <nathan@acm.org>
5543 * gcov-tool.c (gcov_list): Declare here.
5544 (set_gcov_list): Remove.
5545 (gcov_output_files): Set gcov_list directly.
5547 2014-07-23 Host Schirmeier <horst@schirmeier.com>
5549 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
5551 2014-07-23 Jiong Wang <jiong.wang@arm.com>
5553 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
5554 callee-saved registers are available for padding purpose
5555 and r3 is not mandatory, then prefer use those callee-saved
5558 2014-07-23 Richard Biener <rguenther@suse.de>
5560 * params.def (PARAM_MAX_COMBINE_INSNS): New.
5561 * combine.c: Include statistics.h and params.h.
5562 (combine_instructions): Guard three and four insn combines
5563 with max-combine-insns value. Record statistics for combines
5565 * doc/invoke.texi (max-combine-insns): Document new param.
5567 2014-07-23 Roman Gareev <gareevroman@gmail.com>
5569 * graphite-isl-ast-to-gimple.c:
5570 (translate_isl_ast_node_block): New function.
5571 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
5573 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
5574 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
5576 2014-07-23 Roman Gareev <gareevroman@gmail.com>
5578 * graphite-isl-ast-to-gimple.c:
5579 (get_max_schedule_dimensions): New function.
5580 (extend_schedule): Likewise.
5581 (generate_isl_schedule): Add calling of extend_schedule and
5582 get_max_schedule_dimensions.
5584 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5586 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
5587 (case UNSPEC): Handle UNSPEC_RBIT.
5589 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5591 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
5592 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
5594 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5596 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
5598 2014-07-22 Roman Gareev <gareevroman@gmail.com>
5600 * graphite-isl-ast-to-gimple.c:
5601 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
5603 (build_iv_mapping): New function.
5604 (translate_isl_ast_node_user): Likewise.
5605 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
5607 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
5608 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
5609 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
5611 2014-07-21 Bin Cheng <bin.cheng@arm.com>
5614 * config/arm/arm.md (setmem): New pattern.
5615 * config/arm/arm-protos.h (struct tune_params): New fields.
5616 (arm_gen_setmem): New prototype.
5617 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
5618 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
5619 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
5620 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
5621 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
5622 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
5623 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
5624 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
5625 (arm_const_inline_cost): New function.
5626 (arm_block_set_max_insns): New function.
5627 (arm_block_set_non_vect_profit_p): New function.
5628 (arm_block_set_vect_profit_p): New function.
5629 (arm_block_set_unaligned_vect): New function.
5630 (arm_block_set_aligned_vect): New function.
5631 (arm_block_set_unaligned_non_vect): New function.
5632 (arm_block_set_aligned_non_vect): New function.
5633 (arm_block_set_vect, arm_gen_setmem): New functions.
5635 2014-07-21 Bin Cheng <bin.cheng@arm.com>
5637 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
5639 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
5642 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
5643 out of #ifdef __OPTIMIZE__.
5645 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
5647 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
5648 different trapping status if -fnon-call-exceptions is enabled.
5650 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
5652 * expr.c (store_field): Handle VOIDmode for calls that return values
5653 in multiple locations.
5655 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5657 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
5658 (altivec_vsldoi_<mode>): Likewise.
5660 2014-07-20 Roman Gareev <gareevroman@gmail.com>
5662 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
5663 to the number of characters in the line.
5665 2014-07-20 Roman Gareev <gareevroman@gmail.com>
5667 * graphite-isl-ast-to-gimple.c: Add using of
5668 build_nonstandard_integer_type instead of int128_integer_type_node.
5670 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
5672 * toplev.c (output_stack_usage): Adjust the location of the warning.
5674 2014-07-19 Daniel Cederman <cederman@gaisler.com>
5676 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
5677 (*membar_storeload): Disable for LEON3.
5679 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
5681 PR rtl-optimization/61461
5682 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
5684 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
5687 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
5688 Fix instruction constraint.
5689 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
5691 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
5693 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
5695 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
5697 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
5698 GNU coding standards.
5699 (nds32_register_move_cost): Likewise.
5700 (nds32_memory_move_cost): Likewise.
5701 (nds32_address_cost): Likewise.
5703 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5705 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
5707 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
5709 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
5710 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
5711 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
5712 (HAVE_sync_compare_and_swapqi): Define.
5713 (HAVE_sync_compare_and_swaphi): Likewise.
5714 (HAVE_sync_compare_and_swapsi): Likewise.
5716 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
5718 * config/mips/p5600.md: Add missing cpu tests.
5720 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5722 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
5723 (vmla_f64): Likewise.
5724 (vfms_f64): Likewise.
5725 (vmls_f64): Likewise.
5727 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5729 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
5730 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
5732 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5734 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
5735 (vmlal_high_lane_s32): Likewise.
5736 (vmlal_high_lane_u16): Likewise.
5737 (vmlal_high_lane_u32): Likewise.
5738 (vmlsl_high_lane_s16): Likewise.
5739 (vmlsl_high_lane_s32): Likewise.
5740 (vmlsl_high_lane_u16): Likewise.
5741 (vmlsl_high_lane_u32): Likewise.
5743 2014-07-17 Terry Guo <terry.guo@arm.com>
5745 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
5746 (alus_reg): Renamed to alus_sreg.
5747 * config/arm/arm-fixed.md: Change type of non-dsp instructions
5748 from alu_reg to alu_sreg. Change type of dsp instructions from
5749 alu_reg to alu_dsp_reg.
5750 * config/arm/thumb1.md: Likewise.
5751 * config/arm/thumb2.md: Likewise.
5752 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
5753 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
5754 with alu_sreg and alus_sreg.
5755 * config/arm/arm1026ejs.md (alu_op): Likewise.
5756 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
5757 * config/arm/arm926ejs.md (9_alu_op): Likewise.
5758 * config/arm/fa526.md (526_alu_op): Likewise.
5759 * config/arm/fa606te.md (606te_alu_op): Likewise.
5760 * config/arm/fa626te.md (626te_alu_op): Likewise.
5761 * config/arm/fa726te.md (726te_alu_op): Likewise.
5762 * config/arm/fmp626.md (mp626_alu_op): Likewise.
5763 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
5764 alu_sreg, alu_dsp_reg and alus_sreg.
5765 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
5766 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
5767 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
5768 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
5769 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
5770 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
5771 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
5772 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
5773 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
5774 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
5775 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
5776 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
5777 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
5778 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
5779 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
5780 alus_reg to alus_sreg.
5782 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
5784 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
5787 2014-07-17 Richard Biener <rguenther@suse.de>
5789 PR rtl-optimization/61801
5790 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
5791 don't set reg_pending_barrier if it appears in a debug-insn.
5793 2014-07-16 DJ Delorie <dj@redhat.com>
5795 * config/rx/rx.c (rx_option_override): Fix alignment values.
5796 (rx_align_for_label): Likewise.
5798 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
5801 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
5802 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
5803 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
5805 (cris_print_index, cris_print_operand, cris_constant_index_p)
5806 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
5807 (cris_address_cost): Ditto last CONSTANT_P.
5808 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
5809 callers changed. Yield cris_offsettable_symbol for non-PIC
5810 constant symbolic expressions including labels. Yield cris_unspec
5812 (cris_expand_pic_call_address): New parameter MARKERP. Set its
5813 target to pic_offset_table_rtx for calls that will likely go
5814 through PLT, const0_rtx when they can't. All callers changed.
5815 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
5816 symbolic expressions to be PICified. Remove second, redundant,
5817 assert on can_create_pseudo_p returning non-zero. Use
5818 replace_equiv_address_nv, not replace_equiv_address, for final
5820 * config/cris/cris.md ("movsi"): Move variable t to pattern
5821 toplevel. Adjust assert for new cris_symbol_type member. Use
5822 CONSTANT_P instead of CONSTANT_ADDRESS_P.
5823 ("*movsi_internal") <case 9>: Make check for valid unspec operands
5825 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
5826 ("call", "call_value"): Use second incoming operand as a marker
5827 for pic-offset-table-register being used.
5828 ("*expanded_call_non_v32", "*expanded_call_v32")
5829 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
5830 second incoming operand to CALL, match cris_call_type_marker.
5831 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
5832 ("*expanded_call_side"): Ditto. Fix typo in comment.
5833 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
5835 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
5836 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
5837 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
5838 users changed. Add members cris_offsettable_symbol and cris_unspec.
5839 (cris_symbol_type): Rename from cris_pic_symbol_type.
5840 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
5842 * config/cris/cris-protos.h (cris_symbol_type_of,
5843 cris_expand_pic_call_address): Adjust prototypes.
5844 (cris_legitimate_constant_p): New prototype.
5846 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
5847 an existing tmake_file. Don't add t-slibgcc and t-linux.
5849 2014-07-17 Jason Merrill <jason@redhat.com>
5852 * symtab.c (symtab_remove_from_same_comdat_group): Also
5853 set_comdat_group to NULL_TREE.
5854 (verify_symtab): Fix diagnostic.
5856 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
5859 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
5861 2014-07-16 Dodji Seketeli <dodji@redhat.com>
5863 Support location tracking for built-in macro tokens
5864 * input.h (is_location_from_builtin_token): New function declaration.
5865 * input.c (is_location_from_builtin_token): New function definition.
5866 * toplev.c (general_init): Tell libcpp what the pre-defined
5867 spelling location for built-in tokens is.
5869 2014-07-16 Jakub Jelinek <jakub@redhat.com>
5871 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
5872 on the FUNCTION_DECL.
5874 2014-07-16 Richard Biener <rguenther@suse.de>
5877 * doc/extend.texi (always_inline): Clarify.
5879 2014-07-15 Eric Christopher <echristo@gmail.com>
5881 * doc/invoke.texi (Link Options): Document -z option.
5883 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
5885 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
5886 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
5888 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
5890 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
5892 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
5894 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
5895 varpool_assemble_decl.
5896 * varpool.c (varpool_assemble_decl): Assert that node->definition is
5899 2014-07-15 Michael Matz <matz@suse.de>
5901 PR rtl-optimization/61772
5902 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
5904 2014-07-15 Richard Biener <rguenther@suse.de>
5906 * opts.c (default_options_table): Disable bit-ccp at -Og.
5908 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
5910 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
5912 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
5914 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
5915 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
5916 call langhook for unknown declaration.
5917 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
5918 * tree.h (DECL_ARGUMENTS): Update.
5919 * print-tree.c (print_node): Update.
5920 * tree-core.h (tree_decl_non_common): Remove arguments.
5921 (tree_function_decl): Add arguments.
5923 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
5925 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
5927 2014-07-14 Richard Biener <rguenther@suse.de>
5929 PR tree-optimization/61779
5930 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
5931 simplifying a condition.
5933 2014-07-14 Richard Biener <rguenther@suse.de>
5935 * builtins.c (c_strlen): Make only_value == 2 really only
5936 affect warning generation.
5938 2014-07-14 Richard Biener <rguenther@suse.de>
5940 PR tree-optimization/61757
5941 PR tree-optimization/61783
5942 PR tree-optimization/61787
5943 * tree-ssa-dom.c (record_equality): Revert canonicalization
5944 change and add comment.
5945 (propagate_rhs_into_lhs): Revert previous fix, removing
5946 loop depth restriction again.
5948 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5950 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
5951 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
5952 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
5953 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
5954 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
5955 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
5956 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
5958 2014-07-14 Richard Biener <rguenther@suse.de>
5960 * cgraph.h (decl_in_symtab_p): Make inline.
5962 2014-07-14 Jakub Jelinek <jakub@redhat.com>
5965 * doc/invoke.texi (-Wmemset-transposed-args): Document.
5968 * config/i386/i386.c (classify_argument): Don't merge classes above
5971 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
5973 * cgraph.h (symtab_node): Add nonzero_address.
5974 (decl_in_symtab_p): Break out from ...
5975 (symtab_get_node): ... here.
5976 * fold-const.c: Include cgraph.h
5977 (tree_single_nonzero_warnv_p): Use symtab to determine
5978 if symbol is non-zero.
5979 * symtab.c (symtab_node::nonzero_address): New method.
5981 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
5983 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
5984 forgotten in previous commit.
5986 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
5988 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
5990 * ipa-devirt.c: Include stor-layout.h and intl.h
5991 (odr_subtypes_equivalent_p): New function.
5992 (warn_odr): New function.
5993 (warn_type_mismatch): New function.
5994 (odr_types_equivalent_p): New function.
5995 (add_type_duplicate): Use it.
5996 * common.opt (Wodr): New flag.
5997 * doc/invoke.texi (Wodr): Document new warning.
5999 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
6001 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
6002 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
6003 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
6004 (varpool_get_constructor): Push CTORS_IN timevar.
6005 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
6007 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
6009 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
6010 Remove VOID_FTYPE_PUSHORT.
6011 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
6012 Change code to USHORT_FTYPE_VOID.
6013 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
6014 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
6015 (ix86_atomic_assign_expand_fenv): Update for
6016 __builtin_ia32_fnstsw changes.
6017 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
6018 (fnstsw): Change operand 0 to nonimmediate operand.
6020 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
6022 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
6023 (varpool_get_constructor): New function.
6024 (varpool_ctor_useable_for_folding_p): Break out from ...
6025 (ctor_for_folding): ... here; use varpool_get_constructor.
6026 (varpool_assemble_decl): Likewise.
6027 * lto-streamer.h (struct output_block): Turn cgraph_node
6029 (lto_input_variable_constructor): Declare.
6030 * ipa-visibility.c (function_and_variable_visibility): Use
6031 varpool_get_constructor.
6032 * cgraph.h (varpool_get_constructor): Declare.
6033 (varpool_ctor_useable_for_folding_p): New function.
6034 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
6035 parameter; return error_mark_node for non-trivial constructors.
6036 (lto_write_tree_1, DFS_write_tree): Update use of
6037 get_symbol_initial_value.
6038 (output_function): Update initialization of symbol.
6039 (output_constructor): New function.
6040 (copy_function): Rename to ..
6041 (copy_function_or_variable): ... this one; handle vars too.
6042 (lto_output): Output variable sections.
6043 * lto-streamer-in.c (input_constructor): New function.
6044 (lto_read_body): Rename from ...
6045 (lto_read_body_or_constructor): ... this one; handle vars too.
6046 (lto_input_variable_constructor): New function.
6047 * ipa-prop.c (ipa_prop_write_jump_functions,
6048 ipa_prop_write_all_agg_replacement): Update.
6049 * lto-cgraph.c (compute_ltrans_boundary): Use it.
6050 (output_cgraph_opt_summary): Set symbol to NULL.
6052 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
6054 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
6055 non-polymorphic types.
6056 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
6057 * ipa-devirt.c (types_same_for_odr): Do not explode when one
6058 of types is not polymorphic.
6060 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
6062 * lra-constraints.c (remove_inheritance_pseudos): Process
6063 destination pseudo too.
6065 2014-07-11 Rong Xu <xur@google.com>
6067 * gcov-tool.c (gcov_output_files): Fix build error introduced in
6070 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
6072 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
6073 * config/avr/avr-devices.c (AVR_MCU): Same.
6074 (avr_mcu_types): add text start value to end of device list.
6075 * config/avr/avr-mcus.def: Add text section start for all devices.
6076 (ata5782): Add new avr5 device.
6078 * config/avr/avr-tables.opt: Regenerate.
6079 * config/avr/avr.h: Add declaration for text section start handler.
6080 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
6082 (LINK_SPEC): Include text section start handler to linker spec.
6083 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
6084 pass -Ttext option to linker if the text section start for the device
6086 * config/avr/t-multilib: Regenerate.
6087 * doc/avr-mmcu.texi: Regenerate.
6089 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
6091 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
6092 * config/rs6000/aix52.h (LINK_SPEC): Same.
6093 * config/rs6000/aix53.h (LINK_SPEC): Same.
6094 * config/rs6000/aix61.h (LINK_SPEC): Same.
6095 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
6097 2014-07-11 Roman Gareev <gareevroman@gmail.com>
6099 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
6100 (graphite_verify): New function.
6101 (ivs_params_clear): New function.
6102 (gcc_expression_from_isl_ast_expr_id): New function.
6103 (gcc_expression_from_isl_expr_int): New function.
6104 (binary_op_to_tree): New function.
6105 (ternary_op_to_tree): New function.
6106 (unary_op_to_tree): New function.
6107 (nary_op_to_tree): New function.
6108 (gcc_expression_from_isl_expr_op): New function.
6109 (gcc_expression_from_isl_expression): New function.
6110 (graphite_create_new_loop): New function.
6111 (translate_isl_ast_for_loop): New function.
6112 (get_upper_bound): New function.
6113 (graphite_create_new_loop_guard): New function.
6114 (translate_isl_ast_node_for): New function.
6115 (translate_isl_ast): New function.
6116 (add_parameters_to_ivs_params): New function.
6117 (scop_to_isl_ast): New parameter ip.
6118 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
6120 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
6122 * config/xtensa/predicates.md (call expander): Update for
6123 DECL_SECTION_NAME being string.
6125 2014-07-11 Richard Biener <rguenther@suse.de>
6128 * builtins.c (fold_builtin_memory_op): Inline memory moves that
6129 can be implemented with a single load followed by a single store.
6130 (c_strlen): Only warn when only_value is not 2.
6132 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
6134 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
6136 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
6139 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
6140 (*movhi_bytes): Likewise.
6141 (*arm_movqi_insn): Likewise.
6143 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
6146 * config/alpha/alpha.c: Include tree-pass.h, context.h
6148 (pass_data_handle_trap_shadows): New pass.
6149 (pass_handle_trap_shadows::gate): New pass gate function.
6150 (make_pass_handle_trap_shadows): New function.
6151 (rest_of_handle_trap_shadows): Ditto.
6153 (alpha_align_insns_1): Rename from alpha_align_insns.
6154 (pass_data_align_insns): New pass.
6155 (pass_align_insns::gate): New pass gate function.
6156 (make_pass_aling_insns): New function.
6157 (rest_of_align_insns): Ditto.
6158 (alpha_align_insns): Ditto.
6160 (alpha_option_override): Declare handle_trap_shadows info
6161 and align_insns_info. Register handle_trap_shadows and align_insns
6163 (alpha_reorg): Do not call alpha_trap_shadows and
6164 alpha_align_insn from here.
6166 (alpha_pad_function_end): Do not skip BARRIERs.
6168 2014-07-10 Rong Xu <xur@google.com>
6170 Add gcov-tool: an offline gcda profile processing tool support.
6171 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
6172 (gcov_is_error): Ditto.
6173 (gcov_read_string): Ditto.
6174 (gcov_read_sync): Ditto.
6175 * gcov-io.h: Move counter defines to gcov-counter.def.
6176 * gcov-dump.c (tag_counters): Use gcov-counter.def.
6177 * coverage.c: Ditto.
6178 * gcov-tool.c: Offline gcda profile processing tool.
6179 (unlink_gcda_file): Remove one gcda file.
6180 (unlink_profile_dir): Remove gcda files from the profile path.
6181 (gcov_output_files): Output gcda files to an output dir.
6182 (profile_merge): Merge two profiles in directory.
6183 (print_merge_usage_message): Print merge usage.
6184 (merge_usage): Print merge usage and exit.
6185 (do_merge): Driver for profile merge sub-command.
6186 (profile_rewrite): Rewrite profile.
6187 (print_rewrite_usage_message): Print rewrite usage.
6188 (rewrite_usage): Print rewrite usage and exit.
6189 (do_rewrite): Driver for profile rewrite sub-command.
6190 (print_usage): Print gcov-info usage and exit.
6191 (print_version): Print gcov-info version.
6192 (process_args): Process arguments.
6193 (main): Main routine for gcov-tool.
6194 * Makefile.in: Build and install gcov-tool.
6195 * gcov-counter.def: New file split from gcov-io.h.
6196 * doc/gcc.texi: Include gcov-tool.texi.
6197 * doc/gcov-tool.texi: Document for gcov-tool.
6199 2014-07-10 Richard Biener <rguenther@suse.de>
6201 PR tree-optimization/61757
6202 * tree-ssa-dom.c (loop_depth_of_name): Restore.
6203 (propagate_rhs_into_lhs): Revert part of last change.
6205 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
6207 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
6210 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
6213 * function.c (allocate_struct_function): Revert r188667 change.
6215 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
6217 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
6219 * doc/install.texi: Remove links to defunct package providers for
6222 2014-07-09 Tom de Vries <tom@codesourcery.com>
6224 * final.c (get_call_fndecl): Declare.
6225 (self_recursive_call_p): New function.
6226 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
6228 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
6230 * ipa-devirt.c (record_node): Walk through aliases.
6232 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
6234 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
6236 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
6239 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
6241 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
6243 * ipa-visibility.c (function_and_variable_visibility): Remove
6244 temporary hack disabling local aliases on AIX.
6246 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
6248 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
6249 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
6251 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
6253 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
6254 * rs6000/rs6000.c: Inline output of .set instruction.
6255 (declare_alias_data): New struct.
6256 (rs6000_declare_alias): New function.
6257 (rs6000_xcoff_declare_function_name): Use it.
6258 (rs6000_xcoff_declare_object_name): New function.
6259 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
6260 (ASM_OUTPUT_DEF): Turn to empty definition.
6262 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
6265 * hash-table.h: use hash_table::value_type instead of
6266 Descriptor::value_type in the return types of several methods.
6268 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
6270 * tree-pass.h (pass_data): Remove has_execute member.
6271 * passes.c (execute_one_pass): Don't check pass->has_execute.
6272 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
6273 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
6274 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
6275 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
6276 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
6277 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
6278 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
6279 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
6280 gimple-low.c, gimple-ssa-isolate-paths.c,
6281 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
6282 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
6283 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
6284 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
6285 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
6286 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
6287 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
6288 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
6289 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
6290 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
6291 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
6292 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
6293 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
6294 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
6295 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
6296 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
6297 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
6298 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
6299 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
6300 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
6301 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
6302 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
6303 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
6304 web.c: Remove initializer for pass_data::has_execute.
6306 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
6308 * graphite-htab.h: Use hash_map instead of hash_table.
6309 * graphite-clast-to-gimple.c: Adjust.
6310 * passes.c: Use hash_map instead of hash_table.
6312 * sese.h: Remove now unused code.
6314 2014-07-08 Sriraman Tallam <tmsriram@google.com>
6317 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
6320 2014-07-08 Jakub Jelinek <jakub@redhat.com>
6322 PR rtl-optimization/61673
6323 * combine.c (simplify_comparison): Test just mode's sign bit
6324 in tmode rather than the sign bit and any bits above it.
6326 2014-07-08 Roman Gareev <gareevroman@gmail.com>
6328 * graphite-isl-ast-to-gimple.c (generate_isl_context):
6329 Add __isl_give to the declaration.
6330 (generate_isl_schedule): Likewise.
6331 (scop_to_isl_ast): Likewise.
6333 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6335 * config/arm/arm.c (cortexa5_extra_costs): New table.
6336 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
6338 2014-07-08 Jakub Jelinek <jakub@redhat.com>
6340 PR tree-optimization/61725
6341 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
6342 range, use range_includes_zerop_p instead of integer_zerop on
6343 vr0->min, only use log2 of max if min is not negative.
6345 2014-07-08 Richard Biener <rguenther@suse.de>
6347 * tree-ssa-dom.h (loop_depth_of_name): Remove.
6348 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
6349 restriction on loop depth difference.
6350 (record_equality): Likewise.
6351 (propagate_rhs_into_lhs): Likewise. Simplify condition.
6352 (loop_depth_of_name): Remove.
6353 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
6354 restriction on loop depth difference.
6355 (init_copy_prop): Likewise.
6357 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
6359 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
6361 (walk_aliased_vdefs): Likewise.
6362 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
6363 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
6364 (detect_type_change_from_memory_writes): Check if entry was reached.
6366 2014-07-08 Richard Biener <rguenther@suse.de>
6368 PR tree-optimization/61681
6369 * tree-ssa-structalias.c (find_what_var_points_to): Expand
6370 NONLOCAL inside ESCAPED.
6372 2014-07-08 Richard Biener <rguenther@suse.de>
6374 PR tree-optimization/61680
6375 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6376 Handle properly all read-write dependences with group accesses.
6378 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
6380 PR tree-optimization/61576
6381 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
6382 block containing reduction statement is predecessor of phi basi block.
6384 2014-07-08 Marek Polacek <polacek@redhat.com>
6387 * fold-const.c (round_up_loc): Change the parameter type.
6389 * fold-const.h (round_up_loc): Adjust declaration.
6390 * stor-layout.c (finalize_record_size): Check for too large types.
6392 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
6394 * symtab.c: Include calls.h.
6395 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
6397 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
6399 * config/rs6000/rs6000.c (output_vec_const_move): Handle
6400 little-endian code generation.
6401 * config/rs6000/spe.md (spe_evmergehi): Rename to...
6402 (vec_perm00_v2si): ... this. Handle little-endian code generation.
6403 (spe_evmergehilo): Rename to...
6404 (vec_perm01_v2si): ... this. Handle little-endian code generation.
6405 (spe_evmergelo): Rename to...
6406 (vec_perm11_v2si): ... this. Handle little-endian code generation.
6407 (spe_evmergelohi): Rename to...
6408 (vec_perm10_v2si): ... this. Handle little-endian code generation.
6409 (spe_evmergehi, spe_evmergehilo): New expanders.
6410 (spe_evmergelo, spe_evmergelohi): Likewise.
6411 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
6412 (*frob_tf_ti): Likewise.
6413 (*frob_<mode>_di_2): Likewise.
6414 (*frob_tf_di_8_2): Likewise.
6415 (*frob_di_<mode>): Likewise.
6416 (*frob_ti_tf): Likewise.
6417 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
6418 (*frob_ti_<mode>_8_2): Likewise.
6419 (*frob_ti_tf_2): Likewise.
6420 (mov_si<mode>_e500_subreg0): Rename to...
6421 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
6423 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
6424 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
6425 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
6426 the big endianness only.
6427 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
6428 (*mov_si<mode>_e500_subreg0_2): Rename to...
6429 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
6430 big big endianness only.
6431 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
6432 (*mov_si<mode>_e500_subreg4): Rename to...
6433 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
6435 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
6436 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
6437 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
6438 the big endianness only.
6439 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
6441 (*mov_si<mode>_e500_subreg4_2): Rename to...
6442 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
6444 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
6445 (*mov_sitf_e500_subreg8): Rename to...
6446 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
6448 (*mov_sitf_e500_subreg8_le): New instruction pattern.
6449 (*mov_sitf_e500_subreg8_2): Rename to...
6450 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
6452 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
6453 (*mov_sitf_e500_subreg12): Rename to...
6454 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
6456 (*mov_sitf_e500_subreg12_le): New instruction pattern.
6457 (*mov_sitf_e500_subreg12_2): Rename to...
6458 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
6460 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
6462 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
6464 * asan.c (instrument_strlen_call): Do not instrument first byte
6465 in strlen if already instrumented.
6467 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6469 * config/arm/arm.opt (mwords-little-endian): Delete.
6470 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
6471 of TARGET_LITTLE_WORDS.
6472 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
6473 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
6475 * doc/invoke.texi: Remove references to -mwords-little-endian.
6477 2014-07-07 Jakub Jelinek <jakub@redhat.com>
6479 * expmed.c (struct init_expmed_rtl): Change all fields but
6480 pow2 and cint from struct rtx_def to rtx.
6481 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
6482 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
6485 2014-07-06 Marek Polacek <polacek@redhat.com>
6488 * doc/invoke.texi: Document -Wsizeof-array-argument.
6490 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
6492 * wide-int.h (wide_int_storage): Change declaration from struct
6495 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
6497 * cgraph.c (cgraph_create_indirect_edge): Update call of
6498 get_polymorphic_call_info.
6499 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
6500 (possible_polymorphic_call_targets): Add parameter call.
6501 (decl_maybe_in_construction_p): New predicate.
6502 (get_polymorphic_call_info): Add parameter call;
6503 use decl_maybe_in_construction_p.
6504 * gimple-fold.c (fold_gimple_assign): Update use of
6505 possible_polymorphic_call_targets.
6506 (gimple_fold_call): Likewise.
6507 * ipa-prop.c: Inlcude calls.h
6508 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
6509 (param_type_may_change_p): New predicate.
6510 (detect_type_change_from_memory_writes): Break out from ...
6511 (detect_type_change): ... this one; use param_type_may_change_p.
6512 (detect_type_change_ssa): Use param_type_may_change_p.
6513 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
6515 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
6518 * config/arm/arm-protos.h (arm_legitimate_address_p,
6519 arm_is_constant_pool_ref): Add prototypes.
6520 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
6521 (arm_is_constant_pool_ref) New function.
6522 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
6523 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
6524 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
6525 operand. Remove pool_range and neg_pool_range attributes.
6526 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
6527 pool_range and neg_pool_range attributes.
6528 * config/arm/constraints.md (Uh): New constraint.
6529 (Uq): Don't allow constant pool references.
6531 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
6533 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
6534 (move_lo_quad_internal_be_<mode>): Likewise.
6535 (move_lo_quad_<mode>): Convert to define_expand.
6536 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
6537 (aarch64_simd_move_hi_quad_be_<mode>): New.
6538 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
6539 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
6540 (aarch64_combinez_be<mode>): New.
6541 (aarch64_combine<mode>): Convert to define_expand.
6542 (aarch64_combine_internal<mode>): New.
6543 (aarch64_simd_combine<mode>): Remove bogus RTL description.
6545 2014-07-04 Tom de Vries <tom@codesourcery.com>
6547 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
6548 combination of earlyclobber and read/write modifiers.
6550 2014-07-04 Tom de Vries <tom@codesourcery.com>
6552 * config/aarch64/aarch64-simd.md
6553 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
6555 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
6558 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
6560 2014-07-04 Jakub Jelinek <jakub@redhat.com>
6563 * cgraphunit.c (expand_thunk): Call free_dominance_info.
6565 PR tree-optimization/61684
6566 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
6567 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
6569 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
6570 Kito Cheng <kito@0xlab.org>
6571 Monk Chiang <sh.chiang04@gmail.com>
6573 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
6574 (nds32_symbol_load_store_p): Move to ...
6575 (nds32_fp_as_gp_check_available): Move to ...
6576 * config/nds32/nds32-fp-as-gp.c: ... here.
6577 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
6580 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
6581 Kito Cheng <kito@0xlab.org>
6582 Monk Chiang <sh.chiang04@gmail.com>
6584 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
6585 (nds32_expand_store_multiple): Move to ...
6586 (nds32_expand_movmemqi): Move to ...
6587 * config/nds32/nds32-memory-manipulation.c: ... here.
6589 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
6590 Kito Cheng <kito@0xlab.org>
6591 Monk Chiang <sh.chiang04@gmail.com>
6593 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
6594 (nds32_output_casesi_pc_relative): Move to ...
6595 (nds32_output_casesi): Move to ...
6596 (nds32_mem_format): Move to ...
6597 (nds32_output_16bit_store): Move to ...
6598 (nds32_output_16bit_load): Move to ...
6599 (nds32_output_32bit_store): Move to ...
6600 (nds32_output_32bit_load): Move to ...
6601 (nds32_output_32bit_load_s): Move to ...
6602 (nds32_output_stack_push): Move to ...
6603 (nds32_output_stack_pop): Move to ...
6604 * config/nds32/nds32-md-auxiliary.c: ... here.
6606 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
6607 Ling-Hua Tseng <uranus@tinlans.org>
6609 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
6610 the purpose of this file.
6612 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
6613 Kito Cheng <kito@0xlab.org>
6614 Monk Chiang <sh.chiang04@gmail.com>
6616 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
6617 (nds32_address_cost): Move implementation to ...
6618 * config/nds32/nds32-cost.c: ... here.
6619 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
6620 (nds32_address_cost_impl): Declare.
6622 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
6623 Kito Cheng <kito@0xlab.org>
6624 Monk Chiang <sh.chiang04@gmail.com>
6626 * config/nds32/nds32.c
6627 (nds32_consecutive_registers_load_store_p): Move to ...
6628 (nds32_valid_multiple_load_store): Move to ...
6629 (nds32_valid_stack_push_pop): Move to ...
6630 (nds32_can_use_bclr_p): Move to ...
6631 (nds32_can_use_bset_p): Move to ...
6632 (nds32_can_use_btgl_p): Move to ...
6633 (nds32_can_use_bitci_p): Move to ...
6634 * config/nds32/nds32-predicates.c: ... here.
6636 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
6637 Kito Cheng <kito@0xlab.org>
6638 Monk Chiang <sh.chiang04@gmail.com>
6640 * config/nds32/nds32.c
6641 (nds32_expand_builtin_null_ftype_reg): Move to ...
6642 (nds32_expand_builtin_reg_ftype_imm): Move to ...
6643 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
6644 (nds32_init_builtins): Move implementation to ...
6645 (nds32_expand_builtin): Move implementation to ...
6646 * config/nds32/nds32-intrinsic.c: ... here.
6647 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
6648 (nds32_expand_builtin_impl): Declare.
6650 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
6651 Kito Cheng <kito@0xlab.org>
6652 Monk Chiang <sh.chiang04@gmail.com>
6654 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
6655 (nds32_emit_section_tail_template): Move to ...
6656 (nds32_emit_isr_jmptbl_section): Move to ...
6657 (nds32_emit_isr_vector_section): Move to ...
6658 (nds32_emit_isr_reset_conten): Move to ...
6659 (nds32_check_isr_attrs_conflict): Move to ...
6660 (nds32_construct_isr_vectors_information): Move to ...
6661 (nds32_asm_file_start): Move implementation to ...
6662 (nds32_asm_file_end): Move implementation to ...
6663 * config/nds32/nds32-isr.c: ... here.
6664 * config/nds32/nds32-protos.h
6665 (nds32_check_isr_attrs_conflict): Declare.
6666 (nds32_construct_isr_vectors_information): Declare.
6667 (nds32_asm_file_start_for_isr): Declare.
6668 (nds32_asm_file_end_for_isr): Declare.
6670 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
6671 Kito Cheng <kito@0xlab.org>
6672 Monk Chiang <sh.chiang04@gmail.com>
6674 * config.gcc (nds32*): Add new modules to extra_objs.
6675 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
6676 (nds32be-*-*): Likewise.
6677 * config/nds32/nds32-cost.c: New file.
6678 * config/nds32/nds32-fp-as-gp.c: New file.
6679 * config/nds32/nds32-intrinsic.c: New file.
6680 * config/nds32/nds32-isr.c: New file.
6681 * config/nds32/nds32-md-auxiliary.c: New file.
6682 * config/nds32/nds32-memory-manipulation.c: New file.
6683 * config/nds32/nds32-pipelines-auxiliary.c: New file.
6684 * config/nds32/nds32-predicates.c: New file.
6685 * config/nds32/t-nds32: New file.
6687 2014-07-03 Jakub Jelinek <jakub@redhat.com>
6689 PR tree-optimization/61682
6690 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
6691 using cases and when one of the operands is equal to 1.
6693 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
6695 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
6696 ashr<mode>3): Correct mode of operands[2].
6697 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
6698 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
6699 Correct mode of operands[2]. Fix split condition.
6701 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
6703 * arm.md (arch): Add armv6_or_vfpv3.
6704 (arch_enabled): Add test for the above.
6705 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
6707 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
6709 2014-07-03 Jakub Jelinek <jakub@redhat.com>
6711 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
6712 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
6713 HWI 1 and negate the unsigned value.
6714 * expmed.c (expand_sdiv_pow2): For modes wider than word always
6715 use AND instead of shift.
6716 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
6718 2014-07-03 Marek Polacek <polacek@redhat.com>
6720 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
6721 (-fsanitize=float-divide-by-zero): Move to the table with
6722 -fsanitize=undefined suboptions.
6723 (-fsanitize=float-cast-overflow): Likewise.
6725 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
6727 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
6728 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
6731 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6733 * loop-invariant.c (struct invariant): Add a new member: eqno;
6734 (find_identical_invariants): Update eqno;
6735 (create_new_invariant): Init eqno;
6736 (get_inv_cost): Compute comp_cost with eqno;
6738 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
6740 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
6741 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
6742 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
6743 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
6744 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
6746 2014-07-02 Christian Bruel <christian.bruel@st.com>
6750 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
6751 (make_preds_opaque): Delete.
6752 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
6753 (commit_mode_sets): New function.
6754 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
6755 Process all modes at once.
6756 * basic-block.h (pre_edge_lcm_avs): Declare.
6757 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
6758 Call clear_aux_for_edges. Fix comments.
6759 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
6760 (pre_edge_rev_lcm): Idem.
6761 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
6763 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
6764 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
6766 * config/i386/i386.c (x96_emit_mode_set): Idem.
6767 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
6768 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
6769 (fpscr_toggle) Disallow from delay slot.
6770 * target.def (emit_mode_set): Add prev_mode parameter.
6771 * doc/tm.texi: Regenerate.
6773 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6775 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
6778 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
6780 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
6781 vtable_pointer_value_to_vtable): Constify.
6782 (contains_polymorphic_type_p): Declare.
6783 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
6784 vtable_pointer_value_to_vtable): Constify.
6785 (contains_polymorphic_type_p): New predicate.
6786 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
6788 (ipa_set_ancestor_jf): Likewise.
6789 (detect_type_change): Return false in easy cases.
6790 (compute_complex_assign_jump_func): Require type to contain
6792 (compute_known_type_jump_func): Likewise.
6794 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
6796 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
6798 (type_in_anonymous_namespace_p): Constify argument.
6799 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
6800 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
6801 (main_odr_variant): New function.
6802 (hash_type_name): Make static; update assert; do not ICE on
6804 (types_same_for_odr): Bring here from tree.c; simplify and remove
6805 old structural comparing code that doesn't work for templates.
6806 (odr_hasher::equal): Update assert.
6807 (add_type_duplicate): Return true when bases should be computed;
6808 replace incomplete loader by complete; do not output duplicated
6809 warnings; do not ICE on non-records; set odr_violated flag.
6810 (get_odr_type): Be ready to replace incomplete type by complete
6811 one; work on ODR variants instead of main variants; reorder item
6812 in array so bases have still smaller indexes.
6813 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
6814 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
6816 2014-07-01 Cary Coutant <ccoutant@google.com>
6818 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
6820 (resolve_addr_in_expr): When replacing the rtx in a location list
6821 entry, get a new address table entry.
6822 (dwarf2out_finish): Call index_location_lists even if there are no
6823 addr_index_table entries yet.
6825 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
6827 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
6828 change for not being obvious.
6830 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
6832 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
6835 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6837 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
6838 (vcagt_f64): Likewise.
6839 (vcale_f64): Likewise.
6840 (vcaled_f64): Likewise.
6841 (vcales_f32): Likewise.
6842 (vcalt_f64): Likewise.
6843 (vcaltd_f64): Likewise.
6844 (vcalts_f32): Likewise.
6846 2014-07-01 Marek Polacek <polacek@redhat.com>
6848 * doc/invoke.texi: Document -Wint-conversion.
6850 2014-07-01 Marek Polacek <polacek@redhat.com>
6853 * doc/invoke.texi: Document -Wincompatible-pointer-types.
6855 2014-07-01 Martin Liska <mliska@suse.cz>
6857 IPA REF alias refactoring
6858 * cgraph.h (iterate_direct_aliases): New function.
6859 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
6860 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
6861 FOR_EACH_ALIAS added.
6862 (cgraph_for_node_and_aliases): Likewise.
6863 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
6864 * ipa-inline.c (reset_edge_caches): Likewise.
6865 (update_caller_keys): Likewise.
6866 * trans-mem.c (ipa_tm_execute): Likewise.
6867 *varpool.c (varpool_analyze_node): Likewise.
6868 (varpool_for_node_and_aliases): Likewise.
6869 * ipa-ref.h (first_alias): New function.
6870 (last_alias): Likewise.
6871 (has_aliases_p): Likewise.
6872 * ipa-ref.c (ipa_ref::remove_reference): Removal function
6873 is sensitive to IPA_REF_ALIASes.
6874 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
6875 are put at the beginning of the list.
6876 (symtab_node::iterate_direct_aliases): New function.
6878 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
6881 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
6883 (write_ts_type_common_tree_pointers): Do not stream fields not set
6884 for incomplete types; do not stream duplicated fields for variants;
6885 sanity check that variant and type match.
6886 (write_ts_type_non_common_tree_pointers): Likewise.
6887 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
6888 TYPE_SIZE whether type is complete.
6889 (lto_input_ts_type_common_tree_pointers): Do same changes as in
6890 write_ts_type_common_tree_pointers
6891 (lto_input_ts_type_non_common_tree_pointers): Likewise.
6893 2014-06-30 Joseph Myers <joseph@codesourcery.com>
6895 * var-tracking.c (add_stores): Return instead of asserting if old
6896 and new values for conditional store are the same.
6898 2014-06-30 Richard Henderson <rth@redhat.com>
6902 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
6903 the cfg if there were any changes.
6904 * passes.def: Revert move of peephole2 after reorder_blocks;
6905 move duplicate_computed_gotos before peephole2.
6907 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
6909 * except.c (emit_note_eh_region_end): New helper function.
6910 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
6911 emit EH_REGION_END note.
6912 * jump.c (cleanup_barriers): Do not split a call and its
6913 corresponding CALL_ARG_LOCATION note.
6915 2014-06-30 Jeff Law <law@redhat.com>
6917 PR tree-optimization/61607
6918 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
6919 deeper into the SSA_NAME_VALUE chain.
6921 2014-06-30 Marek Polacek <polacek@redhat.com>
6923 * convert.c (convert_to_integer): Don't instrument conversions if the
6924 function has no_sanitize_undefined attribute.
6925 * ubsan.c: Don't run the ubsan pass if the function has
6926 no_sanitize_undefined attribute.
6928 2014-06-30 Jakub Jelinek <jakub@redhat.com>
6930 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
6931 -fsanitize=undefined suboptions.
6933 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
6935 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
6936 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
6937 against bigendian and adjust indices.
6939 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
6941 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
6943 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
6946 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
6947 Add alternative; make early clobber. Adjust both split patterns
6948 to use operand 0 as the working register.
6950 2014-06-30 Jakub Jelinek <jakub@redhat.com>
6952 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
6953 as ira_object_id_map might be NULL, or 1.
6955 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6957 * loop-invariant.c (get_inv_cost): Handle register class.
6958 (gain_for_invariant): Check the register pressure of the inv
6959 and its overlapped register class, other than all.
6961 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
6963 * doc/invoke.texi (Optimize Options): Fix descriptions of
6964 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
6966 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
6968 * doc/extend.texi (Function Attributes): Update 'naked' attribute
6971 2014-06-29 Tobias Grosser <tobias@grosser.es>
6974 * graphite-isl-ast-to-gimple.c: Add missing guards.
6976 2014-06-29 Roman Gareev <gareevroman@gmail.com>
6978 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
6979 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
6980 * flag-types.h: Add new enum fgraphite_generator.
6981 * graphite-isl-ast-to-gimple.c: New.
6982 * graphite-isl-ast-to-gimple.h: New.
6983 * graphite.c (graphite_transform_loops): Add choice of Graphite
6984 code generator, which depends on flag_graphite_code_gen.
6986 2014-06-29 Roman Gareev <gareevroman@gmail.com>
6988 * graphite-dependences.c (subtract_commutative_associative_deps):
6989 Add NULL checking of the following variables: must_raw_no_source,
6990 may_raw_no_source, must_war_no_source, may_war_no_source,
6991 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
6992 must_war, may_war, must_waw, may_waw.
6994 2014-06-29 Roman Gareev <gareevroman@gmail.com>
6996 * graphite-clast-to-gimple.c: gloog is renamed to
6997 graphite_regenerate_ast_cloog. gloog_error is renamed to
6998 graphite_regenerate_error.
6999 * graphite-clast-to-gimple.h: The definition of the struct
7000 bb_pbb_def is moved to graphite-htab.h.
7001 Add inclusion of the hash-table.h.
7002 * graphite-htab.h: The declaration of the function gloog is moved
7003 to graphite-clast-to-gimple.h and renamed to
7004 graphite_regenerate_ast_cloog.
7005 * graphite.c (graphite_transform_loops): gloog is renamed
7006 to graphite_regenerate_ast_cloog.
7008 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
7010 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
7012 (write_ts_type_common_tree_pointers): Do not stream fields not set
7013 for incomplete types; do not stream duplicated fields for variants;
7014 sanity check that variant and type match.
7015 (write_ts_type_non_common_tree_pointers): Likewise.
7016 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
7017 TYPE_SIZE whether type is complete.
7018 (lto_input_ts_type_common_tree_pointers): Do same changes as in
7019 write_ts_type_common_tree_pointers
7020 (lto_input_ts_type_non_common_tree_pointers): Likewise.
7022 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
7024 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
7026 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
7028 * tree-inline.c (remap_type_1): Do not duplicate fields
7029 that are shared in between type and its main variant.
7031 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
7033 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
7035 (ipa_set_ancestor_jf) Likewise.
7036 (check_stmt_for_type_change): Check that we work on main variant.
7037 (detect_type_change): Look into main variant.
7038 (compute_known_type_jump_func): Check that main variant has BINFO.
7040 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
7042 * ipa-devirt.c (set_type_binfo): New function.
7043 (add_type_duplicate): Use it.
7044 (get_odr_type): Sanity check that binfos points to main variants.
7045 (get_class_context): Be sure the context's outer_type is main variant.
7046 (contains_type_p): Walk main variant.
7047 (get_polymorphic_call_info_for_decl): Set outer_type to be
7049 (get_polymorphic_call_info): Likewise.
7050 (possible_polymorphic_call_targets): Sanity check that we operate
7053 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
7055 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
7057 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7059 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
7060 accidental change due to wide-int branch merge.
7062 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7064 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
7065 compressed debug support.
7066 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
7067 * configure: Regenerate.
7068 * config.in: Regenerate.
7069 * common.opt (compressed_debug_sections): New enum.
7070 (gz, gz=): New options.
7071 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
7072 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
7073 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
7074 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
7075 LINK_COMPRESS_DEBUG_SPEC.
7076 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
7077 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
7078 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
7079 (Debugging Options): Document -gz[=type].
7081 2014-06-27 Martin Jambor <mjambor@suse.cz>
7084 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
7085 args_to_skip, use those from node instead. Copy args_to_skip and
7086 combined_args_to_skip from node to the new thunk.
7087 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
7088 (cgraph_create_virtual_clone): Moved computation of
7089 combined_args_to_skip...
7090 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
7092 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
7094 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
7095 redundant diagnostic machinary.
7097 2014-06-27 Richard Biener <rguenther@suse.de>
7099 * tree-ssa-math-opts.c (bswap_replace): Fix
7100 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
7102 2014-06-27 Martin Liska <mliska@suse.cz>
7104 * gimple.h (gimple_location_safe): New function introduced.
7105 * cgraphunit.c (walk_polymorphic_call_targets): Usage
7106 of gimple_location_safe replaces gimple_location.
7107 (gimple_fold_call): Likewise.
7108 * ipa-devirt.c (ipa_devirt): Likewise.
7109 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7110 * ipa.c (walk_polymorphic_call_targets): Likewise.
7111 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
7113 2014-06-27 Jakub Jelinek <jakub@redhat.com>
7115 PR tree-optimization/57233
7116 PR tree-optimization/61299
7117 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
7119 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
7120 would be lowered to scalar shifts, check if corresponding
7121 shifts and vector BIT_IOR_EXPR are supported and don't lower
7122 or lower just to narrower vector type in that case.
7123 * expmed.c (expand_shift_1): Fix up handling of vector
7126 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
7129 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
7131 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
7133 * doc/invoke.texi (-fsemantic-interposition): Document.
7134 * common.opt (fsemantic-interposition): New flag.
7135 * varasm.c (decl_replaceable_p): Use it.
7137 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7140 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
7141 extraction other than index 3.
7143 2014-06-26 Teresa Johnson <tejohnson@google.com>
7145 * doc/invoke.texi: Fix typo.
7146 * dumpfile.c: Add support for documented -fdump-* options
7147 optimized/missed/note/optall.
7149 2014-06-26 Martin Jambor <mjambor@suse.cz>
7151 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
7152 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
7153 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
7154 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
7155 * opts.c (default_options_optimization): Set
7156 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
7157 * doc/invoke.texi (allow-load-data-races)
7158 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
7159 (allow-store-data-races): Document the new default.
7161 2014-06-26 Martin Jambor <mjambor@suse.cz>
7163 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
7164 renamed to ipa_impossible_devirt_target. Fix typo.
7165 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
7166 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
7167 ipa_impossible_devirt_target.
7169 2014-06-26 Richard Biener <rguenther@suse.de>
7171 PR tree-optimization/61607
7172 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
7173 explaining why we restrict copies on loop depth.
7174 * tree-ssa-dom.c (cprop_operand): Remove restriction on
7176 (record_equivalences_from_phis): Instead add it here.
7178 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
7180 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
7181 (LTO_WRAPPER_OBJS): New variable.
7182 (lto-wrapper$(exeext)): Use it.
7183 * collect2.c: Include "collect-utils.h".
7184 (verbose, debug): Remove variables.
7185 (at_file_supplied): No longer static.
7186 (tool_name): New variable.
7187 (do_wait, fork_execute, maybe_unlink): Don't declare.
7188 (tool_cleanup): No longer static.
7189 (notice): Remove function.
7190 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
7192 (collect_wait, do_wait, collect_execute): Remove functions.
7193 (maybe_unlink): No longer static.
7194 * collect2.h (verbose, debug): Don't declare.
7195 (at_file_supplied): Declare.
7196 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
7198 (collect_execute): Replace with implementation from collect2, plus a
7199 new arg use_atfile. All callers changed.
7200 (collect_wait): Replace with implementation from collect2.
7201 (maybe_unlink_file): Remove function.
7202 (fork_execute): Replace with implementation from collect2, plus a
7203 new arg use_atfile. All callers changed.
7204 (do_wait): Add call to utils_cleanup to the error path.
7205 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
7206 (tool_cleanup): Adjust declarations.
7207 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
7208 * tlink.c: Include "collect-utils.h".
7209 (tlink_execute): New arg use_atfile. All callers changed.
7210 (tlink_init, tlink_execute): Remove declarations.
7212 * collect-utils.c (save_temps): New variable.
7213 (do_wait): Use it instead of debug. Use fatal_error.
7214 * collect-utils.h (save_temps): Declare.
7215 * collect2.c (verbose): Rename from vflag. All uses changed.
7216 (tool_cleanup): New function, copied from collect_atexit.
7217 (collect_atexit, handler): Just call it.
7218 * collect2.h (verbose): Declaration renamed from vflag.
7219 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
7222 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
7223 (lto-wrapper$(exeext)): Link with collect-utils.o.
7224 * collect-utils.c: New file.
7225 * collect-utils.h: New file.
7226 * lto-wrapper.c: Include "collect-utils.h".
7227 (args_name): Delete variable.
7228 (tool_name): New variable.
7229 (tool_cleanup): New function.
7230 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
7231 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
7232 (fork_execute): Remove functions.
7234 2014-06-26 Nick Clifton <nickc@redhat.com>
7236 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
7238 * doc/extend.texi (Function Attributes): Fix typo in description
7239 of RX vector attribute.
7241 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
7243 * config.gcc (supported_defaults): Error when passing either
7244 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
7246 2014-06-26 Richard Biener <rguenther@suse.de>
7248 * tree-ssa-dom.c (cprop_operand): Remove restriction on
7249 propagating volatile pointers.
7251 2014-06-26 Richard Biener <rguenther@suse.de>
7253 PR tree-optimization/61607
7254 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
7255 loop if we redirected its latch edge.
7256 (thread_block_1): Do not cancel loops prematurely.
7258 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
7260 * toplev.c (backend_init_target): Move init_emit_regs and
7262 (backend_init) ... here; skip ira_init_once and backend_init_target.
7263 (target_reinit) ... and here; clear
7264 this_target_rtl->lang_dependent_initialized.
7265 (lang_dependent_init_target): Clear
7266 this_target_rtl->lang_dependent_initialized;
7267 break out rtl initialization to ...
7268 (initialize_rtl): ... here; call also backend_init_target
7270 * toplev.h (initialize_rtl): New function.
7271 * function.c: Include toplev.h
7272 (init_function_start): Call initialize_rtl.
7273 * rtl.h (target_rtl): Add target_specific_initialized,
7274 lang_dependent_initialized.
7276 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
7277 Jakub Jelinek <jakub@redhat.com>
7279 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
7281 2014-06-25 Tom de Vries <tom@codesourcery.com>
7283 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
7285 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
7287 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
7288 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
7289 Issue a strict overflow warning if appropriate.
7291 2014-06-25 Martin Liska <mliska@suse.cz>
7294 * Makefile.in: Removed header file (ipa-ref-inline.h).
7295 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
7297 (cgraph_speculative_call_info): Likewise.
7298 (cgraph_for_node_thunks_and_aliases): Likewise.
7299 (cgraph_for_node_and_aliases): Likewise.
7300 (verify_cgraph_node): Likewise.
7301 * cgraph.h: Batch of IPA REF functions become member functions of
7302 symtab_node: add_reference, maybe_add_reference, clone_references,
7303 clone_referring, clone_reference, find_reference,
7304 remove_stmt_references, remove_all_references,
7305 remove_all_referring, dump_references, dump_referring,
7306 has_alias_p, iterate_reference, iterate_referring.
7307 * cgraphbuild.c (record_reference): New IPA REF function used.
7308 (record_type_list): Likewise.
7309 (record_eh_tables): Likewise.
7310 (mark_address): Likewise.
7311 (mark_load): Likewise.
7312 (mark_store): Likewise.
7313 (pass_build_cgraph_edges): Likewise.
7314 (rebuild_cgraph_edge): Likewise.
7315 (cgraph_rebuild_references): Likewise.
7316 (pass_remove_cgraph_callee_edges): Likewise.
7317 * cgraphclones.c (cgraph_clone_node): Likewise.
7318 (cgraph_create_virtual_clone): Likewise.
7319 (cgraph_materialize_clone): Likewise.
7320 (cgraph_materialize_all_clones): Likewise.
7321 * cgraphunit.c (cgraph_reset_node): Likewise.
7322 (cgraph_reset_node): Likewise.
7323 (analyze_function): Likewise.
7324 (assemble_thunks_and_aliases): Likewise.
7325 (expand_function): Likewise.
7326 * ipa-comdats.c (propagate_comdat_group): Likewise.
7327 (enqueue_references): Likewise.
7328 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
7329 (create_specialized_node): Likewise.
7330 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
7331 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
7332 * ipa-inline.c (reset_edge_caches): Likewise.
7333 (update_caller_keys): Likewise.
7334 (execute): Likewise.
7335 * ipa-prop.c (remove_described_reference): Likewise.
7336 (propagate_controlled_uses): Likewise.
7337 (ipa_edge_duplication_hook): Likewise.
7338 (ipa_modify_call_arguments): Likewise.
7339 * ipa-pure-const.c (propagate_pure_const): Likewise.
7340 * ipa-ref-inline.h: Header file removed, functions moved
7341 to symtab_node class.
7342 * ipa-ref.c (remove_reference): New class member function.
7343 (cannot_lead_to_return): New class member function.
7344 (referring_ref_list): Likewise.
7345 (referred_ref_list): Likewise.
7346 Rest of functions moved to symtab_node class.
7347 * ipa-ref.h: New member functions remove_reference,
7348 cannot_lead_to_return, referring_ref_list, referred_ref_list added
7350 ipa_ref_list class has new member functions: first_reference,
7351 first_referring, clear, nreferences.
7352 * ipa-reference.c (analyze_function): New IPA REF function used.
7353 (write_node_summary_p): Likewise.
7354 (ipa_reference_write_optimization_summary): Likewise.
7355 * ipa-split.c (split_function): Likewise.
7356 * ipa-utils.c (ipa_reverse_postorder): Likewise.
7357 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
7358 (function_and_variable_visibility): Likewise.
7359 * ipa.c (has_addr_references_p): Likewise.
7360 (process_references): Argument type changed.
7361 (symtab_remove_unreachable_nodes): New IPA REF function used.
7362 (process_references): Likewise.
7363 (set_writeonly_bit): Likewise.
7364 * lto-cgraph.c: Implementation of new symtab_node member functions
7365 that uses new IPA REF functions.
7366 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
7368 * lto-streamer-out.c (output_symbol_p): Likewise.
7369 * lto-streamer.h (referenced_from_this_partition_p): Argument type
7371 * symtab.c: Implementation of new IPA REF API.
7372 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
7373 (ipa_tm_create_version): Likewise.
7374 (ipa_tm_execute): Likewise.
7375 * tree-emutls.c (gen_emutls_addr): Likewise.
7376 * tree-inline.c (copy_bb): Likewise.
7377 (delete_unreachable_blocks_update_callgraph): Likewise.
7378 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
7379 (varpool_for_node_and_aliases): Likewise.
7381 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
7383 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
7385 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
7388 * fold-const.c (fold_checksum_tree): Use a hash_table of const
7389 tree_node * instead of tree_node *.
7391 (print_fold_checksum): Likewise.
7392 (fold_check_failed): Likewise.
7393 (debug_fold_checksum): Likewise.
7394 (fold_build1_stat_loc): Likewise.
7395 (fold_build2_stat_loc): Likewise.
7396 (fold_build3_stat_loc): Likewise.
7397 (fold_build_call_array_loc): Likewise.
7399 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
7401 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
7402 implementation with call to...
7403 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
7405 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
7408 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
7410 PR tree-optimization/57742
7411 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
7412 after replacing the statement.
7414 2014-06-25 Nick Clifton <nickc@redhat.com>
7416 * config/v850/v850.c (GHS_default_section_names): Change to const
7418 (GHS_current_section_names): Likewise.
7419 (v850_insert_attributes): Do not build strings, just assign the
7420 names directly. Change the type of 'chosen_section' to const
7422 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
7423 directly to the array entry.
7424 * config/v850/v850.h (GHS_default_section_names): Change to const
7426 (GHS_current_section_names): Likewise.
7428 2014-06-25 Jakub Jelinek <jakub@redhat.com>
7430 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
7431 (LANG_HOOKS_DECLS): Add it.
7432 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
7434 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
7435 * langhooks.h (struct lang_hooks_for_decls): Add
7436 omp_clause_linear_ctor hook.
7437 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
7438 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
7439 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
7440 combined simd loop use omp_clause_linear_ctor hook.
7442 2014-06-24 Cong Hou <congh@google.com>
7444 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
7445 pattern recognition.
7446 (type_conversion_p): PROMOTION is true if it's a type promotion
7447 conversion, and false otherwise. Return true if the given expression
7448 is a type conversion one.
7449 * tree-vectorizer.h: Adjust the number of patterns.
7450 * tree.def: Add SAD_EXPR.
7451 * optabs.def: Add sad_optab.
7452 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
7453 * expr.c (expand_expr_real_2): Likewise.
7454 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
7455 * gimple.c (get_gimple_rhs_num_ops): Likewise.
7456 * optabs.c (optab_for_tree_code): Likewise.
7457 * tree-cfg.c (estimate_operator_cost): Likewise.
7458 * tree-ssa-operands.c (get_expr_operands): Likewise.
7459 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
7460 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
7461 * doc/generic.texi: Add document for SAD_EXPR.
7462 * doc/md.texi: Add document for ssad and usad.
7464 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
7466 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
7467 qualification in cast.
7469 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
7471 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
7472 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
7473 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
7474 (tree_function_decl): ... here.
7475 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
7476 streaming of vindex to ...
7477 (write_ts_function_decl_tree_pointers): ... here.
7478 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
7479 Do not stream DECL_VINDEX.
7480 (lto_input_ts_function_decl_tree_pointers): Stream it here.
7482 2014-06-24 Catherine Moore <clm@codesourcery.com>
7483 Sandra Loosemore <sandra@codesourcery.com>
7485 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
7486 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
7487 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
7489 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
7491 * doc/invoke.texi (Warning Options): Remove duplicated
7492 -Wmaybe-uninitialized.
7494 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
7496 PR tree-optimization/57742
7497 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
7498 (handle_builtin_malloc, handle_builtin_memset): New functions.
7499 (strlen_optimize_stmt): Call them.
7500 * passes.def: Move strlen after loop+dom but before vrp.
7502 2014-06-24 Jakub Jelinek <jakub@redhat.com>
7505 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
7506 model family 6 CPU with has_longmode never use a CPU without
7509 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
7512 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
7515 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
7517 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
7518 * dominance.c (iterate_fix_dominators): Use hash_map instead of
7520 * hash-map.h: New file.
7521 * ipa-comdats.c: Use hash_map instead of pointer_map.
7523 * lto-section-out.c: Adjust.
7524 * lto-streamer.h: Replace pointer_map with hash_map.
7525 * symtab.c (verify_symtab): Likewise.
7526 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
7527 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
7528 * tree-streamer.h: Likewise.
7529 * tree-streamer.c: Adjust.
7530 * pointer-set.h: Remove pointer_map.
7532 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
7534 * hash-table.h: Add a template arg to choose between storing values
7535 and storing pointers to values, and then provide partial
7536 specializations for both.
7537 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
7538 should store, not the type values should point to.
7539 * tree-into-ssa.c (var_info_hasher): Likewise.
7540 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
7541 * tree-complex.c: Adjust.
7542 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
7543 table instead of int_tree_map *.
7544 * tree-parloops.c: Adjust.
7545 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
7546 type is being stored.
7547 * tree-vectorizer.c: Adjust.
7549 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
7551 * hash-table.h: Remove a layer of indirection from hash_table so that
7552 it contains the hash table's data instead of a pointer to the data.
7553 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
7554 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
7555 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
7556 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
7557 fold-const.c, gcse.c, ggc-common.c,
7558 gimple-ssa-strength-reduction.c, gimplify.c,
7559 graphite-clast-to-gimple.c, graphite-dependences.c,
7560 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
7561 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
7562 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
7563 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
7564 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
7565 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
7566 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
7567 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
7568 tree-ssa-live.c, tree-ssa-loop-im.c,
7569 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
7570 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
7571 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
7572 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
7573 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
7574 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
7575 vtable-verify.c, vtable-verify.h: Adjust.
7577 2014-06-24 Richard Biener <rguenther@suse.de>
7579 PR tree-optimization/61572
7580 * tree-ssa-sink.c (statement_sink_location): Do not sink
7581 loads from hard registers.
7583 2014-06-24 Jakub Jelinek <jakub@redhat.com>
7585 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
7586 not mentioned in clauses use private clause if the iterator is
7587 declared in #pragma omp for simd, and when adding lastprivate
7588 instead, add it to the outer #pragma omp for too. Diagnose
7589 if the variable is private in outer context. For simd collapse > 1
7590 loops, replace all iterators with temporaries.
7591 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
7592 same even in collapse > 1 loops.
7594 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
7595 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
7597 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
7598 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
7600 (gimplify_adjust_omp_clauses): Likewise.
7601 * omp-low.c (lower_rec_simd_input_clauses,
7602 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
7603 safelen the same as safelen(1).
7604 * tree-nested.c (convert_nonlocal_omp_clauses,
7605 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
7606 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
7607 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
7608 Fixup handling of GIMPLE_OMP_TARGET.
7609 (convert_tramp_reference_stmt, convert_gimple_call): Handle
7612 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
7614 PR tree-optimization/61554
7615 * tree-ssa-propagate.c: Include "bitmap.h".
7616 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
7617 properly update constructor/destructor.
7618 (substitute_and_fold_dom_walker::before_dom_children):
7619 Remove call to gimple_purge_dead_eh_edges, add bb->index to
7620 need_eh_cleaup instead.
7621 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
7624 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
7626 * varpool.c (dump_varpool_node): Dump used_by_single_function.
7627 * tree-pass.h (make_pass_ipa_single_use): New pass.
7628 * cgraph.h (used_by_single_function): New flag.
7629 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
7631 * passes.def (pass_ipa_single_use): Scedule.
7632 * ipa.c (BOTTOM): New macro.
7633 (meet): New function
7634 (propagate_single_user): New function.
7635 (ipa_single_use): New function.
7636 (pass_data_ipa_single_use): New pass.
7637 (pass_ipa_single_use): New pass.
7638 (pass_ipa_single_use::gate): New gate.
7639 (make_pass_ipa_single_use): New function.
7641 2014-06-23 Kai Tietz <ktietz@redhat.com>
7644 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
7645 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
7647 2014-06-23 Richard Biener <rguenther@suse.de>
7649 * tree-ssa-loop.c (gate_loop): New function.
7650 (pass_tree_loop::gate): Call it.
7651 (pass_data_tree_no_loop, pass_tree_no_loop,
7652 make_pass_tree_no_loop): New.
7653 * tree-vectorizer.c: Include tree-scalar-evolution.c
7654 (pass_slp_vectorize::execute): Initialize loops and SCEV if
7656 (pass_slp_vectorize::clone): New method.
7657 * timevar.def (TV_TREE_NOLOOP): New.
7658 * tree-pass.h (make_pass_tree_no_loop): Declare.
7659 * passes.def (pass_tree_no_loop): New pass group with
7662 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
7665 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
7666 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
7668 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
7670 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
7673 2014-06-23 Alan Modra <amodra@gmail.com>
7676 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
7677 to zero on debug statements.
7679 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
7682 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
7683 Ignore third operand if present by marking qualifier_internal.
7685 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
7687 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
7689 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
7690 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
7691 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
7692 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
7693 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
7694 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
7695 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
7696 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
7697 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
7698 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
7699 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
7700 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
7701 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
7702 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
7703 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
7704 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
7705 logic in GCC vector extensions
7707 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
7708 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
7709 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
7710 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
7711 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
7712 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
7713 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
7714 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
7715 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
7716 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
7718 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
7720 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
7723 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
7724 (vget_low_s64): Use __GET_LOW macro.
7725 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
7726 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
7727 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
7728 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
7729 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
7731 (vcombine_s64): Use GCC vector extensions; remove cast.
7732 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
7733 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
7734 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
7735 Fix type signature; remove cast.
7737 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
7740 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
7742 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
7745 (BUILTIN_VD_RE): Remove.
7746 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
7747 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
7748 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
7750 (vreinterpretv1df*, vreinterpret*v1df): New.
7751 (vreinterpretdf*, vreinterpret*df): Remove.
7752 * config/aarch64/aarch64-simd.md (aarch64_create,
7753 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
7754 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
7756 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
7757 (vcreate_f64): Remove cast, use v1df builtin.
7758 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
7759 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
7760 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
7761 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
7762 vmov_n_f64, vst1_f64): Use gcc vector extensions.
7763 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
7764 add range check using __builtin_aarch64_im_lane_boundsi.
7765 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
7766 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
7767 type signature, use gcc vector extensions.
7768 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
7769 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
7770 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
7771 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
7772 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
7773 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
7774 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
7775 vreinterpret_u64_f64): Use v1df builtin not df.
7777 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
7779 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
7782 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
7784 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
7787 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7789 * loop-invariant.c (pre_check_invariant_p): New function.
7790 (find_invariant_insn): Call pre_check_invariant_p.
7792 2014-06-22 Richard Henderson <rth@redhat.com>
7795 * compare-elim.c (struct comparison): Add eh_note.
7796 (find_comparison_dom_walker::before_dom_children): Don't eliminate
7797 a redundant comparison in a different EH region. Purge EH edges if
7800 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
7802 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
7803 (var_shift): Use it.
7804 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
7805 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
7806 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
7807 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
7808 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
7809 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
7810 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
7811 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
7812 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
7813 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
7814 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
7815 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
7816 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
7817 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
7818 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
7819 *rotldi3_internal15be): Use the new attribute. Merge register and
7820 integer alternatives.
7822 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
7824 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
7825 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
7826 split, *ashrdi3_internal3 and split): Delete, merge into...
7827 (ashr<mode>3): New expander.
7828 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
7829 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
7831 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
7833 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
7834 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
7835 *rotldi3_internal3 and split): Delete, merge into...
7836 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
7837 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
7838 Use "rotlw" extended mnemonic.
7840 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
7842 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
7843 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
7844 and split, *ashldi3_internal3 and split): Delete, merge into...
7845 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
7846 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
7848 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
7850 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
7851 (lshrsi3, two anonymous define_insns and define_splits,
7852 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
7853 *lshrdi3_internal3 and split): Delete, merge into...
7854 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
7855 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
7857 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
7859 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
7860 Remove "O" alternative.
7862 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
7864 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
7865 (mips_move_from_gpr_cost): Likewise.
7866 (mips_register_move_cost): Update accordingly.
7867 (mips_secondary_reload_class): Remove name of in_p.
7869 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
7872 * config/i386/i386.md (x86_64_shrd, x86_shrd,
7873 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
7875 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7877 * config/nios2/nios2.c: Include "builtins.h".
7879 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
7881 * cgraph.h (tls_model_names): New variable.
7882 * print-tree.c (print_node): Simplify.
7883 * varpool.c (tls_model_names): New variable.
7884 (dump_varpool_node): Output tls model.
7886 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
7888 * ipa-visibility.c (function_and_variable_visibility): Disable
7889 temporarily local aliases for some targets.
7891 2014-06-20 Marek Polacek <polacek@redhat.com>
7893 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
7894 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
7895 into SANITIZE_UNDEFINED.
7896 * doc/invoke.texi: Describe -fsanitize=bounds.
7897 * gimplify.c (gimplify_call_expr): Add gimplification of internal
7898 functions created in the FEs.
7899 * internal-fn.c: Move "internal-fn.h" after "tree.h".
7900 (expand_UBSAN_BOUNDS): New function.
7901 * internal-fn.def (UBSAN_BOUNDS): New internal function.
7902 * internal-fn.h: Don't define internal functions here.
7903 * opts.c (common_handle_option): Add -fsanitize=bounds.
7904 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
7905 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
7906 * tree-core.h: Define internal functions here.
7907 (struct tree_base): Add ifn field.
7908 * tree-pretty-print.c: Include "internal-fn.h".
7909 (dump_generic_node): Handle functions without CALL_EXPR_FN.
7910 * tree.c (get_callee_fndecl): Likewise.
7911 (build_call_expr_internal_loc): New function.
7912 * tree.def (CALL_EXPR): Update description.
7913 * tree.h (CALL_EXPR_IFN): Define.
7914 (build_call_expr_internal_loc): Declare.
7915 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
7917 (ubsan_type_descriptor): Change bool parameter to enum
7918 ubsan_print_style. Adjust the code. Add handling of
7920 (ubsan_expand_bounds_ifn): New function.
7921 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
7922 (ubsan_build_overflow_builtin): Likewise.
7923 (instrument_bool_enum_load): Likewise.
7924 (ubsan_instrument_float_cast): Likewise.
7925 * ubsan.h (enum ubsan_print_style): New enum.
7926 (ubsan_expand_bounds_ifn): Declare.
7927 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
7929 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
7931 * config/rs6000/rs6000.md: Append `DONE' to preparation
7932 statements of `bswap' pattern splitters.
7934 2014-06-20 Tom de Vries <tom@codesourcery.com>
7936 * target.def (call_fusage_contains_non_callee_clobbers): Update
7938 * doc/tm.texi: Regenerate.
7940 2014-06-20 Yury Gribov <y.gribov@samsung.com>
7941 Max Ostapenko <m.ostapenko@partner.samsung.com>
7944 * asan.c (instrument_strlen_call): Fixed instrumentation of
7947 2014-06-20 Martin Jambor <mjambor@suse.cz>
7950 * ipa-prop.c (impossible_devirt_target): New function.
7951 (try_make_edge_direct_virtual_call): Use it, also instead of
7954 2014-06-20 Yury Gribov <y.gribov@samsung.com>
7955 Max Ostapenko <m.ostapenko@partner.samsung.com>
7958 * asan.c (build_check_stmt): Add condition.
7960 2014-06-20 Martin Jambor <mjambor@suse.cz>
7963 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
7966 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7968 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
7970 (VCONQ): Make comment more helpful.
7972 * config/aarch64/aarch64-simd.md
7973 (aarch64_sqdmulh_lane<mode>):
7974 Use VCOND for operands 2. Update lane checking and flipping logic.
7975 (aarch64_sqrdmulh_lane<mode>): Likewise.
7976 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
7977 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
7978 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
7979 attribute of operand 3 to VCOND.
7980 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
7981 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
7982 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
7983 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
7984 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
7985 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
7987 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
7988 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
7989 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
7990 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
7991 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
7992 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
7993 operand to VCOND. Update lane flipping and bounds checking logic.
7994 (aarch64_sqdmlal2_lane<mode>): Likewise.
7995 (aarch64_sqdmlsl_lane<mode>): Likewise.
7996 (aarch64_sqdmull_lane<mode>): Likewise.
7997 (aarch64_sqdmull2_lane<mode>): Likewise.
7998 (aarch64_sqdmlal_laneq<mode>):
7999 Replace VCON usage with VCONQ.
8000 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
8001 (aarch64_sqdmlal2_laneq<mode>): Emit
8002 aarch64_sqdmlal2_laneq<mode>_internal insn.
8003 Replace VCON with VCONQ.
8004 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
8005 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
8006 (aarch64_sqdmull_laneq<mode>): Emit
8007 aarch64_sqdmull_laneq<mode>_internal insn.
8008 Replace VCON with VCONQ.
8009 (aarch64_sqdmull2_laneq<mode>): Emit
8010 aarch64_sqdmull2_laneq<mode>_internal insn.
8011 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
8012 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
8013 of 3rd argument to int16x4_t.
8014 (vqdmlalh_lane_s16): Likewise.
8015 (vqdmlslh_lane_s16): Likewise.
8016 (vqdmull_high_lane_s16): Likewise.
8017 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
8018 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
8019 (vqdmlsl_lane_s16): Likewise.
8020 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
8021 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
8022 (vqdmlals_lane_s32): Likewise.
8023 (vqdmlsls_lane_s32): Likewise.
8024 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
8025 (vqdmulls_lane_s32): Likewise.
8026 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
8027 (vqdmlsl_lane_s32): Likewise.
8028 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
8029 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
8030 (vqrdmulhh_lane_s16): Likewise.
8031 (vqdmlsl_high_lane_s16): Likewise.
8032 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
8033 (vqdmlsl_high_lane_s32): Likewise.
8034 (vqrdmulhs_lane_s32): Likewise.
8036 2014-06-20 Tom de Vries <tom@codesourcery.com>
8038 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
8039 get_call_reg_set_usage.
8041 2014-06-20 Tom de Vries <tom@codesourcery.com>
8043 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
8044 it contains all call_used_regs.
8046 2014-06-20 Tom de Vries <tom@codesourcery.com>
8048 * final.c (collect_fn_hard_reg_usage): Add and use variable
8051 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
8053 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
8054 (set_init_priority, get_init_priority, set_fini_priority,
8055 get_fini_priority): New methods.
8056 * tree.c (init_priority_for_decl): Remove.
8057 (init_ttree): Do not initialize init priority.
8058 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
8059 (decl_priority_info): Remove.
8060 (decl_init_priority_insert): Rewrite.
8061 (decl_fini_priority_insert): Rewrite.
8062 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
8063 tree_priority_map_marked_p): Remove.
8064 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
8065 * lto-streamer-out.c (hash_tree): Do not hash priorities.
8066 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
8067 not output priorities.
8068 (pack_ts_function_decl_value_fields): Likewise.
8069 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
8070 not input priorities.
8071 (unpack_ts_function_decl_value_fields): Likewise.
8072 * symtab.c (symbol_priority_map): Declare.
8073 (init_priority_hash): Declare.
8074 (symtab_unregister_node): Unregister from priority hash, too.
8075 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
8077 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
8078 (symbol_priority_info): New function.
8079 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
8081 * tree-core.h (tree_priority_map): Remove.
8083 2014-06-20 Jakub Jelinek <jakub@redhat.com>
8085 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
8086 0xff to uint64_t before shifting it up.
8088 2014-06-20 Julian Brown <julian@codesourcery.com>
8089 Chung-Lin Tang <cltang@codesourcery.com>
8091 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
8092 TARGET_THUMB1_ONLY. Add comments.
8094 2014-06-19 Tom de Vries <tom@codesourcery.com>
8096 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
8097 return type to void.
8098 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
8100 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8102 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
8103 as "move", from depends_on.
8105 2014-06-19 Terry Guo <terry.guo@arm.com>
8107 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
8110 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
8112 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
8114 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
8116 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
8119 * config/sh/sh.c (prepare_move_operands): Don't process TLS
8120 addresses here if reload in progress or completed.
8122 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
8124 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
8125 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
8126 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
8127 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
8128 (mips_register_priority): New function that implements the target
8129 hook TARGET_REGISTER_PRIORITY.
8130 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
8131 (mips_lra_p): Likewise for TARGET_LRA_P.
8132 (TARGET_REGISTER_PRIORITY): Define macro.
8133 (TARGET_SPILL_CLASS): Likewise.
8134 (TARGET_LRA_P): Likewise.
8135 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
8137 (REG_CLASS_NAMES): Likewise.
8138 (REG_CLASS_CONTENTS): Likewise.
8139 (BASE_REG_CLASS): Use M16_SP_REGS.
8140 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
8141 New set attribute to enable alternatives depending on the register
8143 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
8144 (*lea64): Disable pattern for MIPS16.
8145 * config/mips/mips.opt (mlra): New option.
8147 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
8149 * lra-constraints.c (base_to_reg): New function.
8150 (process_address): Use new function.
8152 2014-06-18 Tom de Vries <tom@codesourcery.com>
8154 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
8155 * config/aarch64/aarch64.c
8156 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
8157 (aarch64_emit_call_insn): New function.
8158 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
8160 * config/aarch64/aarch64.md (define_expand "call_internal")
8161 (define_expand "call_value_internal", define_expand "sibcall_internal")
8162 (define_expand "sibcall_value_internal"): New.
8163 (define_expand "call", define_expand "call_value")
8164 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
8165 expand variant and aarch64_emit_call_insn.
8167 2014-06-18 Radovan Obradovic <robradovic@mips.com>
8168 Tom de Vries <tom@codesourcery.com>
8170 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
8171 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
8173 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
8174 clobbers to CALL_INSN_FUNCTION_USAGE.
8175 (define_expand "sibcall_internal")
8176 (define_expand "sibcall_value_internal"): New.
8177 (define_expand "call", define_expand "call_value"): Add argument to
8179 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
8180 (define_expand "sibcall_value"): Use sibcall_value_internal and
8183 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8185 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
8187 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8189 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
8192 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8194 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
8195 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
8196 annotations. Fix DWARF information.
8198 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8200 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
8201 __udivmoddi4, and fixups for negative operands.
8203 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8205 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
8207 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8209 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
8212 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8214 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
8217 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8219 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
8220 describing register usage on function entry and exit.
8222 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8224 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
8225 (__aeabi_ldivmod): Fix whitespace.
8227 2014-06-18 Andreas Schwab <schwab@suse.de>
8229 * doc/md.texi (Standard Names): Use @itemx for grouped items.
8230 Remove blank line after @item.
8232 2014-06-18 Richard Henderson <rth@redhat.com>
8235 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
8237 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
8239 * config/arm/arm.c (neon_vector_mem_operand): Allow register
8240 POST_MODIFY for neon loads and stores.
8241 (arm_print_operand): Output post-index register for neon loads and
8244 2014-06-18 Richard Biener <rguenther@suse.de>
8246 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
8248 2014-06-18 Richard Biener <rguenther@suse.de>
8250 * tree-pass.h (make_pass_dce_loop): Remove.
8251 * passes.def: Replace pass_dce_loop with pass_dce.
8252 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
8253 changed free niter estimates and reset the scev cache.
8254 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
8255 make_pass_dce_loop): Remove.
8256 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
8257 (fini_copy_prop): Return whether something changed. Always
8258 let substitute_and_fold perform DCE and free niter estimates
8259 and reset the scev cache if so.
8260 (execute_copy_prop): If sth changed schedule cleanup-cfg.
8261 (pass_data_copy_prop): Do not unconditionally schedule
8262 cleanup-cfg or update-ssa.
8264 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
8266 PR tree-optimization/61518
8267 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
8268 reduction var is used in reduction stmt or phi-function only.
8270 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8272 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
8274 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
8276 PR tree-optimization/61517
8277 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
8278 whose rhs's first tree is the source expression instead of the
8280 (find_bswap_or_nop): Likewise.
8281 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
8282 gimple stmt whose rhs's first tree is the source. In the memory source
8283 case, move the stmt to be replaced close to one of the original load to
8284 avoid the problem of a store between the load and the stmt's original
8286 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
8289 2014-06-18 Andreas Schwab <schwab@suse.de>
8291 PR rtl-optimization/54555
8292 * postreload.c (move2add_use_add2_insn): Substitute
8293 STRICT_LOW_PART only if it is cheaper.
8295 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
8297 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
8298 Do not use unspec as call operand. Use memory_operand instead of
8299 memory_nox32_operand and add "m" operand constraint. Disable
8300 pattern for TARGET_X32.
8301 (*sibcall_pop_memory): Ditto.
8302 (*sibcall_value_memory): Ditto.
8303 (*sibcall_value_pop_memory): Ditto.
8304 (sibcall peepholes): Merge SImode and DImode patterns using
8305 W mode iterator. Use memory_operand instead of memory_nox32_operand.
8306 Disable pattern for TARGET_X32. Check if eliminated register is
8307 really dead after call insn. Generate call RTX without unspec operand.
8308 (sibcall_value peepholes): Ditto.
8309 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
8310 instead of memory_nox32_operand. Check if eliminated register is
8311 really dead after call insn. Generate call RTX without unspec operand.
8312 (sibcall_value_pop peepholes): Ditto.
8313 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
8315 2014-06-18 Terry Guo <terry.guo@arm.com>
8318 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
8321 2014-06-18 Olivier Hainque <hainque@adacore.com>
8323 * tree-core.h (tree_block): Add an "end_locus" field, allowing
8324 memorization of the end of block source location.
8325 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
8326 * gimplify.c (gimplify_bind_expr): Propagate the block start and
8327 end source location info we have on the block entry/exit code we
8330 2014-06-18 Richard Biener <rguenther@suse.de>
8332 * common.opt (fssa-phiopt): New option.
8333 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
8335 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
8336 * doc/invoke.texi (-fssa-phiopt): Document.
8338 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8340 * genattrtab.c (n_bypassed): New variable.
8341 (process_bypasses): Initialise n_bypassed.
8342 Count number of bypassed reservations.
8343 (make_automaton_attrs): Allocate space for bypassed reservations
8344 rather than number of bypasses.
8346 2014-06-18 Richard Biener <rguenther@suse.de>
8348 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
8349 we propagated anything.
8350 (substitute_and_fold_dom_walker::before_dom_children): Something
8351 changed if we propagated into PHI arguments.
8352 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
8355 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
8357 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
8359 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
8360 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
8361 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
8362 Introduces alternative way of loads group permutaions.
8363 (vect_transform_grouped_load): Try alternative way of permutations.
8365 2014-06-18 Jakub Jelinek <jakub@redhat.com>
8367 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
8368 changed in ORT_TARGET region, don't jump to do_outer.
8369 (struct gimplify_adjust_omp_clauses_data): New type.
8370 (gimplify_adjust_omp_clauses_1): Adjust for data being
8371 a struct gimplify_adjust_omp_clauses_data pointer instead
8372 of tree *. Pass pre_p as a new argument to
8373 lang_hooks.decls.omp_finish_clause hook.
8374 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
8375 splay_tree_foreach to pass both list_p and pre_p.
8376 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
8377 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
8378 gimplify_adjust_omp_clauses callers.
8379 * langhooks.c (lhd_omp_finish_clause): New function.
8380 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
8381 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
8382 * langhooks.h (struct lang_hooks_for_decls): Add a new
8383 gimple_seq * argument to omp_finish_clause hook.
8384 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
8385 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
8386 (scan_omp_parallel, lower_omp_for): When adding
8387 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
8388 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
8389 * tree-nested.c (convert_nonlocal_omp_clauses,
8390 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
8391 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
8393 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
8395 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
8396 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
8398 2014-06-17 Xinliang David Li <davidxl@google.com>
8400 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
8401 * passes.c (pass_init_dump_file): Do not set initialize
8402 flag to false unconditionally.
8404 2014-06-17 Richard Biener <rguenther@suse.de>
8406 * genopinit.c (main): Use vec<>::qsort method.
8407 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
8409 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
8411 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
8413 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
8414 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
8415 (mips_move_to_gpr_cost): Remove ST_REGS case.
8416 (mips_move_from_gpr_cost): Likewise.
8417 (mips_register_move_cost): Likewise.
8418 (mips_secondary_reload_class): Likewise.
8420 2014-06-17 Richard Biener <rguenther@suse.de>
8422 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
8423 (pass_all_optimizations): Move 3rd copy-prop pass from after
8424 fre to before ifcombine/phiopt.
8426 2014-06-17 Richard Biener <rguenther@suse.de>
8428 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
8429 and allow all blocks to be forwarders.
8431 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
8434 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
8435 variable 'size'; calculate 'size' right in the front; use
8436 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
8437 pcum->aapcs_stack_words.
8439 2014-06-17 Nick Clifton <nickc@redhat.com>
8441 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
8442 (umulhi3, mulsidi3, umulsidi3): Likewise.
8444 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
8447 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
8448 check for section name.
8450 2014-06-17 Richard Biener <rguenther@suse.de>
8452 * tree-ssa-propagate.c: Include domwalk.h.
8453 (substitute_and_fold): Outline main worker into a domwalker ...
8454 (substitute_and_fold_dom_walker::before_dom_children): ... here.
8455 Schedule stmts we can fully propagate for removal. Remove
8457 (substitute_and_fold): Apply a dominator walk to perform
8458 substitution. Process stmts scheduled for removal here.
8460 2014-06-17 Richard Biener <rguenther@suse.de>
8462 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
8465 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
8467 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
8468 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
8469 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
8470 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
8471 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
8473 (get_fpscr) : Likewise.
8475 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
8477 PR rtl-optimization/61325
8478 * lra-constraints.c (valid_address_p): Add forward declaration.
8479 (simplify_operand_subreg): Check address validity before and after
8480 alter_reg of memory subreg.
8482 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
8484 * config/i386/i386.c (decide_alg): Correctly handle
8485 maximum size of stringop algorithm.
8487 2014-06-16 Yury Gribov <y.gribov@samsung.com>
8489 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
8491 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
8493 PR rtl-optimization/61522
8494 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
8496 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
8499 * symtab.c (symtab_node::reset_section): New method.
8500 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
8502 * cgraph.h (reset_section): Declare.
8503 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
8504 do not consider comdat locals.
8505 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
8507 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
8508 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
8509 reset sections of symbols dragged out of the comdats.
8510 (function_and_variable_visibility): Reset sections of
8513 2014-06-16 Richard Biener <rguenther@suse.de>
8515 PR tree-optimization/61482
8516 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
8517 [-INF(OVF), +INF(OVF)] range.
8519 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8521 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
8522 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
8523 handling 32-bit multiplication.
8525 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
8528 * lra-lives.c (process_bb_lives): Skip creating copy during
8529 insn scan when src/dest has constrained to same regno.
8531 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
8533 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
8534 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
8536 2014-06-16 Yury Gribov <y.gribov@samsung.com>
8538 * asan.c (check_func): New function.
8539 (maybe_create_ssa_name): Likewise.
8540 (build_check_stmt_with_calls): Likewise.
8541 (use_calls_p): Likewise.
8542 (report_error_func): Change interface.
8543 (build_check_stmt): Allow non-integer lengths; add support
8545 (asan_instrument): Likewise.
8546 (instrument_mem_region_access): Moved code to build_check_stmt.
8547 (instrument_derefs): Likewise.
8548 (instrument_strlen_call): Likewise.
8549 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
8550 * doc/invoke.texi: Describe new parameter.
8551 * params.def: Define new parameter.
8552 * params.h: Likewise.
8553 * sanitizer.def: Describe new builtins.
8555 2014-06-16 Richard Biener <rguenther@suse.de>
8557 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8558 Make all defs available at the end.
8559 (eliminate): If we remove a PHI node schedule cfg-cleanup.
8561 2014-06-18 Jakub Jelinek <jakub@redhat.com>
8564 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
8566 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
8569 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
8570 initialization. Replace remaining use of uid.
8572 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
8574 * c-family/c-common.c (handle_tls_model_attribute): Use
8576 * c-family/c-common.c (handle_tls_model_attribute): Use
8578 * cgraph.h (struct varpool_node): Add tls_model.
8579 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
8580 * tree.h (DECL_TLS_MODEL): Update.
8581 (DECL_THREAD_LOCAL_P): Check that variable is static.
8582 (decl_tls_model): Declare.
8583 (set_decl_tls_model): Declare.
8584 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
8585 set symbol prorperties.
8586 (get_emutls_init_templ_addr): Cleanup.
8587 (new_emutls_decl): Update.
8588 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
8589 (lto_input_varpool_node): Likewise.
8590 * lto-streamer-out.c (hash_tree): Likewise.
8591 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
8592 not stream DECL_TLS_MODEL.
8593 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
8594 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
8596 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
8598 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
8600 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
8602 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
8603 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
8605 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
8606 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
8607 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
8608 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
8609 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
8610 (df_get_artificial_defs, df_get_artificial_uses)
8611 (df_single_def, df_single_use): Update accordingly.
8612 (df_refs_chain_dump): Take the first element in a linked list as
8613 parameter, rather than a pointer to an array of pointers.
8614 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
8615 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
8616 (df_chain_create_bb_process_use): Likewise.
8617 (df_md_bb_local_compute_process_def): Likewise.
8618 * fwprop.c (process_defs, process_uses): Likewise.
8619 (register_active_defs, update_uses): Likewise.
8620 (forward_propagate_asm): Update for new df_ref linking.
8621 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
8622 (df_null_ref_rec, df_null_mw_rec): Likewise.
8623 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
8625 (df_scan_free_bb_info): Remove check for null artificial_defs.
8626 (df_install_ref_incremental): Adjust for new df_ref linking.
8627 Use a single-element insertion rather than a full sort.
8628 (df_ref_chain_delete_du_chain): Take the first element
8629 in a linked list as parameter, rather than a pointer to an array of
8631 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
8632 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
8633 (df_insn_info_delete): Remove check for null defs and call to
8634 df_scan_free_mws_vec.
8635 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
8636 null rather than df_null_*_rec.
8637 (df_insn_rescan_debug_internal): Likewise, and update null
8638 checks in the same way. Remove check for null defs.
8639 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
8640 Move a single element rather doing a full sort.
8641 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
8643 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
8644 Initialize df_ref and df_mw_hardreg lists to null rather than
8646 (df_ref_compare): Take df_refs as parameter, transferring the
8648 (df_ref_ptr_compare): ...this new function.
8649 (df_sort_and_compress_refs): Update accordingly.
8650 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
8652 (df_mw_ptr_compare): ...this new function.
8653 (df_sort_and_compress_mws): Update accordingly.
8654 (df_install_refs, df_install_mws): Return a linked list rather than
8655 an array of pointers.
8656 (df_refs_add_to_chains): Assert that old lists are empty rather
8658 (df_insn_refs_verify): Don't handle null defs speciailly.
8659 * web.c (union_match_dups): Update for new df_ref linking.
8661 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
8663 * df.h (df_ref_create, df_ref_remove): Delete.
8664 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
8665 (df_ref_remove): Likewise.
8667 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
8669 * df.h (df_single_def, df_single_use): New functions.
8670 * ira.c (find_moveable_pseudos): Use them.
8672 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
8674 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
8675 * df-problems.c (df_note_bb_compute): Use it.
8676 * regstat.c (regstat_bb_compute_ri): Likewise.
8678 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
8680 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
8681 * cse.c (cse_extended_basic_block): Use them.
8682 * dce.c (mark_artificial_use): Likewise.
8683 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
8684 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
8685 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
8686 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
8687 (df_simulate_initialize_backwards): Likewise.
8688 (df_simulate_finalize_backwards): Likewise.
8689 (df_simulate_initialize_forwards): Likewise.
8690 (df_md_simulate_artificial_defs_at_top): Likewise.
8691 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
8692 * regrename.c (init_rename_info): Likewise.
8693 * regstat.c (regstat_bb_compute_ri): Likewise.
8694 (regstat_bb_compute_calls_crossed): Likewise.
8696 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
8698 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
8699 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
8700 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
8701 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
8702 * combine.c (create_log_links): Likewise.
8703 * compare-elim.c (find_flags_uses_in_insn): Likewise.
8704 (try_eliminate_compare): Likewise.
8705 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
8706 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
8707 (remove_reg_equal_equiv_notes_for_defs): Likewise.
8708 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
8709 (word_dce_process_block, dce_process_block): Likewise.
8710 * ddg.c (def_has_ccmode_p): Likewise.
8711 * df-core.c (df_bb_regno_first_def_find): Likewise.
8712 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
8713 * df-problems.c (df_rd_simulate_one_insn): Likewise.
8714 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
8715 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
8716 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
8717 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
8718 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
8719 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
8720 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
8721 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
8722 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
8723 * fwprop.c (local_ref_killed_between_p): Likewise.
8724 (all_uses_available_at, free_load_extend): Likewise.
8725 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
8726 * hw-doloop.c (scan_loop): Likewise.
8727 * ifcvt.c (dead_or_predicable): Likewise.
8728 * init-regs.c (initialize_uninitialized_regs): Likewise.
8729 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
8730 (process_bb_node_lives): Likewise.
8731 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
8732 (find_moveable_pseudos): Likewise.
8733 * loop-invariant.c (check_dependencies, record_uses): Likewise.
8734 * recog.c (peep2_find_free_register): Likewise.
8735 * ree.c (get_defs): Likewise.
8736 * regstat.c (regstat_bb_compute_ri): Likewise.
8737 (regstat_bb_compute_calls_crossed): Likewise.
8738 * sched-deps.c (find_inc, find_mem): Likewise.
8739 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
8740 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
8741 * shrink-wrap.c (requires_stack_frame_p): Likewise.
8742 (prepare_shrink_wrap): Likewise.
8743 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
8744 * web.c (union_defs, pass_web::execute): Likewise.
8745 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
8746 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
8748 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
8750 * lra-assign.c (assign_by_spills): Add code to assign vector regs
8751 to inheritance pseudos.
8752 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
8754 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
8757 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
8758 (BU_MISC_2): Rename to ...
8759 (BU_LDBL128_2): ... this.
8760 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
8761 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
8762 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
8764 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
8765 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
8766 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
8767 (unpacktf_1): Likewise.
8768 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
8769 (__builtin_longdouble_dw1): Likewise.
8770 * doc/sourcebuild.texi (longdouble128): Document.
8772 2014-06-13 Jeff Law <law@redhat.com>
8774 PR rtl-optimization/61094
8775 PR rtl-optimization/61446
8776 * ree.c (combine_reaching_defs): Get the mode for the copy from
8777 the extension insn rather than the defining insn.
8779 2014-06-13 Dehao Chen <dehao@google.com>
8781 * dwarf2out.c (add_linkage_name): Emit more linkage name.
8783 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
8785 * doc/install.texi (--enable-linker-plugin-configure-flags)
8786 (--enable-linker-plugin-flags): Document new flags.
8788 2014-06-13 Martin Jambor <mjambor@suse.cz>
8791 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
8792 cache_token if returning early.
8794 2014-06-13 Nick Clifton <nickc@redhat.com>
8796 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
8797 requested alignment is active.
8798 (LABEL_ALIGN): Likewise.
8799 (LOOP_ALIGN): Likewise.
8801 2014-06-13 Richard Biener <rguenther@suse.de>
8803 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8804 Rewrite to propagate the VN result into all uses where
8805 possible and to remove stmts becoming dead because of that.
8806 (eliminate): Generalize stmt removal handling, remove in
8807 reverse dominator order to support proper debug stmt
8808 generation. Update stmts before removing stmts.
8809 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
8811 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
8813 PR tree-optimization/61375
8814 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
8815 symbolic number cannot be represented in an uint64_t.
8816 (find_bswap_or_nop_1): Likewise.
8818 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
8820 * symtab.c (symtab_node::reset_section): New method.
8821 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
8823 * cgraph.h (reset_section): Declare.
8824 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
8825 do not consider comdat locals.
8826 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
8828 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
8829 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
8830 reset sections of symbols dragged out of the comdats.
8831 (function_and_variable_visibility): Reset sections of
8834 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
8836 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
8837 to use symtab and decl_binds_to_current_def_p
8838 * tree-vectorizer.c (increase_alignment): Increase alignment
8839 of alias target, too.
8841 2014-06-12 Jakub Jelinek <jakub@redhat.com>
8844 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
8845 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
8846 if outer combined construct is distribute.
8847 (gimplify_omp_for): For OMP_DISTRIBUTE set
8848 gimplify_omp_ctxp->distribute.
8849 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
8850 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
8851 mapping into decl map.
8853 2014-06-12 Jason Merrill <jason@redhat.com>
8855 * common.opt (fabi-version): Change default to 0.
8857 2014-06-12 Jason Merrill <jason@redhat.com>
8859 * toplev.c (process_options): Reject -fabi-version=1.
8861 2014-06-12 Jeff Law <law@redhat.com>
8863 PR tree-optimization/61009
8864 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
8865 value when we stop processing a block due to problematic PHIs.
8867 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
8869 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
8870 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
8871 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
8872 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
8873 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
8874 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
8875 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
8876 are not in the spec.
8878 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
8881 * config/aarch64/aarch64-modes.def: Add V1DFmode.
8882 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
8885 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
8887 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
8889 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
8892 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
8893 loading from address spaces.
8895 2014-06-12 Martin Liska <mliska@suse.cz>
8898 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
8899 statement is reachable.
8901 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
8903 * symtab.c (section_hash): New hash.
8904 (symtab_unregister_node): Clear section before freeing.
8905 (hash_section_hash_entry): New haser.
8906 (eq_sections): New function.
8907 (symtab_node::set_section_for_node): New method.
8908 (set_section_1): Update.
8909 (symtab_node::set_section): Take string instead of tree as parameter.
8910 (symtab_resolve_alias): Update.
8911 * cgraph.h (section_hash_entry_d): New structure.
8912 (section_hash_entry): New typedef.
8913 (cgraph_node): Change comdat_group_ to x_comdat_group,
8914 change section_ to x_section and turn into section_hash_entry;
8915 update accestors; put set_section_for_node offline.
8916 * tree.c (decl_section_name): Turn into string.
8917 (set_decl_section_name): Change parameter to be string.
8918 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
8919 * sdbout.c (sdbout_one_type): Update.
8920 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
8921 * varasm.c (IN_NAMED_SECTION, get_named_section,
8922 resolve_unique_section, hot_function_section, get_named_text_section,
8923 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
8924 make_decl_rtl, default_unique_section): Update.
8925 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
8926 (c6x_elf_unique_section): Update.
8927 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
8928 * config/pa/pa.c (pa_function_section): Update.
8929 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
8930 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
8931 * config/arc/arc.c (arc_in_small_data_p): Update.
8932 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
8933 * config/mcore/mcore.c (mcore_unique_section): Update.
8934 * config/mips/mips.c (mips16_build_function_stub): Update.
8935 (mips16_build_call_stub): Update.
8936 (mips_function_rodata_section): Update.
8937 (mips_in_small_data_p): Update.
8938 * config/score/score.c (score_in_small_data_p): Update.
8939 * config/rx/rx.c (rx_in_small_data): Update.
8940 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
8941 (rs6000_xcoff_asm_named_section): Update.
8942 (rs6000_xcoff_unique_section): Update.
8943 * config/frv/frv.c (frv_string_begins_with): Update.
8944 (frv_in_small_data_p): Update.
8945 * config/v850/v850.c (v850_encode_data_area): Update.
8946 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
8947 (bfin_handle_l1_data_attribute): Update.
8948 (bfin_handle_l2_attribute): Update.
8949 * config/mep/mep.c (mep_unique_section): Update.
8950 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
8952 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
8953 (h8300_handle_tiny_data_attribute): Update.
8954 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
8955 (m32r_in_small_data_p): Update.
8956 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
8957 * config/i386/i386.c (ix86_in_large_data_p): Update.
8958 * config/i386/winnt.c (i386_pe_unique_section): Update.
8959 * config/darwin.c (darwin_function_section): Update.
8960 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
8961 * tree-emutls.c (get_emutls_init_templ_addr): Update.
8962 (new_emutls_decl): Update.
8963 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
8964 input_varpool_node): Update.
8965 (ead_string_cst): Turn to ...
8966 (read_string): ... this one.
8967 * dwarf2out.c (secname_for_decl): Update.
8968 * asan.c (asan_protect_global): Update.
8970 2014-06-11 DJ Delorie <dj@redhat.com>
8972 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
8974 * config/rx/rx.c (rx_option_override): Likewise.
8975 (rx_align_for_label): Likewise.
8977 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
8979 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
8981 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
8984 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
8986 * common.md: New file.
8987 * doc/md.texi: Update description of generic, machine-independent
8989 * config/s390/constraints.md (e): Delete.
8990 * Makefile.in (md_file): Include common.md.
8991 * config/m32c/t-m32c (md_file): Likewise.
8992 * genpreds.c (general_mem): New array.
8993 (generic_constraint_letters): Remove constraints now defined by
8995 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
8996 Allow the first character to be '<' or '>' as well.
8997 * genoutput.c (general_mem): New array.
8998 (indep_constraints): Remove constraints now defined by common.md.
8999 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
9000 Remove special handling of 'm'.
9001 * ira-costs.c (record_reg_classes): Remove special handling of
9002 constraints now defined by common.md.
9003 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
9004 * ira-lives.c (single_reg_class): Likewise.
9005 (ira_implicitly_set_insn_hard_regs): Likewise.
9006 * lra-constraints.c (reg_class_from_constraints): Likewise.
9007 (process_alt_operands, process_address, curr_insn_transform): Likewise.
9008 * postreload.c (reload_cse_simplify_operands): Likewise.
9009 * reload.c (push_secondary_reload, scratch_reload_class)
9010 (find_reloads, alternative_allows_const_pool_ref): Likewise.
9011 * reload1.c (maybe_fix_stack_asms): Likewise.
9012 * targhooks.c (default_secondary_reload): Likewise.
9013 * stmt.c (parse_output_constraint): Likewise.
9014 * recog.c (preprocess_constraints): Likewise.
9015 (constrain_operands, peep2_find_free_register): Likewise.
9016 (asm_operand_ok): Likewise, but add a comment saying why 'o'
9017 must be handled specially.
9019 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
9021 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
9022 * genpreds.c (have_const_dbl_constraints): Delete.
9023 (add_constraint): Don't set it.
9024 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
9025 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
9026 constraints using the lookup_constraint logic.
9027 * ira-lives.c (single_reg_class): Likewise.
9028 * ira.c (ira_setup_alts): Likewise.
9029 * lra-constraints.c (process_alt_operands): Likewise.
9030 * recog.c (asm_operand_ok, constrain_operands): Likewise.
9031 * reload.c (find_reloads): Likewise.
9033 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
9035 * genpreds.c (const_int_start, const_int_end): New variables.
9036 (choose_enum_order): Output CONST_INT constraints before memory
9038 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
9040 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
9041 * ira.c (ira_setup_alts): Likewise.
9042 * lra-constraints.c (process_alt_operands): Likewise.
9043 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
9044 * reload.c (find_reloads): Likewise.
9046 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
9048 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
9049 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
9050 * recog.c (preprocess_constraints): Update accordingly.
9052 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
9054 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
9055 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
9056 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
9057 * genpreds.c (print_type_tree): New function.
9058 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
9059 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
9060 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
9061 Write out enum constraint_type and get_constraint_type.
9062 * lra-constraints.c (satisfies_memory_constraint_p): Take a
9063 constraint_num rather than a constraint string.
9064 (satisfies_address_constraint_p): Likewise.
9065 (reg_class_from_constraints): Avoid old constraint macros.
9066 (process_alt_operands, process_address_1): Likewise.
9067 (curr_insn_transform): Likewise.
9068 * ira-costs.c (record_reg_classes): Likewise.
9069 (record_operand_costs): Likewise.
9070 * ira-lives.c (single_reg_class): Likewise.
9071 (ira_implicitly_set_insn_hard_regs): Likewise.
9072 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
9073 * postreload.c (reload_cse_simplify_operands): Likewise.
9074 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
9075 (constrain_operands, peep2_find_free_register): Likewise.
9076 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
9077 (find_reloads, alternative_allows_const_pool_ref): Likewise.
9078 * reload1.c (maybe_fix_stack_asms): Likewise.
9079 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
9080 * targhooks.c (default_secondary_reload): Likewise.
9081 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
9082 to EXTRA_CONSTRAINT_STR.
9083 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
9085 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
9087 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
9088 (write_constraint_satisfied_p_array): ...this new function.
9089 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
9091 (write_insn_preds_c): Update accordingly.
9093 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
9095 * genpreds.c (write_lookup_constraint): Rename to...
9096 (write_lookup_constraint_1): ...this.
9097 (write_lookup_constraint_array): New function.
9098 (write_tm_preds_h): Define lookup_constraint as an inline function
9099 that uses write_lookup_constraint_array where possible.
9100 (write_insn_preds_c): Update for the changes above.
9102 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
9104 * doc/md.texi (regclass_for_constraint): Rename to...
9105 (reg_class_for_constraint): ...this.
9106 * genpreds.c (num_constraints, enum_order, register_start)
9107 (register_end, satisfied_start, memory_start, memory_end)
9108 (address_start, address_end): New variables.
9109 (add_constraint): Count the number of constraints.
9110 (choose_enum_order): New function.
9111 (write_enum_constraint_num): Iterate over enum_order.
9112 (write_regclass_for_constraint): Rename to...
9113 (write_reg_class_for_constraint_1): ...this and update output
9115 (write_constraint_satisfied_p): Rename to...
9116 (write_constraint_satisfied_p_1): ...this and update output
9117 accordingly. Do nothing if all extra constraints are register
9119 (write_insn_extra_memory_constraint): Delete.
9120 (write_insn_extra_address_constraint): Delete.
9121 (write_range_function): New function.
9122 (write_tm_preds_h): Define constraint_satisfied_p and
9123 reg_class_for_constraint as inline functions that do a range check
9124 before calling the out-of-line function. Use write_range_function
9125 to implement insn_extra_{register,memory,address}_constraint,
9126 the first of which is new.
9127 (write_insn_preds_c): Update after above changes to write_* functions.
9128 (main): Call choose_enum_order.
9130 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
9132 PR tree-optimization/61306
9133 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
9134 expression instead of its size.
9135 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
9136 false to prevent optimization when the result is unpredictable due to
9137 arithmetic right shift of signed type with highest byte is set.
9138 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
9139 (init_symbolic_number): Likewise.
9140 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
9141 when the result is unpredictable due to sign extension.
9143 2014-06-11 Terry Guo <terry.guo@arm.com>
9145 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
9146 (*thumb1_addsi3): Ditto.
9147 (*thumb_subdi3): Ditto.
9148 (thumb1_subsi3_insn): Ditto.
9149 (*thumb_mulsi3): Ditto.
9150 (*thumb_mulsi3_v6): Ditto.
9151 (*thumb1_andsi3_insn): Ditto.
9152 (thumb1_bicsi3): Ditto.
9153 (*thumb1_iorsi3_insn): Ditto.
9154 (*thumb1_xorsi3_insn): Ditto.
9155 (*thumb1_ashlsi3): Ditto.
9156 (*thumb1_ashrsi3): Ditto.
9157 (*thumb1_lshrsi3): Ditto.
9158 (*thumb1_rotrsi3): Ditto.
9159 (*thumb1_negdi2): Ditto.
9160 (*thumb1_negsi2): Ditto.
9161 (*thumb1_abssi2): Ditto.
9162 (*thumb1_neg_abssi2): Ditto.
9163 (*thumb1_one_cmplsi2): Ditto.
9164 (*thumb1_zero_extendhisi2): Ditto.
9165 (*thumb1_zero_extendqisi2): Ditto.
9166 (*thumb1_zero_extendqisi2_v6): Ditto.
9167 (thumb1_extendhisi2): Ditto.
9168 (thumb1_extendqisi2): Ditto.
9169 (*thumb1_movdi_insn): Ditto.
9170 (*thumb1_movsi_insn): Ditto.
9171 (*thumb1_movhi_insn): Ditto.
9172 (thumb_movhi_clobber): Ditto.
9173 (*thumb1_movqi_insn): Ditto.
9174 (*thumb1_movhf): Ditto.
9175 (*thumb1_movsf_insn): Ditto.
9176 (*thumb_movdf_insn): Ditto.
9179 (cbranchqi4): Ditto.
9180 (cbranchsi4_insn): Ditto.
9181 (cbranchsi4_scratch): Ditto.
9182 (*negated_cbranchsi4): Ditto.
9183 (*tbit_cbranch): Ditto.
9184 (*tlobits_cbranch): Ditto.
9185 (*tstsi3_cbranch): Ditto.
9186 (*cbranchne_decr1): Ditto.
9187 (*addsi3_cbranch): Ditto.
9188 (*addsi3_cbranch_scratch): Ditto.
9189 (*thumb_cmpdi_zero): Ditto.
9190 (cstoresi_eq0_thumb1): Ditto.
9191 (cstoresi_ne0_thumb1): Ditto.
9192 (*cstoresi_eq0_thumb1_insn): Ditto.
9193 (*cstoresi_ne0_thumb1_insn): Ditto.
9194 (cstoresi_nltu_thumb1): Ditto.
9195 (cstoresi_ltu_thumb1): Ditto.
9196 (thumb1_addsi3_addgeu): Ditto.
9197 (*thumb_jump): Ditto.
9198 (*call_reg_thumb1_v5): Ditto.
9199 (*call_reg_thumb1): Ditto.
9200 (*call_value_reg_thumb1_v5): Ditto.
9201 (*call_value_reg_thumb1): Ditto.
9202 (*call_insn): Ditto.
9203 (*call_value_insn): Ditto.
9204 (thumb1_casesi_internal_pic): Ditto.
9205 (thumb1_casesi_dispatch): Ditto.
9206 (*thumb1_indirect_jump): Ditto.
9207 (prologue_thumb1_interwork): Ditto.
9208 (*epilogue_insns): Ditto.
9209 (consttable_1): Ditto.
9210 (consttable_2): Ditto.
9212 (*thumb1_tablejump): Ditto.
9213 (thumb_eh_return): Ditto.
9214 (define_peephole2): Two of them are thumb1 only and got moved into
9216 (define_split): Six of them are thumb1 only and got moved into new
9218 * config/arm/thumb1.md: New file comprised of above thumb1 only
9221 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9223 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
9224 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
9226 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
9227 (aarch64_crc_builtin_datum): New struct.
9228 (aarch64_crc_builtin_data): New.
9229 (aarch64_init_crc32_builtins): New function.
9230 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
9231 (aarch64_crc32_expand_builtin): New.
9232 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
9233 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
9234 __ARM_FEATURE_CRC32 when appropriate.
9235 (TARGET_CRC32): Define.
9236 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
9237 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
9238 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
9239 (aarch64_<crc_variant>): New pattern.
9240 * config/aarch64/arm_acle.h: New file.
9241 * config/aarch64/iterators.md (CRC): New int iterator.
9242 (crc_variant, crc_mode): New int attributes.
9243 * doc/aarch64-acle-intrinsics.texi: New file.
9244 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
9245 Include aarch64-acle-intrinsics.texi.
9247 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
9249 * tree-vect-data-refs.c (vect_grouped_store_supported): New
9250 check for stores group of length 3.
9251 (vect_permute_store_chain): New permutations for stores group of
9253 * tree-vect-stmts.c (vect_model_store_cost): Change cost
9254 of vec_perm_shuffle for the new permutations.
9256 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
9258 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
9259 table rewriting temporarily on targets not supporting ONE_ONLY.
9261 2014-06-11 Richard Biener <rguenther@suse.de>
9265 2014-06-04 Richard Biener <rguenther@suse.de>
9267 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
9268 TREE_PUBLIC and DECL_EXTERNAL decls.
9270 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
9272 * varasm.c (set_implicit_section): New function.
9273 (resolve_unique_section): Use it to set implicit section
9275 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
9276 (default_function_section): Likewise.
9277 (decl_binds_to_current_def_p): Constify argument.
9278 * varasm.h (decl_binds_to_current_def_p): Update prototype.
9279 * asan.c (asan_protect_global): Use
9280 symtab_get_node (decl)->implicit_section.
9281 * symtab.c (dump_symtab_base): Dump implicit sections.
9282 (verify_symtab_base): Verify sanity of sectoins and comdats.
9283 (symtab_resolve_alias): Alias share the section of its target.
9284 (set_section_1): New function.
9285 (symtab_node::set_section): Move here, recurse to aliases.
9286 (verify_symtab): Check for duplicated symtab lists.
9287 * tree-core.h (implicit_section_name_p): Remove.
9288 * tree-vect-data-refs.c: Include varasm.h.
9289 (vect_can_force_dr_alignment_p): Fix conditional on when
9290 decl bints to current definition; use
9291 symtab_get_node (decl)->implicit_section.
9292 * cgraph.c (cgraph_make_node_local_1): Fix section set.
9293 * cgraph.h (struct symtab_node): Add implicit_section.
9294 (set_section): Rename to ...
9295 (set_section_for_node): ... this one.
9296 (set_section): Declare.
9297 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
9298 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
9299 input_overwrite_node, input_varpool_node): Stream implicit_section.
9300 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
9301 removal; it will fail in LTO.
9303 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9305 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
9306 Change second alternative type to f_mcr.
9307 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
9308 and 12th alternatives' types to f_mcr and f_mrc.
9309 (*movdi_aarch64): Same for 12th and 13th alternatives.
9310 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
9311 (aarch64_movtilow_tilow): Change type to fmov.
9313 2014-06-10 Jiong Wang <jiong.wang@arm.com>
9315 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
9316 (aarch64_save_or_restore_callee_save_registers): Fix layout.
9318 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9320 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
9322 (aarch64_sqrdmulh_lane<mode>): Likewise.
9323 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
9324 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
9325 (aarch64_sqdmulh_laneq<mode>): New expander.
9326 (aarch64_sqrdmulh_laneq<mode>): Likewise.
9327 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
9328 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
9329 (aarch64_sqdmulh_lane<mode>): New expander.
9330 (aarch64_sqrdmulh_lane<mode>): Likewise.
9331 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
9332 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
9333 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
9334 (aarch64_sqdmlal_laneq<mode>): Likewise.
9335 (aarch64_sqdmlsl_lane<mode>): Likewise.
9336 (aarch64_sqdmlsl_laneq<mode>): Likewise.
9337 (aarch64_sqdmlal2_lane<mode>): Likewise.
9338 (aarch64_sqdmlal2_laneq<mode>): Likewise.
9339 (aarch64_sqdmlsl2_lane<mode>): Likewise.
9340 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
9341 (aarch64_sqdmull_lane<mode>): Likewise.
9342 (aarch64_sqdmull_laneq<mode>): Likewise.
9343 (aarch64_sqdmull2_lane<mode>): Likewise.
9344 (aarch64_sqdmull2_laneq<mode>): Likewise.
9346 2014-06-10 Richard Biener <rguenther@suse.de>
9348 PR tree-optimization/61438
9349 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
9350 (eliminate_dom_walker::before_dom_children): Only try to inhibit
9351 insertion of IVs if running PRE.
9352 (eliminate): Adjust.
9353 (pass_pre::execute): Likewise.
9354 (pass_fre::execute): Likewise.
9356 2014-06-10 Richard Biener <rguenther@suse.de>
9359 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
9360 Do not use the main variant for the type comparison.
9361 (ncr_compar): Likewise.
9362 (nonoverlapping_component_refs_p): Likewise.
9364 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
9366 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
9367 REG_CFA_RESTORE mode.
9369 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
9371 * config/i386/i386.c (expand_vec_perm_pblendv): New.
9372 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
9373 expand_vec_perm_pblendv.
9375 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9377 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
9379 Simplify description of __crc32d and __crc32cd intrinsics.
9380 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
9383 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
9386 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
9387 * config.in: Regenerate.
9388 * configure: Likewise.
9390 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
9392 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
9394 (intersect_static_var_sets): Remove.
9395 (propagate): Do not prune local statics.
9397 2014-06-10 Jakub Jelinek <jakub@redhat.com>
9400 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
9401 Set lastprivate_firstprivate even if omp_private_outer_ref
9402 langhook returns true.
9403 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
9404 langhook, call unshare_expr on new_var and call
9405 build_outer_var_ref to get the last argument.
9407 2014-06-10 Marek Polacek <polacek@redhat.com>
9410 * doc/extend.texi: Add cindex for transparent_union.
9412 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
9414 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
9415 init_symbolic_number ().
9417 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
9420 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
9421 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
9422 (verify_rtl_sharing): Likewise.
9424 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
9427 * tree.c (build_qualified_type): Use a canonical type for
9430 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9432 * config/arm/arm-modes.def: Remove XFmode.
9434 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
9437 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
9438 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
9439 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
9440 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
9441 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
9442 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
9443 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
9444 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
9445 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
9447 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
9449 * tree-core.h (tree_decl_with_vis): Remove section_name.
9451 2014-06-09 Kito Cheng <kito@0xlab.org>
9453 * ira.c (ira): Don't call init_caller_save if LRA enabled
9454 since LRA use its own infrastructure to handle that.
9456 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
9458 * symtab.c (dump_symtab_base): Update dumping.
9459 (symtab_make_decl_local): Clear only DECL_COMDAT.
9460 * tree-vect-data-refs.c (Check that variable is static before
9461 tampering with sections.
9462 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
9463 (cgraph_create_virtual_clone): Likewise.
9464 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
9465 (decl_section_name, set_decl_section_name): New accessors.
9466 (find_decls_types_r): Do not walk section name
9467 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
9468 (decl_comdat_group, decl_comdat_group_id): Constify.
9469 (decl_section_name, set_decl_section_name): Update.
9470 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
9471 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
9472 (cgraph_make_node_local_1): Clear section and comdat group.
9473 * cgraph.h (set_comdat_group): Sanity check.
9474 (get_section, set_section): New.
9475 * ipa-comdats.c (ipa_comdats): Use get_section.
9476 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
9477 * lto-streamer-out.c: Do not follow section names.
9478 * c-family/c-common.c (handle_section_attribute): Update.
9479 * lto-cgraph.c (lto_output_node): Output section.
9480 (lto_output_varpool_node): Likewise.
9481 (read_comdat_group): Rename to ...
9482 (read_identifier): ... this one.
9483 (read_string_cst): New function.
9484 (input_node, input_varpool_node): Input section names.
9485 * tree-emutls.c (get_emutls_init_templ_addr): Update.
9486 (new_emutls_decl): Update.
9487 (secname_for_decl): Check section names only of static vars.
9488 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
9489 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
9490 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
9491 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
9492 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
9493 * config/mcore/mcore.c (mcore_unique_section): Likewise.
9494 * config/mips/mips.c (mips16_build_function_stub): Likewise.
9495 * config/v850/v850.c (v850_insert_attributes): Likewise.
9496 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
9498 (h8300_handle_tiny_data_attribute): Likewise.
9499 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
9500 (bfin_handle_l2_attribute): Likewise.
9502 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
9504 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
9505 remove static initializer.
9507 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
9509 * varasm.c (use_blocks_for_decl_p): Check symbol table
9510 instead of alias attribute.
9511 (place_block_symbol): Recurse on aliases.
9513 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
9515 * ipa-visibility.c: Include varasm.h
9516 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
9518 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
9520 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
9523 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
9525 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
9526 from test_insn into GGC space escape via SET_SRC.
9528 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
9530 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
9531 call statement, if any.
9532 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
9533 statements, if any. Tidy up.
9535 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
9538 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
9539 iterators, VSX_D that handles 64-bit types, and VSX_LE that
9540 handles swapping the two 64-bit double words on little endian
9541 systems. Include V1TImode and optionally TImode in VSX_LE so that
9542 these types are properly swapped. Change all of the insns and
9543 splits that do the 64-bit swaps to use VSX_LE.
9544 (vsx_le_perm_load_<mode>): Likewise.
9545 (vsx_le_perm_store_<mode>): Likewise.
9546 (splitters for little endian memory operations): Likewise.
9547 (vsx_xxpermdi2_le_<mode>): Likewise.
9548 (vsx_lxvd2x2_le_<mode>): Likewise.
9549 (vsx_stxvd2x2_le_<mode>): Likewise.
9551 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
9554 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
9555 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
9556 and corresponding splitters. Zero extend general register
9557 or memory input operand to XMM temporary. Enable for
9558 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
9559 (floatunssi<mode>2): Update expander predicate.
9561 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
9563 PR rtl-optimization/61325
9564 * lra-constraints.c (process_address_1): Check scale equal to one
9565 to prevent transformation: base + scale * index => base + new_reg.
9567 2014-06-06 Richard Biener <rguenther@suse.de>
9569 PR tree-optimization/59299
9570 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
9572 (nearest_common_dominator_of_uses): Likewise.
9573 (statement_sink_location): Adjust. Support sinking loads.
9575 2014-06-06 Martin Jambor <mjambor@suse.cz>
9577 * ipa-prop.c (get_place_in_agg_contents_list): New function.
9578 (build_agg_jump_func_from_list): Likewise.
9579 (determine_known_aggregate_parts): Renamed to
9580 determine_locally_known_aggregate_parts. Moved some functionality
9581 to the two functions above, removed bound checks.
9583 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
9585 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
9586 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
9587 (aarch64_progress_pointer): Likewise.
9588 (aarch64_copy_one_part_and_move_pointers): Likewise.
9589 (aarch64_expand_movmen): Likewise.
9590 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
9591 * config/aarch64/aarch64.md (movmem<mode>): New.
9593 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
9595 * targhooks.c (default_add_stmt_cost): Call target specific
9596 hook instead of default one.
9598 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
9600 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
9601 endianness instead of host endianness.
9602 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
9605 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
9608 * function.c (instantiate_decls): Process the saved static chain.
9609 (expand_function_start): If not optimizing, save the static chain
9611 * tree-nested.c (convert_all_function_calls): Always create the static
9612 chain for nested functions if not optimizing.
9614 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
9616 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
9618 2014-06-06 Richard Biener <rguenther@suse.de>
9620 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
9621 (construct_init_block): Likewise.
9622 (construct_exit_block): Likewise.
9623 (pass_expand::execute): Likewise.
9624 * graphite.c (graphite_transforms): Replace check for current_loops
9625 with a check for > 1 loops.
9626 (pass_graphite_transforms::execute): Adjust.
9627 * ipa-split.c (split_function): Remove check for current_loops.
9628 * omp-low.c (expand_parallel_call): Likewise.
9629 (expand_omp_for_init_counts): Likewise.
9630 (extract_omp_for_update_vars): Likewise.
9631 (expand_omp_for_generic): Likewise.
9632 (expand_omp_sections): Likewise.
9633 (expand_omp_target): Likewise.
9634 * tracer.c (tail_duplicate): Likewise.
9635 (pass_tracer::execute): Likewise.
9636 * trans-mem.c (expand_transaction): Likewise.
9637 * tree-complex.c (expand_complex_div_wide): Likewise.
9638 * tree-eh.c (lower_resx): Likewise.
9639 (cleanup_empty_eh_merge_phis): Likewise.
9640 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
9641 current_loops with a check for > 1 loops.
9642 (pass_predcom::execute): Adjust.
9643 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
9644 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
9645 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
9646 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
9647 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
9648 * tree-switch-conversion.c (process_switch): Likewise.
9649 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
9650 * tree-vrp.c (vrp_visit_phi_node): Likewise.
9651 (execute_vrp): Likewise.
9652 * ubsan.c (ubsan_expand_null_ifn): Likewise.
9654 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
9656 * rtl.h (insn_location): Declare.
9657 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
9658 with UNKNOWN_LOCATION.
9659 * emit-rtl.c (insn_location): New function.
9660 * final.c (notice_source_line): Check that the instruction has a
9661 location before retrieving it and use insn_location.
9662 * modulo-sched.c (loop_single_full_bb_p): Likewise.
9663 * print-rtl.c (print_rtx): Likewise.
9665 2014-06-06 Richard Biener <rguenther@suse.de>
9667 * passes.def: Move 2nd VRP pass before phi-only-cprop.
9669 2014-06-06 Christian Bruel <christian.bruel@st.com>
9671 PR tree-optimization/43934
9672 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
9675 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
9677 * ira-lives.c (single_reg_class): Add missing break. Explicitly
9678 return NO_REGS for extra address and memory constraints. Handle
9679 operands that match (or are equivalent to something that matches)
9680 extra constant constraints. Ignore other non-register operands.
9682 2014-06-06 Alan Modra <amodra@gmail.com>
9685 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
9686 * doc/tm.texi: Regenerate.
9687 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
9688 Use throughout in place of REG_PARM_STACK_SPACE.
9689 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
9690 "incoming" param. Pass to rs6000_function_parms_need_stack.
9691 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
9692 prototype_p when incoming. Use function decl when incoming
9693 to handle K&R style functions.
9694 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
9695 (INCOMING_REG_PARM_STACK_SPACE): Define.
9697 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9700 * cfgexpand.c (expand_debug_expr): Use address space of nested
9701 TREE_TYPE for ADDR_EXPR and MEM_REF.
9703 2014-06-05 Jeff Law <law@redhat.com>
9705 PR tree-optimization/61289
9706 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
9707 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
9708 looking for those which match LHS. All callers changed.
9709 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
9710 parameters and code which manipulated them. All callers changed.
9711 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
9712 and DST_MAP parameters. Simplify invalidation code by just calling
9713 invalidate_equivalences. All callers changed.
9714 (thread_across_edge): Simplify now that we don't need to maintain
9715 the map of equivalences to invalidate.
9717 2014-06-05 Kai Tietz <ktietz@redhat.com>
9718 Richard Henderson <rth@redhat.com>
9721 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
9722 checking for !TARGET_X32.
9723 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
9724 (sibcall_intern): New define_insn, plus required peepholes.
9725 (sibcall_pop_intern): Likewise.
9726 (sibcall_value_intern): Likewise.
9727 (sibcall_value_pop_intern): Likewise.
9729 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
9731 * tree-inline.c (tree_function_versioning): Check DF info existence
9732 before accessing it.
9734 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9736 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
9738 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
9739 aarch64_frame hard_fp_offset and frame_size.
9740 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
9741 frame_size; remove original_frame_size.
9742 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
9743 (aarch64_initial_elimination_offset): Remove frame_size and
9744 offset. Use aarch64_frame frame_size.
9746 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9747 Jiong Wang <jiong.wang@arm.com>
9748 Renlin <renlin.li@arm.com>
9750 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
9751 initialization of R30 offset. Update offset. Iterate core
9752 regisers upto X30. Remove X29, X30 specific code.
9754 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9755 Jiong Wang <jiong.wang@arm.com>
9757 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
9758 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
9759 (aarch64_register_saved_on_entry): Adjust test.
9761 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9763 * config/aarch64/aarch64.h (machine_function): Move
9764 saved_varargs_size from here...
9765 (aarch64_frame): ... to here.
9767 * config/aarch64/aarch64.c (aarch64_expand_prologue)
9768 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
9769 (aarch64_initial_elimination_offset)
9770 (aarch64_setup_incoming_varargs): Adjust location of
9773 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
9775 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
9778 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
9779 Prachi Godbole <Prachi.Godbole@imgtec.com>
9781 * config/mips/mips-cpus.def: Add definition for p5600. Updated
9782 mips32r5 entry to use PROCESSOR_P5600.
9783 * config/mips/mips-tables.opt: Regenerate.
9784 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
9785 * config/mips/mips.c (mips_fmadd_bypass): New function.
9786 (mips_rtx_cost_data): Add costs for p5600.
9787 (mips_issue_rate): Add support for p5600.
9788 (mips_multipass_dfa_lookahead): Likewise.
9789 * config/mips/mips.h (TUNE_P5600): New define.
9790 (TUNE_MACC_CHAINS): Add TUNE_P5600.
9791 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
9792 * config/mips/mips.md: Include p5600.md.
9793 (processor): Add p5600.
9794 * config/mips/p5600.md: New file.
9796 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
9798 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
9799 * config/i386/predicates.md (palignr_operand): New.
9800 Indicates if permutation is suitable for palignr instruction.
9802 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
9804 PR tree-optimization/61319
9805 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
9806 stmt belongs to loop.
9808 2014-06-05 Richard Biener <rguenther@suse.de>
9810 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
9811 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
9812 (lookup_tmp_var): Adjust.
9813 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
9815 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9817 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
9819 2014-06-05 Marek Polacek <polacek@redhat.com>
9822 * doc/invoke.texi: Document -Wlogical-not-parentheses.
9824 2014-06-04 Tom de Vries <tom@codesourcery.com>
9826 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
9829 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
9831 PR tree-optimization/61385
9832 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
9834 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
9836 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
9837 changed to use fatal_error.
9838 (main): Ensure lto_wrapper_cleanup is run atexit.
9840 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9842 * lra-constraints.c (valid_address_p): Move earlier in file.
9843 (address_eliminator): New structure.
9844 (satisfies_memory_constraint_p): New function.
9845 (satisfies_address_constraint_p): Likewise.
9846 (process_alt_operands, process_address, curr_insn_transform): Use them.
9848 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9850 * lra-int.h (lra_static_insn_data): Make operand_alternative a
9852 (target_lra_int, default_target_lra_int, this_target_lra_int)
9853 (op_alt_data): Delete.
9854 * lra.h (lra_init): Delete.
9855 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
9856 (init_insn_code_data_once): Remove op_alt_data handling.
9857 (finish_insn_code_data_once): Likewise.
9858 (init_op_alt_data): Delete.
9859 (get_static_insn_data): Initialize operand_alternative to null.
9860 (free_insn_recog_data): Cast operand_alternative before freeing it.
9861 (setup_operand_alternative): Take the operand_alternative as
9862 parameter and assume it isn't already cached in the static
9864 (lra_set_insn_recog_data): Update accordingly.
9866 * ira.c (ira_init): Don't call lra_init.
9867 * target-globals.h (this_target_lra_int): Declare.
9868 (target_globals): Remove lra_int.
9869 (restore_target_globals): Update accordingly.
9870 * target-globals.c: Don't include lra-int.h.
9871 (default_target_globals, save_target_globals): Remove lra_int.
9873 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9875 * recog.h (operand_alternative): Convert reg_class, reject,
9876 matched and matches into bitfields.
9877 (preprocess_constraints): New overload.
9878 (preprocess_insn_constraints): New function.
9879 (preprocess_constraints): Take the insn as parameter.
9880 (recog_op_alt): Change into a pointer.
9881 (target_recog): Add x_op_alt.
9882 * recog.c (asm_op_alt): New variable.
9883 (recog_op_alt): Change into a pointer.
9884 (preprocess_constraints): New overload, replacing the old function
9885 definition with one that doesn't use global state.
9886 (preprocess_insn_constraints): New function.
9887 (preprocess_constraints): Use them. Take the insn as parameter.
9888 Use asm_op_alt for asms.
9889 (recog_init): Free existing x_op_alt entries.
9890 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
9892 (make_early_clobber_and_input_conflicts): Likewise.
9893 (process_bb_node_lives): Pass the insn to process_constraints.
9894 * reg-stack.c (check_asm_stack_operands): Likewise.
9895 (subst_asm_stack_regs): Likewise.
9896 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
9897 * regrename.c (build_def_use): Likewise.
9898 * sched-deps.c (sched_analyze_insn): Likewise.
9899 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
9900 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
9901 (note_invalid_constants): Likewise.
9902 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9903 (ix86_legitimate_combined_insn): Make operand_alternative pointer
9906 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9908 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
9909 * ira-lives.c (check_and_make_def_conflict): Check for disabled
9911 (make_early_clobber_and_input_conflicts): Likewise.
9912 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9914 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9916 * recog.h (alternative_class): New function.
9917 (which_op_alt): Return a const recog_op_alt.
9918 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
9919 (subst_asm_stack_regs): Likewise.
9920 * config/arm/arm.c (note_invalid_constants): Likewise.
9921 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
9922 the operand_alternative; use alternative class instead.
9923 * sel-sched.c (get_reg_class): Likewise.
9924 * regrename.c (build_def_use): Likewise.
9925 (hide_operands, restore_operands, record_out_operands): Update type
9928 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
9930 * recog.h (recog_op_alt): Convert to a flat array.
9931 (which_op_alt): New function.
9932 * recog.c (recog_op_alt): Convert to a flat array.
9933 (preprocess_constraints): Update accordingly, grouping all
9934 operands of the same alternative together, rather than the
9936 * ira-lives.c (check_and_make_def_conflict): Likewise.
9937 (make_early_clobber_and_input_conflicts): Likewise.
9938 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9939 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
9940 (subst_asm_stack_regs): Likewise.
9941 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
9942 * regrename.c (hide_operands, record_out_operands): Likewise.
9943 (build_def_use): Likewise.
9944 * sel-sched.c (get_reg_class): Likewise.
9945 * config/arm/arm.c (note_invalid_constants): Likewise.
9947 2014-06-04 Jason Merrill <jason@redhat.com>
9951 * gimplify.c (gimplify_arg): Non-static.
9952 * gimplify.h: Declare it.
9954 2014-06-04 Richard Biener <rguenther@suse.de>
9956 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
9957 TREE_PUBLIC and DECL_EXTERNAL decls.
9959 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
9961 * regcprop.c (copyprop_hardreg_forward_1): Account for
9962 HARD_REGNO_CALL_PART_CLOBBERED.
9964 2014-06-04 Richard Biener <rguenther@suse.de>
9966 * configure.ac: Check whether the underlying type of int64_t
9967 is long or long long.
9968 * configure: Regenerate.
9969 * config.in: Likewise.
9970 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
9971 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9973 2014-06-04 Richard Biener <rguenther@suse.de>
9975 PR tree-optimization/60098
9976 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
9978 (dse_optimize_stmt): Simplify, now that we found a kill
9981 2014-06-04 Richard Biener <rguenther@suse.de>
9983 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
9984 of accesses with non-invariant address.
9986 2014-06-04 Martin Liska <mliska@suse.cz>
9988 * cgraph.h (cgraph_make_wrapper): New function introduced.
9989 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
9990 * ipa-inline.h (inline_analyze_function): The function is global.
9991 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
9993 2014-06-04 Martin Liska <mliska@suse.cz>
9995 * tree.h (private_lookup_attribute_starting): New function.
9996 (lookup_attribute_starting): Likewise.
9997 * tree.c (private_lookup_attribute_starting): Likewise.
9999 2014-06-04 Martin Liska <mliska@suse.cz>
10001 * cgraph.h (expand_thunk): New argument added.
10002 (address_taken_from_non_vtable_p): New global function.
10003 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
10004 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
10005 * cgraphunit.c (analyze_function): Likewise.
10006 (assemble_thunks_and_aliases): Argument added to call.
10007 (expand_thunk): New argument forces to produce GIMPLE thunk.
10009 2014-06-04 Martin Liska <mliska@suse.cz>
10011 * coverage.h (coverage_compute_cfg_checksum): Argument added.
10012 * coverage.c (coverage_compute_cfg_checksum): Likewise.
10013 * profile.c (branch_prob): Likewise.
10015 2014-06-04 Martin Jambor <mjambor@suse.cz>
10018 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
10019 handler for switch on an ipa_ref_use enum.
10020 * ipa-reference.c (analyze_function): Likewise.
10022 2014-06-04 Kai Tietz <ktietz@redhat.com>
10024 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
10025 from old call-instruction.
10027 2014-06-04 Bin Cheng <bin.cheng@arm.com>
10029 * config/aarch64/aarch64.c (aarch64_classify_address)
10030 (aarch64_legitimize_reload_address): Support full addressing modes
10032 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
10033 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
10035 2014-06-03 Andrew Pinski <apinski@cavium.com>
10037 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
10040 2014-06-03 Andrew Pinski <apinski@cavium.com>
10042 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
10043 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
10045 2014-06-03 Kai Tietz <ktietz@redhat.com>
10047 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
10050 2014-06-03 Dehao Chen <dehao@google.com>
10052 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
10055 2014-06-03 Marek Polacek <polacek@redhat.com>
10058 * doc/invoke.texi: Document -Wswitch-bool.
10059 * function.c (stack_protect_epilogue): Cast controlling expression of
10061 * gengtype.c (walk_type): Generate switch expression with its
10062 controlling expression cast to int.
10064 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
10066 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
10068 * config/avr/avr-tables.opt: Regenerate.
10069 * config/avr/t-multilib: Regenerate.
10070 * doc/avr-mmcu.texi: Regenerate.
10072 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
10073 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10075 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
10076 (ata6617c, ata664251): Add new avr35 devices.
10077 (ata6612c): Add new avr4 device.
10078 (ata6613c, ata6614q): Add new avr5 devices.
10079 * config/avr/avr-tables.opt: Regenerate.
10080 * config/avr/t-multilib: Regenerate.
10081 * doc/avr-mmcu.texi: Regenerate.
10083 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
10085 * gcc/config/aarch64/aarch64-builtins.c
10086 (aarch64_types_binop_ssu_qualifiers): New static data.
10087 (TYPES_BINOP_SSU): Define.
10088 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
10089 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
10090 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
10091 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
10092 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
10093 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
10094 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
10095 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
10096 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
10097 suffix to builtin function name, remove cast.
10098 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
10099 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
10100 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
10102 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
10104 * gcc/config/aarch64/aarch64-builtins.c
10105 (aarch64_types_binop_uus_qualifiers,
10106 aarch64_types_shift_to_unsigned_qualifiers,
10107 aarch64_types_unsigned_shiftacc_qualifiers): Define.
10108 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
10109 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
10110 sqshlu_n, uqshl_n): Update qualifiers.
10111 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
10112 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
10113 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
10114 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
10115 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
10116 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
10117 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
10118 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
10119 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
10120 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
10121 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
10122 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
10123 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
10124 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
10125 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
10126 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
10127 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
10128 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
10129 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
10130 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
10131 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
10132 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
10133 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
10134 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
10135 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
10136 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
10137 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
10139 2014-06-03 Teresa Johnson <tejohnson@google.com>
10141 * tree-sra.c (modify_function): Record caller nodes after rebuild.
10143 2014-06-02 Jason Merrill <jason@redhat.com>
10146 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
10148 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
10150 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
10153 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
10155 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
10157 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
10158 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
10159 * config/aarch64/iterators.md (REVERSE): New iterator.
10160 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
10161 (rev_op): New int_attribute.
10162 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
10163 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
10164 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
10165 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
10166 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
10167 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
10168 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
10169 Replace temporary __asm__ with __builtin_shuffle.
10171 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
10173 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
10175 * config/mips/mips-tables.opt: Regenerate.
10176 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
10177 to use mips_isa_rev rather than ISA_MIPS32R2.
10178 * config/mips/mips.h (ISA_MIPS32R3): New define.
10179 (ISA_MIPS32R5): New define.
10180 (ISA_MIPS64R3): New define.
10181 (ISA_MIPS64R5): New define.
10182 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
10183 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
10184 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
10186 (MIPS_ISA_SYNCI_SPEC): Likewise.
10187 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
10188 (LINK_SPEC): Added mips32r3 and mips32r5.
10189 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
10190 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
10191 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
10192 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
10193 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
10194 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
10195 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
10197 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
10199 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
10201 * config/mips/mips.opt (mxpa): New option.
10202 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
10205 2014-06-03 Martin Jambor <mjambor@suse.cz>
10208 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
10211 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
10213 PR tree-optimization/61328
10214 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
10215 initialization from find_bswap_or_nop_1.
10216 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
10217 in source_expr2 before using the size value the function sets. Also
10218 make use of init_symbolic_number () in both the old place and
10219 find_bswap_or_nop_load () to avoid reading uninitialized memory when
10220 doing recursion in the GIMPLE_BINARY_RHS case.
10222 2014-06-03 Richard Biener <rguenther@suse.de>
10224 PR tree-optimization/61383
10225 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
10228 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
10230 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
10231 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
10232 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
10233 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
10235 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
10236 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
10237 * system.h: ...here and make it unconditional.
10238 * target.def (conditional_register_usage): Mention
10239 define_register_constraint instead of old-style constraint macros.
10240 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
10241 * doc/tm.texi: Regenerate.
10242 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
10243 protected by !USE_MD_CONSTRAINTS.
10244 * config/frv/frv.md: Remove quote from old version of documentation.
10245 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
10246 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
10247 CONST_DOUBLE_OK_FOR_LETTER.
10248 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
10250 2014-06-02 Andrew Pinski <apinski@cavium.com>
10252 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
10253 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
10254 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
10255 file whose name depends on -mabi= and -mbig-endian.
10256 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
10257 Handle LP64 better and handle ilp32 too.
10258 (MULTILIB_OPTIONS): Delete.
10259 (MULTILIB_DIRNAMES): Delete.
10261 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
10263 * expr.h: Remove prototypes of functions defined in builtins.c.
10264 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
10265 Remove prototypes of functions defined in builtins.c.
10266 * builtins.h: Update prototype list to include all exported functions.
10267 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
10268 no_c99_libc_has_function): Move to targhooks.c
10269 (build_string_literal, build_call_expr_loc_array,
10270 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
10272 (expand_builtin_object_size, fold_builtin_object_size): Make static.
10273 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
10274 no_c99_libc_has_function): Relocate from builtins.c.
10275 * tree.c: Include builtins.h.
10276 (build_call_expr_loc_array, build_call_expr_loc_vec,
10277 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
10279 * fold-const.h (fold_fma): Move prototype to builtins.h.
10280 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
10281 * asan.c: Include builtins.h.
10282 * cfgexpand.c: Likewise.
10283 * convert.c: Likewise.
10284 * emit-rtl.c: Likewise.
10285 * except.c: Likewise.
10286 * expr.c: Likewise.
10287 * fold-const.c: Likewise.
10288 * gimple-fold.c: Likewise.
10289 * gimple-ssa-strength-reduction.c: Likewise.
10290 * gimplify.c: Likewise.
10291 * ipa-inline.c: Likewise.
10292 * ipa-prop.c: Likewise.
10293 * lto-streamer-out.c: Likewise.
10294 * stmt.c: Likewise.
10295 * tree-inline.c: Likewise.
10296 * tree-object-size.c: Likewise.
10297 * tree-sra.c: Likewise.
10298 * tree-ssa-ccp.c: Likewise.
10299 * tree-ssa-forwprop.c: Likewise.
10300 * tree-ssa-loop-ivcanon.c: Likewise.
10301 * tree-ssa-loop-ivopts.c: Likewise.
10302 * tree-ssa-math-opts.c: Likewise.
10303 * tree-ssa-reassoc.c: Likewise.
10304 * tree-ssa-threadedge.c: Likewise.
10305 * tree-streamer-in.c: Likewise.
10306 * tree-vect-data-refs.c: Likewise.
10307 * tree-vect-patterns.c: Likewise.
10308 * tree-vect-stmts.c: Likewise.
10309 * config/aarch64/aarch64.c: Likewise.
10310 * config/alpha/alpha.c: Likewise.
10311 * config/arc/arc.c: Likewise.
10312 * config/arm/arm.c: Likewise.
10313 * config/avr/avr.c: Likewise.
10314 * config/bfin/bfin.c: Likewise.
10315 * config/c6x/c6x.c: Likewise.
10316 * config/cr16/cr16.c: Likewise.
10317 * config/cris/cris.c: Likewise.
10318 * config/epiphany/epiphany.c: Likewise.
10319 * config/fr30/fr30.c: Likewise.
10320 * config/frv/frv.c: Likewise.
10321 * config/h8300/h8300.c: Likewise.
10322 * config/i386/i386.c: Likewise.
10323 * config/i386/winnt.c: Likewise.
10324 * config/ia64/ia64.c: Likewise.
10325 * config/iq2000/iq2000.c: Likewise.
10326 * config/lm32/lm32.c: Likewise.
10327 * config/m32c/m32c.c: Likewise.
10328 * config/m32r/m32r.c: Likewise.
10329 * config/m68k/m68k.c: Likewise.
10330 * config/mcore/mcore.c: Likewise.
10331 * config/mep/mep.c: Likewise.
10332 * config/microblaze/microblaze.c: Likewise.
10333 * config/mips/mips.c: Likewise.
10334 * config/mmix/mmix.c: Likewise.
10335 * config/mn10300/mn10300.c: Likewise.
10336 * config/moxie/moxie.c: Likewise.
10337 * config/msp430/msp430.c: Likewise.
10338 * config/nds32/nds32.c: Likewise.
10339 * config/pa/pa.c: Likewise.
10340 * config/pdp11/pdp11.c: Likewise.
10341 * config/picochip/picochip.c: Likewise.
10342 * config/rl78/rl78.c: Likewise.
10343 * config/rs6000/rs6000.c: Likewise.
10344 * config/rx/rx.c: Likewise.
10345 * config/s390/s390.c: Likewise.
10346 * config/score/score.c: Likewise.
10347 * config/sh/sh.c: Likewise.
10348 * config/sparc/sparc.c: Likewise.
10349 * config/spu/spu.c: Likewise.
10350 * config/stormy16/stormy16.c: Likewise.
10351 * config/tilegx/tilegx.c: Likewise.
10352 * config/tilepro/tilepro.c: Likewise.
10353 * config/v850/v850.c: Likewise.
10354 * config/vax/vax.c: Likewise.
10355 * config/xtensa/xtensa.c: Likewise.
10357 2014-06-02 Jeff Law <law@redhat.com>
10359 PR rtl-optimization/61094
10360 * ree.c (combine_reaching_defs): Do not reextend an insn if it
10361 was marked as do_no_reextend. If a copy is needed to eliminate
10362 an extension, then mark it as do_not_reextend.
10364 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
10366 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
10368 2014-06-02 Richard Henderson <rth@redhat.com>
10371 * config/alpha/alpha.c (print_operand_address): Allow symbolic
10372 addresses inside asms. Use output_operand_lossage instead of
10375 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
10378 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
10379 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
10381 2014-06-02 Tom de Vries <tom@codesourcery.com>
10383 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
10384 case that x has VOIDmode.
10386 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
10388 * varasm.c (copy_constant): Delete function.
10389 (build_constant_desc): Don't call it.
10391 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10394 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
10395 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
10396 with immediate_operand.
10398 2014-06-02 Andreas Schwab <schwab@suse.de>
10400 * config/ia64/ia64.c
10401 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
10402 pending_data_specs first.
10404 2014-06-02 Richard Biener <rguenther@suse.de>
10406 PR tree-optimization/61378
10407 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
10408 valueized_anything.
10410 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
10412 * config/i386/constraints.md (Bw): Rename from 'w'.
10413 (Bz): Rename from 'z'.
10414 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
10416 2014-06-01 Kai Tietz <ktietz@redhat.com>
10419 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
10420 * config/i386/i386.md (sibcall_insn_operand): Use Bs
10421 instead of m constraint.
10423 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
10425 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
10426 a separate alternative where the scratch operand 2 is marked as
10429 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
10431 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
10432 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
10433 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
10434 and __builtins_arm_get_fpscr.
10435 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
10436 __builtins_arm_get_fpscr.
10437 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
10438 __builtins_arm_ldfpscr.
10439 (arm_atomic_assign_expand_fenv): New function.
10440 * config/arm/vfp.md (set_fpscr): New pattern.
10441 (get_fpscr) : Likewise.
10442 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
10444 * doc/extend.texi (AARCH64 Built-in Functions) : Document
10445 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
10447 2014-05-30 Jakub Jelinek <jakub@redhat.com>
10449 * asan.c (report_error_func): Add SLOW_P argument, use
10450 BUILT_IN_ASAN_*_N if set.
10451 (build_check_stmt): Likewise.
10452 (instrument_derefs): If T has insufficient alignment,
10453 force same handling as for odd sizes.
10455 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
10456 BUILT_IN_ASAN_REPORT_STORE_N): New.
10457 * asan.c (struct asan_mem_ref): Change access_size type to
10459 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
10460 update_mem_ref_hash_table): Likewise.
10461 (asan_mem_ref_hasher::hash): Hash in a HWI.
10462 (report_error_func): Change size_in_bytes argument to HWI.
10463 Use *_N builtins if size_in_bytes is larger than 16 or not power of
10465 (build_shadow_mem_access): New function.
10466 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
10467 Handle size_in_bytes not power of two or larger than 16.
10468 (instrument_derefs): Don't give up if size_in_bytes is not
10469 power of two or is larger than 16.
10471 2014-05-30 Kai Tietz <ktietz@redhat.com>
10474 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
10475 for sibling-tail-calls.
10476 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
10478 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
10479 (sibcall_insn_operand): Add check for sibcall_memory_operand.
10481 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10483 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
10484 * config/avr/avr-tables.opt: Regenerate.
10485 * config/avr/t-multilib: Regenerate.
10486 * doc/avr-mmcu.texi: Regenerate.
10488 2014-05-30 Ian Lance Taylor <iant@google.com>
10490 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
10493 2014-05-30 Tom de Vries <tom@codesourcery.com>
10495 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
10498 2014-05-30 Tom de Vries <tom@codesourcery.com>
10500 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
10501 * lra.c (initialize_lra_reg_info_element): Add init of
10502 actual_call_used_reg_set field.
10503 (lra): Call lra_create_live_ranges before lra_inheritance for
10505 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
10507 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
10508 instead of call_used_reg_set for -fuse-caller-save.
10509 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
10511 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10513 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
10515 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
10517 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
10519 * ira.c (ira_get_dup_out_num): Check for output operands at
10520 the start of the loop. Handle cases where an included alternative
10521 follows an excluded one.
10523 2014-05-29 Mike Stump <mikestump@comcast.net>
10526 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
10527 post ld passes when lto is used.
10529 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
10531 PR rtl-optimization/61325
10532 * lra-constraints.c (process_address): Rename to process_address_1.
10533 (process_address): New function.
10535 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
10537 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
10538 TYPES_BINOPV): New static data.
10539 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
10541 * config/aarch64/aarch64-simd.md (aarch64_ext,
10542 aarch64_im_lane_boundsi): New patterns.
10543 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
10545 (aarch64_evpc_ext): New function.
10547 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
10549 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
10550 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
10551 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
10552 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
10553 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
10555 2014-05-29 Tom de Vries <tom@codesourcery.com>
10557 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
10559 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
10560 Richard Sandiford <rdsandiford@googlemail.com>
10562 * arm/iterators.md (shiftable_ops): New code iterator.
10563 (t2_binop0, arith_shift_insn): New code attributes.
10564 * arm/predicates.md (shift_nomul_operator): New predicate.
10565 * arm/arm.md (insn_enabled): Delete.
10566 (enabled): Remove insn_enabled test.
10567 (*arith_shiftsi): Delete. Replace with ...
10568 (*<arith_shift_insn>_multsi): ... new pattern.
10569 (*<arith_shift_insn>_shiftsi): ... new pattern.
10570 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
10572 2014-05-29 Radovan Obradovic <robradovic@mips.com>
10573 Tom de Vries <tom@codesourcery.com>
10575 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
10576 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
10578 (mips_split_call): Use POST_CALL_TMP_REG.
10579 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
10581 2014-05-29 Tom de Vries <tom@codesourcery.com>
10583 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
10584 with #ifdef STACK_REGS.
10586 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
10588 * varasm.c (get_variable_section): Walk aliases.
10589 (place_block_symbol): Walk aliases.
10591 2014-05-28 Tom de Vries <tom@codesourcery.com>
10594 2014-05-28 Tom de Vries <tom@codesourcery.com>
10596 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
10597 * lra.c (initialize_lra_reg_info_element): Add init of
10598 actual_call_used_reg_set field.
10599 (lra): Call lra_create_live_ranges before lra_inheritance for
10601 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
10603 * lra-constraints.c (need_for_call_save_p): Use
10604 actual_call_used_reg_set instead of call_used_reg_set for
10606 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
10608 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10610 * doc/md.texi: Document that the % constraint character must
10611 be at the beginning of the string.
10612 * genoutput.c (validate_insn_alternatives): Check that '=',
10613 '+' and '%' only appear at the beginning of a constraint.
10614 * ira.c (commutative_constraint_p): Delete.
10615 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
10616 at the start of the string.
10617 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
10619 * config/arm/neon.md (bicdi3_neon): Likewise.
10620 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
10621 (slt_si, sltu_si): Likewise.
10622 * config/vax/vax.md (sbcdi3): Likewise.
10623 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
10624 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
10625 (mul64): Move '%' to beginning of constraint.
10626 * config/arm/arm.md (*xordi3_insn): Likewise.
10627 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
10628 (xorsi3): Likewise.
10630 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10632 * doc/md.texi: Document the restrictions on the "enabled" attribute.
10634 2014-05-28 Jason Merrill <jason@redhat.com>
10637 * cgraph.h (symtab_node::get_comdat_group_id): New.
10638 * cgraphunit.c (analyze_functions): Call it.
10639 * symtab.c (dump_symtab_node): Likewise.
10640 * tree.c (decl_comdat_group_id): New.
10641 * tree.h: Declare it.
10642 * lto-streamer-out.c (write_symbol): Use it.
10643 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
10645 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10647 PR bootstrap/PR61146
10648 * wide-int.cc: Do not include longlong.h when compiling with clang.
10650 2014-05-28 Richard Biener <rguenther@suse.de>
10652 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
10653 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
10654 (vrp_visit_assignment_or_call): Print less vertical space.
10655 (vrp_visit_stmt): Likewise.
10656 (vrp_visit_phi_node): Likewise. For a PHI argument with
10657 VR_VARYING range consider recording it as copy.
10659 2014-05-28 Richard Biener <rguenther@suse.de>
10662 2014-05-28 Richard Biener <rguenther@suse.de>
10664 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
10666 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
10668 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
10669 sufficiently aligned and an offset is used at the same time.
10670 (expand_expr_real_1): Likewise.
10672 2014-05-28 Richard Biener <rguenther@suse.de>
10674 PR middle-end/61045
10675 * fold-const.c (fold_comparison): When folding
10676 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
10677 the sign of the remaining constant operand stays the same.
10679 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
10681 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
10682 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
10683 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
10685 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
10686 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
10687 (m32bit-doubles) Likewise.
10688 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
10689 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
10692 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10694 * configure.ac ($gcc_cv_ld_clearcap): New test.
10695 * configure: Regenerate.
10696 * config.in: Regenerate.
10697 * config/sol2.opt (mclear-hwcap): New option.
10698 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
10699 * config/sol2-clearcap.map: Moved here from
10700 testsuite/gcc.target/i386/clearcap.map.
10701 * config/sol2-clearcapv2.map: Move here from
10702 gcc.target/i386/clearcapv2.map.
10703 * config/t-sol2 (install): Depend on install-clearcap-map.
10704 (install-clearcap-map): New target.
10705 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
10708 2014-05-28 Richard Biener <rguenther@suse.de>
10710 * hwint.h (*_HALF_WIDE_INT*): Move to ...
10711 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
10712 ... here and remove the rest.
10713 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
10715 2014-05-28 Richard Biener <rguenther@suse.de>
10717 PR tree-optimization/61335
10718 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
10719 new range fails, drop to varying.
10721 2014-05-28 Olivier Hainque <hainque@adacore.com>
10723 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
10724 (CPP_SPEC): Add entry for -mcpu=8548.
10725 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
10726 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
10728 2014-05-28 Tom de Vries <tom@codesourcery.com>
10730 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
10731 * lra.c (initialize_lra_reg_info_element): Add init of
10732 actual_call_used_reg_set field.
10733 (lra): Call lra_create_live_ranges before lra_inheritance for
10735 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
10737 * lra-constraints.c (need_for_call_save_p): Use
10738 actual_call_used_reg_set instead of call_used_reg_set for
10740 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
10742 2014-05-28 Radovan Obradovic <robradovic@mips.com>
10743 Tom de Vries <tom@codesourcery.com>
10745 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
10747 (@item -fuse-caller-save): New item.
10749 2014-05-28 Radovan Obradovic <robradovic@mips.com>
10750 Tom de Vries <tom@codesourcery.com>
10752 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
10753 OPT_fuse_caller_save.
10755 2014-05-28 Radovan Obradovic <robradovic@mips.com>
10756 Tom de Vries <tom@codesourcery.com>
10758 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
10759 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
10760 get_call_reg_set_usage.
10761 * resource.c (mark_set_resources, mark_target_live_regs): Use
10762 get_call_reg_set_usage.
10763 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
10765 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
10766 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
10767 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10768 * ira-build.c (ira_create_allocno): Init
10769 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10770 (create_cap_allocno, propagate_allocno_info)
10771 (propagate_some_info_from_allocno)
10772 (copy_info_to_removed_store_destinations): Handle
10773 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10774 * ira-costs.c (ira_tune_allocno_costs): Use
10775 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
10777 2014-05-28 Radovan Obradovic <robradovic@mips.com>
10778 Tom de Vries <tom@codesourcery.com>
10780 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
10781 and function_used_regs_valid fields.
10782 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
10783 find_all_hard_reg_sets.
10784 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
10785 (get_call_reg_set_usage): New function.
10786 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
10787 * regs.h (get_call_reg_set_usage): Declare.
10789 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
10792 * config/dbx.h (License): Add Runtime Library Exception.
10793 * config/newlib-stdint.h (License): Same.
10794 * config/rtems.h (License): Same
10795 * config/initfini-array.h (License): Same
10796 * config/v850/v850.h (License): Same.
10797 * config/v850/v850-opts.h (License): Same
10798 * config/v850/rtems.h (License): Same.
10800 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
10803 * doc/extend.texi (Local Labels): Note that label differences are
10804 not supported for AVR.
10806 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10807 Olivier Hainque <hainque@adacore.com>
10809 * rtl.h (set_for_reg_notes): Declare.
10810 * emit-rtl.c (set_for_reg_notes): New function.
10811 (set_unique_reg_note): Use it.
10812 * optabs.c (add_equal_note): Likewise
10814 2014-05-27 Andrew Pinski <apinski@cavium.com>
10816 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
10817 Use <w> for the register in assembly template.
10818 (stack_protect_test): Use the mode of operands[0] for the result.
10819 (stack_protect_test_<mode>): Use <w> for the register
10820 in assembly template.
10822 2014-05-27 DJ Delorie <dj@redhat.com>
10824 * config/rx/rx.c (add_vector_labels): New.
10825 (rx_output_function_prologue): Call it.
10826 (rx_handle_func_attribute): Don't require empty arguments.
10827 (rx_handle_vector_attribute): New.
10828 (rx_attribute_table): Add "vector" attribute.
10829 * doc/extend.texi (interrupt, vector): Document new/changed
10830 RX-specific attributes.
10832 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
10834 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
10836 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
10837 predicate to detect a negative quotient.
10839 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
10841 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
10842 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
10843 Add X - Y CMP 0 to X CMP Y transformation.
10844 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
10846 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
10848 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
10851 2014-05-27 Steve Ellcey <sellcey@mips.com>
10853 * config/mips/mips.c: Add include of cgraph.h.
10855 2014-05-27 Richard Biener <rguenther@suse.de>
10857 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
10859 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
10862 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
10863 * config/arm/arm-cores.def (License): Same.
10864 * config/arm/arm-opts.h (License): Same.
10865 * config/arm/aout.h (License): Same.
10866 * config/arm/bpabi.h (License): Same.
10867 * config/arm/elf.h (License): Same.
10868 * config/arm/linux-elf.h (License): Same.
10869 * config/arm/linux-gas.h (License): Same.
10870 * config/arm/netbsd-elf.h (License): Same.
10871 * config/arm/uclinux-eabi.h (License): Same.
10872 * config/arm/uclinux-elf.h (License): Same.
10873 * config/arm/vxworks.h (License): Same.
10875 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10877 * config/arm/neon.md (neon_bswap<mode>): New pattern.
10878 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
10879 (arm_init_neon_builtins): Handle NEON_BSWAP.
10880 Define required type nodes.
10881 (arm_expand_neon_builtin): Handle NEON_BSWAP.
10882 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
10883 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
10884 * config/arm/iterators.md (VDQHSD): New mode iterator.
10886 2014-05-27 Richard Biener <rguenther@suse.de>
10888 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
10889 Try using literal operands when comparing value-ranges failed.
10891 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
10893 * ira.c (commutative_operand): Adjust for change to recog_data.
10894 [Missing from previous commit.]
10896 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
10898 * system.h (TEST_BIT): New macro.
10899 * recog.h (alternative_mask): New type.
10900 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
10901 (recog_data_d): Replace alternative_enabled_p array with
10902 enabled_alternatives.
10903 (target_recog): New structure.
10904 (default_target_recog, this_target_recog): Declare.
10905 (get_enabled_alternatives, recog_init): Likewise.
10906 * recog.c (default_target_recog, this_target_recog): New variables.
10907 (get_enabled_alternatives): New function.
10908 (extract_insn): Use it.
10909 (recog_init): New function.
10910 (preprocess_constraints, constrain_operands): Adjust for change to
10912 * postreload.c (reload_cse_simplify_operands): Likewise.
10913 * reload.c (find_reloads): Likewise.
10914 * ira-costs.c (record_reg_classes): Likewise.
10915 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
10916 all alternatives after a disabled one would be skipped.
10917 (ira_implicitly_set_insn_hard_regs): Likewise.
10918 * ira.c (ira_setup_alts): Adjust for change to recog_data.
10919 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
10920 with enabled_alternatives.
10921 * lra.c (free_insn_recog_data): Update accordingly.
10922 (lra_update_insn_recog_data): Likewise.
10923 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
10924 * lra-constraints.c (process_alt_operands): Likewise. Handle
10925 only_alternative as part of the enabled mask.
10926 * target-globals.h (this_target_recog): Declare.
10927 (target_globals): Add a recog field.
10928 (restore_target_globals): Restore this_target_recog.
10929 * target-globals.c: Include recog.h.
10930 (default_target_globals): Initialize recog field.
10931 (save_target_globals): Likewise.
10932 * reginfo.c (reinit_regs): Call recog_init.
10933 * toplev.c (backend_init_target): Likewise.
10935 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
10937 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
10938 rather than any named insn's code.
10940 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
10943 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
10944 * config/arm/arm-cores.def (License): Same.
10946 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
10948 * tree.h (decl_comdat_group): Declare.
10949 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
10950 * tree.c (decl_comdat_group): Here.
10952 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
10954 PR rtl-optimization/61222
10955 * combine.c (simplify_shift_const_1): When moving a PLUS outside
10956 the shift, truncate the PLUS operand to the result mode.
10958 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
10961 * config/i386/i386.c (ix86_rtx_costs)
10962 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
10965 2014-05-26 Martin Jambor <mjambor@suse.cz>
10967 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
10970 2014-05-26 Richard Biener <rguenther@suse.de>
10972 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
10973 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
10974 Provide specializations.
10975 (wi::int_traits <HOST_WIDE_INT>,
10976 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
10978 2014-05-26 Alan Modra <amodra@gmail.com>
10981 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
10982 params and return a bool. Remove dead code. Update comment.
10983 Assert we have a const_int source. Remove bogus code from
10984 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
10985 handling of constants > 2G and reg_equal note, from..
10986 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
10987 return value. Update comment. If we can, use a new pseudo
10988 for intermediate calculations.
10989 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
10991 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
10992 call to rs6000_emit_set_const in splitter.
10993 (movdi_internal64+2, +3): Likewise.
10995 2014-05-26 Richard Biener <rguenther@suse.de>
10997 * system.h: Define __STDC_FORMAT_MACROS before
10998 including inttypes.h.
10999 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
11000 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
11001 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
11002 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
11003 HOST_WIDEST_INT_C): Remove.
11004 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
11005 if C99 inttypes.h is not available.
11006 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
11007 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
11008 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
11009 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
11010 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
11011 (struct output_info): Likewise.
11012 (print_statistics): Adjust.
11013 (dump_bitmap_statistics): Likewise.
11014 * bt-load.c (migrate_btr_defs): Print with PRId64.
11015 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
11016 (MAX_SAFE_MULTIPLIER): Adjust.
11017 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
11018 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
11019 dump_cgraph_node): Likewise.
11020 * final.c (dump_basic_block_info): Likewise.
11021 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
11022 * gcov.c (format_gcov): Likewise.
11023 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
11025 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
11026 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
11027 (inline_small_functions, dump_overall_stats, dump_inline_stats):
11028 Use PRId64 for dumping.
11029 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
11030 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
11031 (add_allocno_hard_regs): Adjust.
11032 * loop-doloop.c (doloop_modify): Print using PRId64.
11033 * loop-iv.c (inverse): Compute in uint64_t.
11034 (determine_max_iter, iv_number_of_iterations): Likewise.
11035 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
11036 Print using PRId64.
11037 * lto-streamer-out.c (write_symbol): Use uint64_t.
11038 * mcf.c (CAP_INFINITY): Use int64_t maximum.
11039 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
11040 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
11041 * modulo-sched.c (const_iteration_count): Use int64_t.
11042 (sms_schedule): Dump using PRId64.
11043 * predict.c (dump_prediction): Likewise.
11044 * pretty-print.h (pp_widest_integer): Remove.
11045 * profile.c (get_working_sets, is_edge_inconsistent,
11046 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
11047 * tree-pretty-print.c (pp_double_int): Remove case handling
11048 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
11049 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
11051 (pass_optimize_bswap::execute): Remove restriction on hosts.
11052 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
11053 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
11054 * tree.c (widest_int_cst_value): Remove.
11055 * tree.h (widest_int_cst_value): Likewise.
11056 * value-prof.c (dump_histogram_value): Print using PRId64.
11057 * gengtype.c (main): Also inject int64_t.
11058 * ggc-page.c (struct max_alignment): Use int64_t.
11059 * alloc-pool.c (struct allocation_object_def): Likewise.
11060 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
11062 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
11063 * doc/tm.texi: Regenerated.
11064 * gengtype-lex.l (IWORD): Handle [u]int64_t.
11065 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
11066 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
11067 mmix_output_register_setting): Use [u]int64_t in prototypes.
11068 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
11069 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
11070 mmix_output_octa, mmix_output_shifted_value): Adjust.
11071 (mmix_intval): Adjust. Remove unreachable case.
11072 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
11074 2014-05-26 Richard Biener <rguenther@suse.de>
11076 * configure.ac: Drop __int64 type check. Insist that we
11077 found uint64_t and int64_t.
11078 * hwint.h (HOST_BITS_PER___INT64): Remove.
11079 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
11080 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
11081 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
11082 (HOST_WIDEST_FAST_INT): Remove __int64 case.
11083 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
11084 for dst_q_src_df_rms_cdt.
11085 * configure: Regenerate.
11086 * config.in: Likewise.
11088 2014-05-26 Michael Tautschnig <mt@debian.org>
11091 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
11092 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
11094 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11096 PR rtl-optimization/61278
11097 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
11099 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11101 PR rtl-optimization/61220
11102 Part of PR rtl-optimization/61225
11103 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
11104 insn; skip split_edge for a block with only one successor.
11106 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
11108 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
11111 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
11113 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
11114 (update_vtable_references): New function.
11115 (function_and_variable_visibility): Rewrite also vtable initializers.
11116 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
11118 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
11120 * ggc.h (ggc_grow): New function.
11121 * ggc-none.c (ggc_grow): New function.
11122 * ggc-page.c (ggc_grow): Likewise.
11124 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
11126 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
11127 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
11128 comdat_can_be_unshared_p, cgraph_externally_visible_p,
11129 varpool_externally_visible_p, can_replace_by_local_alias,
11130 update_visibility_by_resolution_info, function_and_variable_visibility,
11131 pass_data_ipa_function_and_variable_visibility,
11132 make_pass_ipa_function_and_variable_visibility,
11133 whole_program_function_and_variable_visibility,
11134 pass_data_ipa_whole_program_visibility,
11135 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
11136 * cgraph.h (cgraph_local_node_p): Declare.
11137 * ipa-visibility.c: New file.
11138 * Makefile.in (OBJS): Add ipa-visiblity.o
11140 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
11142 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
11143 that var decl is available.
11145 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
11147 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
11148 symtab_node pointer.
11149 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
11150 (find_decls_types_r): Do not walk COMDAT_GROUP.
11151 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
11152 * varasm.c (make_decl_one_only): Use set_comdat_group;
11153 create node if needed.
11154 * ipa-inline-transform.c (save_inline_function_body): Update
11155 way we decl->symtab mapping.
11156 * symtab.c (symtab_hash, hash_node, eq_node
11157 symtab_insert_node_to_hashtable): Remove.
11158 (symtab_register_node): Update.
11159 (symtab_unregister_node): Update.
11160 (symtab_get_node): Reimplement as inline function.
11161 (symtab_add_to_same_comdat_group): Update.
11162 (symtab_dissolve_same_comdat_group_list): Update.
11163 (dump_symtab_base): Update.
11164 (verify_symtab_base): Update.
11165 (symtab_make_decl_local): Update.
11166 (fixup_same_cpp_alias_visibility): Update.
11167 (symtab_nonoverwritable_alias): Update.
11168 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
11169 * ipa.c (update_visibility_by_resolution_info): UPdate.
11170 * bb-reorder.c: Include cgraph.h
11171 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
11172 with comdat groups.
11173 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
11174 * cgraph.c (cgraph_get_create_node): Update.
11175 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
11177 (symtab_get_node): Make inline.
11178 (symtab_insert_node_to_hashtable): Remove.
11179 (symtab_can_be_discarded): Update.
11180 (decl_comdat_group): New function.
11181 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
11183 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
11185 (read_comdat_group): New function.
11186 (input_node, input_varpool_node): Use it.
11187 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
11189 * mips.c (mips_start_unique_function): Likewise.
11190 (ix86_code_end): Likewise.
11191 (rs6000_code_end): Likweise.
11192 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
11194 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
11196 * gengtype-state.c (fatal_reading_state): Bring offline.
11197 * optabs.c (widening_optab_handler): Bring offline.
11198 * optabs.h (widening_optab_handler): Likewise.
11199 * final.c (get_attr_length_1): Likewise.
11201 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
11203 * sched-int.h (sd_iterator_cond): Manually tail recurse.
11205 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11207 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
11208 (ppc440-compare): Include shift with dot.
11209 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
11210 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
11212 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
11214 (e6500_sfx2): Include it.
11215 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
11216 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
11217 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
11218 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
11219 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
11220 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
11221 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
11222 *lshiftrt_internal1le, *lshiftrt_internal1be,
11223 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
11224 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
11225 *rotldi3_internal10le, *rotldi3_internal10be,
11226 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
11227 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
11228 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
11229 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
11230 define_insns): Use type "shift" in the appropriate alternatives.
11232 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11234 * config/rs6000/rs6000.md (type): Add "logical". Delete
11236 (dot): Adjust comment.
11237 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
11238 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
11239 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
11240 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
11241 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
11242 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
11243 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
11244 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
11246 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
11247 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
11248 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
11249 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
11250 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
11251 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
11252 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
11253 * config/rs6000/8540.md (ppc8540_su): Adjust.
11254 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
11255 cell-cmp-microcoded): Adjust.
11256 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
11257 * config/rs6000/e500mc.md (e500mc_su): Adjust.
11258 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
11259 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
11260 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
11261 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
11262 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
11263 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
11264 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
11266 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
11267 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
11268 Adjust. Adjust comment.
11269 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
11270 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
11272 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11274 * config/rs6000/rs6000.md (type): Add "add".
11275 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
11276 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
11277 define_insns): Use it.
11278 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
11280 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
11281 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
11282 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
11283 * config/rs6000/601.md (ppc601-integer): Adjust.
11284 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
11285 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
11286 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
11287 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
11288 * config/rs6000/8540.md (ppc8540_su): Adjust.
11289 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
11290 cell-cmp-microcoded): Adjust.
11291 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
11292 * config/rs6000/e500mc.md (e500mc_su): Adjust.
11293 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
11294 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
11295 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
11296 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
11297 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
11298 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
11299 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
11301 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
11302 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
11303 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
11304 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
11306 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11308 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
11309 "delayed_compare", "var_delayed_compare".
11310 (var_shift): New attribute.
11311 (cell_micro): Adjust.
11312 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
11313 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
11314 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
11315 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11316 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11317 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11318 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11319 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
11320 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
11321 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
11322 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
11323 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
11324 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
11325 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
11326 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
11327 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
11328 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
11329 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
11330 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
11331 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
11332 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
11333 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
11334 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
11335 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
11336 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
11338 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
11339 * config/rs6000/440.md (ppc440-integer): Adjust.
11340 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
11341 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
11342 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
11343 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
11344 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
11345 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
11346 * config/rs6000/8540.md (ppc8540_su): Adjust.
11347 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
11348 cell-cmp-microcoded): Adjust.
11349 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
11350 * config/rs6000/e500mc.md (e500mc_su): Adjust.
11351 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
11352 e500mc64_delayed): Adjust.
11353 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
11354 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
11355 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
11356 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
11357 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
11358 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
11359 power6-delayed-compare, power6-var-delayed-compare): Adjust.
11360 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
11361 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
11363 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
11364 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
11366 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11368 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
11369 (bits): New mode_attr.
11370 (idiv_ldiv): Delete mode_attr.
11371 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
11372 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
11373 rs6000_adjust_priority, is_nonpipeline_insn,
11374 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
11376 * config/rs6000/40x.md (ppc403-idiv): Adjust.
11377 * config/rs6000/440.md (ppc440-idiv): Adjust.
11378 * config/rs6000/476.md (ppc476-idiv): Adjust.
11379 * config/rs6000/601.md (ppc601-idiv): Adjust.
11380 * config/rs6000/603.md (ppc603-idiv): Adjust.
11381 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
11382 ppc620-ldiv): Adjust.
11383 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
11384 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
11385 * config/rs6000/8540.md (ppc8540_divide): Adjust.
11386 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
11387 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
11388 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
11389 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
11390 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
11391 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
11392 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
11393 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
11394 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
11395 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
11396 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
11397 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
11398 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
11399 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
11400 * config/rs6000/titan.md (titan_fxu_div): Adjust.
11402 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11404 * config/rs6000/rs6000.md (type): Delete "insert_word",
11405 "insert_dword". Add "insert".
11406 (size): Update comment.
11407 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
11408 insn_must_be_first_in_group): Adjust.
11409 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
11410 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
11411 *insvsi_internal6, insvdi_internal): Adjust.
11413 * config/rs6000/40x.md (ppc403-integer): Adjust.
11414 * config/rs6000/440.md (ppc440-integer): Adjust.
11415 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
11416 * config/rs6000/601.md (ppc601-integer): Adjust.
11417 * config/rs6000/603.md (ppc603-integer): Adjust.
11418 * config/rs6000/6xx.md (ppc604-integer): Adjust.
11419 * config/rs6000/7450.md (ppc7450-integer): Adjust.
11420 * config/rs6000/7xx.md (ppc750-integer): Adjust.
11421 * config/rs6000/8540.md (ppc8540_su): Adjust.
11422 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
11423 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
11424 * config/rs6000/e500mc.md (e500mc_su): Adjust.
11425 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
11426 * config/rs6000/e5500.md (e5500_sfx): Adjust.
11427 * config/rs6000/e6500.md (e6500_sfx): Adjust.
11428 * config/rs6000/mpc.md (mpccore-integer): Adjust.
11429 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
11430 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
11431 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
11432 * config/rs6000/power7.md (power7-integer): Adjust.
11433 * config/rs6000/power8.md (power8-1cyc): Adjust.
11434 * config/rs6000/rs64.md (rs64a-integer): Adjust.
11435 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
11437 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11439 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
11440 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
11441 (size): New attribute.
11442 (dot): New attribute.
11443 (cell_micro): Adjust.
11444 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
11445 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
11446 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
11447 umuldi3_highpart): Adjust.
11448 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
11449 rs6000_adjust_priority, is_nonpipeline_insn,
11450 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
11452 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
11453 ppc405-imul3): Adjust.
11454 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
11455 * config/rs6000/476.md (ppc476-imul): Adjust.
11456 * config/rs6000/601.md (ppc601-imul): Adjust.
11457 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
11458 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
11459 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
11460 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
11461 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
11463 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
11464 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
11465 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
11466 cell-imul): Adjust.
11467 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
11468 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
11469 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
11470 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
11471 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
11472 * config/rs6000/mpc.md (mpccore-imul): Adjust.
11473 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
11474 power4-lmul, power4-imul, power4-imul3): Adjust.
11475 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
11476 power5-lmul, power5-imul, power5-imul3): Adjust.
11477 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
11478 power6-lmul, power6-imul, power6-imul3): Adjust.
11479 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
11480 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
11482 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
11483 rs64a-lmul): Adjust.
11484 * config/rs6000/titan.md (titan_imul): Adjust.
11486 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11488 * config/rs6000/rs6000.md (type): Add new value "halfmul".
11489 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
11490 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
11491 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
11492 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
11493 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
11494 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
11495 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
11496 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
11497 * config/rs6000/titan.md: Delete nonsensical comment.
11498 (titan_imul): Add type imul3.
11499 (titan_mulhw): Remove type imul3; add type halfmul.
11501 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
11503 * config/rs6000/rs6000.md (type): Reorder, reformat.
11505 2014-05-23 Martin Jambor <mjambor@suse.cz>
11507 PR tree-optimization/53787
11508 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
11509 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
11510 analysis_done, update all uses.
11511 * ipa-prop.c: Include domwalk.h
11512 (param_analysis_info): Removed.
11513 (param_aa_status): New type.
11514 (ipa_bb_info): Likewise.
11515 (func_body_info): Likewise.
11516 (ipa_get_bb_info): New function.
11517 (aa_overwalked): Likewise.
11518 (find_dominating_aa_status): Likewise.
11519 (parm_bb_aa_status_for_bb): Likewise.
11520 (parm_preserved_before_stmt_p): Changed to use new param AA info.
11521 (load_from_unmodified_param): Accept func_body_info as a parameter
11522 instead of parms_ainfo.
11523 (parm_ref_data_preserved_p): Changed to use new param AA info.
11524 (parm_ref_data_pass_through_p): Likewise.
11525 (ipa_load_from_parm_agg_1): Likewise. Update callers.
11526 (compute_complex_assign_jump_func): Changed to use new param AA info.
11527 (compute_complex_ancestor_jump_func): Likewise.
11528 (ipa_compute_jump_functions_for_edge): Likewise.
11529 (ipa_compute_jump_functions): Removed.
11530 (ipa_compute_jump_functions_for_bb): New function.
11531 (ipa_analyze_indirect_call_uses): Likewise, moved variable
11533 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
11534 and info, moved variable declarations down.
11535 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
11537 (ipa_analyze_stmt_uses): Likewise.
11538 (ipa_analyze_params_uses): Removed.
11539 (ipa_analyze_params_uses_in_bb): New function.
11540 (ipa_analyze_controlled_uses): Likewise.
11541 (free_ipa_bb_info): Likewise.
11542 (analysis_dom_walker): New class.
11543 (ipa_analyze_node): Handle node-specific forbidden analysis,
11544 initialize and free func_body_info, use dominator walker.
11545 (ipcp_modif_dom_walker): New class.
11546 (ipcp_transform_function): Create and free func_body_info, use
11547 ipcp_modif_dom_walker, moved a lot of functionality there.
11549 2014-05-23 Marek Polacek <polacek@redhat.com>
11550 Jakub Jelinek <jakub@redhat.com>
11552 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
11553 * gcc.c (sanitize_spec_function): Likewise.
11554 * convert.c (convert_to_integer): Include "ubsan.h". Add
11555 floating-point to integer instrumentation.
11556 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
11557 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
11558 SANITIZE_NONDEFAULT.
11559 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
11560 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
11561 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
11562 * ubsan.c: Include "realmpfr.h" and "dfp.h".
11563 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
11564 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
11565 float/double/long double.
11566 (ubsan_instrument_float_cast): New function.
11567 * ubsan.h (ubsan_instrument_float_cast): Declare.
11569 2014-05-23 Jiong Wang <jiong.wang@arm.com>
11571 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
11573 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
11574 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
11575 Adjust for tailcalling through registers.
11576 * config/aarch64/aarch64.h (enum reg_class): New caller save
11578 (REG_CLASS_NAMES): Likewise.
11579 (REG_CLASS_CONTENTS): Likewise.
11580 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
11581 Allow tailcalling without decls.
11583 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
11585 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
11586 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
11588 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
11589 gsi, and variables v_* to v*.
11591 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
11593 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
11595 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
11597 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
11598 * omp-low.c: Update accordingly.
11600 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
11601 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
11602 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
11603 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
11604 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
11605 GF_OMP_TARGET_KIND_UPDATE.
11607 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
11608 Explicitly enumerate the expected region types.
11610 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
11613 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
11614 documentation; the old documentation didn't clearly state the
11615 constraints on the contents of the pointed-to storage.
11617 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11619 Fix bootstrap error on ia64
11620 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
11621 Return default value.
11623 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
11625 PR tree-optimization/54733
11626 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
11628 (find_bswap_or_nop_load): New.
11629 (find_bswap_1): Renamed to ...
11630 (find_bswap_or_nop_1): This. Also add support for memory source.
11631 (find_bswap): Renamed to ...
11632 (find_bswap_or_nop): This. Also add support for memory source and
11633 detection of bitwise operations equivalent to load in target
11635 (execute_optimize_bswap): Likewise. Also move its leading comment back
11636 in place and split statement transformation into ...
11637 (bswap_replace): This.
11639 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
11641 PR rtl-optimization/61215
11642 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
11643 simplify_gen_subreg until final substitution.
11645 2014-05-23 Alan Modra <amodra@gmail.com>
11648 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
11649 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
11650 Use "Y" constraint rather than "m".
11652 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11654 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
11656 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
11657 New function declaration.
11658 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
11659 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
11660 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
11661 (aarch64_init_builtins) : Initialize builtins
11662 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
11663 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
11664 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
11665 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
11666 and __builtins_aarch64_set_fpsr.
11667 (aarch64_atomic_assign_expand_fenv): New function.
11668 * config/aarch64/aarch64.md (set_fpcr): New pattern.
11669 (get_fpcr) : Likewise.
11670 (set_fpsr) : Likewise.
11671 (get_fpsr) : Likewise.
11672 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
11673 and UNSPECV_SET_FPSR.
11674 * doc/extend.texi (AARCH64 Built-in Functions) : Document
11675 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
11676 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
11678 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
11680 PR rtl-optimization/60969
11681 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
11682 constraints. Set up mem cost for NO_REGS case.
11684 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
11686 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
11688 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
11690 * config/darwin.c: Include "lto-section-names.h".
11691 (LTO_SEGMENT_NAME): Don't define.
11692 * config/i386/winnt.c: Include "lto-section-names.h".
11693 * lto-streamer.c: Include "lto-section-names.h".
11694 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
11695 * lto-wrapper.c: Include "lto-section-names.h".
11696 (LTO_SECTION_NAME_PREFIX): Don't define.
11697 * lto-section-names.h: New file.
11698 * cgraphunit.c: Include "lto-section-names.h".
11700 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
11702 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
11704 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
11707 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
11709 2014-05-22 Nick Clifton <nickc@redhat.com>
11711 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
11713 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
11715 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
11716 -> (T)A transformation to integer types.
11718 2014-05-22 Teresa Johnson <tejohnson@google.com>
11720 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
11721 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
11722 (gcov_rewrite): Use gcov_nonruntime_assert.
11723 (gcov_open): Ditto.
11724 (gcov_write_words): Ditto.
11725 (gcov_write_length): Ditto.
11726 (gcov_read_words): Use gcov_nonruntime_assert, and remove
11727 gcc_assert from IN_LIBGCOV code.
11728 (gcov_read_summary): Use gcov_error to flag profile corruption.
11729 (gcov_sync): Use gcov_nonruntime_assert.
11730 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
11731 (gcov_histo_index): Use gcov_nonruntime_assert.
11732 (static void gcov_histogram_merge): Ditto.
11733 (compute_working_sets): Ditto.
11734 * gcov-io.h (gcov_nonruntime_assert): Define.
11735 (gcov_error): Define for !IN_LIBGCOV
11737 2014-05-22 Richard Biener <rguenther@suse.de>
11739 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
11740 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
11741 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
11742 and deallocation site.
11743 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11744 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
11745 passing through the incoming points-to set.
11746 (handle_lhs_call): Use flags argument instead of recomputing it.
11747 (find_func_aliases_for_call): Call handle_lhs_call with proper
11750 2014-05-22 Jakub Jelinek <jakub@redhat.com>
11752 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
11753 all padding bits in REAL_VALUE_TYPE are cleared.
11755 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11757 Cleanup and improve multipass_dfa_lookahead_guard
11758 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
11759 (core2i7_first_cycle_multipass_begin,)
11760 (core2i7_first_cycle_multipass_issue,)
11761 (core2i7_first_cycle_multipass_backtrack): Update signature.
11762 * config/ia64/ia64.c
11763 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
11764 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
11765 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
11767 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
11768 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
11770 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
11772 * doc/tm.texi: Regenerate.
11774 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
11775 * haifa-sched.c (ready_try): Make signed to allow negative values.
11776 (rebug_ready_list_1): Update.
11777 (choose_ready): Simplify.
11778 (sched_extend_ready_list): Update.
11780 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11782 Remove IA64 speculation tweaking flags
11783 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
11784 speculation tuning flags.
11785 (msched-prefer-non-data-spec-insns,)
11786 (msched-prefer-non-control-spec-insns): Obsolete options.
11787 * haifa-sched.c (choose_ready): Remove handling of
11788 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
11789 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
11790 and PREFER_NON_DATA_SPEC.
11791 * sel-sched.c (process_spec_exprs): Remove handling of
11792 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
11794 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11796 Improve scheduling debug output
11797 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
11798 (advance_one_cycle): Update.
11799 (schedule_insn, queue_to_ready): Add debug printouts.
11800 (debug_ready_list_1): New static function.
11801 (debug_ready_list): Update.
11802 (max_issue): Add debug printouts.
11803 (dump_insn_stream): New static function.
11804 (schedule_block): Use it. Also better indent printouts.
11806 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11808 Fix sched_insn debug counter
11809 * haifa-sched.c (schedule_insn): Update.
11810 (struct haifa_saved_data): Add nonscheduled_insns_begin.
11811 (save_backtrack_point, restore_backtrack_point): Update.
11812 (first_nonscheduled_insn): New static function.
11813 (queue_to_ready, choose_ready): Use it.
11814 (schedule_block): Init nonscheduled_insns_begin.
11815 (sched_emit_insn): Update.
11818 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
11820 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
11822 (aarch64_secondary_reload) : LikeWise.
11823 (aarch64_class_max_nregs) : Remove CORE_REGS.
11824 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
11825 (REG_CLASS_NAMES) : Likewise.
11826 (REG_CLASS_CONTENTS) : LikeWise.
11827 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
11829 2014-05-21 Guozhi Wei <carrot@google.com>
11832 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
11834 (vqdmulhq_n_s16): Likewise.
11836 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11838 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
11840 2014-05-21 Marek Polacek <polacek@redhat.com>
11843 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
11845 2014-05-21 Martin Jambor <mjambor@suse.cz>
11847 * doc/invoke.texi (Optimize Options): Document parameters
11848 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
11849 ipa-cp-array-index-hint-bonus.
11851 2014-05-21 Mark Wielaard <mjw@redhat.com>
11854 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
11855 version >= 3 or not strict DWARF.
11856 * langhooks.h (struct lang_hooks_for_types): Add
11857 enum_underlying_base_type.
11858 * langhooks.c (lhd_enum_underlying_base_type): New function.
11859 * gcc/langhooks.h (struct lang_hooks_for_types): Add
11860 enum_underlying_base_type.
11861 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
11862 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
11863 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
11865 2014-05-21 Richard Biener <rguenther@suse.de>
11867 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
11869 2014-05-21 John Marino <gnugcc@marino.st>
11871 * config.gcc (*-*-dragonfly*): New target.
11872 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
11873 * configure: Regenerate.
11874 * config/dragonfly-stdint.h: New.
11875 * config/dragonfly.h: New.
11876 * config/dragonfly.opt: New.
11877 * config/i386/dragonfly.h: New.
11878 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
11880 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
11882 * tree.def (VOID_CST): New.
11883 * tree-core.h (TI_VOID): New.
11884 * tree.h (void_node): New.
11885 * tree.c (tree_node_structure_for_code, tree_code_size)
11886 (iterative_hash_expr): Handle VOID_CST.
11887 (build_common_tree_nodes): Initialize void_node.
11889 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
11891 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
11893 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
11895 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
11898 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
11899 flag_reorder_blocks_and_partition.
11900 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
11902 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
11905 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
11907 (*addc_r_t): Add new insn_and_split.
11909 2014-05-21 Jakub Jelinek <jakub@redhat.com>
11911 PR middle-end/61252
11912 * omp-low.c (handle_simd_reference): New function.
11913 (lower_rec_input_clauses): Use it. Defer adding reference
11914 initialization even for reduction without placeholder if in simd,
11915 handle it properly later on.
11917 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
11919 PR tree-optimization/60899
11920 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
11921 assume all static symbols will have definition wile parsing and
11922 check the do have definition later in compilation; check that
11923 variable referring symbol will be output before concluding that
11924 reference is safe; be conservative for referring local statics;
11925 be more precise about when comdat is output in other partition.
11927 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
11930 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
11932 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
11933 (ipa_inline): Loop inline_to_all_callers until no more aliases
11936 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
11938 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
11939 set writeonly flag only for vars actually written to.
11941 2014-05-20 Dehao Chen <dehao@google.com>
11943 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
11944 and callee count to get clone count.
11945 * tree-inline.c (expand_call_inline): Use callee count instead of bb
11946 count in copy_body.
11948 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
11950 PR rtl-optimization/61243
11951 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
11953 2014-05-20 Xinliang David Li <davidxl@google.com>
11955 * cgraphunit.c (walk_polymorphic_call_targets): Add
11956 dbgcnt and fopt-info support.
11957 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
11958 * ipa-devirt.c (ipa_devirt): Ditto.
11959 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
11960 * ipa.c (walk_polymorphic_call_targets): Ditto.
11961 * gimple-fold.c (fold_gimple_assign): Ditto.
11962 (gimple_fold_call): Ditto.
11963 * dbgcnt.def: New counter.
11965 2014-05-20 DJ Delorie <dj@redhat.com>
11967 * config/msp430/msp430.md (split): Don't allow subregs when
11968 splitting SImode adds.
11969 (andneghi): Fix subtraction logic.
11970 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
11972 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
11974 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
11976 * except.c (switch_to_exception_section, resolve_unique_section,
11977 get_named_text_section, default_function_rodata_section,
11978 align_variable, get_block_for_decl, default_section_type_flags):
11979 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
11980 * symtab.c (symtab_add_to_same_comdat_group,
11981 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
11982 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
11984 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
11985 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
11986 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
11987 (c6x_function_in_section_p): Likewise.
11988 * config/darwin.c (machopic_select_section): Likewise.
11989 * config/arm/arm.c (arm_function_in_section_p): Likewise.
11990 * config/mips/mips.c (mips_function_rodata_section): Likewise.
11991 * config/mep/mep.c (mep_select_section): LIkewise.
11992 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
11994 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
11996 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
11997 EH region of calls to pure functions that can throw an exception.
11998 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
11999 (copy_reference_ops_from_call): Also copy the EH region of the call if
12000 it can throw an exception.
12002 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12004 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
12005 nested VEC_SELECTs that are inverses of each other.
12007 2014-05-20 Richard Biener <rguenther@suse.de>
12009 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
12010 (extract_and_process_scc_for_name): not here.
12011 (cond_dom_walker::before_dom_children): Only process
12012 stmts that end the BB in interesting ways.
12013 (run_scc_vn): Mark param uses as visited.
12015 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12017 * config/arm/arm.md (arith_shiftsi): Do not predicate for
12020 2014-05-20 Nick Clifton <nickc@redhat.com>
12022 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
12023 (msp430_gimplify_va_arg_expr): New function.
12024 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
12026 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
12027 operand 0 in order to prevent confusion about the number of
12028 registers involved.
12030 2014-05-20 Richard Biener <rguenther@suse.de>
12032 PR tree-optimization/61221
12033 * tree-ssa-pre.c (el_to_update): Remove.
12034 (eliminate_dom_walker::before_dom_children): Handle released
12035 VDEFs by value-numbering them to the associated VUSE. Update
12036 stmt immediately for substituted call address.
12037 (eliminate): Remove delayed stmt updating code.
12038 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
12039 possibly late re-numbered vuses.
12040 (vn_reference_lookup_2): Adjust.
12041 (vn_reference_lookup_pieces): Likewise.
12042 (vn_reference_lookup): Likewise.
12044 2014-05-20 Richard Biener <rguenther@suse.de>
12046 * config.gcc: Remove need_64bit_hwint.
12047 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
12048 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
12050 * config.in: Regenerate.
12051 * configure: Likewise.
12053 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
12055 * doc/extend.texi: Create Label Attributes section,
12056 move all label attributes into it and reference it.
12058 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
12060 * arm.c (thumb1_reorg): When scanning backwards skip anything
12061 that's not a proper insn.
12063 2014-05-19 Richard Biener <rguenther@suse.de>
12065 PR tree-optimization/61221
12066 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12067 Do nothing for unreachable blocks.
12068 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
12069 Improve unreachability detection.
12071 2014-05-19 Richard Biener <rguenther@suse.de>
12073 PR tree-optimization/61209
12074 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
12076 2014-05-19 Nick Clifton <nickc@redhat.com>
12078 * except.c (init_eh): Fix computation of builtin setjmp buffer
12079 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
12081 2014-05-19 Richard Biener <rguenther@suse.de>
12083 PR tree-optimization/61184
12084 * tree-vrp.c (is_negative_overflow_infinity): Use
12085 TREE_OVERFLOW_P and do that check first.
12086 (is_positive_overflow_infinity): Likewise.
12087 (is_overflow_infinity): Likewise.
12088 (vrp_operand_equal_p): Properly treat operands with
12089 differing overflow as not equal.
12091 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
12093 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
12094 shift simplification where it was intended.
12096 2014-05-19 Christian Bruel <christian.bruel@st.com>
12099 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
12101 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
12104 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
12107 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
12109 * reg-notes.def (CROSSING_JUMP): Likewise.
12110 * rtl.h (rtx_def): Update comment for jump flag.
12111 (CROSSING_JUMP_P): Define.
12112 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
12113 of a REG_CROSSING_JUMP note.
12114 * cfghooks.c (tidy_fallthru_edges): Likewise.
12115 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
12116 * emit-rtl.c (try_split): Likewise.
12117 * haifa-sched.c (sched_create_recovery_edges): Likewise.
12118 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
12119 * jump.c (redirect_jump_2): Likewise.
12120 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
12121 (relax_delay_slots): Likewise.
12122 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
12123 (bbit_di): Likewise.
12124 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
12125 * config/sh/sh.md (jump_compact): Likewise.
12126 * bb-reorder.c (rotate_loop): Likewise.
12127 (pass_duplicate_computed_gotos::execute): Likewise.
12128 (add_reg_crossing_jump_notes): Rename to...
12129 (update_crossing_jump_flags): ...this.
12130 (pass_partition_blocks::execute): Update accordingly.
12132 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
12134 * tree.h: Remove extraneous template <>.
12136 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
12138 * ipa.c (symtab_remove_unreachable_nodes): Remove
12139 symbol from comdat group if its body was eliminated.
12140 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
12141 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
12142 (symtab_unregister_node): ... this one.
12143 (verify_symtab_base): More strict checking of comdats.
12144 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
12146 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
12148 * tree-pass.h (make_pass_ipa_comdats): New pass.
12149 * timevar.def (TV_IPA_COMDATS): New timevar.
12150 * passes.def (pass_ipa_comdats): Add.
12151 * Makefile.in (OBJS): Add ipa-comdats.o
12152 * ipa-comdats.c: New file.
12154 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
12156 * ipa.c (update_visibility_by_resolution_info): New function.
12157 (function_and_variable_visibility): Use it.
12159 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
12161 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
12163 (FOR_EACH_DEFINED_SYMBOL): New macro.
12164 (varpool_first_static_initializer, varpool_next_static_initializer,
12165 varpool_first_defined_variable, varpool_next_defined_variable):
12167 (symtab_in_same_comdat_p): Correctly deal with inline functions.
12169 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
12171 * ggc-page.c (ggc_handle_finalizers): Add comment.
12173 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
12175 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
12176 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
12177 (ggc_internal_cleared_alloc): Likewise.
12178 * ggc-page.c (finalizer): New class.
12179 (vec_finalizer): Likewise.
12180 (globals::finalizers): New member.
12181 (globals::vec_finalizers): Likewise.
12182 (ggc_internal_alloc): Record the finalizer if any for the block being
12184 (ggc_handle_finalizers): New function.
12185 (ggc_collect): Call ggc_handle_finalizers.
12186 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
12188 (ggc_internal_cleared_alloc): Likewise.
12189 (finalize): New function.
12190 (need_finalization_p): Likewise.
12191 (ggc_alloc): Install the type's destructor as the finalizer if it
12192 might do something.
12193 (ggc_cleared_alloc): Likewise.
12194 (ggc_vec_alloc): Likewise.
12195 (ggc_cleared_vec_alloc): Likewise.
12197 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
12199 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
12201 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
12203 * alias.c (record_alias_subset): Adjust.
12204 * bitmap.c (bitmap_element_allocate): Likewise.
12205 (bitmap_gc_alloc_stat): Likewise.
12206 * cfg.c (init_flow): Likewise.
12207 (alloc_block): Likewise.
12208 (unchecked_make_edge): Likewise.
12209 * cfgloop.c (alloc_loop): Likewise.
12210 (flow_loops_find): Likewise.
12211 (rescan_loop_exit): Likewise.
12212 * cfgrtl.c (init_rtl_bb_info): Likewise.
12213 * cgraph.c (insert_new_cgraph_node_version): Likewise.
12214 (cgraph_allocate_node): Likewise.
12215 (cgraph_create_edge_1): Likewise.
12216 (cgraph_allocate_init_indirect_info): Likewise.
12217 * cgraphclones.c (cgraph_clone_edge): Likewise.
12218 * cgraphunit.c (add_asm_node): Likewise.
12219 (init_lowered_empty_function): Likewise.
12220 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
12221 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
12222 (alpha_use_linkage): Likewise.
12223 * config/arc/arc.c (arc_init_machine_status): Likewise.
12224 * config/arm/arm.c (arm_init_machine_status): Likewise.
12225 * config/avr/avr.c (avr_init_machine_status): Likewise.
12226 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
12227 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
12228 * config/cris/cris.c (cris_init_machine_status): Likewise.
12229 * config/darwin.c (machopic_indirection_name): Likewise.
12230 (darwin_build_constant_cfstring): Likewise.
12231 (darwin_enter_string_into_cfstring_table): Likewise.
12232 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
12233 * config/frv/frv.c (frv_init_machine_status): Likewise.
12234 * config/i386/i386.c (get_dllimport_decl): Likewise.
12235 (ix86_init_machine_status): Likewise.
12236 (assign_386_stack_local): Likewise.
12237 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
12238 (i386_pe_maybe_record_exported_symbol): Likewise.
12239 (i386_pe_record_stub): Likewise.
12240 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
12241 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
12242 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
12243 (m32c_note_pragma_address): Likewise.
12244 * config/mep/mep.c (mep_init_machine_status): Likewise.
12245 (mep_note_pragma_flag): Likewise.
12246 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
12247 (mips16_local_alias): Likewise.
12248 (mips_init_machine_status): Likewise.
12249 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
12250 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
12251 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
12252 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
12253 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
12254 * config/pa/pa.c (pa_init_machine_status): Likewise.
12255 (pa_get_deferred_plabel): Likewise.
12256 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
12257 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
12258 (rs6000_init_machine_status): Likewise.
12259 (output_toc): Likewise.
12260 * config/s390/s390.c (s390_init_machine_status): Likewise.
12261 * config/score/score.c (score_output_external): Likewise.
12262 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
12263 * config/spu/spu.c (spu_init_machine_status): Likewise.
12264 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
12265 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
12266 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
12267 * coverage.c (coverage_end_function): Likewise.
12268 * dbxout.c (dbxout_init): Likewise.
12269 * doc/gty.texi: Don't mention variable_size attribute.
12270 * dwarf2cfi.c (new_cfi): Adjust.
12271 (new_cfi_row): Likewise.
12272 (copy_cfi_row): Likewise.
12273 (create_cie_data): Likewise.
12274 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
12275 (new_loc_descr): Likewise.
12276 (find_AT_string_in_table): Likewise.
12277 (add_addr_table_entry): Likewise.
12278 (new_die): Likewise.
12279 (add_var_loc_to_decl): Likewise.
12280 (clone_die): Likewise.
12281 (clone_as_declaration): Likewise.
12282 (break_out_comdat_types): Likewise.
12283 (new_loc_list): Likewise.
12284 (add_loc_descr_to_each): Likewise.
12285 (add_location_or_const_value_attribute): Likewise.
12286 (add_linkage_name): Likewise.
12287 (lookup_filename): Likewise.
12288 (dwarf2out_var_location): Likewise.
12289 (new_line_info_table): Likewise.
12290 (dwarf2out_init): Likewise.
12291 (mem_loc_descriptor): Likewise.
12292 (loc_descriptor): Likewise.
12293 (add_const_value_attribute): Likewise.
12294 (tree_add_const_value_attribute): Likewise.
12295 (comp_dir_string): Likewise.
12296 (dwarf2out_vms_debug_main_pointer): Likewise.
12297 (string_cst_pool_decl): Likewise.
12298 * emit-rtl.c (set_mem_attrs): Likewise.
12299 (get_reg_attrs): Likewise.
12300 (start_sequence): Likewise.
12301 (init_emit): Likewise.
12302 (init_emit_regs): Likewise.
12303 * except.c (init_eh_for_function): Likewise.
12304 (gen_eh_region): Likewise.
12305 (gen_eh_region_catch): Likewise.
12306 (gen_eh_landing_pad): Likewise.
12307 (add_call_site): Likewise.
12308 * function.c (add_frame_space): Likewise.
12309 (insert_temp_slot_address): Likewise.
12310 (assign_stack_temp_for_type): Likewise.
12311 (get_hard_reg_initial_val): Likewise.
12312 (allocate_struct_function): Likewise.
12313 (prepare_function_start): Likewise.
12314 (types_used_by_var_decl_insert): Likewise.
12315 * gengtype.c (variable_size_p): Remove function.
12316 (enum alloc_quantity): Remove enum.
12317 (write_typed_alloc_def): Remove function.
12318 (write_typed_struct_alloc_def): Likewise.
12319 (write_typed_typedef_alloc_def): Likewise.
12320 (write_typed_alloc_defns): Likewise.
12322 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
12323 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
12324 * ggc.h (ggc_alloc): new function.
12325 (ggc_cleared_alloc): Likewise.
12326 (ggc_vec_alloc): Template on type of vector element, and remove
12327 element size argument.
12328 (ggc_cleared_vec_alloc): Likewise.
12329 * gimple.c (gimple_build_omp_for): Adjust.
12330 (gimple_copy): Likewise.
12331 * ipa-cp.c (get_replacement_map): Likewise.
12332 (find_aggregate_values_for_callers_subset): Likewise.
12333 (known_aggs_to_agg_replacement_list): Likewise.
12334 * ipa-devirt.c (get_odr_type): Likewise.
12335 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
12336 (read_agg_replacement_chain): Likewise.
12337 * loop-iv.c (get_simple_loop_desc): Likewise.
12338 * lto-cgraph.c (input_node_opt_summary): Likewise.
12339 * lto-section-in.c (lto_new_in_decl_state): Likewise.
12340 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
12341 (input_eh_region): Likewise.
12342 (input_eh_lp): Likewise.
12343 (input_cfg): Likewise.
12344 * optabs.c (set_optab_libfunc): Likewise.
12345 (init_tree_optimization_optabs): Likewise.
12346 (set_conv_libfunc): Likewise.
12347 * passes.c (do_per_function_toporder): Likewise.
12348 * rtl.h: Don't use variable_size gty attribute.
12349 * sese.c (if_region_set_false_region): Adjust.
12350 * stringpool.c (gt_pch_save_stringpool): Likewise.
12351 * target-globals.c (save_target_globals): Likewise.
12352 * toplev.c (general_init): Likewise.
12353 * trans-mem.c (record_tm_replacement): Likewise.
12354 (split_bb_make_tm_edge): Likewise.
12355 * tree-cfg.c (move_sese_region_to_fn): Likewise.
12356 * tree-data-ref.h (lambda_vector_new): Likewise.
12357 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
12358 * tree-iterator.c (tsi_link_before): Likewise.
12359 (tsi_link_after): Likewise.
12360 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
12361 * tree-ssa-loop-niter.c (record_estimate): Likewise.
12362 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
12363 * tree-ssa-operands.h: Don't use variable_size gty attribute.
12364 * tree-ssa.c (init_tree_ssa): Adjust.
12365 * tree-ssanames.c (set_range_info): Likewise.
12366 (get_ptr_info): Likewise.
12367 (duplicate_ssa_name_ptr_info): Likewise.
12368 (duplicate_ssa_name_range_info): Likewise.
12369 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
12370 (unpack_ts_fixed_cst_value_fields): Likewise.
12371 * tree.c (build_fixed): Likewise.
12372 (build_real): Likewise.
12373 (build_string): Likewise.
12374 (decl_priority_info): Likewise.
12375 (decl_debug_expr_insert): Likewise.
12376 (decl_value_expr_insert): Likewise.
12377 (decl_debug_args_insert): Likewise.
12378 (type_hash_add): Likewise.
12379 (build_omp_clause): Likewise.
12380 * ubsan.c (decl_for_type_insert): Likewise.
12381 * varasm.c (get_unnamed_section): Likewise.
12382 (get_noswitch_section): Likewise.
12383 (get_section): Likewise.
12384 (get_block_for_section): Likewise.
12385 (create_block_symbol): Likewise.
12386 (build_constant_desc): Likewise.
12387 (create_constant_pool): Likewise.
12388 (force_const_mem): Likewise.
12389 (record_tm_clone_pair): Likewise.
12390 * varpool.c (varpool_create_empty_node): Likewise.
12392 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
12394 * dwarf2out.c (tree_add_const_value_attribute): Call
12395 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
12396 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
12397 instead of ggc_internal_<x>alloc_stat.
12398 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
12399 (ggc_realloc): Likewise.
12400 * ggc-none.c (ggc_internal_alloc): Likewise.
12401 (ggc_internal_cleared_alloc): Likewise.
12402 * ggc-page.c: Likewise.
12403 * ggc.h (ggc_internal_alloc_stat): Likewise.
12404 (ggc_internal_alloc): Remove macro.
12405 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
12406 (ggc_internal_cleared_alloc): Remove macro.
12407 (GGC_RESIZEVEC): Adjust.
12408 (ggc_resizevar): Remove macro.
12409 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
12410 (ggc_internal_cleared_vec_alloc_stat): Likewise.
12411 (ggc_internal_vec_cleared_alloc): Remove macro.
12412 (ggc_alloc_atomic_stat): Drop _stat suffix.
12413 (ggc_alloc_atomic): Remove macro.
12414 (ggc_alloc_cleared_atomic): Remove macro.
12415 (ggc_alloc_string_stat): Drop _stat suffix.
12416 (ggc_alloc_string): Remove macro.
12417 (ggc_alloc_rtx_def_stat): Adjust.
12418 (ggc_alloc_tree_node_stat): Likewise.
12419 (ggc_alloc_cleared_tree_node_stat): Likewise.
12420 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
12421 (ggc_alloc_cleared_simd_clone_stat): Likewise.
12422 * gimple.c (gimple_build_omp_for): Likewise.
12423 (gimple_copy): Likewise.
12424 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
12425 * toplev.c (realloc_for_line_map): Adjust.
12426 * tree-data-ref.h (lambda_vector_new): Likewise.
12427 * tree-phinodes.c (allocate_phi_node): Likewise.
12428 * tree.c (grow_tree_vec_stat): Likewise.
12429 * vec.h (va_gc::reserve): Adjust.
12431 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
12433 * config/microblaze/microblaze.c (break_handler): New Declaration.
12434 (microblaze_break_function_p,microblaze_is_break_handler): New.
12435 (compute_frame_size): Use microblaze_break_function_p.
12436 Add the test of break_handler.
12437 (microblaze_function_prologue) : Add the test of variable
12438 break_handler. Check the fnname by BREAK_HANDLER_NAME.
12439 (microblaze_function_epilogue) : Add the test of break_handler.
12440 (microblaze_globalize_label) : Add the test of break_handler.
12441 Check the name by BREAK_HANDLER_NAME.
12443 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
12445 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
12446 microblaze_is_break_handler test.
12447 (call_internal1,call_value_intern): Use microblaze_break_function_p.
12448 Use SYMBOL_REF_DECL.
12450 * config/microblaze/microblaze-protos.h
12451 (microblaze_break_function_p,microblaze_is_break_handler):
12454 * doc/extend.texi (MicroBlaze break_handler Functions): Document
12455 new MicroBlaze break_handler functions.
12457 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
12459 * doc/extend.texi (Size of an asm): Move node text according
12460 to its @menu entry position.
12462 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
12464 PR tree-optimization/61140
12465 PR tree-optimization/61150
12466 PR tree-optimization/61197
12467 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
12469 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
12471 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
12473 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
12475 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
12476 __SIZEOF_INT128__ is defined.
12478 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
12480 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
12481 (rs6000_delegitimize_address): Use it.
12483 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
12485 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
12486 inplace argument. Store the new address in the original MEM when true.
12487 * emit-rtl.c (change_address_1): Likewise.
12488 (adjust_address_1, adjust_automodify_address_1, offset_address):
12489 Update accordingly.
12490 * rtl.h (plus_constant): Add an inplace argument.
12491 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
12492 when true. Avoid generating (plus X (const_int 0)).
12493 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
12494 in-place. Pass true to plus_constant.
12495 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
12497 2014-05-16 Dehao Chen <dehao@google.com>
12499 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
12501 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
12504 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
12506 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
12508 2014-05-16 Dehao Chen <dehao@google.com>
12510 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
12511 optimize_function_for_size_p.
12512 * regs.h (REG_FREQ_FROM_BB): Likewise.
12514 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
12517 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
12518 negt_reg_operand cases.
12519 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
12521 * config/sh/predicates.md (cbranch_treg_value): Simplify.
12523 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
12525 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
12528 2014-05-16 David Malcolm <dmalcolm@redhat.com>
12531 2014-04-29 David Malcolm <dmalcolm@redhat.com>
12533 * tree-cfg.c (dump_function_to_file): Dump the return type of
12534 functions, in a line to itself before the function body, mimicking
12535 the layout of a C function.
12537 2014-05-16 Dehao Chen <dehao@google.com>
12539 * cfghooks.c (make_forwarder_block): Use direct computation to
12540 get fall-through edge's count and frequency.
12542 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
12544 * config/arc/arc.c (arc_init): Fix typo in error message.
12545 * config/i386/i386.c (ix86_expand_builtin): Likewise.
12546 (split_stack_prologue_scratch_regno): Likewise.
12547 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
12548 word from error message.
12550 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
12552 * ira-costs.c: Fix typo in comment.
12554 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
12556 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
12558 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
12560 * varpool.c (dump_varpool_node): Dump write-only flag.
12561 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
12563 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
12564 write-only variables.
12565 * ipa.c (process_references): New function.
12566 (set_readonly_bit): New function.
12567 (set_writeonly_bit): New function.
12568 (clear_addressable_bit): New function.
12569 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
12570 fix handling of aliases.
12571 * cgraph.h (struct varpool_node): Add writeonly flag.
12573 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
12575 PR rtl-optimization/60969
12576 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
12577 Calculate costs for this case.
12579 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
12581 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
12582 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
12584 2014-05-16 Richard Biener <rguenther@suse.de>
12586 PR tree-optimization/61194
12587 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
12588 bool patterns ending in a COND_EXPR.
12590 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12592 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
12594 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12596 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
12597 where we were unable to cost an RTX.
12599 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12601 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
12604 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12605 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12607 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
12609 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12610 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12612 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
12613 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
12615 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12616 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12618 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
12621 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12622 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12624 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
12627 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12628 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12630 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
12631 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
12633 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12634 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12636 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
12637 rotates and shifts.
12639 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12640 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12642 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
12643 ZERO_EXTEND and SIGN_EXTEND better.
12645 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12646 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12648 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
12649 logical operations.
12651 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12652 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12654 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
12655 costs when costing loads and stores to memory.
12657 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12658 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
12660 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
12663 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12665 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
12667 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12668 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12670 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
12672 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
12674 (aarch64_rtx_mult_cost): New.
12675 (aarch64_rtx_costs): Use it, refactor as appropriate.
12677 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12678 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12680 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
12681 emit instructions, return number of instructions which would
12683 (aarch64_add_constant): Update call to aarch64_build_constant.
12684 (aarch64_output_mi_thunk): Likewise.
12685 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
12688 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12690 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
12691 (TARGET_RTX_COSTS): Call it.
12693 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12695 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
12696 (cortexa57_vector_cost): Likewise.
12697 (cortexa57_tunings): Use them.
12699 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
12701 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
12702 (cpu_addrcost_table): Use it.
12703 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
12704 (aarch64_address_cost): Rewrite using aarch64_classify_address,
12707 2014-05-16 Richard Biener <rguenther@suse.de>
12709 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
12710 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
12711 (visit_phi): Ignore edges marked as not executable.
12712 (class cond_dom_walker): New.
12713 (cond_dom_walker::before_dom_children): Value-number
12714 control statements and mark successor edges as not
12715 executable if possible.
12716 (run_scc_vn): First walk all control statements in
12717 dominator order, marking edges as not executable.
12718 * tree-inline.c (copy_edges_for_bb): Be not confused
12719 about random edge flags.
12721 2014-05-16 Richard Biener <rguenther@suse.de>
12723 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
12725 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
12728 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
12729 (__TM_simple_begin): Use it.
12730 (__TM_begin): Likewise.
12732 2014-05-15 Martin Jambor <mjambor@suse.cz>
12735 * ipa-prop.c (update_indirect_edges_after_inlining): Check
12736 type_preserved flag when the indirect edge is polymorphic.
12738 2014-05-15 Martin Jambor <mjambor@suse.cz>
12740 PR tree-optimization/61090
12741 * tree-sra.c (sra_modify_expr): Pass the current gsi to
12742 build_ref_for_model.
12744 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12746 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
12747 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
12749 2014-05-15 Jakub Jelinek <jakub@redhat.com>
12751 PR tree-optimization/61158
12752 * fold-const.c (fold_binary_loc): If X is zero-extended and
12753 shiftc >= prec, make sure zerobits is all ones instead of
12754 invoking undefined behavior.
12756 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12758 * regcprop.h: New file.
12759 * regcprop.c (skip_debug_insn_p): New decl.
12760 (replace_oldest_value_reg): Check skip_debug_insn_p.
12761 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
12762 * shrink-wrap.c: Include regcprop.h.
12763 (prepare_shrink_wrap): Call
12764 copyprop_hardreg_forward_bb_without_debug_insn.
12766 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12768 * shrink-wrap.h: Update comment.
12769 * shrink-wrap.c: Update comment.
12770 (next_block_for_reg): Rename to live_edge_for_reg.
12771 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
12772 (move_insn_for_shrink_wrap): Split live_edge.
12773 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
12775 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
12777 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
12779 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
12780 * config/sparc/sparc.md (fptype_ut699): New attribute.
12781 (in_branch_delay): Return false if -mfix-ut699 is specified and
12782 fptype_ut699 is set to single.
12783 (truncdfsf2): Add fptype_ut699 attribute.
12784 (fix_truncdfsi2): Likewise.
12785 (floatsisf2): Change fptype attribute.
12786 (fix_truncsfsi2): Likewise.
12787 (negtf2_notv9): Delete.
12788 (negtf2_v9): Likewise.
12789 (negtf2_hq): New instruction.
12790 (negtf2): New instruction and splitter.
12791 (negdf2_notv9): Rewrite.
12792 (abstf2_notv9): Delete.
12793 (abstf2_hq_v9): Likewise.
12794 (abstf2_v9): Likewise.
12795 (abstf2_hq): New instruction.
12796 (abstf2): New instruction and splitter.
12797 (absdf2_notv9): Rewrite.
12799 2014-05-14 Cary Coutant <ccoutant@google.com>
12802 * opts.c (common_handle_option): Don't special-case "-g".
12803 (set_debug_level): Default to at least level 2 with "-g".
12805 2014-05-14 DJ Delorie <dj@redhat.com>
12807 * config/msp430/msp430.c (msp430_builtin): Add
12808 MSP430_BUILTIN_DELAY_CYCLES.
12809 (msp430_init_builtins): Register void __delay_cycles(long long).
12810 (msp430_builtin_decl): Add it.
12811 (cg_magic_constant): New.
12812 (msp430_expand_delay_cycles): New.
12813 (msp430_expand_builtin): Call it.
12814 (msp430_print_operand_raw): Change integer printing from "int" to
12816 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
12817 (delay_cycles_start): New.
12818 (delay_cycles_end): New.
12819 (delay_cycles_32): New.
12820 (delay_cycles_32x): New.
12821 (delay_cycles_16): New.
12822 (delay_cycles_16x): New.
12823 (delay_cycles_2): New.
12824 (delay_cycles_1): New.
12825 * doc/extend.texi: Document __delay_cycles().
12827 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
12829 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
12830 length attribute computation.
12832 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
12835 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
12837 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
12840 * config/sparc/sparc.md: Fix types of low and high in DI constant
12841 splitter. Use gen_int_mode in some other splitters.
12843 2014-05-14 Martin Jambor <mjambor@suse.cz>
12846 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
12848 2014-05-14 James Norris <jnorris@codesourcery.com>
12850 * omp-low.c (expand_parallel_call): Remove shadow variable.
12851 (expand_omp_taskreg): Likewise.
12853 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
12855 * common/config/i386/i386-common.c
12856 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
12857 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
12858 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
12859 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
12860 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
12861 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
12862 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
12863 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
12864 xsavecintrin.h, xsavesintrin.h.
12865 (x86_64-*-*): Ditto.
12866 * config/i386/clflushoptintrin.h: New.
12867 * config/i386/xsavecintrin.h: Ditto.
12868 * config/i386/xsavesintrin.h: Ditto.
12869 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
12870 (bit_XSAVES): Ditto.
12871 (bit_XSAVES): Ditto.
12872 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
12873 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
12875 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12876 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
12877 OPTION_MASK_ISA_XSAVES.
12878 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
12879 -mxsavec, -mxsaves.
12880 (PTA_CLFLUSHOPT) Define.
12881 (PTA_XSAVEC): Ditto.
12882 (PTA_XSAVES): Ditto.
12883 (ix86_option_override_internal): Handle new options.
12884 (ix86_valid_target_attribute_inner_p): Ditto.
12885 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
12886 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
12887 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
12888 (bdesc_special_args): Add __builtin_ia32_xsaves,
12889 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
12890 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
12891 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
12892 (ix86_expand_builtin): Handle new builtins.
12893 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
12894 (TARGET_CLFLUSHOPT_P): Ditto.
12895 (TARGET_XSAVEC): Ditto.
12896 (TARGET_XSAVEC_P): Ditto.
12897 (TARGET_XSAVES): Ditto.
12898 (TARGET_XSAVES_P): Ditto.
12899 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
12900 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
12901 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
12903 (ANY_XRSTOR64): Ditto.
12905 (xrstor): Change into <xrstor>.
12906 (xrstor_rex64): Change into <xrstor>_rex64.
12907 (xrstor64): Change into <xrstor>64
12909 * config/i386/i386.opt (mclflushopt): New.
12912 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
12914 * doc/invoke.texi: Document new options.
12916 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
12918 PR rtl-optimization/60866
12919 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
12920 Default it to -1. Pass it down to init_simplejump_data.
12921 (init_simplejump_data): New parameter old_seqno. Pass it down
12922 to get_seqno_for_a_jump.
12923 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
12924 initializing new jump seqno as a last resort. Add comment.
12925 (sel_redirect_edge_and_branch): Save old seqno of the conditional
12926 jump and pass it down to sel_init_new_insn.
12927 (sel_redirect_edge_and_branch_force): Likewise.
12929 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
12931 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
12932 shifted values to avoid build warning.
12934 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
12936 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
12937 * cfgrtl.c (rtl_merge_blocks): Fix comment.
12938 (cfg_layout_merge_blocks): Likewise.
12939 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
12941 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
12943 PR rtl-optimization/60901
12944 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
12945 bb predecessor belongs to the same scheduling region. Adjust comment.
12947 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
12949 * doc/sourcebuild.texi: (dfp_hw): Document.
12950 (p8vector_hw): Likewise.
12951 (powerpc_eabi_ok): Likewise.
12952 (powerpc_elfv2): Likewise.
12953 (powerpc_htm_ok): Likewise.
12954 (ppc_recip_hw): Likewise.
12955 (vsx_hw): Likewise.
12957 2014-05-13 Cary Coutant <ccoutant@google.com>
12959 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
12961 2014-05-13 David Malcolm <dmalcolm@redhat.com>
12963 * gengtype-parse.c (require3): Eliminate in favor of...
12965 (require_template_declaration): Update to support optional single *
12968 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
12969 (create_user_defined_type): Handle a single level of explicit
12970 pointerness within template arguments.
12971 (struct write_types_data): Add field "kind".
12972 (filter_type_name): Handle "*" character.
12973 (write_user_func_for_structure_ptr): Require a write_types_data
12974 rather than just a prefix string, so that we can look up the kind
12975 of the wtd and use it as an index into wrote_user_func_for_ptr,
12976 ensuring that such functions are written at most once. Support
12977 subclasses by invoking the marking function of the ultimate base class.
12978 (write_user_func_for_structure_body): Require a write_types_data
12979 rather than just a prefix string, so that we can pass this to
12980 write_user_func_for_structure_ptr.
12981 (write_func_for_structure): Likewise.
12982 (ggc_wtd): Add initializer of new "kind" field.
12983 (pch_wtd): Likewise.
12985 * gengtype.h (enum write_types_kinds): New.
12986 (struct type): Add field wrote_user_func_for_ptr to the "s"
12989 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
12991 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
12992 instead of const_binop.
12993 (fold_binary_loc): Likewise.
12995 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
12997 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
12998 calculation to match get_ref_base_and_extent.
13000 2014-05-13 Catherine Moore <clm@codesourcery.com>
13001 Sandra Loosemore <sandra@codesourcery.com>
13003 * configure.ac: Fix assembly for explicit JALR relocation check.
13004 * configure: Regenerate.
13006 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13008 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
13009 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
13010 Remove associated type declarations and initialisations.
13011 (arm_expand_neon_builtin): Likewise.
13012 (neon_emit_pair_result_insn): Delete.
13013 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
13014 * config/arm/neon.md (neon_vtrn<mode>): Delete.
13015 (neon_vzip<mode>): Likewise.
13016 (neon_vuzp<mode>): Likewise.
13018 2014-05-13 Richard Biener <rguenther@suse.de>
13021 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
13022 it needs revisiting whether the call still may be tail-called.
13024 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
13026 * rtl.def (SYMBOL_REF): Remove middle "0" field.
13027 * rtl.h (block_symbol): Reduce number of fields to 2.
13028 (rtx_def): Add u2.symbol_ref_flags.
13029 (SYMBOL_REF_FLAGS): Use it.
13030 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
13031 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
13032 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
13033 Lower index of SYMBOL_REF_DATA.
13034 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
13035 Print SYMBOL_REF_FLAGS at the same time.
13036 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
13038 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
13040 * rtl.def (VAR_LOCATION): Remove "i" field.
13041 * rtl.h (rtx_def): Add u2.var_location_status.
13042 (PAT_VAR_LOCATION_STATUS): Use it.
13043 (gen_rtx_VAR_LOCATION): Declare.
13044 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
13045 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
13046 * var-tracking.c (emit_note_insn_var_location): Remove casts.
13048 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
13050 * rtl.def (scratch): Fix outdated comment and remove "0" field.
13051 * gengtype.c (adjust_field_rtx_def): Update accordingly.
13053 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
13055 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
13056 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
13057 * rtl.h (rtx_def): Add insn_uid to u2 field.
13058 (RTX_FLAG_CHECK8): Delete in favor of...
13059 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
13060 (INSN_DELETED_P): Update accordingly.
13061 (INSN_UID): Use u2.insn_uid.
13062 (INSN_CHAIN_CODE_P): Define.
13063 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
13064 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
13065 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
13066 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
13067 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
13068 indices accordingly.
13069 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
13070 Update indices for insn-chain rtxes.
13071 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
13072 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
13073 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
13074 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
13075 * combine.c (try_combine): Likewise.
13076 * ira.c (setup_prohibited_mode_move_regs): Likewise.
13078 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
13080 * rtl.def (REG): Remove middle field.
13081 * rtl.h (rtx_def): Add orignal_regno to u2.
13082 (ORIGINAL_REGNO): Use it instead of field 1.
13083 (REG_ATTRS): Lower field index accordingly.
13084 * gengtype.c (adjust_field_rtx_def): Remove handling of
13085 ORIGINAL_REGNO. Move REG_ATTRS index down.
13086 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
13087 code that prints the REGNO.
13089 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
13091 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
13094 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
13096 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
13098 2014-05-13 Bin Cheng <bin.cheng@arm.com>
13100 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
13101 (alloc_iv): Lower base expressions containing ADDR_EXPR.
13103 2014-05-13 Ian Bolton <ian.bolton@arm.com>
13105 * config/aarch64/aarch64-protos.h
13106 (aarch64_hard_regno_caller_save_mode): New prototype.
13107 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
13109 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
13111 2014-05-13 Christian Bruel <christian.bruel@st.com>
13113 * target.def (mode_switching): New hook vector.
13114 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
13115 (mode_exit, modepriority_to_mode): Likewise.
13116 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
13117 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
13118 * target.h: Include tm.h and hard-reg-set.h.
13119 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
13120 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
13121 * doc/tm.texi Regenerate.
13122 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
13123 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
13124 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
13125 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
13126 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
13127 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
13128 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
13129 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
13130 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
13131 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
13132 (ix86_emit_mode_set): Hookify.
13133 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
13135 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
13136 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
13137 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
13138 (epiphany_mode_priority_to_mode): Remove declaration.
13139 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
13140 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
13141 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
13143 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
13144 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
13145 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
13147 2014-05-13 Jakub Jelinek <jakub@redhat.com>
13150 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
13151 is const0_rtx, return immediately. Don't test count == 0 when
13154 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13156 * Makefile.in: add shrink-wrap.o.
13157 * config/i386/i386.c: include "shrink-wrap.h"
13158 * function.c: Likewise.
13159 (requires_stack_frame_p, next_block_for_reg,
13160 move_insn_for_shrink_wrap, prepare_shrink_wrap,
13161 dup_block_and_redirect): Move to shrink-wrap.c
13162 (thread_prologue_and_epilogue_insns): Extract three code segments
13163 as functions in shrink-wrap.c
13164 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
13166 * shrink-wrap.c: New file.
13167 * shrink-wrap.h: New file.
13169 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
13171 * doc/extend.texi: Reflect current numbers of pragmas. Remove
13172 reference to Solaris.
13174 2014-05-12 Mike Stump <mikestump@comcast.net>
13177 * genattrtab.c (filename): Add.
13178 (convert_set_attr_alternative): Improve error message.
13179 (check_defs): Restore read_md_filename for error messages.
13180 (gen_insn): Save filename.
13182 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
13184 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
13185 -fno-local-ivars and -fivar-visibility.
13186 * c-family/c.opt: Make -Wshadow also implicitly enable
13189 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
13191 * doc/tm.texi: Remove reference to deleted macro.
13192 * doc/tm.texi.in: Likewise.
13194 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13197 * config/avr/avr.c (avr_out_store_psi): Use correct constant
13200 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
13203 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
13204 * config/arm/aout.h (License): Same.
13205 * config/arm/bpabi.h (License): Same.
13206 * config/arm/elf.h (License): Same.
13207 * config/arm/linux-elf.h (License): Same.
13208 * config/arm/linux-gas.h (License): Same.
13209 * config/arm/netbsd-elf.h (License): Same.
13210 * config/arm/uclinux-eabi.h (License): Same.
13211 * config/arm/uclinux-elf.h (License): Same.
13212 * config/arm/vxworks.h (License): Same.
13214 2014-05-11 Jakub Jelinek <jakub@redhat.com>
13216 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
13217 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
13218 number of operands to 3.
13219 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
13220 * tree-nested.c (convert_nonlocal_omp_clauses,
13221 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
13222 * gimplify.c (gimplify_scan_omp_clauses): Handle
13223 OMP_CLAUSE_LINEAR_STMT.
13224 * omp-low.c (lower_rec_input_clauses): Fix typo.
13225 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
13226 cast between Fortran boolean_type_node and C _Bool if
13229 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
13231 PR tree-optimization/61136
13232 * wide-int.h (multiple_of_p): Define a version that doesn't return
13234 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
13235 integer_zerop/const_binop pair.
13236 (multiple_of_p): Likewise, converting both operands to widest_int
13239 2014-05-09 Teresa Johnson <tejohnson@google.com>
13241 * cgraphunit.c (analyze_functions): Use correct dump file.
13243 2014-05-09 Florian Weimer <fweimer@redhat.com>
13245 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
13247 (stack_protect_return_slot_p): New function.
13248 (expand_used_vars): Call stack_protect_decl_p and
13249 stack_protect_return_slot_p for -fstack-protector-strong.
13251 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
13252 Andrew Haley <aph@redhat.com>
13253 Richard Sandiford <rdsandiford@googlemail.com>
13255 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
13258 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
13260 PR middle-end/61111
13261 * fold-const.c (fold_binary_loc): Changed width of mask.
13263 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
13265 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
13266 unsigned int initializers for regno_in, regno_out.
13268 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
13271 * config/avr/avr.md (cc): Add new attribute set_vzn.
13272 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
13273 Set cc insn attribute to set_vzn instead of set_zn for alternatives
13274 with INC, DEC or NEG.
13275 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
13276 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
13277 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
13279 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13282 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13284 * wide-int.cc (UTItype): Define.
13285 (UDWtype): Define for appropriate W_TYPE_SIZE.
13287 2014-05-09 Richard Biener <rguenther@suse.de>
13289 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
13290 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
13291 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
13292 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
13293 ssa_propagate): Adjust.
13295 2014-05-08 Jeff Law <law@redhat.com>
13297 PR tree-optimization/61009
13298 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
13299 tri-state rather than a boolean. When a block is too big to
13300 thread through, inform caller via negative return value.
13301 (thread_across_edge): If a block was too big for normal threading,
13302 then it's too big for a joiner too, so remove temporary equivalences
13303 and return immediately.
13305 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
13306 Matthias Klose <doko@ubuntu.com>
13309 * optc-gen.awk: Fix option handling for -Wunused-parameter.
13311 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
13314 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
13316 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
13319 * config/alpha/alpha.c: Include gimple-iterator.h.
13320 (alpha_gimple_fold_builtin): New function. Move
13321 ALPHA_BUILTIN_UMULH folding from ...
13322 (alpha_fold_builtin): ... here.
13323 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
13325 2014-05-08 Wei Mi <wmi@google.com>
13328 * config/i386/i386.c (ix86_compute_frame_layout): Update
13329 preferred_stack_boundary for call, expanded from tls descriptor.
13330 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
13331 to depend on SP register.
13332 (*tls_local_dynamic_base_32_gnu): Ditto.
13333 (*tls_local_dynamic_32_once): Ditto.
13334 (tls_global_dynamic_64_<mode>): Set
13335 ix86_tls_descriptor_calls_expanded_in_cfun.
13336 (tls_local_dynamic_base_64_<mode>): Ditto.
13337 (tls_global_dynamic_32): Set
13338 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
13339 to depend on SP register.
13340 (tls_local_dynamic_base_32): Ditto.
13342 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13344 * config/arm/arm_neon.h: Update comment.
13345 * config/arm/neon-docgen.ml: Delete.
13346 * config/arm/neon-gen.ml: Delete.
13347 * doc/arm-neon-intrinsics.texi: Update comment.
13349 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13351 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
13353 (vand, vorr, veor, vorn, vbic): Remove.
13354 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
13356 (neon_vsub_unspec): Likewise.
13357 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
13359 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13361 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
13362 (vadd_s16): Likewise.
13363 (vadd_s32): Likewise.
13364 (vadd_f32): Likewise.
13365 (vadd_u8): Likewise.
13366 (vadd_u16): Likewise.
13367 (vadd_u32): Likewise.
13368 (vadd_s64): Likewise.
13369 (vadd_u64): Likewise.
13370 (vaddq_s8): Likewise.
13371 (vaddq_s16): Likewise.
13372 (vaddq_s32): Likewise.
13373 (vaddq_s64): Likewise.
13374 (vaddq_f32): Likewise.
13375 (vaddq_u8): Likewise.
13376 (vaddq_u16): Likewise.
13377 (vaddq_u32): Likewise.
13378 (vaddq_u64): Likewise.
13379 (vmul_s8): Likewise.
13380 (vmul_s16): Likewise.
13381 (vmul_s32): Likewise.
13382 (vmul_f32): Likewise.
13383 (vmul_u8): Likewise.
13384 (vmul_u16): Likewise.
13385 (vmul_u32): Likewise.
13386 (vmul_p8): Likewise.
13387 (vmulq_s8): Likewise.
13388 (vmulq_s16): Likewise.
13389 (vmulq_s32): Likewise.
13390 (vmulq_f32): Likewise.
13391 (vmulq_u8): Likewise.
13392 (vmulq_u16): Likewise.
13393 (vmulq_u32): Likewise.
13394 (vsub_s8): Likewise.
13395 (vsub_s16): Likewise.
13396 (vsub_s32): Likewise.
13397 (vsub_f32): Likewise.
13398 (vsub_u8): Likewise.
13399 (vsub_u16): Likewise.
13400 (vsub_u32): Likewise.
13401 (vsub_s64): Likewise.
13402 (vsub_u64): Likewise.
13403 (vsubq_s8): Likewise.
13404 (vsubq_s16): Likewise.
13405 (vsubq_s32): Likewise.
13406 (vsubq_s64): Likewise.
13407 (vsubq_f32): Likewise.
13408 (vsubq_u8): Likewise.
13409 (vsubq_u16): Likewise.
13410 (vsubq_u32): Likewise.
13411 (vsubq_u64): Likewise.
13412 (vand_s8): Likewise.
13413 (vand_s16): Likewise.
13414 (vand_s32): Likewise.
13415 (vand_u8): Likewise.
13416 (vand_u16): Likewise.
13417 (vand_u32): Likewise.
13418 (vand_s64): Likewise.
13419 (vand_u64): Likewise.
13420 (vandq_s8): Likewise.
13421 (vandq_s16): Likewise.
13422 (vandq_s32): Likewise.
13423 (vandq_s64): Likewise.
13424 (vandq_u8): Likewise.
13425 (vandq_u16): Likewise.
13426 (vandq_u32): Likewise.
13427 (vandq_u64): Likewise.
13428 (vorr_s8): Likewise.
13429 (vorr_s16): Likewise.
13430 (vorr_s32): Likewise.
13431 (vorr_u8): Likewise.
13432 (vorr_u16): Likewise.
13433 (vorr_u32): Likewise.
13434 (vorr_s64): Likewise.
13435 (vorr_u64): Likewise.
13436 (vorrq_s8): Likewise.
13437 (vorrq_s16): Likewise.
13438 (vorrq_s32): Likewise.
13439 (vorrq_s64): Likewise.
13440 (vorrq_u8): Likewise.
13441 (vorrq_u16): Likewise.
13442 (vorrq_u32): Likewise.
13443 (vorrq_u64): Likewise.
13444 (veor_s8): Likewise.
13445 (veor_s16): Likewise.
13446 (veor_s32): Likewise.
13447 (veor_u8): Likewise.
13448 (veor_u16): Likewise.
13449 (veor_u32): Likewise.
13450 (veor_s64): Likewise.
13451 (veor_u64): Likewise.
13452 (veorq_s8): Likewise.
13453 (veorq_s16): Likewise.
13454 (veorq_s32): Likewise.
13455 (veorq_s64): Likewise.
13456 (veorq_u8): Likewise.
13457 (veorq_u16): Likewise.
13458 (veorq_u32): Likewise.
13459 (veorq_u64): Likewise.
13460 (vbic_s8): Likewise.
13461 (vbic_s16): Likewise.
13462 (vbic_s32): Likewise.
13463 (vbic_u8): Likewise.
13464 (vbic_u16): Likewise.
13465 (vbic_u32): Likewise.
13466 (vbic_s64): Likewise.
13467 (vbic_u64): Likewise.
13468 (vbicq_s8): Likewise.
13469 (vbicq_s16): Likewise.
13470 (vbicq_s32): Likewise.
13471 (vbicq_s64): Likewise.
13472 (vbicq_u8): Likewise.
13473 (vbicq_u16): Likewise.
13474 (vbicq_u32): Likewise.
13475 (vbicq_u64): Likewise.
13476 (vorn_s8): Likewise.
13477 (vorn_s16): Likewise.
13478 (vorn_s32): Likewise.
13479 (vorn_u8): Likewise.
13480 (vorn_u16): Likewise.
13481 (vorn_u32): Likewise.
13482 (vorn_s64): Likewise.
13483 (vorn_u64): Likewise.
13484 (vornq_s8): Likewise.
13485 (vornq_s16): Likewise.
13486 (vornq_s32): Likewise.
13487 (vornq_s64): Likewise.
13488 (vornq_u8): Likewise.
13489 (vornq_u16): Likewise.
13490 (vornq_u32): Likewise.
13491 (vornq_u64): Likewise.
13493 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13495 * wide-int.cc (UTItype): Define.
13496 (UDWtype): Define for appropriate W_TYPE_SIZE.
13498 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
13500 PR tree-optimization/59100
13501 * tree-ssa-phiopt.c: Include tree-inline.h.
13502 (neutral_element_p, absorbing_element_p): New functions.
13503 (value_replacement): Handle conditional binary operations with a
13504 neutral or absorbing element.
13506 2014-05-08 Richard Biener <rguenther@suse.de>
13508 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
13509 folding the expression.
13510 (valueize_expr): Remove.
13511 (visit_reference_op_load): Do not valueize the result of
13513 (simplify_binary_expression): Likewise.
13514 (simplify_unary_expression): Likewise.
13516 2014-05-08 Richard Biener <rguenther@suse.de>
13518 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
13519 looking at TYPE_ARG_TYPES.
13521 2014-05-08 Richard Biener <rguenther@suse.de>
13523 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
13524 pointer propagation special-case.
13526 2014-05-08 Bin Cheng <bin.cheng@arm.com>
13528 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
13529 core part of address expressions.
13531 2014-05-08 Alan Modra <amodra@gmail.com>
13534 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
13535 loads and stores when -mno-strict-align at any alignment.
13536 (expand_block_clear): Similarly. Also correct calculation of
13539 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
13541 PR middle-end/39246
13542 * tree-complex.c (expand_complex_move): Keep line info when expanding
13544 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
13545 of complex expression. Use new argument to display correct location
13546 for values coming from phi statement.
13547 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
13548 (warn_uninitialized_phi): Pass location of phi argument to
13550 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
13551 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
13553 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
13555 * config/rs6000/predicates.md (indexed_address_mem): New.
13556 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
13557 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
13558 fpstore_ux, fpstore_u.
13559 (sign_extend, indexed, update): New.
13560 (cell_micro): Adjust.
13561 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
13562 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
13563 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
13564 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
13565 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
13566 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
13567 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
13568 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
13569 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
13570 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
13571 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
13572 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
13573 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
13574 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
13575 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
13577 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
13578 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
13579 *vsx_extract_<mode>_store): Adjust.
13580 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
13581 is_cracked_insn, insn_must_be_first_in_group,
13582 insn_must_be_last_in_group): Adjust.
13584 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
13586 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
13587 ppc440-fpstore): Adjust.
13588 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
13589 ppc476-fpstore): Adjust.
13590 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
13591 ppc601-fpstore): Adjust.
13592 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
13594 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
13596 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
13597 ppc7450-fpstore): Adjust.
13598 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
13599 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
13600 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
13602 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
13603 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
13604 cell-fpstore, cell-fpstore-update): Adjust.
13605 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
13606 ppce300c3_store, ppce300c3_fpstore): Adjust.
13607 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
13608 e500mc_fpstore): Adjust.
13609 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
13610 e500mc64_store, e500mc64_fpstore): Adjust.
13611 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
13612 e5500_fpstore): Adjust.
13613 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
13614 e6500_fpstore): Adjust.
13615 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
13617 * config/rs6000/power4.md (power4-load, power4-load-ext,
13618 power4-load-ext-update, power4-load-ext-update-indexed,
13619 power4-load-update-indexed, power4-load-update, power4-fpload,
13620 power4-fpload-update, power4-store, power4-store-update,
13621 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
13623 * config/rs6000/power5.md (power5-load, power5-load-ext,
13624 power5-load-ext-update, power5-load-ext-update-indexed,
13625 power5-load-update-indexed, power5-load-update, power5-fpload,
13626 power5-fpload-update, power5-store, power5-store-update,
13627 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
13629 * config/rs6000/power6.md (power6-load, power6-load-ext,
13630 power6-load-update, power6-load-update-indexed,
13631 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
13632 power6-fpload-update, power6-store, power6-store-update,
13633 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
13635 * config/rs6000/power7.md (power7-load, power7-load-ext,
13636 power7-load-update, power7-load-update-indexed,
13637 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
13638 power7-fpload-update, power7-store, power7-store-update,
13639 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
13641 * config/rs6000/power8.md (power8-load, power8-load-update,
13642 power8-load-ext, power8-load-ext-update, power8-fpload,
13643 power8-fpload-update, power8-store, power8-store-update-indexed,
13644 power8-fpstore, power8-fpstore-update): Adjust.
13645 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
13647 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
13648 titan_lsu_store, titan_lsu_fpstore): Adjust.
13649 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
13651 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
13654 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
13655 unrolled byte insns. Emit address increments after move insns.
13657 2014-05-07 David Malcolm <dmalcolm@redhat.com>
13659 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
13660 const_gimple, rather than a gimple.
13661 (gimple_call_builtin_p): Likewise, for the three variants.
13663 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
13664 (gimple_call_builtin_p): Likewise, for the three variants.
13666 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13668 PR tree-optimization/61095
13669 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
13671 2014-05-07 Richard Biener <rguenther@suse.de>
13673 PR tree-optimization/61034
13674 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
13675 (maybe_skip_until): Use translate to take into account
13676 lattices when trying to do disambiguations.
13677 (get_continuation_for_phi_1): Likewise.
13678 (get_continuation_for_phi): Adjust for added translate arguments.
13679 (walk_non_aliased_vuses): Likewise.
13680 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
13681 (walk_non_aliased_vuses): Likewise.
13682 (call_may_clobber_ref_p_1): Declare.
13683 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
13684 calls. Stop early if we are only supposed to disambiguate.
13685 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
13687 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
13689 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
13690 Emit an error when the function has arguments.
13692 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
13694 * cfgloop.h (unswitch_loops): Remove.
13695 * doc/passes.texi: Remove references to loop-unswitch.c
13696 * timevar.def (TV_LOOP_UNSWITCH): Remove.
13698 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
13700 * tree-vect-data-refs.c (vect_grouped_load_supported): New
13701 check for loads group of length 3.
13702 (vect_permute_load_chain): New permutations for loads group of
13704 * tree-vect-stmts.c (vect_model_load_cost): Change cost
13705 of vec_perm_shuffle for the new permutations.
13707 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
13709 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
13710 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
13711 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
13712 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
13713 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
13714 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
13715 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
13716 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
13718 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
13720 * loop-unswitch.c: Delete.
13722 2014-05-07 Richard Biener <rguenther@suse.de>
13724 * config.gcc: Always set need_64bit_hwint to yes.
13726 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
13728 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
13729 of using optimize_size.
13731 2014-05-06 Mike Stump <mikestump@comcast.net>
13733 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
13735 2014-05-06 Joseph Myers <joseph@codesourcery.com>
13737 * config/i386/sse.md (*mov<mode>_internal)
13738 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
13739 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
13740 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
13741 (*<code><mode>3, *andnot<mode>3<mask_name>)
13742 (<mask_codefor><code><mode>3<mask_name>): Only consider
13743 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
13745 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
13748 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
13750 * lra-constraints.c (valid_address_p): Move earlier in file.
13751 Add a constraint argument to the address_info version.
13752 (satisfies_memory_constraint_p): New function.
13753 (satisfies_address_constraint_p): Likewise.
13754 (process_alt_operands, curr_insn_transform): Use them.
13755 (process_address): Pass the constraint to valid_address_p when
13756 checking address operands.
13758 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
13760 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
13761 to their respective blocks. Fix inadvertent use of "node".
13763 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
13765 * emit-rtl.c (init_derived_machine_modes): New functionm, split
13767 (init_emit_once): ...here.
13768 * rtl.h (init_derived_machine_modes): Declare.
13769 * toplev.c (do_compile): Call it even if no_backend.
13771 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
13772 Mike Stump <mikestump@comcast.net>
13773 Richard Sandiford <rdsandiford@googlemail.com>
13774 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13776 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
13777 (rtx_equal_for_memref_p): Update comment.
13778 (adjust_offset_for_component_ref): Use wide-int interfaces.
13779 * builtins.c (get_object_alignment_2): Likewise.
13780 (c_readstr): Likewise.
13781 (target_char_cast): Add comment.
13782 (determine_block_size): Use wide-int interfaces.
13783 (expand_builtin_signbit): Likewise.
13784 (fold_builtin_int_roundingfn): Likewise.
13785 (fold_builtin_bitop): Likewise.
13786 (fold_builtin_bswap): Likewise.
13787 (fold_builtin_logarithm): Use signop.
13788 (fold_builtin_pow): Likewise.
13789 (fold_builtin_memory_op): Use wide-int interfaces.
13790 (fold_builtin_object_size): Likewise.
13791 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
13792 nb_iterations_estimate.
13793 (record_niter_bound): Use wide-int interfaces.
13794 (get_estimated_loop_iterations_int): Likewise.
13795 (get_estimated_loop_iterations): Likewise.
13796 (get_max_loop_iterations): Likewise.
13797 * cfgloop.h: Include wide-int.h.
13798 (struct nb_iter_bound): Change bound to widest_int.
13799 (struct loop): Change nb_iterations_upper_bound and
13800 nb_iterations_estimate to widest_int.
13801 (record_niter_bound): Switch to use widest_int.
13802 (get_estimated_loop_iterations): Likewise.
13803 (get_max_loop_iterations): Likewise.
13804 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
13805 update for wide-int.
13806 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
13807 * combine.c (try_combine): Likewise.
13808 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
13809 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
13811 (aarch64_float_const_representable_p): Likewise.
13812 * config/arc/arc.c: Include wide-int.h.
13813 (arc_can_use_doloop_p): Use wide-int interfaces.
13814 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
13815 (vfp3_const_double_index): Likewise.
13816 * config/avr/avr.c (avr_out_round): Likewise.
13817 (avr_fold_builtin): Likewise.
13818 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
13819 (bfin_can_use_doloop_p): Likewise.
13820 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
13821 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
13822 * config/i386/i386.c: Include wide-int.h.
13823 (ix86_data_alignment): Use wide-int interfaces.
13824 (ix86_local_alignment): Likewise.
13825 (ix86_emit_swsqrtsf): Update real_from_integer.
13826 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
13827 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
13828 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
13829 (zero_constant): Likewise.
13830 (input_operand): Likewise.
13831 (splat_input_operand): Likewise.
13832 (non_logical_cint_operand): Change const_double to const_wide_int.
13833 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
13834 (easy_altivec_constant): Remove comment.
13835 (paired_expand_vector_init): Use CONSTANT_P.
13836 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
13837 (rs6000_emit_move): Update checks.
13838 (rs6000_aggregate_candidate): Use wide-int interfaces.
13839 (rs6000_expand_ternop_builtin): Likewise.
13840 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
13841 (rs6000_assemble_integer): Likewise.
13842 (rs6000_hash_constant): Likewise.
13843 (output_toc): Likewise.
13844 (rs6000_rtx_costs): Likewise.
13845 (rs6000_emit_swrsqrt); Update call to real_from_integer.
13846 * config/rs6000/rs6000-c.c: Include wide-int.h.
13847 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
13848 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
13849 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
13850 Handle CONST_WIDE_INT.
13851 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
13852 Use tree_fits_uhwi_p.
13853 * config/sparc/sparc.c: Include wide-int.h.
13854 (sparc_fold_builtin): Use wide-int interfaces.
13855 * config/vax/vax.c: Include wide-int.h.
13856 (vax_float_literal): Use real_from_integer.
13857 * coretypes.h (struct hwivec_def): New.
13859 (const_hwivec): New.
13860 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
13861 (equiv_constant): Handle CONST_WIDE_INT.
13862 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
13863 (cselib_hash_rtx): Handle CONST_WIDE_INT.
13864 * dbxout.c (stabstr_U): Use wide-int interfaces.
13865 (dbxout_type): Update to use cst_fits_shwi_p.
13866 * defaults.h (LOG2_BITS_PER_UNIT): Define.
13867 (TARGET_SUPPORTS_WIDE_INT): Add default.
13868 * dfp.c: Include wide-int.h.
13869 (decimal_real_to_integer2): Use wide-int interfaces and rename to
13870 decimal_real_to_integer.
13871 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
13872 decimal_real_to_integer.
13873 * doc/generic.texi (Constant expressions): Update for wide_int.
13874 * doc/rtl.texi (const_double): Likewise.
13875 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
13876 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
13877 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
13878 (REAL_VALUE_FROM_INT): Remove.
13879 (TARGET_SUPPORTS_WIDE_INT): New.
13880 * doc/tm.texi: Regenerate.
13881 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
13882 * double-int.h: Include wide-int.h.
13883 (struct wi::int_traits): New.
13884 * dwarf2out.c (get_full_len): New.
13885 (dw_val_equal_p): Add case dw_val_class_wide_int.
13886 (size_of_loc_descr): Likewise.
13887 (output_loc_operands): Likewise.
13888 (insert_double): Remove.
13889 (insert_wide_int): New.
13890 (add_AT_wide): New.
13891 (print_die): Add case dw_val_class_wide_int.
13892 (attr_checksum): Likewise.
13893 (attr_checksum_ordered): Likewise.
13894 (same_dw_val_p): Likewise.
13895 (size_of_die): Likewise.
13896 (value_format): Likewise.
13897 (output_die): Likewise.
13898 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
13900 (clz_loc_descriptor): Use wide-int interfaces.
13901 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
13902 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
13903 (round_up_to_align): Use wide-int interfaces.
13904 (field_byte_offset): Likewise.
13905 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
13906 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
13907 CONST_DOUBLE handling. Use wide-int interfaces.
13908 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
13909 (gen_enumeration_type_die): Use add_AT_wide.
13910 (hash_loc_operands): Add case dw_val_class_wide_int.
13911 (compare_loc_operands): Likewise.
13912 * dwarf2out.h: Include wide-int.h.
13913 (wide_int_ptr): New.
13914 (enum dw_val_class): Add dw_val_class_wide_int.
13915 (struct dw_val_struct): Add val_wide.
13916 * emit-rtl.c (const_wide_int_htab): New.
13917 (const_wide_int_htab_hash): New.
13918 (const_wide_int_htab_eq): New.
13919 (lookup_const_wide_int): New.
13920 (const_double_htab_hash): Use wide-int interfaces.
13921 (const_double_htab_eq): Likewise.
13922 (rtx_to_double_int): Conditionally compile for wide-int.
13923 (immed_double_int_const): Rename to immed_wide_int_const and
13924 update for wide-int.
13925 (immed_double_const): Conditionally compile for wide-int.
13926 (init_emit_once): Use wide-int interfaces.
13927 * explow.c (plus_constant): Likewise.
13928 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
13929 (lshift_value): Use wide-int interfaces.
13930 (expand_mult): Likewise.
13931 (choose_multiplier): Likewise.
13932 (expand_smod_pow2): Likewise.
13933 (make_tree): Likewise.
13934 * expr.c (convert_modes): Consolidate handling of constants.
13935 Use wide-int interfaces.
13936 (emit_group_load_1): Add note.
13937 (store_expr): Update comment.
13938 (get_inner_reference): Use wide-int interfaces.
13939 (expand_constructor): Update comment.
13940 (expand_expr_real_2): Use wide-int interfaces.
13941 (expand_expr_real_1): Likewise.
13942 (reduce_to_bit_field_precision): Likewise.
13943 (const_vector_from_tree): Likewise.
13944 * final.c: Include wide-int-print.h.
13945 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
13946 * fixed-value.c: Include wide-int.h.
13947 (fixed_from_string): Use wide-int interfaces.
13948 (fixed_to_decimal): Likewise.
13949 (fixed_convert_from_real): Likewise.
13950 (real_convert_from_fixed): Likewise.
13951 * fold-const.h (mem_ref_offset): Return an offset_int.
13952 (div_if_zero_remainder): Remove code parameter.
13953 * fold-const.c (div_if_zero_remainder): Remove code parameter.
13954 Use wide-int interfaces.
13955 (may_negate_without_overflow_p): Use wide-int interfaces.
13956 (negate_expr_p): Likewise.
13957 (fold_negate_expr): Likewise.
13958 (int_const_binop_1): Likewise.
13959 (const_binop): Likewise.
13960 (fold_convert_const_int_from_int): Likewise.
13961 (fold_convert_const_int_from_real): Likewise.
13962 (fold_convert_const_int_from_fixed): Likewise.
13963 (fold_convert_const_fixed_from_int): Likewise.
13964 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
13965 (sign_bit_p): Use wide-int interfaces.
13966 (make_range_step): Likewise.
13967 (build_range_check): Likewise. Pass an integer of the correct type
13968 instead of using integer_one_node.
13969 (range_predecessor): Pass an integer of the correct type instead
13970 of using integer_one_node.
13971 (range_successor): Likewise.
13972 (merge_ranges): Likewise.
13973 (unextend): Use wide-int interfaces.
13974 (extract_muldiv_1): Likewise.
13975 (fold_div_compare): Likewise.
13976 (fold_single_bit_test): Likewise.
13977 (fold_sign_changed_comparison): Likewise.
13978 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
13979 (fold_plusminus_mult_expr): Use wide-int interfaces.
13980 (native_encode_int): Likewise.
13981 (native_interpret_int): Likewise.
13982 (fold_unary_loc): Likewise.
13983 (pointer_may_wrap_p): Likewise.
13984 (size_low_cst): Likewise.
13985 (mask_with_tz): Likewise.
13986 (fold_binary_loc): Likewise.
13987 (fold_ternary_loc): Likewise.
13988 (multiple_of_p): Likewise.
13989 (tree_call_nonnegative_warnv_p): Update calls to
13990 tree_int_cst_min_precision and real_from_integer.
13991 (fold_negate_const): Use wide-int interfaces.
13992 (fold_abs_const): Likewise.
13993 (fold_relational_const): Use tree_int_cst_lt.
13994 (round_up_loc): Use wide-int interfaces.
13995 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
13996 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
13997 * gengtype.c: Remove include of double-int.h.
13998 (do_typedef): Use wide-int interfaces.
13999 (open_base_files): Add wide-int.h.
14000 (main): Add offset_int and widest_int typedefs.
14001 * gengtype-lex.l: Handle "^".
14002 (CXX_KEYWORD): Add "static".
14003 * gengtype-parse.c (require3): New.
14004 (require_template_declaration): Handle constant template arguments
14005 and nested templates.
14006 * gengtype-state.c: Don't include "double-int.h".
14007 * genpreds.c (write_one_predicate_function): Update comment.
14008 (write_tm_constrs_h): Add check for hval and lval use in
14010 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
14011 (add_to_sequence): Likewise.
14012 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
14013 and const_double_operand.
14014 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
14016 * gimple-fold.c (get_base_constructor): Likewise.
14017 (fold_array_ctor_reference): Likewise.
14018 (fold_nonarray_ctor_reference): Likewise.
14019 (fold_const_aggregate_ref_1): Likewise.
14020 (gimple_val_nonnegative_real_p): Likewise.
14021 (gimple_fold_indirect_ref): Likewise.
14022 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
14023 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
14024 (struct slsr_cand_d): Change index to be widest_int.
14025 (struct incr_info_d): Change incr to be widest_int.
14026 (alloc_cand_and_find_basis): Use wide-int interfaces.
14027 (slsr_process_phi): Likewise.
14028 (backtrace_base_for_ref): Likewise. Return a widest_int.
14029 (restructure_reference): Take a widest_int instead of a double_int.
14030 (slsr_process_ref): Use wide-int interfaces.
14031 (create_mul_ssa_cand): Likewise.
14032 (create_mul_imm_cand): Likewise.
14033 (create_add_ssa_cand): Likewise.
14034 (create_add_imm_cand): Take a widest_int instead of a double_int.
14035 (slsr_process_add): Use wide-int interfaces.
14036 (slsr_process_cast): Likewise.
14037 (slsr_process_copy): Likewise.
14038 (dump_candidate): Likewise.
14039 (dump_incr_vec): Likewise.
14040 (replace_ref): Likewise.
14041 (cand_increment): Likewise. Return a widest_int.
14042 (cand_abs_increment): Likewise.
14043 (replace_mult_candidate): Take a widest_int instead of a double_int.
14044 (replace_unconditional_candidate): Use wide-int interfaces.
14045 (incr_vec_index): Take a widest_int instead of a double_int.
14046 (create_add_on_incoming_edge): Likewise.
14047 (create_phi_basis): Use wide-int interfaces.
14048 (replace_conditional_candidate): Likewise.
14049 (record_increment): Take a widest_int instead of a double_int.
14050 (record_phi_increments): Use wide-int interfaces.
14051 (phi_incr_cost): Take a widest_int instead of a double_int.
14052 (lowest_cost_path): Likewise.
14053 (total_savings): Likewise.
14054 (analyze_increments): Use wide-int interfaces.
14055 (ncd_with_phi): Take a widest_int instead of a double_int.
14056 (ncd_of_cand_and_phis): Likewise.
14057 (nearest_common_dominator_for_cands): Likewise.
14058 (insert_initializers): Use wide-int interfaces.
14059 (all_phi_incrs_profitable): Likewise.
14060 (replace_one_candidate): Likewise.
14061 (replace_profitable_candidates): Likewise.
14062 * godump.c: Include wide-int-print.h.
14063 (go_output_typedef): Use wide-int interfaces.
14064 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
14065 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
14066 (build_loop_iteration_domains): Likewise.
14067 * hooks.h: Include wide-int.h rather than double-int.h.
14068 (hook_bool_dint_dint_uint_bool_true): Delete.
14069 (hook_bool_wint_wint_uint_bool_true): Declare.
14070 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
14071 (hook_bool_wint_wint_uint_bool_true): New.
14072 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
14074 (ubsan_expand_si_overflow_mul_check): Likewise.
14075 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
14076 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
14077 (get_ancestor_addr_info): Likewise.
14078 (ipa_modify_call_arguments): Likewise.
14079 * loop-doloop.c (doloop_modify): Likewise.
14080 (doloop_optimize): Likewise.
14081 * loop-iv.c (iv_number_of_iterations): Likewise.
14082 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
14083 (unroll_loop_constant_iterations): Likewise.
14084 (decide_unroll_runtime_iterations): Likewise.
14085 (unroll_loop_runtime_iterations): Likewise.
14086 (decide_peel_simple): Likewise.
14087 (decide_unroll_stupid): Likewise.
14088 * lto-streamer-in.c (streamer_read_wi): Add.
14089 (input_cfg): Use wide-int interfaces.
14090 (lto_input_tree_1): Likewise.
14091 * lto-streamer-out.c (streamer_write_wi): Add.
14092 (hash_tree): Use wide-int interfaces.
14093 (output_cfg): Likewise.
14094 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
14095 (GTFILES): Add wide-int.h and signop.h.
14096 (TAGS): Look for .cc files too.
14097 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
14098 * optabs.c (expand_subword_shift): Likewise.
14099 (expand_doubleword_shift): Likewise.
14100 (expand_absneg_bit): Likewise.
14101 (expand_copysign_absneg): Likewise.
14102 (expand_copysign_bit): Likewise.
14103 * postreload.c (reload_cse_simplify_set): Likewise.
14104 * predict.c (predict_iv_comparison): Likewise.
14105 * pretty-print.h: Include wide-int-print.h.
14107 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
14108 * print-tree.c: Include wide-int-print.h.
14109 (print_node_brief): Use wide-int interfaces.
14110 (print_node): Likewise.
14111 * read-rtl.c (validate_const_wide_int): New.
14112 (read_rtx_code): Add CONST_WIDE_INT case.
14113 * real.c: Include wide-int.h.
14114 (real_to_integer2): Delete.
14115 (real_to_integer): New function, returning a wide_int.
14116 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
14117 (ten_to_ptwo): Update call to real_from_integer.
14118 (real_digit): Likewise.
14119 * real.h: Include signop.h, wide-int.h and insn-modes.h.
14120 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
14121 (REAL_VALUE_TO_INT): Delete.
14122 (real_to_integer): Declare a wide-int form.
14123 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
14124 * recog.c (const_int_operand): Improve comment.
14125 (const_scalar_int_operand): New.
14126 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
14127 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
14128 (split_double): Likewise.
14129 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
14130 (rtx_size): Likewise.
14131 (rtx_alloc_stat_v): New.
14132 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
14133 (cwi_output_hex): New.
14134 (iterative_hash_rtx): Handle CONST_WIDE_INT.
14135 (cwi_check_failed_bounds): New.
14136 * rtl.def (CONST_WIDE_INT): New.
14137 * rtl.h: Include <utility> and wide-int.h.
14138 (struct hwivec_def): New.
14139 (CWI_GET_NUM_ELEM): New.
14140 (CWI_PUT_NUM_ELEM): New.
14141 (struct rtx_def): Add num_elem and hwiv.
14142 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
14143 (CASE_CONST_UNIQUE): Likewise.
14144 (CASE_CONST_ANY): Likewise.
14145 (CONST_SCALAR_INT_P): Likewise.
14146 (CONST_WIDE_INT_P): New.
14148 (HWIVEC_CHECK): New.
14149 (cwi_check_failed_bounds): New.
14151 (HWIVEC_CHECK): New.
14152 (CONST_WIDE_INT_VEC) New.
14153 (CONST_WIDE_INT_NUNITS) New.
14154 (CONST_WIDE_INT_ELT) New.
14155 (rtx_mode_t): New type.
14156 (wi::int_traits <rtx_mode_t>): New.
14158 (wi::min_value): New.
14159 (wi::max_value): New.
14161 (const_wide_int_alloc): New.
14162 (immed_wide_int_const): New.
14163 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
14164 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
14165 * signop.h: New file.
14166 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
14167 (simplify_const_unary_operation): Use wide-int interfaces.
14168 (simplify_binary_operation_1): Likewise.
14169 (simplify_const_binary_operation): Likewise.
14170 (simplify_const_relational_operation): Likewise.
14171 (simplify_immed_subreg): Likewise.
14172 * stmt.c (expand_case): Likewise.
14173 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
14174 signop rather than a bool.
14175 * stor-layout.c (layout_type): Use wide-int interfaces.
14176 (initialize_sizetypes): Update calls to
14177 set_min_and_max_values_for_integral_type.
14178 (set_min_and_max_values_for_integral_type): Take a signop rather
14179 than a bool. Use wide-int interfaces.
14180 (fixup_signed_type): Update accordingly. Remove
14181 HOST_BITS_PER_DOUBLE_INT limit.
14182 (fixup_unsigned_type): Likewise.
14183 * system.h (STATIC_CONSTANT_P): New.
14184 (STATIC_ASSERT): New.
14185 * target.def (can_use_doloop_p): Take widest_ints rather than
14187 * target.h: Include wide-int.h rather than double-int.h.
14188 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
14190 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
14191 rather than INT_CST_LT_UNSIGNED.
14192 (can_use_doloop_if_innermost): Take widest_ints rather than
14194 * tree-affine.c: Include wide-int-print.h.
14195 (double_int_ext_for_comb): Delete.
14196 (wide_int_ext_for_comb): New.
14197 (aff_combination_zero): Use wide-int interfaces.
14198 (aff_combination_const): Take a widest_int instead of a double_int.
14199 (aff_combination_elt): Use wide-int interfaces.
14200 (aff_combination_scale): Take a widest_int instead of a double_int.
14201 (aff_combination_add_elt): Likewise.
14202 (aff_combination_add_cst): Likewise.
14203 (aff_combination_add): Use wide-int interfaces.
14204 (aff_combination_convert): Likewise.
14205 (tree_to_aff_combination): Likewise.
14206 (add_elt_to_tree): Take a widest_int instead of a double_int.
14207 (aff_combination_to_tree): Use wide-int interfaces.
14208 (aff_combination_remove_elt): Likewise.
14209 (aff_combination_add_product): Take a widest_int instead of
14211 (aff_combination_mult): Use wide-int interfaces.
14212 (aff_combination_expand): Likewise.
14213 (double_int_constant_multiple_p): Delete.
14214 (wide_int_constant_multiple_p): New.
14215 (aff_combination_constant_multiple_p): Take a widest_int pointer
14216 instead of a double_int pointer.
14217 (print_aff): Use wide-int interfaces.
14218 (get_inner_reference_aff): Take a widest_int pointer
14219 instead of a double_int pointer.
14220 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
14221 * tree-affine.h: Include wide-int.h.
14222 (struct aff_comb_elt): Change type of coef to widest_int.
14223 (struct affine_tree_combination): Change type of offset to widest_int.
14224 (double_int_ext_for_comb): Delete.
14225 (wide_int_ext_for_comb): New.
14226 (aff_combination_const): Use widest_int instead of double_int.
14227 (aff_combination_scale): Likewise.
14228 (aff_combination_add_elt): Likewise.
14229 (aff_combination_constant_multiple_p): Likewise.
14230 (get_inner_reference_aff): Likewise.
14231 (aff_comb_cannot_overlap_p): Likewise.
14232 (aff_combination_zero_p): Use wide-int interfaces.
14233 * tree.c: Include tree.h.
14234 (init_ttree): Use make_int_cst.
14235 (tree_code_size): Removed code for INTEGER_CST case.
14236 (tree_size): Add INTEGER_CST case.
14237 (make_node_stat): Update comment.
14238 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
14239 (build_int_cst_type): Use wide-int interfaces.
14240 (double_int_to_tree): Likewise.
14241 (double_int_fits_to_tree_p): Delete.
14242 (force_fit_type_double): Delete.
14243 (force_fit_type): New.
14244 (int_cst_hash_hash): Use wide-int interfaces.
14245 (int_cst_hash_eq): Likewise.
14246 (build_int_cst_wide): Delete.
14247 (wide_int_to_tree): New.
14248 (cache_integer_cst): Use wide-int interfaces.
14249 (build_low_bits_mask): Likewise.
14250 (cst_and_fits_in_hwi): Likewise.
14251 (real_value_from_int_cst): Likewise.
14252 (make_int_cst_stat): New.
14253 (integer_zerop): Use wide_int interfaces.
14254 (integer_onep): Likewise.
14255 (integer_all_onesp): Likewise.
14256 (integer_pow2p): Likewise.
14257 (integer_nonzerop): Likewise.
14258 (tree_log2): Likewise.
14259 (tree_floor_log2): Likewise.
14260 (tree_ctz): Likewise.
14261 (int_size_in_bytes): Likewise.
14262 (mem_ref_offset): Return an offset_int rather than a double_int.
14263 (build_type_attribute_qual_variant): Use wide_int interfaces.
14264 (type_hash_eq): Likewise
14265 (tree_int_cst_equal): Likewise.
14266 (tree_int_cst_lt): Delete.
14267 (tree_int_cst_compare): Likewise.
14268 (tree_fits_shwi_p): Use wide_int interfaces.
14269 (tree_fits_uhwi_p): Likewise.
14270 (tree_int_cst_sign_bit): Likewise.
14271 (tree_int_cst_sgn): Likewise.
14272 (tree_int_cst_min_precision): Take a signop rather than a bool.
14273 (simple_cst_equal): Use wide_int interfaces.
14274 (compare_tree_int): Likewise.
14275 (iterative_hash_expr): Likewise.
14276 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
14278 (get_type_static_bounds): Use wide_int interfaces.
14279 (tree_int_cst_elt_check_failed): New.
14280 (build_common_tree_nodes): Reordered to set prec before filling in
14282 (int_cst_value): Check cst_and_fits_in_hwi.
14283 (widest_int_cst_value): Use wide_int interfaces.
14284 (upper_bound_in_type): Likewise.
14285 (lower_bound_in_type): Likewise.
14286 (num_ending_zeros): Likewise.
14287 (drop_tree_overflow): Likewise.
14288 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
14289 (gen_conditions_for_pow_cst_base): Likewise.
14290 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
14291 (group_case_labels_stmt): Use wide-int interfaces.
14292 (verify_gimple_assign_binary): Likewise.
14293 (print_loop): Likewise.
14294 * tree-chrec.c (tree_fold_binomial): Likewise.
14295 * tree-core.h (struct tree_base): Add int_length.
14296 (struct tree_int_cst): Change rep of value.
14297 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
14298 (dr_may_alias_p): Likewise.
14299 (max_stmt_executions_tree): Likewise.
14300 * tree.def (INTEGER_CST): Update comment.
14301 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
14302 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
14303 * tree-dump.c: Include wide-int.h and wide-int-print.h.
14304 (dequeue_and_dump): Use wide-int interfaces.
14305 * tree.h: Include wide-int.h.
14306 (NULL_TREE): Moved to earlier loc in file.
14307 (TREE_INT_CST_ELT_CHECK): New.
14308 (tree_int_cst_elt_check_failed): New.
14310 (TREE_INT_CST): Delete.
14311 (TREE_INT_CST_LOW): Use wide-int interfaces.
14312 (TREE_INT_CST_HIGH): Delete.
14313 (TREE_INT_CST_NUNITS): New.
14314 (TREE_INT_CST_EXT_NUNITS): Likewise.
14315 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
14316 (TREE_INT_CST_ELT): Likewise.
14317 (INT_CST_LT): Delete.
14318 (tree_int_cst_elt_check): New (two forms).
14319 (type_code_size): Update comment.
14320 (make_int_cst_stat, make_int_cst): New.
14321 (tree_to_double_int): Delete.
14322 (double_int_fits_to_tree_p): Delete.
14323 (force_fit_type_double): Delete.
14324 (build_int_cstu): Replace with out-of-line function.
14325 (build_int_cst_wide): Delete.
14326 (tree_int_cst_lt): Define inline.
14327 (tree_int_cst_le): New.
14328 (tree_int_cst_compare): Define inline.
14329 (tree_int_cst_min_precision): Take a signop rather than a bool.
14330 (wi::int_traits <const_tree>): New.
14331 (wi::int_traits <tree>): New.
14332 (wi::extended_tree): New.
14333 (wi::int_traits <wi::extended_tree>): New.
14334 (wi::to_widest): New.
14335 (wi::to_offset): New.
14336 (wi::fits_to_tree_p): New.
14337 (wi::min_value): New.
14338 (wi::max_value): New.
14339 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
14340 (copy_tree_body_r): Likewise.
14341 * tree-object-size.c (compute_object_offset): Likewise.
14342 (addr_object_size): Likewise.
14343 * tree-predcom.c: Include wide-int-print.h.
14344 (struct dref_d): Change type of offset to widest_int.
14345 (dump_dref): Call wide-int printer.
14346 (aff_combination_dr_offset): Use wide-int interfaces.
14347 (determine_offset): Take a widest_int pointer rather than a
14348 double_int pointer.
14349 (split_data_refs_to_components): Use wide-int interfaces.
14350 (suitable_component_p): Likewise.
14351 (order_drefs): Likewise.
14352 (add_ref_to_chain): Likewise.
14353 (valid_initializer_p): Likewise.
14354 (determine_roots_comp): Likewise.
14355 * tree-pretty-print.c: Include wide-int-print.h.
14356 (dump_generic_node): Use wide-int interfaces.
14357 * tree-sra.c (sra_ipa_modify_expr): Likewise.
14358 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
14359 (move_fixed_address_to_symbol): Likewise.
14360 (move_hint_to_base): Likewise.
14361 (move_pointer_to_base): Likewise.
14362 (move_variant_to_index): Likewise.
14363 (most_expensive_mult_to_index): Likewise.
14364 (addr_to_parts): Likewise.
14365 (copy_ref_info): Likewise.
14366 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
14367 (indirect_refs_may_alias_p): Likewise.
14368 (stmt_kills_ref_p_1): Likewise.
14369 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
14370 * tree-ssa-ccp.c: Update comment at top of file. Include
14372 (struct prop_value_d): Change type of mask to widest_int.
14373 (extend_mask): New function.
14374 (dump_lattice_value): Use wide-int interfaces.
14375 (get_default_value): Likewise.
14376 (set_constant_value): Likewise.
14377 (set_value_varying): Likewise.
14378 (valid_lattice_transition): Likewise.
14379 (set_lattice_value): Likewise.
14380 (value_to_double_int): Delete.
14381 (value_to_wide_int): New.
14382 (get_value_from_alignment): Use wide-int interfaces.
14383 (get_value_for_expr): Likewise.
14384 (do_dbg_cnt): Likewise.
14385 (ccp_finalize): Likewise.
14386 (ccp_lattice_meet): Likewise.
14387 (bit_value_unop_1): Use widest_ints rather than double_ints.
14388 (bit_value_binop_1): Likewise.
14389 (bit_value_unop): Use wide-int interfaces.
14390 (bit_value_binop): Likewise.
14391 (bit_value_assume_aligned): Likewise.
14392 (evaluate_stmt): Likewise.
14393 (ccp_fold_stmt): Likewise.
14394 (visit_cond_stmt): Likewise.
14395 (ccp_visit_stmt): Likewise.
14396 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
14397 (constant_pointer_difference): Likewise.
14398 (associate_pointerplus): Likewise.
14399 (combine_conversions): Likewise.
14400 * tree-ssa-loop.h: Include wide-int.h.
14401 (struct tree_niter_desc): Change type of max to widest_int.
14402 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
14403 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
14404 (remove_redundant_iv_tests): Likewise.
14405 (canonicalize_loop_induction_variables): Likewise.
14406 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
14407 (constant_multiple_of): Take a widest_int pointer instead of
14408 a double_int pointer.
14409 (get_computation_aff): Use wide-int interfaces.
14410 (ptr_difference_cost): Likewise.
14411 (difference_cost): Likewise.
14412 (get_loop_invariant_expr_id): Likewise.
14413 (get_computation_cost_at): Likewise.
14414 (iv_elimination_compare_lt): Likewise.
14415 (may_eliminate_iv): Likewise.
14416 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
14417 instead of double_int.
14418 (max_loop_iterations): Likewise.
14419 (max_stmt_executions): Likewise.
14420 (estimated_stmt_executions): Likewise.
14421 * tree-ssa-loop-niter.c: Include wide-int-print.h.
14422 (split_to_var_and_offset): Use wide-int interfaces.
14423 (determine_value_range): Likewise.
14424 (bound_difference_of_offsetted_base): Likewise.
14425 (bounds_add): Take a widest_int instead of a double_int.
14426 (number_of_iterations_ne_max): Use wide-int interfaces.
14427 (number_of_iterations_ne): Likewise.
14428 (number_of_iterations_lt_to_ne): Likewise.
14429 (assert_loop_rolls_lt): Likewise.
14430 (number_of_iterations_lt): Likewise.
14431 (number_of_iterations_le): Likewise.
14432 (number_of_iterations_cond): Likewise.
14433 (number_of_iterations_exit): Likewise.
14434 (finite_loop_p): Likewise.
14435 (derive_constant_upper_bound_assign): Likewise.
14436 (derive_constant_upper_bound): Return a widest_int.
14437 (derive_constant_upper_bound_ops): Likewise.
14438 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
14439 (record_estimate): Take a widest_int rather than a double_int.
14440 (record_nonwrapping_iv): Use wide-int interfaces.
14441 (double_int_cmp): Delete.
14442 (wide_int_cmp): New.
14443 (bound_index): Take a widest_int rather than a double_int.
14444 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
14445 (maybe_lower_iteration_bound): Likewise.
14446 (estimate_numbers_of_iterations_loop): Likewise.
14447 (estimated_loop_iterations): Take a widest_int pointer than than
14448 a double_int pointer.
14449 (estimated_loop_iterations_int): Use wide-int interfaces.
14450 (max_loop_iterations): Take a widest_int pointer than than
14451 a double_int pointer.
14452 (max_loop_iterations_int): Use wide-int interfaces.
14453 (max_stmt_executions): Take a widest_int pointer than than
14454 a double_int pointer.
14455 (estimated_stmt_executions): Likewise.
14456 (n_of_executions_at_most): Use wide-int interfaces.
14457 (scev_probably_wraps_p): Likewise.
14458 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
14459 to real_to_integer.
14460 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
14462 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
14463 double_ints. Adjust for trailing_wide_ints <3> representation.
14464 (set_nonzero_bits): Likewise.
14465 (get_range_info): Return wide_ints rather than double_ints.
14466 Adjust for trailing_wide_ints <3> representation.
14467 (get_nonzero_bits): Likewise.
14468 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
14470 * tree-ssanames.h (struct range_info_def): Replace min, max and
14471 nonzero_bits with a trailing_wide_ints <3>.
14472 (set_range_info): Use wide_int_refs rather than double_ints.
14473 (set_nonzero_bits): Likewise.
14474 (get_range_info): Return wide_ints rather than double_ints.
14475 (get_nonzero_bits): Likewise.
14476 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
14477 * tree-ssa-pre.c (phi_translate_1): Likewise.
14478 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
14479 (acceptable_pow_call): Likewise.
14480 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
14482 (vn_reference_fold_indirect): Likewise.
14483 (vn_reference_maybe_forwprop_address): Likewise.
14484 (valueize_refs_1): Likewise.
14485 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
14486 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
14487 tree_int_cst_lt and tree_int_cst_le.
14488 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
14490 (streamer_alloc_tree): Likewise.
14491 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
14492 (streamer_write_tree_header): Likewise.
14493 (streamer_write_integer_cst): Likewise.
14494 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
14495 (build_constructors): Likewise.
14496 (array_value_type): Likewise.
14497 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
14498 (vect_check_gather): Likewise.
14499 * tree-vect-generic.c (build_replicated_const): Likewise.
14500 (expand_vector_divmod): Likewise.
14501 * tree-vect-loop.c (vect_transform_loop): Likewise.
14502 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
14503 (vect_do_peeling_for_alignment): Likewise.
14504 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
14505 * tree-vrp.c: Include wide-int.h.
14506 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
14507 (extract_range_from_assert): Use wide-int interfaces.
14508 (vrp_int_const_binop): Likewise.
14509 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
14510 double_int pointers.
14511 (ranges_from_anti_range): Use wide-int interfaces.
14512 (quad_int_cmp): Delete.
14513 (quad_int_pair_sort): Likewise.
14514 (extract_range_from_binary_expr_1): Use wide-int interfaces.
14515 (extract_range_from_unary_expr_1): Likewise.
14516 (adjust_range_with_scev): Likewise.
14517 (masked_increment): Take and return wide_ints rather than double_ints.
14518 (register_edge_assert_for_2): Use wide-int interfaces.
14519 (check_array_ref): Likewise.
14520 (search_for_addr_array): Likewise.
14521 (maybe_set_nonzero_bits): Likewise.
14522 (union_ranges): Pass an integer of the correct type instead of
14523 using integer_one_node.
14524 (intersect_ranges): Likewise.
14525 (simplify_truth_ops_using_ranges): Likewise.
14526 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
14527 (range_fits_type_p): Likewise.
14528 (simplify_cond_using_ranges): Likewise. Take a signop rather than
14530 (simplify_conversion_using_ranges): Use wide-int interfaces.
14531 (simplify_float_conversion_using_ranges): Likewise.
14532 (vrp_finalize): Likewise.
14533 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
14534 (gimple_stringops_transform): Likewise.
14535 * varasm.c (decode_addr_const): Likewise.
14536 (const_hash_1): Likewise.
14537 (const_rtx_hash_1): Likewise
14538 (output_constant): Likewise.
14539 (array_size_for_constructor): Likewise.
14540 (output_constructor_regular_field): Likewise.
14541 (output_constructor_bitfield): Likewise.
14542 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
14543 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
14545 * gencheck.c: Define BITS_PER_UNIT.
14546 * wide-int.cc: New.
14548 * wide-int-print.cc: New.
14549 * wide-int-print.h: New.
14551 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14553 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
14555 2014-05-06 Richard Biener <rguenther@suse.de>
14557 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
14558 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
14559 (TODO_verify_all): Adjust.
14560 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
14561 TODO_verify_stmts and TODO_verify_rtl_sharing.
14562 * bb-reorder.c: Likewise.
14563 * cfgexpand.c: Likewise.
14564 * cprop.c: Likewise.
14566 * function.c: Likewise.
14567 * fwprop.c: Likewise.
14568 * gcse.c: Likewise.
14569 * gimple-ssa-isolate-paths.c: Likewise.
14570 * gimple-ssa-strength-reduction.c: Likewise.
14571 * ipa-split.c: Likewise.
14572 * loop-init.c: Likewise.
14573 * loop-unroll.c: Likewise.
14574 * lower-subreg.c: Likewise.
14575 * modulo-sched.c: Likewise.
14576 * postreload-gcse.c: Likewise.
14577 * predict.c: Likewise.
14578 * recog.c: Likewise.
14579 * sched-rgn.c: Likewise.
14580 * store-motion.c: Likewise.
14581 * tracer.c: Likewise.
14582 * trans-mem.c: Likewise.
14583 * tree-call-cdce.c: Likewise.
14584 * tree-cfg.c: Likewise.
14585 * tree-cfgcleanup.c: Likewise.
14586 * tree-complex.c: Likewise.
14587 * tree-eh.c: Likewise.
14588 * tree-emutls.c: Likewise.
14589 * tree-if-conv.c: Likewise.
14590 * tree-into-ssa.c: Likewise.
14591 * tree-loop-distribution.c: Likewise.
14592 * tree-object-size.c: Likewise.
14593 * tree-parloops.c: Likewise.
14594 * tree-pass.h: Likewise.
14595 * tree-sra.c: Likewise.
14596 * tree-ssa-ccp.c: Likewise.
14597 * tree-ssa-copy.c: Likewise.
14598 * tree-ssa-copyrename.c: Likewise.
14599 * tree-ssa-dce.c: Likewise.
14600 * tree-ssa-dom.c: Likewise.
14601 * tree-ssa-dse.c: Likewise.
14602 * tree-ssa-forwprop.c: Likewise.
14603 * tree-ssa-ifcombine.c: Likewise.
14604 * tree-ssa-loop-ch.c: Likewise.
14605 * tree-ssa-loop-ivcanon.c: Likewise.
14606 * tree-ssa-loop.c: Likewise.
14607 * tree-ssa-math-opts.c: Likewise.
14608 * tree-ssa-phiopt.c: Likewise.
14609 * tree-ssa-phiprop.c: Likewise.
14610 * tree-ssa-pre.c: Likewise.
14611 * tree-ssa-reassoc.c: Likewise.
14612 * tree-ssa-sink.c: Likewise.
14613 * tree-ssa-strlen.c: Likewise.
14614 * tree-ssa-tail-merge.c: Likewise.
14615 * tree-ssa-uncprop.c: Likewise.
14616 * tree-switch-conversion.c: Likewise.
14617 * tree-tailcall.c: Likewise.
14618 * tree-vect-generic.c: Likewise.
14619 * tree-vectorizer.c: Likewise.
14620 * tree-vrp.c: Likewise.
14621 * tsan.c: Likewise.
14622 * var-tracking.c: Likewise.
14623 * bt-load.c: Likewise.
14624 * cfgcleanup.c: Likewise.
14625 * combine-stack-adj.c: Likewise.
14626 * combine.c: Likewise.
14627 * compare-elim.c: Likewise.
14628 * config/epiphany/resolve-sw-modes.c: Likewise.
14629 * config/i386/i386.c: Likewise.
14630 * config/mips/mips.c: Likewise.
14631 * config/s390/s390.c: Likewise.
14632 * config/sh/sh_treg_combine.cc: Likewise.
14633 * config/sparc/sparc.c: Likewise.
14636 * final.c: Likewise.
14637 * ifcvt.c: Likewise.
14638 * mode-switching.c: Likewise.
14639 * passes.c: Likewise.
14640 * postreload.c: Likewise.
14642 * reg-stack.c: Likewise.
14643 * regcprop.c: Likewise.
14644 * regrename.c: Likewise.
14647 2014-05-06 Richard Biener <rguenther@suse.de>
14649 PR middle-end/61070
14650 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
14651 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
14653 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
14656 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
14658 2014-05-05 Radovan Obradovic <robradovic@mips.com>
14659 Tom de Vries <tom@codesourcery.com>
14661 * target.def (call_fusage_contains_non_callee_clobbers): New
14663 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
14665 (@node Miscellaneous Register Hooks): New node.
14666 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
14667 * doc/tm.texi: Regenerate.
14669 2014-05-05 Marek Polacek <polacek@redhat.com>
14672 * opts.c (common_handle_option): Call error_at instead of warning_at.
14674 2014-05-05 Richard Biener <rguenther@suse.de>
14676 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
14677 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
14678 under the TODO_verify_il umbrella.
14680 2014-05-05 Richard Biener <rguenther@suse.de>
14682 * passes.c (execute_function_todo): Move TODO_verify_flow under
14683 the TODO_verify_ul umbrella.
14685 2014-05-05 Richard Biener <rguenther@suse.de>
14687 PR middle-end/61010
14688 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
14689 X & CST away from a CST that is the mask of a mode.
14691 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14693 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
14694 int argument to enum machine_mode.
14695 (picochip_class_max_nregs): Ditto.
14696 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
14697 (picochip_class_max_nregs): Ditto.
14699 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14701 * target.def: Add new target hook.
14702 * doc/tm.texi: Regenerate.
14703 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
14704 * targhooks.c (default_keep_leaf_when_profiled): New function.
14706 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
14707 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
14709 2014-05-05 Bin Cheng <bin.cheng@arm.com>
14711 PR tree-optimization/60363
14712 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
14713 (copy_phi_args): New parameters. Call get_value_locus_in_path.
14714 (update_destination_phis): New parameter.
14715 (create_edge_and_update_destination_phis): Ditto.
14716 (ssa_fix_duplicate_block_edges): Pass new arguments.
14717 (thread_single_edge): Ditto.
14719 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
14721 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
14722 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
14723 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
14724 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
14725 Use RS6000_BTM_HARD_FLOAT.
14726 (BU_MISC_2): Likewise.
14727 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
14728 RS6000_BTM_HARD_FLOAT.
14729 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
14730 is explicitly used.
14731 (rs6000_invalid_builtin): Add hard floating builtin support.
14732 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
14733 hard float builtins.
14734 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
14736 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
14738 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
14739 Add missing function* argument.
14741 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
14743 * lra-constraints.c (valid_address_p): Move earlier in file.
14744 Add a constraint argument to the address_info version.
14745 (satisfies_memory_constraint_p): New function.
14746 (satisfies_address_constraint_p): Likewise.
14747 (process_alt_operands, curr_insn_transform): Use them.
14748 (process_address): Pass the constraint to valid_address_p when
14749 checking address operands.
14751 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
14753 * config/mips/mips.c (mips_isa_rev): New variable.
14754 (mips_set_architecture): Set it.
14755 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
14757 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
14758 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
14759 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
14760 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
14761 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
14762 conditions in terms of mips_isa_rev.
14763 (mips_isa_rev): Declare.
14765 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
14767 * config/sh/sh-mem.cc: Use tabs instead of spaces.
14768 (prob_unlikely, prob_likely): Make variables const.
14770 2014-05-03 Denis Chertykov <chertykov@gmail.com>
14772 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
14774 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
14776 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
14778 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
14780 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
14781 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
14782 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
14784 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
14785 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
14787 Replace usage of ROUND_REG with sh_round_reg.
14788 Use CEIL instead of ROUND_ADVANCE.
14790 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
14793 * config/sh/sh.c: Include stdlib headers before everything else.
14795 2014-05-02 Jakub Jelinek <jakub@redhat.com>
14797 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
14798 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
14799 (gimplify_adjust_omp_clauses): Simd region is never
14800 directly nested in combined parallel. Instead, for linear
14801 with copyin/copyout, if in combined for simd loop, make decl
14802 firstprivate/lastprivate on OMP_FOR.
14803 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
14804 expand_omp_for_static_chunk): When setting endvar, also set
14805 fd->loop.v to the same value.
14807 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
14809 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
14811 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
14813 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
14816 2014-05-02 Marek Polacek <polacek@redhat.com>
14818 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
14820 2014-05-02 Kito Cheng <kito@0xlab.org>
14822 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
14823 to a C expression marco.
14824 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
14825 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
14826 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
14827 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
14828 HONOR_REG_ALLOC_ORDER.
14829 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
14831 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14833 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
14835 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14837 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
14839 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
14841 * tree-if-conv.c (is_cond_scalar_reduction): New function.
14842 (convert_scalar_cond_reduction): Likewise.
14843 (predicate_scalar_phi): Add recognition and transformation
14844 of simple conditioanl reduction to be vectorizable.
14846 2014-05-01 Marek Polacek <polacek@redhat.com>
14849 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
14851 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
14853 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
14854 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
14855 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
14856 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
14857 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
14858 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
14859 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
14860 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
14862 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
14864 * config/arc/arc.opt (mlra): Move comment above option name
14865 to avoid mis-parsing as language options.
14867 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14869 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
14870 * config/sol2.h: ... here.
14871 * config/sol2-10.h: Remove.
14873 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
14874 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
14875 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
14876 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
14877 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
14878 * config/sol2.h: ... here.
14879 (SECTION_NAME_FORMAT): Don't redefine.
14880 (STARTFILE_ARCH32_SPEC): Rename to ...
14881 (STARTFILE_ARCH_SPEC): ... this.
14882 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
14883 * config/sparc/sol2.h: ... here.
14884 (SECTION_NAME_FORMAT): Don't undef.
14885 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
14886 (SUBTARGET_EXTRA_SPECS): Remove.
14887 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
14889 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
14890 (MD_STARTFILE_PREFIX): Remove.
14891 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
14892 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
14893 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
14894 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
14895 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
14896 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
14897 * config/i386/sol2.h: ... here.
14898 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
14899 * config/i386/sol2-bi.h: Remove.
14900 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
14901 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
14903 * config/i386/t-sol2-64: Rename to ...
14904 * config/i386/t-sol2: ... this.
14905 * config/sparc/t-sol2-64: Rename to ...
14906 * config/sparc/t-sol2: ... this.
14908 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
14909 sol2_tm_file_head, sol2_tm_file_tail.
14910 Include ${cpu_type}/sol2.h before sol2.h.
14912 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
14913 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
14914 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
14915 Reflect i386/t-sol2-64 renaming.
14916 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
14917 Reflect sparc/t-sol2-64 renaming.
14919 2014-04-30 Richard Biener <rguenther@suse.de>
14921 * passes.c (execute_function_todo): Move TODO_verify_stmts
14922 and TODO_verify_ssa under the TODO_verify_il umbrella.
14923 * tree-ssa.h (verify_ssa): Adjust prototype.
14924 * tree-ssa.c (verify_ssa): Add parameter to tell whether
14925 we should verify SSA operands.
14926 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
14927 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
14928 whether we should verify whether not throwing stmts have EH info.
14929 * graphite-scop-detection.c (create_sese_edges): Adjust.
14930 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
14931 * tree-eh.c (lower_try_finally_switch): Do not add the
14932 default case label twice.
14934 2014-04-30 Marek Polacek <polacek@redhat.com>
14936 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
14937 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
14938 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
14939 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
14941 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
14943 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
14944 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
14945 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
14946 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
14947 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
14948 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
14949 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
14950 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
14952 2014-04-29 David Malcolm <dmalcolm@redhat.com>
14954 * tree-cfg.c (dump_function_to_file): Dump the return type of
14955 functions, in a line to itself before the function body, mimicking
14956 the layout of a C function.
14958 2014-04-29 Jakub Jelinek <jakub@redhat.com>
14960 PR tree-optimization/60971
14961 * tree-tailcall.c (process_assignment): Reject conversions which
14964 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
14966 * calls.c (initialize_argument_information): Always treat
14967 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
14968 (expand_call): Likewise.
14969 (emit_library_call_calue_1): Likewise.
14970 * expr.c (PUSH_ARGS_REVERSED): Do not define.
14971 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
14974 2014-04-29 Nick Clifton <nickc@redhat.com>
14976 * config/msp430/msp430.md (umulsidi): Fix typo.
14977 (mulhisi3): Enable even inside interrupt handlers.
14978 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
14979 bigger return address pushed in large mode.
14981 2014-04-29 Nick Clifton <nickc@redhat.com>
14983 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
14984 (arc_init_reg_tables): Use a machine_mode enum to iterate over
14986 * config/m32r/m32r.c (init_reg_tables): Likewise.
14987 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
14988 enum to hold the modes.
14990 2014-04-29 Richard Biener <rguenther@suse.de>
14992 * dominance.c (free_dominance_info): Add overload with
14993 function parameter.
14994 (dom_info_state): Likewise.
14995 (dom_info_available_p): Likewise.
14996 * basic-block.h (free_dominance_info, dom_info_state,
14997 dom_info_available_p): Declare overloads.
14998 * passes.c (execute_function_todo): Verify that verifiers
14999 don't change dominator info state. Drop dominator info
15000 for IPA pass invocations.
15001 * cgraph.c (release_function_body): Restore asserts that
15002 dominator information is released.
15004 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
15006 * doc/invoke.texi: Fix typo.
15007 * tree-vrp.c: Fix typos.
15008 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
15010 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15012 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
15014 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
15016 * config/aarch64/aarch64-builtins.c
15017 (aarch64_types_storestruct_lane_qualifiers): New.
15018 (TYPES_STORESTRUCT_LANE): Likewise.
15019 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
15020 (st3_lane): Likewise.
15021 (st4_lane): Likewise.
15022 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
15023 (vec_store_lanesci_lane<mode>): Likewise.
15024 (vec_store_lanesxi_lane<mode>): Likewise.
15025 (aarch64_st2_lane<VQ:mode>): Likewise.
15026 (aarch64_st3_lane<VQ:mode>): Likewise.
15027 (aarch64_st4_lane<VQ:mode>): Likewise.
15028 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
15029 * config/aarch64/arm_neon.h
15030 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
15031 use new macro arguments.
15032 (__ST3_LANE_FUNC): Likewise.
15033 (__ST4_LANE_FUNC): Likewise.
15034 * config/aarch64/iterators.md (V_TWO_ELEM): New.
15035 (V_THREE_ELEM): Likewise.
15036 (V_FOUR_ELEM): Likewise.
15038 2014-04-28 David Malcolm <dmalcolm@redhat.com>
15040 * doc/gimple.texi: Replace the description of the now-defunct
15041 union gimple_statement_d with a diagram showing the
15042 gimple_statement_base class hierarchy and its relationships to
15043 the GSS_ and GIMPLE_ enums.
15045 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
15047 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
15048 * config/aarch64/aarch64.c
15049 (aarch64_cannot_change_mode_class): Weaken conditions.
15050 (aarch64_modes_tieable_p): New.
15051 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
15053 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
15055 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
15056 (loadsync_<mode>): Change mode.
15057 (load_quadpti, store_quadpti): New.
15058 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
15059 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
15061 2014-04-28 Martin Jambor <mjambor@suse.cz>
15063 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
15064 same alias type as the original statement.
15065 (subreplacement_assignment_data): New type.
15066 (handle_unscalarized_data_in_subtree): New type of parameter,
15067 generate new memory accesses with same alias type as the original
15069 (load_assign_lhs_subreplacements): Likewise.
15070 (sra_modify_constructor_assign): Generate new memory accesses with
15071 same alias type as the original statement.
15073 2014-04-28 Richard Biener <rguenther@suse.de>
15075 * tree-pass.h (TODO_verify_il): Define.
15076 (TODO_verify_all): Complete properly.
15077 * passes.c (execute_function_todo): Move existing loop-closed
15078 SSA verification under TODO_verify_il.
15079 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
15080 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
15081 Fix tree sharing issue.
15083 2014-04-28 Richard Biener <rguenther@suse.de>
15085 PR middle-end/60092
15086 * builtins.def (DEF_C11_BUILTIN): Add.
15087 (BUILT_IN_ALIGNED_ALLOC): Likewise.
15088 * coretypes.h (enum function_class): Add function_c11_misc.
15089 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15090 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
15091 (call_may_clobber_ref_p_1): Likewise.
15092 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
15093 (mark_all_reaching_defs_necessary_1): Likewise.
15094 (propagate_necessity): Likewise.
15095 (eliminate_unnecessary_stmts): Likewise.
15096 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
15098 2014-04-28 Richard Biener <rguenther@suse.de>
15100 * tree-vrp.c (vrp_var_may_overflow): Remove.
15101 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
15102 with overflow immediately bump to one before that value and
15103 let iteration figure out overflow status.
15105 2014-04-28 Richard Biener <rguenther@suse.de>
15107 * configure.ac: Do valgrind header checks unconditionally.
15108 Add --enable-valgrind-annotations.
15109 * system.h: Guard valgrind header inclusion with
15110 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
15111 * alloc-pool.c (pool_alloc, pool_free): Use
15112 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
15113 to guard possibly dead code.
15114 * config.in: Regenerated.
15115 * configure: Likewise.
15117 2014-04-28 Jeff Law <law@redhat.com>
15119 PR tree-optimization/60902
15120 * tree-ssa-threadedge.c
15121 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
15122 over real defs when invalidating outputs from statements that do not
15123 produce useful outputs for threading.
15125 2014-04-28 Richard Biener <rguenther@suse.de>
15127 PR tree-optimization/60979
15128 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
15129 SCOPs that end in a block with a successor with abnormal
15132 2014-04-28 Richard Biener <rguenther@suse.de>
15134 * tree-pass.h (execute_pass_list): Adjust prototype.
15135 * passes.c (pass_manager::execute_early_local_passes): Adjust.
15136 (do_per_function): Change callback signature, push all actual
15137 work to the callbals.
15138 (do_per_function_toporder): Likewise.
15139 (execute_function_dump): Adjust.
15140 (execute_function_todo): Likewise.
15141 (clear_last_verified): Likewise.
15142 (verify_curr_properties): Likewise.
15143 (update_properties_after_pass): Likewise.
15144 (execute_pass_list_1): Split out from ...
15145 (execute_pass_list): ... here. Adjust.
15146 (execute_ipa_pass_list): Likewise.
15147 * cgraphunit.c (cgraph_add_new_function): Adjust.
15148 (analyze_function): Likewise.
15149 (expand_function): Likewise.
15150 * cgraph.c (release_function_body): Free dominance info
15151 here instead of asserting it was magically freed elsewhere.
15153 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
15155 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
15156 * configure: Regenerate.
15157 * config/sparc/sparc.opt (muser-mode): New option.
15158 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
15160 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
15161 * doc/invoke.texi (SPARC options): Document -muser-mode.
15163 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
15165 * cselib.c (find_slot_memmode): Delete.
15166 (cselib_hasher): Change compare_type to a struct.
15167 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
15169 (preserve_constants_and_equivs): Adjust for new compare_type.
15170 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
15171 (wrap_constant): Delete.
15172 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
15174 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
15176 * doc/install.texi (Building with profile feedback): Remove
15179 2014-04-26 Tom de Vries <tom@codesourcery.com>
15181 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
15184 2014-04-25 Cary Coutant <ccoutant@google.com>
15187 * dwarf2out.c (should_move_die_to_comdat): A type definition
15188 can contain a subprogram definition, but don't move it to a
15190 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
15191 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
15193 (clone_tree_hash): Rename to...
15194 (clone_tree_partial): ...this; change callers. Copy
15195 DW_TAG_subprogram DIEs as declarations.
15196 (copy_decls_walk): Don't copy children of a declaration into a
15199 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
15202 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
15205 2014-04-25 Jiong Wang <jiong.wang@arm.com>
15207 * config/arm/predicates.md (call_insn_operand): Add long_call check.
15208 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
15210 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
15213 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15215 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
15217 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15219 PR tree-optimization/60930
15220 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
15221 creating a multiply candidate by folding two constant
15222 multiplicands when the result overflows.
15224 2014-04-25 Jakub Jelinek <jakub@redhat.com>
15226 PR tree-optimization/60960
15227 * tree-vect-generic.c (expand_vector_operation): Only call
15228 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
15230 2014-04-25 Tom de Vries <tom@codesourcery.com>
15232 * expr.c (clobber_reg_mode): New function.
15233 * expr.h (clobber_reg): New function.
15235 2014-04-25 Tom de Vries <tom@codesourcery.com>
15237 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
15240 2014-04-25 Radovan Obradovic <robradovic@mips.com>
15241 Tom de Vries <tom@codesourcery.com>
15243 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
15245 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
15246 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
15247 new argument to find_all_hard_reg_sets call.
15249 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15251 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
15252 Use HOST_WIDE_INT_C for mask literal.
15253 (aarch_rev16_shleft_mask_imm_p): Likewise.
15255 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
15258 * config/sparc/sparc.md (ashlsi3_extend): Delete.
15260 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
15262 PR preprocessor/56540
15263 * config/i386/i386-c.c (ix86_target_macros): Define
15264 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
15266 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15268 * configure.ac (tga_func): Remove.
15269 (LIB_TLS_SPEC): Remove.
15270 * configure: Regenerate.
15271 * config.in: Regenerate.
15272 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
15274 2014-04-25 Richard Biener <rguenther@suse.de>
15277 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
15278 call stmt use/clobber sets during stmt walk instead of
15279 walking the possibly incomplete set of caller edges.
15281 2014-04-25 Richard Biener <rguenther@suse.de>
15284 * passes.c (apply_ipa_transforms): Inline into only caller ...
15285 (execute_one_pass): ... here. Properly bring in function
15286 bodies for nodes we want to apply IPA transforms to.
15288 2014-04-24 Cong Hou <congh@google.com>
15290 PR tree-optimization/60896
15291 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
15292 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
15293 (vect_mark_pattern_stmts): Set the def type of all statements in
15294 PATTERN_DEF_SEQ as vect_internal_def.
15296 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15298 * doc/extend.texi (PowerPC Built-in Functions): Document new
15299 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
15300 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
15302 * config/rs6000/predicates.md (const_0_to_3_operand): New
15303 predicate to match 0..3 integer constants.
15305 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
15306 to support adding miscellaneous builtin functions.
15307 (BU_DFP_MISC_2): Likewise.
15308 (BU_P7_MISC_1): Likewise.
15309 (BU_P7_MISC_2): Likewise.
15310 (BU_P8V_MISC_3): Likewise.
15311 (BU_MISC_1): Likewise.
15312 (BU_MISC_2): Likewise.
15313 (DIVWE): Add extended divide builtin functions.
15314 (DIVWEO): Likewise.
15315 (DIVWEU): Likewise.
15316 (DIVWEUO): Likewise.
15318 (DIVDEO): Likewise.
15319 (DIVDEU): Likewise.
15320 (DIVDEUO): Likewise.
15321 (DXEX): Add decimal floating-point builtin functions.
15323 (DDEDPD): Likewise.
15324 (DDEDPDQ): Likewise.
15325 (DENBCD): Likewise.
15326 (DENBCDQ): Likewise.
15330 (DSCLIQ): Likewise.
15332 (DSCRIQ): Likewise.
15333 (CDTBCD): Add new BCD builtin functions.
15334 (CBCDTD): Likewise.
15335 (ADDG6S): Likewise.
15336 (BCDADD): Likewise.
15337 (BCDADD_LT): Likewise.
15338 (BCDADD_EQ): Likewise.
15339 (BCDADD_GT): Likewise.
15340 (BCDADD_OV): Likewise.
15341 (BCDSUB): Likewise.
15342 (BCDSUB_LT): Likewise.
15343 (BCDSUB_EQ): Likewise.
15344 (BCDSUB_GT): Likewise.
15345 (BCDSUB_OV): Likewise.
15346 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
15347 (UNPACK_TD): Likewise.
15348 (PACK_TF): Likewise.
15349 (UNPACK_TF): Likewise.
15350 (UNPACK_TF_0): Likewise.
15351 (UNPACK_TF_1): Likewise.
15352 (PACK_V1TI): Likewise.
15353 (UNPACK_V1TI): Likewise.
15355 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
15356 support for decimal floating point builtin functions.
15357 (rs6000_expand_ternop_builtin): Add checks for the new builtin
15358 functions that take constant arguments.
15359 (rs6000_invalid_builtin): Add decimal floating point builtin support.
15360 (rs6000_init_builtins): Setup long double, _Decimal64, and
15361 _Decimal128 types for new builtin functions.
15362 (builtin_function_type): Set the unsigned flags appropriately for
15363 the new builtin functions.
15364 (rs6000_opt_masks): Add support for decimal floating point builtin
15367 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
15368 floating point builtin functions.
15369 (RS6000_BTM_COMMON): Likewise.
15370 (RS6000_BTI_long_double): Likewise.
15371 (RS6000_BTI_dfloat64): Likewise.
15372 (RS6000_BTI_dfloat128): Likewise.
15373 (long_double_type_internal_node): Likewise.
15374 (dfloat64_type_internal_node): Likewise.
15375 (dfloat128_type_internal_node): Likewise.
15377 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
15378 2.07 bcd arithmetic instructions.
15379 (UNSPEC_BCDSUB): Likewise.
15380 (UNSPEC_BCD_OVERFLOW): Likewise.
15381 (UNSPEC_BCD_ADD_SUB): Likewise.
15382 (bcd_add_sub): Likewise.
15383 (BCD_TEST): Likewise.
15384 (bcd<bcd_add_sub>): Likewise.
15385 (bcd<bcd_add_sub>_test): Likewise.
15386 (bcd<bcd_add_sub>_test2): Likewise.
15387 (bcd<bcd_add_sub>_<code>): Likewise.
15388 (peephole2 for combined bcd ops): Likewise.
15390 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
15391 decimal floating point builtin functions.
15392 (UNSPEC_DENBCD): Likewise.
15393 (UNSPEC_DXEX): Likewise.
15394 (UNSPEC_DIEX): Likewise.
15395 (UNSPEC_DSCLI): Likewise.
15396 (UNSPEC_DSCRI): Likewise.
15397 (D64_D128): Likewise.
15398 (dfp_suffix): Likewise.
15399 (dfp_ddedpd_<mode>): Likewise.
15400 (dfp_denbcd_<mode>): Likewise.
15401 (dfp_dxex_<mode>): Likewise.
15402 (dfp_diex_<mode>): Likewise.
15403 (dfp_dscli_<mode>): Likewise.
15404 (dfp_dscri_<mode>): Likewise.
15406 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
15408 (UNSPEC_CDTBCD): Likewise.
15409 (UNSPEC_CBCDTD): Likewise.
15410 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
15411 (UNSPEC_DIVEO): Likewise.
15412 (UNSPEC_DIVEU): Likewise.
15413 (UNSPEC_DIVEUO): Likewise.
15414 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
15415 pack/unpack 128-bit types.
15416 (UNSPEC_PACK_128BIT): Likewise.
15417 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
15418 (udiv<mode>3): Use idiv_ldiv mode attribute.
15419 (div<mode>3): Likewise.
15420 (addg6s): Add new BCD builtin functions.
15421 (cdtbcd): Likewise.
15422 (cbcdtd): Likewise.
15423 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
15424 (div_extend): Likewise.
15425 (div<div_extend>_<mode>"): Likewise.
15426 (FP128_64): Add support for new builtin functions to pack/unpack
15428 (unpack<mode>): Likewise.
15429 (unpacktf_0): Likewise.
15430 (unpacktf_1): Likewise.
15431 (unpack<mode>_dm): Likewise.
15432 (unpack<mode>_nodm): Likewise.
15433 (pack<mode>): Likewise.
15434 (unpackv1ti): Likewise.
15435 (packv1ti): Likewise.
15437 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
15439 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
15442 2014-04-24 Jakub Jelinek <jakub@redhat.com>
15444 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
15445 * gimplify.c (omp_is_private): Change last argument's type to int.
15446 Only diagnose lastprivate if the simd argument is 1, only diagnose
15447 linear if the simd argument is 2.
15448 (gimplify_omp_for): Adjust omp_is_private callers. When adding
15449 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
15450 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
15451 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
15452 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
15453 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
15454 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
15455 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
15456 * tree-nested.c (convert_nonlocal_omp_clauses,
15457 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
15459 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
15462 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
15465 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
15467 * flag-types.h (enum ivar_visibility): Add.
15469 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
15471 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
15472 function * argument.
15474 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
15476 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
15478 2014-04-24 Radovan Obradovic <robradovic@mips.com>
15479 Tom de Vries <tom@codesourcery.com>
15481 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
15482 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
15484 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
15485 * emit-rtl.c (try_split): Same.
15487 2014-04-24 Radovan Obradovic <robradovic@mips.com>
15488 Tom de Vries <tom@codesourcery.com>
15490 * common.opt (fuse-caller-save): New option.
15492 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
15494 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
15495 elements for big-endian.
15497 2014-04-24 Richard Biener <rguenther@suse.de>
15499 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
15500 during TER and instead use the sepops interface for expanding
15501 non-GIMPLE_SINGLE_RHS.
15503 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15505 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
15506 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
15508 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15510 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
15511 assembler 64-bit option.
15512 * configure: Regenerate.
15514 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15516 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
15517 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
15518 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
15519 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
15520 (TARGET_CRYPTO): Take TARGET_SIMD into account.
15522 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15524 * config/aarch64/aarch64-builtins.c
15525 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
15526 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
15527 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
15528 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
15530 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
15531 (Vrevsuff): New mode attribute.
15533 2014-04-24 Terry Guo <terry.guo@arm.com>
15535 * config/arm/arm.h (machine_function): Define variable
15536 after_arm_reorg here.
15537 * config/arm/arm.c (after_arm_reorg): Remove the definition.
15538 (arm_split_constant): Update the way to access variable
15540 (arm_reorg): Ditto.
15541 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
15543 2014-04-23 Tom de Vries <tom@codesourcery.com>
15545 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
15547 2014-04-23 David Malcolm <dmalcolm@redhat.com>
15549 * is-a.h: Update comments to reflect the following changes to the
15550 "pointerness" of the API, making the template parameter match the
15551 return type, allowing use of is-a.h with typedefs of pointers.
15552 (is_a_helper::cast): Return a T rather then a pointer to a T, so
15553 that the return type matches the parameter to the is_a_helper.
15555 (dyn_cast): Likewise.
15557 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
15558 pointer from the is-a.h API.
15560 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
15561 (is_a_helper <cgraph_node *>::test): ...this, matching change to
15563 (is_a_helper <varpool_node>::test): Likewise, convert to...
15564 (is_a_helper <varpool_node *>::test): ...this.
15566 (varpool_first_variable): Update for removal of implicit pointer
15567 from the is-a.h API.
15568 (varpool_next_variable): Likewise.
15569 (varpool_first_static_initializer): Likewise.
15570 (varpool_next_static_initializer): Likewise.
15571 (varpool_first_defined_variable): Likewise.
15572 (varpool_next_defined_variable): Likewise.
15573 (cgraph_first_defined_function): Likewise.
15574 (cgraph_next_defined_function): Likewise.
15575 (cgraph_first_function): Likewise.
15576 (cgraph_next_function): Likewise.
15577 (cgraph_first_function_with_gimple_body): Likewise.
15578 (cgraph_next_function_with_gimple_body): Likewise.
15579 (cgraph_alias_target): Likewise.
15580 (varpool_alias_target): Likewise.
15581 (cgraph_function_or_thunk_node): Likewise.
15582 (varpool_variable_node): Likewise.
15583 (symtab_real_symbol_p): Likewise.
15584 * cgraphunit.c (referred_to_p): Likewise.
15585 (analyze_functions): Likewise.
15586 (handle_alias_pairs): Likewise.
15587 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
15588 * gimple-ssa.h (gimple_vuse_op): Likewise.
15589 (gimple_vdef_op): Likewise.
15590 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
15591 * gimple.c (gimple_build_asm_1): Likewise.
15592 (gimple_build_try): Likewise.
15593 (gimple_build_resx): Likewise.
15594 (gimple_build_eh_dispatch): Likewise.
15595 (gimple_build_omp_for): Likewise.
15596 (gimple_omp_for_set_clauses): Likewise.
15598 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
15599 (is_a_helper <gimple_statement_asm *>::test): ...this.
15600 (is_a_helper <gimple_statement_bind>::test): Convert to...
15601 (is_a_helper <gimple_statement_bind *>::test): ...this.
15602 (is_a_helper <gimple_statement_call>::test): Convert to...
15603 (is_a_helper <gimple_statement_call *>::test): ...this.
15604 (is_a_helper <gimple_statement_catch>::test): Convert to...
15605 (is_a_helper <gimple_statement_catch *>::test): ...this.
15606 (is_a_helper <gimple_statement_resx>::test): Convert to...
15607 (is_a_helper <gimple_statement_resx *>::test): ...this.
15608 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
15609 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
15610 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
15611 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
15612 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
15613 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
15614 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
15615 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
15616 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
15617 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
15618 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
15619 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
15620 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
15621 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
15622 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
15623 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
15624 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
15625 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
15626 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
15627 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
15628 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
15629 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
15630 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
15631 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
15632 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
15633 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
15634 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
15635 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
15636 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
15637 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
15638 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
15639 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
15640 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
15641 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
15642 (is_a_helper <gimple_statement_phi>::test): Convert to...
15643 (is_a_helper <gimple_statement_phi *>::test): ...this.
15644 (is_a_helper <gimple_statement_transaction>::test): Convert to...
15645 (is_a_helper <gimple_statement_transaction *>::test): ...this.
15646 (is_a_helper <gimple_statement_try>::test): Convert to...
15647 (is_a_helper <gimple_statement_try *>::test): ...this.
15648 (is_a_helper <gimple_statement_wce>::test): Convert to...
15649 (is_a_helper <gimple_statement_wce *>::test): ...this.
15650 (is_a_helper <const gimple_statement_asm>::test): Convert to...
15651 (is_a_helper <const gimple_statement_asm *>::test): ...this.
15652 (is_a_helper <const gimple_statement_bind>::test): Convert to...
15653 (is_a_helper <const gimple_statement_bind *>::test): ...this.
15654 (is_a_helper <const gimple_statement_call>::test): Convert to...
15655 (is_a_helper <const gimple_statement_call *>::test): ...this.
15656 (is_a_helper <const gimple_statement_catch>::test): Convert to...
15657 (is_a_helper <const gimple_statement_catch *>::test): ...this.
15658 (is_a_helper <const gimple_statement_resx>::test): Convert to...
15659 (is_a_helper <const gimple_statement_resx *>::test): ...this.
15660 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
15661 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
15662 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
15663 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
15664 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
15666 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
15668 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
15670 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
15672 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
15673 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
15674 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
15676 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
15677 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
15679 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
15680 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
15681 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
15682 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
15683 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
15684 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
15686 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
15687 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
15688 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
15689 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
15691 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
15692 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
15693 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
15694 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
15695 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
15696 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
15697 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
15698 (is_a_helper <const gimple_statement_phi>::test): Convert to...
15699 (is_a_helper <const gimple_statement_phi *>::test): ...this.
15700 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
15701 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
15702 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
15703 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
15704 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
15705 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
15706 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
15708 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
15710 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
15711 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
15713 (gimple_use_ops): Update for removal of implicit pointer from the
15715 (gimple_set_use_ops): Likewise.
15716 (gimple_vuse): Likewise.
15717 (gimple_vdef): Likewise.
15718 (gimple_vuse_ptr): Likewise.
15719 (gimple_vdef_ptr): Likewise.
15720 (gimple_set_vuse): Likewise.
15721 (gimple_set_vdef): Likewise.
15722 (gimple_omp_return_set_lhs): Likewise.
15723 (gimple_omp_return_lhs): Likewise.
15724 (gimple_omp_return_lhs_ptr): Likewise.
15725 (gimple_call_fntype): Likewise.
15726 (gimple_call_set_fntype): Likewise.
15727 (gimple_call_set_internal_fn): Likewise.
15728 (gimple_call_use_set): Likewise.
15729 (gimple_call_clobber_set): Likewise.
15730 (gimple_bind_vars): Likewise.
15731 (gimple_bind_set_vars): Likewise.
15732 (gimple_bind_body_ptr): Likewise.
15733 (gimple_bind_set_body): Likewise.
15734 (gimple_bind_add_stmt): Likewise.
15735 (gimple_bind_block): Likewise.
15736 (gimple_bind_set_block): Likewise.
15737 (gimple_asm_ninputs): Likewise.
15738 (gimple_asm_noutputs): Likewise.
15739 (gimple_asm_nclobbers): Likewise.
15740 (gimple_asm_nlabels): Likewise.
15741 (gimple_asm_input_op): Likewise.
15742 (gimple_asm_input_op_ptr): Likewise.
15743 (gimple_asm_output_op): Likewise.
15744 (gimple_asm_output_op_ptr): Likewise.
15745 (gimple_asm_set_output_op): Likewise.
15746 (gimple_asm_clobber_op): Likewise.
15747 (gimple_asm_set_clobber_op): Likewise.
15748 (gimple_asm_label_op): Likewise.
15749 (gimple_asm_set_label_op): Likewise.
15750 (gimple_asm_string): Likewise.
15751 (gimple_catch_types): Likewise.
15752 (gimple_catch_types_ptr): Likewise.
15753 (gimple_catch_handler_ptr): Likewise.
15754 (gimple_catch_set_types): Likewise.
15755 (gimple_catch_set_handler): Likewise.
15756 (gimple_eh_filter_types): Likewise.
15757 (gimple_eh_filter_types_ptr): Likewise.
15758 (gimple_eh_filter_failure_ptr): Likewise.
15759 (gimple_eh_filter_set_types): Likewise.
15760 (gimple_eh_filter_set_failure): Likewise.
15761 (gimple_eh_must_not_throw_fndecl): Likewise.
15762 (gimple_eh_must_not_throw_set_fndecl): Likewise.
15763 (gimple_eh_else_n_body_ptr): Likewise.
15764 (gimple_eh_else_e_body_ptr): Likewise.
15765 (gimple_eh_else_set_n_body): Likewise.
15766 (gimple_eh_else_set_e_body): Likewise.
15767 (gimple_try_eval_ptr): Likewise.
15768 (gimple_try_cleanup_ptr): Likewise.
15769 (gimple_try_set_eval): Likewise.
15770 (gimple_try_set_cleanup): Likewise.
15771 (gimple_wce_cleanup_ptr): Likewise.
15772 (gimple_wce_set_cleanup): Likewise.
15773 (gimple_phi_capacity): Likewise.
15774 (gimple_phi_num_args): Likewise.
15775 (gimple_phi_result): Likewise.
15776 (gimple_phi_result_ptr): Likewise.
15777 (gimple_phi_set_result): Likewise.
15778 (gimple_phi_arg): Likewise.
15779 (gimple_phi_set_arg): Likewise.
15780 (gimple_resx_region): Likewise.
15781 (gimple_resx_set_region): Likewise.
15782 (gimple_eh_dispatch_region): Likewise.
15783 (gimple_eh_dispatch_set_region): Likewise.
15784 (gimple_omp_critical_name): Likewise.
15785 (gimple_omp_critical_name_ptr): Likewise.
15786 (gimple_omp_critical_set_name): Likewise.
15787 (gimple_omp_for_clauses): Likewise.
15788 (gimple_omp_for_clauses_ptr): Likewise.
15789 (gimple_omp_for_set_clauses): Likewise.
15790 (gimple_omp_for_collapse): Likewise.
15791 (gimple_omp_for_index): Likewise.
15792 (gimple_omp_for_index_ptr): Likewise.
15793 (gimple_omp_for_set_index): Likewise.
15794 (gimple_omp_for_initial): Likewise.
15795 (gimple_omp_for_initial_ptr): Likewise.
15796 (gimple_omp_for_set_initial): Likewise.
15797 (gimple_omp_for_final): Likewise.
15798 (gimple_omp_for_final_ptr): Likewise.
15799 (gimple_omp_for_set_final): Likewise.
15800 (gimple_omp_for_incr): Likewise.
15801 (gimple_omp_for_incr_ptr): Likewise.
15802 (gimple_omp_for_set_incr): Likewise.
15803 (gimple_omp_for_pre_body_ptr): Likewise.
15804 (gimple_omp_for_set_pre_body): Likewise.
15805 (gimple_omp_parallel_clauses): Likewise.
15806 (gimple_omp_parallel_clauses_ptr): Likewise.
15807 (gimple_omp_parallel_set_clauses): Likewise.
15808 (gimple_omp_parallel_child_fn): Likewise.
15809 (gimple_omp_parallel_child_fn_ptr): Likewise.
15810 (gimple_omp_parallel_set_child_fn): Likewise.
15811 (gimple_omp_parallel_data_arg): Likewise.
15812 (gimple_omp_parallel_data_arg_ptr): Likewise.
15813 (gimple_omp_parallel_set_data_arg): Likewise.
15814 (gimple_omp_task_clauses): Likewise.
15815 (gimple_omp_task_clauses_ptr): Likewise.
15816 (gimple_omp_task_set_clauses): Likewise.
15817 (gimple_omp_task_child_fn): Likewise.
15818 (gimple_omp_task_child_fn_ptr): Likewise.
15819 (gimple_omp_task_set_child_fn): Likewise.
15820 (gimple_omp_task_data_arg): Likewise.
15821 (gimple_omp_task_data_arg_ptr): Likewise.
15822 (gimple_omp_task_set_data_arg): Likewise.
15823 (gimple_omp_taskreg_clauses): Likewise.
15824 (gimple_omp_taskreg_clauses_ptr): Likewise.
15825 (gimple_omp_taskreg_set_clauses): Likewise.
15826 (gimple_omp_taskreg_child_fn): Likewise.
15827 (gimple_omp_taskreg_child_fn_ptr): Likewise.
15828 (gimple_omp_taskreg_set_child_fn): Likewise.
15829 (gimple_omp_taskreg_data_arg): Likewise.
15830 (gimple_omp_taskreg_data_arg_ptr): Likewise.
15831 (gimple_omp_taskreg_set_data_arg): Likewise.
15832 (gimple_omp_task_copy_fn): Likewise.
15833 (gimple_omp_task_copy_fn_ptr): Likewise.
15834 (gimple_omp_task_set_copy_fn): Likewise.
15835 (gimple_omp_task_arg_size): Likewise.
15836 (gimple_omp_task_arg_size_ptr): Likewise.
15837 (gimple_omp_task_set_arg_size): Likewise.
15838 (gimple_omp_task_arg_align): Likewise.
15839 (gimple_omp_task_arg_align_ptr): Likewise.
15840 (gimple_omp_task_set_arg_align): Likewise.
15841 (gimple_omp_single_clauses): Likewise.
15842 (gimple_omp_single_clauses_ptr): Likewise.
15843 (gimple_omp_single_set_clauses): Likewise.
15844 (gimple_omp_target_clauses): Likewise.
15845 (gimple_omp_target_clauses_ptr): Likewise.
15846 (gimple_omp_target_set_clauses): Likewise.
15847 (gimple_omp_target_child_fn): Likewise.
15848 (gimple_omp_target_child_fn_ptr): Likewise.
15849 (gimple_omp_target_set_child_fn): Likewise.
15850 (gimple_omp_target_data_arg): Likewise.
15851 (gimple_omp_target_data_arg_ptr): Likewise.
15852 (gimple_omp_target_set_data_arg): Likewise.
15853 (gimple_omp_teams_clauses): Likewise.
15854 (gimple_omp_teams_clauses_ptr): Likewise.
15855 (gimple_omp_teams_set_clauses): Likewise.
15856 (gimple_omp_sections_clauses): Likewise.
15857 (gimple_omp_sections_clauses_ptr): Likewise.
15858 (gimple_omp_sections_set_clauses): Likewise.
15859 (gimple_omp_sections_control): Likewise.
15860 (gimple_omp_sections_control_ptr): Likewise.
15861 (gimple_omp_sections_set_control): Likewise.
15862 (gimple_omp_for_set_cond): Likewise.
15863 (gimple_omp_for_cond): Likewise.
15864 (gimple_omp_atomic_store_set_val): Likewise.
15865 (gimple_omp_atomic_store_val): Likewise.
15866 (gimple_omp_atomic_store_val_ptr): Likewise.
15867 (gimple_omp_atomic_load_set_lhs): Likewise.
15868 (gimple_omp_atomic_load_lhs): Likewise.
15869 (gimple_omp_atomic_load_lhs_ptr): Likewise.
15870 (gimple_omp_atomic_load_set_rhs): Likewise.
15871 (gimple_omp_atomic_load_rhs): Likewise.
15872 (gimple_omp_atomic_load_rhs_ptr): Likewise.
15873 (gimple_omp_continue_control_def): Likewise.
15874 (gimple_omp_continue_control_def_ptr): Likewise.
15875 (gimple_omp_continue_set_control_def): Likewise.
15876 (gimple_omp_continue_control_use): Likewise.
15877 (gimple_omp_continue_control_use_ptr): Likewise.
15878 (gimple_omp_continue_set_control_use): Likewise.
15879 (gimple_transaction_body_ptr): Likewise.
15880 (gimple_transaction_label): Likewise.
15881 (gimple_transaction_label_ptr): Likewise.
15882 (gimple_transaction_set_body): Likewise.
15883 (gimple_transaction_set_label): Likewise.
15885 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
15886 * ipa-inline-analysis.c (inline_write_summary): Likewise.
15887 * ipa-ref.c (ipa_record_reference): Likewise.
15888 * ipa-reference.c (analyze_function): Likewise.
15889 (ipa_reference_write_optimization_summary): Likewise.
15890 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
15891 (address_taken_from_non_vtable_p): Likewise.
15892 (comdat_can_be_unshared_p_1): Likewise.
15893 * lto-cgraph.c (lto_output_ref): Likewise.
15894 (add_references): Likewise.
15895 (compute_ltrans_boundary): Likewise.
15896 (output_symtab): Likewise.
15897 (input_ref): Likewise.
15898 (input_cgraph_1): Likewise.
15899 (output_cgraph_opt_summary): Likewise.
15900 * lto-streamer-out.c (lto_output): Likewise.
15901 (output_symbol_p): Likewise.
15902 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
15903 (lsei_start_function_in_partition): Likewise.
15904 (lsei_next_variable_in_partition): Likewise.
15905 (lsei_start_variable_in_partition): Likewise.
15906 * symtab.c (insert_to_assembler_name_hash): Likewise.
15907 (unlink_from_assembler_name_hash): Likewise.
15908 (symtab_unregister_node): Likewise.
15909 (symtab_remove_node): Likewise.
15910 (dump_symtab_node): Likewise.
15911 (verify_symtab_base): Likewise.
15912 (verify_symtab_node): Likewise.
15913 (symtab_make_decl_local): Likewise.
15914 (symtab_alias_ultimate_target): Likewise.
15915 (symtab_resolve_alias): Likewise.
15916 (symtab_get_symbol_partitioning_class): Likewise.
15917 * tree-phinodes.c (allocate_phi_node): Likewise.
15918 (reserve_phi_args_for_new_edge): Likewise.
15919 (remove_phi_args): Likewise.
15920 * varpool.c (varpool_node_for_asm): Likewise.
15921 (varpool_remove_unreferenced_decls): Likewise.
15923 2014-04-23 Jeff Law <law@redhat.com>
15925 PR tree-optimization/60902
15926 * tree-ssa-threadedge.c
15927 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
15928 invalidate outputs from statements that do not produce useful
15929 outputs for threading.
15931 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
15933 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
15934 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
15935 machine descriptions for Stack Smashing Protector.
15937 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
15939 * aarch64.md (<optab>_rol<mode>3): New pattern.
15940 (<optab>_rolsi3_uxtw): Likewise.
15941 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
15943 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
15945 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
15946 (arm_cortex_a12_tune): Likewise.
15948 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15950 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
15952 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15954 * config/arm/arm.md (arm_rev16si2): New pattern.
15955 (arm_rev16si2_alt): Likewise.
15956 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
15958 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15960 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
15961 (rev16<mode>2_alt): Likewise.
15962 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
15963 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
15964 (aarch_rev16_shleft_mask_imm_p): Likewise.
15965 (aarch_rev16_p_1): Likewise.
15966 (aarch_rev16_p): Likewise.
15967 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
15968 (aarch_rev16_shright_mask_imm_p): Likewise.
15969 (aarch_rev16_shleft_mask_imm_p): Likewise.
15971 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15973 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
15974 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
15976 (cortex_a53_extra_costs): Likewise.
15977 (cortex_a57_extra_costs): Likewise.
15978 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
15979 (cortexa7_extra_costs): Likewise.
15980 (cortexa8_extra_costs): Likewise.
15981 (cortexa12_extra_costs): Likewise.
15982 (cortexa15_extra_costs): Likewise.
15983 (v7m_extra_costs): Likewise.
15984 (arm_new_rtx_costs): Handle BSWAP.
15986 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15988 * config/arm/arm.c (cortexa8_extra_costs): New table.
15989 (arm_cortex_a8_tune): New tuning struct.
15990 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
15992 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15994 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
15996 2014-04-23 Richard Biener <rguenther@suse.de>
15998 * Makefile.in (OBJS): Remove loop-unswitch.o.
15999 * tree-pass.h (make_pass_rtl_unswitch): Remove.
16000 * passes.def (pass_rtl_unswitch): Likewise.
16001 * loop-init.c (gate_rtl_unswitch): Likewise.
16002 (rtl_unswitch): Likewise.
16003 (pass_data_rtl_unswitch): Likewise.
16004 (pass_rtl_unswitch): Likewise.
16005 (make_pass_rtl_unswitch): Likewise.
16006 * rtl.h (reversed_condition): Likewise.
16007 (compare_and_jump_seq): Likewise.
16008 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
16010 * loop-unroll.c (compare_and_jump_seq): Likewise.
16012 2014-04-23 Richard Biener <rguenther@suse.de>
16014 PR tree-optimization/60903
16015 * tree-ssa-loop-im.c (analyze_memory_references): Remove
16016 commented code block.
16017 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
16018 loop flags to newly created BBs and edges.
16020 2014-04-23 Nick Clifton <nickc@redhat.com>
16022 * config/msp430/msp430.c (msp430_handle_option): Move function
16024 (msp430_option_override): Simplify mcu and mcpu option handling.
16025 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
16026 support for -mhwmult command line option.
16027 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
16028 -mhwmult command line option.
16029 (msp430_hwmult_enabled): Delete.
16030 (msp43o_output_labelref): Add support for -mhwmult command line option.
16031 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
16032 (umulsidi3): Likewise.
16033 * config/msp430/msp430.opt (mmcu): Add Report attribute.
16034 (mcpu, mlarge, msmall): Likewise.
16035 (mhwmult): New option.
16036 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
16038 (msp430_is_f5_mcu): Remove prototype.
16039 (msp430_use_f5_series_hwmult): Add prototype.
16040 * config/msp430/msp430-opts.h: New file.
16041 * common/config/msp430: New directory.
16042 * common/config/msp430/msp430-common.c: New file.
16043 * config.gcc (msp430): Remove target_has_targetm_common.
16044 * doc/invoke.texi: Document -mhwmult command line option.
16046 2014-04-23 Nick Clifton <nickc@redhat.com>
16048 * config/i386/cygwin.h (ENDFILE_SPEC): Include
16049 default-manifest.o if it can be found in the search path.
16050 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
16052 2014-04-23 Terry Guo <terry.guo@arm.com>
16054 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
16056 2014-04-23 Richard Biener <rguenther@suse.de>
16058 PR middle-end/60895
16059 * tree-inline.c (declare_return_variable): Use mark_addressable.
16061 2014-04-23 Richard Biener <rguenther@suse.de>
16063 PR middle-end/60891
16064 * loop-init.c (loop_optimizer_init): Make sure to apply
16065 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
16067 2014-04-22 Jakub Jelinek <jakub@redhat.com>
16070 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
16072 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
16073 if flag_sanitize_undefined_trap_on_error.
16074 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
16075 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
16076 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
16077 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
16078 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
16079 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
16080 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
16081 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
16082 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
16083 * ubsan.c (ubsan_instrument_unreachable): Return
16084 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
16085 (ubsan_expand_null_ifn): Emit __builtin_trap ()
16086 if flag_sanitize_undefined_trap_on_error and
16087 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
16088 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
16089 instrument_bool_enum_load): Emit __builtin_trap () if
16090 flag_sanitize_undefined_trap_on_error and
16091 __builtin_handle_*_abort () if !flag_sanitize_recover.
16092 * doc/invoke.texi (-fsanitize-recover,
16093 -fsanitize-undefined-trap-on-error): Document.
16095 2014-04-22 Christian Bruel <christian.bruel@st.com>
16097 * config/sh/sh.md (mov<mode>): Replace movQIHI.
16098 Force immediates to SImode.
16100 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
16102 * config/nios2/nios2.md (UNSPEC_ROUND): New.
16103 (lroundsfsi2): New.
16104 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
16105 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
16106 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
16107 (nios2_fpu_insn): Add entry for round.
16108 (N2FPU_NO_ERRNO_P): Define.
16109 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
16111 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
16113 2014-04-22 Richard Henderson <rth@redhat.com>
16115 * config/aarch64/aarch64 (addti3, subti3): New expanders.
16116 (add<GPI>3_compare0): Remove leading * from name.
16117 (add<GPI>3_carryin): Likewise.
16118 (sub<GPI>3_compare0): Likewise.
16119 (sub<GPI>3_carryin): Likewise.
16120 (<su_optab>mulditi3): New expander.
16121 (multi3): New expander.
16122 (madd<GPI>): Remove leading * from name.
16124 2014-04-22 Martin Jambor <mjambor@suse.cz>
16126 * cgraphclones.c (cgraph_function_versioning): Copy
16127 ipa_transforms_to_apply instead of asserting it is empty.
16129 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
16132 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
16133 on count_exp to get mode.
16135 2014-04-22 Andrew Pinski <apinski@cavium.com>
16137 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16138 Handle TLS for ILP32.
16139 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
16140 (tlsie_small_<mode>): this and handle PTR.
16141 (tlsie_small_sidi): New pattern.
16142 (tlsle_small): Change to an expand to handle ILP32.
16143 (tlsle_small_<mode>): New pattern.
16144 (tlsdesc_small): Rename to ...
16145 (tlsdesc_small_<mode>): this and handle PTR.
16147 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16149 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
16151 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
16153 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
16154 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
16155 (aarch64_types_signed_poly_qualifiers): Likewise.
16156 (aarch64_types_unsigned_signed_qualifiers): Likewise.
16157 (aarch64_types_poly_signed_qualifiers): Likewise.
16158 (TYPES_REINTERP_SS): Type macro added.
16159 (TYPES_REINTERP_SU): Likewise.
16160 (TYPES_REINTERP_SP): Likewise.
16161 (TYPES_REINTERP_US): Likewise.
16162 (TYPES_REINTERP_PS): Likewise.
16163 (aarch64_fold_builtin): New expression folding added.
16164 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
16165 Declarations removed.
16166 (REINTERP_SS): Declarations added.
16167 (REINTERP_US): Likewise.
16168 (REINTERP_PS): Likewise.
16169 (REINTERP_SU): Likewise.
16170 (REINTERP_SP): Likewise.
16171 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
16172 (vreinterpretq_p8_f64): Likewise.
16173 (vreinterpret_p16_f64): Likewise.
16174 (vreinterpretq_p16_f64): Likewise.
16175 (vreinterpret_f32_f64): Likewise.
16176 (vreinterpretq_f32_f64): Likewise.
16177 (vreinterpret_f64_f32): Likewise.
16178 (vreinterpret_f64_p8): Likewise.
16179 (vreinterpret_f64_p16): Likewise.
16180 (vreinterpret_f64_s8): Likewise.
16181 (vreinterpret_f64_s16): Likewise.
16182 (vreinterpret_f64_s32): Likewise.
16183 (vreinterpret_f64_s64): Likewise.
16184 (vreinterpret_f64_u8): Likewise.
16185 (vreinterpret_f64_u16): Likewise.
16186 (vreinterpret_f64_u32): Likewise.
16187 (vreinterpret_f64_u64): Likewise.
16188 (vreinterpretq_f64_f32): Likewise.
16189 (vreinterpretq_f64_p8): Likewise.
16190 (vreinterpretq_f64_p16): Likewise.
16191 (vreinterpretq_f64_s8): Likewise.
16192 (vreinterpretq_f64_s16): Likewise.
16193 (vreinterpretq_f64_s32): Likewise.
16194 (vreinterpretq_f64_s64): Likewise.
16195 (vreinterpretq_f64_u8): Likewise.
16196 (vreinterpretq_f64_u16): Likewise.
16197 (vreinterpretq_f64_u32): Likewise.
16198 (vreinterpretq_f64_u64): Likewise.
16199 (vreinterpret_s64_f64): Likewise.
16200 (vreinterpretq_s64_f64): Likewise.
16201 (vreinterpret_u64_f64): Likewise.
16202 (vreinterpretq_u64_f64): Likewise.
16203 (vreinterpret_s8_f64): Likewise.
16204 (vreinterpretq_s8_f64): Likewise.
16205 (vreinterpret_s16_f64): Likewise.
16206 (vreinterpretq_s16_f64): Likewise.
16207 (vreinterpret_s32_f64): Likewise.
16208 (vreinterpretq_s32_f64): Likewise.
16209 (vreinterpret_u8_f64): Likewise.
16210 (vreinterpretq_u8_f64): Likewise.
16211 (vreinterpret_u16_f64): Likewise.
16212 (vreinterpretq_u16_f64): Likewise.
16213 (vreinterpret_u32_f64): Likewise.
16214 (vreinterpretq_u32_f64): Likewise.
16216 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
16218 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
16219 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
16220 (vreinterpret_p8_s8): Likewise.
16221 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
16222 (vreinterpret_p8_s16): Likewise.
16223 (vreinterpret_p8_s32): Likewise.
16224 (vreinterpret_p8_s64): Likewise.
16225 (vreinterpret_p8_f32): Likewise.
16226 (vreinterpret_p8_u8): Likewise.
16227 (vreinterpret_p8_u16): Likewise.
16228 (vreinterpret_p8_u32): Likewise.
16229 (vreinterpret_p8_u64): Likewise.
16230 (vreinterpret_p8_p16): Likewise.
16231 (vreinterpretq_p8_s8): Likewise.
16232 (vreinterpretq_p8_s16): Likewise.
16233 (vreinterpretq_p8_s32): Likewise.
16234 (vreinterpretq_p8_s64): Likewise.
16235 (vreinterpretq_p8_f32): Likewise.
16236 (vreinterpretq_p8_u8): Likewise.
16237 (vreinterpretq_p8_u16): Likewise.
16238 (vreinterpretq_p8_u32): Likewise.
16239 (vreinterpretq_p8_u64): Likewise.
16240 (vreinterpretq_p8_p16): Likewise.
16241 (vreinterpret_p16_s8): Likewise.
16242 (vreinterpret_p16_s16): Likewise.
16243 (vreinterpret_p16_s32): Likewise.
16244 (vreinterpret_p16_s64): Likewise.
16245 (vreinterpret_p16_f32): Likewise.
16246 (vreinterpret_p16_u8): Likewise.
16247 (vreinterpret_p16_u16): Likewise.
16248 (vreinterpret_p16_u32): Likewise.
16249 (vreinterpret_p16_u64): Likewise.
16250 (vreinterpret_p16_p8): Likewise.
16251 (vreinterpretq_p16_s8): Likewise.
16252 (vreinterpretq_p16_s16): Likewise.
16253 (vreinterpretq_p16_s32): Likewise.
16254 (vreinterpretq_p16_s64): Likewise.
16255 (vreinterpretq_p16_f32): Likewise.
16256 (vreinterpretq_p16_u8): Likewise.
16257 (vreinterpretq_p16_u16): Likewise.
16258 (vreinterpretq_p16_u32): Likewise.
16259 (vreinterpretq_p16_u64): Likewise.
16260 (vreinterpretq_p16_p8): Likewise.
16261 (vreinterpret_f32_s8): Likewise.
16262 (vreinterpret_f32_s16): Likewise.
16263 (vreinterpret_f32_s32): Likewise.
16264 (vreinterpret_f32_s64): Likewise.
16265 (vreinterpret_f32_u8): Likewise.
16266 (vreinterpret_f32_u16): Likewise.
16267 (vreinterpret_f32_u32): Likewise.
16268 (vreinterpret_f32_u64): Likewise.
16269 (vreinterpret_f32_p8): Likewise.
16270 (vreinterpret_f32_p16): Likewise.
16271 (vreinterpretq_f32_s8): Likewise.
16272 (vreinterpretq_f32_s16): Likewise.
16273 (vreinterpretq_f32_s32): Likewise.
16274 (vreinterpretq_f32_s64): Likewise.
16275 (vreinterpretq_f32_u8): Likewise.
16276 (vreinterpretq_f32_u16): Likewise.
16277 (vreinterpretq_f32_u32): Likewise.
16278 (vreinterpretq_f32_u64): Likewise.
16279 (vreinterpretq_f32_p8): Likewise.
16280 (vreinterpretq_f32_p16): Likewise.
16281 (vreinterpret_s64_s8): Likewise.
16282 (vreinterpret_s64_s16): Likewise.
16283 (vreinterpret_s64_s32): Likewise.
16284 (vreinterpret_s64_f32): Likewise.
16285 (vreinterpret_s64_u8): Likewise.
16286 (vreinterpret_s64_u16): Likewise.
16287 (vreinterpret_s64_u32): Likewise.
16288 (vreinterpret_s64_u64): Likewise.
16289 (vreinterpret_s64_p8): Likewise.
16290 (vreinterpret_s64_p16): Likewise.
16291 (vreinterpretq_s64_s8): Likewise.
16292 (vreinterpretq_s64_s16): Likewise.
16293 (vreinterpretq_s64_s32): Likewise.
16294 (vreinterpretq_s64_f32): Likewise.
16295 (vreinterpretq_s64_u8): Likewise.
16296 (vreinterpretq_s64_u16): Likewise.
16297 (vreinterpretq_s64_u32): Likewise.
16298 (vreinterpretq_s64_u64): Likewise.
16299 (vreinterpretq_s64_p8): Likewise.
16300 (vreinterpretq_s64_p16): Likewise.
16301 (vreinterpret_u64_s8): Likewise.
16302 (vreinterpret_u64_s16): Likewise.
16303 (vreinterpret_u64_s32): Likewise.
16304 (vreinterpret_u64_s64): Likewise.
16305 (vreinterpret_u64_f32): Likewise.
16306 (vreinterpret_u64_u8): Likewise.
16307 (vreinterpret_u64_u16): Likewise.
16308 (vreinterpret_u64_u32): Likewise.
16309 (vreinterpret_u64_p8): Likewise.
16310 (vreinterpret_u64_p16): Likewise.
16311 (vreinterpretq_u64_s8): Likewise.
16312 (vreinterpretq_u64_s16): Likewise.
16313 (vreinterpretq_u64_s32): Likewise.
16314 (vreinterpretq_u64_s64): Likewise.
16315 (vreinterpretq_u64_f32): Likewise.
16316 (vreinterpretq_u64_u8): Likewise.
16317 (vreinterpretq_u64_u16): Likewise.
16318 (vreinterpretq_u64_u32): Likewise.
16319 (vreinterpretq_u64_p8): Likewise.
16320 (vreinterpretq_u64_p16): Likewise.
16321 (vreinterpret_s8_s16): Likewise.
16322 (vreinterpret_s8_s32): Likewise.
16323 (vreinterpret_s8_s64): Likewise.
16324 (vreinterpret_s8_f32): Likewise.
16325 (vreinterpret_s8_u8): Likewise.
16326 (vreinterpret_s8_u16): Likewise.
16327 (vreinterpret_s8_u32): Likewise.
16328 (vreinterpret_s8_u64): Likewise.
16329 (vreinterpret_s8_p8): Likewise.
16330 (vreinterpret_s8_p16): Likewise.
16331 (vreinterpretq_s8_s16): Likewise.
16332 (vreinterpretq_s8_s32): Likewise.
16333 (vreinterpretq_s8_s64): Likewise.
16334 (vreinterpretq_s8_f32): Likewise.
16335 (vreinterpretq_s8_u8): Likewise.
16336 (vreinterpretq_s8_u16): Likewise.
16337 (vreinterpretq_s8_u32): Likewise.
16338 (vreinterpretq_s8_u64): Likewise.
16339 (vreinterpretq_s8_p8): Likewise.
16340 (vreinterpretq_s8_p16): Likewise.
16341 (vreinterpret_s16_s8): Likewise.
16342 (vreinterpret_s16_s32): Likewise.
16343 (vreinterpret_s16_s64): Likewise.
16344 (vreinterpret_s16_f32): Likewise.
16345 (vreinterpret_s16_u8): Likewise.
16346 (vreinterpret_s16_u16): Likewise.
16347 (vreinterpret_s16_u32): Likewise.
16348 (vreinterpret_s16_u64): Likewise.
16349 (vreinterpret_s16_p8): Likewise.
16350 (vreinterpret_s16_p16): Likewise.
16351 (vreinterpretq_s16_s8): Likewise.
16352 (vreinterpretq_s16_s32): Likewise.
16353 (vreinterpretq_s16_s64): Likewise.
16354 (vreinterpretq_s16_f32): Likewise.
16355 (vreinterpretq_s16_u8): Likewise.
16356 (vreinterpretq_s16_u16): Likewise.
16357 (vreinterpretq_s16_u32): Likewise.
16358 (vreinterpretq_s16_u64): Likewise.
16359 (vreinterpretq_s16_p8): Likewise.
16360 (vreinterpretq_s16_p16): Likewise.
16361 (vreinterpret_s32_s8): Likewise.
16362 (vreinterpret_s32_s16): Likewise.
16363 (vreinterpret_s32_s64): Likewise.
16364 (vreinterpret_s32_f32): Likewise.
16365 (vreinterpret_s32_u8): Likewise.
16366 (vreinterpret_s32_u16): Likewise.
16367 (vreinterpret_s32_u32): Likewise.
16368 (vreinterpret_s32_u64): Likewise.
16369 (vreinterpret_s32_p8): Likewise.
16370 (vreinterpret_s32_p16): Likewise.
16371 (vreinterpretq_s32_s8): Likewise.
16372 (vreinterpretq_s32_s16): Likewise.
16373 (vreinterpretq_s32_s64): Likewise.
16374 (vreinterpretq_s32_f32): Likewise.
16375 (vreinterpretq_s32_u8): Likewise.
16376 (vreinterpretq_s32_u16): Likewise.
16377 (vreinterpretq_s32_u32): Likewise.
16378 (vreinterpretq_s32_u64): Likewise.
16379 (vreinterpretq_s32_p8): Likewise.
16380 (vreinterpretq_s32_p16): Likewise.
16381 (vreinterpret_u8_s8): Likewise.
16382 (vreinterpret_u8_s16): Likewise.
16383 (vreinterpret_u8_s32): Likewise.
16384 (vreinterpret_u8_s64): Likewise.
16385 (vreinterpret_u8_f32): Likewise.
16386 (vreinterpret_u8_u16): Likewise.
16387 (vreinterpret_u8_u32): Likewise.
16388 (vreinterpret_u8_u64): Likewise.
16389 (vreinterpret_u8_p8): Likewise.
16390 (vreinterpret_u8_p16): Likewise.
16391 (vreinterpretq_u8_s8): Likewise.
16392 (vreinterpretq_u8_s16): Likewise.
16393 (vreinterpretq_u8_s32): Likewise.
16394 (vreinterpretq_u8_s64): Likewise.
16395 (vreinterpretq_u8_f32): Likewise.
16396 (vreinterpretq_u8_u16): Likewise.
16397 (vreinterpretq_u8_u32): Likewise.
16398 (vreinterpretq_u8_u64): Likewise.
16399 (vreinterpretq_u8_p8): Likewise.
16400 (vreinterpretq_u8_p16): Likewise.
16401 (vreinterpret_u16_s8): Likewise.
16402 (vreinterpret_u16_s16): Likewise.
16403 (vreinterpret_u16_s32): Likewise.
16404 (vreinterpret_u16_s64): Likewise.
16405 (vreinterpret_u16_f32): Likewise.
16406 (vreinterpret_u16_u8): Likewise.
16407 (vreinterpret_u16_u32): Likewise.
16408 (vreinterpret_u16_u64): Likewise.
16409 (vreinterpret_u16_p8): Likewise.
16410 (vreinterpret_u16_p16): Likewise.
16411 (vreinterpretq_u16_s8): Likewise.
16412 (vreinterpretq_u16_s16): Likewise.
16413 (vreinterpretq_u16_s32): Likewise.
16414 (vreinterpretq_u16_s64): Likewise.
16415 (vreinterpretq_u16_f32): Likewise.
16416 (vreinterpretq_u16_u8): Likewise.
16417 (vreinterpretq_u16_u32): Likewise.
16418 (vreinterpretq_u16_u64): Likewise.
16419 (vreinterpretq_u16_p8): Likewise.
16420 (vreinterpretq_u16_p16): Likewise.
16421 (vreinterpret_u32_s8): Likewise.
16422 (vreinterpret_u32_s16): Likewise.
16423 (vreinterpret_u32_s32): Likewise.
16424 (vreinterpret_u32_s64): Likewise.
16425 (vreinterpret_u32_f32): Likewise.
16426 (vreinterpret_u32_u8): Likewise.
16427 (vreinterpret_u32_u16): Likewise.
16428 (vreinterpret_u32_u64): Likewise.
16429 (vreinterpret_u32_p8): Likewise.
16430 (vreinterpret_u32_p16): Likewise.
16431 (vreinterpretq_u32_s8): Likewise.
16432 (vreinterpretq_u32_s16): Likewise.
16433 (vreinterpretq_u32_s32): Likewise.
16434 (vreinterpretq_u32_s64): Likewise.
16435 (vreinterpretq_u32_f32): Likewise.
16436 (vreinterpretq_u32_u8): Likewise.
16437 (vreinterpretq_u32_u16): Likewise.
16438 (vreinterpretq_u32_u64): Likewise.
16439 (vreinterpretq_u32_p8): Likewise.
16440 (vreinterpretq_u32_p16): Likewise.
16442 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
16444 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
16446 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
16448 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
16449 (vqnegd_s64): Likewise.
16450 (vqabs_s64): Likewise.
16451 (vqabsd_s64): Likewise.
16453 2014-04-22 Richard Henderson <rth@redhat.com>
16455 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
16456 computation to the top of the loop.
16458 2014-04-22 Renlin <renlin.li@arm.com>
16459 Jiong Wang <jiong.wang@arm.com>
16461 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
16462 * config/aarch64/aarch64.c (aarch64_layout_frame)
16463 (aarch64_initial_elimination_offset): Likewise.
16465 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
16467 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
16470 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
16472 * machmode.h (bitwise_mode_for_mode): Declare.
16473 * stor-layout.h (bitwise_type_for_mode): Likewise.
16474 * stor-layout.c (bitwise_mode_for_mode): New function.
16475 (bitwise_type_for_mode): Likewise.
16476 * builtins.c (fold_builtin_memory_op): Use it instead of
16477 int_mode_for_mode and build_nonstandard_integer_type.
16479 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16481 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
16482 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
16483 (*-*-solaris2*): Simplify.
16484 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
16485 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
16486 *-*-solaris2.9* handling.
16488 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
16490 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
16491 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
16492 handling, simplify.
16493 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
16494 * configure: Regenerate.
16496 * config/i386/sol2-9.h: Remove.
16498 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
16499 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
16500 Remove Solaris 9 references.
16502 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
16504 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
16505 (floatuns<GPI:mode><GPF:mode>2): Remove.
16506 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
16507 and floatuns conversions.
16508 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
16509 and floatuns conversions.
16510 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
16511 (w1,w2): New mode attributes for inequal width conversions.
16513 2014-04-22 Renlin Li <Renlin.Li@arm.com>
16515 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
16516 the output asm format.
16518 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
16520 * config/aarch64/aarch64-simd.md
16521 (aarch64_cm<optab>di): Always split.
16522 (*aarch64_cm<optab>di): New.
16523 (aarch64_cmtstdi): Always split.
16524 (*aarch64_cmtstdi): New.
16526 2014-04-22 Jakub Jelinek <jakub@redhat.com>
16528 PR tree-optimization/60823
16529 * omp-low.c (ipa_simd_modify_function_body): Go through
16530 all SSA_NAMEs and for those refering to vector arguments
16531 which are going to be replaced adjust SSA_NAME_VAR and,
16532 if it is a default definition, change it into a non-default
16533 definition assigned at the beginning of function from new_decl.
16534 (ipa_simd_modify_stmt_ops): Rewritten.
16535 * tree-dfa.c (set_ssa_default_def): When removing default def,
16536 check for NULL loc instead of NULL *loc.
16538 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16540 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
16541 restrictions on core registers for DImode values in Thumb2.
16543 2014-04-22 Ian Bolton <ian.bolton@arm.com>
16545 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
16546 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
16548 2014-04-22 Ian Bolton <ian.bolton@arm.com>
16550 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
16551 (*iordi_notzesidi_di): Likewise.
16552 (*iordi_notsesidi_di): Likewise.
16554 2014-04-22 Ian Bolton <ian.bolton@arm.com>
16556 * config/arm/arm-protos.h (tune_params): New struct members.
16557 * config/arm/arm.c: Initialise tune_params per processor.
16558 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
16559 for speed, based on new tune_params.
16561 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
16563 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
16564 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
16565 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
16566 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
16567 * config/aarch64/arm_neon.h (vrnd_f64): Added.
16568 (vrnda_f64): Likewise.
16569 (vrndi_f64): Likewise.
16570 (vrndm_f64): Likewise.
16571 (vrndn_f64): Likewise.
16572 (vrndp_f64): Likewise.
16573 (vrndx_f64): Likewise.
16575 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16577 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
16578 GET_MODE_SIZE argument is enum machine_mode.
16580 2014-04-22 Jakub Jelinek <jakub@redhat.com>
16583 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
16584 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
16586 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
16588 PR middle-end/60281
16589 * asan.c (asan_emit_stack_protection): Force the base to align to
16590 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
16591 appropriate bits if STRICT_ALIGNMENT.
16592 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
16594 (expand_used_vars): Leave a space in the stack frame for alignment
16595 if STRICT_ALIGNMENT.
16597 2014-04-21 David Malcolm <dmalcolm@redhat.com>
16599 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
16601 (gimple_store_p): Likewise.
16602 (gimple_assign_load_p): Likewise.
16603 (gimple_assign_cast_p): Likewise.
16604 (gimple_clobber_p): Likewise.
16606 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
16607 rather than a gimple.
16608 (gimple_assign_cast_p): Likewise.
16610 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
16613 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
16614 If mode is DDmode and TARGET_E500_DOUBLE allow move.
16616 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
16617 more debug information for E500 if -mdebug=reg.
16619 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
16622 * config/i386/i386.c (ix86_expand_builtin)
16623 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
16624 register for target RTX.
16625 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
16627 2014-04-18 Cong Hou <congh@google.com>
16629 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
16630 the widen-mult pattern by handling two operands with different sizes,
16631 and operands whose size is smaller than half of the result type.
16633 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
16635 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
16636 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
16637 (do_estimate_edge_time): Compute it.
16638 * ipa-inline.c (want_inline_small_function_p): Bypass
16639 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
16641 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
16643 * ipa-inline.c (spec_rem): New static variable.
16644 (dump_overall_stats): New function.
16645 (dump_inline_stats): New function.
16647 2014-04-18 Richard Henderson <rth@redhat.com>
16649 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
16650 to GET_MODE_SIZE, not a reg_class_t.
16652 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16654 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
16655 (vsx_xxmrglw_<mode>): Likewise.
16657 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
16660 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
16661 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
16662 (rs6000_init_hard_regno_mode_ok): Likewise.
16664 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
16666 * ipa-inline.c (inline_small_functions): Account only non-cold
16668 * doc/invoke.texi (inline-unit-growth): Update documentation.
16670 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
16672 * config/rs6000/rs6000.md (addti3, subti3): New.
16674 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
16677 * config/i386/i386.c (ix86_expand_clear): Remove outdated
16678 comment. Check optimize_insn_for_size_p instead of
16679 optimize_insn_for_speed_p.
16681 2014-04-17 Martin Jambor <mjambor@suse.cz>
16683 * gimple-iterator.c (gsi_start_edge): New function.
16684 * gimple-iterator.h (gsi_start_edge): Declare.
16685 * tree-sra.c (single_non_eh_succ): New function.
16686 (disqualify_ops_if_throwing_stmt): Renamed to
16687 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
16688 having one non-EH successor BB.
16689 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
16690 generate loads into replacements.
16691 (sra_modify_assign): Likewise and and also use the simple path for
16693 (sra_modify_function_body): Commit statements on edges.
16695 2014-04-17 Richard Biener <rguenther@suse.de>
16697 PR middle-end/60849
16698 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
16699 comparison results and add clarifying comment.
16701 2014-04-17 Jakub Jelinek <jakub@redhat.com>
16703 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
16704 (blank_mode): Initialize it.
16705 (emit_mode_size_inline, emit_mode_nunits_inline,
16706 emit_mode_inner_inline): New functions.
16707 (emit_insn_modes_h): Call them and surround their output with
16708 #if GCC_VERSION >= 4001 ... #endif.
16709 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
16710 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
16711 mode_* arrays if the argument is __builtin_constant_p.
16712 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
16713 is enum machine_mode.
16715 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
16717 * passes.c (opt_pass::execute): Adjust.
16718 (pass_manager::execute_pass_mode_switching): Likewise.
16719 (early_local_passes::execute): Likewise.
16720 (execute_one_pass): Pass cfun to the pass's execute method.
16721 * tree-pass.h (opt_pass::execute): Add function * argument.
16722 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
16723 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
16724 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
16725 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
16726 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
16727 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
16728 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
16729 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
16730 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
16731 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
16732 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
16733 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
16734 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
16735 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
16736 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
16737 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
16738 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
16739 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
16740 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
16741 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16742 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
16743 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
16744 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
16745 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16746 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16747 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
16748 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
16749 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
16750 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
16753 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
16755 * passes.c (opt_pass::gate): Take function * argument.
16756 (gate_all_early_local_passes): Merge into
16757 (early_local_passes::gate): this.
16758 (gate_all_early_optimizations): Merge into
16759 (all_early_optimizations::gate): this.
16760 (gate_all_optimizations): Mege into
16761 (all_optimizations::gate): this.
16762 (gate_all_optimizations_g): Merge into
16763 (all_optimizations_g::gate): this.
16764 (gate_rest_of_compilation): Mege into
16765 (rest_of_compilation::gate): this.
16766 (gate_postreload): Merge into
16767 (postreload::gate): this.
16768 (dump_one_pass): Pass cfun to the pass's gate method.
16769 (execute_ipa_summary_passes): Likewise.
16770 (execute_one_pass): Likewise.
16771 (ipa_write_summaries_2): Likewise.
16772 (ipa_write_optimization_summaries_1): Likewise.
16773 (ipa_read_summaries_1): Likewise.
16774 (ipa_read_optimization_summaries_1): Likewise.
16775 (execute_ipa_stmt_fixups): Likewise.
16776 * tree-pass.h (opt_pass::gate): Add function * argument.
16777 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
16778 combine-stack-adj.c, combine.c, compare-elim.c,
16779 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
16780 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
16781 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
16782 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
16783 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
16784 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
16785 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
16786 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
16787 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
16788 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
16789 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
16790 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
16791 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
16792 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
16793 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
16794 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16795 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
16796 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
16797 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
16798 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16799 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16800 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
16801 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
16802 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
16803 var-tracking.c, vtable-verify.c, web.c: Adjust.
16805 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
16807 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
16808 * configure: Regenerate.
16810 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
16812 * passes.c (dump_one_pass): don't check pass->has_gate.
16813 (execute_ipa_summary_passes): Likewise.
16814 (execute_one_pass): Likewise.
16815 (ipa_write_summaries_2): Likewise.
16816 (ipa_write_optimization_summaries_1): Likewise.
16817 (ipa_read_optimization_summaries_1): Likewise.
16818 (execute_ipa_stmt_fixups): Likewise.
16819 * tree-pass.h (pass_data::has_gate): Remove.
16820 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
16821 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
16822 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
16823 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
16824 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
16825 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
16826 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
16827 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
16828 gimple-low.c, gimple-ssa-isolate-paths.c,
16829 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
16830 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
16831 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
16832 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
16833 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
16834 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
16835 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
16836 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
16837 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
16838 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
16839 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
16840 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
16841 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16842 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
16843 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
16844 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
16845 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16846 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16847 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
16848 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
16849 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
16850 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
16853 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
16855 * pass_manager.h (pass_manager::register_dump_files_1): Remove
16857 * passes.c (pass_manager::register_dump_files_1): Merge into
16858 (pass_manager::register_dump_files): this, and remove its handling of
16859 properties since the pass always has the properties anyway.
16860 (pass_manager::pass_manager): Adjust.
16862 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
16864 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
16865 * passes.c (pass_manager::register_dump_files_1): Remove dead code
16866 dealing with properties.
16867 (pass_manager::register_dump_files): Adjust.
16869 2014-03-20 Mark Wielaard <mjw@redhat.com>
16871 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
16872 then represent the bound as normal constant value.
16874 2014-04-17 Jakub Jelinek <jakub@redhat.com>
16877 Forward port from 4.8 branch
16878 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
16880 * config/i386/bmiintrin.h (_blsi_u32): New.
16881 (_blsi_u64): Ditto.
16882 (_blsr_u32): Ditto.
16883 (_blsr_u64): Ditto.
16884 (_blsmsk_u32): Ditto.
16885 (_blsmsk_u64): Ditto.
16886 (_tzcnt_u32): Ditto.
16887 (_tzcnt_u64): Ditto.
16889 2014-04-17 Kito Cheng <kito@0xlab.org>
16891 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
16893 2014-04-17 Richard Biener <rguenther@suse.de>
16895 PR middle-end/60849
16896 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
16897 boolean results for comparisons.
16899 2014-04-17 Richard Biener <rguenther@suse.de>
16901 PR tree-optimization/60836
16902 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
16903 initial PHI args to be gimple values.
16905 2014-04-17 Richard Biener <rguenther@suse.de>
16907 PR tree-optimization/60841
16908 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
16909 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
16910 of stmts to SLP build.
16911 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
16912 (vect_analyze_slp): Likewise.
16913 (vect_analyze_slp_instance): Likewise.
16914 (vect_build_slp_tree): Limit overall SLP tree growth.
16915 * tree-vectorizer.h (vect_analyze_data_refs,
16916 vect_analyze_slp): Adjust prototypes.
16918 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
16920 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
16923 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
16925 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
16926 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
16927 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
16928 for TARGET_SLOW_PSHUFB
16930 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
16932 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
16933 * config/i386/i386.c (intel_cost): Ditto.
16935 2014-04-17 Joey Ye <joey.ye@arm.com>
16937 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
16939 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
16941 * opts.c (common_handle_option): Disable -fipa-reference coorectly
16942 with -fuse-profile.
16944 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
16946 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
16947 (type_all_derivations_known_p): New predicate.
16948 (type_all_ctors_visible_p): New predicate.
16949 (type_possibly_instantiated_p): New predicate.
16950 (get_odr_type): Compute all_derivations_known.
16951 (dump_odr_type): Dump the flag.
16952 (maybe_record_type): Cleanup.
16953 (record_target_from_binfo): Add bases_to_consider array;
16954 record bases for types w/o instances and skip CXX destructor.
16955 (possible_polymorphic_call_targets_1): Add bases_to_consider
16956 and consider_construction parameters; check if type may have instance.
16957 (get_polymorphic_call_info): Set maybe_in_construction to true
16958 when we know nothing.
16959 (record_targets_from_bases): Skip CXX destructors; they are
16960 never called for types in construction.
16961 (possible_polymorphic_call_targets): Do not record target when
16962 type may not have instance.
16964 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
16967 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
16968 external aliases alive, too.
16970 2014-04-16 Andrew Pinski <apinski@cavium.com>
16972 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
16975 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
16977 * final.c (compute_alignments): Do not apply loop alignment to a block
16978 falling through to the exit.
16980 2014-04-16 Catherine Moore <clm@codesourcery.com>
16982 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
16983 Adjust constraints for microMIPS store patterns.
16985 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
16987 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
16989 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
16991 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
16992 (append_use): Run at -O0.
16993 (append_vdef): Likewise.
16994 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
16995 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
16997 2014-04-16 Jakub Jelinek <jakub@redhat.com>
16999 PR tree-optimization/60844
17000 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
17001 (propagate_op_to_single_use, remove_visited_stmt_chain,
17002 linearize_expr, repropagate_negates, reassociate_bb): Use it
17003 instead of gsi_remove.
17005 2014-04-16 Martin Jambor <mjambor@suse.cz>
17007 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
17008 ipa_transforms_to_apply.
17009 (cgraph_function_versioning): Assert that old_node has empty
17010 ipa_transforms_to_apply.
17011 * trans-mem.c (ipa_tm_create_version): Likewise.
17012 * tree-inline.c (tree_function_versioning): Do not duplicate
17013 ipa_transforms_to_apply.
17015 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17018 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
17020 Pass necessary as flags on 64-bit Solaris/x86.
17021 Use lowercase relocs for x86_64-*-*.
17022 * configure: Regenerate.
17024 2014-04-15 Jan Hubicka <jh@suse.cz>
17026 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
17027 (maybe_record_node, likely_target_p): Use it.
17029 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17032 Revert following patch
17034 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17037 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
17038 software floating point or no floating point registers, do not
17039 allow any type in the FPRs. Eliminate a test for SPE SIMD types
17040 in GPRs that occurs after we tested for GPRs that would never be
17043 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
17044 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
17045 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
17046 specifically allow DDmode, since that does not use the SPE SIMD
17049 2014-03-21 Mark Wielaard <mjw@redhat.com>
17051 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
17052 as unsigned or int depending on type and value used.
17054 2014-04-15 Richard Biener <rguenther@suse.de>
17056 PR rtl-optimization/56965
17057 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
17058 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
17060 * alias.c (true_dependence_1): Do not call
17061 nonoverlapping_component_refs_p.
17062 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
17063 nonoverlapping_component_refs_p.
17064 (indirect_refs_may_alias_p): Likewise.
17066 2014-04-15 Teresa Johnson <tejohnson@google.com>
17068 * cfg.c (dump_bb_info): Fix flags check.
17069 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
17071 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17073 PR rtl-optimization/60663
17074 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
17077 2014-04-15 Richard Biener <rguenther@suse.de>
17079 * lto-streamer.h (LTO_major_version): Bump to 4.
17081 2014-04-15 Richard Biener <rguenther@suse.de>
17083 * common.opt (lto_partition_model): New enum.
17084 (flto-partition=): Merge separate options with a single with argument,
17085 add -flto-partition=one support.
17086 * flag-types.h (enum lto_partition_model): Declare.
17087 * opts.c (finish_options): Remove duplicate -flto-partition=
17089 * lto-wrapper.c (run_gcc): Adjust.
17091 2014-04-15 Richard Biener <rguenther@suse.de>
17093 * alias.c (ncr_compar): New function.
17094 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
17096 2014-04-15 Richard Biener <rguenther@suse.de>
17098 * alias.c (record_component_aliases): Do not walk BINFOs.
17100 2014-04-15 Richard Biener <rguenther@suse.de>
17102 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17103 Add struct function argument and adjust.
17104 (find_func_aliases_for_call): Likewise.
17105 (find_func_aliases): Likewise.
17106 (find_func_clobbers): Likewise.
17107 (intra_create_variable_infos): Likewise.
17108 (compute_points_to_sets): Likewise.
17109 (ipa_pta_execute): Adjust. Do not push/pop cfun.
17111 2014-04-15 Richard Biener <rguenther@suse.de>
17113 * tree.c (iterative_hash_expr): Use enum tree_code_class
17114 to store TREE_CODE_CLASS.
17115 (tree_block): Likewise.
17116 (tree_set_block): Likewise.
17117 * tree.h (fold_build_pointer_plus_loc): Use
17118 convert_to_ptrofftype_loc.
17120 2014-04-15 Jakub Jelinek <jakub@redhat.com>
17123 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
17126 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
17128 * cfgloop.h (struct loop): Move force_vectorize down.
17129 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
17130 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
17131 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
17132 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
17133 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
17134 * tree-core.h (enum annot_expr_kind): Add new kind values.
17135 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
17136 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
17138 * tree.def (ANNOTATE_EXPR): Tweak comment.
17140 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
17142 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
17145 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
17147 * tree.h (TYPE_IDENTIFIER): Declare.
17148 * tree.c (subrange_type_for_debug_p): Use it.
17149 * godump.c (go_format_type): Likewise.
17150 * dwarf2out.c (is_cxx_auto, modified_type_die,
17151 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
17152 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
17154 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
17157 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
17159 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
17161 * config/i386/i386.c (examine_argument): Return bool. Return true if
17162 parameter should be passed in memory.
17163 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
17164 (construct_container): Update calls to examine_argument.
17165 (function_arg_advance_64): Ditto.
17166 (return_in_memory_32): Merge with ix86_return_in_memory.
17167 (return_in_memory_64): Ditto.
17168 (return_in_memory_ms_64): Ditto.
17170 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
17172 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
17173 * coverage.c (coverage_compute_profile_id): Handle externally visible
17176 2014-04-14 Martin Jambor <mjambor@suse.cz>
17178 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
17179 DECL_DISREGARD_INLINE_LIMITS functions.
17181 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
17184 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
17186 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
17189 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
17190 optimize_insn_for_speed_p instead of
17191 optimize_function_for_speed_p.
17193 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
17195 * doc/invoke.texi (free): Document AArch64.
17197 2014-04-14 Richard Biener <rguenther@suse.de>
17199 PR tree-optimization/60042
17200 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
17201 (insert_into_preds_of_block): Do not prevent PHI insertion
17202 for REFERENCE exprs here ...
17203 (eliminate_dom_walker::before_dom_children): ... but prevent
17204 their use here under similar conditions when applied to the
17205 IL after PRE optimizations.
17207 2014-04-14 Richard Biener <rguenther@suse.de>
17209 * passes.def: Move early points-to after early SRA.
17211 2014-04-14 Richard Biener <rguenther@suse.de>
17213 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
17214 check for which sign-changes we allow when forwarding
17215 a converted value into a switch.
17217 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
17219 * stor-layout.c (place_field): Finalize non-constant offset for the
17222 2014-04-14 Richard Biener <rguenther@suse.de>
17224 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
17226 (expand_switch_using_bit_tests_p): Likewise.
17227 (process_switch): Compute and pass on speed_p based on the
17229 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
17230 optimize_bb_for_speed_p.
17232 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
17234 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
17235 * function.h (struct function): Rename has_force_vect_loops into
17236 has_force_vectorize_loops.
17237 * lto-streamer-in.c (input_cfg): Adjust for renaming.
17238 (input_struct_function_base): Likewise.
17239 * lto-streamer-out.c (output_cfg): Likewise.
17240 (output_struct_function_base): Likewise.
17241 * omp-low.c (expand_omp_simd): Likewise.
17242 * tree-cfg.c (move_sese_region_to_fn): Likewise.
17243 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
17244 (version_loop_for_if_conversion): Likewise.
17245 (tree_if_conversion): Likewise.
17246 (main_tree_if_conversion): Likewise.
17247 (gate_tree_if_conversion): Likewise.
17248 * tree-inline.c (copy_loops): Likewise.
17249 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
17250 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
17251 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
17252 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
17253 * tree-vectorizer.c (vectorize_loops): Likewise.
17254 * tree-vectorizer.h (unlimited_cost_model): Likewise.
17256 2014-04-14 Richard Biener <rguenther@suse.de>
17259 * lto-streamer-out.c (wrap_refs): New function.
17260 (lto_output): Wrap symbol references in global initializes in
17261 type-preserving MEM_REFs.
17263 2014-04-14 Christian Bruel <christian.bruel@st.com>
17265 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
17267 2014-04-14 Christian Bruel <christian.bruel@st.com>
17269 * config/sh/sh.md (setmemqi): New expand pattern.
17270 * config/sh/sh.h (CLEAR_RATIO): Define.
17271 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
17272 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
17274 2014-04-14 Richard Biener <rguenther@suse.de>
17276 PR middle-end/55022
17277 * fold-const.c (negate_expr_p): Don't negate directional rounding
17279 (fold_negate_expr): Likewise.
17281 2014-04-14 Richard Biener <rguenther@suse.de>
17283 PR tree-optimization/59817
17284 PR tree-optimization/60453
17285 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
17286 recursion to catch all CHRECs in the scalar evolution and restrict
17287 the predicate for the remains appropriately.
17289 2014-04-12 Catherine Moore <clm@codesourcery.com>
17291 * config/mips/constraints.md: Add new register constraint "kb".
17292 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
17293 (*movhi_internal): Likewise.
17294 (*movqi_internal): Likewise.
17295 * config/mips/mips.h (M16_STORE_REGS): New register class.
17296 (REG_CLASS_NAMES): Add M16_STORE_REGS.
17297 (REG_CLASS_CONTENTS): Likewise.
17298 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
17300 2014-04-11 Tobias Burnus <burnus@net-b.de>
17303 * doc/invoke.texi (-Wformat-signedness): Document it.
17304 (Wformat=2): Mention that this enables -Wformat-signedness.
17306 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
17308 * common/config/epiphany/epiphany-common.c
17309 (epiphany_option_optimization_table): Enable section anchors by
17310 default at -O1 or higher.
17311 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
17312 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
17313 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
17314 carries no extra cost.
17315 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
17316 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
17317 * config/epiphany/predicates.md (memclob_operand): New predicate.
17318 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
17319 Use memclob_operand predicate and X constraint for operand 3.
17321 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
17323 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
17324 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
17327 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
17329 PR rtl-optimization/60651
17330 * mode-switching.c (optimize_mode_switching): Make sure to emit
17331 sets of a lower numbered entity before sets of a higher numbered
17332 entity to a mode of the same or lower priority.
17333 When creating a seginfo for a basic block that starts with a code
17334 label, move the insertion point past the code label.
17335 (new_seginfo): Document and enforce requirement that
17336 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
17337 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
17338 * doc/tm.texi: Regenerate.
17340 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
17343 * config/arc/arc.c (arc_save_restore): Fix assert typo.
17345 2013-04-11 Jakub Jelinek <jakub@redhat.com>
17347 * BASE-VER: Set to 4.10.0.
17349 2014-04-11 Tobias Burnus <burnus@net-b.de>
17352 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
17353 * doc/gcc.texi (Service): Update description in the @menu
17354 * doc/invoke.texi (Option Summary): Remove misplaced and
17357 2014-04-11 Steve Ellcey <sellcey@mips.com>
17358 Jakub Jelinek <jakub@redhat.com>
17360 PR middle-end/60556
17361 * expr.c (convert_move): Use emit_store_flag_force instead of
17362 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
17365 2014-04-11 Richard Biener <rguenther@suse.de>
17367 PR middle-end/60797
17368 * varasm.c (assemble_alias): Avoid endless error reporting
17369 recursion by setting TREE_ASM_WRITTEN.
17371 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17373 * config/s390/s390.md: Add a splitter for NOT rtx.
17375 2014-04-11 Jakub Jelinek <jakub@redhat.com>
17377 PR rtl-optimization/60663
17378 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
17380 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
17381 Jakub Jelinek <jakub@redhat.com>
17384 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
17385 flag from decl_node to node.
17387 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17390 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
17391 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
17392 ameliorating the cases where it can be.
17394 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
17397 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
17399 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
17400 (loadsync_<mode>): Change mode.
17401 (load_quadpti, store_quadpti): New.
17402 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
17403 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
17404 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
17406 2014-04-09 Cong Hou <congh@google.com>
17409 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
17412 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17414 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
17415 instead of vnor to exploit possible fusion opportunity in the
17417 (altivec_expand_vec_perm_const_le): Likewise.
17419 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
17421 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
17422 (loadsync_<mode>): Change mode.
17423 (load_quadpti, store_quadpti): New.
17424 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
17425 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
17427 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
17430 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
17431 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
17432 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
17434 2014-04-08 Richard Biener <rguenther@suse.de>
17436 PR middle-end/60706
17437 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
17438 a 64bit widest int print double-int similar to on HWI64 hosts.
17440 2014-04-08 Richard Biener <rguenther@suse.de>
17442 PR tree-optimization/60785
17443 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
17444 default defs properly.
17446 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
17448 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
17449 (Weffc++): Likewise.
17451 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
17453 * ipa-devirt.c (maybe_record_node): When node is not recorded,
17454 set completep to false rather than true.
17456 2014-04-07 Douglas B Rupp <rupp@adacore.com>
17459 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
17460 ARM_TARGET2_DWARF_FORMAT.
17462 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
17465 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
17466 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
17469 2014-04-07 Richard Biener <rguenther@suse.de>
17471 PR tree-optimization/60766
17472 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
17473 (may_eliminate_iv): Convert cand_value_at result to desired type.
17475 2014-04-07 Jason Merrill <jason@redhat.com>
17478 * common.opt (-fno-gnu-unique): Add.
17479 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
17481 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17483 * haifa-sched.c: Fix outdated function reference and minor
17484 grammar errors in introductory comment.
17486 2014-04-07 Richard Biener <rguenther@suse.de>
17488 PR middle-end/60750
17489 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
17490 for noreturn calls.
17491 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
17493 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
17496 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
17497 size accounting for thunks.
17498 (pa_asm_output_mi_thunk): Use final_start_function() and
17499 final_end_function() to output function start and end directives.
17501 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
17503 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
17504 device specific ISA/ feature information. Remove short_sp and
17505 errata_skip ds. Add avr_device_specific_features enum to have device
17507 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
17508 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
17509 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
17510 updated device specific info.
17511 * config/avr/avr-mcus.def: Merge device specific details to
17512 dev_attribute field.
17513 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
17515 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
17516 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
17517 assembler if RMW isa supported by current device.
17518 * config/avr/genmultilib.awk: Update as device info structure changed.
17519 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
17521 2014-04-04 Cong Hou <congh@google.com>
17523 PR tree-optimization/60656
17524 * tree-vect-stmts.c (supportable_widening_operation):
17525 Fix a bug that elements in a vector with vect_used_by_reduction
17526 property are incorrectly reordered when the operation on it is not
17527 consistant with the one in reduction operation.
17529 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
17531 PR rtl-optimization/60155
17532 * gcse.c (record_set_data): New function.
17533 (single_set_gcse): New function.
17534 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
17535 (hoist_code): Likewise.
17536 (get_pressure_class_and_nregs): Likewise.
17538 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
17540 * explow.c (probe_stack_range): Emit a final optimization blockage.
17542 2014-04-04 Anthony Green <green@moxielogic.com>
17544 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
17547 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
17550 * lto-cgraph.c (input_overwrite_node): Check that partitioning
17551 flags are set only during streaming.
17552 * ipa.c (process_references, walk_polymorphic_call_targets,
17553 symtab_remove_unreachable_nodes): Drop bodies of always inline
17554 after early inlining.
17555 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
17557 2014-04-04 Jakub Jelinek <jakub@redhat.com>
17558 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17561 * dwarf2out.c (const_ok_for_output_1): Reject expressions
17564 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17567 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
17569 (cortex_a53_fdivd): Likewise.
17571 2014-04-04 Martin Jambor <mjambor@suse.cz>
17574 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
17575 Adjust all callers.
17576 * cgraph.c (clone_of_p): Also return true if thunks match.
17577 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
17578 cgraph_function_or_thunk_node and an obsolete comment.
17579 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
17581 (build_function_decl_skip_args): Likewise.
17582 (set_new_clone_decl_and_node_flags): New function.
17583 (duplicate_thunk_for_node): Likewise.
17584 (redirect_edge_duplicating_thunks): Likewise.
17585 (cgraph_clone_node): New parameter args_to_skip, pass it to
17586 redirect_edge_duplicating_thunks which is called instead of
17587 cgraph_redirect_edge_callee.
17588 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
17589 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
17591 2014-04-04 Jeff Law <law@redhat.com>
17594 * config/arm/predicates.md (const_int_I_operand): New predicate.
17595 (const_int_M_operand): Similarly.
17596 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
17598 (insv_t2, extv_reg, extzv_t2): Likewise.
17599 (load_multiple_with_writeback): Similarly for const_int_I_operand.
17600 (pop_multiple_with_writeback_and_return): Likewise.
17601 (vfp_pop_multiple_with_writeback): Likewise
17603 2014-04-04 Richard Biener <rguenther@suse.de>
17606 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
17607 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
17609 * gimplify.h (gimple_add_tmp_var_fn): Declare.
17610 * gimplify.c (gimple_add_tmp_var_fn): New function.
17611 * gimple-expr.h (create_tmp_reg_fn): Declare.
17612 * gimple-expr.c (create_tmp_reg_fn): New function.
17613 * gimple-low.c (record_vars_into): Don't change cfun.
17614 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
17615 code generation without cfun.
17617 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
17620 * Makefile.in (install-driver): Fix shell scripting.
17622 2014-04-03 Cong Hou <congh@google.com>
17624 PR tree-optimization/60505
17625 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
17626 threshold of number of iterations below which no vectorization
17628 * tree-vect-loop.c (new_loop_vec_info):
17629 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
17630 * tree-vect-loop.c (vect_analyze_loop_operations):
17631 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
17632 * tree-vect-loop.c (vect_transform_loop):
17633 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
17634 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
17635 of iterations of the loop and see if we should build the epilogue.
17637 2014-04-03 Richard Biener <rguenther@suse.de>
17639 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
17640 (streamer_tree_cache_create): Adjust.
17641 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
17642 to allow optional nodes array.
17643 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
17644 (streamer_tree_cache_append): Likewise.
17645 (streamer_tree_cache_create): Create nodes array optionally
17646 as specified by parameter.
17647 * lto-streamer-out.c (create_output_block): Avoid maintaining
17648 the node array in the writer cache.
17649 (DFS_write_tree): Remove assertion.
17650 (produce_asm_for_decls): Free the out decl state hash table early.
17651 * lto-streamer-in.c (lto_data_in_create): Adjust for
17652 streamer_tree_cache_create prototype change.
17654 2014-04-03 Richard Biener <rguenther@suse.de>
17656 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
17657 set TREE_CHAIN to NULL_TREE.
17659 2014-04-03 Richard Biener <rguenther@suse.de>
17661 PR tree-optimization/60740
17662 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
17663 over all GIMPLE_COND operands.
17665 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
17667 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
17668 (Weffc++): Remove Scott's numbering, merge lists and reference
17671 2014-04-03 Nick Clifton <nickc@redhat.com>
17673 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
17676 2014-04-03 Martin Jambor <mjambor@suse.cz>
17678 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
17679 mention gcc_unreachable before failing.
17680 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
17683 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
17686 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
17687 inconsistent code and instead mark the context inconsistent.
17688 (possible_polymorphic_call_targets): For inconsistent contexts
17689 return empty complete list.
17691 2014-04-02 Anthony Green <green@moxielogic.com>
17693 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
17694 (extendqisi2, extendhisi2): Define.
17695 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
17696 (WCHAR_TYPE): Change to unsigned int.
17698 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17700 PR tree-optimization/60733
17701 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
17702 insertion point for PHI candidates to be the end of the feeding
17703 block for the PHI argument.
17705 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
17707 PR rtl-optimization/60650
17708 * lra-constraints.c (process_alt_operands): Decrease reject for
17709 earlyclobber matching.
17711 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17713 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
17715 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17717 * config/spu/spu.c (pad_bb): Do not crash when the last
17718 insn is CODE_FOR_blockage.
17720 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17722 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
17723 lies outside the target mode.
17725 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17728 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
17729 software floating point or no floating point registers, do not
17730 allow any type in the FPRs. Eliminate a test for SPE SIMD types
17731 in GPRs that occurs after we tested for GPRs that would never be
17734 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
17735 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
17736 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
17737 specifically allow DDmode, since that does not use the SPE SIMD
17740 2014-04-02 Richard Biener <rguenther@suse.de>
17742 PR middle-end/60729
17743 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
17744 MODE_INTs. Properly use negv_optab.
17745 (expand_abs): Likewise.
17747 2014-04-02 Richard Biener <rguenther@suse.de>
17750 * Makefile.in (install-driver): Guard extra installs with special
17753 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
17755 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17756 Document vec_vgbbd.
17758 2014-04-01 Richard Henderson <rth@redhat.com>
17761 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
17762 alternative enabled before register allocation.
17764 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
17766 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
17767 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
17769 (nios2_large_got_address): Remove unneeded 'sym' parameter.
17770 (nios2_got_address): Update nios2_large_got_address call site.
17771 (nios2_delegitimize_address): New function.
17772 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
17773 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
17774 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
17776 2014-04-01 Martin Husemann <martin@duskware.de>
17778 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
17781 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
17783 PR rtl-optimization/60604
17784 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
17785 check from register_operand.
17786 (register_operand): Redefine in terms of general_operand.
17787 (nonmemory_operand): Use register_operand for the non-constant cases.
17789 2014-04-01 Richard Biener <rguenther@suse.de>
17791 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
17793 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
17795 * doc/invoke.texi (mapp-regs): Clarify.
17797 2014-03-31 Ulrich Drepper <drepper@gmail.com>
17799 * config/i386/avx512fintrin.h (__v32hi): Define type.
17800 (__v64qi): Likewise.
17801 (_mm512_set1_epi8): Define.
17802 (_mm512_set1_epi16): Define.
17803 (_mm512_set4_epi32): Define.
17804 (_mm512_set4_epi64): Define.
17805 (_mm512_set4_pd): Define.
17806 (_mm512_set4_ps): Define.
17807 (_mm512_setr4_epi64): Define.
17808 (_mm512_setr4_epi32): Define.
17809 (_mm512_setr4_pd): Define.
17810 (_mm512_setr4_ps): Define.
17811 (_mm512_setzero_epi32): Define.
17813 2014-03-31 Martin Jambor <mjambor@suse.cz>
17815 PR middle-end/60647
17816 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
17817 callsite_arguments_match_p. Updated all callers. Also check types of
17818 corresponding formal parameters and actual arguments.
17819 (not_all_callers_have_enough_arguments_p) Renamed to
17820 some_callers_have_mismatched_arguments_p.
17822 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
17824 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
17826 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
17829 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
17832 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
17834 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
17835 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
17837 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
17838 Use FMAMODE_NOVF512 mode iterator.
17839 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
17840 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
17841 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
17842 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
17844 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
17845 Use VF_128_256 mode iterator.
17846 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
17849 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
17851 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
17852 static chain if needed.
17854 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
17857 * lra-constraints.c (index_part_to_reg): New.
17858 (process_address): Use it.
17860 2014-03-27 Jeff Law <law@redhat.com>
17861 Jakub Jelinek <jakub@redhat.com>
17864 * expr.c (do_tablejump): Use simplify_gen_binary rather than
17865 gen_rtx_{PLUS,MULT} to build up the address expression.
17867 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
17868 creating non-canonical RTL.
17870 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
17873 * ipa-inline.c (want_inline_small_function_p): Short circuit large
17874 functions; reorganize to make cheap checks first.
17875 (inline_small_functions): Do not estimate growth when dumping;
17877 * ipa-inline.h (inline_summary): Add min_size.
17878 (growth_likely_positive): New function.
17879 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
17880 (set_cond_stmt_execution_predicate): Cleanup.
17881 (estimate_edge_size_and_time): Compute min_size.
17882 (estimate_calls_size_and_time): Likewise.
17883 (estimate_node_size_and_time): Likewise.
17884 (inline_update_overall_summary): Update min_size.
17885 (do_estimate_edge_time): Likewise.
17886 (do_estimate_edge_size): Update.
17887 (do_estimate_edge_hints): Update.
17888 (growth_likely_positive): New function.
17890 2014-03-28 Jakub Jelinek <jakub@redhat.com>
17893 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
17894 also if addr has VOIDmode.
17896 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17898 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
17899 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
17901 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
17902 instructions as well as AdvancedSIMD loads.
17904 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17906 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
17907 Use crypto_aese type.
17908 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
17909 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
17910 crypto_aese, crypto_aesmc. Move to types.md.
17911 * config/arm/types.md (crypto_aes): Split into crypto_aese,
17913 * config/arm/iterators.md (crypto_type): Likewise.
17915 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
17917 * cgraph.c: Include expr.h and tree-dfa.h.
17918 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
17921 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
17924 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
17925 regs from checking multi-reg pseudos.
17927 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17929 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
17931 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17933 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
17934 if it would clobber the stack pointer, even temporarily.
17936 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
17938 * mode-switching.c: Make small adjustments to the top comment.
17940 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
17942 * config/rs6000/constraints.md (wD constraint): New constraint to
17943 match the constant integer to get the top DImode/DFmode out of a
17944 vector in a VSX register.
17946 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
17947 match the constant integer to get the top DImode/DFmode out of a
17948 vector in a VSX register.
17950 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
17953 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17956 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
17957 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
17959 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
17960 Optimize vec_extract of 64-bit values, where the value being
17961 extracted is in the top word, where we can use scalar
17962 instructions. Add direct move and store support. Combine the big
17963 endian/little endian vector select load support into a single insn.
17964 (vsx_extract_<mode>_internal1): Likewise.
17965 (vsx_extract_<mode>_internal2): Likewise.
17966 (vsx_extract_<mode>_load): Likewise.
17967 (vsx_extract_<mode>_store): Likewise.
17968 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
17969 combined into vsx_extract_<mode>_load.
17970 (vsx_extract_<mode>_one_le): Likewise.
17972 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
17973 define the top 64-bit vector element.
17975 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
17978 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17979 Document vec_vbpermq builtin.
17982 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
17983 enable use of xxsldwi and xxpermdi builtin functions.
17984 (vec_xxpermdi): Likewise.
17986 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17987 Document use of vec_xxsldwi and vec_xxpermdi builtins.
17989 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
17991 PR rtl-optimization/60650
17992 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
17994 (find_spills_for): New.
17995 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
17996 Spill all pseudos on the second iteration.
17998 2014-03-27 Marek Polacek <polacek@redhat.com>
18001 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
18004 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18006 * config/s390/s390.c (s390_can_use_return_insn): Check for
18007 call-saved FPRs on 31 bit.
18009 2014-03-27 Jakub Jelinek <jakub@redhat.com>
18011 PR middle-end/60682
18012 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
18013 if they need regimplification, just drop them instead of
18014 calling gimple_regimplify_operands on them.
18016 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
18019 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
18020 (aarch64_frame_pointer_required): Adjust logic.
18021 (aarch64_can_eliminate): Adjust logic.
18022 (aarch64_override_options_after_change): Adjust logic.
18024 2014-03-27 Dehao Chen <dehao@google.com>
18026 * ipa-inline.c (early_inliner): Update node's inline info.
18028 2014-03-26 Dehao Chen <dehao@google.com>
18030 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
18031 compiler inserted conditional jumps for NAN float check.
18033 2014-03-26 Jakub Jelinek <jakub@redhat.com>
18035 * ubsan.h (ubsan_create_data): Change second argument's type
18036 to const location_t *.
18037 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
18039 (ubsan_create_data): Change second argument to const location_t *PLOC.
18040 Create Loc field whenever PLOC is non-NULL.
18041 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
18042 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
18046 * real.c (real_to_integer2): Change type of low to UHWI.
18048 2014-03-26 Tobias Burnus <burnus@net-b.de>
18050 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
18051 (CILK_SELF_SPECS): New define.
18052 (driver_self_specs): Use it.
18054 2014-03-26 Richard Biener <rguenther@suse.de>
18056 * tree-pretty-print.c (percent_K_format): Implement special
18057 case for LTO and its stripped down BLOCK tree.
18059 2014-03-26 Jakub Jelinek <jakub@redhat.com>
18062 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
18064 * tree-vrp.c (simplify_internal_call_using_ranges): If only
18065 one range is range_int_cst_p, but not both, at least optimize
18066 addition/subtraction of 0 and multiplication by 0 or 1.
18067 * gimple-fold.c (gimple_fold_call): Fold
18068 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
18069 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
18070 INTEGER_CSTs, try to fold at least x * 0 and y - y.
18072 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
18074 PR rtl-optimization/60452
18075 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
18076 <case REG>: Return 1 for invalid offsets from the frame pointer.
18078 2014-03-26 Marek Polacek <polacek@redhat.com>
18081 * doc/extend.texi (C Extensions): Mention variable-length arrays in
18084 2014-03-26 Marek Polacek <polacek@redhat.com>
18087 * doc/extend.texi (Designated Inits): Describe what happens to omitted
18090 2014-03-26 Marek Polacek <polacek@redhat.com>
18093 * ira-color.c (update_conflict_hard_regno_costs): Perform the
18094 multiplication in unsigned type.
18096 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
18098 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
18100 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
18102 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
18104 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
18107 * cif-code.def (UNREACHABLE) New code.
18108 * ipa-inline.c (inline_small_functions): Skip edges to
18109 __builtlin_unreachable.
18110 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
18111 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
18112 predicate to __bulitin_unreachable.
18113 (set_cond_stmt_execution_predicate): Fix issue when
18114 invert_tree_comparison returns ERROR_MARK.
18115 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
18116 propagate to inline clones.
18117 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
18119 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
18120 * cgraphclones.c (cgraph_clone_node): If call destination is already
18121 ureachable, do not redirect it back.
18122 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
18125 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
18127 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
18128 Do not modify inline clones.
18130 2014-03-25 Jakub Jelinek <jakub@redhat.com>
18132 * config/i386/i386.md (general_sext_operand): New mode attr.
18133 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
18134 don't generate (sign_extend (const_int)).
18135 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
18136 operands[2]. Use We constraint instead of <i> and
18137 <general_sext_operand> predicate instead of <general_operand>.
18138 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
18139 * config/i386/constraints.md (We): New constraint.
18140 * config/i386/predicates.md (x86_64_sext_operand,
18141 sext_operand): New predicates.
18143 2014-03-25 Martin Jambor <mjambor@suse.cz>
18146 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
18147 inconsistent devirtualizations to __builtin_unreachable.
18149 2014-03-25 Marek Polacek <polacek@redhat.com>
18152 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
18154 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
18156 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
18157 order of elements for big-endian.
18159 2014-03-25 Richard Biener <rguenther@suse.de>
18161 PR middle-end/60635
18162 * gimplify-me.c (gimple_regimplify_operands): Update the
18165 2014-03-25 Martin Jambor <mjambor@suse.cz>
18168 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
18169 (lto_output_varpool_node): Likewise.
18170 (input_overwrite_node): Likewise.
18171 (input_varpool_node): Likewise.
18173 2014-03-25 Richard Biener <rguenther@suse.de>
18175 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
18176 (run_gcc): Likewise.
18178 2014-03-25 Jakub Jelinek <jakub@redhat.com>
18180 * combine.c (simplify_compare_const): Add MODE argument.
18181 Handle mode_width 0 as very large mode_width.
18182 (try_combine, simplify_comparison): Adjust callers.
18184 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
18185 type to avoid signed integer overflow.
18186 * explow.c (plus_constant): Likewise.
18188 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
18190 * doc/generic.texi: Correct typos.
18192 2014-03-24 Tobias Burnus <burnus@net-b.de>
18194 * doc/invoke.texi (-flto): Expand section about
18195 using static libraries with LTO.
18197 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18199 PR rtl-optimization/60501
18200 * optabs.def (addptr3_optab): New optab.
18201 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
18202 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
18203 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
18205 * lra.c (emit_add3_insn): Use the addptr pattern if available.
18207 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
18209 2014-03-24 Ulrich Drepper <drepper@gmail.com>
18211 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
18214 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
18215 (_mm256_undefined_ps): Define.
18216 (_mm256_undefined_pd): Define.
18217 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
18218 (_mm_undefined_pd): Define.
18219 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
18220 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
18221 (_mm512_undefined_ps): Define.
18222 (_mm512_undefined_pd): Define.
18223 Use _mm*_undefined_*.
18224 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
18226 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
18228 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
18229 (lshr_simd): DI mode added.
18230 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
18231 (aarch64_ushr_simddi): Likewise.
18232 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
18233 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
18234 (vshrd_n_u64): Likewise.
18236 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18238 * Makefile.in (s-macro_list): Depend on cc1.
18240 2014-03-23 Teresa Johnson <tejohnson@google.com>
18242 * ipa-utils.c (ipa_print_order): Use specified dump file.
18244 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
18246 PR rtl-optimization/60601
18247 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
18249 * gcc.c (eval_spec_function): Initialize save_growing_value.
18251 2014-03-22 Jakub Jelinek <jakub@redhat.com>
18254 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
18255 code == MINUS_EXPR, never swap op0 with op1.
18257 * toplev.c (init_local_tick): Avoid signed integer multiplication
18259 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
18260 shift by first operand's bitsize.
18262 2014-03-21 Jakub Jelinek <jakub@redhat.com>
18265 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
18266 redefine to 1 or 0.
18267 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
18268 TARGET_ISA_64BIT_P(x).
18270 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18272 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
18273 pattern for vector nor instead of subtract from splat(-1).
18274 (altivec_expand_vec_perm_const_le): Likewise.
18276 2014-03-21 Richard Henderson <rth@twiddle.net>
18279 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
18280 related insns after epilogue_completed.
18282 2014-03-21 Martin Jambor <mjambor@suse.cz>
18285 * cgraph.h (symtab_node): New flag body_removed.
18286 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
18287 when removing bodies.
18288 * symtab.c (dump_symtab_base): Dump body_removed flag.
18289 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
18290 had their bodies removed.
18292 2014-03-21 Martin Jambor <mjambor@suse.cz>
18295 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
18298 2014-03-21 Richard Biener <rguenther@suse.de>
18300 PR tree-optimization/60577
18301 * tree-core.h (struct tree_base): Document nothrow_flag use
18302 in DECL_NONALIASED.
18303 * tree.h (DECL_NONALIASED): New.
18304 (may_be_aliased): Adjust.
18305 * coverage.c (build_var): Set DECL_NONALIASED.
18307 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
18309 * expr.c (expand_expr_real_1): Remove outdated comment.
18311 2014-03-20 Jakub Jelinek <jakub@redhat.com>
18313 PR middle-end/60597
18314 * ira.c (adjust_cleared_regs): Call copy_rtx on
18315 *reg_equiv[REGNO (loc)].src_p before passing it to
18316 simplify_replace_fn_rtx.
18319 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
18320 into CONST, put pic register as first operand of PLUS. Use
18321 gen_const_mem for both 32-bit and 64-bit PIC got loads.
18323 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18325 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
18327 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
18329 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
18330 around for store forwarding issue in the FPU on the UT699.
18331 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
18332 loads and operations if -mfix-ut699 is specified.
18333 (divtf3_hq): Tweak attribute.
18334 (sqrttf2_hq): Likewise.
18336 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
18338 * calls.c (store_one_arg): Remove incorrect const qualification on the
18339 type of the temporary.
18340 * cfgexpand.c (expand_return): Likewise.
18341 * expr.c (expand_constructor): Likewise.
18342 (expand_expr_real_1): Likewise.
18344 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18346 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
18349 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
18352 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
18354 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
18356 * config/arm/aarch-common-protos.h
18357 (alu_cost_table): Fix spelling of "extend".
18358 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
18360 2014-03-19 Richard Biener <rguenther@suse.de>
18362 PR middle-end/60553
18363 * tree-core.h (tree_type_common): Re-order pointer members
18364 to reduce recursion depth during GC walks.
18366 2014-03-19 Marek Polacek <polacek@redhat.com>
18369 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
18370 before accessing it.
18372 2014-03-19 Richard Biener <rguenther@suse.de>
18375 * lto-streamer-in.c (input_function): In WPA stage do not drop
18378 2014-03-19 Jakub Jelinek <jakub@redhat.com>
18380 PR tree-optimization/60559
18381 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
18382 with build_zero_cst assignment.
18384 2014-03-18 Kai Tietz <ktietz@redhat.com>
18386 PR rtl-optimization/56356
18387 * sdbout.c (sdbout_parms): Verify that parms'
18388 incoming argument is valid.
18389 (sdbout_reg_parms): Likewise.
18391 2014-03-18 Richard Henderson <rth@redhat.com>
18394 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
18395 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
18396 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
18398 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
18400 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
18401 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
18402 Italicize plugin event names in description. Explain that
18403 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
18404 Remind that no GCC functions should be called after PLUGIN_FINISH.
18405 Explain what pragmas with expansion are.
18407 2014-03-18 Martin Liska <mliska@suse.cz>
18409 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
18410 gimple call statement is update.
18411 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
18412 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
18414 2014-03-18 Jakub Jelinek <jakub@redhat.com>
18417 * ubsan.c (ubsan_instrument_unreachable): Call
18418 initialize_sanitizer_builtins.
18419 (ubsan_pass): Likewise.
18422 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
18423 varpool_finalize_decl instead of rest_of_decl_compilation.
18425 2014-03-18 Richard Biener <rguenther@suse.de>
18427 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
18428 by using bitmap_and_compl instead of bitmap_and_compl_into.
18429 (df_rd_transfer_function): Likewise.
18431 2014-03-18 Richard Biener <rguenther@suse.de>
18433 * doc/lto.texi (fresolution): Fix typo.
18435 2014-03-18 Richard Biener <rguenther@suse.de>
18437 * doc/invoke.texi (flto): Update for changes in 4.9.
18439 2014-03-18 Richard Biener <rguenther@suse.de>
18441 * doc/loop.texi: Remove section on the removed lambda framework.
18442 Update loop docs with recent changes in preserving loop structure.
18444 2014-03-18 Richard Biener <rguenther@suse.de>
18446 * doc/lto.texi (-fresolution): Document.
18448 2014-03-18 Richard Biener <rguenther@suse.de>
18450 * doc/contrib.texi: Adjust my name.
18452 2014-03-18 Jakub Jelinek <jakub@redhat.com>
18455 * internal-fn.c: Include diagnostic-core.h.
18456 (expand_BUILTIN_EXPECT): New function.
18457 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
18458 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
18459 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
18460 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
18461 IFN_BUILTIN_EXPECT.
18462 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
18463 Revert 3 argument __builtin_expect code.
18464 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
18465 * gimple-fold.c (gimple_fold_call): Likewise.
18466 * tree.h (fold_builtin_expect): New prototype.
18467 * builtins.c (build_builtin_expect_predicate): Add predictor
18468 argument, if non-NULL, create 3 argument __builtin_expect.
18469 (fold_builtin_expect): No longer static. Add ARG2 argument,
18470 pass it through to build_builtin_expect_predicate.
18471 (fold_builtin_2): Adjust caller.
18472 (fold_builtin_3): Handle BUILT_IN_EXPECT.
18473 * internal-fn.def (BUILTIN_EXPECT): New.
18475 2014-03-18 Tobias Burnus <burnus@net-b.de>
18478 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
18479 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
18480 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
18482 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
18485 * predict.c (combine_predictions_for_bb): Fix up formatting.
18486 (expr_expected_value_1, expr_expected_value): Add predictor argument,
18487 fill what it points to if non-NULL.
18488 (tree_predict_by_opcode): Adjust caller, use the predictor.
18489 * predict.def (PRED_COMPARE_AND_SWAP): Add.
18491 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
18493 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
18494 proper constant for the store mode.
18496 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
18498 * symtab.c (change_decl_assembler_name): Fix transparent alias
18499 chain construction.
18501 2014-03-16 Renlin Li <Renlin.Li@arm.com>
18503 * config/aarch64/aarch64.c: Correct the comments about the
18504 aarch64 stack layout.
18506 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
18508 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
18509 check for GF_OMP_FOR_KIND_FOR.
18511 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
18513 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
18514 ymm and zmm register names.
18516 2014-03-17 Jakub Jelinek <jakub@redhat.com>
18519 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
18520 note creation for the 2010-08-31 changes.
18522 2014-03-17 Marek Polacek <polacek@redhat.com>
18524 PR middle-end/60534
18525 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
18526 as -fno-tree-loop-vectorize.
18527 (expand_omp_simd): Likewise.
18529 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
18531 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
18532 (eligible_for_call_delay): New prototype.
18533 * config/sparc/sparc.c (tls_call_delay): Rename into...
18534 (eligible_for_call_delay): ...this. Return false if the instruction
18535 cannot be put in the delay slot of a branch.
18536 (eligible_for_restore_insn): Simplify.
18537 (eligible_for_return_delay): Return false if the instruction cannot be
18538 put in the delay slot of a branch and simplify.
18539 (eligible_for_sibcall_delay): Return false if the instruction cannot be
18540 put in the delay slot of a branch.
18541 * config/sparc/sparc.md (fix_ut699): New attribute.
18542 (tls_call_delay): Delete.
18543 (in_call_delay): Reimplement.
18544 (eligible_for_sibcall_delay): Rename into...
18545 (in_sibcall_delay): ...this.
18546 (eligible_for_return_delay): Rename into...
18547 (in_return_delay): ...this.
18548 (in_branch_delay): Reimplement.
18549 (in_uncond_branch_delay): Delete.
18550 (in_annul_branch_delay): Delete.
18552 2014-03-14 Richard Henderson <rth@redhat.com>
18555 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
18556 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
18557 (*floathi<X87MODEF>2_i387_with_temp): Remove.
18558 (floathi splitters): Remove.
18559 (float<SWI48x>xf2): New pattern.
18560 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
18561 code that tried to handle DImode for 32-bit, but which was excluded
18562 by the pattern's condition. Drop allocation of stack temporary.
18563 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
18564 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
18565 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
18566 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
18567 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
18568 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
18569 (*float<SWI48><MODEF>2_sse_interunit): Remove.
18570 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
18571 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
18572 (*float<SWI48x><X87MODEF>2_i387): Remove.
18573 (all float _with_temp splitters): Remove.
18574 (*float<SWI48x><MODEF>2_i387): New pattern.
18575 (*float<SWI48><MODEF>2_sse): New pattern.
18576 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
18577 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
18579 2014-03-14 Jakub Jelinek <jakub@redhat.com>
18580 Marek Polacek <polacek@redhat.com>
18582 PR middle-end/60484
18583 * common.opt (dump_base_name_prefixed): New Variable.
18584 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
18585 if x_dump_base_name_prefixed is already set, set it at the end.
18587 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
18589 PR rtl-optimization/60508
18590 * lra-constraints.c (get_reload_reg): Add new parameter
18592 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
18593 Pass the new parameter values.
18595 2014-03-14 Richard Biener <rguenther@suse.de>
18597 * common.opt: Revert unintented changes from r205065.
18598 * opts.c: Likewise.
18600 2014-03-14 Richard Biener <rguenther@suse.de>
18602 PR middle-end/60518
18603 * cfghooks.c (split_block): Properly adjust all loops the
18604 block was a latch of.
18606 2014-03-14 Martin Jambor <mjambor@suse.cz>
18609 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
18612 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
18615 * config/avr/avr.c (avr_set_current_function): Pass function name
18616 through default_strip_name_encoding before sanity checking instead
18617 of skipping the first char of the assembler name.
18619 2014-03-13 Richard Henderson <rth@redhat.com>
18622 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
18623 (ix86_force_to_memory, ix86_free_from_memory): Remove.
18624 * config/i386/i386-protos.h: Likewise.
18625 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
18626 in the expander instead of a splitter.
18627 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
18628 any possibility of requiring a memory.
18629 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
18630 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
18631 (fp branch splitters): Update for ix86_split_fp_branch.
18632 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
18633 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
18634 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
18635 (*fop_<MODEF>_2_i387): Remove f/r alternative.
18636 (*fop_<MODEF>_3_i387): Likewise.
18637 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
18638 (splitters for the fop_* register patterns): Remove.
18639 (fscalexf4_i387): Rename from *fscalexf4_i387.
18640 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
18642 2014-03-13 Jakub Jelinek <jakub@redhat.com>
18644 PR tree-optimization/59779
18645 * tree-dfa.c (get_ref_base_and_extent): Use double_int
18646 type for bitsize and maxsize instead of HOST_WIDE_INT.
18648 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
18650 PR rtl-optimization/57320
18651 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
18652 the CFG after thread_prologue_and_epilogue_insns.
18654 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
18656 PR rtl-optimization/57189
18657 * lra-constraints.c (process_alt_operands): Disfavor spilling
18660 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
18662 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
18664 2014-03-13 Jakub Jelinek <jakub@redhat.com>
18666 PR tree-optimization/59025
18667 PR middle-end/60418
18668 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
18669 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
18671 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
18674 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
18675 calls of avr_out_plus_1.
18677 2014-03-13 Bin Cheng <bin.cheng@arm.com>
18679 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
18680 BB's single pred and update the father loop's latch info later.
18682 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
18684 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
18688 (VEC_base): Likewise.
18689 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
18690 registers, we need to swap double words in little endian mode.
18692 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
18693 to be a container mode for 128-bit integer operations added in ISA
18694 2.07. Unlike TImode and PTImode, the preferred register set is
18695 the Altivec/VMX registers for the 128-bit operations.
18697 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
18699 (rs6000_split_128bit_ok_p): Likewise.
18701 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
18702 macros for creating ISA 2.07 normal and overloaded builtin
18703 functions with 3 arguments.
18704 (BU_P8V_OVERLOAD_3): Likewise.
18705 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
18706 for use as overloaded functions.
18707 (VPERM_1TI_UNS): Likewise.
18708 (VSEL_1TI): Likewise.
18709 (VSEL_1TI_UNS): Likewise.
18710 (ST_INTERNAL_1ti): Likewise.
18711 (LD_INTERNAL_1ti): Likewise.
18712 (XXSEL_1TI): Likewise.
18713 (XXSEL_1TI_UNS): Likewise.
18714 (VPERM_1TI): Likewise.
18715 (VPERM_1TI_UNS): Likewise.
18716 (XXPERMDI_1TI): Likewise.
18717 (SET_1TI): Likewise.
18718 (LXVD2X_V1TI): Likewise.
18719 (STXVD2X_V1TI): Likewise.
18720 (VEC_INIT_V1TI): Likewise.
18721 (VEC_SET_V1TI): Likewise.
18722 (VEC_EXT_V1TI): Likewise.
18723 (EQV_V1TI): Likewise.
18724 (NAND_V1TI): Likewise.
18725 (ORC_V1TI): Likewise.
18726 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
18727 added in ISA 2.07. Add both normal 'altivec' builtins, and the
18728 overloaded builtin.
18729 (VADDUQM): Likewise.
18730 (VSUBCUQ): Likewise.
18731 (VADDEUQM): Likewise.
18732 (VADDECUQ): Likewise.
18733 (VSUBEUQM): Likewise.
18734 (VSUBECUQ): Likewise.
18736 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
18737 __int128_t and __uint128_t types.
18738 (__uint128_type): Likewise.
18739 (altivec_categorize_keyword): Add support for vector __int128_t,
18740 vector __uint128_t, vector __int128, and vector unsigned __int128
18741 as a container type for TImode operations that need to be done in
18742 VSX/Altivec registers.
18743 (rs6000_macro_to_expand): Likewise.
18744 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
18745 to support 128-bit integer instructions vaddcuq, vadduqm,
18746 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
18747 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
18749 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
18750 for V1TImode, and set up preferences to use VSX/Altivec registers.
18751 Setup VSX reload handlers.
18752 (rs6000_debug_reg_global): Likewise.
18753 (rs6000_init_hard_regno_mode_ok): Likewise.
18754 (rs6000_preferred_simd_mode): Likewise.
18755 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
18756 (easy_altivec_constant): Likewise.
18757 (output_vec_const_move): Likewise.
18758 (rs6000_expand_vector_set): Convert V1TImode set and extract to
18760 (rs6000_expand_vector_extract): Likewise.
18761 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
18763 (rs6000_const_vec): Add support for V1TImode.
18764 (rs6000_emit_le_vsx_load): Swap double words when loading or
18765 storing TImode/V1TImode.
18766 (rs6000_emit_le_vsx_store): Likewise.
18767 (rs6000_emit_le_vsx_move): Likewise.
18768 (rs6000_emit_move): Add support for V1TImode.
18769 (altivec_expand_ld_builtin): Likewise.
18770 (altivec_expand_st_builtin): Likewise.
18771 (altivec_expand_vec_init_builtin): Likewise.
18772 (altivec_expand_builtin): Likewise.
18773 (rs6000_init_builtins): Add support for V1TImode type. Add
18774 support for ISA 2.07 128-bit integer builtins. Define type names
18775 for the VSX/Altivec vector types.
18776 (altivec_init_builtins): Add support for overloaded vector
18777 functions with V1TImode type.
18778 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
18779 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
18781 (rs6000_split_128bit_ok_p): Likewise.
18782 (rs6000_handle_altivec_attribute): Create V1TImode from vector
18783 __int128_t and vector __uint128_t.
18785 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
18786 and mode attributes.
18788 (VSX_M2): Likewise.
18793 (VS_scalar): Likewise.
18794 (VS_double): Likewise.
18795 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
18797 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
18798 we support the ISA 2.07 128-bit integer arithmetic instructions.
18799 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
18800 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
18801 and TImode types for use with the builtin functions.
18802 (V1TI_type_node): Likewise.
18803 (unsigned_V1TI_type_node): Likewise.
18804 (intTI_type_internal_node): Likewise.
18805 (uintTI_type_internal_node): Likewise.
18807 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
18808 128-bit builtin functions.
18809 (UNSPEC_VADDEUQM): Likewise.
18810 (UNSPEC_VADDECUQ): Likewise.
18811 (UNSPEC_VSUBCUQ): Likewise.
18812 (UNSPEC_VSUBEUQM): Likewise.
18813 (UNSPEC_VSUBECUQ): Likewise.
18814 (VM): Add V1TImode to vector mode iterators.
18816 (VI_unit): Likewise.
18817 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
18818 (altivec_vaddcuq): Likewise.
18819 (altivec_vsubuqm): Likewise.
18820 (altivec_vsubcuq): Likewise.
18821 (altivec_vaddeuqm): Likewise.
18822 (altivec_vaddecuq): Likewise.
18823 (altivec_vsubeuqm): Likewise.
18824 (altivec_vsubecuq): Likewise.
18826 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
18828 (BOOL_128): Likewise.
18829 (BOOL_REGS_OUTPUT): Likewise.
18830 (BOOL_REGS_OP1): Likewise.
18831 (BOOL_REGS_OP2): Likewise.
18832 (BOOL_REGS_UNARY): Likewise.
18833 (BOOL_REGS_AND_CR0): Likewise.
18835 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
18836 128-bit integer builtin support.
18837 (vec_vadduqm): Likewise.
18838 (vec_vaddecuq): Likewise.
18839 (vec_vaddeuqm): Likewise.
18840 (vec_vsubecuq): Likewise.
18841 (vec_vsubeuqm): Likewise.
18842 (vec_vsubcuq): Likewise.
18843 (vec_vsubuqm): Likewise.
18845 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
18846 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
18847 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
18848 128-bit integer add/subtract to ISA 2.07.
18850 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
18852 * config/arc/arc.c (arc_predicate_delay_insns):
18853 Fix third argument passed to conditionalize_nonjump.
18855 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
18857 * config/aarch64/aarch64-builtins.c
18858 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
18859 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
18860 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
18861 instead of __builtin_lfloor.
18862 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
18864 2014-03-12 Jakub Jelinek <jakub@redhat.com>
18866 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
18867 (tree_ssa_ifcombine_bb_1): New function.
18868 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
18869 is an empty forwarder block to then_bb or vice versa and then_bb
18870 and else_bb are effectively swapped.
18872 2014-03-12 Christian Bruel <christian.bruel@st.com>
18875 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
18876 REG_CFA_DEF_CFA note.
18877 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
18878 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
18880 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
18882 PR tree-optimization/60454
18883 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
18885 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18887 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
18888 Do not define target_cpu_default2 to generic.
18889 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
18890 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
18891 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
18893 2014-03-12 Jakub Jelinek <jakub@redhat.com>
18894 Marc Glisse <marc.glisse@inria.fr>
18896 PR tree-optimization/60502
18897 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
18898 instead of build_low_bits_mask.
18900 2014-03-12 Jakub Jelinek <jakub@redhat.com>
18902 PR middle-end/60482
18903 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
18904 if there are multiple uses, but op doesn't live on E edge.
18905 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
18906 clobber stmts before __builtin_unreachable.
18908 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
18910 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
18911 hard_frame_pointer_rtx.
18912 * cse.c (cse_insn): Remove volatile check.
18913 * cselib.c (cselib_process_insn): Likewise.
18914 * dse.c (scan_insn): Likewise.
18916 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
18918 * config/arc/arc.c (conditionalize_nonjump): New function,
18920 (arc_ifcvt): ... this.
18921 (arc_predicate_delay_insns): Use it.
18923 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
18925 * config/arc/predicates.md (extend_operand): During/after reload,
18926 allow const_int_operand.
18927 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
18928 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
18929 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
18931 (umulsi3_highpart_i): Likewise.
18933 2014-03-11 Richard Biener <rguenther@suse.de>
18935 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
18936 Add asserts to guard possible wrong-code bugs.
18938 2014-03-11 Richard Biener <rguenther@suse.de>
18940 PR tree-optimization/60429
18941 PR tree-optimization/60485
18942 * tree-ssa-structalias.c (set_union_with_increment): Properly
18943 take into account all fields that overlap the shifted vars.
18944 (do_sd_constraint): Likewise.
18945 (do_ds_constraint): Likewise.
18946 (get_constraint_for_ptr_offset): Likewise.
18948 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
18950 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
18951 (nios2_compute_frame_layout):
18952 Add calculation of cfun->machine->fp_save_offset.
18953 (nios2_expand_prologue): Correct setting of frame pointer register
18955 (nios2_expand_epilogue): Update recovery of stack pointer from
18956 frame pointer accordingly.
18957 (nios2_initial_elimination_offset): Update calculation of offset
18958 for eliminating to HARD_FRAME_POINTER_REGNUM.
18960 2014-03-10 Jakub Jelinek <jakub@redhat.com>
18963 * ipa.c (symtab_remove_unreachable_nodes): Don't call
18964 cgraph_get_create_node on VAR_DECLs.
18966 2014-03-10 Richard Biener <rguenther@suse.de>
18968 PR middle-end/60474
18969 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
18971 2014-03-08 Douglas B Rupp <rupp@gnat.com>
18973 * config/vms/vms.opt (vms_float_format): New variable.
18975 2014-03-08 Tobias Burnus <burnus@net-b.de>
18977 * doc/invoke.texi (-fcilkplus): Update implementation status.
18979 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
18980 Richard Biener <rguenther@suse.de>
18982 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
18983 consistently accross all TUs.
18984 (run_gcc): Enable -fshort-double automatically at link at link-time
18985 and disallow override.
18987 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
18990 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
18991 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
18992 if they can't be used.
18994 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18996 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
18997 for Solaris 11/x86 ld.
18998 * configure: Regenerate.
19000 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19002 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
19003 (LIB_TLS_SPEC): Save as ld_tls_libs.
19004 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
19005 (HAVE_AS_IX86_TLSLDM): New test.
19006 * configure, config.in: Regenerate.
19007 * config/i386/i386.c (legitimize_tls_address): Fall back to
19008 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
19009 cannot support TLS_MODEL_LOCAL_DYNAMIC.
19010 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
19011 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
19013 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
19015 * common.opt (fira-loop-pressure): Mark as optimization.
19017 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
19019 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
19020 an OpenMP mappable type.
19022 2014-03-06 Matthias Klose <doko@ubuntu.com>
19024 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
19025 MULTILIB_OSDIRNAMES is not defined.
19027 2014-03-06 Jakub Jelinek <jakub@redhat.com>
19028 Meador Inge <meadori@codesourcery.com>
19031 * config/arm/arm.c (arm_tls_symbol_p): Remove.
19032 (arm_legitimize_address): Call legitimize_tls_address for any
19033 arm_tls_referenced_p expression, handle constant addend. Call it
19034 before testing for !TARGET_ARM.
19035 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
19037 2014-03-06 Richard Biener <rguenther@suse.de>
19039 PR middle-end/60445
19043 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
19045 * tree-streamer.c (record_common_node): Assert we don't record
19046 nodes with type double.
19047 (preload_common_node): Skip type double, complex double and double
19048 pointer since it is now frontend dependent due to fshort-double option.
19050 2014-03-06 Richard Biener <rguenther@suse.de>
19052 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
19053 or -fno-lto is specified and the linker has full plugin support.
19054 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
19055 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
19056 * lto-wrapper.c (merge_and_complain): Merge compile-time
19057 optimization levels.
19058 (run_gcc): And pass it through to the link options.
19060 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
19064 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
19066 * cselib.c (remove_useless_values): Skip to avoid quadratic
19067 behavior if the condition moved from...
19068 (cselib_process_insn): ... here holds.
19070 2014-03-05 Jakub Jelinek <jakub@redhat.com>
19073 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
19074 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
19077 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
19078 (TM_H): Add x86-tune.def.
19080 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19082 * config/aarch64/aarch64.c (generic_tunings):
19083 Use cortexa57_extra_costs.
19085 2014-03-05 Jakub Jelinek <jakub@redhat.com>
19088 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
19089 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
19090 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
19093 2014-03-04 Heiher <r@hev.cc>
19095 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
19096 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
19098 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
19100 * config/i386/predicates.md (const2356_operand): Change to ...
19101 (const2367_operand): ... this.
19102 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
19104 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
19105 (*avx512pf_scatterpf<mode>sf): Ditto.
19106 (avx512pf_scatterpf<mode>df): Ditto.
19107 (*avx512pf_scatterpf<mode>df_mask): Ditto.
19108 (*avx512pf_scatterpf<mode>df): Ditto.
19109 * config/i386/i386.c (ix86_expand_builtin): Update
19110 incorrect hint operand error message.
19112 2014-03-04 Richard Biener <rguenther@suse.de>
19114 * lto-section-in.c (lto_get_section_data): Fix const cast.
19116 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
19118 * tree-streamer.c (record_common_node): Assert we don't record
19119 nodes with type double.
19120 (preload_common_node): Skip type double, complex double and double
19121 pointer since it is now frontend dependent due to fshort-double option.
19123 2014-03-04 Richard Biener <rguenther@suse.de>
19126 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
19127 (lto_input_toplevel_asms): Likewise.
19128 * lto-section-in.c (lto_get_section_data): Instead do it here
19131 2014-03-04 Richard Biener <rguenther@suse.de>
19133 PR tree-optimization/60382
19134 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
19135 dead PHIs a reduction.
19137 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
19139 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
19141 (_mm_prefetch): Move out of GCC target("sse") pragma.
19142 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
19143 GCC target("prfchw") pragma.
19144 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
19146 * config/i386/i386.c (ix86_option_override_internal): Enable
19147 -mprfchw with -mprefetchwt1.
19149 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
19151 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
19154 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
19156 * opts.h (CL_PCH_IGNORE): Define.
19157 * targhooks.c (option_affects_pch_p):
19158 Return false for options that have CL_PCH_IGNORE set.
19159 * opt-functions.awk: Process PchIgnore.
19160 * doc/options.texi: Document PchIgnore.
19162 * config/arc/arc.opt (misize): Add PchIgnore property.
19164 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19166 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
19167 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
19168 constraint on constants to permit them being loaded into
19169 GENERAL_REGS or BASE_REGS.
19171 2014-03-03 Nick Clifton <nickc@redhat.com>
19173 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
19174 anti-cacnonical alternatives.
19175 (negandhi3_real): New pattern.
19176 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
19178 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19180 * config/avr/avr-mcus.def: Remove atxmega16x1.
19181 * config/avr/avr-tables.opt: Regenerate.
19182 * config/avr/t-multilib: Regenerate.
19183 * doc/avr-mmcu.texi: Regenerate.
19185 2014-03-03 Tobias Grosser <tobias@grosser.es>
19186 Mircea Namolaru <mircea.namolaru@inria.fr>
19188 PR tree-optimization/58028
19189 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
19192 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19194 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
19195 not handled by recognizers.
19197 2014-03-03 Jakub Jelinek <jakub@redhat.com>
19199 PR middle-end/60175
19200 * function.c (expand_function_end): Don't emit
19201 clobber_return_register sequence if clobber_after is a BARRIER.
19202 * cfgexpand.c (construct_exit_block): Append instructions before
19203 return_label to prev_bb.
19205 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19207 * config/rs6000/constraints.md: Document reserved use of "wc".
19209 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
19212 * ipa.c (function_and_variable_visibility): When dissolving comdat
19213 group, also set all symbols to local.
19215 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
19220 2013-12-14 Jan Hubicka <jh@suse.cz>
19221 PR middle-end/58477
19222 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
19224 2014-03-02 Jon Beniston <jon@beniston.com>
19230 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
19231 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
19232 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
19233 (simple_return, *simple_return): New patterns
19234 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
19235 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
19237 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
19239 * dwarf2out.c (gen_subprogram_die): Tidy.
19241 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
19244 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
19245 (*mov_t_msb_neg_negc): ... this new insn.
19247 2014-02-28 Jason Merrill <jason@redhat.com>
19250 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
19253 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
19256 * dwarf2out.c (decltype_auto_die): New static.
19257 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
19258 (gen_type_die_with_usage): Handle 'decltype(auto)'.
19259 (is_cxx_auto): Likewise.
19261 2014-02-28 Ian Bolton <ian.bolton@arm.com>
19263 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
19264 we are not using general regs only.
19266 2014-02-28 Richard Biener <rguenther@suse.de>
19269 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
19270 previous fix and only allow to remove trivial pre-headers
19271 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
19272 (remove_forwarder_block): Properly update the latch of a loop.
19274 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
19277 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
19278 (cselib_preserved_hash_table): New.
19279 (preserve_constants_and_equivs): Move preserved vals to it.
19280 (cselib_find_slot): Look it up first.
19281 (cselib_init): Initialize it.
19282 (cselib_finish): Release it.
19283 (dump_cselib_table): Dump it.
19285 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
19288 * cselib.c (remove_useless_values): Skip to avoid quadratic
19289 behavior if the condition moved from...
19290 (cselib_process_insn): ... here holds.
19292 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
19295 * var-tracking.c (vt_initialize): Apply the same condition to
19296 preserve the CFA base value.
19298 2014-02-28 Joey Ye <joey.ye@arm.com>
19301 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
19302 if reload in progress or completed.
19304 2014-02-28 Tobias Burnus <burnus@net-b.de>
19306 PR middle-end/60147
19307 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
19310 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
19312 * doc/tm.texi.in (Condition Code Status): Update documention for
19313 relative locations of cc0-setter and cc0-user.
19315 2014-02-27 Jeff Law <law@redhat.com>
19317 PR rtl-optimization/52714
19318 * combine.c (try_combine): When splitting an unrecognized PARALLEL
19319 into two independent simple sets, if I3 is a jump, ensure the
19320 pattern we place into I3 is a (set (pc) ...).
19322 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
19323 Jeff Law <law@redhat.com>
19325 PR rtl-optimization/49847
19326 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
19327 are in different blocks.
19328 * doc/tm.texi (Condition Code Status): Update documention for
19329 relative locations of cc0-setter and cc0-user.
19331 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
19334 * lra.c (lra_emit_add): Check SUBREG too.
19336 2014-02-27 Andreas Schwab <schwab@suse.de>
19338 * config/m68k/m68k.c (m68k_option_override): Disable
19339 -flive-range-shrinkage for classic m68k.
19340 (m68k_override_options_after_change): Likewise.
19342 2014-02-27 Marek Polacek <polacek@redhat.com>
19344 PR middle-end/59223
19345 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
19346 -Wmaybe-uninitialized.
19348 2014-02-27 Alan Modra <amodra@gmail.com>
19351 * reload1.c (emit_input_reload_insns): When reload_override_in,
19352 set old to rl->in_reg when rl->in_reg is a subreg.
19354 2014-02-26 Richard Biener <rguenther@suse.de>
19357 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
19359 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
19361 * common/config/i386/predicates.md (const1256_operand): Remove.
19362 (const2356_operand): New.
19363 (const_1_to_2_operand): Remove.
19364 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
19365 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
19366 (*avx512pf_gatherpf<mode>sf): Ditto.
19367 (avx512pf_gatherpf<mode>df): Ditto.
19368 (*avx512pf_gatherpf<mode>df_mask): Ditto.
19369 (*avx512pf_gatherpf<mode>df): Ditto.
19370 (avx512pf_scatterpf<mode>sf): Ditto.
19371 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
19372 (*avx512pf_scatterpf<mode>sf): Ditto.
19373 (avx512pf_scatterpf<mode>df): Ditto.
19374 (*avx512pf_scatterpf<mode>df_mask): Ditto.
19375 (*avx512pf_scatterpf<mode>df): Ditto.
19376 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
19378 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
19380 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
19381 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
19382 (_mm512_mask_testn_epi64_mask): Move to ...
19383 * config/i386/avx512cdintrin.h: Here.
19384 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
19385 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
19386 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
19387 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
19388 TARGET_AVX512F from TARGET_AVX512CD.
19390 2014-02-26 Richard Biener <rguenther@suse.de>
19393 * ipa.c (walk_polymorphic_call_targets): Properly guard
19394 call to inline_update_overall_summary.
19396 2014-02-26 Bin Cheng <bin.cheng@arm.com>
19399 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
19400 and latches only if requested. Fix latch if it is removed.
19401 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
19402 LOOPS_HAVE_PREHEADERS.
19404 2014-02-25 Andrew Pinski <apinski@cavium.com>
19406 * builtins.c (expand_builtin_thread_pointer): Create a new target
19407 when the target is NULL.
19409 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
19411 PR rtl-optimization/60317
19412 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
19413 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
19414 * lra-assigns.c: Include params.h.
19415 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
19416 other reload pseudos considerations.
19418 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19420 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
19421 to use canonical form for nor<mode>3.
19423 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19426 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
19429 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
19431 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
19432 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
19433 (ix86_handle_option): Handle OPT_mprefetchwt1.
19434 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
19435 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
19437 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19438 OPTION_MASK_ISA_PREFETCHWT1.
19439 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
19440 (PTA_PREFETCHWT1): New.
19441 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
19442 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
19443 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
19444 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
19445 (*prefetch_avx512pf_<mode>_: Change into ...
19446 (*prefetch_prefetchwt1_<mode>: This.
19447 * config/i386/i386.opt (mprefetchwt1): New.
19448 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
19449 (_mm_prefetch): Handle intent to write.
19450 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
19452 2014-02-25 Richard Biener <rguenther@suse.de>
19454 PR middle-end/60291
19455 * emit-rtl.c (mem_attrs_htab): Remove.
19456 (mem_attrs_htab_hash): Likewise.
19457 (mem_attrs_htab_eq): Likewise.
19458 (set_mem_attrs): Always allocate new mem-attrs when something changed.
19459 (init_emit_once): Do not allocate mem_attrs_htab.
19461 2014-02-25 Richard Biener <rguenther@suse.de>
19464 * lto-opts.c (lto_write_options): Output non-explicit conservative
19465 -fwrapv, -fno-trapv and -fno-strict-overflow.
19466 * lto-wrapper.c (merge_and_complain): Handle merging those options.
19467 (run_gcc): And pass them through.
19469 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
19471 * sel-sched.c (calculate_new_fences): New parameter ptime.
19472 Calculate it as a maximum over all fence cycles.
19473 (sel_sched_region_2): Adjust the call to calculate_new_fences.
19474 Print the final schedule timing when sched_verbose.
19476 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
19478 PR rtl-optimization/60292
19479 * sel-sched.c (fill_vec_av_set): Do not reset target availability
19480 bit fot the fence instruction.
19482 2014-02-24 Alangi Derick <alangiderick@gmail.com>
19484 * calls.h: Fix typo in comment.
19486 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
19488 * config/pa/pa.c (pa_output_move_double): Don't valididate when
19489 adjusting offsetable addresses.
19491 2014-02-24 Guozhi Wei <carrot@google.com>
19493 * sparseset.h (sparseset_pop): Fix the wrong index.
19495 2014-02-24 Walter Lee <walt@tilera.com>
19497 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
19498 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
19500 * common/config/tilegx/tilegx-common.c
19501 (TARGET_DEFAULT_TARGET_FLAGS): Define.
19502 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
19503 (LINK_SPEC): Ditto.
19504 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
19505 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
19506 (tilegx_gimplify_va_arg_expr): Handle big endian.
19507 (tilegx_expand_unaligned_load): Ditto.
19508 (tilegx_expand_unaligned_store): Ditto.
19509 (TARGET_RETURN_IN_MSB): New.
19510 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
19511 (TARGET_ENDIAN_DEFAULT): New.
19512 (TARGET_BIG_ENDIAN): Handle big endian.
19513 (BYTES_BIG_ENDIAN): Ditto.
19514 (WORDS_BIG_ENDIAN): Ditto.
19515 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
19516 (ENDIAN_SPEC): New.
19517 (EXTRA_SPECS): New.
19518 * config/tilegx/tilegx.md (extv): Handle big endian.
19520 (insn_st<n>): Ditto.
19521 (insn_st<n>_add<bitsuffix>): Ditto.
19522 (insn_stnt<n>): Ditto.
19523 (insn_stnt<n>_add<bitsuffix>):Ditto.
19524 (vec_interleave_highv8qi): Handle big endian.
19525 (vec_interleave_highv8qi_be): New.
19526 (vec_interleave_highv8qi_le): New.
19527 (insn_v1int_h): Handle big endian.
19528 (vec_interleave_lowv8qi): Handle big endian.
19529 (vec_interleave_lowv8qi_be): New.
19530 (vec_interleave_lowv8qi_le): New.
19531 (insn_v1int_l): Handle big endian.
19532 (vec_interleave_highv4hi): Handle big endian.
19533 (vec_interleave_highv4hi_be): New.
19534 (vec_interleave_highv4hi_le): New.
19535 (insn_v2int_h): Handle big endian.
19536 (vec_interleave_lowv4hi): Handle big endian.
19537 (vec_interleave_lowv4hi_be): New.
19538 (vec_interleave_lowv4hi_le): New.
19539 (insn_v2int_l): Handle big endian.
19540 (vec_interleave_highv2si): Handle big endian.
19541 (vec_interleave_highv2si_be): New.
19542 (vec_interleave_highv2si_le): New.
19543 (insn_v4int_h): Handle big endian.
19544 (vec_interleave_lowv2si): Handle big endian.
19545 (vec_interleave_lowv2si_be): New.
19546 (vec_interleave_lowv2si_le): New.
19547 (insn_v4int_l): Handle big endian.
19548 * config/tilegx/tilegx.opt (mbig-endian): New option.
19549 (mlittle-endian): New option.
19550 * doc/install.texi: Document tilegxbe-linux.
19551 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
19553 2014-02-24 Martin Jambor <mjambor@suse.cz>
19556 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
19557 there are no parameter descriptors.
19559 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
19561 PR rtl-optimization/60268
19562 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
19563 initialization to ...
19564 (sched_rgn_init): ... here.
19565 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
19567 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
19569 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
19572 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
19574 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
19577 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
19579 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
19580 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
19582 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
19584 * config/microblaze/predicates.md: Add cmp_op predicate.
19585 * config/microblaze/microblaze.md: Add branch_compare instruction
19586 which uses cmp_op predicate and emits cmp insn before branch.
19587 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
19588 to microblaze_expand_conditional_branch and consolidate logic.
19589 (microblaze_expand_conditional_branch): emit branch_compare
19590 insn instead of handling cmp op separate from branch insn.
19592 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19594 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
19597 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19599 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
19600 define_insn with define_expand and new define_insn
19601 *altivec_lve<VI_char>x_internal.
19602 (altivec_stve<VI_char>x): Replace define_insn with define_expand
19603 and new define_insn *altivec_stve<VI_char>x_internal.
19604 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
19606 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
19608 (altivec_expand_stvex_be): New function.
19610 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
19612 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
19613 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
19614 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
19615 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
19617 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
19620 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
19621 instead of emit_move_insn.
19623 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19625 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
19626 vspltw with vsldoi.
19627 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
19628 gen_altivec_vsumsws.
19630 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19632 * config/rs6000/altivec.md (altivec_lvxl): Rename as
19633 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
19634 (altivec_lvxl_<mode>): New define_expand incorporating
19635 -maltivec=be semantics where needed.
19636 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
19637 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
19638 semantics where needed.
19639 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
19640 (altivec_stvx_<mode>): New define_expand incorporating
19641 -maltivec=be semantics where needed.
19642 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
19643 VM2 iterator instead of V4SI.
19644 (altivec_stvxl_<mode>): New define_expand incorporating
19645 -maltivec=be semantics where needed.
19646 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
19647 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
19648 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
19649 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
19650 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
19651 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
19652 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
19653 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
19654 ALTIVEC_BUILTIN_STVXL.
19655 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
19656 (altivec_expand_stvx_be): Likewise.
19657 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
19658 (altivec_expand_lvx_be): Likewise.
19659 (altivec_expand_stvx_be): Likewise.
19660 (altivec_expand_builtin): Add cases for
19661 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
19662 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
19663 (altivec_init_builtins): Add definitions for
19664 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
19665 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
19667 2014-02-21 Catherine Moore <clm@codesourcery.com>
19669 * doc/invoke.texi (mvirt, mno-virt): Document.
19670 * config/mips/mips.opt (mvirt): New option.
19671 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
19673 2014-02-21 Richard Biener <rguenther@suse.de>
19675 PR tree-optimization/60276
19676 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
19677 (STMT_VINFO_MIN_NEG_DIST): New macro.
19678 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
19679 STMT_VINFO_MIN_NEG_DIST.
19680 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
19681 made for negative dependence distances still hold.
19683 2014-02-21 Richard Biener <rguenther@suse.de>
19685 PR middle-end/60291
19686 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
19687 DECL_INITIAL for globals not in the current function context.
19689 2014-02-21 Jakub Jelinek <jakub@redhat.com>
19691 PR tree-optimization/56490
19692 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
19693 * tree-ssa-uninit.c: Include params.h.
19694 (compute_control_dep_chain): Add num_calls argument, return false
19695 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
19696 num_calls to recursive call.
19697 (find_predicates): Change dep_chain into normal array,
19698 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
19699 variable and adjust compute_control_dep_chain caller.
19700 (find_def_preds): Likewise.
19702 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
19704 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
19705 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
19707 2014-02-21 Nick Clifton <nickc@redhat.com>
19709 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
19710 (pushhi1): Likewise.
19711 (popqi1): Add mode to pre_dec.
19712 (pophi1): Likewise.
19714 2014-02-21 Jakub Jelinek <jakub@redhat.com>
19716 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
19717 mode for mask of V8SFmode permutation.
19719 2014-02-20 Richard Henderson <rth@redhat.com>
19722 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
19723 a new pseudo for OLDVAL.
19725 2014-02-20 Jakub Jelinek <jakub@redhat.com>
19728 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
19729 gen_reg_rtx if d->testing_p.
19730 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
19731 if d->testing_p and we will certainly return true.
19732 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
19735 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
19737 * emit-rtl.c (gen_reg_rtx): Assert that
19738 crtl->emit.regno_pointer_align_length is non-zero.
19740 2014-02-20 Richard Henderson <rth@redhat.com>
19743 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
19744 on failure the store back into EXPECT.
19746 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
19747 Sandra Loosemore <sandra@codesourcery.com>
19749 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
19750 * config/nios2/nios2.c (nios2_function_profiler): Add
19751 -fPIC (flag_pic == 2) support.
19752 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
19753 (nios2_large_offset_p): New function.
19754 (nios2_unspec_reloc_p): Move up position, update to use
19755 nios2_large_offset_p.
19756 (nios2_unspec_address): Remove function.
19757 (nios2_unspec_offset): New function.
19758 (nios2_large_got_address): New function.
19759 (nios2_got_address): Add large offset support.
19760 (nios2_legitimize_tls_address): Update usage of removed and new
19762 (nios2_symbol_binds_local_p): New function.
19763 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
19764 (nios2_legitimize_address): Update to use nios2_large_offset_p.
19765 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
19766 (nios2_print_operand): Merge H/L processing, add hiadj/lo
19767 processing for (const (unspec ...)).
19768 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
19770 2014-02-20 Richard Biener <rguenther@suse.de>
19772 * tree-cfg.c (replace_uses_by): Mark altered BBs before
19773 doing the substitution.
19774 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
19776 2014-02-20 Martin Jambor <mjambor@suse.cz>
19779 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
19780 info when checking whether lattices are bottom.
19782 2014-02-20 Richard Biener <rguenther@suse.de>
19784 PR middle-end/60221
19785 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
19788 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
19791 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
19792 parameter specifying the scaling.
19793 (inline_call): Update.
19794 (want_inline_recursively): Guard division by zero.
19795 (recursive_inlining): Update.
19796 * ipa-inline.h (clone_inlined_nodes): Update.
19798 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
19801 * config/i386/i386.c (classify_argument): Pass structures of size
19802 64 bytes or less in register.
19804 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
19805 Kirill Yukhin <kirill.yukhin@intel.com>
19807 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
19808 (_mm_rcp28_round_ss): Ditto.
19809 (_mm_rsqrt28_round_sd): Ditto.
19810 (_mm_rsqrt28_round_ss): Ditto.
19811 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
19812 (_mm_rcp14_round_ss): Ditto.
19813 (_mm_rsqrt14_round_sd): Ditto.
19814 (_mm_rsqrt14_round_ss): Ditto.
19815 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
19816 the first input operand, get rid of match_dup.
19817 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
19819 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
19821 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
19822 operand as the first input operand, set type attribute.
19823 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
19824 Set type attribute.
19825 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
19826 operand as the first input operand, set type attribute.
19828 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19830 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
19833 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
19836 * config/i386/i386.c (construct_container): Remove TFmode check
19837 for X86_64_INTEGER_CLASS.
19839 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
19842 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
19843 only when -Wpsabi is enabled.
19845 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
19848 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
19849 passing arrays in registers are the same as for structs, so remove the
19850 special case for them.
19852 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
19854 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
19855 destination type, extract only the valid bits if the source type is not
19856 integral and has a different mode.
19858 2014-02-19 Richard Biener <rguenther@suse.de>
19861 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
19864 2014-02-19 Richard Biener <rguenther@suse.de>
19867 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
19868 (ipa_modify_call_arguments): Emit an argument load explicitely and
19869 preserve virtual SSA form there and for the replacement call.
19870 Do not update SSA form nor free dominance info.
19872 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
19874 * ipa.c (function_and_variable_visibility): Also clear WEAK
19875 flag when disolving COMDAT_GROUP.
19877 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
19879 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
19880 * ipa-prop.c (ipa_set_jf_known_type): Return early when
19881 not devirtualizing.
19882 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
19883 do more sanity checks.
19884 (detect_type_change): Return true when giving up early.
19885 (compute_complex_assign_jump_func): Fix type parameter of
19886 ipa_set_ancestor_jf.
19887 (compute_complex_ancestor_jump_func): Likewise.
19888 (update_jump_functions_after_inlining): Fix updating of
19890 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
19892 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
19894 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
19895 inline clones when edge disappears.
19897 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
19900 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
19901 Split 64-bit moves into 2 patterns. Do not allow the use of
19902 direct move for TDmode in little endian, since the decimal value
19903 has little endian bytes within a word, but the 64-bit pieces are
19904 ordered in a big endian fashion, and normal subreg's of TDmode are
19906 (mov<mode>_64bit_dm): Likewise.
19907 (movtd_64bit_nodm): Likewise.
19909 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
19911 PR tree-optimization/60174
19912 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
19913 statement of an SSA_NAME that occurs in an abnormal PHI node.
19915 2014-02-18 Jakub Jelinek <jakub@redhat.com>
19918 * final.c (SEEN_BB): Remove.
19919 (SEEN_NOTE, SEEN_EMITTED): Renumber.
19920 (final_scan_insn): Don't force_source_line on second
19921 NOTE_INSN_BASIC_BLOCK.
19923 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
19926 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
19927 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
19928 (type_natural_mode): Warn ABI change when %zmm register is not
19929 available for AVX512F vector value passing.
19931 2014-02-18 Kai Tietz <ktietz@redhat.com>
19934 * config/i386/i386.c (ix86_expand_prologue): Use value in
19935 rax register as displacement when restoring %r10 or %rax.
19936 Fix wrong offset when restoring both registers.
19938 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
19940 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
19941 assertion with conditional return.
19943 2014-02-18 Jakub Jelinek <jakub@redhat.com>
19944 Uros Bizjak <ubizjak@gmail.com>
19947 * config/i386/driver-i386.c (host_detect_local_cpu): If
19948 YMM state is not saved by the OS, also clear has_f16c. Move
19949 CPUID 0x80000001 handling before YMM state saving checking.
19951 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
19953 PR rtl-optimization/58960
19954 * haifa-sched.c (alloc_global_sched_pressure_data): New,
19955 factored out from ...
19956 (sched_init): ... here.
19957 (free_global_sched_pressure_data): New, factored out from ...
19958 (sched_finish): ... here.
19959 * sched-int.h (free_global_sched_pressure_data): Declare.
19960 * sched-rgn.c (nr_regions_initial): New static global.
19961 (haifa_find_rgns): Initialize it.
19962 (schedule_region): Disable sched-pressure for the newly
19965 2014-02-17 Richard Biener <rguenther@suse.de>
19967 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
19968 release SSA defs of pattern stmts.
19970 2014-02-17 Richard Biener <rguenther@suse.de>
19972 * tree-inline.c (expand_call_inline): Release the virtual
19973 operand defined by the call we are about to inline.
19975 2014-02-17 Richard Biener <rguenther@suse.de>
19977 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
19979 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
19980 Ilya Tocar <ilya.tocar@intel.com>
19982 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
19983 arguments order in builtin.
19984 (_mm512_permutexvar_epi64): Ditto.
19985 (_mm512_mask_permutexvar_epi64): Ditto
19986 (_mm512_maskz_permutexvar_epi32): Ditto
19987 (_mm512_permutexvar_epi32): Ditto
19988 (_mm512_mask_permutexvar_epi32): Ditto
19990 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19992 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
19993 (p8_vmrgow): Likewise.
19995 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19997 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
20000 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
20003 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
20004 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
20005 into 64-bit and 32-bit moves. On 64-bit moves, add support for
20006 using direct move instructions on ISA 2.07. Also adjust
20007 instruction length for 64-bit.
20008 (mov<mode>_64bit, TFmode/TDmode): Likewise.
20009 (mov<mode>_32bit, TFmode/TDmode): Likewise.
20011 2014-02-15 Alan Modra <amodra@gmail.com>
20015 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
20016 find_replacement on parts of insn rtl that might be reloaded.
20018 2014-02-15 Richard Biener <rguenther@suse.de>
20020 PR tree-optimization/60183
20021 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
20022 (tree_ssa_phiprop): Calculate and free post-dominators.
20024 2014-02-14 Jeff Law <law@redhat.com>
20026 PR rtl-optimization/60131
20027 * ree.c (get_extended_src_reg): New function.
20028 (combine_reaching_defs): Use it rather than assuming location of REG.
20029 (find_and_remove_re): Verify first operand of extension is
20030 a REG before adding the insns to the copy list.
20032 2014-02-14 Roland McGrath <mcgrathr@google.com>
20034 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
20035 * configure: Regenerated.
20036 * config.in: Regenerated.
20037 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
20038 instead of ASM_SHORT.
20040 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
20041 Richard Earnshaw <rearnsha@arm.com>
20043 PR rtl-optimization/59535
20044 * lra-constraints.c (process_alt_operands): Encourage alternative
20045 when unassigned pseudo class is superset of the alternative class.
20046 (inherit_reload_reg): Don't inherit when optimizing for code size.
20047 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
20048 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
20049 modes not less than 4 for Thumb1.
20051 2014-02-14 Kyle McMartin <kyle@redhat.com>
20054 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
20056 2014-02-14 Richard Biener <rguenther@suse.de>
20058 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
20059 (get_frame_arg): Drop the assert with langhook types_compatible_p.
20060 Do not strip INDIRECT_REFs.
20062 2014-02-14 Richard Biener <rguenther@suse.de>
20065 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
20066 DECL_FUNCTION_SPECIFIC_TARGET.
20067 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
20068 * tree-streamer-out.c (pack_ts_target_option): Remove.
20069 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
20070 (write_ts_function_decl_tree_pointers): Do not stream
20071 DECL_FUNCTION_SPECIFIC_TARGET.
20072 * tree-streamer-in.c (unpack_ts_target_option): Remove.
20073 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
20074 (lto_input_ts_function_decl_tree_pointers): Do not stream
20075 DECL_FUNCTION_SPECIFIC_TARGET.
20077 2014-02-14 Jakub Jelinek <jakub@redhat.com>
20079 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
20080 (get_initial_def_for_induction, vectorizable_induction): Ignore
20081 debug stmts when looking for exit_phi.
20082 (vectorizable_live_operation): Fix up condition.
20084 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
20086 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
20087 nreverse() because it changes the content of original tree list.
20089 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
20091 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
20092 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
20094 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
20096 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
20097 GNU coding standards.
20099 2014-02-13 Jakub Jelinek <jakub@redhat.com>
20102 * dwarf2out.c (gen_subprogram_die): Don't call
20103 add_calling_convention_attribute if subr_die is old_die.
20105 2014-02-13 Sharad Singhai <singhai@google.com>
20107 * doc/optinfo.texi: Fix order of nodes.
20109 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
20111 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
20112 operands[2], not operands[3].
20114 2014-02-13 Richard Biener <rguenther@suse.de>
20117 * doc/install.texi (ISL): Update recommended version to 0.12.2,
20118 mention the possibility of an in-tree build.
20119 (CLooG): Update recommended version to 0.18.1, mention the
20120 possibility of an in-tree build and clarify that the ISL
20121 bundled with CLooG does not work.
20123 2014-02-13 Jakub Jelinek <jakub@redhat.com>
20126 * expr.c (compress_float_constant): If x is a hard register,
20127 extend into a pseudo and then move to x.
20129 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
20131 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
20132 caused by bad second argument to warning_at() with -mhotpatch and
20133 nested functions (e.g. with gfortran).
20135 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
20137 * opts.c (option_name): Remove "enabled by default" rider.
20139 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
20141 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
20143 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
20144 Uros Bizjak <ubizjak@gmail.com>
20147 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
20148 * configure: Regenerated.
20150 2014-02-12 Richard Biener <rguenther@suse.de>
20152 * vec.c (vec_prefix::calculate_allocation): Move as
20153 inline variant to vec.h.
20154 (vec_prefix::calculate_allocation_1): New out-of-line version.
20155 * vec.h (vec_prefix::calculate_allocation_1): Declare.
20156 (vec_prefix::m_has_auto_buf): Rename to ...
20157 (vec_prefix::m_using_auto_storage): ... this.
20158 (vec_prefix::calculate_allocation): Inline the easy cases
20159 and dispatch to calculate_allocation_1 which doesn't need the
20161 (va_heap::reserve): Use gcc_checking_assert.
20162 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
20163 m_using_auto_storage.
20164 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
20166 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
20167 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
20168 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
20170 2014-02-12 Richard Biener <rguenther@suse.de>
20172 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
20173 when we found a dependence.
20175 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
20177 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
20179 (maybe_fold_stmt): ... into this new function.
20180 * omp-low.c (lower_omp): Update comment.
20182 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
20185 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
20188 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
20190 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
20191 identifiers in comments.
20192 (cortexa53_extra_costs): Likewise.
20193 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
20194 (cortexa7_extra_costs): Likewise.
20195 (cortexa12_extra_costs): Likewise.
20196 (cortexa15_extra_costs): Likewise.
20197 (v7m_extra_costs): Likewise.
20199 2014-02-12 Richard Biener <rguenther@suse.de>
20201 PR middle-end/60092
20202 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
20203 of posix_memalign being successful.
20204 (lower_stmt): Restrict lowering of posix_memalign to when
20205 -ftree-bit-ccp is enabled.
20207 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20209 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
20211 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
20213 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
20215 PR rtl-optimization/60116
20216 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
20217 other_insn once the combination has been validated.
20219 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
20222 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
20224 * ipa-devirt.c: Include demangle.h
20225 (odr_violation_reported): New static variable.
20226 (add_type_duplicate): Update odr_violations.
20227 (maybe_record_node): Add completep parameter; update it.
20228 (record_target_from_binfo): Add COMPLETEP parameter;
20229 update it as needed.
20230 (possible_polymorphic_call_targets_1): Likewise.
20231 (struct polymorphic_call_target_d): Add nonconstruction_targets;
20232 rename FINAL to COMPLETE.
20233 (record_targets_from_bases): Sanity check we found the binfo;
20234 fix COMPLETEP updating.
20235 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
20236 parameter, fix computing of COMPLETEP.
20237 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
20238 at LTO time do demangling.
20239 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
20240 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
20242 (gimple_get_virt_method_for_binfo): Likewise.
20243 * gimple-fold.h (gimple_get_virt_method_for_binfo,
20244 gimple_get_virt_method_for_vtable): Update prototypes.
20246 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
20249 * genautomata.c (add_presence_absence): Fix typo with
20250 {final_}presence_list.
20252 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
20255 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
20256 for VSX/Altivec vectors that land in GPR registers.
20258 2014-02-11 Richard Henderson <rth@redhat.com>
20259 Jakub Jelinek <jakub@redhat.com>
20262 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
20263 around drhs if type conversion to lacc->type is not useless.
20265 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20267 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
20269 (cortex-a57.cortex-a53): Likewise.
20270 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
20272 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20274 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
20277 2014-02-11 Renlin Li <Renlin.Li@arm.com>
20279 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
20280 add_options_for_arm_vfp3.
20282 2014-02-11 Jeff Law <law@redhat.com>
20284 PR middle-end/54041
20285 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
20286 object with an undesirable mode.
20288 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20291 * config/i386/sol2-9.h: New file.
20292 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
20293 *-*-solaris2.9*): Use it.
20295 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
20297 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
20298 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
20300 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
20302 * config/microblaze/microblaze.c: Extend mcpu version format
20304 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
20306 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
20308 2014-02-10 Richard Henderson <rth@redhat.com>
20311 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
20312 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
20313 ms-abi vs -mno-accumulate-outgoing-args.
20314 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
20315 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
20318 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20320 PR middle-end/60080
20321 * cfgexpand.c (expand_asm_operands): Attach source location to
20322 ASM_INPUT rtx objects.
20323 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
20325 2014-02-10 Nick Clifton <nickc@redhat.com>
20327 * config/mn10300/mn10300.c (popcount): New function.
20328 (mn10300_expand_prologue): Include saved registers in stack usage
20331 2014-02-10 Jeff Law <law@redhat.com>
20333 PR middle-end/52306
20334 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
20335 when changing the SET_DEST of a prior insn to avoid an input reload.
20337 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20339 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
20340 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
20341 -mcall-openbsd, or -mcall-linux.
20342 (CC1_ENDIAN_BIG_SPEC): Remove.
20343 (CC1_ENDIAN_LITTLE_SPEC): Remove.
20344 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
20345 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
20346 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
20347 and %cc1_endian_default.
20348 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
20350 2014-02-10 Richard Biener <rguenther@suse.de>
20352 PR tree-optimization/60115
20353 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
20354 MEM_REF handling. Properly verify that the accesses are not
20355 out of the objects bound.
20357 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20359 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
20362 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
20364 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
20365 proper constants and fix formatting.
20366 (possible_polymorphic_call_targets): Fix formatting.
20368 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
20369 Ilya Tocar <ilya.tocar@intel.com>
20371 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
20372 (_mm512_loadu_epi32): Renamed into...
20373 (_mm512_loadu_si512): This.
20374 (_mm512_storeu_epi32): Renamed into...
20375 (_mm512_storeu_si512): This.
20376 (_mm512_maskz_ceil_ps): Removed.
20377 (_mm512_maskz_ceil_pd): Ditto.
20378 (_mm512_maskz_floor_ps): Ditto.
20379 (_mm512_maskz_floor_pd): Ditto.
20380 (_mm512_floor_round_ps): Ditto.
20381 (_mm512_floor_round_pd): Ditto.
20382 (_mm512_ceil_round_ps): Ditto.
20383 (_mm512_ceil_round_pd): Ditto.
20384 (_mm512_mask_floor_round_ps): Ditto.
20385 (_mm512_mask_floor_round_pd): Ditto.
20386 (_mm512_mask_ceil_round_ps): Ditto.
20387 (_mm512_mask_ceil_round_pd): Ditto.
20388 (_mm512_maskz_floor_round_ps): Ditto.
20389 (_mm512_maskz_floor_round_pd): Ditto.
20390 (_mm512_maskz_ceil_round_ps): Ditto.
20391 (_mm512_maskz_ceil_round_pd): Ditto.
20392 (_mm512_expand_pd): Ditto.
20393 (_mm512_expand_ps): Ditto.
20394 * config/i386/i386.c (ix86_builtins): Remove
20395 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
20396 (bdesc_args): Ditto.
20397 * config/i386/predicates.md (const1256_operand): New.
20398 (const_1_to_2_operand): Ditto.
20399 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
20400 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
20401 (*avx512pf_gatherpf<mode>sf): Ditto.
20402 (avx512pf_gatherpf<mode>df): Ditto.
20403 (*avx512pf_gatherpf<mode>df_mask): Ditto.
20404 (*avx512pf_gatherpf<mode>df): Ditto.
20405 (avx512pf_scatterpf<mode>sf): Ditto.
20406 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
20407 (*avx512pf_scatterpf<mode>sf): Ditto.
20408 (avx512pf_scatterpf<mode>df): Ditto.
20409 (*avx512pf_scatterpf<mode>df_mask): Ditto.
20410 (*avx512pf_scatterpf<mode>df): Ditto.
20411 (avx512f_expand<mode>): Removed.
20412 (<shift_insn><mode>3<mask_name>): Change predicate type.
20414 2014-02-08 Jakub Jelinek <jakub@redhat.com>
20416 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
20417 not at the end of datarefs vector use ordered_remove to avoid
20418 reordering datarefs vector.
20421 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
20422 mark local addressable non-static vars as GOVD_PRIVATE
20423 instead of GOVD_LOCAL.
20424 * omp-low.c (lower_omp_for): Move gimple_bind_vars
20425 and BLOCK_VARS of gimple_bind_block to new_stmt rather
20428 PR middle-end/60092
20429 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
20430 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
20431 assume_aligned or alloc_align attributes.
20432 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
20433 arguments. Handle also assume_aligned and alloc_align attributes.
20434 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
20435 calls to functions with assume_aligned or alloc_align attributes.
20436 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
20438 2014-02-08 Terry Guo <terry.guo@arm.com>
20440 * doc/invoke.texi: Document ARM -march=armv7e-m.
20442 2014-02-08 Jakub Jelinek <jakub@redhat.com>
20444 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
20445 flag on __cilkrts_rethrow builtin.
20448 * ipa-cp.c (determine_versionability): Fail at -O0
20449 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
20450 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
20453 2014-02-04 Jakub Jelinek <jakub@redhat.com>
20456 * tree-inline.c (copy_forbidden): Fail for
20457 __attribute__((optimize (0))) functions.
20459 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
20461 * varpool.c: Include pointer-set.h.
20462 (varpool_remove_unreferenced_decls): Variables in other partitions
20463 will not be output; be however careful to not lose information
20464 about partitioning.
20466 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
20468 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
20469 lookup in the vtable constructor.
20471 2014-02-07 Jeff Law <law@redhat.com>
20474 * config/m68k/m68k.md (ashldi_extsi): Turn into a
20475 define_insn_and_split.
20477 * ipa-inline.c (inline_small_functions): Fix typos.
20479 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20481 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
20482 (s390_can_use_return_insn): Declare.
20483 * config/s390/s390.h (EPILOGUE_USES): Define.
20484 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
20486 (s390_chunkify_start): Handle return JUMP_LABELs.
20487 (s390_early_mach): Emit a main_pool instruction on the entry edge.
20488 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
20489 (s390_can_use_return_insn): New functions.
20490 (s390_fix_long_loop_prediction): Handle conditional returns.
20491 (TARGET_SET_UP_BY_PROLOGUE): Define.
20492 * config/s390/s390.md (ANY_RETURN): New code iterator.
20493 (*creturn, *csimple_return, return, simple_return): New patterns.
20495 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20497 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
20498 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
20499 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
20500 REG_CFA_RESTORE list when deciding not to restore a register.
20502 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20504 * config/s390/s390.c: Include tree-pass.h and context.h.
20505 (s390_early_mach): New function, split out from...
20506 (s390_emit_prologue): ...here.
20507 (pass_data_s390_early_mach): New pass structure.
20508 (pass_s390_early_mach): New class.
20509 (s390_option_override): Create and register early_mach pass.
20510 Move to end of file.
20512 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
20514 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
20515 to match for the exit block.
20517 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20519 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
20520 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
20521 Reject misaligned operands.
20523 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20525 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
20527 2014-02-07 Richard Biener <rguenther@suse.de>
20529 PR middle-end/60092
20530 * gimple-low.c (lower_builtin_posix_memalign): New function.
20531 (lower_stmt): Call it to lower posix_memalign in a way
20532 to make alignment info accessible.
20534 2014-02-07 Jakub Jelinek <jakub@redhat.com>
20537 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
20538 __builtin_setjmp_receiver.
20540 2014-02-07 Richard Biener <rguenther@suse.de>
20542 PR middle-end/60092
20543 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
20544 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
20545 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20546 Handle BUILT_IN_POSIX_MEMALIGN.
20547 (find_func_clobbers): Likewise.
20548 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
20549 (call_may_clobber_ref_p_1): Likewise.
20551 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
20554 * ipa-devirt.c (record_target_from_binfo): Remove overactive
20557 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
20560 * lto-cgraph.c (lto_output_node): Use
20561 symtab_get_symbol_partitioning_class.
20562 (lto_output_varpool_node): likewise.
20563 (symtab_get_symbol_partitioning_class): Move here from
20564 lto/lto-partition.c
20565 * cgraph.h (symbol_partitioning_class): Likewise.
20566 (symtab_get_symbol_partitioning_class): Declare.
20568 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
20570 * ggc.h (ggc_internal_cleared_alloc): New macro.
20571 * vec.h (vec_safe_copy): Handle memory stats.
20572 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
20573 * target-globals.c (save_target_globals): Likewise.
20575 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
20578 * expr.c (emit_move_resolve_push): Export; be bit more selective
20579 on when to clear alias set.
20580 * expr.h (emit_move_resolve_push): Declare.
20581 * function.h (struct function): Add tail_call_marked.
20582 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
20583 * config/i386/i386-protos.h (ix86_expand_push): Remove.
20584 * config/i386/i386.md (TImode move expander): De not call
20586 (FP push expanders): Preserve memory attributes.
20587 * config/i386/sse.md (push<mode>1): Remove.
20588 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
20589 (ix86_expand_push): Remove.
20590 * config/i386/mmx.md (push<mode>1): Remove.
20592 2014-02-06 Jakub Jelinek <jakub@redhat.com>
20594 PR rtl-optimization/60030
20595 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
20596 lopart with paradoxical subreg before shifting it up by hprec.
20598 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20600 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
20601 Remove extra newline at end of file.
20602 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
20603 (arm_issue_rate): Handle cortexa57.
20604 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
20605 (cortex-a57.cortex-a53): Likewise.
20607 2014-02-06 Jakub Jelinek <jakub@redhat.com>
20610 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
20611 don't record in REG_FRAME_RELATED_EXPR registers not set in that
20613 (arm_expand_prologue): Adjust all callers.
20614 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
20615 info, registers also at the lowest numbered registers side. Use
20616 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
20620 * var-tracking.c (adjust_mems): Before adding a SET to
20621 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
20623 2014-02-06 Alan Modra <amodra@gmail.com>
20626 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
20627 change SDmode to DDmode when lra_in_progress.
20629 2014-02-06 Jakub Jelinek <jakub@redhat.com>
20631 PR middle-end/59150
20632 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
20633 free_data_ref on the dr first, and before goto again also set dr
20634 to the next dr. For simd_lane_access, free old datarefs[i] before
20635 overwriting it. For get_vectype_for_scalar_type failure, don't
20636 free_data_ref if simd_lane_access.
20638 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
20641 * tree.h (opts_for_fn): New inline function.
20642 (opt_for_fn): Define.
20643 * config/i386/i386.c (ix86_function_regparm): Use
20644 opt_for_fn (decl, optimize) instead of optimize.
20646 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
20648 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
20649 for SYMBOL_REF in large memory model.
20651 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20653 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
20654 and crypto support.
20655 (cortex-a57): Likewise.
20656 (cortex-a57.cortex-a53): Likewise.
20658 2014-02-06 Yury Gribov <y.gribov@samsung.com>
20659 Kugan Vivekanandarajah <kuganv@linaro.org>
20661 * config/arm/arm.c (arm_vector_alignment_reachable): Check
20663 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
20665 2014-02-06 Richard Biener <rguenther@suse.de>
20667 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
20668 set_loop_copy and initialize_original_copy_tables.
20670 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
20672 * config/aarch64/aarch64-simd.md
20673 (aarch64_ashr_simddi): Change QI to SI.
20675 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
20676 Jakub Jelinek <jakub@redhat.com>
20678 PR middle-end/60013
20679 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
20682 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20684 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
20685 CODE_FOR_altivec_vpku[hw]um to
20686 CODE_FOR_altivec_vpku[hw]um_direct.
20687 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
20688 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
20689 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
20690 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
20692 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20694 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
20695 generation for -maltivec=be.
20696 (altivec_vsumsws): Simplify redundant test.
20698 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20700 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
20701 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
20702 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
20703 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
20704 gen_altivec_vpkuwum.
20705 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
20707 (altivec_vpks<VI_char>ss): Likewise.
20708 (altivec_vpks<VI_char>us): Likewise.
20709 (altivec_vpku<VI_char>us): Likewise.
20710 (altivec_vpku<VI_char>um): Likewise.
20711 (altivec_vpku<VI_char>um_direct): New (copy of
20712 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
20714 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
20715 target is little endian and -maltivec=be is not specified.
20716 (*altivec_vupkhs<VU_char>_direct): New (copy of
20717 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
20718 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
20719 target is little endian and -maltivec=be is not specified.
20720 (*altivec_vupkls<VU_char>_direct): New (copy of
20721 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
20722 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
20723 little endian and -maltivec=be is not specified.
20724 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
20725 little endian and -maltivec=be is not specified.
20727 2014-02-05 Richard Henderson <rth@redhat.com>
20730 * combine-stack-adj.c: Revert r206943.
20731 * sched-int.h (struct deps_desc): Add last_args_size.
20732 * sched-deps.c (init_deps): Initialize it.
20733 (sched_analyze_insn): Add OUTPUT dependencies between insns that
20734 contain REG_ARGS_SIZE notes.
20736 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
20738 * lto-cgraph.c (asm_nodes_output): Make global.
20739 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
20740 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
20741 (driver_handle_option): Handle OPT_fwpa.
20743 2014-02-05 Jakub Jelinek <jakub@redhat.com>
20746 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
20747 a comment typo and formatting issue. If odr_hash hasn't been
20748 created, return vNULL and set *completep to false.
20750 PR middle-end/57499
20751 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
20752 bb with no successors.
20754 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
20757 * doc/invoke.texi (-march): Clarify documentation for ARM.
20758 (-mtune): Likewise.
20761 2014-02-05 Richard Biener <rguenther@suse.de>
20763 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
20764 when not vectorizing because of too many alias checks.
20765 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
20766 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
20768 2014-02-05 Nick Clifton <nickc@redhat.com>
20770 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
20771 accept extended registers in any mode when compiling for the MN10300.
20773 2014-02-05 Yury Gribov <y.gribov@samsung.com>
20775 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
20776 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
20777 sanitization attributes.
20778 (can_inline_edge_p): Likewise.
20779 (sanitize_attrs_match_for_inline_p): New function.
20781 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
20783 * ipa-prop.c (detect_type_change): Shor circuit testing of
20784 type changes on THIS pointer.
20786 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
20789 * config/pa/pa.c (legitimize_tls_address): Return original address
20790 if not passed a SYMBOL_REF rtx.
20791 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
20793 (pa_emit_move_sequence): Simplify TLS source operands.
20794 (pa_legitimate_constant_p): Reject all TLS constants.
20795 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
20796 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
20798 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
20800 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
20801 groups when we know they are controlled by LTO.
20802 * varasm.c (default_binds_local_p_1): If object is in other partition,
20803 it will be resolved locally.
20805 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
20807 * config/host-linux.c (linux_gt_pch_use_address): Don't
20808 use SSIZE_MAX because it is not always defined.
20810 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
20813 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
20814 threshold for pseudo splitting.
20815 (update_ebb_live_info): Process call argument hard registers and
20816 hard registers from insn definition too.
20817 (max_small_class_regs_num): New constant.
20818 (inherit_in_ebb): Update live hard regs through EBBs. Update
20819 reloads_num only for small register classes. Don't split for
20822 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
20825 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
20828 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
20830 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
20831 visibility is safe.
20833 2014-02-04 Marek Polacek <polacek@redhat.com>
20835 * gdbinit.in (pel): Define.
20837 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
20839 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
20842 2014-02-04 Richard Biener <rguenther@suse.de>
20845 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
20846 in function context local.
20847 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
20848 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
20849 similar to LTO_imported_decl_ref.
20851 2014-02-04 Jakub Jelinek <jakub@redhat.com>
20853 PR tree-optimization/60002
20854 * cgraphclones.c (build_function_decl_skip_args): Clear
20855 DECL_LANG_SPECIFIC.
20857 PR tree-optimization/60023
20858 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
20859 false to gsi_replace.
20860 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
20861 has been in some EH region and vec_stmt could throw, add
20862 vec_stmt into the same EH region.
20863 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
20864 has no lhs, ignore it.
20865 * internal-fn.c (expand_MASK_LOAD): Likewise.
20868 * tree-inline.c (copy_forbidden): Fail for
20869 __attribute__((optimize (0))) functions.
20872 * omp-low.c (simd_clone_struct_copy): If from->inbranch
20873 is set, copy one less argument.
20874 (expand_simd_clones): Don't subtract clone_info->inbranch
20875 from simd_clone_struct_alloc argument.
20877 PR rtl-optimization/57915
20878 * recog.c (simplify_while_replacing): If all unary/binary/relational
20879 operation arguments are constant, attempt to simplify those.
20881 PR middle-end/59261
20882 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
20883 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
20885 2014-02-04 Richard Biener <rguenther@suse.de>
20887 PR tree-optimization/60012
20888 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
20889 TBAA disambiguation to all DDRs.
20891 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20894 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
20895 (LINK_SPEC): Use it for -shared, -shared-libgcc.
20897 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20900 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
20902 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20904 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
20905 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
20907 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20910 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
20911 to figure out targets of polymorphic calls with known decl.
20912 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
20913 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
20914 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
20915 (get_polymorphic_call_info): ... here.
20916 (get_polymorphic_call_info_from_invariant): New function.
20918 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20920 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
20921 lookup via vtable pointer; check for type consistency
20922 and turn inconsitent facts into UNREACHABLE.
20923 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
20924 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
20925 type inconsistent querries; return UNREACHABLE instead.
20927 2014-02-03 Richard Henderson <rth@twiddle.net>
20930 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
20931 already processed this node.
20932 (normalize_one_pred_1): Pass along mark_set.
20933 (normalize_one_pred): Create and destroy a pointer_set_t.
20934 (normalize_one_pred_chain): Likewise.
20936 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
20938 PR gcov-profile/58602
20939 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
20941 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
20944 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
20945 -fno-devirtualize; try to devirtualize by the knowledge of
20946 virtual table pointer given by aggregate propagation.
20947 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
20948 (ipa_print_node_jump_functions): Dump also offset that
20949 is relevant for polymorphic calls.
20950 (determine_known_aggregate_parts): Add arg_type parameter; use it
20951 instead of determining the type from pointer type.
20952 (ipa_compute_jump_functions_for_edge): Update call of
20953 determine_known_aggregate_parts.
20954 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
20955 (gimple_get_virt_method_for_binfo): ... here; simplify using
20956 vtable_pointer_value_to_vtable.
20957 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
20958 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
20959 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
20960 (vtable_pointer_value_to_vtable): Break out from ...; handle also
20962 (vtable_pointer_value_to_binfo): ... here.
20963 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
20965 2014-02-03 Teresa Johnson <tejohnson@google.com>
20967 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
20968 redef of outer loop index variable.
20970 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
20974 * doc/extend.texi (Function Attributes): Typo.
20976 2014-02-03 Cong Hou <congh@google.com>
20978 PR tree-optimization/60000
20979 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
20980 if the vectorized statement is a store. A store statement can only
20981 appear at the end of pattern statements.
20983 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
20985 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
20986 (ix86_option_override_internal): Default long double to 64-bit for
20987 32-bit Bionic and to 128-bit for 64-bit Bionic.
20989 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
20990 TARGET_LONG_DOUBLE_128 is true.
20991 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
20993 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
20994 (mlong-double-64): Negate -mlong-double-128.
20995 (mlong-double-128): New option.
20997 * config/i386/i386-c.c (ix86_target_macros): Define
20998 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
21000 * doc/invoke.texi: Document -mlong-double-128.
21002 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
21004 PR rtl-optimization/60024
21005 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
21007 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
21009 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
21011 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
21013 PR rtl-optimization/57662
21014 * sel-sched.c (code_motion_path_driver): Do not mark already not
21015 existing blocks in the visiting bitmap.
21017 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
21019 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
21020 on the insn being emitted.
21022 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
21023 Will Deacon <will.deacon@arm.com>
21025 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
21027 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21029 * config/arm/arm-tables.opt: Regenerate.
21031 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21033 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
21034 for vector types other than V16QImode.
21035 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
21036 define_expand, and call altivec_expand_vec_perm_le when producing
21037 code with little endian element order.
21038 (*altivec_vperm_<mode>_internal): New insn having previous
21039 behavior of altivec_vperm_<mode>.
21040 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
21041 altivec_expand_vec_perm_le when producing code with little endian
21043 (*altivec_vperm_<mode>_uns_internal): New insn having previous
21044 behavior of altivec_vperm_<mode>_uns.
21046 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21048 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
21049 (altivec_vsumsws): Add handling for -maltivec=be with a little
21051 (altivec_vsumsws_direct): New.
21052 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
21053 gen_altivec_vsumsws.
21055 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
21057 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
21058 vtable_pointer_value_to_binfo): New functions.
21059 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
21060 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
21062 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
21064 * config/nios2/nios2.md (load_got_register): Initialize GOT
21065 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
21066 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
21068 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
21070 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
21071 preserverd by passthrough, do not propagate the type.
21073 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
21075 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
21076 (mips_atomic_assign_expand_fenv): New function.
21077 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
21079 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
21081 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
21082 (__builtin_mips_set_fcsr): Likewise.
21083 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
21084 MIPS_USI_FTYPE_VOID.
21085 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
21086 (mips16_expand_set_fcsr): Likewise.
21087 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
21088 (mips16_set_fcsr_stub): Likewise.
21089 (mips16_get_fcsr_one_only_stub): New class.
21090 (mips16_set_fcsr_one_only_stub): Likewise.
21091 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
21092 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
21093 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
21094 (hard_float): New availability predicate.
21095 (mips_builtins): Add get_fcsr and set_fcsr.
21096 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
21097 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
21098 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
21099 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
21100 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
21103 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
21105 * config/mips/mips.c (mips_one_only_stub): New class.
21106 (mips_need_mips16_rdhwr_p): Replace with...
21107 (mips16_rdhwr_stub): ...this new variable.
21108 (mips16_stub_call_address): New function.
21109 (mips16_rdhwr_one_only_stub): New class.
21110 (mips_expand_thread_pointer): Use mips16_stub_call_address.
21111 (mips_output_mips16_rdhwr): Delete.
21112 (mips_finish_stub): New function.
21113 (mips_code_end): Use it to handle rdhwr stubs.
21115 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
21118 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
21119 when calculating size of integer atomic types.
21121 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
21123 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
21125 2014-02-01 Jakub Jelinek <jakub@redhat.com>
21127 PR tree-optimization/60003
21128 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
21129 * profile.c (branch_prob): Use gimple_call_builtin_p
21130 to check for BUILT_IN_SETJMP_RECEIVER.
21131 * tree-inline.c (copy_bb): Call notice_special_calls.
21133 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
21136 * lra-constraints.c (process_alt_operands): Update reload_sum only
21139 2014-01-31 Richard Henderson <rth@redhat.com>
21141 PR middle-end/60004
21142 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
21143 until after else_eh is processed.
21145 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
21147 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
21148 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
21149 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
21150 in smmintrin.h, remove them.
21151 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
21152 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
21153 * config/i386/i386.md (ROUND_SAE): Fix value.
21154 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
21155 (const48_operand): New.
21156 * config/i386/subst.md (round), (round_expand): Use
21157 const_4_or_8_to_11_operand.
21158 (round_saeonly), (round_saeonly_expand): Use const48_operand.
21160 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
21162 * config/i386/constraints.md (Yk): Swap meaning with k.
21163 * config/i386/i386.md (movhi_internal): Change Yk to k.
21164 (movqi_internal): Ditto.
21165 (*k<logic><mode>): Ditto.
21168 (kandn<mode>): Ditto.
21169 (*<code>hi_1): Ditto.
21170 (*<code>qi_1): Ditto.
21171 (kxnor<mode>): Ditto.
21172 (kortestzhi): Ditto.
21173 (kortestchi): Ditto.
21175 (*one_cmplhi2_1): Ditto.
21176 (*one_cmplqi2_1): Ditto.
21177 * config/i386/sse.md (): Change k to Yk.
21178 (avx512f_load<mode>_mask): Ditto.
21179 (avx512f_blendm<mode>): Ditto.
21180 (avx512f_store<mode>_mask): Ditto.
21181 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
21182 (avx512f_storedqu<mode>_mask): Ditto.
21183 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
21185 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
21186 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
21187 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
21188 (avx512f_maskcmp<mode>3): Ditto.
21189 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
21190 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
21191 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
21192 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
21193 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
21194 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
21195 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
21196 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
21197 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
21198 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
21199 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
21200 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
21201 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
21202 (vec_extract_lo_<mode>_maskm): Ditto.
21203 (vec_extract_hi_<mode>_maskm): Ditto.
21204 (avx512f_vternlog<mode>_mask): Ditto.
21205 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
21206 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
21207 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
21208 (avx512f_<code>v8div16qi2_mask): Ditto.
21209 (avx512f_<code>v8div16qi2_mask_store): Ditto.
21210 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
21211 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
21212 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
21213 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
21214 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
21215 (*avx512pf_gatherpf<mode>df_mask): Ditto.
21216 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
21217 (*avx512pf_scatterpf<mode>df_mask): Ditto.
21218 (avx512cd_maskb_vec_dupv8di): Ditto.
21219 (avx512cd_maskw_vec_dupv16si): Ditto.
21220 (avx512f_vpermi2var<mode>3_maskz): Ditto.
21221 (avx512f_vpermi2var<mode>3_mask): Ditto.
21222 (avx512f_vpermi2var<mode>3_mask): Ditto.
21223 (avx512f_vpermt2var<mode>3_maskz): Ditto.
21224 (*avx512f_gathersi<mode>): Ditto.
21225 (*avx512f_gathersi<mode>_2): Ditto.
21226 (*avx512f_gatherdi<mode>): Ditto.
21227 (*avx512f_gatherdi<mode>_2): Ditto.
21228 (*avx512f_scattersi<mode>): Ditto.
21229 (*avx512f_scatterdi<mode>): Ditto.
21230 (avx512f_compress<mode>_mask): Ditto.
21231 (avx512f_compressstore<mode>_mask): Ditto.
21232 (avx512f_expand<mode>_mask): Ditto.
21233 * config/i386/subst.md (mask): Change k to Yk.
21234 (mask_scalar_merge): Ditto.
21237 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
21239 * doc/extend.texi (Vector Extensions): Document ?: in C++.
21241 2014-01-31 Richard Biener <rguenther@suse.de>
21243 PR middle-end/59990
21244 * builtins.c (fold_builtin_memory_op): Make sure to not
21245 use a floating-point mode or a boolean or enumeral type for
21246 the copy operation.
21248 2014-01-30 DJ Delorie <dj@redhat.com>
21250 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
21251 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
21252 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
21253 whenever main() has an epilogue.
21255 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21257 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
21258 unused variable "field".
21259 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
21260 (vsx_mergeh_<mode>): Likewise.
21261 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
21262 (altivec_vmrghh): Likewise.
21263 (altivec_vmrghw): Likewise.
21264 (altivec_vmrglb): Likewise.
21265 (altivec_vmrglh): Likewise.
21266 (altivec_vmrglw): Likewise.
21267 (altivec_vspltb): Add missing uses.
21268 (altivec_vsplth): Likewise.
21269 (altivec_vspltw): Likewise.
21270 (altivec_vspltsf): Likewise.
21272 2014-01-30 Jakub Jelinek <jakub@redhat.com>
21275 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
21276 frame related instructions.
21278 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
21280 PR rtl-optimization/59959
21281 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
21282 any reload of register whose subreg is invalid.
21284 2014-01-30 Jakub Jelinek <jakub@redhat.com>
21286 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
21287 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
21288 Add missing return type - void.
21290 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21292 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
21293 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
21294 remove element index adjustment for endian (now handled in vsx.md
21296 (altivec_expand_vec_perm_const): Use
21297 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
21298 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
21299 (vsx_xxspltw_<mode>): Adjust element index for little endian.
21300 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
21301 define_expand and a new define_insn *altivec_vspltb_internal;
21302 adjust for -maltivec=be on a little endian target.
21303 (altivec_vspltb_direct): New.
21304 (altivec_vsplth): Divide into a define_expand and a new
21305 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
21306 little endian target.
21307 (altivec_vsplth_direct): New.
21308 (altivec_vspltw): Divide into a define_expand and a new
21309 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
21310 little endian target.
21311 (altivec_vspltw_direct): New.
21312 (altivec_vspltsf): Divide into a define_expand and a new
21313 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
21314 a little endian target.
21316 2014-01-30 Richard Biener <rguenther@suse.de>
21318 PR tree-optimization/59993
21319 * tree-ssa-forwprop.c (associate_pointerplus): Check we
21320 can propagate form the earlier stmt and avoid the transform
21321 when the intermediate result is needed.
21323 2014-01-30 Alangi Derick <alangiderick@gmail.com>
21325 * README.Portability: Fix typo.
21327 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
21329 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
21330 comparison_operator with ordered_comparison_operator.
21332 2014-01-30 Nick Clifton <nickc@redhat.com>
21334 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
21335 Rename to mn10300_store_multiple_regs.
21336 * config/mn10300/mn10300.c: Likewise.
21337 * config/mn10300/mn10300.md (store_movm): Fix typo: call
21338 store_multiple_regs.
21339 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
21340 Call mn10300_store_multiple_regs.
21342 2014-01-30 Nick Clifton <nickc@redhat.com>
21343 DJ Delorie <dj@redhat.com>
21345 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
21346 %fp 2 to keep registers after it properly word-aligned.
21347 (rl78_alloc_physical_registers_umul): Handle the case where both
21348 input operands are the same.
21350 2014-01-30 Richard Biener <rguenther@suse.de>
21352 PR tree-optimization/59903
21353 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
21356 2014-01-30 Jason Merrill <jason@redhat.com>
21359 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
21362 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
21364 2014-01-30 Richard Biener <rguenther@suse.de>
21366 PR tree-optimization/59951
21367 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
21369 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
21372 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
21373 SFmode to DFmode case.
21375 2014-01-29 DJ Delorie <dj@redhat.com>
21377 * config/msp430/msp430.opt (-minrt): New.
21378 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
21380 (ENDFILE_SPEC): Likewise.
21382 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
21384 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
21385 (estimate_function_body_sizes): Use it.
21387 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
21390 * dwarf2out.c (is_cxx_auto): New.
21391 (is_base_type): Use it.
21392 (gen_type_die_with_usage): Likewise.
21394 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21396 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
21397 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
21398 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
21399 -maltivec=be with LE targets.
21400 (vsx_mergeh_<mode>): Likewise.
21401 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
21402 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
21403 (altivec_vmrghb): Replace with define_expand and new
21404 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
21405 (altivec_vmrghb_direct): New define_insn.
21406 (altivec_vmrghh): Replace with define_expand and new
21407 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
21408 (altivec_vmrghh_direct): New define_insn.
21409 (altivec_vmrghw): Replace with define_expand and new
21410 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
21411 (altivec_vmrghw_direct): New define_insn.
21412 (*altivec_vmrghsf): Adjust for endianness.
21413 (altivec_vmrglb): Replace with define_expand and new
21414 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
21415 (altivec_vmrglb_direct): New define_insn.
21416 (altivec_vmrglh): Replace with define_expand and new
21417 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
21418 (altivec_vmrglh_direct): New define_insn.
21419 (altivec_vmrglw): Replace with define_expand and new
21420 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
21421 (altivec_vmrglw_direct): New define_insn.
21422 (*altivec_vmrglsf): Adjust for endianness.
21423 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
21424 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
21425 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
21426 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
21427 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
21428 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
21429 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
21430 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
21432 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
21434 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
21435 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
21438 2014-01-29 Richard Biener <rguenther@suse.de>
21440 PR tree-optimization/58742
21441 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
21442 associate_pointerplus_align.
21443 (associate_pointerplus_diff): New function.
21444 (associate_pointerplus): Likewise. Call associate_pointerplus_align
21445 and associate_pointerplus_diff.
21447 2014-01-29 Richard Biener <rguenther@suse.de>
21449 * lto-streamer.h (LTO_major_version): Bump to 3.
21450 (LTO_minor_version): Reset to 0.
21452 2014-01-29 Renlin Li <Renlin.Li@arm.com>
21454 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
21455 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
21456 (arm_file_start): Generate correct asm header for armv7ve.
21457 * config/arm/bpabi.h: Add multilib support for armv7ve.
21458 * config/arm/driver-arm.c: Change the architectures of cortex-a7
21459 and cortex-a15 to armv7ve.
21460 * config/arm/t-aprofile: Add multilib support for armv7ve.
21461 * doc/invoke.texi: Document -march=armv7ve.
21463 2014-01-29 Richard Biener <rguenther@suse.de>
21465 PR tree-optimization/58742
21466 * tree-ssa-forwprop.c (associate_plusminus): Return true
21467 if we changed sth, defer EH cleanup to ...
21468 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
21469 (simplify_mult): New function.
21471 2014-01-29 Jakub Jelinek <jakub@redhat.com>
21473 PR middle-end/59917
21474 PR tree-optimization/59920
21475 * tree.c (build_common_builtin_nodes): Remove
21476 __builtin_setjmp_dispatcher initialization.
21477 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
21478 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
21479 instead of gsi_after_labels + manually skipping debug stmts.
21480 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
21481 ignore bbs with IFN_ABNORMAL_DISPATCHER.
21482 * tree-inline.c (copy_edges_for_bb): Remove
21483 can_make_abnormal_goto argument, instead add abnormal_goto_dest
21484 argument. Ignore computed_goto_p stmts. Don't call
21485 make_abnormal_goto_edges. If a call might need abnormal edges
21486 for non-local gotos, see if it already has an edge to
21487 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
21488 with true argument, don't do anything then, otherwise add
21489 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
21490 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
21492 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
21493 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
21494 (lower_stmt): Don't set data->calls_builtin_setjmp.
21495 (lower_builtin_setjmp): Adjust comment.
21496 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
21497 * tree-cfg.c (found_computed_goto): Remove.
21498 (factor_computed_gotos): Remove.
21499 (make_goto_expr_edges): Return bool, true for computed gotos.
21500 Don't call make_abnormal_goto_edges.
21501 (build_gimple_cfg): Don't set found_computed_goto, don't call
21502 factor_computed_gotos.
21503 (computed_goto_p): No longer static.
21504 (make_blocks): Don't set found_computed_goto.
21505 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
21506 (make_edges): If make_goto_expr_edges returns true, push bb
21507 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
21508 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
21509 vector. Record mapping between bbs and OpenMP regions if there
21510 are any, adjust make_gimple_omp_edges caller. Call
21511 handle_abnormal_edges.
21512 (make_abnormal_goto_edges): Remove.
21513 * tree-cfg.h (make_abnormal_goto_edges): Remove.
21514 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
21515 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
21516 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
21517 * internal-fn.def (ABNORMAL_DISPATCHER): New.
21518 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
21519 filling *region also set *region_idx to (*region)->entry->index.
21522 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
21523 For REGs set ORIGINAL_REGNO.
21525 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
21527 * doc/md.texi: Mention that a target shouldn't implement
21528 vec_widen_(s|u)mul_even/odd pair if it is less efficient
21531 2014-01-29 Jakub Jelinek <jakub@redhat.com>
21533 PR tree-optimization/59594
21534 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
21535 a copy of the datarefs vector rather than the vector itself.
21537 2014-01-28 Jason Merrill <jason@redhat.com>
21540 * dwarf2out.c (auto_die): New static.
21541 (gen_type_die_with_usage): Handle C++1y 'auto'.
21542 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
21545 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
21548 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
21549 (SPEC_X32): Likewise.
21550 (SPEC_64): Likewise.
21551 * config/i386/i386.c (ix86_option_override_internal): Turn off
21552 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
21554 (x86_file_start): Output .code16gcc for TARGET_16BIT.
21555 * config/i386/i386.h (TARGET_16BIT): New macro.
21556 (TARGET_16BIT_P): Likewise.
21557 * config/i386/i386.opt: Add m16.
21558 * doc/invoke.texi: Document -m16.
21560 2014-01-28 Jakub Jelinek <jakub@redhat.com>
21562 PR preprocessor/59935
21563 * input.c (location_get_source_line): Bail out on when line number
21564 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
21566 2014-01-28 Richard Biener <rguenther@suse.de>
21568 PR tree-optimization/58742
21569 * tree-ssa-forwprop.c (associate_plusminus): Handle
21570 pointer subtraction of the form (T)(P + A) - (T)P.
21572 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21574 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
21577 2014-01-28 Richard Biener <rguenther@suse.de>
21580 2014-01-28 Richard Biener <rguenther@suse.de>
21582 PR rtl-optimization/45364
21583 PR rtl-optimization/59890
21584 * var-tracking.c (local_get_addr_clear_given_value): Handle
21585 already cleared slot.
21586 (val_reset): Handle not allocated local_get_addr_cache.
21587 (vt_find_locations): Use post-order on the inverted CFG.
21589 2014-01-28 Richard Biener <rguenther@suse.de>
21591 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
21593 2014-01-28 Richard Biener <rguenther@suse.de>
21595 PR rtl-optimization/45364
21596 PR rtl-optimization/59890
21597 * var-tracking.c (local_get_addr_clear_given_value): Handle
21598 already cleared slot.
21599 (val_reset): Handle not allocated local_get_addr_cache.
21600 (vt_find_locations): Use post-order on the inverted CFG.
21602 2014-01-28 Alan Modra <amodra@gmail.com>
21604 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
21605 * configure.ac <recursive call for build != host>: Define
21606 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
21607 and LD_FOR_BUILD too.
21608 * configure: Regenerate.
21610 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
21612 * config/i386/i386.c (get_builtin_code_for_version): Separate
21613 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
21614 Broadwell from Haswell.
21616 2014-01-27 Steve Ellcey <sellcey@mips.com>
21618 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
21619 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
21620 * config/mips/mips.c (mips_option_override): Change setting
21622 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
21623 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
21624 Change from Mask to Var.
21626 2014-01-27 Jeff Law <law@redhat.com>
21628 * ipa-inline.c (inline_small_functions): Fix typo.
21630 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
21632 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
21633 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
21634 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
21635 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
21636 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
21637 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
21638 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
21639 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
21640 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
21641 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
21642 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
21643 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
21644 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
21645 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
21646 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
21647 (_mm512_storeu_epi64): Ditto.
21648 (_mm512_cmpge_epi32_mask): Ditto.
21649 (_mm512_cmpge_epu32_mask): Ditto.
21650 (_mm512_cmpge_epi64_mask): Ditto.
21651 (_mm512_cmpge_epu64_mask): Ditto.
21652 (_mm512_cmple_epi32_mask): Ditto.
21653 (_mm512_cmple_epu32_mask): Ditto.
21654 (_mm512_cmple_epi64_mask): Ditto.
21655 (_mm512_cmple_epu64_mask): Ditto.
21656 (_mm512_cmplt_epi32_mask): Ditto.
21657 (_mm512_cmplt_epu32_mask): Ditto.
21658 (_mm512_cmplt_epi64_mask): Ditto.
21659 (_mm512_cmplt_epu64_mask): Ditto.
21660 (_mm512_cmpneq_epi32_mask): Ditto.
21661 (_mm512_cmpneq_epu32_mask): Ditto.
21662 (_mm512_cmpneq_epi64_mask): Ditto.
21663 (_mm512_cmpneq_epu64_mask): Ditto.
21664 (_mm512_expand_pd): Ditto.
21665 (_mm512_expand_ps): Ditto.
21666 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
21667 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
21668 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
21669 * config/i386/i386.c (ix86_builtins): Add
21670 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
21671 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
21672 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
21673 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
21674 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
21675 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
21676 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
21677 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
21678 IX86_BUILTIN_PMOVUSQW512_MEM.
21679 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
21680 __builtin_ia32_pmovsqd512mem_mask,
21681 __builtin_ia32_pmovqd512mem_mask,
21682 __builtin_ia32_pmovusqw512mem_mask,
21683 __builtin_ia32_pmovsqw512mem_mask,
21684 __builtin_ia32_pmovqw512mem_mask,
21685 __builtin_ia32_pmovusdw512mem_mask,
21686 __builtin_ia32_pmovsdw512mem_mask,
21687 __builtin_ia32_pmovdw512mem_mask,
21688 __builtin_ia32_pmovqb512mem_mask,
21689 __builtin_ia32_pmovusqb512mem_mask,
21690 __builtin_ia32_pmovsqb512mem_mask,
21691 __builtin_ia32_pmovusdb512mem_mask,
21692 __builtin_ia32_pmovsdb512mem_mask,
21693 __builtin_ia32_pmovdb512mem_mask.
21694 (bdesc_args): Add __builtin_ia32_expanddf512,
21695 __builtin_ia32_expandsf512.
21696 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
21697 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
21698 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
21699 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
21700 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
21701 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
21702 (avx512f_<code>v8div16qi2_mask_store): This.
21703 (avx512f_expand<mode>): New.
21705 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
21707 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
21709 (_mm512_mask_prefetch_i64gather_pd): Ditto.
21710 (_mm512_prefetch_i32scatter_pd): Ditto.
21711 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
21712 (_mm512_prefetch_i64scatter_pd): Ditto.
21713 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
21714 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
21715 (_mm512_mask_prefetch_i64gather_ps): Ditto.
21716 (_mm512_prefetch_i32scatter_ps): Ditto.
21717 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
21718 (_mm512_prefetch_i64scatter_ps): Ditto.
21719 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
21720 * config/i386/i386-builtin-types.def: Define
21721 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
21722 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
21723 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
21724 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
21725 IX86_BUILTIN_SCATTERPFQPD.
21726 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
21727 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
21728 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
21729 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
21730 __builtin_ia32_scatterpfqps.
21731 (ix86_expand_builtin): Expand new built-ins.
21732 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
21733 fix memory access data type.
21734 (*avx512pf_gatherpf<mode>_mask): Ditto.
21735 (*avx512pf_gatherpf<mode>): Ditto.
21736 (avx512pf_scatterpf<mode>): Ditto.
21737 (*avx512pf_scatterpf<mode>_mask): Ditto.
21738 (*avx512pf_scatterpf<mode>): Ditto.
21739 (GATHER_SCATTER_SF_MEM_MODE): New.
21740 (avx512pf_gatherpf<mode>df): Ditto.
21741 (*avx512pf_gatherpf<mode>df_mask): Ditto.
21742 (*avx512pf_scatterpf<mode>df): Ditto.
21744 2014-01-27 Jakub Jelinek <jakub@redhat.com>
21747 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
21748 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
21751 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
21753 * common/config/arm/arm-common.c
21754 (arm_rewrite_mcpu): Handle multiple names.
21756 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
21758 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
21760 * gimple-builder.h (create_gimple_tmp): Delete.
21762 2014-01-27 Christian Bruel <christian.bruel@st.com>
21764 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
21767 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
21769 * config/pa/pa.md (call): Generate indirect long calls to non-local
21770 functions when outputing 32-bit code.
21771 (call_value): Likewise except for special call to buggy powf function.
21773 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
21774 portable runtime and PIC indirect calls.
21775 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
21776 and PIC call sequences. Use ldo instead of blr to set return register
21777 in PIC call sequence.
21779 2014-01-25 Walter Lee <walt@tilera.com>
21781 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
21782 avoid clobbering a live register.
21784 2014-01-25 Walter Lee <walt@tilera.com>
21786 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
21787 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
21788 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
21789 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
21791 2014-01-25 Walter Lee <walt@tilera.com>
21793 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
21794 arguments on even registers.
21795 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
21797 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
21798 (BIGGEST_ALIGNMENT): Ditto.
21799 (BIGGEST_FIELD_ALIGNMENT): Ditto.
21801 2014-01-25 Walter Lee <walt@tilera.com>
21803 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
21804 insns before bundling.
21805 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
21807 2014-01-25 Walter Lee <walt@tilera.com>
21809 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
21810 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
21811 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
21813 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
21815 * config/mips/constraints.md (kl): Delete.
21816 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
21817 define expands, using...
21818 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
21819 instructions for MIPS16.
21820 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
21821 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
21823 2014-01-25 Walter Lee <walt@tilera.com>
21825 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
21829 2014-01-25 Walter Lee <walt@tilera.com>
21831 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
21832 (TARGET_EXPAND_TO_RTL_HOOK): Define.
21834 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
21836 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
21839 2014-01-25 Jakub Jelinek <jakub@redhat.com>
21841 * print-rtl.c (in_call_function_usage): New var.
21842 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
21843 EXPR_LIST mode as mode and not as reg note name.
21845 PR middle-end/59561
21846 * cfgloopmanip.c (copy_loop_info): If
21847 loop->warned_aggressive_loop_optimizations, make sure
21848 the flag is set in target loop too.
21850 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
21852 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
21854 * builtins.def: Likewise.
21855 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
21856 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
21857 * ira.c (ira_setup_eliminable_regset): Likewise.
21858 * omp-low.c (gate_expand_omp): Likewise.
21859 (execute_lower_omp): Likewise.
21860 (diagnose_sb_0): Likewise.
21861 (gate_diagnose_omp_blocks): Likewise.
21862 (simd_clone_clauses_extract): Likewise.
21865 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21867 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
21868 correction for little endian...
21869 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
21872 2014-01-24 Jeff Law <law@redhat.com>
21874 PR tree-optimization/59919
21875 * tree-vrp.c (find_assert_locations_1): Do not register asserts
21876 for non-returning calls.
21878 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
21880 * common/config/aarch64/aarch64-common.c
21881 (aarch64_rewrite_mcpu): Handle multiple names.
21882 * config/aarch64/aarch64.h
21883 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
21885 2014-01-24 Dodji Seketeli <dodji@redhat.com>
21887 * input.c (add_file_to_cache_tab): Handle the case where fopen
21890 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
21893 * config/i386/i386.md (pushsf splitter): Get stack adjustment
21894 from push operand if code of push isn't PRE_DEC.
21896 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
21899 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
21900 -mquad-memory-atomic. Update -mquad-memory documentation to say
21901 it is only used for non-atomic loads/stores.
21903 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
21904 -mquad-memory or -mquad-memory-atomic switches.
21906 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
21907 -mquad-memory-atomic to ISA 2.07 support.
21909 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
21910 to separate support of normal quad word memory operations (ldq, stq)
21911 from the atomic quad word memory operations.
21913 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
21914 support to separate non-atomic quad word operations from atomic
21915 quad word operations. Disable non-atomic quad word operations in
21916 little endian mode so that we don't have to swap words after the
21917 load and before the store.
21918 (quad_load_store_p): Add comment about atomic quad word support.
21919 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
21920 options printed with -mdebug=reg.
21922 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
21923 -mquad-memory-atomic as the test for whether we have quad word
21924 atomic instructions.
21925 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
21926 or -mp8-vector are used, allow byte/half-word atomic operations.
21928 * config/rs6000/sync.md (load_lockedti): Insure that the address
21929 is a proper indexed or indirect address for the lqarx instruction.
21930 On little endian systems, swap the hi/lo registers after the lqarx
21932 (load_lockedpti): Use indexed_or_indirect_operand predicate to
21933 insure the address is valid for the lqarx instruction.
21934 (store_conditionalti): Insure that the address is a proper indexed
21935 or indirect address for the stqcrx. instruction. On little endian
21936 systems, swap the hi/lo registers before doing the stqcrx.
21938 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
21939 insure the address is valid for the stqcrx. instruction.
21941 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
21942 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
21943 type of quad memory support is available.
21945 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
21947 PR regression/59915
21948 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
21949 there is a danger of looping.
21951 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
21953 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
21954 force flag_ira_loop_pressure if set via command line.
21956 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
21958 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
21959 (ashr_simd): New builtin handling DI mode.
21960 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
21961 (aarch64_sshr_simddi): New match pattern.
21962 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
21963 (vshrd_n_s64): Likewise.
21964 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
21966 2014-01-23 Nick Clifton <nickc@redhat.com>
21968 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
21969 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
21970 favour of mcu specific scripts.
21971 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
21974 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
21975 Alex Velenko <Alex.Velenko@arm.com>
21977 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
21978 (vaddv_s16): Likewise.
21979 (vaddv_s32): Likewise.
21980 (vaddv_u8): Likewise.
21981 (vaddv_u16): Likewise.
21982 (vaddv_u32): Likewise.
21983 (vaddvq_s8): Likewise.
21984 (vaddvq_s16): Likewise.
21985 (vaddvq_s32): Likewise.
21986 (vaddvq_s64): Likewise.
21987 (vaddvq_u8): Likewise.
21988 (vaddvq_u16): Likewise.
21989 (vaddvq_u32): Likewise.
21990 (vaddvq_u64): Likewise.
21991 (vaddv_f32): Likewise.
21992 (vaddvq_f32): Likewise.
21993 (vaddvq_f64): Likewise.
21994 (vmaxv_f32): Likewise.
21995 (vmaxv_s8): Likewise.
21996 (vmaxv_s16): Likewise.
21997 (vmaxv_s32): Likewise.
21998 (vmaxv_u8): Likewise.
21999 (vmaxv_u16): Likewise.
22000 (vmaxv_u32): Likewise.
22001 (vmaxvq_f32): Likewise.
22002 (vmaxvq_f64): Likewise.
22003 (vmaxvq_s8): Likewise.
22004 (vmaxvq_s16): Likewise.
22005 (vmaxvq_s32): Likewise.
22006 (vmaxvq_u8): Likewise.
22007 (vmaxvq_u16): Likewise.
22008 (vmaxvq_u32): Likewise.
22009 (vmaxnmv_f32): Likewise.
22010 (vmaxnmvq_f32): Likewise.
22011 (vmaxnmvq_f64): Likewise.
22012 (vminv_f32): Likewise.
22013 (vminv_s8): Likewise.
22014 (vminv_s16): Likewise.
22015 (vminv_s32): Likewise.
22016 (vminv_u8): Likewise.
22017 (vminv_u16): Likewise.
22018 (vminv_u32): Likewise.
22019 (vminvq_f32): Likewise.
22020 (vminvq_f64): Likewise.
22021 (vminvq_s8): Likewise.
22022 (vminvq_s16): Likewise.
22023 (vminvq_s32): Likewise.
22024 (vminvq_u8): Likewise.
22025 (vminvq_u16): Likewise.
22026 (vminvq_u32): Likewise.
22027 (vminnmv_f32): Likewise.
22028 (vminnmvq_f32): Likewise.
22029 (vminnmvq_f64): Likewise.
22031 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
22033 * config/aarch64/aarch64-simd.md
22034 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
22035 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
22036 (*aarch64_mul3_elt<mode>): Likewise.
22037 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
22038 (*aarch64_mul3_elt_to_64v2df): Likewise.
22039 (*aarch64_mla_elt<mode>): Likewise.
22040 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
22041 (*aarch64_mls_elt<mode>): Likewise.
22042 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
22043 (*aarch64_fma4_elt<mode>): Likewise.
22044 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
22045 (*aarch64_fma4_elt_to_64v2df): Likewise.
22046 (*aarch64_fnma4_elt<mode>): Likewise.
22047 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
22048 (*aarch64_fnma4_elt_to_64v2df): Likewise.
22049 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
22050 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
22051 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
22052 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
22053 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
22054 (aarch64_sqdmull_lane<mode>_internal): Likewise.
22055 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
22057 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
22059 * config/aarch64/aarch64-simd.md
22060 (aarch64_be_checked_get_lane<mode>): New define_expand.
22061 * config/aarch64/aarch64-simd-builtins.def
22062 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
22063 New builtin definition.
22064 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
22065 Use new safe be builtin.
22067 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
22069 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
22071 (aarch64_be_st1<mode>): Likewise.
22072 (aarch_ld1<VALL:mode>): Define_expand modified.
22073 (aarch_st1<VALL:mode>): Likewise.
22074 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
22075 (UNSPEC_ST1): Likewise.
22077 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
22079 * config/microblaze/microblaze.md: Add trap insn and attribute
22081 2014-01-23 Dodji Seketeli <dodji@redhat.com>
22083 PR preprocessor/58580
22084 * input.h (location_get_source_line): Take an additional line_size
22086 (void diagnostics_file_cache_fini): Declare new function.
22087 * input.c (struct fcache): New type.
22088 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
22089 New static constants.
22090 (diagnostic_file_cache_init, total_lines_num)
22091 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
22092 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
22093 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
22094 (get_next_line, read_next_line, goto_next_line, read_line_num):
22095 New static function definitions.
22096 (diagnostic_file_cache_fini): New function.
22097 (location_get_source_line): Take an additional output line_len
22098 parameter. Re-write using lookup_or_add_file_to_cache_tab and
22100 * diagnostic.c (diagnostic_finish): Call
22101 diagnostic_file_cache_fini.
22102 (adjust_line): Take an additional input parameter for the length
22103 of the line, rather than calculating it with strlen.
22104 (diagnostic_show_locus): Adjust the use of
22105 location_get_source_line and adjust_line with respect to their new
22106 signature. While displaying a line now, do not stop at the first
22107 null byte. Rather, display the zero byte as a space and keep
22108 going until we reach the size of the line.
22109 * Makefile.in: Add vec.o to OBJS-libcommon
22111 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
22112 Ilya Tocar <ilya.tocar@intel.com>
22114 * config/i386/avx512fintrin.h (_mm512_kmov): New.
22115 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
22116 (__builtin_ia32_kmov16): Ditto.
22117 * config/i386/i386.md (UNSPEC_KMOV): New.
22120 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
22122 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
22123 (_mm512_storeu_si512): Ditto.
22125 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
22128 * rtl.h (get_referenced_operands): Declare.
22129 * recog.c (get_referenced_operands): New function.
22130 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
22131 operands have been referenced when recording LO_SUM references.
22133 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
22135 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
22137 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
22139 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
22140 Enable for generic and recent AMD targets.
22142 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
22144 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
22145 ARG_SIZE note when adjustment was eliminated.
22147 2014-01-22 Jeff Law <law@redhat.com>
22149 PR tree-optimization/59597
22150 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
22151 in file. Accept new argument REGISTERING and use it to modify
22152 dump output appropriately.
22153 (register_jump_thread): Corresponding changes.
22154 (mark_threaded_blocks): Reinstate code to cancel unprofitable
22155 thread paths involving joiner blocks. Add code to dump cancelled
22156 jump threading paths.
22158 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
22160 PR rtl-optimization/59477
22161 * lra-constraints.c (inherit_in_ebb): Process call for living hard
22162 regs. Update reloads_num and potential_reload_hard_regs for all insns.
22164 2014-01-22 Tom Tromey <tromey@redhat.com>
22166 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
22168 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
22170 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
22172 PR rtl-optimization/59896
22173 * lra-constraints.c (process_alt_operands): Check unused note for
22174 matched operands of insn with no output reloads.
22176 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
22178 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
22179 (mips_move_from_gpr_cost): Likewise.
22181 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
22183 PR rtl-optimization/59858
22184 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
22185 ira_class_hard_regs_num.
22186 (process_alt_operands): Increase reject for dying matched operand.
22188 2014-01-21 Jakub Jelinek <jakub@redhat.com>
22191 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
22192 smaller than size, perform several stores or loads and stores
22193 at dst + count - size to store or copy all of size bytes, rather
22194 than just last modesize bytes.
22196 2014-01-20 DJ Delorie <dj@redhat.com>
22198 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
22199 that CLOBBERs are REGs before propogating their values.
22201 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
22203 PR middle-end/59789
22204 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
22205 (cgraph_inline_failed_type): New function.
22206 * cgraph.h (DEFCIFCODE): Add type.
22207 (cgraph_inline_failed_type_t): New enum.
22208 (cgraph_inline_failed_type): New prototype.
22209 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
22210 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
22211 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
22212 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
22213 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
22214 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
22215 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
22216 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
22217 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
22218 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
22219 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
22220 OPTIMIZATION_MISMATCH.
22221 * tree-inline.c (expand_call_inline): Emit errors during
22222 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
22224 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
22227 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
22228 mode attribute in insn output.
22230 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
22232 * output.h (output_constant): Delete.
22233 * varasm.c (output_constant): Make private.
22235 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
22237 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
22239 2014-01-20 Jakub Jelinek <jakub@redhat.com>
22241 PR middle-end/59860
22242 * tree.h (fold_builtin_strcat): New prototype.
22243 * builtins.c (fold_builtin_strcat): No longer static. Add len
22244 argument, if non-NULL, don't call c_strlen. Optimize
22245 directly into __builtin_memcpy instead of __builtin_strcpy.
22246 (fold_builtin_2): Adjust fold_builtin_strcat caller.
22247 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
22249 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
22251 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
22252 for SImode_address_operand operands, having only a REG argument.
22254 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
22256 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
22257 loader name using mbig-endian.
22258 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
22260 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
22262 * doc/invoke.texi (-march): Clarify documentation for AArch64.
22263 (-mtune): Likewise.
22266 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
22268 * config/aarch64/aarch64-protos.h
22269 (aarch64_cannot_change_mode_class_ptr): Declare.
22270 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
22271 aarch64_cannot_change_mode_class_ptr): New.
22272 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
22273 backend hook aarch64_cannot_change_mode_class.
22275 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
22277 * common/config/aarch64/aarch64-common.c
22278 (aarch64_handle_option): Don't handle any option order logic here.
22279 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
22280 selected_cpu, warn on architecture version mismatch.
22281 (aarch64_override_options): Fix parsing order for option strings.
22283 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22284 Iain Sandoe <iain@codesourcery.com>
22287 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
22288 warning. Amend comment to reflect current functionality.
22290 2014-01-20 Richard Biener <rguenther@suse.de>
22292 PR middle-end/59860
22293 * builtins.c (fold_builtin_strcat): Remove case better handled
22294 by tree-ssa-strlen.c.
22296 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
22298 * config/aarch64/aarch64.opt
22299 (mcpu, march, mtune): Make case-insensitive.
22301 2014-01-20 Jakub Jelinek <jakub@redhat.com>
22304 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
22305 if operands[1] is a REG or ZERO_EXTEND of a REG.
22307 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
22309 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
22311 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
22313 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
22314 long non-pic millicode calls.
22316 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22318 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
22320 2014-01-19 Kito Cheng <kito@0xlab.org>
22322 * builtins.c (expand_movstr): Check movstr expand done or fail.
22324 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
22325 H.J. Lu <hongjiu.lu@intel.com>
22328 * config/i386/i386.md (*lea<mode>): Zero-extend return register
22329 to DImode for zero-extended addresses.
22331 2014-01-19 Jakub Jelinek <jakub@redhat.com>
22333 PR rtl-optimization/57763
22334 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
22335 on the new indirect jump_insn and increment LABEL_NUSES (label).
22337 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
22341 * config.gcc (x86_archs): New variable.
22342 (x86_64_archs): Likewise.
22343 (x86_cpus): Likewise.
22344 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
22345 --with-arch/--with-cpu= options.
22346 Support --with-arch=/--with-cpu={nehalem,westmere,
22347 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
22349 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
22351 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
22352 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
22354 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
22356 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
22358 2014-01-18 Jakub Jelinek <jakub@redhat.com>
22361 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
22362 clear cpp_get_options (parse_in)->warn_unused_macros for
22363 ix86_target_macros_internal with cpp_define.
22365 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
22367 * jump.c (delete_related_insns): Keep (use (insn))s.
22368 * reorg.c (redundant_insn): Check for barriers too.
22370 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
22372 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
22374 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
22376 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
22377 call to $$dyncall when TARGET_LONG_CALLS is true.
22379 2014-01-17 Jeff Law <law@redhat.com>
22381 * ree.c (combine_set_extension): Temporarily disable test for
22382 changing number of hard registers.
22384 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
22386 PR middle-end/58125
22387 * ipa-inline-analysis.c (inline_free_summary):
22388 Do not free summary of aliases.
22390 2014-01-17 Jakub Jelinek <jakub@redhat.com>
22392 PR middle-end/59706
22393 * gimplify.c (gimplify_expr): Use create_tmp_var
22394 instead of create_tmp_var_raw. If cond doesn't have
22395 integral type, don't add the IFN_ANNOTATE builtin at all.
22397 2014-01-17 Martin Jambor <mjambor@suse.cz>
22400 * ipa-cp.c (prev_edge_clone): New variable.
22401 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
22402 Also resize prev_edge_clone vector.
22403 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
22404 (ipcp_edge_removal_hook): New function.
22405 (ipcp_driver): Register ipcp_edge_removal_hook.
22407 2014-01-17 Andrew Pinski <apinski@cavium.com>
22408 Steve Ellcey <sellcey@mips.com>
22411 * config/mips/mips.c (mips_print_operand): Check operand mode instead
22414 2014-01-17 Jeff Law <law@redhat.com>
22416 PR middle-end/57904
22417 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
22418 so that pass_ccp runs first.
22420 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
22422 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
22423 (ix86_adjust_cost): Use !TARGET_XXX.
22424 (do_reorder_for_imul): Likewise.
22425 (swap_top_of_ready_list): Likewise.
22426 (ix86_sched_reorder): Likewise.
22428 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
22430 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22431 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
22432 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
22433 (intel_memset): New. Duplicate slm_memset.
22434 (intel_cost): New. Duplicate slm_cost.
22435 (m_INTEL): New macro.
22436 (processor_target_table): Add "intel".
22437 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
22438 with PROCESSOR_INTEL for "intel".
22439 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
22440 PROCESSOR_SILVERMONT.
22441 (ix86_issue_rate): Likewise.
22442 (ix86_adjust_cost): Likewise.
22443 (ia32_multipass_dfa_lookahead): Likewise.
22444 (swap_top_of_ready_list): Likewise.
22445 (ix86_sched_reorder): Likewise.
22446 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
22447 instead of TARGET_OPT_AGU.
22448 * config/i386/i386.h (TARGET_INTEL): New.
22449 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
22450 (processor_type): Add PROCESSOR_INTEL.
22451 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
22452 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
22454 2014-01-17 Marek Polacek <polacek@redhat.com>
22457 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
22460 2014-01-17 Richard Biener <rguenther@suse.de>
22462 PR tree-optimization/46590
22463 * opts.c (default_options_table): Add entries for
22464 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
22465 all enabled at -O1 but not for -Og.
22466 * common.opt (fbranch-count-reg): Remove Init(1).
22467 (fmove-loop-invariants): Likewise.
22468 (ftree-pta): Likewise.
22470 2014-01-17 Jakub Jelinek <jakub@redhat.com>
22472 * config/i386/i386.c (ix86_data_alignment): For compatibility with
22473 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
22474 decls to at least the GCC 4.8 used alignments.
22477 * tree-nested.c (convert_nonlocal_reference_stmt,
22478 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
22479 of GIMPLE_BIND stmts, adjust associated decls.
22481 2014-01-17 Richard Biener <rguenther@suse.de>
22483 PR tree-optimization/46590
22484 * vec.h (vec<>::bseach): New member function implementing
22485 binary search according to C89 bsearch.
22486 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
22487 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
22488 bitmap pointer again. Make accesses_in_loop a flat array.
22489 (mem_ref_obstack): New global.
22490 (outermost_indep_loop): Adjust for mem_ref->stored changes.
22491 (mark_ref_stored): Likewise.
22492 (ref_indep_loop_p_2): Likewise.
22493 (set_ref_stored_in_loop): New helper function.
22494 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
22495 (memref_free): Adjust.
22496 (record_mem_ref_loc): Simplify.
22497 (gather_mem_refs_stmt): Adjust.
22498 (sort_locs_in_loop_postorder_cmp): New function.
22499 (analyze_memory_references): Sort accesses_in_loop after
22500 loop postorder number.
22501 (find_ref_loc_in_loop_cmp): New function.
22502 (for_all_locs_in_loop): Find relevant cluster of locs in
22503 accesses_in_loop and iterate without recursion.
22504 (execute_sm): Avoid uninit warning.
22505 (struct ref_always_accessed): Simplify.
22506 (ref_always_accessed::operator ()): Likewise.
22507 (ref_always_accessed_p): Likewise.
22508 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
22509 loop postorder numbers here.
22510 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
22513 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
22516 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
22517 on decls for which assemble_alias has been called.
22519 2014-01-17 Nick Clifton <nickc@redhat.com>
22521 * config/msp430/msp430.opt: (mcpu): New option.
22522 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
22523 (msp430_option_override): Parse target_cpu. If the MCU name
22524 matches a generic string, clear target_mcu.
22525 (msp430_attr): Allow numeric interrupt values up to 63.
22526 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
22527 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
22529 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
22531 * config/msp430/msp430.md (popm): Use %J rather than %I.
22532 (addsi3): Use msp430_nonimmediate_operand for operand 2.
22533 (addhi_cy_i): Use immediate_operand for operand 2.
22534 * doc/invoke.texi: Document -mcpu option.
22536 2014-01-17 Richard Biener <rguenther@suse.de>
22538 PR rtl-optimization/38518
22539 * df.h (df_analyze_loop): Declare.
22540 * df-core.c: Include cfgloop.h.
22541 (df_analyze_1): Split out main part of df_analyze.
22542 (df_analyze): Adjust.
22543 (loop_inverted_post_order_compute): New function.
22544 (loop_post_order_compute): Likewise.
22545 (df_analyze_loop): New function avoiding whole-function
22546 postorder computes.
22547 * loop-invariant.c (find_defs): Use df_analyze_loop.
22548 (find_invariants): Adjust.
22549 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
22551 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
22553 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
22554 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
22556 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
22558 * ipa-ref.c (ipa_remove_stmt_references): Fix references
22559 traversal when removing references.
22561 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
22564 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
22566 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
22568 PR middle-end/56791
22569 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
22570 pushing a reload for an autoinc when we had previously reloaded an
22571 inner part of the address.
22573 2014-01-16 Jakub Jelinek <jakub@redhat.com>
22575 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
22577 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
22578 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
22579 when not giving up or versioning for alias only because of
22581 (vect_analyze_data_ref_dependences): Set to true.
22582 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
22584 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
22585 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
22588 PR middle-end/58344
22589 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
22592 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
22593 operand 0 predicate for gathers, use a new pseudo as subtarget.
22595 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
22597 PR middle-end/59609
22598 * lra-constraints.c (process_alt_operands): Add printing debug info.
22599 Check absence of input/output reloads for matched operands too.
22601 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
22603 PR rtl-optimization/59835
22604 * ira.c (ira_init_register_move_cost): Increase cost for
22607 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
22609 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
22611 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
22614 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
22615 non-register objects. Use gen_(high/low)part more consistently.
22618 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
22621 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
22622 endian support, remove tests for WORDS_BIG_ENDIAN.
22623 (p8_mfvsrd_3_<mode>): Likewise.
22624 (reload_gpr_from_vsx<mode>): Likewise.
22625 (reload_gpr_from_vsxsf): Likewise.
22626 (p8_mfvsrd_4_disf): Likewise.
22628 2014-01-16 Richard Biener <rguenther@suse.de>
22630 PR rtl-optimization/46590
22631 * lcm.c (compute_antinout_edge): Use postorder iteration.
22632 (compute_laterin): Use inverted postorder iteration.
22634 2014-01-16 Nick Clifton <nickc@redhat.com>
22636 PR middle-end/28865
22637 * varasm.c (output_constant): Return the number of bytes actually
22639 (output_constructor_array_range): Update the field size with the
22640 number of bytes emitted by output_constant.
22641 (output_constructor_regular_field): Likewise. Also do not
22642 complain if the total number of bytes emitted is now greater
22643 than the expected fieldpos.
22644 * output.h (output_constant): Update prototype and descriptive comment.
22646 2014-01-16 Marek Polacek <polacek@redhat.com>
22648 PR middle-end/59827
22649 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
22650 it is error_mark_node.
22652 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
22654 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
22655 VALID_AVX256_REG_OR_OI_MODE.
22657 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
22659 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
22660 current procedure should be profiled.
22662 2014-01-15 Andrew Pinski <apinski@cavium.com>
22664 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
22665 of moving from/to the STACK_REG register class.
22667 2014-01-15 Richard Henderson <rth@redhat.com>
22670 * reginfo.c (global_regs_decl): Globalize.
22671 * rtl.h (global_regs_decl): Declare.
22672 * ira.c (do_reload): Diagnose frame_pointer_needed and it
22673 reserved via global_regs.
22675 2014-01-15 Teresa Johnson <tejohnson@google.com>
22677 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
22679 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
22681 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
22682 and vmulosh rather than call gen_vec_widen_smult_*.
22683 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
22684 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
22685 (vec_widen_smult_even_v16qi): Likewise.
22686 (vec_widen_umult_even_v8hi): Likewise.
22687 (vec_widen_smult_even_v8hi): Likewise.
22688 (vec_widen_umult_odd_v16qi): Likewise.
22689 (vec_widen_smult_odd_v16qi): Likewise.
22690 (vec_widen_umult_odd_v8hi): Likewise.
22691 (vec_widen_smult_odd_v8hi): Likewise.
22692 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
22693 vmuloub rather than call gen_vec_widen_umult_*.
22694 (vec_widen_umult_lo_v16qi): Likewise.
22695 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
22696 vmulosb rather than call gen_vec_widen_smult_*.
22697 (vec_widen_smult_lo_v16qi): Likewise.
22698 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
22699 rather than call gen_vec_widen_umult_*.
22700 (vec_widen_umult_lo_v8hi): Likewise.
22701 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
22702 rather than call gen_vec_widen_smult_*.
22703 (vec_widen_smult_lo_v8hi): Likewise.
22705 2014-01-15 Jeff Law <law@redhat.com>
22707 PR tree-optimization/59747
22708 * ree.c (find_and_remove_re): Properly handle case where a second
22709 eliminated extension requires widening a copy created for elimination
22710 of a prior extension.
22711 (combine_set_extension): Ensure that the number of hard regs needed
22712 for a destination register does not change when we widen it.
22714 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
22716 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
22717 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
22718 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
22719 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
22720 (avr-*-rtems*): Likewise.
22721 (bfin*-rtems*): Likewise.
22722 (moxie-*-rtems*): Likewise.
22723 (h8300-*-rtems*): Likewise.
22724 (i[34567]86-*-rtems*): Likewise.
22725 (lm32-*-rtems*): Likewise.
22726 (m32r-*-rtems*): Likewise.
22727 (m68k-*-rtems*): Likewise.
22728 (microblaze*-*-rtems*): Likewise.
22729 (mips*-*-rtems*): Likewise.
22730 (powerpc-*-rtems*): Likewise.
22731 (sh-*-rtems*): Likewise.
22732 (sparc-*-rtems*): Likewise.
22733 (sparc64-*-rtems*): Likewise.
22734 (v850-*-rtems*): Likewise.
22735 (m32c-*-rtems*): Likewise.
22737 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
22739 PR rtl-optimization/59511
22740 * ira.c (ira_init_register_move_cost): Use memory costs for some
22741 cases of register move cost calculations.
22742 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
22743 instead of BB frequency.
22744 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
22745 * lra-assigns.c (find_hard_regno_for): Ditto.
22747 2014-01-15 Richard Biener <rguenther@suse.de>
22749 PR tree-optimization/59822
22750 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
22751 (vectorizable_load): Use it to hoist defs of uses of invariant
22752 loads out of the loop.
22754 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
22755 Kugan Vivekanandarajah <kuganv@linaro.org>
22758 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
22761 2014-01-15 Richard Biener <rguenther@suse.de>
22763 PR rtl-optimization/59802
22764 * lcm.c (compute_available): Use inverted postorder to seed
22765 the initial worklist.
22767 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22770 * config/s390/s390.c (s390_preferred_reload_class): Don't return
22771 ADDR_REGS for invalid symrefs in non-PIC code.
22773 2014-01-15 Jakub Jelinek <jakub@redhat.com>
22776 * builtins.c (determine_block_size): Initialize *probable_max_size
22777 even if len_rtx is CONST_INT.
22779 2014-01-14 Andrew Pinski <apinski@cavium.com>
22781 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
22782 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
22783 (cortexa53_tunings): Likewise.
22784 (aarch64_sched_issue_rate): New function.
22785 (TARGET_SCHED_ISSUE_RATE): Define.
22787 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
22789 * ira-costs.c (find_costs_and_classes): Add missed
22790 ira_init_register_move_cost_if_necessary.
22792 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
22795 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
22797 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
22800 * config/i386/i386.c (type_natural_mode): Add a bool parameter
22801 to indicate if type is used for function return value. Warn ABI
22802 change if the vector mode isn't available for function return value.
22803 (ix86_function_arg_advance): Pass false to type_natural_mode.
22804 (ix86_function_arg): Likewise.
22805 (ix86_gimplify_va_arg): Likewise.
22806 (function_arg_32): Don't warn ABI change.
22807 (ix86_function_value): Pass true to type_natural_mode.
22808 (ix86_return_in_memory): Likewise.
22809 (ix86_struct_value_rtx): Removed.
22810 (TARGET_STRUCT_VALUE_RTX): Likewise.
22812 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22814 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
22815 converting a conditional jump into a conditional return.
22817 2014-01-14 Richard Biener <rguenther@suse.de>
22819 PR tree-optimization/58921
22820 PR tree-optimization/59006
22821 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
22822 hoisting invariant stmts.
22823 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
22824 invariant loads on the preheader edge if possible.
22826 2014-01-14 Joey Ye <joey.ye@arm.com>
22828 * doc/plugin.texi (Building GCC plugins): Update to C++.
22830 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
22832 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
22833 (_mm_rcp28_round_ss): Ditto.
22834 (_mm_rsqrt28_round_sd): Ditto.
22835 (_mm_rsqrt28_round_ss): Ditto.
22836 (_mm_rcp28_sd): Ditto.
22837 (_mm_rcp28_ss): Ditto.
22838 (_mm_rsqrt28_sd): Ditto.
22839 (_mm_rsqrt28_ss): Ditto.
22840 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
22841 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
22842 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
22843 (IX86_BUILTIN_RCP28SD): Ditto.
22844 (IX86_BUILTIN_RCP28SS): Ditto.
22845 (IX86_BUILTIN_RSQRT28SD): Ditto.
22846 (IX86_BUILTIN_RSQRT28SS): Ditto.
22847 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
22848 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
22849 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
22850 (ix86_expand_special_args_builtin): Expand new FTYPE.
22851 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
22852 (srcp14<mode>): Make insn unary.
22853 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
22854 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
22855 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
22856 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
22857 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
22858 Fix rounding: make it SAE only.
22859 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
22861 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
22863 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
22864 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
22865 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
22866 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
22867 (round_saeonly_mask_scalar_operand4): Ditto.
22868 (round_saeonly_mask_scalar_op3): Ditto.
22869 (round_saeonly_mask_scalar_op4): Ditto.
22871 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22873 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22874 Implement -maltivec=be for vec_insert and vec_extract.
22876 2014-01-10 DJ Delorie <dj@redhat.com>
22878 * config/msp430/msp430.md (call_internal): Don't allow memory
22879 references with SP as the base register.
22880 (call_value_internal): Likewise.
22881 * config/msp430/constraints.md (Yc): New. For memory references
22882 that don't use SP as a base register.
22884 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
22885 "an integer without a # prefix"
22886 * config/msp430/msp430.md (epilogue_helper): Use it.
22888 2014-01-13 Jakub Jelinek <jakub@redhat.com>
22891 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
22892 AVX512F gather builtins.
22893 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
22894 on gather decls with INTEGER_TYPE masktype.
22895 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
22896 directly into the builtin rather than hoisting it before loop.
22898 PR tree-optimization/59387
22899 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
22900 (scev_const_prop): If folded_casts and type has undefined overflow,
22901 use force_gimple_operand instead of force_gimple_operand_gsi and
22902 for each added stmt if it is assign with
22903 arith_code_with_undefined_signed_overflow, call
22904 rewrite_to_defined_overflow.
22905 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
22906 gimple-fold.h instead.
22907 (arith_code_with_undefined_signed_overflow,
22908 rewrite_to_defined_overflow): Moved to ...
22909 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
22910 rewrite_to_defined_overflow): ... here. No longer static.
22911 Include gimplify-me.h.
22912 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
22913 rewrite_to_defined_overflow): New prototypes.
22915 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22917 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
22919 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
22921 * builtins.c (get_object_alignment_2): Minor tweak.
22922 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
22924 2014-01-13 Christian Bruel <christian.bruel@st.com>
22926 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
22927 optimized non constant lengths.
22929 2014-01-13 Jakub Jelinek <jakub@redhat.com>
22932 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
22933 load as __atomic_load_N if possible.
22935 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
22937 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
22939 (rs6000_expand_builtin): Adjust call.
22941 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
22944 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
22945 * config/rs6000/rs6000.c: Include target-globals.h.
22946 (rs6000_set_current_function): Instead of doing target_reinit
22947 unconditionally, use save_target_globals_default_opts and
22948 restore_target_globals.
22950 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
22952 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
22953 (rs6000_expand_builtin): Handle mffs and mtfsf.
22954 (rs6000_init_builtins): Define mffs and mtfsf.
22955 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
22956 (rs6000_mffs): New pattern.
22957 (rs6000_mtfsf): New pattern.
22959 2014-01-11 Bin Cheng <bin.cheng@arm.com>
22961 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
22962 Start narrowing with START. Apply candidate-use pair
22963 and check overall cost in narrowing.
22964 (iv_ca_prune): Pass new argument.
22966 2014-01-10 Jeff Law <law@redhat.com>
22968 PR middle-end/59743
22969 * ree.c (combine_reaching_defs): Ensure the defining statement
22970 occurs before the extension when optimizing extensions with
22971 different source and destination hard registers.
22973 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
22976 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
22977 vtables into the type inheritance graph.
22979 2014-01-10 Jakub Jelinek <jakub@redhat.com>
22981 PR rtl-optimization/59754
22982 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
22983 modes in the REGNO != REGNO case.
22985 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22987 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
22989 2014-01-10 Jakub Jelinek <jakub@redhat.com>
22991 PR tree-optimization/59745
22992 * tree-predcom.c (tree_predictive_commoning_loop): Call
22993 free_affine_expand_cache if giving up because components is NULL.
22995 * target-globals.c (save_target_globals): Allocate < 4KB structs using
22996 GC in payload of target_globals struct instead of allocating them on
22997 the heap and the larger structs separately using GC.
22998 * target-globals.h (struct target_globals): Make regs, hard_regs,
22999 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
23000 of GTY((skip)) and change type to void *.
23001 (reset_target_globals): Cast loads from those fields to corresponding
23004 2014-01-10 Steve Ellcey <sellcey@mips.com>
23007 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
23008 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
23009 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
23011 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
23014 * aarch64-modes.def (CC_Zmode): New flags mode.
23015 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
23016 represents an equality.
23017 (aarch64_get_condition_code): Handle CC_Zmode.
23018 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
23020 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23022 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
23023 extraction in good case.
23025 2014-01-10 Richard Biener <rguenther@suse.de>
23027 PR tree-optimization/59374
23028 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
23029 checking after SLP discovery. Mark stmts not participating
23030 in any SLP instance properly.
23032 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23034 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
23035 when handling a SET rtx.
23037 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23039 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
23040 (cortex-a57): Likewise.
23041 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
23043 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23045 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
23046 non-iwmmxt builtins.
23048 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
23052 * ipa-devirt.c record_target_from_binfo): Take as argument
23053 stack of binfos and lookup matching one for virtual inheritance.
23054 (possible_polymorphic_call_targets_1): Update.
23056 2014-01-10 Huacai Chen <chenhc@lemote.com>
23058 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
23059 kernel strings for Loongson-2E/2F/3A.
23061 2014-01-10 Jakub Jelinek <jakub@redhat.com>
23063 PR middle-end/59670
23064 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
23065 is_gimple_call before calling gimple_call_internal_p.
23067 2014-01-09 Steve Ellcey <sellcey@mips.com>
23069 * Makefile.in (TREE_FLOW_H): Remove.
23070 (TREE_SSA_H): Add file names from tree-flow.h.
23071 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
23072 * tree.h: Remove tree-flow.h reference.
23073 * hash-table.h: Remove tree-flow.h reference.
23074 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
23075 reference with tree-ssa-loop.h.
23077 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23079 * doc/invoke.texi: Add -maltivec={be,le} options, and document
23080 default element-order behavior for -maltivec.
23081 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
23082 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
23083 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
23084 when targeting big endian, at least for now.
23085 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
23087 2014-01-09 Jakub Jelinek <jakub@redhat.com>
23089 PR middle-end/47735
23090 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
23091 var satisfies use_register_for_decl, just take into account type
23092 alignment, rather than decl alignment.
23094 PR tree-optimization/59622
23095 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
23096 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
23097 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
23098 Don't devirtualize for inplace at all. For targets.length () == 1,
23099 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
23101 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
23103 * config/i386/i386.md (cpu): Remove the unused btver1.
23105 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
23107 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
23109 2014-01-09 Jakub Jelinek <jakub@redhat.com>
23112 * tree-core.h (struct target_globals): New forward declaration.
23113 (struct tree_target_option): Add globals field.
23114 * tree.h (TREE_TARGET_GLOBALS): Define.
23115 (prepare_target_option_nodes_for_pch): New prototype.
23116 * target-globals.h (struct target_globals): Define even if
23117 !SWITCHABLE_TARGET.
23118 * tree.c (prepare_target_option_node_for_pch,
23119 prepare_target_option_nodes_for_pch): New functions.
23120 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
23121 * config/i386/i386.c: Include target-globals.h.
23122 (ix86_set_current_function): Instead of doing target_reinit
23123 unconditionally, use save_target_globals_default_opts and
23124 restore_target_globals.
23126 2014-01-09 Richard Biener <rguenther@suse.de>
23128 PR tree-optimization/59715
23129 * tree-cfg.h (split_critical_edges): Declare.
23130 * tree-cfg.c (split_critical_edges): Export.
23131 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
23133 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
23135 * cfgexpand.c (expand_stack_vars): Optionally disable
23136 asan stack protection.
23137 (expand_used_vars): Likewise.
23138 (partition_stack_vars): Likewise.
23139 * asan.c (asan_emit_stack_protection): Optionally disable
23140 after return stack usage.
23141 (instrument_derefs): Optionally disable memory access instrumentation.
23142 (instrument_builtin_call): Likewise.
23143 (instrument_strlen_call): Likewise.
23144 (asan_protect_global): Optionally disable global variables protection.
23145 * doc/invoke.texi: Added doc for new options.
23146 * params.def: Added new options.
23147 * params.h: Likewise.
23149 2014-01-09 Jakub Jelinek <jakub@redhat.com>
23151 PR rtl-optimization/59724
23152 * ifcvt.c (cond_exec_process_if_block): Don't call
23153 flow_find_head_matching_sequence with 0 longest_match.
23154 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
23155 non-active insns if !stop_after.
23156 (try_head_merge_bb): Revert 2014-01-07 changes.
23158 2014-01-08 Jeff Law <law@redhat.com>
23160 * ree.c (get_sub_rtx): New function, extracted from...
23161 (merge_def_and_ext): Here.
23162 (combine_reaching_defs): Use get_sub_rtx.
23164 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
23166 * cgraph.h (varpool_variable_node): Do not choke on null node.
23168 2014-01-08 Catherine Moore <clm@codesourcery.com>
23170 * config/mips/mips.md (simple_return): Attempt to use JRC
23172 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
23174 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
23176 PR rtl-optimization/59137
23177 * reorg.c (steal_delay_list_from_target): Call update_block for
23179 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
23181 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23183 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
23184 two duplicate entries.
23186 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
23189 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
23191 * config/mips/mips.c (mips_truncated_op_cost): New function.
23192 (mips_rtx_costs): Adjust test for BADDU.
23193 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
23195 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
23197 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
23198 (*baddu_si): ...this new pattern.
23200 2014-01-08 Jakub Jelinek <jakub@redhat.com>
23203 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
23205 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
23207 PR middle-end/57748
23208 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
23210 (expand_expr, expand_normal): Adjust.
23211 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
23212 inner_reference_p. Use inner_reference_p to expand inner references.
23213 (store_expr): Adjust.
23214 * cfgexpand.c (expand_call_stmt): Adjust.
23216 2014-01-08 Rong Xu <xur@google.com>
23218 * gcov-io.c (gcov_var): Move from gcov-io.h.
23219 (gcov_position): Ditto.
23220 (gcov_is_error): Ditto.
23221 (gcov_rewrite): Ditto.
23222 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
23223 only part to libgcc/libgcov.h.
23225 2014-01-08 Marek Polacek <polacek@redhat.com>
23227 PR middle-end/59669
23228 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
23230 2014-01-08 Marek Polacek <polacek@redhat.com>
23233 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
23235 2014-01-08 Jakub Jelinek <jakub@redhat.com>
23237 PR rtl-optimization/59649
23238 * stor-layout.c (get_mode_bounds): For BImode return
23239 0 and STORE_FLAG_VALUE.
23241 2014-01-08 Richard Biener <rguenther@suse.de>
23243 PR middle-end/59630
23244 * gimple.h (is_gimple_builtin_call): Remove.
23245 (gimple_builtin_call_types_compatible_p): New.
23246 (gimple_call_builtin_p): New overload.
23247 * gimple.c (is_gimple_builtin_call): Remove.
23248 (validate_call): Rename to ...
23249 (gimple_builtin_call_types_compatible_p): ... this and export. Also
23250 check return types.
23251 (validate_type): New static function.
23252 (gimple_call_builtin_p): New overload and adjust.
23253 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
23254 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
23255 (gimple_fold_stmt_to_constant_1): Likewise.
23256 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
23258 2014-01-08 Richard Biener <rguenther@suse.de>
23260 PR middle-end/59471
23261 * gimplify.c (gimplify_expr): Gimplify register-register type
23262 VIEW_CONVERT_EXPRs to separate stmts.
23264 2014-01-07 Jeff Law <law@redhat.com>
23266 PR middle-end/53623
23267 * ree.c (combine_set_extension): Handle case where source
23268 and destination registers in an extension insn are different.
23269 (combine_reaching_defs): Allow source and destination registers
23270 in extension to be different under limited circumstances.
23271 (add_removable_extension): Remove restriction that the
23272 source and destination registers in the extension are the same.
23273 (find_and_remove_re): Emit a copy from the extension's
23274 destination to its source after the defining insn if
23275 the source and destination registers are different.
23277 PR middle-end/59285
23278 * ifcvt.c (merge_if_block): If we are merging a block with more than
23279 one successor with a block with no successors, remove any BARRIER
23280 after the second block.
23282 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
23284 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
23286 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
23289 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
23290 for 14-bit register offsets when INT14_OK_STRICT is false.
23292 2014-01-07 Roland Stigge <stigge@antcom.de>
23293 Michael Meissner <meissner@linux.vnet.ibm.com>
23296 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
23297 Only check TFmode for SPE constants. Don't check TImode or TDmode.
23299 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
23301 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
23304 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
23306 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
23307 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
23308 rtx is const0_rtx or not.
23310 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
23313 * target-globals.c (save_target_globals): Remove this_fn_optab
23315 * toplev.c: Include optabs.h.
23316 (target_reinit): Temporarily restore the global options if another
23317 set of options are in force.
23319 2014-01-07 Jakub Jelinek <jakub@redhat.com>
23321 PR rtl-optimization/58668
23322 * cfgcleanup.c (flow_find_cross_jump): Don't count
23323 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
23324 to determine what is counted.
23325 (flow_find_head_matching_sequence): Use active_insn_p to determine
23327 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
23329 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
23330 determine what is counted.
23332 PR tree-optimization/59643
23333 * tree-predcom.c (split_data_refs_to_components): If one dr is
23334 read and one write, determine_offset fails and the write isn't
23335 in the bad component, just put the read into the bad component.
23337 2014-01-07 Mike Stump <mikestump@comcast.net>
23338 Jakub Jelinek <jakub@redhat.com>
23341 * tree-core.h (struct tree_optimization_option): Change optabs
23342 type from unsigned char * to void *.
23343 * optabs.c (init_tree_optimization_optabs): Adjust
23344 TREE_OPTIMIZATION_OPTABS initialization.
23346 2014-01-06 Jakub Jelinek <jakub@redhat.com>
23349 * config/i386/i386.h (struct machine_function): Add
23350 no_drap_save_restore field.
23351 * config/i386/i386.c (ix86_save_reg): Use
23352 !cfun->machine->no_drap_save_restore instead of
23353 crtl->stack_realign_needed.
23354 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
23355 this function clears frame_pointer_needed. Set
23356 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
23357 and DRAP reg is needed.
23359 2014-01-06 Marek Polacek <polacek@redhat.com>
23362 * doc/implement-c.texi: Mention that other integer types are
23363 permitted as bit-field types in strictly conforming mode.
23365 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
23367 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
23368 is newly allocated.
23370 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
23372 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
23374 2014-01-06 Martin Jambor <mjambor@suse.cz>
23377 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
23379 * ipa-prop.c (ipa_print_node_params): Fix indentation.
23381 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
23385 * var-tracking.c (add_stores): Preserve the value of the source even if
23386 we don't record the store.
23388 2014-01-06 Terry Guo <terry.guo@arm.com>
23390 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
23392 2014-01-05 Iain Sandoe <iain@codesourcery.com>
23395 * config/darwin.c (darwin_function_section): Adjust return values to
23396 correspond to optimisation changes made in r206070.
23398 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
23400 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
23401 from prefetch_block tune setting.
23402 (nocona_cost): Correct size of prefetch block to 64.
23404 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
23406 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
23407 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
23408 used to save the static chain register in the computation of the offset
23409 from which the FP registers need to be restored.
23411 2014-01-04 Jakub Jelinek <jakub@redhat.com>
23413 PR tree-optimization/59519
23414 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
23415 ICE if get_current_def (current_new_name) is already non-NULL, as long
23416 as it is a phi result of some other phi in *new_exit_bb that has
23419 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
23420 or vmovdqu* for misaligned_operand.
23421 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
23422 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
23423 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
23424 aligned_mem for AVX512F masked aligned load and store builtins and for
23425 non-temporal moves.
23427 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
23429 PR tree-optimization/59651
23430 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
23431 Address range for negative step should be added by TYPE_SIZE_UNIT.
23433 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
23435 * config/m68k/m68k.c (handle_move_double): Handle pushes with
23436 overlapping registers also for registers other than the stack pointer.
23438 2014-01-03 Marek Polacek <polacek@redhat.com>
23441 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
23444 2014-01-03 Jakub Jelinek <jakub@redhat.com>
23447 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
23450 * config/i386/i386.md (MODE_SIZE): New mode attribute.
23451 (push splitter): Use <P:MODE_SIZE> instead of
23452 GET_MODE_SIZE (<P:MODE>mode).
23453 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
23454 (mov -1, reg peephole2): Likewise.
23455 * config/i386/sse.md (*mov<mode>_internal,
23456 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
23457 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
23458 *<code><mode>3, *andnot<mode>3<mask_name>,
23459 <mask_codefor><code><mode>3<mask_name>): Likewise.
23460 * config/i386/subst.md (mask_mode512bit_condition,
23461 sd_mask_mode512bit_condition): Likewise.
23463 2014-01-02 Xinliang David Li <davidxl@google.com>
23465 PR tree-optimization/59303
23466 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
23467 (dump_predicates): Better output format.
23468 (pred_equal_p): New function.
23469 (is_neq_relop_p): Ditto.
23470 (is_neq_zero_form_p): Ditto.
23471 (pred_expr_equal_p): Ditto.
23472 (pred_neg_p): Ditto.
23473 (simplify_pred): Ditto.
23474 (simplify_preds_2): Ditto.
23475 (simplify_preds_3): Ditto.
23476 (simplify_preds_4): Ditto.
23477 (simplify_preds): Ditto.
23478 (push_pred): Ditto.
23479 (push_to_worklist): Ditto.
23480 (get_pred_info_from_cmp): Ditto.
23481 (is_degenerated_phi): Ditto.
23482 (normalize_one_pred_1): Ditto.
23483 (normalize_one_pred): Ditto.
23484 (normalize_one_pred_chain): Ditto.
23485 (normalize_preds): Ditto.
23486 (normalize_cond_1): Remove function.
23487 (normalize_cond): Ditto.
23488 (is_gcond_subset_of): Ditto.
23489 (is_subset_of_any): Ditto.
23490 (is_or_set_subset_of): Ditto.
23491 (is_and_set_subset_of): Ditto.
23492 (is_norm_cond_subset_of): Ditto.
23493 (pred_chain_length_cmp): Ditto.
23494 (convert_control_dep_chain_into_preds): Type change.
23495 (find_predicates): Ditto.
23496 (find_def_preds): Ditto.
23497 (destroy_predicates_vecs): Ditto.
23498 (find_matching_predicates_in_rest_chains): Ditto.
23499 (use_pred_not_overlap_with_undef_path_pred): Ditto.
23500 (is_pred_expr_subset): Ditto.
23501 (is_pred_chain_subset_of): Ditto.
23502 (is_included_in): Ditto.
23503 (is_superset_of): Ditto.
23505 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
23507 Update copyright years.
23509 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
23511 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
23512 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
23513 config/arc/arc.md, config/arc/arc.opt,
23514 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
23515 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
23516 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
23517 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
23518 config/linux-protos.h, config/linux.c, config/winnt-c.c,
23519 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
23520 vtable-verify.c, vtable-verify.h: Use the standard form for the
23523 2014-01-02 Tobias Burnus <burnus@net-b.de>
23525 * gcc.c (process_command): Update copyright notice dates.
23526 * gcov-dump.c: Ditto.
23528 * doc/cpp.texi: Bump @copying's copyright year.
23529 * doc/cppinternals.texi: Ditto.
23530 * doc/gcc.texi: Ditto.
23531 * doc/gccint.texi: Ditto.
23532 * doc/gcov.texi: Ditto.
23533 * doc/install.texi: Ditto.
23534 * doc/invoke.texi: Ditto.
23536 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23538 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
23540 2014-01-01 Jakub Jelinek <jakub@redhat.com>
23542 * config/i386/sse.md (*mov<mode>_internal): Guard
23543 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
23545 PR rtl-optimization/59647
23546 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
23547 new_rtx into UNSIGNED_FLOAT rtxes.
23549 Copyright (C) 2014 Free Software Foundation, Inc.
23551 Copying and distribution of this file, with or without modification,
23552 are permitted in any medium without royalty provided the copyright
23553 notice and this notice are preserved.