get_ebb_head_tail works with rtx_insn
[official-gcc.git] / gcc / ChangeLog
blob995ba931d00b079f9c5d12a5c57519b91d7fc17d
1 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
3         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
4         "tailp" from rtx * to rtx_insn **.
6         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
7         from rtx to rtx_insn *.
8         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
9         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
10         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
11         rtx to rtx_insn *.
12         * modulo-sched.c (const_iteration_count): Strengthen return type
13         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
14         use of NULL_RTX with NULL when working with insns.
15         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
16         to rtx_insn *.
17         (sms_schedule): Likewise.
18         * sched-rgn.c (init_ready_list): Likewise, also for locals
19         "src_head" and "src_next_tail".
20         (compute_block_dependences): Likewise.
21         (free_block_dependencies): Likewise.
22         (debug_rgn_dependencies): Likewise.
23         (free_rgn_deps): Likewise.
24         (compute_priorities): Likewise.
25         (schedule_region): Likewise.
26         * sel-sched.c (find_ebb_boundaries): Likewise.
28         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
29         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
31 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
33         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
34         from rtx to rtx_insn *.
35         (new_seginfo): Likewise for param "insn".
36         (create_pre_exit): Likewise for locals "last_insn",
37         "before_return_copy", "return_copy".
38         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
39         "mode_set".
41 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
43         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
44         from rtx to rtx_insn *.
45         (lra_push_insn): Likewise for 1st param.
46         (lra_push_insn_and_update_insn_regno_info): Likewise.
47         (lra_pop_insn): Likewise for return type.
48         (lra_invalidate_insn_data): Likewise for 1st param.
49         (lra_set_insn_deleted): Likewise.
50         (lra_delete_dead_insn): Likewise.
51         (lra_process_new_insns): Likewise for first 3 params.
52         (lra_set_insn_recog_data): Likewise for 1st param.
53         (lra_update_insn_recog_data): Likewise.
54         (lra_set_used_insn_alternative): Likewise.
55         (lra_invalidate_insn_regno_info): Likewise.
56         (lra_update_insn_regno_info): Likewise.
57         (lra_former_scratch_operand_p): Likewise.
58         (lra_eliminate_regs_1): Likewise.
59         (lra_get_insn_recog_data): Likewise.
61         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
62         rtx to rtx_insn *.
64         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
65         "mv1" and "mv2".
66         (substitute_within_insn): New.
67         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
68         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
69         Replace call to "substitute" with call to substitute_within_insn.
71         * lra-constraints.c (curr_insn): Strengthen from rtx to
72         rtx_insn *.
73         (get_equiv_with_elimination): Likewise for param "insn".
74         (match_reload): Strengthen params "before" and "after" from rtx *
75         to rtx_insn **.
76         (emit_spill_move): Likewise for return type.  Add a checked cast
77         to rtx_insn * on result of gen_move_insn for now.
78         (check_and_process_move): Likewise for local "before".  Replace
79         NULL_RTX with NULL when referring to insns.
80         (process_addr_reg): Strengthen params "before" and "after" from
81         rtx * to rtx_insn **.
82         (insert_move_for_subreg): Likewise.
83         (simplify_operand_subreg): Strengthen locals "before" and "after"
84         from rtx to rtx_insn *.
85         (process_address_1): Strengthen params "before" and "after" from
86         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
87         rtx to rtx_insn *.
88         (process_address): Strengthen params "before" and "after" from
89         rtx * to rtx_insn **.
90         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
91         (curr_insn_transform): Strengthen locals "before" and "after"
92         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
93         to insns.
94         (loc_equivalence_callback): Update cast of "data", changing
95         resulting type from rtx to rtx_insn *.
96         (substitute_pseudo_within_insn): New.
97         (inherit_reload_reg): Strengthen param "insn" from rtx to
98         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
99         NULL when referring to insns.  Add a checked cast to rtx_insn *
100         when using usage_insn to invoke lra_update_insn_regno_info.
101         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
102         likewise for locals "restore", "save".  Add checked casts to
103         rtx_insn * when using usage_insn to invoke
104         lra_update_insn_regno_info and lra_process_new_insns.  Replace
105         NULL_RTX with NULL when referring to insns.
106         (split_if_necessary): Strengthen param "insn" from rtx to
107         rtx_insn *.
108         (update_ebb_live_info): Likewise for params "head", "tail" and local
109         "prev_insn".
110         (get_last_insertion_point): Likewise for return type and local "insn".
111         (get_live_on_other_edges): Likewise for local "last".
112         (inherit_in_ebb): Likewise for params "head", "tail" and locals
113         "prev_insn", "next_insn", "restore".
114         (remove_inheritance_pseudos): Likewise for local "prev_insn".
115         (undo_optional_reloads): Likewise for local "insn".
117         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
118         "insn".
119         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
120         insns.
121         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
122         rtx_insn *.
123         (spill_pseudos): Likewise for local "insn".
124         (init_elimination): Likewise.
125         (process_insn_for_elimination): Likewise for param "insn".
127         * lra-lives.c (curr_insn): Likewise.;
129         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
130         (remove_pseudos): Likewise for param "insn".
131         (spill_pseudos): Likewise for local "insn".
132         (lra_final_code_change): Likewise for locals "insn", "curr".
134         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
135         (lra_set_insn_deleted): Likewise.
136         (lra_delete_dead_insn): Likewise, and for local "prev".
137         (new_insn_reg): Likewise for param "insn".
138         (lra_set_insn_recog_data): Likewise.
139         (lra_update_insn_recog_data): Likewise.
140         (lra_set_used_insn_alternative): Likewise.
141         (get_insn_freq): Likewise.
142         (invalidate_insn_data_regno_info): Likewise.
143         (lra_invalidate_insn_regno_info): Likewise.
144         (lra_update_insn_regno_info): Likewise.
145         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
146         vec<rtx_insn *>.
147         (lra_push_insn_1): Strengthen param "insn" from rtx to
148         rtx_insn *.
149         (lra_push_insn): Likewise.
150         (lra_push_insn_and_update_insn_regno_info): Likewise.
151         (lra_pop_insn): Likewise for return type and local "insn".
152         (push_insns): Likewise for params "from", "to", and local "insn".
153         (setup_sp_offset): Likewise for params "from", "last" and locals
154         "before", "insn".
155         (lra_process_new_insns): Likewise for params "insn", "before",
156         "after" and local "last".
157         (struct sloc): Likewise for field "insn".
158         (lra_former_scratch_operand_p): Likewise for param "insn".
159         (remove_scratches): Likewise for locals "insn", "last".
160         (check_rtl): Likewise for local "insn".
161         (add_auto_inc_notes): Likewise for param "insn".
162         (update_inc_notes): Likewise for local "insn".
163         (lra): Replace NULL_RTX with NULL when referring to insn.
165 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
167         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
168         to rtx_insn *.
169         (resolve_reg_notes): Likewise.
170         (resolve_simple_move): Likewise for return type, param "insn", and
171         locals "insns", "minsn".
172         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
173         (resolve_use): Likewise.
174         (resolve_debug): Likewise.
175         (find_decomposable_shift_zext): Likewise.
176         (resolve_shift_zext): Likewise for return type, param "insn", and
177         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
178         (decompose_multiword_subregs): Likewise for local "insn",
179         "orig_insn", "decomposed_shift", "end".
181 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
183         * basic-block.h (basic_block split_edge_and_insert): Strengthen
184         param "insns" from rtx to rtx_insn *.
186         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
187         rtx to rtx_insn *.
188         (struct iv_to_split): Likewise.
189         (loop_exit_at_end_p): Likewise for local "insn".
190         (split_edge_and_insert): Likewise for param "insns".
191         (compare_and_jump_seq): Likewise for return type, param "cinsn",
192         and locals "seq", "jump".
193         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
194         "branch_code"; update invocations of compare_and_jump_seq to
195         eliminate NULL_RTX in favor of NULL.
196         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
197         rtx to rtx_insn *.
198         (reset_debug_uses_in_loop): Likewise.
199         (analyze_insn_to_expand_var): Likewise for param "insn".
200         (analyze_iv_to_split_insn): Likewise.
201         (analyze_insns_in_loop): Likewise for local "insn".
202         (insert_base_initialization): Likewise for param
203         "insn" and local "seq".
204         (split_iv): Likewise for param "insn" and local "seq".
205         (expand_var_during_unrolling): Likewise for param "insn".
206         (insert_var_expansion_initialization): Likewise for local "seq".
207         (combine_var_copies_in_loop_exit): Likewise.
208         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
209         "insn".
210         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
211         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
212         "next".
214 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
216         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
217         rtx_insn *.
218         (iv_analyze_result): Likewise.
219         (iv_analyze_expr): Likewise.
220         (biv_p): Likewise.
222         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
223         local "def_insn" from rtx to rtx_insn *.
224         (get_biv_step_1): Likewise for local "insn".
225         (iv_analyze_expr): Likewise for param "insn".
226         (iv_analyze_def): Likewise for local "insn".
227         (iv_analyze_op): Likewise for param "insn".
228         (iv_analyze): Likewise.
229         (iv_analyze_result): Likewise.
230         (biv_p): Likewise.
231         (suitable_set_for_replacement): Likewise.
232         (simplify_using_initial_values): Likewise for local "insn".
233         (iv_number_of_iterations): Likewise for param "insn".
234         (check_simple_exit): Add checked cast to rtx_insn when invoking
235         iv_number_of_iterations for now (until get_condition is
236         strengthened).
238         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
239         "insn" from rtx to rtx_insn *.
240         (analyze_insns_in_loop): Likewise for local "insn".
242 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
244         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
245         to rtx_insn *.
246         (struct invariant): Likewise.
247         (hash_invariant_expr_1): Likewise for param "insn".
248         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
249         (find_exits): Likewise for local "insn".
250         (create_new_invariant): Likewise for param "insn".
251         (check_dependencies): Likewise.
252         (find_invariant_insn): Likewise.
253         (record_uses): Likewise.
254         (find_invariants_insn): Likewise.
255         (find_invariants_bb): Likewise for local "insn".
256         (get_pressure_class_and_nregs): Likewise for param "insn".
257         (calculate_loop_reg_pressure): Likewise for local "insn".
259 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
261         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
262         to rtx_insn *.
263         (add_test): Likewise for locals "seq", "jump".
264         (doloop_modify): Likewise for locals "sequence", "jump_insn".
266 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
268         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
269         rtx_insn *.
270         (rebuild_jump_labels_chain): Likewise for param "chain".
272         * cfgexpand.c (pass_expand::execute): Add checked cast to
273         rtx_insn * when calling rebuild_jump_labels_chain in region where
274         we know e->insns.r is non-NULL.
276         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
277         rtx_insn *.
278         (rebuild_jump_labels): Likewise.
279         (rebuild_jump_labels_chain): Likewise for param "chain".
280         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
281         (init_label_info): Likewise for param "f".
282         (maybe_propagate_label_ref): Likewise for params "jump_insn",
283         "prev_nonjump_insn".
284         (mark_all_labels): Likewise for param "f" and locals "insn",
285         "prev_nonjump_insn".
287 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
289         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
290         from rtx to rtx_insn *insn.
291         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
292         (ira_add_allocno_copy): Likewise.
293         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
294         rtx to rtx_insn *.
295         (ira_create_copy): Likewise.
296         (ira_add_allocno_copy): Likewise.
297         (create_bb_allocnos): Likewise for local "insn".
298         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
299         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
300         process_regs_for_copy for rtx_insn * param.
301         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
302         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
303         process_regs_for_copy for rtx_insn * param.
304         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
305         * ira-costs.c (record_reg_classes): Likewise for param "insn".
306         (record_operand_costs): Likewise.
307         (scan_one_insn): Likewise for return type, and for param "insn".
308         (process_bb_for_costs): Likewise for local "insn".
309         (process_bb_node_for_hard_reg_moves): Likewise.
310         * ira-emit.c (struct move): Likewise for field "insn".
311         (create_move): Eliminate use of NULL_RTX when dealing with an
312         rtx_insn *.
313         (emit_move_list): Strengthen return type and locals "result",
314         "insn" from rtx to rtx_insn *insn.
315         (emit_moves): Likewise for locals "insns", "tmp".
316         (ira_emit): Likewise for local "insn".
317         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
318         "insn".
319         (find_call_crossed_cheap_reg): Likewise.
320         (process_bb_node_lives): Likewise for local "insn".
321         * ira.c (decrease_live_ranges_number): Likewise.
322         (compute_regs_asm_clobbered): Likewise.
323         (build_insn_chain): Likewise.
324         (find_moveable_pseudos): Likewise, also locals "def_insn",
325         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
326         to rtx_insn **.  Add a checked cast when assigning from
327         "closest_use" into closest_uses array in a region where we know
328         it's a non-NULL insn.
329         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
330         to rtx_insn *.
331         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
332         "last_interesting_insn", "uin".
333         (move_unallocated_pseudos): Likewise for locals "def_insn",
334         "move_insn", "newinsn".
336 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
338         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
339         Strengthen locals "done_label", "do_error" from rtx to
340         rtx_code_label *.
341         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
342         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
343         rtx_code_label *.
344         (ubsan_expand_si_overflow_neg_check): Likewise for locals
345         "done_label", "do_error" to rtx_code_label * and local  "last" to
346         rtx_insn *.
347         (ubsan_expand_si_overflow_mul_check): Likewise for locals
348         "done_label", "do_error", "large_op0", "small_op0_large_op1",
349         "one_small_one_large", "both_ops_large", "after_hipart_neg",
350         "after_lopart_neg", "do_overflow", "hipart_different"  to
351         rtx_code_label * and local  "last" to rtx_insn *.
353 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
355         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
356         "insn" and "move_insn" from rtx to rtx_insn *.
358 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
360         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
361         rtx_insn *.
362         (cheap_bb_rtx_cost_p): Likewise.
363         (first_active_insn): Likewise for return type and local "insn".
364         (last_active_insn):  Likewise for return type and locals "insn",
365         "head".
366         (struct noce_if_info): Likewise for fields "jump", "insn_a",
367         "insn_b".
368         (end_ifcvt_sequence): Likewise for return type and locals "insn",
369         "seq".
370         (noce_try_move): Likewise for local "seq".
371         (noce_try_store_flag): Likewise.
372         (noce_try_store_flag_constants): Likewise.
373         (noce_try_addcc): Likewise.
374         (noce_try_store_flag_mask): Likewise.
375         (noce_try_cmove): Likewise.
376         (noce_try_minmax): Likewise.
377         (noce_try_abs): Likewise.
378         (noce_try_sign_mask): Likewise.
379         (noce_try_bitop): Likewise.
380         (noce_can_store_speculate_p): Likewise for local "insn".
381         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
382         seq".
383         (check_cond_move_block): Likewise for local "insn".
384         (cond_move_convert_if_block): Likewise.
385         (cond_move_process_if_block): Likewise for locals "seq",
386         "loc_insn".
387         (noce_find_if_block): Likewise for local "jump".
388         (merge_if_block): Likewise for local "last".
389         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
390         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
391         (block_has_only_trap): Likewise for return type and local "trap".
392         (find_if_case_1): Likewise for local "jump".
393         (dead_or_predicable): Likewise for locals "head", "end", "jump",
394         "insn".
396 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
398         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
399         "last_insn", "loop_end" from rtx to rtx_insn *.
401         * hw-doloop.c (scan_loop): Likewise for local "insn".
402         (discover_loop): Likewise for param "tail_insn".
403         (discover_loops): Likewise for local "tail".
405         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
406         cast to rtx_insn * when assigning from an rtx local to a
407         hwloop_info's "last_insn" field.
409 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
411         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
412         (add_delay_dependencies): Strengthen local "pro" from rtx to
413         rtx_insn *.
414         (recompute_todo_spec): Likewise.
415         (dep_cost_1): Likewise for locals "insn", "used".
416         (schedule_insn): Likewise for local "dbg".
417         (schedule_insn): Likewise for locals "pro", "next".
418         (unschedule_insns_until): Likewise for local "con".
419         (restore_pattern): Likewise for local "next".
420         (estimate_insn_tick): Likewise for local "pro".
421         (resolve_dependencies): Likewise for local "next".
422         (fix_inter_tick): Likewise.
423         (fix_tick_ready): Likewise for local "pro".
424         (add_to_speculative_block): Likewise for locals "check", "twin",
425         "pro".
426         (sched_extend_bb): Likewise for locals "end", "insn".
427         (init_before_recovery): Likewise for local "x".
428         (sched_create_recovery_block): Likewise for local "barrier".
429         (create_check_block_twin): Likewise for local "pro".
430         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
431         "consumer".
432         (unlink_bb_notes): Update for change to type of bb_header.
433         Strengthen locals "prev", "label", "note", "next" from rtx to
434         rtx_insn *.
435         (clear_priorities): Likewise for local "pro".
437 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
439         * gcse.c (struct occr): Strengthen field "insn" from rtx to
440         rtx_insn *.
441         (test_insn): Likewise for this global.
442         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
443         const rtx_insn *.
444         (oprs_anticipatable_p): Likewise.
445         (oprs_available_p): Likewise.
446         (insert_expr_in_table): Strengthen param "insn" from  rtx to
447         rtx_insn *.
448         (hash_scan_set): Likewise.
449         (hash_scan_clobber): Likewise.
450         (hash_scan_call): Likewise.
451         (hash_scan_insn): Likewise.
452         (compute_hash_table_work): Likewise for local "insn".
453         (process_insert_insn): Likewise for return type and local "pat".
454         (insert_insn_end_basic_block): Likewise for locals "new_insn",
455         "pat", "pat_end", "maybe_cc0_setter".
456         (pre_edge_insert): Likewise for local "insn".
457         (pre_insert_copy_insn): Likewise for param "insn".
458         (pre_insert_copies): Likewise for local "insn".
459         (struct set_data): Likewise for field "insn".
460         (single_set_gcse): Likewise for param "insn".
461         (gcse_emit_move_after): Likewise.
462         (pre_delete): Likewise for local "insn".
463         (update_bb_reg_pressure): Likewise for param "from" and local
464         "insn".
465         (should_hoist_expr_to_dom): Likewise for param "from".
466         (hoist_code): Likewise for local "insn".
467         (get_pressure_class_and_nregs): Likewise for param "insn".
468         (calculate_bb_reg_pressure): Likewise for local "insn".
469         (compute_ld_motion_mems): Likewise.
471 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
473         * genpeep.c (main): Rename param back from "uncast_ins1" to
474         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
475         checked cast.
477         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
479 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
481         PR target/62195
482         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
483         documentation to state it is only for VSX operations.
485         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
486         constraint only active if VSX.
488         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
489         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
490         (lfiwzx): Likewise.
492 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
494         * fwprop.c (single_def_use_dom_walker::before_dom_children):
495         Strengthen local "insn" from rtx to rtx_insn *.
496         (use_killed_between): Likewise for param "target_insn".
497         (all_uses_available_at): Likewise for param "target_insn" and
498         local "next".
499         (update_df_init): Likewise for params "def_insn", "insn".
500         (update_df): Likewise for param "insn".
501         (try_fwprop_subst): Likewise for param "def_insn" and local
502         "insn".
503         (free_load_extend): Likewise for param "insn".
504         (forward_propagate_subreg): Likewise for param "def_insn" and
505         local "use_insn".
506         (forward_propagate_asm): Likewise for param "def_insn" and local
507         "use_insn".
508         (forward_propagate_and_simplify): Likewise for param "def_insn"
509         and local "use_insn".
510         (forward_propagate_into): Likewise for locals "def_insn" and
511         "use_insn".
513 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
515         * function.c (emit_initial_value_sets): Strengthen local "seq"
516         from rtx to rtx_insn *.
517         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
518         local "seq".
519         (instantiate_virtual_regs): Likewise for local "insn".
520         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
521         (reorder_blocks_1): Likewise for param "insns" and local "insn".
522         (expand_function_end): Likewise for locals "insn" and "seq".
523         (epilogue_done): Likewise for local "insn".
524         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
525         "last", "trial".
526         (reposition_prologue_and_epilogue_notes): Likewise for locals
527         "insn", "last", "note", "first".
528         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
529         (pass_match_asm_constraints::execute): Likewise for local "insn".
531 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
533         * output.h (final_scan_insn): Strengthen return type from rtx to
534         rtx_insn *.
535         (final_forward_branch_p): Likewise for param.
536         (current_output_insn): Likewise for this global.
538         * final.c (rtx debug_insn): Likewise for this variable.
539         (current_output_insn): Likewise.
540         (get_attr_length_1): Rename param "insn" to "uncast_insn",
541         adding "insn" back in as an rtx_insn * with a checked cast, so
542         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
543         first param.
544         (compute_alignments): Strengthen local "label" from rtx to
545         rtx_insn *.
546         (shorten_branches): Rename param from "first" to "uncast_first",
547         introducing a new local rtx_insn * "first" using a checked cast to
548         effectively strengthen "first" from rtx to rtx_insn * without
549         affecting the type signature.  Strengthen locals "insn", "seq",
550         "next", "label" from rtx to rtx_insn *.
551         (change_scope): Strengthen param "orig_insn" and local "insn" from
552         rtx to rtx_insn *.
553         (final_start_function): Rename param from "first" to "uncast_first",
554         introducing a new local rtx_insn * "first" using a checked cast to
555         effectively strengthen "first" from rtx to rtx_insn * without
556         affecting the type signature.  Strengthen local "insn" from rtx to
557         rtx_insn *.
558         (dump_basic_block_info): Strengthen param "insn" from rtx to
559         rtx_insn *.
560         (final): Rename param from "first" to "uncast_first",
561         introducing a new local rtx_insn * "first" using a checked cast to
562         effectively strengthen "first" from rtx to rtx_insn * without
563         affecting the type signature.  Strengthen locals "insn", "next"
564         from rtx to rtx_insn *.
565         (output_alternate_entry_point): Strengthen param "insn" from rtx to
566         rtx_insn *.
567         (call_from_call_insn): Strengthen param "insn" from rtx to
568         rtx_call_insn *.
569         (final_scan_insn): Rename param from "insn" to "uncast_insn",
570         introducing a new local rtx_insn * "insn" using a checked cast to
571         effectively strengthen "insn" from rtx to rtx_insn * without
572         affecting the type signature.  Strengthen return type and locals
573         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
574         now-redundant checked cast to rtx_insn * from both invocations of
575         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
576         introducing a local "call_insn" for use when invoking
577         call_from_call_insn.
578         (notice_source_line): Strengthen param "insn" from rtx to
579         rtx_insn *.
580         (leaf_function_p): Likewise for local "insn".
581         (final_forward_branch_p): Likewise.
582         (leaf_renumber_regs): Likewise for param "first".
583         (rest_of_clean_state): Likewise for locals "insn" and "next".
584         (self_recursive_call_p): Likewise for param "insn".
585         (collect_fn_hard_reg_usage): Likewise for local "insn".
586         (get_call_fndecl): Likewise for param "insn".
587         (get_call_cgraph_rtl_info): Likewise.
588         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
589         introducing a new local rtx_insn * "insn" using a checked cast to
590         effectively strengthen "insn" from rtx to rtx_insn * without
591         affecting the type signature.
593         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
594         cast when assigning from param "insn" to current_output_insn.
595         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
596         so that we can assign it back to current_output_insn.
598 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
600         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
601         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
602         atmxt540s and atmxt540sreva devices.
603         * config/avr/avr-tables.opt: Regenerate.
604         * config/avr/t-multilib: Regenerate.
605         * doc/avr-mmcu.texi: Regenerate.
607 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
609         * expr.c (convert_move): Strengthen local "insns" from rtx to
610         rtx_insn *.
611         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
612         "top_label" from rtx to rtx_code_label *.
613         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
614         rtx_insn *.
615         (emit_single_push_insn): Likewise for locals "prev", "last".
616         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
617         to rtx_code_label *.
618         (store_constructor): Likewise for locals "loop_start", "loop_end".
619         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
620         rtx_insn *.
621         (expand_expr_real_2): Likewise.
622         (expand_expr_real_1): Strengthen local "label" from rtx to
623         rtx_code_label *.
625 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
627         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
628         from rtx to rtx_insn *.
629         (store_bit_field_1): Likewise.
630         (extract_bit_field_1): Likewise.
631         (expand_mult_const): Likewise for local "insns".
632         (expmed_mult_highpart): Strengthen local "label" from rtx to
633         rtx_code_label *.
634         (expand_smod_pow2): Likewise.
635         (expand_sdiv_pow2): Likewise.
636         (expand_divmod): Strengthen locals "last", "insn" from rtx to
637         rtx_insn *.  Strengthen locals "label", "label1", "label2",
638         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
639         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
640         (emit_store_flag): Likewise.
641         (emit_store_flag_force): Strengthen local "label" from rtx to
642         rtx_code_label *.
643         (do_cmp_and_jump): Likewise for param "label".
645 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
647         * explow.c (force_reg): Strengthen local "insn" from rtx to
648         rtx_insn *.
649         (adjust_stack_1): Likewise.
650         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
651         "final_label", "available_label", "space_available" from rtx to
652         rtx_code_label *.
653         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
654         (anti_adjust_stack_and_probe): Likewise.
656 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
658         * except.h (sjlj_emit_function_exit_after): Strengthen param
659         "after" from rtx to rtx_insn *.  This is only called with
660         result of get_last_insn (in function.c) so type-change should be
661         self-contained.
663         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
664         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
665         to rtx_insn *.  These fields are only used from except.c so this
666         type-change should be self-contained to this patch.
668         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
669         local "last" from rtx to rtx_insn *.
670         (dw2_build_landing_pads): Likewise for local "seq".
671         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
672         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
673         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
674         rtx to rtx_insn *.
675         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
676         to rtx_insn *.
677         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
678         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
679         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
680         referring to an insn.  Strengthen local "dispatch_label" from
681         rtx to rtx_code_label *.
682         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
683         rtx_insn *.
684         (expand_eh_return): Strengthen local "around_label" from
685         rtx to rtx_code_label *.
686         (convert_to_eh_region_ranges): Strengthen locals "iter",
687         "last_action_insn", "first_no_action_insn",
688         "first_no_action_insn_before_switch",
689         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
691 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
693         * dwarf2out.c (last_var_location_insn): Strengthen this variable
694         from rtx to rtx_insn *.
695         (cached_next_real_insn): Likewise.
696         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
697         working with insns.
698         (dwarf2out_var_location): Strengthen locals "next_real",
699         "next_note", "expected_next_loc_note", "last_start", "insn" from
700         rtx to rtx_insn *.
702 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
704         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
705         from rtx to rtx_insn *.
706         (create_pseudo_cfg): Likewise for local "insn".
708 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
710         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
711         from rtx to rtx_insn *.
712         (df_bb_regno_last_def_find): Likewise.
714         * df-problems.c (df_rd_bb_local_compute): Likewise.
715         (df_lr_bb_local_compute): Likewise.
716         (df_live_bb_local_compute): Likewise.
717         (df_chain_remove_problem): Likewise.
718         (df_chain_create_bb): Likewise.
719         (df_word_lr_bb_local_compute): Likewise.
720         (df_remove_dead_eq_notes): Likewise for param "insn".
721         (df_note_bb_compute): Likewise for local "insn".
722         (simulate_backwards_to_point): Likewise.
723         (df_md_bb_local_compute): Likewise.
725         * df-scan.c (df_scan_free_bb_info): Likewise.
726         (df_scan_start_dump): Likewise.
727         (df_scan_start_block): Likewise.
728         (df_install_ref_incremental): Likewise for local "insn".
729         (df_insn_rescan_all): Likewise.
730         (df_reorganize_refs_by_reg_by_insn): Likewise.
731         (df_reorganize_refs_by_insn_bb): Likewise.
732         (df_recompute_luids): Likewise.
733         (df_bb_refs_record): Likewise.
734         (df_update_entry_exit_and_calls): Likewise.
735         (df_bb_verify): Likewise.
737 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
739         * ddg.h (struct ddg_node): Strengthen fields "insn" and
740         "first_note" from rtx to rtx_insn *.
741         (get_node_of_insn): Likewise for param 2 "insn".
742         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
744         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
745         rtx_insn *.
746         (mem_write_insn_p): Likewise.
747         (mem_access_insn_p): Likewise.
748         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
749         (def_has_ccmode_p): Likewise for param "insn".
750         (add_cross_iteration_register_deps): Likewise for locals
751         "def_insn" and "use_insn".
752         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
753         (build_intra_loop_deps): Likewise for local "src_insn".
754         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
755         to rtx_insn *.
756         (get_node_of_insn): Likewise for param "insn".
758 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
760         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
761         (deletable_insn_p): Strengthen param "insn" from rtx to
762         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
763         find_call_stack_args, since this is guarded by CALL_P (insn).
764         (marked_insn_p): Strengthen param "insn" from rtx to
765         rtx_insn *.
766         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
767         invoking find_call_stack_args, since this is guarded by
768         CALL_P (insn).
769         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
770         rtx_insn *; we know this is an insn since this was called by
771         mark_nonreg_stores.
772         (mark_nonreg_stores_2): Likewise.
773         (mark_nonreg_stores): Strengthen param "insn" from rtx to
774         rtx_insn *.
775         (find_call_stack_args): Strengthen param "call_insn" from rtx to
776         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
777         to rtx_insn *.
778         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
779         from rtx to rtx_insn *.
780         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
781         "next", "ref_insn".
782         (delete_unmarked_insns): Likewise for locals "insn", "next".
783         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
784         (mark_reg_dependencies): Likewise for param "insn".
785         (rest_of_handle_ud_dce): Likewise for local "insn".
786         (word_dce_process_block): Likewise.
787         (dce_process_block): Likewise.
789 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
791         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
792         from rtx to rtx_insn *.
793         (struct change_cc_mode_args): Likewise for field "insn".
794         (this_insn): Strengthen from rtx to rtx_insn *.
795         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
796         with insn.
797         (validate_canon_reg): Strengthen param "insn" from rtx to
798         rtx_insn *.
799         (canon_reg): Likewise.
800         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
801         dealing with insn.
802         (record_jump_equiv): Strengthen param "insn" from rtx to
803         rtx_insn *.
804         (try_back_substitute_reg): Likewise, also for locals "prev",
805         "bb_head".
806         (find_sets_in_insn): Likewise for param "insn".
807         (canonicalize_insn): Likewise.
808         (cse_insn): Likewise.  Add a checked cast.
809         (invalidate_from_clobbers): Likewise for param "insn".
810         (invalidate_from_sets_and_clobbers): Likewise.
811         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
812         dealing with insn.
813         (cse_prescan_path): Strengthen local "insn" from rtx to
814         rtx_insn *.
815         (cse_extended_basic_block): Likewise for locals "insn" and
816         "prev_insn".
817         (cse_main): Likewise for param "f".
818         (check_for_label_ref): Likewise for local "insn".
819         (set_live_p): Likewise for second param ("insn").
820         (insn_live_p): Likewise for first param ("insn") and for local
821         "next".
822         (cse_change_cc_mode_insn): Likewise for first param "insn".
823         (cse_change_cc_mode_insns): Likewise for first and second params
824         "start" and "end".
825         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
826         and "end".
827         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
828         "cc_src_insn".
830 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
831             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
832             Anna Tikhonova  <anna.tikhonova@intel.com>
833             Ilya Tocar  <ilya.tocar@intel.com>
834             Andrey Turetskiy  <andrey.turetskiy@intel.com>
835             Ilya Verbin  <ilya.verbin@intel.com>
836             Kirill Yukhin  <kirill.yukhin@intel.com>
837             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
839         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
840         New.
841         * config/i386/sse.md
842         (define_mode_iterator VI248_AVX2): Delete.
843         (define_mode_iterator VI2_AVX2_AVX512BW): New.
844         (define_mode_iterator VI48_AVX2): Ditto.
845         (define_insn <shift_insn><mode>3): Delete.
846         (define_insn "<shift_insn><mode>3<mask_name>" with
847         VI2_AVX2_AVX512BW): New.
848         (define_insn "<shift_insn><mode>3<mask_name>" with
849         VI48_AVX2): Ditto.
851 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
852             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
853             Anna Tikhonova  <anna.tikhonova@intel.com>
854             Ilya Tocar  <ilya.tocar@intel.com>
855             Andrey Turetskiy  <andrey.turetskiy@intel.com>
856             Ilya Verbin  <ilya.verbin@intel.com>
857             Kirill Yukhin  <kirill.yukhin@intel.com>
858             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
860         * config/i386/sse.md
861         (define_mode_iterator VI4F_BRCST32x2): New.
862         (define_mode_attr 64x2_mode): Ditto.
863         (define_mode_attr 32x2mode): Ditto.
864         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
865         with VI4F_BRCST32x2): Ditto.
866         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
867         with V16FI mode iterator): Ditto.
868         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
869         with V16FI): Ditto.
870         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
871         with VI8F_BRCST64x2): Ditto.
873 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
874             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
875             Anna Tikhonova  <anna.tikhonova@intel.com>
876             Ilya Tocar  <ilya.tocar@intel.com>
877             Andrey Turetskiy  <andrey.turetskiy@intel.com>
878             Ilya Verbin  <ilya.verbin@intel.com>
879             Kirill Yukhin  <kirill.yukhin@intel.com>
880             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
882         * config/i386/sse.md
883         (define_mode_iterator VI8_AVX512VL): New.
884         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
886 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
888         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
889         (define_mode_iterator V48_AVX512VL): New.
890         (define_mode_iterator V12_AVX512VL): Ditto.
891         (define_insn <avx512>_load<mode>_mask): Split into two similar
892         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
893         Refactor output template.
894         (define_insn "<avx512>_store<mode>_mask"): Ditto.
896 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
898         * cprop.c (struct occr): Strengthen field "insn" from rtx to
899         rtx_insn *.
900         (reg_available_p): Likewise for param "insn".
901         (insert_set_in_table): Likewise.
902         (hash_scan_set): Likewise.
903         (hash_scan_insn): Likewise.
904         (make_set_regs_unavailable): Likewise.
905         (compute_hash_table_work): Likewise for local "insn".
906         (reg_not_set_p): Strengthen param "insn" from const_rtx to
907         const rtx_insn *.
908         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
909         (try_replace_reg): Likewise.
910         (find_avail_set): Likewise.
911         (cprop_jump): Likewise for params "setcc", "jump".
912         (constprop_register): Likewise for param "insn".
913         (cprop_insn): Likewise.
914         (do_local_cprop): Likewise.
915         (local_cprop_pass): Likewise for local "insn".
916         (bypass_block): Likewise for params "setcc" and "jump".
917         (bypass_conditional_jumps): Likewise for locals "setcc" and
918         "insn".
919         (one_cprop_pass): Likewise for local "insn".
921 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
923         * compare-elim.c (struct comparison_use): Strengthen field "insn"
924         from rtx to rtx_insn *.
925         (struct comparison): Likewise, also for field "prev_clobber".
926         (conforming_compare): Likewise for param "insn".
927         (arithmetic_flags_clobber_p): Likewise.
928         (find_flags_uses_in_insn): Likewise.
929         (find_comparison_dom_walker::before_dom_children): Likewise for
930         locals "insn", "next", "last_clobber".
931         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
933 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
935         * combine-stack-adj.c (struct csa_reflist): Strengthen field
936         "insn" from rtx to rtx_insn *.
937         (single_set_for_csa): Likewise for param "insn".
938         (record_one_stack_ref): Likewise.
939         (try_apply_stack_adjustment): Likewise.
940         (struct record_stack_refs_data): Likewise for field "insn".
941         (maybe_move_args_size_note): Likewise for params "last" and "insn".
942         (prev_active_insn_bb): Likewise for return type and param "insn".
943         (next_active_insn_bb): Likewise.
944         (force_move_args_size_note): Likewise for params "prev" and "last"
945         and locals "test", "next_candidate", "prev_candidate".
946         (combine_stack_adjustments_for_block): Strengthen locals
947         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
948         rtx_insn *.
950 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
952         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
953         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
954         (subst_insn): Likewise for this variable.
955         (added_links_insn): Likewise.
956         (struct insn_link): Likewise for field "insn".
957         (alloc_insn_link): Likewise for param "insn".
958         (struct undobuf): Likewise for field "other_insn".
959         (find_single_use): Likewise for param "insn" and local "next".
960         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
961         (delete_noop_moves): Likewise for locals "insn", "next".
962         (create_log_links): Likewise for locals "insn", "use_insn".
963         Strengthen local "next_use" from rtx * to rtx_insn **.
964         (insn_a_feeds_b): Likewise for params "a", "b".
965         (combine_instructions): Likewise for param "f" and locals "insn",
966         "next", "prev", "first", "last_combined_insn", "link", "link1",
967         "temp".  Replace use of NULL_RTX with NULL when referring to
968         insns.
969         (setup_incoming_promotions): Likewise for param "first"
970         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
971         (can_combine_p): Likewise for params "insn", "i3", "pred",
972         "pred2", "succ", "succ2" and for local "p".
973         (combinable_i3pat): Likewise for param "i3".
974         (cant_combine_insn_p): Likewise for param "insn".
975         (likely_spilled_retval_p): Likewise.
976         (adjust_for_new_dest): Likewise.
977         (update_cfg_for_uncondjump): Likewise, also for local "insn".
978         (try_combine): Likewise for return type and for params "i3", "i2",
979         "i1", "i0", "last_combined_insn", and for locals "insn",
980         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
981         "i0_insn".  Eliminate local "tem" in favor of new locals
982         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
983         checked cast for now to rtx_insn * on the return type of
984         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
985         insns.
986         (find_split_point): Strengthen param "insn" from rtx to
987         rtx_insn *.
988         (simplify_set): Likewise for local "other_insn".
989         (recog_for_combine): Likewise for param "insn".
990         (record_value_for_reg): Likewise.
991         (record_dead_and_set_regs_1): Likewise for local
992         "record_dead_insn".
993         (record_dead_and_set_regs): Likewise for param "insn".
994         (record_promoted_value): Likewise.
995         (check_promoted_subreg): Likewise.
996         (get_last_value_validate): Likewise.
997         (reg_dead_at_p): Likewise.
998         (move_deaths): Likewise for param "to_insn".
999         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
1000         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
1001         in favor of new locals "tem_note" and "tem_insn", the latter being
1002         an rtx_insn *.
1003         (distribute_links): Strengthen locals "place", "insn" from rtx to
1004         rtx_insn *.
1006 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1008         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
1009         than a const_rtx.
1010         (can_delete_label_p): Require a const rtx_code_label * rather than
1011         a const_rtx.
1012         (delete_insn): Add checked cast to rtx_code_label * when we know
1013         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
1014         rtx to rtx_insn *.
1015         (delete_insn_chain): Strengthen locals "prev" and "current" from
1016         rtx to rtx_insn *.  Add a checked cast when assigning from
1017         "finish" (strengthening the params will come later).  Add a
1018         checked cast to rtx_note * in region where we know
1019         NOTE_P (current).
1020         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
1021         rtx_insn *.
1022         (compute_bb_for_insn): Likewise.
1023         (free_bb_for_insn): Likewise for local "insn".
1024         (compute_bb_for_insn): Likewise.
1025         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
1026         local "insn" from rtx to rtx_insn *
1027         (flow_active_insn_p): Require a const rtx_insn * rather than a
1028         const_rtx.
1029         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
1030         rtx_insn *.
1031         (can_fallthru): Likewise for locals "insn" and "insn2".
1032         (bb_note): Likewise for local "note".
1033         (first_insn_after_basic_block_note): Likewise for local "note" and
1034         for return type.
1035         (rtl_split_block): Likewise for locals "insn" and "next".
1036         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
1037         "end".
1038         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
1039         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
1040         "prev", "tmp".
1041         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
1042         them), "kill_from", "barrier", "new_insn".
1043         (patch_jump_insn): Likewise for params "insn", "old_label".
1044         (redirect_branch_edge): Likewise for locals "old_label", "insn".
1045         (force_nonfallthru_and_redirect): Likewise for locals "insn",
1046         "old_label", "new_label".
1047         (rtl_tidy_fallthru_edge): Likewise for local "q".
1048         (rtl_split_edge): Likewise for locals "before", "last".
1049         (commit_one_edge_insertion): Likewise for locals "before",
1050         "after", "insns", "tmp", "last", adding a checked cast where
1051         currently necessary.
1052         (commit_edge_insertions): Likewise.
1053         (rtl_dump_bb): Likewise for locals "insn", "last".
1054         (print_rtl_with_bb): Likewise for local "x".
1055         (rtl_verify_bb_insns): Likewise for local "x".
1056         (rtl_verify_bb_pointers): Likewise for local "insn".
1057         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
1058         "head", "end".
1059         (rtl_verify_fallthru): Likewise for local "insn".
1060         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
1061         (purge_dead_edges): Likewise for local "insn".
1062         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
1063         (skip_insns_after_block): Likewise for return type and for locals
1064         "insn", "last_insn", "next_head", "prev".
1065         (record_effective_endpoints): Likewise for locals "next_insn",
1066         "insn", "end".
1067         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
1068         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
1069         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
1070         (duplicate_insn_chain): For now, add checked cast from rtx to
1071         rtx_insn * when returning insn.
1072         (cfg_layout_duplicate_bb): Likewise for local "insn".
1073         (cfg_layout_delete_block): Likewise for locals "insn", "next",
1074         "prev", "remaints".
1075         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
1076         (rtl_block_empty_p): Likewise.
1077         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
1078         "split_point", "last".
1079         (rtl_block_ends_with_call_p): Likewise for local "insn".
1080         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
1081         const rtx_insn *.
1082         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
1083         "split_at_insn" from rtx to rtx_insn *.
1084         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
1085         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
1086         to const rtx_insn *.
1087         (rtl_account_profile_record): Likewise.
1089 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1091         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
1092         rtx to rtx_insn *.
1093         (average_num_loop_insns): Likewise.
1094         (init_set_costs): Likewise for local "seq".
1095         (seq_cost): Likewise for param "seq", from const_rtx to const
1096         rtx_insn *.
1098 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1100         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
1101         rtx to rtx_insn *.
1103 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1105         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
1106         "f1" and "f2" from rtx * to rtx_insn **.
1107         (flow_find_head_matching_sequence): Likewise.
1109         * cfgcleanup.c (try_simplify_condjump): Strengthen local
1110         "cbranch_insn" from rtx to rtx_insn *.
1111         (thread_jump): Likewise for local "insn".
1112         (try_forward_edges): Likewise for local "last".
1113         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
1114         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
1115         "real_b_end".
1116         (can_replace_by): Likewise for params "i1", "i2".
1117         (old_insns_match_p): Likewise.
1118         (merge_notes): Likewise.
1119         (walk_to_nondebug_insn): Likewise for param "i1".
1120         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
1121         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
1122         "afterlast1", "afterlast2" from rtx to rtx_insn *.
1123         (flow_find_head_matching_sequence): Strengthen params "f1" and
1124         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
1125         "last1", "last2", "beforelast1", "beforelast2" from rtx to
1126         rtx_insn *.
1127         (outgoing_edges_match): Likewise for locals "last1", "last2".
1128         (try_crossjump_to_edge): Likewise for local "insn".
1129         Replace call to for_each_rtx with for_each_rtx_in_insn.
1131         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
1132         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
1133         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
1134         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
1135         (try_optimize_cfg): Strengthen local "last" from rtx to
1136         rtx_insn *.
1137         (delete_dead_jumptables): Likewise for locals "insn", "next",
1138         "label".
1140         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
1141         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
1142         "rtx else_first_tail", to reflect the basic-block.h changes above.
1144 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1146         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
1147         rtx_insn *.
1148         (purge_dead_tablejump_edges): Likewise.
1149         (find_bb_boundaries): Likewise for locals "insn", "end",
1150         "flow_transfer_insn".
1152 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1154         * caller-save.c (save_call_clobbered_regs): Strengthen locals
1155         "ins" and "prev" from rtx to rtx_insn *.
1157 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1159         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
1160         rtx_insn *.
1161         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
1162         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
1163         "scan_start".
1164         (load_register_parameters): Likewise for local "before_arg".
1165         (check_sibcall_argument_overlap): Likewise for param "insn".
1166         (expand_call): Likewise for locals "normal_call_insns",
1167         "tail_call_insns", "insns", "before_call", "after_args",
1168         "before_arg", "last", "prev".  Strengthen one of the "last" from
1169         rtx to rtx_call_insn *.
1170         (fixup_tail_calls): Strengthen local "insn" from rtx to
1171         rtx_insn *.
1172         (emit_library_call_value_1): Likewise for locals "before_call" and
1173         "last".
1175 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1177         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
1178         and "last" from rtx to rtx_insn *.
1179         (expand_builtin_nonlocal_goto): Likewise for local "insn".
1180         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
1181         rtx_call_insn *.
1182         (expand_errno_check): Strengthen local "lab" from rtx to
1183         rtx_code_label *.
1184         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
1185         rtx_insn *.
1186         (expand_builtin_mathfn_2): Likewise.
1187         (expand_builtin_mathfn_ternary): Likewise.
1188         (expand_builtin_mathfn_3): Likewise.
1189         (expand_builtin_interclass_mathfn): Likewise for local "last".
1190         (expand_builtin_int_roundingfn): Likewise for local "insns".
1191         (expand_builtin_int_roundingfn_2): Likewise.
1192         (expand_builtin_strlen): Likewise for local "before_strlen".
1193         (expand_builtin_strncmp): Likewise for local "seq".
1194         (expand_builtin_signbit): Likewise for local "last".
1195         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
1196         from rtx to rtx_code_label *.
1197         (expand_stack_restore):  Strengthen local "prev" from rtx to
1198         rtx_insn *.
1200 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1202         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
1203         to rtx_insn *.
1204         (struct btr_def_s): Likewise.
1205         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
1206         const rtx_insn *.
1207         (add_btr_def): Likewise.
1208         (new_btr_user): Likewise.
1209         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
1210         rtx to rtx_insn *.
1211         (link_btr_uses): Likewise.
1212         (move_btr_def): Likewise for locals "insp", "old_insn",
1213         "new_insn".  Add checked cast to rtx_insn * for now on result of
1214         gen_move_insn.
1215         (can_move_up): Strengthen param "insn" from const_rtx to
1216         const rtx_insn *.
1218 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1220         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
1221         rtx_insn *.
1222         (get_uncond_jump_length): Likewise for locals "label", "jump".
1223         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
1224         "jump", "insn".
1225         (add_labels_and_missing_jumps): Likewise for local "new_jump".
1226         (fix_up_fall_thru_edges): Likewise for local "old_jump".
1227         (find_jump_block): Likewise for local "insn".
1228         (fix_crossing_conditional_branches): Likewise for locals
1229         "old_jump", "new_jump".
1230         (fix_crossing_unconditional_branches): Likewise for locals
1231         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
1232         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
1234 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1236         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
1237         rtx to rtx_insn *.
1238         (struct mem_insn): Likewise for field "insn".
1239         (reg_next_use): Strengthen from rtx * to rtx_insn **.
1240         (reg_next_inc_use): Likewise.
1241         (reg_next_def): Likewise.
1242         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
1243         from rtx to rtx_insn *.
1244         (move_insn_before): Likewise for param "next_insn" and local "insns".
1245         (attempt_change): Likewise for local "mov_insn".
1246         (try_merge): Likewise for param "last_insn".
1247         (get_next_ref): Likewise for return type and local "insn".
1248         Strengthen param "next_array" from rtx * to rtx_insn **.
1249         (parse_add_or_inc): Strengthen param "insn" from rtx to
1250         rtx_insn *.
1251         (find_inc): Likewise for locals "insn" and "other_insn" (three of
1252         the latter).
1253         (merge_in_block): Likewise for locals "insn", "curr",
1254         "other_insn".
1255         (pass_inc_dec::execute): Update allocations of the arrays to
1256         reflect the stronger types.
1258 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1260         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
1261         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
1262         from rtx to rtx_code_label *.
1264 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1266         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
1267         to rtx_insn *.
1269 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
1271         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
1272         generated a warning and prevented bootstrapping the compiler.
1274 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1276         * rtl.h (delete_related_insns): Strengthen return type from rtx to
1277         rtx_insn *.
1279         * jump.c (delete_related_insns): Likewise, also for locals "next"
1280         and "prev".
1282 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1284         * genautomata.c (output_internal_insn_latency_func): When writing
1285         the function "internal_insn_latency" to insn-automata.c,
1286         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
1287         allowing the optional guard function of (define_bypass) clauses to
1288         expect a pair of rtx_insn *, rather than a pair of rtx.
1289         (output_insn_latency_func): When writing the function
1290         "insn_latency", add an "uncast_" prefix to params "insn" and
1291         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
1292         using checked casts from the params, thus enabling the above
1293         change to the generated "internal_insn_latency" function.
1295 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
1297         PR tree-optimization/62091
1298         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
1299         handle correctly arrays.
1300         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
1301         inheritance binfos.
1302         (record_known_type): Walk into inner type.
1303         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
1304         condition on no type changes.
1306 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1308         * genattrtab.c (write_attr_get): Within the generated get_attr_
1309         functions, rename param "insn" to "uncast_insn" and reintroduce
1310         "insn" as an local rtx_insn * using a checked cast, so that "insn"
1311         is an rtx_insn * within insn-attrtab.c
1313 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1315         * output.h (peephole): Strengthen return type from rtx to
1316         rtx_insn *.
1317         * rtl.h (delete_for_peephole): Likewise for both params.
1318         * genpeep.c (main): In generated "peephole" function, strengthen
1319         return type and local "insn" from rtx to rtx_insn *.  For now,
1320         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
1321         rtx_insn *, with a checked cast.
1322         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
1323         locals "insn", "next", "prev" from rtx to rtx_insn *.
1325 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
1327         PR tree-optimization/62112
1328         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
1329         * gimple-iterator.h (gsi_replace): Return bool.
1330         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
1331         moved from ref_may_alias_global_p.
1332         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
1333         New overloads.
1334         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
1335         (stmt_kills_ref_p_1): Rename...
1336         (stmt_kills_ref_p): ... to this.
1337         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
1338         stmt_kills_ref_p): Declare.
1339         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
1340         Move the self-assignment case...
1341         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
1343 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1345         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
1347         * emit-rtl.c (try_split): Likewise, also for locals "before" and
1348         "after".  For now, don't strengthen param "trial", which requires
1349         adding checked casts when returning it.
1351 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1353         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
1354         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
1355         "var_location" hook from rtx to rtx_insn *.
1356         (debug_nothing_rtx): Delete in favor of...
1357         (debug_nothing_rtx_code_label): New prototype.
1358         (debug_nothing_rtx_rtx): Delete unused prototype.
1359         (debug_nothing_rtx_insn): New prototype.
1361         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
1362         invoking debug_hooks->var_location (in two places, one in a NOTE
1363         case of a switch statement, the other guarded by a CALL_P
1364         conditional.  Add checked cast to rtx_code_label * when invoking
1365         debug_hooks->label (within CODE_LABEL case of switch statement).
1367         * dbxout.c (dbx_debug_hooks): Update "label" hook from
1368         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
1369         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
1370         (xcoff_debug_hooks): Likewise.
1371         * debug.c (do_nothing_debug_hooks): Likewise.
1372         (debug_nothing_rtx): Delete in favor of...
1373         (debug_nothing_rtx_insn): New function.
1374         (debug_nothing_rtx_rtx): Delete unused function.
1375         (debug_nothing_rtx_code_label): New function.
1376         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
1377         debug_nothing_rtx to debug_nothing_rtx_code_label.
1378         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
1379         to rtx_insn *.
1380         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
1381         debug_nothing_rtx to debug_nothing_rtx_insn.
1382         (sdbout_label): Strengthen param "insn" from rtx to
1383         rtx_code_label *.
1384         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
1385         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
1386         "var_location" hook from debug_nothing_rtx to
1387         debug_nothing_rtx_insn.
1389 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1391         * recog.h (insn_output_fn): Update this function typedef to match
1392         the changes below to the generated output functions, strengthening
1393         the 2nd param from rtx to rtx_insn *.
1395         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
1396         insn when invoking an output function, to match the new signature
1397         of insn_output_fn with a stronger second param.
1399         * genconditions.c (write_header): In the generated code for
1400         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
1401         to match the other changes in this patch.
1403         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
1404         the generated "gen_" functions from rtx to rtx_insn * within their
1405         implementations.
1407         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
1408         the subfunctions within the generated "recog_", "split", "peephole2"
1409         function trees from rtx to rtx_insn *.  For now, the top-level
1410         generated functions ("recog", "split", "peephole2") continue to
1411         take a plain rtx for "insn", to avoid introducing dependencies on
1412         other patches.  Rename this 2nd param from "insn" to
1413         "uncast_insn", and reintroduce "insn" as a local variable of type
1414         rtx_insn *, initialized at the top of the generated function with
1415         a checked cast on "uncast_insn".
1416         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
1417         the generated "gen_" functions from rtx to rtx_insn * within their
1418         prototypes.
1420         * genoutput.c (process_template): Strengthen the 2nd param within
1421         the generated "output_" functions "insn" from rtx to rtx_insn *.
1423 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
1425         * tree-profile.c (tree_profiling): Skip external functions
1426         when doing coverage instrumentation.
1427         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
1429 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1431         * config/rs6000/altivec.h (vec_cpsgn): New #define.
1432         (vec_mergee): Likewise.
1433         (vec_mergeo): Likewise.
1434         (vec_cntlz): Likewise.
1435         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
1436         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
1437         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
1438         VMRGEW, and VMRGOW.
1439         * doc/extend.texi: Document various forms of vec_cpsgn,
1440         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
1441         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
1442         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
1443         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
1444         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
1446 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1448         * config/rs6000/rs6000.c (context.h): New include.
1449         (tree-pass.h): Likewise.
1450         (make_pass_analyze_swaps): New decl.
1451         (rs6000_option_override): Register pass_analyze_swaps.
1452         (swap_web_entry): New subsclass of web_entry_base (df.h).
1453         (special_handling_values): New enum.
1454         (union_defs): New function.
1455         (union_uses): Likewise.
1456         (insn_is_load_p): Likewise.
1457         (insn_is_store_p): Likewise.
1458         (insn_is_swap_p): Likewise.
1459         (rtx_is_swappable_p): Likewise.
1460         (insn_is_swappable_p): Likewise.
1461         (chain_purpose): New enum.
1462         (chain_contains_only_swaps): New function.
1463         (mark_swaps_for_removal): Likewise.
1464         (swap_const_vector_halves): Likewise.
1465         (adjust_subreg_index): Likewise.
1466         (permute_load): Likewise.
1467         (permute_store): Likewise.
1468         (handle_special_swappables): Likewise.
1469         (replace_swap_with_copy): Likewise.
1470         (dump_swap_insn_table): Likewise.
1471         (rs6000_analyze_swaps): Likewise.
1472         (pass_data_analyze_swaps): New pass_data.
1473         (pass_analyze_swaps): New rtl_opt_pass.
1474         (make_pass_analyze_swaps): New function.
1475         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
1477 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1479         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
1480         type from rtx to rtx_insn *.
1481         (create_copy_of_insn_rtx): Likewise.
1482         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
1483         (create_copy_of_insn_rtx): Likewise, also for local "res".
1485 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1487         * rtl.h (find_first_parameter_load): Strengthen return type from
1488         rtx to rtx_insn *.
1489         * rtlanal.c (find_first_parameter_load): Strengthen return type
1490         from rtx to rtx_insn *.  Add checked cast for now, to postpone
1491         strengthening the params.
1493 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1495         PR fortran/44054
1496         * diagnostic.c: Set default caret.
1497         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
1498         line is needed.
1499         * diagnostic.h (struct diagnostic_context):
1501 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1503         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
1504         (sel_bb_head): Strengthen return type insn_t (currently just an
1505         rtx) to rtx_insn *.
1506         (sel_bb_end): Likewise.
1508         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
1509         (sel_bb_head): Strengthen return type and local "head" from
1510         insn_t (currently just an rtx) to rtx_insn *.
1511         (sel_bb_end): Likewise for return type.
1512         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
1513         working with insn.
1515 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
1517         * basic-block.h (get_last_bb_insn): Strengthen return type from
1518         rtx to rtx_insn *.
1519         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
1520         end".
1522 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1524         PR fortran/44054
1525         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
1526          to here ...
1527         (diagnostic_report_diagnostic): ... from here.
1528         * toplev.c (general_init): Move code to c-family.
1530 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1532         * df.h (web_entry_base): Replace existing struct web_entry with a
1533         new class web_entry_base with only the predecessor member.
1534         (unionfind_root): Remove declaration and move to class member.
1535         (unionfind_union): Remove declaration and move to friend
1536         function.
1537         (union_defs): Remove declaration.
1538         * web.c (web_entry_base::unionfind_root): Modify to be member
1539         function and adjust accessors.
1540         (unionfind_union): Modify to be friend function and adjust
1541         accessors.
1542         (web_entry): New subclass of web_entry_base containing the reg
1543         member.
1544         (union_match_dups): Modify for struct -> class changes.
1545         (union_defs): Likewise.
1546         (entry_register): Likewise.
1547         (pass_web::execute): Likewise.
1549 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
1551         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
1552         builtin define __VEC_ELEMENT_REG_ORDER__.
1554 2014-08-20  Martin Jambor  <mjambor@suse.cz>
1555             Wei Mi  <wmi@google.com>
1557         PR ipa/60449
1558         PR middle-end/61776
1559         * tree-ssa-operands.c (update_stmt_operands): Remove
1560         MODIFIED_NORETURN_CALLS.
1561         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
1562         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
1563         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
1564         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
1565         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
1566         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
1567         (gimple_call_set_ctrl_altering): New func.
1568         (gimple_call_ctrl_altering_p): Ditto.
1569         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
1570         (make_blocks): Use gimple_call_initialize_ctrl_altering.
1571         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
1572         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
1573         remove MODIFIED_NORETURN_CALLS.
1575 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
1577         * coverage.c (coverage_compute_profile_id): Return non-0;
1578         also handle symbols with unique name.
1579         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
1581 2014-08-20  Steve Ellcey  <sellcey@mips.com>
1583         PR middle-end/49191
1584         * doc/sourcebuild.texi (non_strict_align): New.
1586 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
1588         * cgraphunit.c (ipa_passes, compile): Reshedule
1589         symtab_remove_unreachable_nodes passes; update comments.
1590         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
1591         TODO_remove_functions before the pass; the functions ought to be
1592         already removed.
1593         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
1594         TODO_remove_functions.
1595         * passes.c (pass_data_early_local_passes): Do not schedule function
1596         removal.
1597         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
1599 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1601         PR c/59304
1602         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
1603         before setting the option.
1604         * diagnostic.c (diagnostic_classify_diagnostic): Record
1605         command-line status.
1607 2014-08-20  Richard Biener  <rguenther@suse.de>
1609         PR lto/62190
1610         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
1611         to build uint{16,32,64}_type_node.
1613 2014-08-20  Terry Guo  <terry.guo@arm.com>
1615         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
1616         with immediate_operand.
1618 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
1620         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
1621         "insn" from an as_a to a safe_as_a, for the case when "insn" is
1622         NULL.
1624 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1626         PR preprocessor/51303
1627         * incpath.c (remove_duplicates): Use cpp_warning.
1629 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1631         PR c/60975
1632         PR c/53063
1633         * doc/options.texi (CPP): Document it.
1634         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
1635         * optc-gen.awk: Handle CPP.
1636         * opth-gen.awk: Likewise.
1638 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
1640         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
1641         rtx_insn *.
1642         (duplicate_insn_chain): Likewise.
1643         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
1644         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
1645         checked cast for now (until we can strengthen the params in the
1646         same way).
1647         (duplicate_insn_chain): Likewise.
1649 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
1651         * rtl.h (next_cc0_user): Strengthen return type from rtx to
1652         rtx_insn *.
1653         (prev_cc0_setter): Likewise.
1655         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
1656         rtx_insn *, adding checked casts for now as necessary.
1657         (prev_cc0_setter): Likewise.
1659 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
1661         * expr.h (emit_move_insn): Strengthen return type from rtx to
1662         rtx_insn *.
1663         (emit_move_insn_1): Likewise.
1664         (emit_move_complex_push): Likewise.
1665         (emit_move_complex_parts): Likewise.
1667         * expr.c (emit_move_via_integer): Strengthen return type from rtx
1668         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
1669         with insns.
1670         (emit_move_complex_push): Strengthen return type from rtx to
1671         rtx_insn *.
1672         (emit_move_complex): Likewise, also for local "ret".
1673         (emit_move_ccmode): Likewise.
1674         (emit_move_multi_word): Likewise for return type and locals
1675         "last_insn", "seq".
1676         (emit_move_insn_1): Likewise for return type and locals "result",
1677         "ret".
1678         (emit_move_insn): Likewise for return type and local "last_insn".
1679         (compress_float_constant): Likewise.
1681 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
1683         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
1684         from rtx to rtx_insn *.
1686         * rtl.h (emit_insn_before): Likewise.
1687         (emit_insn_before_noloc): Likewise.
1688         (emit_insn_before_setloc): Likewise.
1689         (emit_jump_insn_before): Likewise.
1690         (emit_jump_insn_before_noloc): Likewise.
1691         (emit_jump_insn_before_setloc): Likewise.
1692         (emit_call_insn_before): Likewise.
1693         (emit_call_insn_before_noloc): Likewise.
1694         (emit_call_insn_before_setloc): Likewise.
1695         (emit_debug_insn_before): Likewise.
1696         (emit_debug_insn_before_noloc): Likewise.
1697         (emit_debug_insn_before_setloc): Likewise.
1698         (emit_label_before): Likewise.
1699         (emit_insn_after): Likewise.
1700         (emit_insn_after_noloc): Likewise.
1701         (emit_insn_after_setloc): Likewise.
1702         (emit_jump_insn_after): Likewise.
1703         (emit_jump_insn_after_noloc): Likewise.
1704         (emit_jump_insn_after_setloc): Likewise.
1705         (emit_call_insn_after): Likewise.
1706         (emit_call_insn_after_noloc): Likewise.
1707         (emit_call_insn_after_setloc): Likewise.
1708         (emit_debug_insn_after): Likewise.
1709         (emit_debug_insn_after_noloc): Likewise.
1710         (emit_debug_insn_after_setloc): Likewise.
1711         (emit_label_after): Likewise.
1712         (emit_insn): Likewise.
1713         (emit_debug_insn): Likewise.
1714         (emit_jump_insn): Likewise.
1715         (emit_call_insn): Likewise.
1716         (emit_label): Likewise.
1717         (gen_clobber): Likewise.
1718         (emit_clobber): Likewise.
1719         (gen_use): Likewise.
1720         (emit_use): Likewise.
1721         (emit): Likewise.
1723         (emit_barrier_before): Strengthen return type from rtx to
1724         rtx_barrier *.
1725         (emit_barrier_after): Likewise.
1726         (emit_barrier): Likewise.
1728         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
1729         from rtx to rtx_insn *.  Add checked casts for now when converting
1730         "last" from rtx to rtx_insn *.
1731         (emit_insn_before_noloc): Likewise for return type.
1732         (emit_jump_insn_before_noloc): Likewise.
1733         (emit_call_insn_before_noloc): Likewise.
1734         (emit_debug_insn_before_noloc): Likewise.
1735         (emit_barrier_before): Strengthen return type and local "insn"
1736         from rtx to rtx_barrier *.
1737         (emit_label_before): Strengthen return type from rtx to
1738         rtx_insn *.  Add checked cast for now when returning param
1739         (emit_pattern_after_noloc): Strengthen return type from rtx to
1740         rtx_insn *.  Add checked casts for now when converting "last" from
1741         rtx to rtx_insn *.
1742         (emit_insn_after_noloc): Strengthen return type from rtx to
1743         rtx_insn *.
1744         (emit_jump_insn_after_noloc): Likewise.
1745         (emit_call_insn_after_noloc): Likewise.
1746         (emit_debug_insn_after_noloc): Likewise.
1747         (emit_barrier_after): Strengthen return type from rtx to
1748         rtx_barrier *.
1749         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
1750         Add checked cast for now when converting "label" from rtx to
1751         rtx_insn *.
1752         (emit_pattern_after_setloc): Strengthen return type from rtx to
1753         rtx_insn *.  Add checked casts for now when converting "last" from
1754         rtx to rtx_insn *.
1755         (emit_pattern_after): Strengthen return type from rtx to
1756         rtx_insn *.
1757         (emit_insn_after_setloc): Likewise.
1758         (emit_insn_after): Likewise.
1759         (emit_jump_insn_after_setloc): Likewise.
1760         (emit_jump_insn_after): Likewise.
1761         (emit_call_insn_after_setloc): Likewise.
1762         (emit_call_insn_after): Likewise.
1763         (emit_debug_insn_after_setloc): Likewise.
1764         (emit_debug_insn_after): Likewise.
1765         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
1766         when converting "last" from rtx to rtx_insn *.
1767         (emit_pattern_before): Strengthen return type from rtx to
1768         rtx_insn *.
1769         (emit_insn_before_setloc): Likewise.
1770         (emit_insn_before): Likewise.
1771         (emit_jump_insn_before_setloc): Likewise.
1772         (emit_jump_insn_before): Likewise.
1773         (emit_call_insn_before_setloc): Likewise.
1774         (emit_call_insn_before): Likewise.
1775         (emit_debug_insn_before_setloc): Likewise.
1776         (emit_debug_insn_before): Likewise.
1777         (emit_insn): Strengthen return type and locals "last", "insn",
1778         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
1779         within cases where we know we have an insn.
1780         (emit_debug_insn): Likewise.
1781         (emit_jump_insn): Likewise.
1782         (emit_call_insn): Strengthen return type and local "insn" from rtx
1783         to rtx_insn *.
1784         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
1785         a checked cast to rtx_insn * for now on "label".
1786         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
1787         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
1788         (emit_use): Likewise.
1789         (gen_use): Likewise, also for local "seq".
1790         (emit): Likewise for return type and local "insn".
1791         (rtx_insn): Likewise for return type and local "new_rtx".
1793         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
1794         from rtx to rtx_barrier *.
1796         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
1797         changed return type from rtx to rtx_insn *, we must update
1798         "emit_fn" type, and this in turn means updating...
1799         (frame_insn): ...this.  Strengthen return type from rtx to
1800         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
1802 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
1804         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
1805         rtx to rtx_jump_table_data *.  Also for local.
1806         * rtl.h (emit_jump_table_data): Likewise.
1808 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
1810         * basic-block.h (create_basic_block_structure): Strengthen third
1811         param "bb_note" from rtx to rtx_note *.
1812         * rtl.h (emit_note_before): Strengthen return type from rtx to
1813         rtx_note *.
1814         (emit_note_after): Likewise.
1815         (emit_note): Likewise.
1816         (emit_note_copy): Likewise.  Also, strengthen param similarly.
1817         * function.h (struct rtl_data): Strengthen field
1818         "x_stack_check_probe_note" from rtx to rtx_note *.
1820         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
1821         from rtx to rtx_note *.
1822         * cfgrtl.c (create_basic_block_structure): Strengthen third param
1823         "bb_note" from rtx to rtx_note *.
1824         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
1825         when calling emit_note_copy.
1826         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
1827         rtx_note *.
1828         (emit_note_after): Likewise.
1829         (emit_note_before): Likewise.
1830         (emit_note_copy): Likewise.  Also, strengthen param similarly.
1831         (emit_note): Likewise.
1832         * except.c (emit_note_eh_region_end): Likewise for return type.
1833         Strengthen local "next" from rtx to rtx_insn *.
1834         (convert_to_eh_region_ranges): Strengthen local "note"
1835         from rtx to rtx_note *.
1836         * final.c (change_scope): Likewise.
1837         (reemit_insn_block_notes): Likewise, for both locals named "note".
1838         Also, strengthen local "insn" from rtx to rtx_insn *.
1839         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
1840         rtx to rtx_note *.
1841         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
1842         strengthen local "seq" from rtx to rtx_insn *.
1843         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
1844         to rtx_note *.
1845         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
1846         vec<rtx_note *>.
1847         (get_bb_note_from_pool): Strengthen return type from rtx to
1848         rtx_note *.
1849         (sel_create_basic_block): Strengthen local "new_bb_note" from
1850         insn_t to rtx_note *.
1851         * var-tracking.c (emit_note_insn_var_location): Strengthen local
1852         "note" from rtx to rtx_note *.
1853         (emit_notes_in_bb): Likewise.
1855 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
1857         * function.h (struct rtl_data): Strengthen field
1858         "x_parm_birth_insn" from rtx to rtx_insn *.
1859         * function.c (struct assign_parm_data_all): Strengthen fields
1860         "first_conversion_insn" and "last_conversion_insn" from rtx to
1861         rtx_insn *.
1863 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
1865         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
1866         to rtx_insn *; also for local "var_end_seq".
1867         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
1868         (maybe_cleanup_end_of_block): Likewise for param "last" and local
1869         "insn".
1870         (expand_gimple_cond): Likewise for locals "last2" and "last".
1871         (mark_transaction_restart_calls): Likewise for local "insn".
1872         (expand_gimple_stmt): Likewise for return type and locals "last"
1873         and "insn".
1874         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
1875         (avoid_complex_debug_insns): Likewise for param "insn".
1876         (expand_debug_locations): Likewise for locals "insn", "last",
1877         "prev_insn" and "insn2".
1878         (expand_gimple_basic_block): Likewise for local "last".
1879         (construct_exit_block): Likewise for locals "head", "end",
1880         "orig_end".
1881         (pass_expand::execute): Likewise for locals "var_seq",
1882         "var_ret_seq", "next".
1884 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
1886         * asan.h (asan_emit_stack_protection): Strengthen return type from
1887         rtx to rtx_insn *.
1888         * asan.c (asan_emit_stack_protection): Likewise.  Add local
1889         "insns" to hold the return value.
1891 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
1893         * basic-block.h (bb_note): Strengthen return type from rtx to
1894         rtx_note *.
1895         * sched-int.h (bb_note): Likewise.
1896         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
1898 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
1900         * rtl.h (make_insn_raw): Strengthen return type from rtx to
1901         rtx_insn *.
1903         * emit-rtl.c (make_insn_raw): Strengthen return type and local
1904         "insn" from rtx to rtx_insn *.
1905         (make_debug_insn_raw): Strengthen return type from rtx to
1906         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
1907         (make_jump_insn_raw):  Strengthen return type from rtx to
1908         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
1909         (make_call_insn_raw):  Strengthen return type from rtx to
1910         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
1911         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
1912         callback from rtx to rtx_insn *; likewise for local "insn" and
1913         "next", adding a checked cast to rtx_insn in the relevant cases of
1914         the switch statement.
1915         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
1916         callback from rtx to rtx_insn *.
1917         (emit_pattern_after_setloc): Likewise.
1918         (emit_pattern_after): Likewise.
1919         (emit_pattern_before_setloc): Likewise.
1920         (emit_pattern_before): Likewise.
1922 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
1924         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
1925         rtx_call_insn *.
1926         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
1927         accepting an rtx_insn *.
1928         (last_call_insn): Strengthen return type from rtx to
1929         rtx_call_insn *.
1931 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
1933         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
1934         "insns" from rtx to rtx_insn *.
1935         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
1936         locals "insn" and "prev".
1938 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
1940         * rtl.h (tablejump_p): Strengthen third param from rtx * to
1941         rtx_jump_table_data **.
1943         * cfgbuild.c (make_edges): Introduce local "table", using it in
1944         place of "tmp" for jump table data.
1945         (find_bb_boundaries): Strengthen local "table" from rtx to
1946         rtx_jump_table_data *.
1947         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1948         (outgoing_edges_match): Likewise for locals "table1" and "table2".
1949         (try_crossjump_to_edge): Likewise.
1950         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
1951         "table".
1952         (patch_jump_insn): Introduce local "table", using it in place of
1953         "tmp" for jump table data.
1954         (force_nonfallthru_and_redirect): Introduce local "table", so that
1955         call to tablejump_p can receive an rtx_jump_table_data **.  Update
1956         logic around the call to overwrite "note" appropriately if
1957         tablejump_p returns non-zero.
1958         (get_last_bb_insn): Introduce local "table", using it in place of
1959         "tmp" for jump table data.
1960         * dwarf2cfi.c (create_trace_edges): Likewise.
1962         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
1963         from rtx to rtx_jump_table_data *.
1964         (create_fix_barrier): Strengthen local "tmp" from rtx to
1965         rtx_jump_table_data *.
1966         (arm_reorg): Likewise for local "table".
1968         * config/s390/s390.c (s390_chunkify_start): Likewise.
1970         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
1972         * jump.c (delete_related_insns): Strengthen local "lab_next" from
1973         rtx to rtx_jump_table_data *.
1975         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
1976         rtx_jump_table_data **.  Add a checked cast when writing through
1977         the pointer: we know there that local "table" is non-NULL and that
1978         JUMP_TABLE_DATA_P (table) holds.
1979         (label_is_jump_target_p): Introduce local "table", using it in
1980         place of "tmp" for jump table data.
1982 2014-08-19  Marek Polacek  <polacek@redhat.com>
1984         PR c++/62153
1985         * doc/invoke.texi: Document -Wbool-compare.
1987 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
1989         * rtl.h (entry_of_function): Strengthen return type from rtx to
1990         rtx_insn *.
1991         * cfgrtl.c (entry_of_function): Likewise.
1993 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
1995         * emit-rtl.h (get_insns): Strengthen return type from rtx to
1996         rtx_insn *, adding a checked cast for now.
1997         (get_last_insn): Likewise.
1999 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
2001         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
2002         rtx_code_label *.
2004         * emit-rtl.c (gen_label_rtx): Likewise.
2006 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
2008         * rtl.h (previous_insn): Strengthen return type from rtx to
2009         rtx_insn *.
2010         (next_insn): Likewise.
2011         (prev_nonnote_insn): Likewise.
2012         (prev_nonnote_insn_bb): Likewise.
2013         (next_nonnote_insn): Likewise.
2014         (next_nonnote_insn_bb): Likewise.
2015         (prev_nondebug_insn): Likewise.
2016         (next_nondebug_insn): Likewise.
2017         (prev_nonnote_nondebug_insn): Likewise.
2018         (next_nonnote_nondebug_insn): Likewise.
2019         (prev_real_insn): Likewise.
2020         (next_real_insn): Likewise.
2021         (prev_active_insn): Likewise.
2022         (next_active_insn): Likewise.
2024         * emit-rtl.c (next_insn): Strengthen return type from rtx to
2025         rtx_insn *, adding a checked cast.
2026         (previous_insn): Likewise.
2027         (next_nonnote_insn): Likewise.
2028         (next_nonnote_insn_bb): Likewise.
2029         (prev_nonnote_insn): Likewise.
2030         (prev_nonnote_insn_bb): Likewise.
2031         (next_nondebug_insn): Likewise.
2032         (prev_nondebug_insn): Likewise.
2033         (next_nonnote_nondebug_insn): Likewise.
2034         (prev_nonnote_nondebug_insn): Likewise.
2035         (next_real_insn): Likewise.
2036         (prev_real_insn): Likewise.
2037         (next_active_insn): Likewise.
2038         (prev_active_insn): Likewise.
2040         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
2041         param "stepfunc" so that it returns an rtx_insn * rather than an
2042         rtx, to track the change to prev_nonnote_insn_bb, which is the
2043         only function this is called with.
2044         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
2046 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
2048         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
2049         assert.
2051 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
2053         * coretypes.h (class rtx_debug_insn): Add forward declaration.
2054         (class rtx_nonjump_insn): Likewise.
2055         (class rtx_jump_insn): Likewise.
2056         (class rtx_call_insn): Likewise.
2057         (class rtx_jump_table_data): Likewise.
2058         (class rtx_barrier): Likewise.
2059         (class rtx_code_label): Likewise.
2060         (class rtx_note): Likewise.
2062         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
2063         adding the invariant DEBUG_INSN_P (X).
2064         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
2065         the invariant NONJUMP_INSN_P (X).
2066         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
2067         the invariant JUMP_P (X).
2068         (class rtx_call_insn): New, a subclass of rtx_insn, adding
2069         the invariant CALL_P (X).
2070         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
2071         invariant JUMP_TABLE_DATA_P (X).
2072         (class rtx_barrier): New, a subclass of rtx_insn, adding the
2073         invariant BARRIER_P (X).
2074         (class rtx_code_label): New, a subclass of rtx_insn, adding
2075         the invariant LABEL_P (X).
2076         (class rtx_note): New, a subclass of rtx_insn, adding
2077         the invariant NOTE_P(X).
2078         (is_a_helper <rtx_debug_insn *>::test): New.
2079         (is_a_helper <rtx_nonjump_insn *>::test): New.
2080         (is_a_helper <rtx_jump_insn *>::test): New.
2081         (is_a_helper <rtx_call_insn *>::test): New.
2082         (is_a_helper <rtx_jump_table_data *>::test): New functions,
2083         overloaded for both rtx and rtx_insn *.
2084         (is_a_helper <rtx_barrier *>::test): New.
2085         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
2086         for both rtx and rtx_insn *.
2087         (is_a_helper <rtx_note *>::test): New.
2089 2014-08-19  Marek Polacek  <polacek@redhat.com>
2091         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
2092         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
2093         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
2094         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
2096 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
2098         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
2099         rtx_insn *.  To help with transition, for now, convert from an
2100         access macro into a pair of functions: BND_TO, returning an
2101         rtx_insn *, and...
2102         (SET_BND_TO): New function, for use where BND_TO is used as an
2103         lvalue.
2105         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
2106         SET_BND_TO.
2107         (BND_TO): New function, adding a checked cast.
2108         (SET_BND_TO): New function.
2110         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
2111         SET_BND_TO.
2112         (compute_av_set_on_boundaries): Likewise.
2114 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
2116         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
2117         destination if it is used in source.
2118         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
2119         (*popcount<mode>2_falsedep_1): Likewise.
2121 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
2123         PR other/62168
2124         * configure.ac: Set install_gold_as_default to no first.
2125         * configure: Regenerated.
2127 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
2129         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
2130         "note_list" field will eventually be an rtx_insn *.  To help with
2131         transition, for now, convert from an access macro into a pair of
2132         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
2133         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
2134         used as an lvalue.
2136         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
2137         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
2139         * sel-sched-ir.c (init_bb): Likewise.
2140         (sel_restore_notes): Likewise.
2141         (move_bb_info): Likewise.
2142         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
2143         (SET_BB_NOTE_LIST): New function.
2145 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
2147         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
2148         field will eventually be an rtx_insn *.  To help with transition,
2149         for now, convert from an access macro into a pair of functions:
2150         VINSN_INSN_RTX, returning an rtx_insn *, and...
2151         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
2152         is used as an lvalue.
2154         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
2155         SET_VINSN_INSN_RTX where it's used as an lvalue.
2156         (VINSN_INSN_RTX): New function.
2157         (SET_VINSN_INSN_RTX): New function.
2159 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
2161         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
2162         eventually be rtx_insn *, but to help with transition, for now,
2163         convert from an access macro into a pair of functions: DEP_PRO
2164         returning an rtx_insn * and...
2165         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
2166         lvalue, returning an rtx&.
2167         (DEP_CON): Analogous changes to DEP_PRO above.
2168         (SET_DEP_CON): Likewise.
2170         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
2171         an lvalue to SET_DEP_CON.
2172         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
2173         (sd_copy_back_deps): Likewise for DEP_CON.
2174         (DEP_PRO): New function, adding a checked cast for now.
2175         (DEP_CON): Likewise.
2176         (SET_DEP_PRO): New function.
2177         (SET_DEP_CON): Likewise.
2179 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
2181         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
2182         (extra_options): Add i386/cygwin.opt.
2183         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
2184         (CPP_SPEC): Accept -pthread.
2185         (LINK_SPEC): Ditto.
2186         (GOMP_SELF_SPECS): Update comment.
2187         * config/i386/cygwin.opt: New file for -pthread flag.
2189 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
2191         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
2192         * df.h (DF_REF_INSN): Convert from a macro to a function, so
2193         that we can return an rtx_insn *.
2195 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
2197         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
2198         when building executables, not DLLs.  Add --large-address-aware
2199         under the same conditions.
2200         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
2201         when building executables, not DLLs.  Add --large-address-aware
2202         under the same conditions when using -m32.
2204         * config/i386/cygwin-stdint.h: Throughout, make type
2205         definitions dependent on target architecture, not host.
2207 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
2209         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
2210         the return type from rtx to rtx_insn *,  which will enable various
2211         conversions in followup patches.  For now this is is done by a
2212         checked cast.
2213         (NEXT_INSN): Likewise.
2214         (SET_PREV_INSN): Convert to an inline function.  This is intended
2215         for use as an lvalue, and so returns an rtx& to allow in-place
2216         modification.
2217         (SET_NEXT_INSN): Likewise.
2219 2014-07-08  Mark Wielaard  <mjw@redhat.com>
2221         PR debug/59051
2222         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
2224 2014-08-19  Marek Polacek  <polacek@redhat.com>
2226         PR c/61271
2227         * cgraphunit.c (handle_alias_pairs): Fix condition.
2229 2014-08-19  Richard Biener  <rguenther@suse.de>
2231         * gimple-fold.c (fold_gimple_assign): Properly build a
2232         null-pointer constant when devirtualizing addresses.
2234 2014-07-07  Mark Wielaard  <mjw@redhat.com>
2236         * dwarf2out.c (decl_quals): New function.
2237         (modified_type_die): Take one cv_quals argument instead of two,
2238         one for const and one for volatile.
2239         (add_type_attribute): Likewise.
2240         (generic_parameter_die): Call add_type_attribute with one modifier
2241         argument.
2242         (base_type_for_mode): Likewise.
2243         (add_bounds_info): Likewise.
2244         (add_subscript_info): Likewise.
2245         (gen_array_type_die): Likewise.
2246         (gen_descr_array_type_die): Likewise.
2247         (gen_entry_point_die): Likewise.
2248         (gen_enumeration_type_die): Likewise.
2249         (gen_formal_parameter_die): Likewise.
2250         (gen_subprogram_die): Likewise.
2251         (gen_variable_die): Likewise.
2252         (gen_const_die): Likewise.
2253         (gen_field_die): Likewise.
2254         (gen_pointer_type_die): Likewise.
2255         (gen_reference_type_die): Likewise.
2256         (gen_ptr_to_mbr_type_die): Likewise.
2257         (gen_inheritance_die): Likewise.
2258         (gen_subroutine_type_die): Likewise.
2259         (gen_typedef_die): Likewise.
2260         (force_type_die): Likewise.
2262 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2264         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
2265         if unset.
2266         * configure: Regenerate.
2268 2014-08-19  Richard Biener  <rguenther@suse.de>
2270         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
2271         DECL_EXTERNALs in BLOCKs as non-references.
2272         * tree-streamer-out.c (streamer_write_chain): Likewise.
2274 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2275             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2276             Anna Tikhonova  <anna.tikhonova@intel.com>
2277             Ilya Tocar  <ilya.tocar@intel.com>
2278             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2279             Ilya Verbin  <ilya.verbin@intel.com>
2280             Kirill Yukhin  <kirill.yukhin@intel.com>
2281             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2283         * config/i386/sse.md
2284         (define_mode_iterator VI48_AVX512F): Delete.
2285         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
2286         (define_mode_iterator VI2_AVX512VL): Ditto.
2287         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
2288         Delete.
2289         (define_insn
2290         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
2291         New.
2292         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
2293         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
2294         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
2295         with VI48_AVX512F_AVX512VL): New.
2296         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
2297         with VI2_AVX512VL): Ditto.
2299 2014-08-19  Marek Polacek  <polacek@redhat.com>
2301         * doc/invoke.texi: Document -Wc99-c11-compat.
2303 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
2305         * rtl.h (PREV_INSN): Split macro in two: the existing one,
2306         for rvalues, and...
2307         (SET_PREV_INSN): New macro, for use as an lvalue.
2308         (NEXT_INSN, SET_NEXT_INSN): Likewise.
2310         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
2311         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
2312         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
2313         (fixup_abnormal_edges): Likewise.
2314         (unlink_insn_chain): Likewise.
2315         (fixup_reorder_chain): Likewise.
2316         (cfg_layout_delete_block): Likewise.
2317         (cfg_layout_merge_blocks): Likewise.
2318         * combine.c (update_cfg_for_uncondjump): Likewise.
2319         * emit-rtl.c (link_insn_into_chain): Likewise.
2320         (remove_insn): Likewise.
2321         (delete_insns_since): Likewise.
2322         (reorder_insns_nobb): Likewise.
2323         (emit_insn_after_1): Likewise.
2324         * final.c (rest_of_clean_state): Likewise.
2325         (final_scan_insn): Likewise.
2326         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
2327         * haifa-sched.c (concat_note_lists): Likewise.
2328         (remove_notes): Likewise.
2329         (restore_other_notes): Likewise.
2330         (move_insn): Likewise.
2331         (unlink_bb_notes): Likewise.
2332         (restore_bb_notes): Likewise.
2333         * jump.c (delete_for_peephole): Likewise.
2334         * optabs.c (emit_libcall_block_1): Likewise.
2335         * reorg.c (emit_delay_sequence): Likewise.
2336         (fill_simple_delay_slots): Likewise.
2337         * sel-sched-ir.c (sel_move_insn): Likewise.
2338         (sel_remove_insn): Likewise.
2339         (get_bb_note_from_pool): Likewise.
2340         * sel-sched.c (move_nop_to_previous_block): Likewise.
2342         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
2343         * config/c6x/c6x.c (gen_one_bundle): Likewise.
2344         (c6x_gen_bundles): Likewise.
2345         (hwloop_optimize): Likewise.
2346         * config/frv/frv.c (frv_function_prologue): Likewise.
2347         (frv_register_nop): Likewise.
2348         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
2349         (ia64_reorg): Likewise.
2350         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
2351         (mep_make_bundle): Likewise.
2352         (mep_bundle_insns): Likewise.
2353         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
2354         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
2355         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
2357 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
2359         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
2360         return type from rtx to rtx_insn *.
2361         (BB_END): Likewise.
2362         (BB_HEADER): Likewise.
2363         (BB_FOOTER): Likewise.
2364         (SET_BB_HEAD): Convert to a function.
2365         (SET_BB_END): Likewise.
2366         (SET_BB_HEADER): Likewise.
2367         (SET_BB_FOOTER): Likewise.
2369         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
2370         Strengthen the return type from rtx to rtx_insn *.  For now, this
2371         is done by adding a checked cast, but this will eventually
2372         become a field lookup.
2373         (BB_END): Likewise.
2374         (BB_HEADER): Likewise.
2375         (BB_FOOTER): Likewise.
2376         (SET_BB_HEAD): New function, from macro of same name.  This is
2377         intended for use as an lvalue, and so returns an rtx& to allow
2378         in-place modification.
2379         (SET_BB_END): Likewise.
2380         (SET_BB_HEADER): Likewise.
2381         (SET_BB_FOOTER): Likewise.
2383 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
2385         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
2386         for rvalues, and...
2387         (SET_BB_HEAD): New macro, for use as a lvalue.
2388         (BB_END, SET_BB_END): Likewise.
2389         (BB_HEADER, SET_BB_HEADER): Likewise.
2390         (BB_FOOTER, SET_BB_FOOTER): Likewise.
2392         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
2393         of BB_* macros into SET_BB_* macros.
2394         (fix_crossing_unconditional_branches): Likewise.
2395         * caller-save.c (save_call_clobbered_regs): Likewise.
2396         (insert_one_insn): Likewise.
2397         * cfgbuild.c (find_bb_boundaries): Likewise.
2398         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
2399         (outgoing_edges_match): Likewise.
2400         (try_optimize_cfg): Likewise.
2401         * cfgexpand.c (expand_gimple_cond): Likewise.
2402         (expand_gimple_tailcall): Likewise.
2403         (expand_gimple_basic_block): Likewise.
2404         (construct_exit_block): Likewise.
2405         * cfgrtl.c (delete_insn): Likewise.
2406         (create_basic_block_structure): Likewise.
2407         (rtl_delete_block): Likewise.
2408         (rtl_split_block): Likewise.
2409         (emit_nop_for_unique_locus_between): Likewise.
2410         (rtl_merge_blocks): Likewise.
2411         (block_label): Likewise.
2412         (try_redirect_by_replacing_jump): Likewise.
2413         (emit_barrier_after_bb): Likewise.
2414         (fixup_abnormal_edges): Likewise.
2415         (record_effective_endpoints): Likewise.
2416         (relink_block_chain): Likewise.
2417         (fixup_reorder_chain): Likewise.
2418         (fixup_fallthru_exit_predecessor): Likewise.
2419         (cfg_layout_duplicate_bb): Likewise.
2420         (cfg_layout_split_block): Likewise.
2421         (cfg_layout_delete_block): Likewise.
2422         (cfg_layout_merge_blocks): Likewise.
2423         * combine.c (update_cfg_for_uncondjump): Likewise.
2424         * emit-rtl.c (add_insn_after): Likewise.
2425         (remove_insn): Likewise.
2426         (reorder_insns): Likewise.
2427         (emit_insn_after_1): Likewise.
2428         * haifa-sched.c (get_ebb_head_tail): Likewise.
2429         (restore_other_notes): Likewise.
2430         (move_insn): Likewise.
2431         (sched_extend_bb): Likewise.
2432         (fix_jump_move): Likewise.
2433         * ifcvt.c (noce_process_if_block): Likewise.
2434         (dead_or_predicable): Likewise.
2435         * ira.c (update_equiv_regs): Likewise.
2436         * reg-stack.c (change_stack): Likewise.
2437         * sel-sched-ir.c (sel_move_insn): Likewise.
2438         * sel-sched.c (move_nop_to_previous_block): Likewise.
2440         * config/c6x/c6x.c (hwloop_optimize): Likewise.
2441         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
2443 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
2445         * rtl.h (for_each_rtx_in_insn): New function.
2446         * rtlanal.c (for_each_rtx_in_insn): Likewise.
2448 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
2450         * coretypes.h (class rtx_insn): Add forward declaration.
2452         * rtl.h: Include is-a.h.
2453         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
2454         workaround to ensure gengtype knows inheritance is occurring,
2455         whilst continuing to use the pre-existing special-casing for
2456         rtx_def.
2457         (class rtx_insn): New subclass of rtx_def, adding the
2458         invariant that we're dealing with something we can sanely use
2459         INSN_UID, NEXT_INSN, PREV_INSN on.
2460         (is_a_helper <rtx_insn *>::test): New.
2461         (is_a_helper <const rtx_insn *>::test): New.
2463 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
2465         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
2467 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
2469         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
2470         comdats as extern.
2472 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
2474         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
2475         to BUILT_IN_UNREACHABLE.
2477 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
2479         PR target/62011
2480         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
2481         New tune flag.
2482         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
2483         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
2484         (ffs<mode>2): Do not expand with tzcnt for
2485         TARGET_AVOID_FALSE_DEP_FOR_BMI.
2486         (ffssi2_no_cmove): Ditto.
2487         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
2488         (ctz<mode>2): New expander.
2489         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
2490         (*ctz<mode>2_falsedep): New insn.
2491         (*ctz<mode>2): Rename from ctz<mode>2.
2492         (clz<mode>2_lzcnt): New expander.
2493         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
2494         (*clz<mode>2_lzcnt_falsedep): New insn.
2495         (*clz<mode>2): Rename from ctz<mode>2.
2496         (popcount<mode>2): New expander.
2497         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
2498         (*popcount<mode>2_falsedep): New insn.
2499         (*popcount<mode>2): Rename from ctz<mode>2.
2500         (*popcount<mode>2_cmp): Remove.
2501         (*popcountsi2_cmp_zext): Ditto.
2503 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
2505         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
2506         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
2507         * config/microblaze/microblaze.h
2508         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
2510 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
2512         PR other/62168
2513         * configure.ac: Set install_gold_as_default to no for
2514          --enable-gold=no.
2515          * configure: Regenerated.
2517 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
2519         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
2520         * config.in: Add undef of HAVE_isl.
2521         * configure: Regenerate.
2522         * configure.ac: Add definition of HAVE_isl.
2523         * graphite-blocking.c: Add checking of HAVE_isl.
2524         * graphite-dependences.c: Likewise.
2525         * graphite-interchange.c: Likewise.
2526         * graphite-isl-ast-to-gimple.c: Likewise.
2527         * graphite-optimize-isl.c: Likewise.
2528         * graphite-poly.c: Likewise.
2529         * graphite-scop-detection.c: Likewise.
2530         * graphite-sese-to-poly.c: Likewise.
2531         * graphite.c: Likewise.
2532         * toplev.c: Replace the checking of HAVE_cloog with the checking
2533         of HAVE_isl.
2535 2014-08-18  Richard Biener  <rguenther@suse.de>
2537         PR tree-optimization/62090
2538         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
2539         (fold_builtin_3): Do not fold snprintf.
2540         (fold_builtin_4): Likewise.
2541         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
2542         moved from builtins.c.
2543         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
2544         (gimple_fold_builtin): Do not fold sprintf here.
2546 2014-08-18  Richard Biener  <rguenther@suse.de>
2548         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
2549         code to ...
2550         (maybe_canonicalize_mem_ref_addr): ... this function.
2551         (fold_stmt_1): Apply it here before all simplification.
2553 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
2555         PR ipa/61800
2556         * cgraph.h (cgraph_node::create_indirect_edge): Add
2557         compute_indirect_info param.
2558         * cgraph.c (cgraph_node::create_indirect_edge): Compute
2559         indirect_info only when it is required.
2560         * cgraphclones.c (cgraph_clone_edge): Do not recompute
2561         indirect_info fore cloned indirect edge.
2563 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2564             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2565             Anna Tikhonova  <anna.tikhonova@intel.com>
2566             Ilya Tocar  <ilya.tocar@intel.com>
2567             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2568             Ilya Verbin  <ilya.verbin@intel.com>
2569             Kirill Yukhin  <kirill.yukhin@intel.com>
2570             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2572         * config/i386/sse.md
2573         (define_mode_iterator VI8_AVX2_AVX512BW): New.
2574         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
2576 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2577             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2578             Anna Tikhonova  <anna.tikhonova@intel.com>
2579             Ilya Tocar  <ilya.tocar@intel.com>
2580             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2581             Ilya Verbin  <ilya.verbin@intel.com>
2582             Kirill Yukhin  <kirill.yukhin@intel.com>
2583             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2585         * config/i386/sse.md
2586         (define_mode_iterator VF1_AVX512VL): New.
2587         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
2588         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
2589         New.
2591 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2592             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2593             Anna Tikhonova  <anna.tikhonova@intel.com>
2594             Ilya Tocar  <ilya.tocar@intel.com>
2595             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2596             Ilya Verbin  <ilya.verbin@intel.com>
2597             Kirill Yukhin  <kirill.yukhin@intel.com>
2598             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2600         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
2601         * config/i386/i386.md
2602         (define_code_iterator any_float): New.
2603         (define_code_attr floatsuffix): New.
2604         * config/i386/sse.md
2605         (define_mode_iterator VF1_128_256VL): New.
2606         (define_mode_iterator VF2_512_256VL): New.
2607         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
2608         TARGET check.
2609         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
2610         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
2611         New.
2612         (define_mode_attr qq2pssuff): New.
2613         (define_mode_attr sselongvecmode): New.
2614         (define_mode_attr sselongvecmodelower): New.
2615         (define_mode_attr sseintvecmode3): New.
2616         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
2617         New.
2618         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
2619         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
2620         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
2621         (define_insn "ufloatv2siv2df2<mask_name>"): New.
2623 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2624             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2625             Anna Tikhonova  <anna.tikhonova@intel.com>
2626             Ilya Tocar  <ilya.tocar@intel.com>
2627             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2628             Ilya Verbin  <ilya.verbin@intel.com>
2629             Kirill Yukhin  <kirill.yukhin@intel.com>
2630             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2632         * config/i386/sse.md
2633         (define_mode_iterator VF2_AVX512VL): New.
2634         (define_mode_attr sseintvecmode2): New.
2635         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
2636         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
2637         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
2638         (define_insn
2639         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
2640         Ditto.
2641         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
2642         Ditto.
2643         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
2644         Ditto.
2646 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2647             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2648             Anna Tikhonova  <anna.tikhonova@intel.com>
2649             Ilya Tocar  <ilya.tocar@intel.com>
2650             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2651             Ilya Verbin  <ilya.verbin@intel.com>
2652             Kirill Yukhin  <kirill.yukhin@intel.com>
2653             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2655         * config/i386/i386.md
2656         (define_insn "*movoi_internal_avx"): Add evex version.
2657         (define_insn "*movti_internal"): Ditto.
2659 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2660             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2661             Anna Tikhonova  <anna.tikhonova@intel.com>
2662             Ilya Tocar  <ilya.tocar@intel.com>
2663             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2664             Ilya Verbin  <ilya.verbin@intel.com>
2665             Kirill Yukhin  <kirill.yukhin@intel.com>
2666             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2668         * config/i386/i386.md
2669         (define_attr "isa"): Add avx512dq, noavx512dq.
2670         (define_attr "enabled"): Ditto.
2671         * config/i386/sse.md
2672         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
2674 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2675             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2676             Anna Tikhonova  <anna.tikhonova@intel.com>
2677             Ilya Tocar  <ilya.tocar@intel.com>
2678             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2679             Ilya Verbin  <ilya.verbin@intel.com>
2680             Kirill Yukhin  <kirill.yukhin@intel.com>
2681             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2683         * config/i386/i386.c
2684         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
2685         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
2686         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
2687         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
2688         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
2689         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
2690         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
2691         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
2692         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
2693         * config/i386/sse.md
2694         (define_mode_iterator VMOVE): Allow V4TI mode.
2695         (define_mode_iterator V_AVX512VL): New.
2696         (define_mode_iterator V): New handling for AVX512VL.
2697         (define_insn "avx512f_load<mode>_mask"): Delete.
2698         (define_insn "<avx512>_load<mode>_mask"): New.
2699         (define_insn "avx512f_store<mode>_mask"): Delete.
2700         (define_insn "<avx512>_store<mode>_mask"): New.
2703 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
2705         PR sanitizer/62089
2706         * asan.c (instrument_derefs): Fix bitfield check.
2708 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
2710         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
2711         * config/rs6000/htm.md (ttest): Remove clobber.
2712         * config/rs6000/predicates.md (any_mask_operand): New predicate.
2713         (and_operand): Reformat.
2714         (and_2rld_operand): New predicate.
2715         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
2716         parameter.
2717         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
2718         parameter.  Handle AND directly.
2719         (rs6000_split_logical_di): Remove last parameter.
2720         (rs6000_split_logical): Remove last parameter.  Remove obsolete
2721         comment.
2722         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
2723         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
2724         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
2725         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
2726         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
2727         and 5 anonymous splitters):  Delete.
2728         (and<mode>3): New expander.
2729         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
2730         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
2731         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
2732         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
2733         (floatdisf2_internal1): Remove clobbers.
2734         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
2735         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
2736         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
2737         (and<mode>3 for BOOL_128): Remove clobber.
2738         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
2739         rs6000_split_logical.
2740         (*bool<mode>3_internal for BOOL_128): Adjust call of
2741         rs6000_split_logical.
2742         (*boolc<mode>3_internal1 for BOOL_128,
2743         *boolc<mode>3_internal2 for BOOL_128,
2744         *boolcc<mode>3_internal1 for BOOL_128,
2745         *boolcc<mode>3_internal2 for BOOL_128,
2746         *eqv<mode>3_internal1 for BOOL_128,
2747         *eqv<mode>3_internal2 for BOOL_128,
2748         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
2749         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
2750         clobber.
2751         (*vec_reload_and_reg_<mptrsize>): Delete.
2753 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
2755         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
2756         and split, *boolccsi3_internal3 and split): Delete.
2757         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
2758         *boolccdi3_internal3 and split): Delete.
2759         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
2760         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
2762 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
2764         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
2765         and split, *boolcsi3_internal3 and split): Delete.
2766         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
2767         *boolcdi3_internal3 and split): Delete.
2768         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
2770 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
2772         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
2773         <'u'>: Also support printing the low-order 16 bits.
2774         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
2775         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
2776         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
2777         *booldi3_internal3 and split): Delete.
2778         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
2779         *bool<mode>3_dot2): New.
2780         (two anonymous define_splits for non_logical_cint_operand): Merge.
2782 2014-08-17  Marek Polacek  <polacek@redhat.com>
2783             Manuel López-Ibáñez  <manu@gcc.gnu.org>
2785         PR c/62059
2786         * diagnostic.c (adjust_line): Add gcc_checking_assert.
2787         (diagnostic_show_locus): Don't print caret diagnostic
2788         if a column is larger than the line_width.
2790 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
2792         * common.opt: Make the ISL AST generator to be the main code generator
2793         of Graphite.
2795 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
2797         * wide-int.h (generic_wide_int): Declare as class instead of struct.
2799 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
2801         PR target/61641
2802         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
2803         Declare.
2804         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
2805         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
2806         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
2807         Define.
2808         * config/pa/pa.md (begin_brtab): Delete insn.
2809         (end_brtab): Likewise.
2811 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2813         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
2815 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
2817         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
2818         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
2819         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
2820         (get_dynamic_type): Remove.
2821         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
2822         (clear_speculation): Bring to ipa-deivrt.h
2823         (get_class_context): Rename to ...
2824         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
2825         (contains_type_p): Update.
2826         (get_dynamic_type): Rename to ...
2827         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
2828         (possible_polymorphic_call_targets): UPdate.
2829         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
2830         * ipa-prop.c (ipa_analyze_call_uses): Update.
2832 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
2834         * doc/invoke.texi (SH options): Document missing processor variant
2835         options.  Remove references to Hitachi.  Undocument deprecated mspace
2836         option.
2838 2014-08-15  Jason Merrill  <jason@redhat.com>
2840         * tree.c (type_hash_canon): Uncomment assert.
2842 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2844         * input.h (in_system_header_at): Add comment.
2846 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2848         PR fortran/44054
2849         * diagnostic.c (build_message_string): Make it extern.
2850         * diagnostic.h (build_message_string): Make it extern.
2852 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
2854         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
2855         load/store from/to non-floating class pseudo.
2857 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2859         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
2861 2014-08-15  Richard Biener  <rguenther@suse.de>
2863         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
2864         (get_constraint_for_ssa_var): Remove dead code.
2865         (get_constraint_for_1): Adjust.
2866         (find_what_var_points_to): Likewise.
2867         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
2869 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
2871         PR target/61878
2872         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
2873         (_mm512_mask_cmpge_epu32_mask): Ditto.
2874         (_mm512_cmpge_epu32_mask): Ditto.
2875         (_mm512_mask_cmpge_epi64_mask): Ditto.
2876         (_mm512_cmpge_epi64_mask): Ditto.
2877         (_mm512_mask_cmpge_epu64_mask): Ditto.
2878         (_mm512_cmpge_epu64_mask): Ditto.
2879         (_mm512_mask_cmple_epi32_mask): Ditto.
2880         (_mm512_cmple_epi32_mask): Ditto.
2881         (_mm512_mask_cmple_epu32_mask): Ditto.
2882         (_mm512_cmple_epu32_mask): Ditto.
2883         (_mm512_mask_cmple_epi64_mask): Ditto.
2884         (_mm512_cmple_epi64_mask): Ditto.
2885         (_mm512_mask_cmple_epu64_mask): Ditto.
2886         (_mm512_cmple_epu64_mask): Ditto.
2887         (_mm512_mask_cmplt_epi32_mask): Ditto.
2888         (_mm512_cmplt_epi32_mask): Ditto.
2889         (_mm512_mask_cmplt_epu32_mask): Ditto.
2890         (_mm512_cmplt_epu32_mask): Ditto.
2891         (_mm512_mask_cmplt_epi64_mask): Ditto.
2892         (_mm512_cmplt_epi64_mask): Ditto.
2893         (_mm512_mask_cmplt_epu64_mask): Ditto.
2894         (_mm512_cmplt_epu64_mask): Ditto.
2895         (_mm512_mask_cmpneq_epi32_mask): Ditto.
2896         (_mm512_mask_cmpneq_epu32_mask): Ditto.
2897         (_mm512_cmpneq_epu32_mask): Ditto.
2898         (_mm512_mask_cmpneq_epi64_mask): Ditto.
2899         (_mm512_cmpneq_epi64_mask): Ditto.
2900         (_mm512_mask_cmpneq_epu64_mask): Ditto.
2901         (_mm512_cmpneq_epu64_mask): Ditto.
2902         (_mm512_castpd_ps): Ditto.
2903         (_mm512_castpd_si512): Ditto.
2904         (_mm512_castps_pd): Ditto.
2905         (_mm512_castps_si512): Ditto.
2906         (_mm512_castsi512_ps): Ditto.
2907         (_mm512_castsi512_pd): Ditto.
2908         (_mm512_castpd512_pd128): Ditto.
2909         (_mm512_castps512_ps128): Ditto.
2910         (_mm512_castsi512_si128): Ditto.
2911         (_mm512_castpd512_pd256): Ditto.
2912         (_mm512_castps512_ps256): Ditto.
2913         (_mm512_castsi512_si256): Ditto.
2914         (_mm512_castpd128_pd512): Ditto.
2915         (_mm512_castps128_ps512): Ditto.
2916         (_mm512_castsi128_si512): Ditto.
2917         (_mm512_castpd256_pd512): Ditto.
2918         (_mm512_castps256_ps512): Ditto.
2919         (_mm512_castsi256_si512): Ditto.
2920         (_mm512_cmpeq_epu32_mask): Ditto.
2921         (_mm512_mask_cmpeq_epu32_mask): Ditto.
2922         (_mm512_mask_cmpeq_epu64_mask): Ditto.
2923         (_mm512_cmpeq_epu64_mask): Ditto.
2924         (_mm512_cmpgt_epu32_mask): Ditto.
2925         (_mm512_mask_cmpgt_epu32_mask): Ditto.
2926         (_mm512_mask_cmpgt_epu64_mask): Ditto.
2927         (_mm512_cmpgt_epu64_mask): Ditto.
2928         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
2929         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
2930         * config/i386/i386.c (enum ix86_builtins): Add
2931         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
2932         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
2933         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
2934         (bdesc_args): Add __builtin_ia32_si512_256si,
2935         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
2936         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
2937         __builtin_ia32_pd512_pd.
2938         (ix86_expand_args_builtin): Handle new FTYPEs.
2939         * config/i386/sse.md (castmode): Add 512-bit modes.
2940         (AVX512MODE2P): New.
2941         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
2942         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
2944 2014-08-15  Richard Biener  <rguenther@suse.de>
2946         * fold-const.c (tree_swap_operands_p): Put all constants
2947         last, also strip sign-changing NOPs when considering further
2948         canonicalization.  Canonicalize also when optimizing for size.
2950 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2952         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
2953         one_match > zero_match case to just before simple_sequence.
2955 2014-08-15  Richard Biener  <rguenther@suse.de>
2957         * data-streamer.h (streamer_string_index, string_for_index):
2958         Remove.
2959         * data-streamer-out.c (streamer_string_index): Make static.
2960         * data-streamer-in.c (string_for_index): Likewise.
2961         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
2962         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
2964 2014-08-15  Richard Biener  <rguenther@suse.de>
2966         PR tree-optimization/62031
2967         * tree-data-ref.c (dr_analyze_indices): Do not set
2968         DR_UNCONSTRAINED_BASE.
2969         (dr_may_alias_p): All indirect accesses have to go the
2970         formerly DR_UNCONSTRAINED_BASE path.
2971         * tree-data-ref.h (struct indices): Remove
2972         unconstrained_base member.
2973         (DR_UNCONSTRAINED_BASE): Remove.
2975 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
2977         PR middle-end/62092
2978         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
2979         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
2980         in OMP_CLAUSE_MAP in some outer target region.
2982 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
2984         * tree-ssa-loop-ivopts.c (ivopts_data): New field
2985         name_expansion_cache.
2986         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
2987         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
2988         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
2989         (difference_cannot_overflow_p): New parameter.  Use affine
2990         expansion for equality check.
2991         (iv_elimination_compare_lt): Pass new argument.
2993 2014-08-14  DJ Delorie  <dj@redhat.com>
2995         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
2996         variables to the accumulator.
2998         * config/rl78/predicates.md (rl78_near_mem_operand): New.
2999         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
3000         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
3001         with far-far moves.
3003         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
3004         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
3005         (umulqihi3_virt): Likewise.
3006         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
3007         (umulqihi3_real): Likewise.
3009         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
3011 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
3013         PR tree-optimization/62091
3014         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
3015         function_entry_reached.
3016         (walk_aliased_vdefs): Clear it here.
3017         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
3019 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
3021         * ipa-utils.h (compare_virtual_tables): Declare.
3022         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
3024 2014-08-14  Marek Polacek  <polacek@redhat.com>
3026         DR 458
3027         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
3028         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
3030 2014-08-14  Tom de Vries  <tom@codesourcery.com>
3032         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
3034 2014-08-14  Tom de Vries  <tom@codesourcery.com>
3036         PR rtl-optimization/62004
3037         PR rtl-optimization/62030
3038         * ifcvt.c (rtx_interchangeable_p): New function.
3039         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
3040         * emit-rtl.h (mem_attrs_eq_p): Declare.
3042 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
3044         * graphite-scop-detection.c:
3045         Add inclusion of cp-tree.h.
3046         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
3047         in case they are pointers to object types
3049 2014-08-14  Richard Biener  <rguenther@suse.de>
3051         * BASE-VER: Change to 5.0.0
3053 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3054             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3055             Anna Tikhonova  <anna.tikhonova@intel.com>
3056             Ilya Tocar  <ilya.tocar@intel.com>
3057             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3058             Ilya Verbin  <ilya.verbin@intel.com>
3059             Kirill Yukhin  <kirill.yukhin@intel.com>
3060             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3062         * config/i386/sse.md (define_mode_attr avx512): New.
3063         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
3064         V4DI modes.
3065         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
3066         (define_mode_attr ssse3_avx2): Ditto.
3067         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
3068         (define_mode_attr avx2_avx512bw): New.
3069         (define_mode_attr ssedoublemodelower): New.
3070         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
3071         V32HI, V64QI modes.
3072         (define_mode_attr ssebytemode): Allow V8DI modes.
3073         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
3074         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
3075         (define_mode_attr ssePSmode2): New.
3076         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
3077         V16HI, V32HI modes.
3078         (define_mode_attr dbpsadbwmode): New.
3079         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
3080         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
3081         (vi8_sse4_1_avx2_avx512): New.
3082         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
3083         mode attribute.
3084         (define_mode_attr blendbits): Move before its immediate use.
3086 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3087             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3088             Anna Tikhonova  <anna.tikhonova@intel.com>
3089             Ilya Tocar  <ilya.tocar@intel.com>
3090             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3091             Ilya Verbin  <ilya.verbin@intel.com>
3092             Kirill Yukhin  <kirill.yukhin@intel.com>
3093             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3095         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
3096         * config/i386/subst.md
3097         (define_mode_iterator SUBST_V): Update.
3098         (define_mode_iterator SUBST_A): Ditto.
3099         (define_subst_attr "mask_operand7"): New.
3100         (define_subst_attr "mask_operand10"): New.
3101         (define_subst_attr "mask_operand_arg34") : New.
3102         (define_subst_attr "mask_expand_op3"): New.
3103         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
3104         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
3105         (define_subst_attr "mask_avx512vl_condition"): New.
3106         (define_subst_attr "round_mask_operand4"): Ditto.
3107         (define_subst_attr "round_mask_scalar_op3"): Delete.
3108         (define_subst_attr "round_mask_op4"): New.
3109         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
3110         V16SImode.
3111         (define_subst_attr "round_modev8sf_condition"): New.
3112         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
3113         <MODE>mode.
3114         (define_subst_attr "round_saeonly_mask_operand4"): New.
3115         (define_subst_attr "round_saeonly_mask_op4"): New.
3116         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
3117         V8DImode, V16SImode.
3118         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
3119         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
3120         (define_subst_attr "mask_expand4_args"): New.
3121         (define_subst "mask_expand4"): New.
3123 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3124             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3125             Anna Tikhonova  <anna.tikhonova@intel.com>
3126             Ilya Tocar  <ilya.tocar@intel.com>
3127             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3128             Ilya Verbin  <ilya.verbin@intel.com>
3129             Kirill Yukhin  <kirill.yukhin@intel.com>
3130             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3132         * config/i386/i386.md
3133         (define_attr "isa"): Add avx512bw,noavx512bw.
3134         (define_attr "enabled"): Ditto.
3135         (define_split): Add 32/64-bit mask logic.
3136         (define_insn "*k<logic>qi"): New.
3137         (define_insn "*k<logic>hi"): New.
3138         (define_insn "*anddi_1"): Add mask version.
3139         (define_insn "*andsi_1"): Ditto.
3140         (define_insn "*<code><mode>_1"): Ditto.
3141         (define_insn "*<code>hi_1"): Ditto.
3142         (define_insn "kxnor<mode>"): New.
3143         (define_insn "kunpcksi"): New.
3144         (define_insn "kunpckdi"): New.
3145         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
3146         (define_insn "*one_cmplhi2_1"): Ditto.
3148 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3149             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3150             Anna Tikhonova  <anna.tikhonova@intel.com>
3151             Ilya Tocar  <ilya.tocar@intel.com>
3152             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3153             Ilya Verbin  <ilya.verbin@intel.com>
3154             Kirill Yukhin  <kirill.yukhin@intel.com>
3155             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3157         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
3158         V32HImode.
3160 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3161             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3162             Anna Tikhonova  <anna.tikhonova@intel.com>
3163             Ilya Tocar  <ilya.tocar@intel.com>
3164             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3165             Ilya Verbin  <ilya.verbin@intel.com>
3166             Kirill Yukhin  <kirill.yukhin@intel.com>
3167             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3169         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
3170         registers.
3171         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
3172         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
3173         xmm/ymm16+ when availble.
3174         * config/i386/i386.h
3175         (HARD_REGNO_NREGS): Add mask regs.
3176         (VALID_AVX512F_REG_MODE): Ditto.
3177         (VALID_AVX512F_REG_MODE) : Define.
3178         (VALID_MASK_AVX512BW_MODE): Ditto.
3179         (reg_class) (MASK_REG_P(X)): Define.
3180         * config/i386/i386.md: Do not split long moves with mask register,
3181         use kmovb if avx512bw is availible.
3182         (movdi_internal): Handle mask registers.
3184 2014-08-14  Richard Biener  <rguenther@suse.de>
3186         PR tree-optimization/62081
3187         * tree-ssa-loop.c (pass_fix_loops): New pass.
3188         (pass_tree_loop::gate):  Do not fixup loops here.
3189         * tree-pass.h (make_pass_fix_loops): Declare.
3190         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
3192 2014-08-14  Richard Biener  <rguenther@suse.de>
3194         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
3195         (type_hash_canon): ... this and avoid 2nd lookup for the add.
3197 2014-08-14  Richard Biener  <rguenther@suse.de>
3199         PR tree-optimization/62090
3200         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
3201         (fold_builtin_2): Do not fold sprintf.
3202         (fold_builtin_3): Likewise.
3203         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
3204         moved from builtins.c.
3205         (gimple_fold_builtin): Fold sprintf.
3207 2014-08-14  Richard Biener  <rguenther@suse.de>
3209         PR rtl-optimization/62079
3210         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
3211         run cleanup_cfg.
3213 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
3215         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
3216         current_function_decl.
3218 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
3220         * cgraph.c (cgraph_node::function_symbol): Fix wrong
3221         cgraph_function_node to cgraph_node::function_symbol
3222         refactoring.
3224 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
3226         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
3227         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
3229 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
3231         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
3232         warning.
3234 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
3236         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
3237         generator.
3239 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
3241         PR target/62025
3242         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
3243         any registers that are used in mem_insn.
3245 2014-08-12  Steve Ellcey  <sellcey@mips.com>
3247         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler. 
3249 2014-08-12  Steve Ellcey  <sellcey@mips.com>
3251         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
3252         (MULTILIB_DIRNAMES): Ditto.
3253         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
3254         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
3255         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
3256         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
3257         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
3258         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
3260 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3262         PR target/61413
3263         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
3264         of __ARM_SIZEOF_WCHAR_T.
3266 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3268         PR target/62098
3269         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
3270         Remove unnecessary attributes.
3272 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
3274         * internal-fn.c (init_internal_fns): Fix off-by-one.
3276 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3277             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3278             Anna Tikhonova  <anna.tikhonova@intel.com>
3279             Ilya Tocar  <ilya.tocar@intel.com>
3280             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3281             Ilya Verbin  <ilya.verbin@intel.com>
3282             Kirill Yukhin  <kirill.yukhin@intel.com>
3283             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3285         * config/i386/i386.c (standard_sse_constant_opcode): Use
3286         vpxord/vpternlog if avx512 is availible.
3288 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3290         PR middle-end/62103
3291         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
3292         bitfields, that is when size doesn't match the size of type or the
3293         size of the constructor.
3295 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
3297         * config/rs6000/constraints.md (wh constraint): New constraint,
3298         for FP registers if direct move is available.
3299         (wi constraint): New constraint, for VSX/FP registers that can
3300         handle 64-bit integers.
3301         (wj constraint): New constraint for VSX/FP registers that can
3302         handle 64-bit integers for direct moves.
3303         (wk constraint): New constraint for VSX/FP registers that can
3304         handle 64-bit doubles for direct moves.
3305         (wy constraint): Make documentation match implementation.
3307         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
3308         scalar_in_vmx_p field to simplify tests of whether SFmode or
3309         DFmode can go in the Altivec registers.
3310         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
3311         (rs6000_setup_reg_addr_masks): Likewise.
3312         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
3313         field, and wh/wi/wj/wk constraints.
3314         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
3315         the wh/wi/wj/wk constraints.
3316         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
3317         upper registers, prefer VSX registers unless the operation is a
3318         memory operation with REG+OFFSET addressing.
3320         * config/rs6000/vsx.md (VSr mode attribute): Add support for
3321         DImode.  Change SFmode to use ww constraint instead of d to allow
3322         SF registers in the upper registers.
3323         (VSr2): Likewise.
3324         (VSr3): Likewise.
3325         (VSr5): Fix thinko in comment.
3326         (VSa): New mode attribute that is an alternative to wa, that
3327         returns the VSX register class that a mode can go in, but may not
3328         be the preferred register class.
3329         (VS_64dm): New mode attribute for appropriate register classes for
3330         referencing 64-bit elements of vectors for direct moves and normal
3331         moves.
3332         (VS_64reg): Likewise.
3333         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
3334         register allocator to only registers the data type can handle.
3335         (vsx_le_perm_load_<mode>): Likewise.
3336         (vsx_le_perm_store_<mode>): Likewise.
3337         (vsx_xxpermdi2_le_<mode>): Likewise.
3338         (vsx_xxpermdi4_le_<mode>): Likewise.
3339         (vsx_lxvd2x2_le_<mode>): Likewise.
3340         (vsx_lxvd2x4_le_<mode>): Likewise.
3341         (vsx_stxvd2x2_le_<mode>): Likewise.
3342         (vsx_add<mode>3): Likewise.
3343         (vsx_sub<mode>3): Likewise.
3344         (vsx_mul<mode>3): Likewise.
3345         (vsx_div<mode>3): Likewise.
3346         (vsx_tdiv<mode>3_internal): Likewise.
3347         (vsx_fre<mode>2): Likewise.
3348         (vsx_neg<mode>2): Likewise.
3349         (vsx_abs<mode>2): Likewise.
3350         (vsx_nabs<mode>2): Likewise.
3351         (vsx_smax<mode>3): Likewise.
3352         (vsx_smin<mode>3): Likewise.
3353         (vsx_sqrt<mode>2): Likewise.
3354         (vsx_rsqrte<mode>2): Likewise.
3355         (vsx_tsqrt<mode>2_internal): Likewise.
3356         (vsx_fms<mode>4): Likewise.
3357         (vsx_nfma<mode>4): Likewise.
3358         (vsx_eq<mode>): Likewise.
3359         (vsx_gt<mode>): Likewise.
3360         (vsx_ge<mode>): Likewise.
3361         (vsx_eq<mode>_p): Likewise.
3362         (vsx_gt<mode>_p): Likewise.
3363         (vsx_ge<mode>_p): Likewise.
3364         (vsx_xxsel<mode>): Likewise.
3365         (vsx_xxsel<mode>_uns): Likewise.
3366         (vsx_copysign<mode>3): Likewise.
3367         (vsx_float<VSi><mode>2): Likewise.
3368         (vsx_floatuns<VSi><mode>2): Likewise.
3369         (vsx_fix_trunc<mode><VSi>2): Likewise.
3370         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
3371         (vsx_x<VSv>r<VSs>i): Likewise.
3372         (vsx_x<VSv>r<VSs>ic): Likewise.
3373         (vsx_btrunc<mode>2): Likewise.
3374         (vsx_b2trunc<mode>2): Likewise.
3375         (vsx_floor<mode>2): Likewise.
3376         (vsx_ceil<mode>2): Likewise.
3377         (vsx_<VS_spdp_insn>): Likewise.
3378         (vsx_xscvspdp): Likewise.
3379         (vsx_xvcvspuxds): Likewise.
3380         (vsx_float_fix_<mode>2): Likewise.
3381         (vsx_set_<mode>): Likewise.
3382         (vsx_extract_<mode>_internal1): Likewise.
3383         (vsx_extract_<mode>_internal2): Likewise.
3384         (vsx_extract_<mode>_load): Likewise.
3385         (vsx_extract_<mode>_store): Likewise.
3386         (vsx_splat_<mode>): Likewise.
3387         (vsx_xxspltw_<mode>): Likewise.
3388         (vsx_xxspltw_<mode>_direct): Likewise.
3389         (vsx_xxmrghw_<mode>): Likewise.
3390         (vsx_xxmrglw_<mode>): Likewise.
3391         (vsx_xxsldwi_<mode>): Likewise.
3392         (vsx_xscvdpspn): Tighten constraints to only use register classes
3393         the types use.
3394         (vsx_xscvspdpn): Likewise.
3395         (vsx_xscvdpspn_scalar): Likewise.
3397         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
3398         wj, and wk constraints.
3399         (GPR_REG_CLASS_P): New helper macro for register classes targeting
3400         general purpose registers.
3402         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
3403         direct moves.
3404         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
3405         DImode instead of wm.  Use wk constraint for direct move of DFmode
3406         instead of wm.
3407         (extendsidi2_lfiwax): Likewise.
3408         (lfiwax): Likewise.
3409         (lfiwzx): Likewise.
3410         (movdi_internal64): Likewise.
3412         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
3413         wk constraints. Make the wy constraint documentation match them
3414         implementation.
3416 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
3418         Replacement of isl_int by isl_val
3419         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
3420         (compute_bounds_for_param): use isl_val instead of isl_int
3421         (compute_bounds_for_loop): likewise
3422         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
3423         (build_linearized_memory_access): use isl_val instead of isl_int
3424         (pdr_stride_in_loop): likewise
3425         * graphite-optimize-isl.c:
3426         (getPrevectorMap): use isl_val instead of isl_int
3427         * graphite-poly.c:
3428         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
3429         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
3430         (extern the_isl_ctx): declare
3431         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
3432         (extract_affine_gmp): likewise
3433         (wrap): likewise
3434         (build_loop_iteration_domains): likewise
3435         (add_param_constraints): likewise
3437 2014-08-11  Richard Biener  <rguenther@suse.de>
3439         PR tree-optimization/62075
3440         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
3441         handle uses in patterns.
3443 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3444             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3445             Anna Tikhonova  <anna.tikhonova@intel.com>
3446             Ilya Tocar  <ilya.tocar@intel.com>
3447             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3448             Ilya Verbin  <ilya.verbin@intel.com>
3449             Kirill Yukhin  <kirill.yukhin@intel.com>
3450             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3452         * common/config/i386/i386-common.c
3453         (OPTION_MASK_ISA_AVX512VL_SET): Define.
3454         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
3455         (ix86_handle_option): Handle OPT_mavx512vl.
3456         * config/i386/cpuid.h (bit_AVX512VL): Define.
3457         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
3458         set -mavx512vl accordingly.
3459         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3460         OPTION_MASK_ISA_AVX512VL.
3461         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
3462         (ix86_option_override_internal): Define PTA_AVX512VL, handle
3463         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
3464         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
3465         * config/i386/i386.h (TARGET_AVX512VL): Define.
3466         (TARGET_AVX512VL_P(x)): Ditto.
3467         * config/i386/i386.opt: Add mavx512vl.
3469 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
3471         PR tree-optimization/62073
3472         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
3473         a basic block.
3475 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3476             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3477             Anna Tikhonova  <anna.tikhonova@intel.com>
3478             Ilya Tocar  <ilya.tocar@intel.com>
3479             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3480             Ilya Verbin  <ilya.verbin@intel.com>
3481             Kirill Yukhin  <kirill.yukhin@intel.com>
3482             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3484         * common/config/i386/i386-common.c
3485         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
3486         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
3487         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
3488         (ix86_handle_option): Handle OPT_mavx512bw.
3489         * config/i386/cpuid.h (bit_AVX512BW): Define.
3490         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
3491         set -mavx512bw accordingly.
3492         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3493         OPTION_MASK_ISA_AVX512BW.
3494         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
3495         (ix86_option_override_internal): Define PTA_AVX512BW, handle
3496         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
3497         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
3498         * config/i386/i386.h (TARGET_AVX512BW): Define.
3499         (TARGET_AVX512BW_P(x)): Ditto.
3500         * config/i386/i386.opt: Add mavx512bw.
3502 2014-08-11  Richard Biener  <rguenther@suse.de>
3504         PR tree-optimization/62070
3505         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
3506         Remove SSA checking.
3508 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
3510         * asan.c (asan_check_flags): New enum.
3511         (build_check_stmt_with_calls): Removed function.
3512         (build_check_stmt): Split inlining logic to
3513         asan_expand_check_ifn.
3514         (instrument_derefs): Rename parameter.
3515         (instrument_mem_region_access): Rename parameter.
3516         (instrument_strlen_call): Likewise.
3517         (asan_expand_check_ifn): New function.
3518         (asan_instrument): Remove old code.
3519         (pass_sanopt::execute): Change handling of
3520         asan-instrumentation-with-call-threshold.
3521         (asan_clear_shadow): Fix formatting.
3522         (asan_function_start): Likewise.
3523         (asan_emit_stack_protection): Likewise.
3524         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
3525         Update description.
3526         * internal-fn.c (expand_ASAN_CHECK): New function.
3527         * internal-fn.def (ASAN_CHECK): New internal function.
3528         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
3529         Update description.
3530         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
3531         * tree.c: Small comment fix.
3533 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
3535         * gimple.c (gimple_call_fnspec): Support internal functions.
3536         (gimple_call_return_flags): Use const.
3537         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
3538         * internal-fn.def: Add fnspec information.
3539         * internal-fn.h (internal_fn_fnspec): New function.
3540         (init_internal_fns): Declare new function.
3541         * internal-fn.c (internal_fn_fnspec_array): New global variable.
3542         (init_internal_fns): New function.
3543         * tree-core.h: Update macro call.
3544         * tree.c (build_common_builtin_nodes): Initialize internal fns.
3546 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
3548         * lto-streamer.h (struct output_block::symbol): Change from
3549         struct symtab_node to plain symtab_node.
3550         (referenced_from_this_partition_p): Change first parameter
3551         from struct symtab_node to plain symtab_node.
3553 2014-08-10  Marek Polacek  <polacek@redhat.com>
3555         PR c/51849
3556         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
3558 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
3560         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
3561         DECL correctly; do not give up on types in static storage.
3563 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
3565         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
3567 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
3569         * graphite-isl-ast-to-gimple.c:
3570         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
3572         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
3574 2014-08-08  Guozhi Wei  <carrot@google.com>
3576         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
3578 2014-08-08  Cary Coutant  <ccoutant@google.com>
3580         * dwarf2out.c (get_skeleton_type_unit): Remove.
3581         (output_skeleton_debug_sections): Remove skeleton type units.
3582         (output_comdat_type_unit): Likewise.
3583         (dwarf2out_finish): Likewise.
3585 2014-08-07  Yi Yang  <ahyangyi@google.com>
3587         * predict.c (expr_expected_value_1): Remove the redundant assignment.
3589 2014-08-08  Richard Biener  <rguenther@suse.de>
3591         * lto-streamer.h (struct lto_input_block): Make it a class
3592         with a constructor.
3593         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
3594         (struct lto_function_header, struct lto_simple_header,
3595         struct lto_simple_header_with_strings,
3596         struct lto_decl_header, struct lto_function_header): Make
3597         a simple inheritance hieararchy.  Remove unused fields.
3598         (struct lto_asm_header): Remove.
3599         * lto-streamer-out.c (produce_asm): Adjust.
3600         (lto_output_toplevel_asms): Likewise.
3601         (produce_asm_for_decls): Likewise.
3602         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
3603         * data-streamer-in.c (string_for_index): Likewise.
3604         * ipa-inline-analysis.c (inline_read_section): Likewise.
3605         * ipa-prop.c (ipa_prop_read_section): Likewise.
3606         (read_replacements_section): Likewise.
3607         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
3608         * lto-section-in.c (lto_create_simple_input_block): Likewise.
3609         (lto_destroy_simple_input_block): Likewise.
3610         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
3611         (lto_input_toplevel_asms): Likewise.
3613 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3614             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3615             Anna Tikhonova  <anna.tikhonova@intel.com>
3616             Ilya Tocar  <ilya.tocar@intel.com>
3617             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3618             Ilya Verbin  <ilya.verbin@intel.com>
3619             Kirill Yukhin  <kirill.yukhin@intel.com>
3620             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3622         * common/config/i386/i386-common.c
3623         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
3624         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
3625         (ix86_handle_option): Handle OPT_mavx512dq.
3626         * config/i386/cpuid.h (bit_AVX512DQ): Define.
3627         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
3628         set -mavx512dq accordingly.
3629         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3630         OPTION_MASK_ISA_AVX512DQ.
3631         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
3632         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
3633         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
3634         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
3635         * config/i386/i386.h (TARGET_AVX512DQ): Define.
3636         (TARGET_AVX512DQ_P(x)): Ditto.
3637         * config/i386/i386.opt: Add mavx512dq.
3639 2014-08-08  Richard Biener  <rguenther@suse.de>
3641         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
3642         target_percent, target_percent_s): Export.
3643         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
3644         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
3645         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
3646         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
3647         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
3648         Move to gimple-fold.c.
3649         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
3650         strcat and strcpy.
3651         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
3652         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
3653         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
3654         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
3655         (rewrite_call_expr_array): Remove.
3656         (fold_builtin_sprintf_chk): Likewise.
3657         (fold_builtin_snprintf_chk): Likewise.
3658         (fold_builtin_varargs): Remove handling of sprintf_chk,
3659         vsprintf_chk, snprintf_chk and vsnprintf_chk.
3660         (gimple_fold_builtin_sprintf_chk): Remove.
3661         (gimple_fold_builtin_snprintf_chk): Likewise.
3662         (gimple_fold_builtin_varargs): Likewise.
3663         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
3664         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
3665         * gimple.c (gimple_seq_add_seq_without_update): New function.
3666         * gimple.h (gimple_seq_add_seq_without_update): Declare.
3667         * gimple-fold.c: Include output.h.
3668         (gsi_replace_with_seq_vops): New function, split out from ...
3669         (gimplify_and_update_call_from_tree): ... here.
3670         (replace_call_with_value): New function.
3671         (replace_call_with_call_and_fold): Likewise.
3672         (var_decl_component_p): Moved from builtins.c.
3673         (gimple_fold_builtin_memory_op): Moved from builtins.c
3674         fold_builtin_memory_op and rewritten to GIMPLE.
3675         (gimple_fold_builtin_memset): Likewise.
3676         (gimple_fold_builtin_strcpy): Likewise.
3677         (gimple_fold_builtin_strncpy): Likewise.
3678         (gimple_fold_builtin_strcat): Likewise.
3679         (gimple_fold_builtin_fputs): Likewise.
3680         (gimple_fold_builtin_memory_chk): Likewise.
3681         (gimple_fold_builtin_stxcpy_chk): Likewise.
3682         (gimple_fold_builtin_stxncpy_chk): Likewise.
3683         (gimple_fold_builtin_snprintf_chk): Likewise.
3684         (gimple_fold_builtin_sprintf_chk): Likewise.
3685         (gimple_fold_builtin_strlen): New function.
3686         (gimple_fold_builtin_with_strlen): New function split out from
3687         gimple_fold_builtin.
3688         (gimple_fold_builtin): Change signature and handle
3689         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
3690         here.  Call gimple_fold_builtin_with_strlen.
3691         (gimple_fold_call): Adjust.
3693 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
3695         * calls.c (precompute_arguments): Check
3696          promoted_for_signed_and_unsigned_p and set the promoted mode.
3697         (promoted_for_signed_and_unsigned_p): New function.
3698         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
3699         and set the promoted mode.
3700         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
3701         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
3702         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
3705 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
3707         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
3708         instead of SUBREG_PROMOTED_UNSIGNED_SET.
3709         (expand_call): Likewise.
3710         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
3711         to get promoted mode.
3712         * combine.c (record_promoted_value): Skip > 0 comparison with
3713         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
3714         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
3715         of SUBREG_PROMOTED_UNSIGNED_P.
3716         (convert_modes): Likewise.
3717         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
3718         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
3719         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
3720         SUBREG_PROMOTED_UNSIGNED_SET.
3721         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
3722         instead of SUBREG_PROMOTED_UNSIGNED_SET.
3723         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
3724         SUBREG_PROMOTED_SET.
3725         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
3726         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
3727         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
3728         of SUBREG_PROMOTED_UNSIGNED_P.
3729         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
3730         (SUBREG_PROMOTED_SET): New define.
3731         (SUBREG_PROMOTED_GET): Likewise.
3732         (SUBREG_PROMOTED_SIGN): Likewise.
3733         (SUBREG_PROMOTED_SIGNED_P): Likewise.
3734         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
3735         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
3736         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
3737         instead of SUBREG_PROMOTED_UNSIGNED_GET.
3738         (nonzero_bits1): Skip > 0 comparison with the results as
3739         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
3740         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
3741         of !SUBREG_PROMOTED_UNSIGNED_P.
3742         * simplify-rtx.c (simplify_unary_operation_1): Use new
3743         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
3744         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
3745         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
3746         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
3748 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
3750         * ipa-devirt.c: Include gimple-pretty-print.h
3751         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
3752         further tests.
3753         (decl_maybe_in_construction_p): Fix conditional on cdtor check
3754         (get_polymorphic_call_info): Fix return value
3755         (type_change_info): New sturcture based on ipa-prop
3756         variant.
3757         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
3758         based on ipa-prop variant.
3759         (extr_type_from_vtbl_ptr_store): New function
3760         based on ipa-prop variant.
3761         (record_known_type): New function.
3762         (check_stmt_for_type_change): New function.
3763         (get_dynamic_type): New function.
3764         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
3765         * tree-ssa-pre.c: ipa-utils.h
3766         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
3767         machinery; sanity check with ipa-prop devirtualization.
3768         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
3769         polymorphic flag.
3771 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
3773         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
3774         * alias.c, cfgexpand.c, cgraphbuild.c,
3775         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
3776         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
3777         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
3778         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
3779         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
3780         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
3781         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
3782         dse.c, except.c, gengtype.c, gimple-expr.c,
3783         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
3784         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
3785         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
3786         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
3787         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
3788         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
3789         pointer-set.h.
3790         * pointer-set.c: Remove file.
3791         * pointer-set.h: Remove file.
3793 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3795         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
3796         * config/arm/types.md (f_sels, f_seld): Delete.
3798 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3800         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
3801         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
3802         (aarch64_movdi_<mode>high): Likewise.
3803         (aarch64_mov<mode>high_di): Likewise.
3804         (aarch64_movdi_<mode>low): Likewise.
3805         (aarch64_mov<mode>low_di): Likewise.
3806         (aarch64_movtilow_tilow): Likewise.
3807         Add comment explaining usage of fp,simd attributes and of
3808         TARGET_FLOAT and TARGET_SIMD.
3810 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
3811             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3813         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
3814         Use MOVN when one of the half-words is 0xffff.
3816 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
3818         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
3820 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
3822         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
3823         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
3824         (rfs_str): String corresponding to RFS_* constants.
3825         (rank_for_schedule_stats_t): New typedef.
3826         (rank_for_schedule_stats): New static variable.
3827         (rfs_result): New static function.
3828         (rank_for_schedule): Track statistics for deciding heuristics.
3829         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
3830         static functions.
3831         (ready_sort): Use them for debug printouts.
3832         (schedule_block): Init statistics state.  Print statistics on
3833         rank_for_schedule decisions.
3835 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
3837         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
3839 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
3841         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
3842         constraint.
3844 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
3846         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
3847         function to not conflict.
3848         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
3849         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
3850         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
3851         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
3852         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
3853         of pointer_map.
3855 2014-08-07  Marek Polacek  <polacek@redhat.com>
3857         * fold-const.c (fold_binary_loc): Add folding of
3858         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
3860 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
3862         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
3863         instead of type size.
3864         (ASM_FINISH_DECLARE_OBJECT): Likewise.
3866 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
3868         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
3869         (*thumb1_movqi_insn): Likewise.
3870         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
3872 2014-08-07  Tom de Vries  <tom@codesourcery.com>
3874         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
3875         (glibc_2_11_or_earlier): Remove effective-target keywords.
3877 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
3879         * config/arm/arm.c (bdesc_2arg): Fix typo.
3880         (arm_atomic_assign_expand_fenv): Remove The default implementation.
3882 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
3884         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
3886 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
3888         PR debug/61923
3889         * haifa-sched.c (advance_one_cycle): Fix dump.
3890         (schedule_block): Don't advance cycle if we are already at the
3891         beginning of the cycle.
3893 2014-08-06  Martin Jambor  <mjambor@suse.cz>
3895         PR ipa/61393
3896         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
3898 2014-08-06  Richard Biener  <rguenther@suse.de>
3900         PR lto/62034
3901         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
3902         SCCs here.
3903         (lto_input_tree): Pop SCCs here.
3905 2014-08-06  Richard Biener  <rguenther@suse.de>
3907         PR tree-optimization/61320
3908         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
3909         handle misaligned loads.
3911 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
3913         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
3914         (aarch64_expand_vec_perm_const): Check for dup before zip.
3916 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3918         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
3919         CONST_INT_P instead of GET_CODE and compare.
3920         (aarch64_select_cc_mode): Likewise.
3921         (aarch64_print_operand): Likewise.
3922         (aarch64_rtx_costs): Likewise.
3923         (aarch64_simd_valid_immediate): Likewise.
3924         (aarch64_simd_check_vect_par_cnst_half): Likewise.
3925         (aarch64_simd_emit_pair_result_insn): Likewise.
3927 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
3929         * gdbhooks.py (find_gcc_source_dir): New helper function.
3930         (class PassNames): New class, locating and parsing passes.def.
3931         (class BreakOnPass): New command "break-on-pass".
3933 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
3935         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
3936         getting olde.
3938 2014-08-05  Richard Biener  <rguenther@suse.de>
3940         PR rtl-optimization/61672
3941         * emit-rtl.h (mem_attrs_eq_p): Declare.
3942         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
3943         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
3944         * cfgcleanup.c (merge_memattrs): Likewise.
3945         Include emit-rtl.h.
3947 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3949         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
3950         rather than singleton vectors.
3951         (vqdmlsls_lane_s32): Likewise.
3953 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3955         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
3956         Use VSDQ_HSI mode iterator.
3957         (aarch64_sqrdmulh_laneq<mode>): Likewise.
3958         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
3959         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
3960         Use BUILTIN_VDQHS macro.
3961         (sqrdmulh_laneq): Likewise.
3962         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
3963         (vqdmlals_laneq_s32): Likewise.
3964         (vqdmlslh_laneq_s16): Likewise.
3965         (vqdmlsls_laneq_s32): Likewise.
3966         (vqdmulhh_laneq_s16): Likewise.
3967         (vqdmulhs_laneq_s32): Likewise.
3968         (vqrdmulhh_laneq_s16): Likewise.
3969         (vqrdmulhs_laneq_s32): Likewise.
3971 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3973         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
3974         (vmuld_laneq_f64): Likewise.
3975         (vmuls_laneq_f32): Likewise.
3976         (vmul_n_f64): Likewise.
3977         (vmuld_lane_f64): Reimplement in C.
3978         (vmuls_lane_f32): Likewise.
3980 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3982         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
3983         to reservation.
3984         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
3986 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3988         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
3989         (rbitsi2): Likewise.
3990         (*arm_rev): Set predicable and predicable_short_it attributes.
3992 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3994         * convert.c (convert_to_integer): Guard transformation to lrint by
3995         -fno-math-errno.
3997 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
3999         * config/aarch64/aarch64-builtins.c
4000         (aarch64_simd_builtin_type_mode): Delete.
4001         (v8qi_UP): Remap to V8QImode.
4002         (v4hi_UP): Remap to V4HImode.
4003         (v2si_UP): Remap to V2SImode.
4004         (v2sf_UP): Remap to V2SFmode.
4005         (v1df_UP): Remap to V1DFmode.
4006         (di_UP): Remap to DImode.
4007         (df_UP): Remap to DFmode.
4008         (v16qi_UP):V16QImode.
4009         (v8hi_UP): Remap to V8HImode.
4010         (v4si_UP): Remap to V4SImode.
4011         (v4sf_UP): Remap to V4SFmode.
4012         (v2di_UP): Remap to V2DImode.
4013         (v2df_UP): Remap to V2DFmode.
4014         (ti_UP): Remap to TImode.
4015         (ei_UP): Remap to EImode.
4016         (oi_UP): Remap to OImode.
4017         (ci_UP): Map to CImode.
4018         (xi_UP): Remap to XImode.
4019         (si_UP): Remap to SImode.
4020         (sf_UP): Remap to SFmode.
4021         (hi_UP): Remap to HImode.
4022         (qi_UP): Remap to QImode.
4023         (aarch64_simd_builtin_datum): Make mode a machine_mode.
4024         (VAR1): Build builtin name.
4025         (aarch64_init_simd_builtins): Remove dead code.
4027 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
4029         * graphite-isl-ast-to-gimple.c:
4030         (set_options): New function.
4031         (scop_to_isl_ast): Add calling of set_options.
4033 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
4035         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
4036         (analyze_iv_to_split_insn): Don't initialize them.
4037         (get_ivts_expr): Removed.
4038         (allocate_basic_variable, insert_base_initialization): Use
4039         SET_SRC instead of *get_ivts_expr.
4040         (split_iv): Use &SET_SRC instead of get_ivts_expr.
4042 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
4044         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
4045         (translate_isl_ast_for_loop): Add checking of the
4046         flag_loop_parallelize_all.
4047         (ast_build_before_for): New function.
4048         (scop_to_isl_ast): Add checking of the
4049         flag_loop_parallelize_all.
4050         * graphite-dependences.c: Move the defenition of the
4051         scop_get_dependences from graphite-optimize-isl.c to this file.
4052         (apply_schedule_on_deps): Add checking of the ux's emptiness.
4053         (carries_deps): Add checking of the x's value.
4054         * graphite-optimize-isl.c: Move the defenition of the
4055         scop_get_dependences to graphite-dependences.c.
4056         * graphite-poly.h: Add declarations of scop_get_dependences
4057         and carries_deps.
4059 2014-08-04  Rohit  <rohitarulraj@freescale.com>
4061         PR target/60102
4062         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
4063         names.
4064         (alt_reg_names): Likewise.
4065         (rs6000_dwarf_register_span): For SPE high registers, replace
4066         dwarf register numbers with GCC hard register numbers.
4067         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
4068         (rs6000_dbx_register_number): For SPE high registers, return dwarf
4069         register number for the corresponding GCC hard register number.
4070         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
4071         newly added GCC hard register numbers for SPE high registers.
4072         (DWARF_FRAME_REGISTERS):  Likewise.
4073         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
4074         (DWARF_FRAME_REGNUM): Likewise.
4075         (FIXED_REGISTERS): Likewise.
4076         (CALL_USED_REGISTERS): Likewise.
4077         (CALL_REALLY_USED_REGISTERS): Likewise.
4078         (REG_ALLOC_ORDER): Likewise.
4079         (enum reg_class): Likewise.
4080         (REG_CLASS_NAMES): Likewise.
4081         (REG_CLASS_CONTENTS): Likewise.
4082         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
4084 2014-08-04  Richard Biener  <rguenther@suse.de>
4086         * gimple-fold.h (gimple_fold_builtin): Remove.
4087         * gimple-fold.c (gimple_fold_builtin): Make static.
4088         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
4089         fold_stmt, not gimple_fold_builtin.
4091 2014-08-04  Martin Liska <mliska@suse.cz>
4093         * cgraph.h (csi_end_p): Removed.
4094         (csi_next): Likewise.
4095         (csi_node): Likewise.
4096         (csi_start): Likewise.
4097         (cgraph_node_in_set_p): Likewise.
4098         (cgraph_node_set_size): Likewise.
4099         (vsi_end_p): Likewise.
4100         (vsi_next): Likewise.
4101         (vsi_node): Likewise.
4102         (vsi_start): Likewise.
4103         (varpool_node_set_size): Likewise.
4104         (cgraph_node_set_nonempty_p): Likewise.
4105         (varpool_node_set_nonempty_p): Likewise.
4106         * cgraphunit.c (cgraph_process_new_functions): vec replaces
4107         cgraph_node_set.
4108         * ipa-inline-transform.c: Likewise.
4109         * ipa-utils.c (cgraph_node_set_new): Removed.
4110         (cgraph_node_set_add): Likewise.
4111         (cgraph_node_set_remove): Likewise.
4112         (cgraph_node_set_find): Likewise.
4113         (dump_cgraph_node_set): Likewise.
4114         (debug_cgraph_node_set): Likewise.
4115         (free_cgraph_node_set): Likewise.
4116         (varpool_node_set_new): Likewise.
4117         (varpool_node_set_add): Likewise.
4118         (varpool_node_set_remove): Likewise.
4119         (varpool_node_set_find): Likewise.
4120         (dump_varpool_node_set): Likewise.
4121         (free_varpool_node_set): Likewise.
4122         (debug_varpool_node_set): Likewise.
4123         * tree-emutls.c (struct tls_var_data):
4124         (emutls_index): Removed.
4125         (emutls_decl): Likewise.
4126         (gen_emutls_addr): Function implementation uses newly added
4127         hash_map<varpool_node *, tls_var_data>.
4128         (clear_access_vars): Likewise.
4129         (create_emultls_var): Likewise.
4130         (ipa_lower_emutls): Likewise.
4131         (reset_access): New function.
4133 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
4135         * config/i386/i386.c (ix86_option_override_internal): Add
4136         PTA_RDRND and PTA_MOVBE for bdver4.
4138 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4139             James Greenhalgh  <james.greenhalgh@arm.com>
4141         * doc/md.texi (clrsb): Document.
4142         (clz): Change reference to x into operand 1.
4143         (ctz): Likewise.
4144         (popcount): Likewise.
4146 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4148         PR target/61713
4149         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
4150         move to subtarget in serial version if result is ignored.
4152 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4153             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4155         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
4156         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
4157         (sched_analyze_insn): Update use of try_group_insn to
4158         sched_macro_fuse_insns.
4159         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
4160         arguments that are not conditional jumps.
4162 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
4164         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
4165         family information. Handle BTVER2 cpu with cpuid family value.
4167 2014-08-04  Tom de Vries  <tom@codesourcery.com>
4169         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
4170         (glibc_2_11_or_earlier): Document effective-target keywords.
4172 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
4174         * ipa-devirt.c (odr_type_warn_count): Add type.
4175         (possible_polymorphic_call_targets): Set it.
4176         (ipa_devirt): Use it.
4178 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
4180         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
4181         Document.
4182         * ipa-devirt.c: Include hash-map.h
4183         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
4184         (clear_speculation): Break out of ...
4185         (get_class_context): ... here; speed up handling obviously useless
4186         speculations.
4187         (odr_type_warn_count, decl_warn_count): New structures.
4188         (final_warning_record): New structure.
4189         (final_warning_records): New static variable.
4190         (possible_polymorphic_call_targets): Cleanup handling of
4191         speculative info; do not build speculation when user do not care;
4192         record info about warnings when asked for.
4193         (add_decl_warning): New function.
4194         (type_warning_cmp): New function.
4195         (decl_warning_cmp): New function.
4196         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
4197         (gate): Enable pass when warnings are requested.
4198         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
4199         options.
4201 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
4203         * hash-map.h (default_hashmap_traits::mark_key_deleted):
4204         Fix cast.
4205         (hash_map::remove): New method.
4206         (hash_map::traverse): New method.
4207         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
4208         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
4209         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
4210         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
4211         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
4212         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
4213         pointer_map.
4215 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
4217         * hash-set.h: new File.
4218         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
4219         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
4220         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
4221         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
4222         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
4223         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
4224         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
4225         varpool.c: Use hash_set instead of pointer_set.
4227 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
4229         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
4231 2014-08-01  Jiong Wang <jiong.wang@arm.com>
4233         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
4234         for frame access when strict_p is false.
4236 2014-08-01  Renlin Li <renlin.li@arm.com>
4237 2014-08-01  Jiong Wang <jiong.wang@arm.com>
4239         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
4240         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
4241         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
4242         Declaration.
4243         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
4244         predicate.
4245         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
4246         aarch64_mem_pair_offset.
4248 2014-08-01  Jiong Wang <jiong.wang@arm.com>
4250         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
4251         offset.
4252         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
4253         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
4255 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
4257         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
4259 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
4261         PR regression/61510
4262         * cgraphunit.c (analyze_functions): Use get_create rather than get
4263         for decls which are clones of abstract functions.
4265 2014-08-01  Martin Liska  <mliska@suse.cz>
4267         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
4268         * ipa-prop.h (count_formal_params): Global function created from static.
4269         * ipa-prop.c (count_formal_params): Likewise.
4270         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
4271         profiles for semantically equivalent functions.
4272         * passes.c (do_per_function): If we load body of a function
4273         during WPA, this condition should behave same.
4274         * varpool.c (ctor_for_folding): More tolerant assert for variable
4275         aliases created during WPA.
4277 2014-08-01  Martin Liska  <mliska@suse.cz>
4279         * doc/invoke.texi (Options That Control Optimization): Documentation
4280         for -foptimize-strlen introduced. Optimization levels default options
4281         fixed.
4283 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
4285         * opts.c (common_handle_option): Handle -fsanitize=alignment.
4286         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
4287         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
4288         type to bool.
4289         * stor-layout.h (min_align_of_type): New prototype.
4290         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
4291         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
4292         check.
4293         * ubsan.c: Include builtins.h.
4294         (ubsan_expand_bounds_ifn): Change return type to bool,
4295         always return true.
4296         (ubsan_expand_null_ifn): Change return type to bool, change
4297         argument to gimple_stmt_iterator *.  Handle both null and alignment
4298         sanitization, take type from ckind argument's type rather than
4299         first argument.
4300         (instrument_member_call): Removed.
4301         (instrument_mem_ref): Remove t argument, add mem and base arguments.
4302         Handle both null and alignment sanitization, don't say whole
4303         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
4304         call instead of 2 argument.
4305         (instrument_null): Adjust instrument_mem_ref caller.  Don't
4306         instrument calls here.
4307         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
4308         like SANITIZE_NULL.
4309         * stor-layout.c (min_align_of_type): New function.
4310         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
4311         Or it into SANITIZE_UNDEFINED.
4312         * doc/invoke.texi (-fsanitize=alignment): Document.
4314 2014-07-31  Andi Kleen  <ak@linux.intel.com>
4316         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
4318 2014-07-31  Andi Kleen  <ak@linux.intel.com>
4320         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
4321         inchash.
4322         (vn_reference_compute_hash): Dito.
4323         (vn_nary_op_compute_hash): Dito.
4324         (vn_phi_compute_hash): Dito.
4325         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
4327 2014-07-31  Andi Kleen  <ak@linux.intel.com>
4329         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
4330         Rename to inchash:add_expr_commutative. Convert to inchash.
4331         (iterative_hash_hashable_expr): Rename to
4332         inchash:add_hashable_expr. Convert to inchash.
4333         (avail_expr_hash): Dito.
4335 2014-07-31  Andi Kleen  <ak@linux.intel.com>
4337         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
4338         Convert to inchash.
4340 2014-07-31  Andi Kleen  <ak@linux.intel.com>
4342         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
4344 2014-07-31  Andi Kleen  <ak@linux.intel.com>
4346         * Makefile.in (OBJS): Add rtlhash.o
4347         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
4348         (loc_checksum): Dito.
4349         (loc_checksum_ordered): Dito.
4350         (hash_loc_operands): Dito.
4351         (hash_locs): Dito.
4352         (hash_loc_list): Dito.
4353         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
4354         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
4355         * rtlhash.c: New file.
4356         * rtlhash.h: New file.
4358 2014-07-31  Andi Kleen  <ak@linux.intel.com>
4360         * inchash.h (inchash): Change inchash class to namespace.
4361         (class hash): ... Rename from inchash.
4362         (add_object): Move from macro to class template.
4363         * lto-streamer-out.c (hash_tree): Change inchash
4364         to inchash::hash.
4365         * tree.c (build_type_attribute_qual_variant): Dito.
4366         (type_hash_list): Dito.
4367         (attribute_hash_list): Dito.
4368         (iterative_hstate_expr): Rename to inchash::add_expr
4369         (build_range_type_1): Change inchash to inchash::hash
4370         and use hash::add_expr.
4371         (build_array_type_1): Dito.
4372         (build_function_type): Dito
4373         (build_method_type_directly): Dito.
4374         (build_offset_type): Dito.
4375         (build_complex_type): Dito.
4376         (make_vector_type): Dito.
4377         * tree.h (iterative_hash_expr): Dito.
4379 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
4381         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
4383 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
4385         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
4386         correct alphabetical position.
4387         (vpaddd_f64): Rewrite using builtins.
4388         (vpaddd_s64): Move to correct alphabetical position.
4389         (vpaddd_u64): New.
4391 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
4393         PR target/61844
4394         * config/sh/sh.c (sh_legitimate_address_p,
4395         sh_legitimize_reload_address): Handle reg+reg address modes when
4396         ALLOW_INDEXED_ADDRESS is false.
4397         * config/sh/predicates.md (general_movsrc_operand,
4398         general_movdst_operand): Likewise.
4400 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
4402         * config/aarch64/aarch64-builtins.c
4403         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
4404         BYTES_BIG_ENDIAN.
4406 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
4408         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
4409         the generated mask based on BYTES_BIG_ENDIAN.
4410         (aarch64_simd_check_vect_par_cnst_half): New.
4411         * config/aarch64/aarch64-protos.h
4412         (aarch64_simd_check_vect_par_cnst_half): New.
4413         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
4414         the check out to aarch64_simd_check_vect_par_cnst_half.
4415         (vect_par_cnst_lo_half): Likewise.
4416         * config/aarch64/aarch64-simd.md
4417         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
4418         (move_hi_quad_<mode>): Always generate a low mask.
4420 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
4422         * doc/invoke.texi (AVR Options): Add documentation about
4423         __AVR_DEVICE_NAME__ built-in macro.
4425 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
4427         PR target/61948
4428         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
4429         constraints are satisfied.
4430         (<shift>di3_neon): Likewise.
4432 2014-07-31  Richard Biener  <rguenther@suse.de>
4434         PR tree-optimization/61964
4435         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
4436         by structural equality.
4438 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
4440         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
4441         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
4442         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
4443         New enums.
4444         * gcc.c (sanitize_spec_function): Support new option.
4445         (SANITIZER_SPEC): Remove now redundant check.
4446         * opts.c (common_handle_option): Support new option.
4447         (finish_options): Check for incompatibilities.
4448         * toplev.c (process_options): Split userspace-specific checks.
4450 2014-07-31  Richard Biener  <rguenther@suse.de>
4452         * lto-streamer.h (struct output_block): Remove global.
4453         (struct data_in): Remove labels, num_named_labels and
4454         num_unnamed_labels.
4455         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
4456         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
4458 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
4460         PR c++/60517
4461         * common.opt (-Wreturn-local-addr): Moved from c.opt.
4462         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
4463         (isolate_path): New argument to avoid inserting a trap.
4464         (find_implicit_erroneous_behaviour): Handle returning the address
4465         of a local variable.
4466         (find_explicit_erroneous_behaviour): Likewise.
4468 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
4470         PR lto/61868
4471         * toplev.c (init_random_seed): Move piece of code never called to
4472         set_random_seed.
4473         (set_random_seed): see above.
4475 2014-07-31  Tom de Vries  <tom@codesourcery.com>
4477         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
4479 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
4481         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
4482         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
4484 2014-07-31  Richard Biener  <rguenther@suse.de>
4486         * data-streamer.h (streamer_write_data_stream): Declare here,
4487         renamed from ...
4488         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
4489         * lto-cgraph.c (lto_output_node): Adjust.
4490         (lto_output_varpool_node): Likewise.
4491         * data-streamer-out.c (streamer_string_index): Likewise.
4492         (streamer_write_data_stream, lto_append_block): Move from ...
4493         * lto-section-out.c (lto_output_data_stream,
4494         lto_append_block): ... here.
4496 2014-07-30  Mike Stump  <mikestump@comcast.net>
4498         * configure.ac: Also check for popen.
4499         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
4500         * configure: Regenerate.
4501         * config.in:  Regenerate.
4503 2014-07-30  Martin Jambor  <mjambor@suse.cz>
4505         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
4506         parameter to gimple.
4508 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4510         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
4511         address as second parameter to __tpf_eh_return routine.
4513 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
4515         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
4516         Thumb2.
4518 2014-07-30  Tom Tromey  <tromey@redhat.com>
4520         PR c/59855
4521         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
4522         * doc/extend.texi (Type Attributes): Document designated_init
4523         attribute.
4525 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
4527         * graphite-isl-ast-to-gimple.c:
4528         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
4529         (gcc_expression_from_isl_expression): Pass type to
4530         gcc_expression_from_isl_ast_expr_id.
4532 2014-07-30  Richard Biener  <rguenther@suse.de>
4534         * lto-streamer.h (lto_write_data): New function.
4535         * langhooks.c (lhd_append_data): Do not free block.
4536         * lto-section-out.c (lto_write_data): New function writing
4537         raw data to the current section.
4538         (lto_write_stream): Adjust for langhook semantic change.
4539         (lto_destroy_simple_output_block): Write header directly.
4540         * lto-opts.c (lto_write_options): Write options directly.
4541         * lto-streamer-out.c (produce_asm): Write heaeder directly.
4542         (lto_output_toplevel_asms): Likewise.
4543         (copy_function_or_variable): Copy data directly.
4544         (write_global_references): Output index table directly.
4545         (lto_output_decl_state_refs): Likewise.
4546         (write_symbol): Write data directly.
4547         (produce_symtab): Adjust.
4548         (produce_asm_for_decls): Output header and refs directly.
4550 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
4552         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
4553         to speculative_targets
4554         (get_class_context): Fix handling of contextes without outer type;
4555         avoid matching non-polymorphic types in LTO.
4556         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
4557         parameter to speculative_targetsp; handle speculation.
4558         (dump_possible_polymorphic_call_targets): Update dumping.
4560 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
4562         * common.opt (Wodr): Enable by default.
4564 2014-07-29  Olivier Hainque  <hainque@adacore.com>
4566         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
4568 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
4570         PR bootstrap/61914
4571         * gengtype.c (strtoken): New function.
4572         (create_user_defined_type): Replace strtok with strtoken.
4574 2014-07-29  Nathan Sidwell  <nathan@acm.org>
4576         * gcov-io.c (gcov_var): Make hidden.
4577         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
4578         (gcov_do_dump): Declare.
4579         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
4581 2014-07-29  Martin Jambor  <mjambor@suse.cz>
4583         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
4584         parameter to gimple.
4585         (sra_modify_assign): Likewise.
4587 2014-07-29  Richard Biener  <rguenther@suse.de>
4589         PR middle-end/52478
4590         * expr.c (expand_expr_real_2): Revert last change.
4592 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
4594         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
4595         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
4596         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
4597         call.
4598         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
4599         (contains_type_p): Forward declare.
4600         (polymorphic_call_target_hasher::hash): Hash speculative info.
4601         (polymorphic_call_target_hasher::equal): Compare speculative info.
4602         (get_class_context): Handle speuclation.
4603         (contains_type_p): Update.
4604         (get_polymorphic_call_info_for_decl): Update.
4605         (walk_ssa_copies): Break out from ...
4606         (get_polymorphic_call_info): ... here; set speculative context
4607         before giving up.
4608         * ipa-prop.c (ipa_write_indirect_edge_info,
4609         ipa_read_indirect_edge_info): Stream speculative context.
4610         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
4611         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
4612         SPECULATIVE_MAYBE_DERIVED_TYPE).
4613         (possible_polymorphic_call_targets overriders): Update.
4614         (dump_possible_polymorphic_call_targets overriders): Update.
4615         (dump_possible_polymorphic_call_target_p overriders): Update.
4617 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
4619         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
4620         ipa-devirt path; fix thinko there.
4622 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
4624         * config/i386/i386.c (ix86_return_in_memory): Replace one
4625         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
4627 2014-07-28  Marek Polacek  <polacek@redhat.com>
4629         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
4631 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
4633         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
4634         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
4635         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
4636         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
4637         (USE_LD_AS_NEEDED): Likewise.
4638         (ASM_APP_ON): Likewise.
4639         (ASM_APP_OFF): Likewise.
4640         (TARGET_POSIX_IO): Likewise.
4641         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
4642         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
4643         (USE_LD_AS_NEEDED): Likewise.
4644         (ASM_APP_ON): Likewise.
4645         (ASM_APP_OFF): Likewise.
4646         (TARGET_POSIX_IO): Likewise.
4648 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
4650         PR middle-end/61734
4651         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
4652         operators other than the equality operators.
4654 2014-07-28  Richard Biener  <rguenther@suse.de>
4656         PR middle-end/52478
4657         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
4658         sure to register SImode ones, not only >= word_mode ones.
4659         * expr.c (expand_expr_real_2): When expanding -ftrapv
4660         binops do not use OPTAB_LIB_WIDEN.
4662 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
4664         PR middle-end/61919
4665         * tree-outof-ssa.c (insert_partition_copy_on_edge)
4666         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
4667         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
4668         inserting them in the insn stream.
4670 2014-07-28  Marek Polacek  <polacek@redhat.com>
4672         PR middle-end/61913
4673         * common.opt (Wodr): Add Var.
4675 2014-07-28  Richard Biener  <rguenther@suse.de>
4677         PR tree-optimization/61921
4678         * tree-ssa-structalias.c (create_variable_info_for_1): Check
4679         if there is a varpool node before dereferencing it.
4681 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
4683         * graphite-sese-to-poly.c:
4684         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
4685         id of the pbb), which contains pointer to the pbb1.
4687         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
4689 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
4691         * graphite-isl-ast-to-gimple.c:
4692         (graphite_create_new_guard): New function.
4693         (translate_isl_ast_node_if): New function.
4694         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
4696         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
4698 2014-07-27  Anthony Green  <green@moxielogic.com>
4700         * config.gcc: Add moxie-*-moxiebox* configuration.
4701         * config/moxie/moxiebox.h: New file.
4703 2014-07-26  Andrew Pinski  <apinski@cavium.com>
4705         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
4706         from the read only register.
4708 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
4710         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
4711         as the allocation class if it isn't likely to be spilled.
4713 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
4715         * rtl.h (tls_referenced_p): Declare.
4716         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
4717         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
4718         (mips_cannot_force_const_mem): Use tls_referenced_p.
4719         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
4720         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
4721         instead of pa_tls_referenced_p.
4722         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
4723         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
4724         (pa_legitimate_constant_p): Likewise.
4725         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
4726         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
4727         (rs6000_cannot_force_const_mem, rs6000_emit_move)
4728         (rs6000_address_for_altivec): Use tls_referenced_p instead of
4729         rs6000_tls_referenced_p.
4730         (rs6000_tls_symbol_ref_1): Delete.
4732 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
4734         PR target/44551
4735         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
4736         Optimize inverse of a VEC_CONCAT.
4738 2014-07-25  Xinliang David Li  <davidxl@google.com>
4740         * params.def: New parameter.
4741         * coverage.c (get_coverage_counts): Check new flag.
4742         (coverage_compute_profile_id): Check new flag.
4743         (coverage_begin_function): Check new flag.
4744         (coverage_end_function): Check new flag.
4745         * value-prof.c (coverage_node_map_initialized_p): New function.
4746         (init_node_map): Populate map with all functions.
4747         * doc/invoke.texi: Document new parameter.
4749 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
4750             Richard Biener <rguenther@suse.de>
4752         * lto-streamer-out.c (struct sccs): Turn to ...
4753         (class DFS): ... this one; refactor the DFS walk so it can
4754         be re-done on per-SCC basis.
4755         (DFS::DFS): New constructor.
4756         (DFS::~DFS): New destructor.
4757         (hash_tree): Add new MAP argument holding in-SCC hash values;
4758         remove POINTER_TYPE hashing hack.
4759         (scc_entry_compare): Rename to ...
4760         (DFS::scc_entry_compare): ... this one.
4761         (hash_scc): Rename to ...
4762         (DFS::hash_scc): ... this one; pass output_block instead
4763         of streamer_cache; work harder to get unique and stable SCC
4764         hashes.
4765         (DFS_write_tree): Rename to ...
4766         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
4767         (lto_output_tree): Update.
4769 2014-07-25  Andi Kleen  <ak@linux.intel.com>
4771         * lto-streamer-out.c (hash_tree): Convert to inchash.
4773 2014-07-25  Andi Kleen  <ak@linux.intel.com>
4775         * tree.c (build_type_attribute_qual_variant): Use inchash.
4776         (type_hash_list): Dito.
4777         (attribute_hash_list): Dito
4778         (iterative_hstate_expr): Dito.
4779         (iterative_hash_expr): Dito.
4780         (build_range_type_1): Dito.
4781         (build_array_type_1): Dito.
4782         (build_function_type): Dito.
4783         (build_method_type_directly): Dito.
4784         (build_offset_type): Dito.
4785         (build_complex_type): Dito.
4786         (make_vector_type): Dito.
4787         * tree.h (iterative_hash_expr): Add compat wrapper.
4788         (iterative_hstate_expr): Add.
4790 2014-07-25  Andi Kleen  <ak@linux.intel.com>
4792         * Makefile.in (OBJS): Add inchash.o.
4793         (PLUGIN_HEADERS): Add inchash.h.
4794         * ipa-devirt.c: Include inchash.h.
4795         * lto-streamer-out.c: Dito.
4796         * tree-ssa-dom.c: Dito.
4797         * tree-ssa-pre.c: Dito.
4798         * tree-ssa-sccvn.c: Dito.
4799         * tree-ssa-tail-merge.c: Dito.
4800         * asan.c: Dito.
4801         * tree.c (iterative_hash_hashval_t): Move to ...
4802         (iterative_hash_host_wide_int): Move to ...
4803         * inchash.c: Here. New file.
4804         * tree.h (iterative_hash_hashval_t): Move to ...
4805         (iterative_hash_host_wide_int): Move to ...
4806         * inchash.h: Here. New file.
4808 2014-07-25  Richard Biener  <rguenther@suse.de>
4810         PR middle-end/61762
4811         PR middle-end/61894
4812         * fold-const.c (native_encode_int): Add and handle offset
4813         parameter to do partial encodings of expr.
4814         (native_encode_fixed): Likewise.
4815         (native_encode_real): Likewise.
4816         (native_encode_complex): Likewise.
4817         (native_encode_vector): Likewise.
4818         (native_encode_string): Likewise.
4819         (native_encode_expr): Likewise.
4820         * fold-const.c (native_encode_expr): Add offset parameter
4821         defaulting to -1.
4822         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
4823         (fold_ctor_reference): Handle all reads from tcc_constant
4824         ctors.
4826 2014-07-25  Richard Biener  <rguenther@suse.de>
4828         * tree-inline.c (estimate_move_cost): Mark speed_p argument
4829         as possibly unused.
4831 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
4833         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
4835 2014-07-24  Kyle McMartin  <kyle@redhat.com>
4837         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
4839 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4841         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
4842         Add prototype.
4843         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
4844         function.
4845         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
4846         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
4847         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
4849 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4851         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
4852         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
4853         aggregate types.  Instead, *all* aggregate types, except for single-
4854         element or homogeneous float/vector aggregates, are quadword-aligned
4855         if required by their type alignment.  Issue -Wpsabi note when a type
4856         is now treated differently than before.
4858 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4860         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
4861         does not fit fully into floating-point registers, and there is still
4862         space in the register parameter area, use GPRs to pass those parts
4863         of the argument.  Issue -Wpsabi note if any parameter is now treated
4864         differently than before.
4865         (rs6000_arg_partial_bytes): Update.
4867 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
4869         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
4871 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
4873         * rtl.h (target_rtl): Remove lang_dependent_initialized.
4874         * toplev.c (initialize_rtl): Don't use it.  Move previously
4875         "language-dependent" calls to...
4876         (backend_init): ...here.
4877         (lang_dependent_init_target): Don't set lang_dependent_initialized.
4878         Assert that RTL initialization hasn't happend yet.
4880 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
4882         PR rtl-optimization/61629
4883         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
4884         they have already been initialized.
4886 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
4888         PR middle-end/61268
4889         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
4890         DECL_INCOMING_RTL and entry_parm.
4891         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
4892         * calls.c (load_register_parameters): Likewise argument values.
4893         (emit_library_call_value_1, store_one_arg): Likewise argument
4894         save areas.
4895         * config/i386/i386.c (assign_386_stack_local): Likewise the local
4896         stack slot.
4897         * explow.c (validize_mem): Modify the argument in-place.
4899 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
4901         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
4902         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
4904 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
4906         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
4907         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
4909 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
4911         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
4912         (aarch64_save_callee_saves): New parameter "skip_wb".
4913         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
4915 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
4917         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
4918         "wb_candidate2".
4919         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
4921 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
4923         * graphite-isl-ast-to-gimple.c:
4924         (graphite_create_new_loop): Add calling of isl_id_free to properly
4925         decrement reference counts.
4927         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
4929 2014-07-24  Martin Liska  <mliska@suse.cz>
4930         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
4931         function used.
4932         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
4933         (rs6000_code_end): Likewise.
4935 2014-07-24  Martin Liska  <mliska@suse.cz>
4937         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
4938         symtab_node funtion used.
4939         (rs6000_xcoff_declare_object_name): Likewise.
4941 2014-07-24  Martin Liska  <mliska@suse.cz>
4943         * cgraphunit.c (compile): Correct function used.
4945 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
4947         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
4948         as non-indexable.
4950 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
4952         PR lto/61802
4953         * varasm.c (bss_initializer_p): Handle offlined ctors.
4954         (align_variable, get_variable_align): Likewise.
4955         (make_decl_one_only): Likewise.
4956         (default_binds_local_p_1): Likewise.
4957         (decl_binds_to_current_def_p): Likewise.
4958         (get_variable_section): Get constructor if it is offlined.
4959         (assemble_variable_contents): Sanity check that the caller
4960         streamed in the ctor in LTO.
4962 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
4964         * graphite-isl-ast-to-gimple.c:
4965         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
4966         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
4967         isl_ast_op_pdiv_r to the different case.
4969         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
4971 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4973         PR middle-end/61876
4974         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
4975         when flag_errno_math is on.
4977 2014-07-24  Martin Liska  <mliska@suse.cz>
4979         * cgraph.h (varpool_node):
4980         (availability get_availability (void)):
4981         created from cgraph_variable_initializer_availability
4982         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
4983         created from: cgraph_variable_initializer_availability
4984         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
4985         (void finalize_named_section_flags (void)):
4986         created from varpool_finalize_named_section_flags
4987         (bool assemble_decl (void)): created from varpool_assemble_decl
4988         (void analyze (void)): created from varpool_analyze_node
4989         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
4990         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
4991         (void remove_initializer (void)): created from varpool_remove_initializer
4992         (tree get_constructor (void)): created from varpool_get_constructor
4993         (bool externally_visible_p (void)): created from varpool_externally_visible_p
4994         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
4995         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
4996         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
4997         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
4998         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
4999         (static bool output_variables (void)): created from varpool_output_variables
5000         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
5001         created from varpool_extra_name_alias
5002         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
5003         (static void dump_varpool (FILE *f)): created from dump_varpool
5004         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
5005         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
5006         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
5007         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
5008         (void assemble_aliases (void)): created from assemble_aliases
5010 2014-07-24  Martin Liska  <mliska@suse.cz>
5012         * cgraph.h (symtab_node):
5013         (void register_symbol (void)): created from symtab_register_node
5014         (void remove (void)): created from symtab_remove_node
5015         (void dump (FILE *f)): created from dump_symtab_node
5016         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
5017         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
5018         (struct ipa_ref *add_reference (symtab_node *referred_node,
5019         enum ipa_ref_use use_type)): created from add_reference 
5020         (struct ipa_ref *add_reference (symtab_node *referred_node,
5021         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
5022         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
5023         gimple stmt)): created from maybe_add_reference
5024         (bool semantically_equivalent_p (symtab_node *target)): created from
5025         symtab_semantically_equivalent_p
5026         (void remove_from_same_comdat_group (void)): created from
5027         remove_from_same_comdat_group
5028         (void add_to_same_comdat_group (symtab_node *old_node)): created from
5029         symtab_add_to_same_comdat_group
5030         (void dissolve_same_comdat_group_list (void)): created from
5031         symtab_dissolve_same_comdat_group_list
5032         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
5033         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
5034         created from symtab_alias_ultimate_target
5035         (inline symtab_node *next_defined_symbol (void)): created from
5036         symtab_next_defined_symbol
5037         (bool resolve_alias (symtab_node *target)): created from
5038         symtab_resolve_alias
5039         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
5040         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
5041         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
5042         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
5043         (void set_section (const char *section)): created from set_section_1 
5044         (enum availability get_availability (void)): created from symtab_node_availability
5045         (void make_decl_local (void)): created from symtab_make_decl_local
5046         (bool real_symbol_p (void)): created from symtab_read_node
5047         (can_be_discarded_p (void)): created from symtab_can_be_discarded
5048         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
5049         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
5050         symtab_in_same_comdat_p;
5051         (bool address_taken_from_non_vtable_p (void)): created from
5052         address_taken_from_non_vtable_p
5053         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
5054         (static void dump_table (FILE *)): created from dump_symtab
5055         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
5056         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
5057         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
5058         symtab_used_from_object_file_p 
5059         (void dump_base (FILE *)): created from dump_symtab_base
5060         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
5061         (void unregister (void)): created from symtab_unregister_node
5062         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
5063         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
5064         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
5065         symtab_nonoverwritable_alias_1
5066         * cgraph.h (cgraph_node):
5067         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
5068         created from cgraph_remove_node_and_inline_clones
5069         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
5070         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
5071         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
5072         (cgraph_node *function_symbol (enum availability *avail = NULL)):
5073         created from cgraph_function_node
5074         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
5075         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
5076         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
5077         created from cgraph_create_clone 
5078         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
5079         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
5080         created from cgraph_create_virtual_clone
5081         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
5082         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
5083         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
5084         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
5085         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
5086         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
5087         created from cgraph_function_version_info
5088         (struct cgraph_function_version_info *insert_new_function_version (void)):
5089         created from insert_new_cgraph_node_version
5090         (struct cgraph_function_version_info *function_version (void)): created from
5091         get_cgraph_node_version
5092         (void analyze (void)): created from analyze_function
5093         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
5094         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
5095         tree real_alias) cgraph_add_thunk
5096         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
5097         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
5098         created from cgraph_function_or_thunk_node
5099         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
5100         created from expand_thunk
5101         (void reset (void)): created from cgraph_reset_node
5102         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
5103         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
5104         (void remove (void)): created from cgraph_remove_node
5105         (void dump (FILE *f)): created from dump_cgraph_node
5106         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
5107         (bool get_body (void)): created from cgraph_get_body
5108         (void release_body (void)): created from cgraph_release_function_body
5109         (void unnest (void)): created from cgraph_unnest_node
5110         (void make_local (void)): created from cgraph_make_node_local
5111         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
5112         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
5113         gcov_type count, int freq)): created from cgraph_create_edge
5114         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
5115         gcov_type count, int freq)): created from cgraph_create_indirect_edge
5116         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
5117         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
5118         created from cgraph_create_edge_including_clones
5119         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
5120         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
5121         (void remove_callers (void)): created from cgraph_node_remove_callers
5122         (void remove_callees (void)): created from cgraph_node_remove_callees
5123         (enum availability get_availability (void)): created from cgraph_function_body_availability
5124         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
5125         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
5126         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
5127         (void call_duplication_hooks (cgraph_node *node2)): created from
5128         cgraph_call_node_duplication_hooks
5129         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
5130         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
5131         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
5132         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
5133         (void call_function_insertion_hooks (void)):
5134         created from cgraph_call_function_insertion_hooks
5135         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
5136         (bool local_p (void)): created from cgraph_local_node
5137         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
5138         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
5139         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
5140         (inline bool only_called_directly_or_aliased_p (void)):
5141         created from cgraph_only_called_directly_or_aliased_p
5142         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
5143         created from cgraph_will_be_removed_from_program_if_no_direct_calls
5144         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
5145         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
5146         (bool can_remove_if_no_direct_calls_p (void)):
5147         created from cgraph_can_remove_if_no_direct_calls_p
5148         (inline bool has_gimple_body_p (void)):
5149         created from cgraph_function_with_gimple_body_p
5150         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
5151         (static void dump_cgraph (FILE *f)): created from dump_cgraph
5152         (static inline void debug_cgraph (void)): created from debug_cgraph
5153         (static void record_function_versions (tree decl1, tree decl2)):
5154         created from record_function_versions
5155         (static void delete_function_version (tree decl)):
5156         created from delete_function_version
5157         (static void add_new_function (tree fndecl, bool lowered)):
5158         created from cgraph_add_new_function
5159         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
5160         (static cgraph_node * create (tree decl)): created from cgraph_create_node
5161         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
5162         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
5163         (static cgraph_node *get_for_asmname (tree asmname)):
5164         created from cgraph_node_for_asm
5165         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
5166         created from cgraph_same_body_alias 
5167         (static bool used_from_object_file_p_worker (cgraph_node *node,
5168         void *): new function
5169         (static bool non_local_p (cgraph_node *node, void *)):
5170         created from cgraph_non_local_node_p_1
5171         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
5172         created from verify_cgraph
5173         (static bool make_local (cgraph_node *node, void *)):
5174         created from cgraph_make_node_local
5175         (static cgraph_node *create_alias (tree alias, tree target)):
5176         created from cgraph_create_function_alias
5177         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
5178         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
5179         created from cgraph_create_edge_1
5180         * cgraph.h (varpool_node):
5181         (void remove (void)): created from varpool_remove_node
5182         (void dump (FILE *f)): created from dump_varpool_node
5184 2014-07-24  Richard Biener  <rguenther@suse.de>
5186         PR ipa/61823
5187         * tree-ssa-structalias.c (create_variable_info_for_1):
5188         Use varpool_get_constructor.
5189         (create_variable_info_for): Likewise.
5191 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
5193         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
5194         subtract outgoing area size when restoring stack_pointer_rtx.
5196 2014-07-24  Nick Clifton  <nickc@redhat.com>
5198         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
5199         that operations are taking place in parallel.
5200         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
5202 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
5204         * omp-low.c (extract_omp_for_data): Add missing break statement.
5206 2014-07-24  Richard Biener  <rguenther@suse.de>
5208         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
5209         * tree-inline.c (estimate_move_cost): Add speed_p parameter
5210         and adjust MOVE_RATIO query accordingly.
5211         (estimate_num_insns): Adjust callers.
5212         * ipa-prop.c (ipa_populate_param_decls): Likewise.
5213         * ipa-cp.c (gather_context_independent_values,
5214         estimate_local_effects): Likewise.
5215         * ipa-split.c (consider_split): Likewise.
5217 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
5219         * config/i386/driver-i386.c: Remove names of unused arguments and
5220         unnecessary unused attributes.
5221         * config/i386/host-mingw32.c: Likewise.
5222         * config/i386/i386.c: Likewise.
5223         * config/i386/winnt-stubs.c: Likewise.
5224         * config/i386/winnt.c: Likewise.
5226 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
5228         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
5229         (aarch64_gen_loadwb_pair): New helper function.
5230         (aarch64_expand_epilogue): Simplify code using new helper functions.
5231         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
5233 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
5235         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
5236         (aarch64_gen_storewb_pair): New helper function.
5237         (aarch64_expand_prologue): Simplify code using new helper functions.
5238         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
5240 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
5242         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
5243         Rename to aarch64_save_callee_saves, remove restore code.
5244         (aarch64_restore_callee_saves): New function.
5246 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
5248         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
5249         (aarch64_save_callee_saves): New function to handle reg save
5250         for both core and vectore regs.
5252 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
5254         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
5255         (aarch64_gen_store_pair): New helper function.
5256         (aarch64_save_or_restore_callee_save_registers)
5257         (aarch64_save_or_restore_fprs): Use new helper functions.
5259 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
5261         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
5262         (aarch64_save_or_restore_callee_save_registers)
5263         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
5265 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
5267         * config/aarch64/aarch64.c
5268         (aarch64_save_or_restore_callee_save_registers)
5269         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
5271 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
5273         * config/aarch64/aarch64.c
5274         (aarch64_save_or_restore_callee_save_registers)
5275         (aarch64_save_or_restore_fprs): Remove 'increment'.
5277 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
5279         * config/aarch64/aarch64.c
5280         (aarch64_save_or_restore_callee_save_registers)
5281         (aarch64_save_or_restore_fprs): Use register offset in
5282         cfun->machine->frame.reg_offset.
5284 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
5286         * config/aarch64/aarch64.c
5287         (aarch64_save_or_restore_callee_save_registers)
5288         (aarch64_save_or_restore_fprs): Remove base_rtx.
5290 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
5292         * config/aarch64/aarch64.c
5293         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
5294         to 'start_offset'.  Remove local variable 'start_offset'.
5296 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
5298         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
5299         type to HOST_WIDE_INT.
5301 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
5303         * config/aarch64/aarch64.c (aarch64_expand_prologue)
5304         (aarch64_save_or_restore_fprs)
5305         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
5307 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5309         * config/arm/t-rtems-eabi: Add
5310         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
5311         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
5312         mbig-endian/mthumb/march=armv7-r, and
5313         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
5314         multilibs.
5316 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5317             Chris Johns <chrisj@rtems.org>
5318             Joel Sherrill <joel.sherrill@oarcorp.com>
5320         * config.gcc: Add nios2-*-rtems*.
5321         * config/nios2/rtems.h: New file.
5322         * gcc/config/nios2/t-rtems: New file.
5324 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
5326         PR target/61396
5327         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
5328         constant numbers, not general constants.
5329         (rs6000_expand_vector_init): Ditto.
5331 2014-07-23  Nathan Sidwell  <nathan@acm.org>
5333         * gcov-tool.c (gcov_list): Declare here.
5334         (set_gcov_list): Remove.
5335         (gcov_output_files): Set gcov_list directly.
5337 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
5339         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
5341 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
5343         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
5344         callee-saved registers are available for padding purpose
5345         and r3 is not mandatory, then prefer use those callee-saved
5346         instead of r3.
5348 2014-07-23  Richard Biener  <rguenther@suse.de>
5350         * params.def (PARAM_MAX_COMBINE_INSNS): New.
5351         * combine.c: Include statistics.h and params.h.
5352         (combine_instructions): Guard three and four insn combines
5353         with max-combine-insns value.  Record statistics for combines
5354         performed.
5355         * doc/invoke.texi (max-combine-insns): Document new param.
5357 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
5359         * graphite-isl-ast-to-gimple.c:
5360         (translate_isl_ast_node_block): New function.
5361         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
5363         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
5364         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
5366 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
5368         * graphite-isl-ast-to-gimple.c:
5369         (get_max_schedule_dimensions): New function.
5370         (extend_schedule): Likewise.
5371         (generate_isl_schedule): Add calling of extend_schedule and
5372         get_max_schedule_dimensions.
5374 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5376         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
5377         (case UNSPEC): Handle UNSPEC_RBIT.
5379 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5381         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
5382         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
5384 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5386         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
5388 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
5390         * graphite-isl-ast-to-gimple.c:
5391         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
5392         (ivs_params_clear):
5393         (build_iv_mapping): New function.
5394         (translate_isl_ast_node_user): Likewise.
5395         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
5397         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
5398         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
5399         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
5401 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
5403         PR target/55701
5404         * config/arm/arm.md (setmem): New pattern.
5405         * config/arm/arm-protos.h (struct tune_params): New fields.
5406         (arm_gen_setmem): New prototype.
5407         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
5408         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
5409         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
5410         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
5411         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
5412         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
5413         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
5414         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
5415         (arm_const_inline_cost): New function.
5416         (arm_block_set_max_insns): New function.
5417         (arm_block_set_non_vect_profit_p): New function.
5418         (arm_block_set_vect_profit_p): New function.
5419         (arm_block_set_unaligned_vect): New function.
5420         (arm_block_set_aligned_vect): New function.
5421         (arm_block_set_unaligned_non_vect): New function.
5422         (arm_block_set_aligned_non_vect): New function.
5423         (arm_block_set_vect, arm_gen_setmem): New functions.
5425 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
5427         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
5429 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
5431         PR target/61855
5432         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
5433         out of #ifdef __OPTIMIZE__.
5435 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
5437         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
5438         different trapping status if -fnon-call-exceptions is enabled.
5440 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
5442         * expr.c (store_field): Handle VOIDmode for calls that return values
5443         in multiple locations.
5445 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5447         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
5448         (altivec_vsldoi_<mode>): Likewise.
5450 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
5452         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
5453         to the number of characters in the line.
5455 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
5457         * graphite-isl-ast-to-gimple.c: Add using of
5458         build_nonstandard_integer_type instead of int128_integer_type_node.
5460 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
5462         * toplev.c (output_stack_usage): Adjust the location of the warning.
5464 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
5466         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
5467         (*membar_storeload): Disable for LEON3.
5469 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5471         PR rtl-optimization/61461
5472         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
5474 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
5476         PR target/61794
5477         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
5478         Fix instruction constraint.
5479         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
5481 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
5483         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
5485 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
5487         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
5488         GNU coding standards.
5489         (nds32_register_move_cost): Likewise.
5490         (nds32_memory_move_cost): Likewise.
5491         (nds32_address_cost): Likewise.
5493 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5495         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
5497 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
5499         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
5500         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
5501         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
5502         (HAVE_sync_compare_and_swapqi): Define.
5503         (HAVE_sync_compare_and_swaphi): Likewise.
5504         (HAVE_sync_compare_and_swapsi): Likewise.
5506 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
5508         * config/mips/p5600.md: Add missing cpu tests.
5510 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5512         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
5513         (vmla_f64): Likewise.
5514         (vfms_f64): Likewise.
5515         (vmls_f64): Likewise.
5517 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5519         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
5520         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
5522 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5524         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
5525         (vmlal_high_lane_s32): Likewise.
5526         (vmlal_high_lane_u16): Likewise.
5527         (vmlal_high_lane_u32): Likewise.
5528         (vmlsl_high_lane_s16): Likewise.
5529         (vmlsl_high_lane_s32): Likewise.
5530         (vmlsl_high_lane_u16): Likewise.
5531         (vmlsl_high_lane_u32): Likewise.
5533 2014-07-17  Terry Guo  <terry.guo@arm.com>
5535         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
5536         (alus_reg): Renamed to alus_sreg.
5537         * config/arm/arm-fixed.md: Change type of non-dsp instructions
5538         from alu_reg to alu_sreg.  Change type of dsp instructions from
5539         alu_reg to alu_dsp_reg.
5540         * config/arm/thumb1.md: Likewise.
5541         * config/arm/thumb2.md: Likewise.
5542         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
5543         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
5544         with alu_sreg and alus_sreg.
5545         * config/arm/arm1026ejs.md (alu_op): Likewise.
5546         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
5547         * config/arm/arm926ejs.md (9_alu_op): Likewise.
5548         * config/arm/fa526.md (526_alu_op): Likewise.
5549         * config/arm/fa606te.md (606te_alu_op): Likewise.
5550         * config/arm/fa626te.md (626te_alu_op): Likewise.
5551         * config/arm/fa726te.md (726te_alu_op): Likewise.
5552         * config/arm/fmp626.md (mp626_alu_op): Likewise.
5553         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
5554         alu_sreg, alu_dsp_reg and alus_sreg.
5555         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
5556         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
5557         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
5558         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
5559         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
5560         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
5561         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
5562         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
5563         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
5564         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
5565         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
5566         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
5567         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
5568         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
5569         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
5570         alus_reg to alus_sreg.
5572 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
5574         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
5575         infinity format.
5577 2014-07-17  Richard Biener  <rguenther@suse.de>
5579         PR rtl-optimization/61801
5580         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
5581         don't set reg_pending_barrier if it appears in a debug-insn.
5583 2014-07-16  DJ Delorie  <dj@redhat.com>
5585         * config/rx/rx.c (rx_option_override): Fix alignment values.
5586         (rx_align_for_label): Likewise.
5588 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
5590         PR target/61737.
5591         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
5592         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
5593         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
5594         functions.
5595         (cris_print_index, cris_print_operand, cris_constant_index_p)
5596         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
5597         (cris_address_cost): Ditto last CONSTANT_P.
5598         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
5599         callers changed.  Yield cris_offsettable_symbol for non-PIC
5600         constant symbolic expressions including labels.  Yield cris_unspec
5601         for all unspecs.
5602         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
5603         target to pic_offset_table_rtx for calls that will likely go
5604         through PLT, const0_rtx when they can't.  All callers changed.
5605         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
5606         symbolic expressions to be PICified.  Remove second, redundant,
5607         assert on can_create_pseudo_p returning non-zero.  Use
5608         replace_equiv_address_nv, not replace_equiv_address, for final
5609         operand update.
5610         * config/cris/cris.md ("movsi"): Move variable t to pattern
5611         toplevel. Adjust assert for new cris_symbol_type member.  Use
5612         CONSTANT_P instead of CONSTANT_ADDRESS_P.
5613         ("*movsi_internal") <case 9>: Make check for valid unspec operands
5614         for lapc stricter.
5615         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
5616         ("call", "call_value"): Use second incoming operand as a marker
5617         for pic-offset-table-register being used.
5618         ("*expanded_call_non_v32", "*expanded_call_v32")
5619         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
5620         second incoming operand to CALL, match cris_call_type_marker.
5621         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
5622         ("*expanded_call_side"): Ditto.  Fix typo in comment.
5623         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
5624         CONSTANT_P.
5625         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
5626         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
5627         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
5628         users changed.  Add members cris_offsettable_symbol and cris_unspec.
5629         (cris_symbol_type): Rename from cris_pic_symbol_type.
5630         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
5631         just CONSTANT_P.
5632         * config/cris/cris-protos.h (cris_symbol_type_of,
5633         cris_expand_pic_call_address): Adjust prototypes.
5634         (cris_legitimate_constant_p): New prototype.
5636         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
5637         an existing tmake_file.  Don't add t-slibgcc and t-linux.
5639 2014-07-17  Jason Merrill  <jason@redhat.com>
5641         PR c++/61623
5642         * symtab.c (symtab_remove_from_same_comdat_group): Also
5643         set_comdat_group to NULL_TREE.
5644         (verify_symtab): Fix diagnostic.
5646 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
5648         PR target/61662
5649         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
5651 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
5653         Support location tracking for built-in macro tokens
5654         * input.h (is_location_from_builtin_token): New function declaration.
5655         * input.c (is_location_from_builtin_token): New function definition.
5656         * toplev.c (general_init): Tell libcpp what the pre-defined
5657         spelling location for built-in tokens is.
5659 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
5661         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
5662         on the FUNCTION_DECL.
5664 2014-07-16  Richard Biener  <rguenther@suse.de>
5666         PR other/61782
5667         * doc/extend.texi (always_inline): Clarify.
5669 2014-07-15  Eric Christopher  <echristo@gmail.com>
5671         * doc/invoke.texi (Link Options): Document -z option.
5673 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
5675         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
5676         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
5678 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
5680         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
5682 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
5684         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
5685         varpool_assemble_decl.
5686         * varpool.c (varpool_assemble_decl): Assert that node->definition is
5687         true.
5689 2014-07-15  Michael Matz  <matz@suse.de>
5691         PR rtl-optimization/61772
5692         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
5694 2014-07-15  Richard Biener  <rguenther@suse.de>
5696         * opts.c (default_options_table): Disable bit-ccp at -Og.
5698 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
5700         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
5702 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
5704         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
5705         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
5706         call langhook for unknown declaration.
5707         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
5708         * tree.h (DECL_ARGUMENTS): Update.
5709         * print-tree.c (print_node): Update.
5710         * tree-core.h (tree_decl_non_common): Remove arguments.
5711         (tree_function_decl): Add arguments.
5713 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
5715         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
5717 2014-07-14  Richard Biener  <rguenther@suse.de>
5719         PR tree-optimization/61779
5720         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
5721         simplifying a condition.
5723 2014-07-14  Richard Biener  <rguenther@suse.de>
5725         * builtins.c (c_strlen): Make only_value == 2 really only
5726         affect warning generation.
5728 2014-07-14  Richard Biener  <rguenther@suse.de>
5730         PR tree-optimization/61757
5731         PR tree-optimization/61783
5732         PR tree-optimization/61787
5733         * tree-ssa-dom.c (record_equality): Revert canonicalization
5734         change and add comment.
5735         (propagate_rhs_into_lhs): Revert previous fix, removing
5736         loop depth restriction again.
5738 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5740         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
5741         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
5742         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
5743         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
5744         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
5745         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
5746         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
5748 2014-07-14  Richard Biener  <rguenther@suse.de>
5750         * cgraph.h (decl_in_symtab_p): Make inline.
5752 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
5754         PR middle-end/61294
5755         * doc/invoke.texi (-Wmemset-transposed-args): Document.
5757         PR target/61656
5758         * config/i386/i386.c (classify_argument): Don't merge classes above
5759         number of words.
5761 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
5763         * cgraph.h (symtab_node): Add nonzero_address.
5764         (decl_in_symtab_p): Break out from ...
5765         (symtab_get_node): ... here.
5766         * fold-const.c: Include cgraph.h
5767         (tree_single_nonzero_warnv_p): Use symtab to determine
5768         if symbol is non-zero.
5769         * symtab.c (symtab_node::nonzero_address): New method.
5771 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
5773         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
5774         forgotten in previous commit.
5776 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
5778         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
5779         on builtin types.
5780         * ipa-devirt.c: Include stor-layout.h and intl.h
5781         (odr_subtypes_equivalent_p): New function.
5782         (warn_odr): New function.
5783         (warn_type_mismatch): New function.
5784         (odr_types_equivalent_p): New function.
5785         (add_type_duplicate): Use it.
5786         * common.opt (Wodr): New flag.
5787         * doc/invoke.texi (Wodr): Document new warning.
5789 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
5791         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
5792         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
5793         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
5794         (varpool_get_constructor): Push CTORS_IN timevar.
5795         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
5797 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
5799         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
5800         Remove VOID_FTYPE_PUSHORT.
5801         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
5802         Change code to USHORT_FTYPE_VOID.
5803         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
5804         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
5805         (ix86_atomic_assign_expand_fenv): Update for
5806         __builtin_ia32_fnstsw changes.
5807         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
5808         (fnstsw): Change operand 0 to nonimmediate operand.
5810 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
5812         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
5813         (varpool_get_constructor): New function.
5814         (varpool_ctor_useable_for_folding_p): Break out from ...
5815         (ctor_for_folding): ... here; use varpool_get_constructor.
5816         (varpool_assemble_decl): Likewise.
5817         * lto-streamer.h (struct output_block): Turn cgraph_node
5818         to symbol filed.
5819         (lto_input_variable_constructor): Declare.
5820         * ipa-visibility.c (function_and_variable_visibility): Use
5821         varpool_get_constructor.
5822         * cgraph.h (varpool_get_constructor): Declare.
5823         (varpool_ctor_useable_for_folding_p): New function.
5824         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
5825         parameter; return error_mark_node for non-trivial constructors.
5826         (lto_write_tree_1, DFS_write_tree): Update use of
5827         get_symbol_initial_value.
5828         (output_function): Update initialization of symbol.
5829         (output_constructor): New function.
5830         (copy_function): Rename to ..
5831         (copy_function_or_variable): ... this one; handle vars too.
5832         (lto_output): Output variable sections.
5833         * lto-streamer-in.c (input_constructor): New function.
5834         (lto_read_body): Rename from ...
5835         (lto_read_body_or_constructor): ... this one; handle vars too.
5836         (lto_input_variable_constructor): New function.
5837         * ipa-prop.c (ipa_prop_write_jump_functions,
5838         ipa_prop_write_all_agg_replacement): Update.
5839         * lto-cgraph.c (compute_ltrans_boundary): Use it.
5840         (output_cgraph_opt_summary): Set symbol to NULL.
5842 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
5844         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
5845         non-polymorphic types.
5846         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
5847         * ipa-devirt.c (types_same_for_odr): Do not explode when one
5848         of types is not polymorphic.
5850 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
5852         * lra-constraints.c (remove_inheritance_pseudos): Process
5853         destination pseudo too.
5855 2014-07-11  Rong Xu  <xur@google.com>
5857         * gcov-tool.c (gcov_output_files): Fix build error introduced in
5858         commit r212448.
5860 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
5862         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
5863         * config/avr/avr-devices.c (AVR_MCU): Same.
5864         (avr_mcu_types): add text start value to end of device list.
5865         * config/avr/avr-mcus.def: Add text section start for all devices.
5866         (ata5782): Add new avr5 device.
5867         (ata5831): Same.
5868         * config/avr/avr-tables.opt: Regenerate.
5869         * config/avr/avr.h: Add declaration for text section start handler.
5870         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
5871         SPEC functions.
5872         (LINK_SPEC): Include text section start handler to linker spec.
5873         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
5874         pass -Ttext option to linker if the text section start for the device
5875         is not zero.
5876         * config/avr/t-multilib: Regenerate.
5877         * doc/avr-mmcu.texi: Regenerate.
5879 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
5881         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
5882         * config/rs6000/aix52.h (LINK_SPEC): Same.
5883         * config/rs6000/aix53.h (LINK_SPEC): Same.
5884         * config/rs6000/aix61.h (LINK_SPEC): Same.
5885         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
5887 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
5889         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
5890         (graphite_verify): New function.
5891         (ivs_params_clear): New function.
5892         (gcc_expression_from_isl_ast_expr_id): New function.
5893         (gcc_expression_from_isl_expr_int): New function.
5894         (binary_op_to_tree): New function.
5895         (ternary_op_to_tree): New function.
5896         (unary_op_to_tree): New function.
5897         (nary_op_to_tree): New function.
5898         (gcc_expression_from_isl_expr_op): New function.
5899         (gcc_expression_from_isl_expression): New function.
5900         (graphite_create_new_loop): New function.
5901         (translate_isl_ast_for_loop): New function.
5902         (get_upper_bound): New function.
5903         (graphite_create_new_loop_guard): New function.
5904         (translate_isl_ast_node_for): New function.
5905         (translate_isl_ast): New function.
5906         (add_parameters_to_ivs_params): New function.
5907         (scop_to_isl_ast): New parameter ip.
5908         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
5910 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
5912         * config/xtensa/predicates.md (call expander): Update for
5913         DECL_SECTION_NAME being string.
5915 2014-07-11  Richard Biener  <rguenther@suse.de>
5917         PR middle-end/61473
5918         * builtins.c (fold_builtin_memory_op): Inline memory moves that
5919         can be implemented with a single load followed by a single store.
5920         (c_strlen): Only warn when only_value is not 2.
5922 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
5924         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
5926 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
5928         PR target/61561
5929         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
5930         (*movhi_bytes): Likewise.
5931         (*arm_movqi_insn): Likewise.
5933 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
5935         PR target/56858
5936         * config/alpha/alpha.c: Include tree-pass.h, context.h
5937         and pass_manager.h.
5938         (pass_data_handle_trap_shadows): New pass.
5939         (pass_handle_trap_shadows::gate): New pass gate function.
5940         (make_pass_handle_trap_shadows): New function.
5941         (rest_of_handle_trap_shadows): Ditto.
5943         (alpha_align_insns_1): Rename from alpha_align_insns.
5944         (pass_data_align_insns): New pass.
5945         (pass_align_insns::gate): New pass gate function.
5946         (make_pass_aling_insns): New function.
5947         (rest_of_align_insns): Ditto.
5948         (alpha_align_insns): Ditto.
5950         (alpha_option_override): Declare handle_trap_shadows info
5951         and align_insns_info.  Register handle_trap_shadows and align_insns
5952         passes here.
5953         (alpha_reorg): Do not call alpha_trap_shadows and
5954         alpha_align_insn from here.
5956         (alpha_pad_function_end): Do not skip BARRIERs.
5958 2014-07-10  Rong Xu  <xur@google.com>
5960         Add gcov-tool: an offline gcda profile processing tool support.
5961         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
5962         (gcov_is_error): Ditto.
5963         (gcov_read_string): Ditto.
5964         (gcov_read_sync): Ditto.
5965         * gcov-io.h: Move counter defines to gcov-counter.def.
5966         * gcov-dump.c (tag_counters): Use gcov-counter.def.
5967         * coverage.c: Ditto.
5968         * gcov-tool.c: Offline gcda profile processing tool.
5969         (unlink_gcda_file): Remove one gcda file.
5970         (unlink_profile_dir): Remove gcda files from the profile path.
5971         (gcov_output_files): Output gcda files to an output dir.
5972         (profile_merge): Merge two profiles in directory.
5973         (print_merge_usage_message): Print merge usage.
5974         (merge_usage): Print merge usage and exit.
5975         (do_merge): Driver for profile merge sub-command.
5976         (profile_rewrite): Rewrite profile.
5977         (print_rewrite_usage_message): Print rewrite usage.
5978         (rewrite_usage): Print rewrite usage and exit.
5979         (do_rewrite): Driver for profile rewrite sub-command.
5980         (print_usage): Print gcov-info usage and exit.
5981         (print_version): Print gcov-info version.
5982         (process_args): Process arguments.
5983         (main): Main routine for gcov-tool.
5984         * Makefile.in: Build and install gcov-tool.
5985         * gcov-counter.def: New file split from gcov-io.h.
5986         * doc/gcc.texi: Include gcov-tool.texi.
5987         * doc/gcov-tool.texi: Document for gcov-tool.
5989 2014-07-10  Richard Biener  <rguenther@suse.de>
5991         PR tree-optimization/61757
5992         * tree-ssa-dom.c (loop_depth_of_name): Restore.
5993         (propagate_rhs_into_lhs): Revert part of last change.
5995 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
5997         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
5998         FUNCTION_DECLs.
6000 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
6002         PR middle-end/53590
6003         * function.c (allocate_struct_function): Revert r188667 change.
6005         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
6007 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
6009         * doc/install.texi: Remove links to defunct package providers for
6010         Solaris.
6012 2014-07-09  Tom de Vries  <tom@codesourcery.com>
6014         * final.c (get_call_fndecl): Declare.
6015         (self_recursive_call_p): New function.
6016         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
6018 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
6020         * ipa-devirt.c (record_node): Walk through aliases.
6022 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
6024         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
6026 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
6028         Revert:
6029         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
6031 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
6033         * ipa-visibility.c (function_and_variable_visibility): Remove
6034         temporary hack disabling local aliases on AIX.
6036 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
6038         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
6039         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
6041 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
6043         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
6044         * rs6000/rs6000.c: Inline output of .set instruction.
6045         (declare_alias_data): New struct.
6046         (rs6000_declare_alias): New function.
6047         (rs6000_xcoff_declare_function_name): Use it.
6048         (rs6000_xcoff_declare_object_name): New function.
6049         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
6050         (ASM_OUTPUT_DEF): Turn to empty definition.
6052 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
6054         PR bootstrap/61679
6055         * hash-table.h: use hash_table::value_type instead of
6056         Descriptor::value_type in the return types of several methods.
6058 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
6060         * tree-pass.h (pass_data): Remove has_execute member.
6061         * passes.c (execute_one_pass): Don't check pass->has_execute.
6062         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
6063         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
6064         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
6065         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
6066         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
6067         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
6068         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
6069         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
6070         gimple-low.c, gimple-ssa-isolate-paths.c,
6071         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
6072         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
6073         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
6074         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
6075         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
6076         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
6077         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
6078         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
6079         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
6080         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
6081         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
6082         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
6083         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
6084         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
6085         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
6086         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
6087         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
6088         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
6089         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
6090         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
6091         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
6092         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
6093         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
6094         web.c: Remove initializer for pass_data::has_execute.
6096 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
6098         * graphite-htab.h: Use hash_map instead of hash_table.
6099         * graphite-clast-to-gimple.c: Adjust.
6100         * passes.c: Use hash_map instead of hash_table.
6101         * sese.c: Likewise.
6102         * sese.h: Remove now unused code.
6104 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
6106         PR target/61599
6107         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
6108         than zero.
6110 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
6112         PR rtl-optimization/61673
6113         * combine.c (simplify_comparison): Test just mode's sign bit
6114         in tmode rather than the sign bit and any bits above it.
6116 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
6118         * graphite-isl-ast-to-gimple.c (generate_isl_context):
6119         Add __isl_give to the declaration.
6120         (generate_isl_schedule): Likewise.
6121         (scop_to_isl_ast): Likewise.
6123 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6125         * config/arm/arm.c (cortexa5_extra_costs): New table.
6126         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
6128 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
6130         PR tree-optimization/61725
6131         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
6132         range, use range_includes_zerop_p instead of integer_zerop on
6133         vr0->min, only use log2 of max if min is not negative.
6135 2014-07-08  Richard Biener  <rguenther@suse.de>
6137         * tree-ssa-dom.h (loop_depth_of_name): Remove.
6138         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
6139         restriction on loop depth difference.
6140         (record_equality): Likewise.
6141         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
6142         (loop_depth_of_name): Remove.
6143         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
6144         restriction on loop depth difference.
6145         (init_copy_prop): Likewise.
6147 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
6149         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
6150         parameter.
6151         (walk_aliased_vdefs): Likewise.
6152         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
6153         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
6154         (detect_type_change_from_memory_writes): Check if entry was reached.
6156 2014-07-08  Richard Biener  <rguenther@suse.de>
6158         PR tree-optimization/61681
6159         * tree-ssa-structalias.c (find_what_var_points_to): Expand
6160         NONLOCAL inside ESCAPED.
6162 2014-07-08  Richard Biener  <rguenther@suse.de>
6164         PR tree-optimization/61680
6165         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6166         Handle properly all read-write dependences with group accesses.
6168 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
6170         PR tree-optimization/61576
6171         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
6172         block containing reduction statement is predecessor of phi basi block.
6174 2014-07-08  Marek Polacek  <polacek@redhat.com>
6176         PR c/60226
6177         * fold-const.c (round_up_loc): Change the parameter type.
6178         Remove assert.
6179         * fold-const.h (round_up_loc): Adjust declaration.
6180         * stor-layout.c (finalize_record_size): Check for too large types.
6182 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
6184         * symtab.c: Include calls.h.
6185         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
6187 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
6189         * config/rs6000/rs6000.c (output_vec_const_move): Handle
6190         little-endian code generation.
6191         * config/rs6000/spe.md (spe_evmergehi): Rename to...
6192         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
6193         (spe_evmergehilo): Rename to...
6194         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
6195         (spe_evmergelo): Rename to...
6196         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
6197         (spe_evmergelohi): Rename to...
6198         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
6199         (spe_evmergehi, spe_evmergehilo): New expanders.
6200         (spe_evmergelo, spe_evmergelohi): Likewise.
6201         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
6202         (*frob_tf_ti): Likewise.
6203         (*frob_<mode>_di_2): Likewise.
6204         (*frob_tf_di_8_2): Likewise.
6205         (*frob_di_<mode>): Likewise.
6206         (*frob_ti_tf): Likewise.
6207         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
6208         (*frob_ti_<mode>_8_2): Likewise.
6209         (*frob_ti_tf_2): Likewise.
6210         (mov_si<mode>_e500_subreg0): Rename to...
6211         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
6212         endianness only.
6213         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
6214         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
6215         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
6216         the big endianness only.
6217         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
6218         (*mov_si<mode>_e500_subreg0_2): Rename to...
6219         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
6220         big big endianness only.
6221         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
6222         (*mov_si<mode>_e500_subreg4): Rename to...
6223         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
6224         endianness only.
6225         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
6226         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
6227         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
6228         the big endianness only.
6229         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
6230         pattern.
6231         (*mov_si<mode>_e500_subreg4_2): Rename to...
6232         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
6233         endianness only.
6234         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
6235         (*mov_sitf_e500_subreg8): Rename to...
6236         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
6237         endianness only.
6238         (*mov_sitf_e500_subreg8_le): New instruction pattern.
6239         (*mov_sitf_e500_subreg8_2): Rename to...
6240         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
6241         endianness only.
6242         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
6243         (*mov_sitf_e500_subreg12): Rename to...
6244         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
6245         endianness only.
6246         (*mov_sitf_e500_subreg12_le): New instruction pattern.
6247         (*mov_sitf_e500_subreg12_2): Rename to...
6248         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
6249         endianness only.
6250         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
6252 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
6254         * asan.c (instrument_strlen_call): Do not instrument first byte
6255         in strlen if already instrumented.
6257 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6259         * config/arm/arm.opt (mwords-little-endian): Delete.
6260         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
6261         of TARGET_LITTLE_WORDS.
6262         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
6263         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
6264         warning.
6265         * doc/invoke.texi: Remove references to -mwords-little-endian.
6267 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
6269         * expmed.c (struct init_expmed_rtl): Change all fields but
6270         pow2 and cint from struct rtx_def to rtx.
6271         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
6272         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
6273         at the end again.
6275 2014-07-06  Marek Polacek  <polacek@redhat.com>
6277         PR c/6940
6278         * doc/invoke.texi: Document -Wsizeof-array-argument.
6280 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
6282         * wide-int.h (wide_int_storage): Change declaration from struct
6283         to class.
6285 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
6287         * cgraph.c (cgraph_create_indirect_edge): Update call of
6288         get_polymorphic_call_info.
6289         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
6290         (possible_polymorphic_call_targets): Add parameter call.
6291         (decl_maybe_in_construction_p): New predicate.
6292         (get_polymorphic_call_info): Add parameter call;
6293         use decl_maybe_in_construction_p.
6294         * gimple-fold.c (fold_gimple_assign): Update use of
6295         possible_polymorphic_call_targets.
6296         (gimple_fold_call): Likewise.
6297         * ipa-prop.c: Inlcude calls.h
6298         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
6299         (param_type_may_change_p): New predicate.
6300         (detect_type_change_from_memory_writes): Break out from ...
6301         (detect_type_change): ... this one; use param_type_may_change_p.
6302         (detect_type_change_ssa): Use param_type_may_change_p.
6303         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
6305 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
6307         PR target/49423
6308         * config/arm/arm-protos.h (arm_legitimate_address_p,
6309         arm_is_constant_pool_ref): Add prototypes.
6310         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
6311         (arm_is_constant_pool_ref) New function.
6312         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
6313         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
6314         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
6315         operand. Remove pool_range and neg_pool_range attributes.
6316         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
6317         pool_range and neg_pool_range attributes.
6318         * config/arm/constraints.md (Uh): New constraint.
6319         (Uq): Don't allow constant pool references.
6321 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
6323         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
6324         (move_lo_quad_internal_be_<mode>): Likewise.
6325         (move_lo_quad_<mode>): Convert to define_expand.
6326         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
6327         (aarch64_simd_move_hi_quad_be_<mode>): New.
6328         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
6329         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
6330         (aarch64_combinez_be<mode>): New.
6331         (aarch64_combine<mode>): Convert to define_expand.
6332         (aarch64_combine_internal<mode>): New.
6333         (aarch64_simd_combine<mode>): Remove bogus RTL description.
6335 2014-07-04  Tom de Vries  <tom@codesourcery.com>
6337         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
6338         combination of earlyclobber and read/write modifiers.
6340 2014-07-04  Tom de Vries  <tom@codesourcery.com>
6342         * config/aarch64/aarch64-simd.md
6343         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
6345 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
6347         PR target/61714
6348         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
6350 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
6352         PR middle-end/61654
6353         * cgraphunit.c (expand_thunk): Call free_dominance_info.
6355         PR tree-optimization/61684
6356         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
6357         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
6359 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
6360             Kito Cheng  <kito@0xlab.org>
6361             Monk Chiang  <sh.chiang04@gmail.com>
6363         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
6364         (nds32_symbol_load_store_p): Move to ...
6365         (nds32_fp_as_gp_check_available): Move to ...
6366         * config/nds32/nds32-fp-as-gp.c: ... here.
6367         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
6368         extern declaration.
6370 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
6371             Kito Cheng  <kito@0xlab.org>
6372             Monk Chiang  <sh.chiang04@gmail.com>
6374         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
6375         (nds32_expand_store_multiple): Move to ...
6376         (nds32_expand_movmemqi): Move to ...
6377         * config/nds32/nds32-memory-manipulation.c: ... here.
6379 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
6380             Kito Cheng  <kito@0xlab.org>
6381             Monk Chiang  <sh.chiang04@gmail.com>
6383         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
6384         (nds32_output_casesi_pc_relative): Move to ...
6385         (nds32_output_casesi): Move to ...
6386         (nds32_mem_format): Move to ...
6387         (nds32_output_16bit_store): Move to ...
6388         (nds32_output_16bit_load): Move to ...
6389         (nds32_output_32bit_store): Move to ...
6390         (nds32_output_32bit_load): Move to ...
6391         (nds32_output_32bit_load_s): Move to ...
6392         (nds32_output_stack_push): Move to ...
6393         (nds32_output_stack_pop): Move to ...
6394         * config/nds32/nds32-md-auxiliary.c: ... here.
6396 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
6397             Ling-Hua Tseng  <uranus@tinlans.org>
6399         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
6400         the purpose of this file.
6402 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
6403             Kito Cheng  <kito@0xlab.org>
6404             Monk Chiang  <sh.chiang04@gmail.com>
6406         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
6407         (nds32_address_cost): Move implementation to ...
6408         * config/nds32/nds32-cost.c: ... here.
6409         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
6410         (nds32_address_cost_impl): Declare.
6412 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
6413             Kito Cheng  <kito@0xlab.org>
6414             Monk Chiang  <sh.chiang04@gmail.com>
6416         * config/nds32/nds32.c
6417         (nds32_consecutive_registers_load_store_p): Move to ...
6418         (nds32_valid_multiple_load_store): Move to ...
6419         (nds32_valid_stack_push_pop): Move to ...
6420         (nds32_can_use_bclr_p): Move to ...
6421         (nds32_can_use_bset_p): Move to ...
6422         (nds32_can_use_btgl_p): Move to ...
6423         (nds32_can_use_bitci_p): Move to ...
6424         * config/nds32/nds32-predicates.c: ... here.
6426 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
6427             Kito Cheng  <kito@0xlab.org>
6428             Monk Chiang  <sh.chiang04@gmail.com>
6430         * config/nds32/nds32.c
6431         (nds32_expand_builtin_null_ftype_reg): Move to ...
6432         (nds32_expand_builtin_reg_ftype_imm): Move to ...
6433         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
6434         (nds32_init_builtins): Move implementation to ...
6435         (nds32_expand_builtin): Move implementation to ...
6436         * config/nds32/nds32-intrinsic.c: ... here.
6437         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
6438         (nds32_expand_builtin_impl): Declare.
6440 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
6441             Kito Cheng  <kito@0xlab.org>
6442             Monk Chiang  <sh.chiang04@gmail.com>
6444         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
6445         (nds32_emit_section_tail_template): Move to ...
6446         (nds32_emit_isr_jmptbl_section): Move to ...
6447         (nds32_emit_isr_vector_section): Move to ...
6448         (nds32_emit_isr_reset_conten): Move to ...
6449         (nds32_check_isr_attrs_conflict): Move to ...
6450         (nds32_construct_isr_vectors_information): Move to ...
6451         (nds32_asm_file_start): Move implementation to ...
6452         (nds32_asm_file_end): Move implementation to ...
6453         * config/nds32/nds32-isr.c: ... here.
6454         * config/nds32/nds32-protos.h
6455         (nds32_check_isr_attrs_conflict): Declare.
6456         (nds32_construct_isr_vectors_information): Declare.
6457         (nds32_asm_file_start_for_isr): Declare.
6458         (nds32_asm_file_end_for_isr): Declare.
6460 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
6461             Kito Cheng  <kito@0xlab.org>
6462             Monk Chiang  <sh.chiang04@gmail.com>
6464         * config.gcc (nds32*): Add new modules to extra_objs.
6465         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
6466         (nds32be-*-*): Likewise.
6467         * config/nds32/nds32-cost.c: New file.
6468         * config/nds32/nds32-fp-as-gp.c: New file.
6469         * config/nds32/nds32-intrinsic.c: New file.
6470         * config/nds32/nds32-isr.c: New file.
6471         * config/nds32/nds32-md-auxiliary.c: New file.
6472         * config/nds32/nds32-memory-manipulation.c: New file.
6473         * config/nds32/nds32-pipelines-auxiliary.c: New file.
6474         * config/nds32/nds32-predicates.c: New file.
6475         * config/nds32/t-nds32: New file.
6477 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
6479         PR tree-optimization/61682
6480         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
6481         using cases and when one of the operands is equal to 1.
6483 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
6485         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
6486         ashr<mode>3): Correct mode of operands[2].
6487         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
6488         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
6489         Correct mode of operands[2].  Fix split condition.
6491 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
6493         * arm.md (arch): Add armv6_or_vfpv3.
6494         (arch_enabled): Add test for the above.
6495         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
6496         on VFP9.
6497         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
6499 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
6501         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
6502         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
6503         HWI 1 and negate the unsigned value.
6504         * expmed.c (expand_sdiv_pow2): For modes wider than word always
6505         use AND instead of shift.
6506         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
6508 2014-07-03  Marek Polacek  <polacek@redhat.com>
6510         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
6511         (-fsanitize=float-divide-by-zero): Move to the table with
6512         -fsanitize=undefined suboptions.
6513         (-fsanitize=float-cast-overflow): Likewise.
6515 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
6517         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
6518         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
6519         endianness.
6521 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
6523         * loop-invariant.c (struct invariant): Add a new member: eqno;
6524         (find_identical_invariants): Update eqno;
6525         (create_new_invariant): Init eqno;
6526         (get_inv_cost): Compute comp_cost with eqno;
6528 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
6530         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
6531         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
6532         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
6533         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
6534         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
6536 2014-07-02  Christian Bruel  <christian.bruel@st.com>
6538         PR target/29349
6539         PR target/53513
6540         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
6541         (make_preds_opaque): Delete.
6542         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
6543         (commit_mode_sets): New function.
6544         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
6545         Process all modes at once.
6546         * basic-block.h (pre_edge_lcm_avs): Declare.
6547         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
6548         Call clear_aux_for_edges. Fix comments.
6549         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
6550         (pre_edge_rev_lcm): Idem.
6551         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
6552         parameter.
6553         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
6554         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
6555         Idem.
6556         * config/i386/i386.c (x96_emit_mode_set): Idem.
6557         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
6558         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
6559         (fpscr_toggle) Disallow from delay slot.
6560         * target.def (emit_mode_set): Add prev_mode parameter.
6561         * doc/tm.texi: Regenerate.
6563 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6565         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
6566         variable i.
6568 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
6570         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
6571         vtable_pointer_value_to_vtable): Constify.
6572         (contains_polymorphic_type_p): Declare.
6573         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
6574         vtable_pointer_value_to_vtable): Constify.
6575         (contains_polymorphic_type_p): New predicate.
6576         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
6577         polymorphic types.
6578         (ipa_set_ancestor_jf): Likewise.
6579         (detect_type_change): Return false in easy cases.
6580         (compute_complex_assign_jump_func): Require type to contain
6581         polymorphic type.
6582         (compute_known_type_jump_func): Likewise.
6584 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
6586         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
6587         Remove.
6588         (type_in_anonymous_namespace_p): Constify argument.
6589         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
6590         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
6591         (main_odr_variant): New function.
6592         (hash_type_name): Make static; update assert; do not ICE on
6593         non-records.
6594         (types_same_for_odr): Bring here from tree.c; simplify and remove
6595         old structural comparing code that doesn't work for templates.
6596         (odr_hasher::equal): Update assert.
6597         (add_type_duplicate): Return true when bases should be computed;
6598         replace incomplete loader by complete; do not output duplicated
6599         warnings; do not ICE on non-records; set odr_violated flag.
6600         (get_odr_type): Be ready to replace incomplete type by complete
6601         one; work on ODR variants instead of main variants; reorder item
6602         in array so bases have still smaller indexes.
6603         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
6604         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
6606 2014-07-01  Cary Coutant  <ccoutant@google.com>
6608         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
6609         lookup.
6610         (resolve_addr_in_expr): When replacing the rtx in a location list
6611         entry, get a new address table entry.
6612         (dwarf2out_finish): Call index_location_lists even if there are no
6613         addr_index_table entries yet.
6615 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
6617         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
6618         change for not being obvious.
6620 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
6622         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
6623         unused argument.
6625 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6627         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
6628         (vcagt_f64): Likewise.
6629         (vcale_f64): Likewise.
6630         (vcaled_f64): Likewise.
6631         (vcales_f32): Likewise.
6632         (vcalt_f64): Likewise.
6633         (vcaltd_f64): Likewise.
6634         (vcalts_f32): Likewise.
6636 2014-07-01  Marek Polacek  <polacek@redhat.com>
6638         * doc/invoke.texi: Document -Wint-conversion.
6640 2014-07-01  Marek Polacek  <polacek@redhat.com>
6642         PR c/58286
6643         * doc/invoke.texi: Document -Wincompatible-pointer-types.
6645 2014-07-01  Martin Liska  <mliska@suse.cz>
6647         IPA REF alias refactoring
6648         * cgraph.h (iterate_direct_aliases): New function.
6649         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
6650         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
6651         FOR_EACH_ALIAS added.
6652         (cgraph_for_node_and_aliases): Likewise.
6653         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
6654         * ipa-inline.c (reset_edge_caches): Likewise.
6655         (update_caller_keys): Likewise.
6656         * trans-mem.c (ipa_tm_execute): Likewise.
6657         *varpool.c (varpool_analyze_node): Likewise.
6658         (varpool_for_node_and_aliases): Likewise.
6659         * ipa-ref.h (first_alias): New function.
6660         (last_alias): Likewise.
6661         (has_aliases_p): Likewise.
6662         * ipa-ref.c (ipa_ref::remove_reference): Removal function
6663         is sensitive to IPA_REF_ALIASes.
6664         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
6665         are put at the beginning of the list.
6666         (symtab_node::iterate_direct_aliases): New function.
6668 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
6670         Revert:
6671         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
6672         type is complete.
6673         (write_ts_type_common_tree_pointers): Do not stream fields not set
6674         for incomplete types; do not stream duplicated fields for variants;
6675         sanity check that variant and type match.
6676         (write_ts_type_non_common_tree_pointers): Likewise.
6677         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
6678         TYPE_SIZE whether type is complete.
6679         (lto_input_ts_type_common_tree_pointers): Do same changes as in
6680         write_ts_type_common_tree_pointers
6681         (lto_input_ts_type_non_common_tree_pointers): Likewise.
6683 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
6685         * var-tracking.c (add_stores): Return instead of asserting if old
6686         and new values for conditional store are the same.
6688 2014-06-30  Richard Henderson  <rth@redhat.com>
6690         PR rtl-opt/61608
6691         PR target/39284
6692         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
6693         the cfg if there were any changes.
6694         * passes.def: Revert move of peephole2 after reorder_blocks;
6695         move duplicate_computed_gotos before peephole2.
6697 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
6699         * except.c (emit_note_eh_region_end): New helper function.
6700         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
6701         emit EH_REGION_END note.
6702         * jump.c (cleanup_barriers): Do not split a call and its
6703         corresponding CALL_ARG_LOCATION note.
6705 2014-06-30  Jeff Law  <law@redhat.com>
6707         PR tree-optimization/61607
6708         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
6709         deeper into the SSA_NAME_VALUE chain.
6711 2014-06-30  Marek Polacek  <polacek@redhat.com>
6713         * convert.c (convert_to_integer): Don't instrument conversions if the
6714         function has no_sanitize_undefined attribute.
6715         * ubsan.c: Don't run the ubsan pass if the function has
6716         no_sanitize_undefined attribute.
6718 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
6720         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
6721         -fsanitize=undefined suboptions.
6723 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
6725         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
6726         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
6727         against bigendian and adjust indices.
6729 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
6731         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
6733 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6735         PR target/61633
6736         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
6737         Add alternative; make early clobber.  Adjust both split patterns
6738         to use operand 0 as the working register.
6740 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
6742         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
6743         as ira_object_id_map might be NULL, or 1.
6745 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
6747         * loop-invariant.c (get_inv_cost): Handle register class.
6748         (gain_for_invariant): Check the register pressure of the inv
6749         and its overlapped register class, other than all.
6751 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
6753         * doc/invoke.texi (Optimize Options): Fix descriptions of
6754         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
6756 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
6758         * doc/extend.texi (Function Attributes): Update 'naked' attribute
6759         documentation.
6761 2014-06-29  Tobias Grosser <tobias@grosser.es>
6763         PR bootstrap/61650
6764         * graphite-isl-ast-to-gimple.c: Add missing guards.
6766 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
6768         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
6769         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
6770         * flag-types.h: Add new enum fgraphite_generator.
6771         * graphite-isl-ast-to-gimple.c: New.
6772         * graphite-isl-ast-to-gimple.h: New.
6773         * graphite.c (graphite_transform_loops): Add choice of Graphite
6774         code generator, which depends on flag_graphite_code_gen.
6776 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
6778         * graphite-dependences.c (subtract_commutative_associative_deps):
6779         Add NULL checking of the following variables: must_raw_no_source,
6780         may_raw_no_source, must_war_no_source, may_war_no_source,
6781         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
6782         must_war, may_war, must_waw, may_waw.
6784 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
6786         * graphite-clast-to-gimple.c: gloog is renamed to
6787         graphite_regenerate_ast_cloog.  gloog_error is renamed to
6788         graphite_regenerate_error.
6789         * graphite-clast-to-gimple.h: The definition of the struct
6790         bb_pbb_def is moved to graphite-htab.h.
6791         Add inclusion of the hash-table.h.
6792         * graphite-htab.h: The declaration of the function gloog is moved
6793         to graphite-clast-to-gimple.h and renamed to
6794         graphite_regenerate_ast_cloog.
6795         * graphite.c (graphite_transform_loops): gloog is renamed
6796         to graphite_regenerate_ast_cloog.
6798 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
6800         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
6801         type is complete.
6802         (write_ts_type_common_tree_pointers): Do not stream fields not set
6803         for incomplete types; do not stream duplicated fields for variants;
6804         sanity check that variant and type match.
6805         (write_ts_type_non_common_tree_pointers): Likewise.
6806         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
6807         TYPE_SIZE whether type is complete.
6808         (lto_input_ts_type_common_tree_pointers): Do same changes as in
6809         write_ts_type_common_tree_pointers
6810         (lto_input_ts_type_non_common_tree_pointers): Likewise.
6812 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
6814         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
6816 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
6818         * tree-inline.c (remap_type_1): Do not duplicate fields
6819         that are shared in between type and its main variant.
6821 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
6823         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
6824         of the type.
6825         (ipa_set_ancestor_jf) Likewise.
6826         (check_stmt_for_type_change): Check that we work on main variant.
6827         (detect_type_change): Look into main variant.
6828         (compute_known_type_jump_func): Check that main variant has BINFO.
6830 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
6832         * ipa-devirt.c (set_type_binfo): New function.
6833         (add_type_duplicate): Use it.
6834         (get_odr_type): Sanity check that binfos points to main variants.
6835         (get_class_context): Be sure the context's outer_type is main variant.
6836         (contains_type_p): Walk main variant.
6837         (get_polymorphic_call_info_for_decl): Set outer_type to be
6838         main variant.
6839         (get_polymorphic_call_info): Likewise.
6840         (possible_polymorphic_call_targets): Sanity check that we operate
6841         on main variant.
6843 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
6845         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
6847 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6849         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
6850         accidental change due to wide-int branch merge.
6852 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6854         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
6855         compressed debug support.
6856         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
6857         * configure: Regenerate.
6858         * config.in: Regenerate.
6859         * common.opt (compressed_debug_sections): New enum.
6860         (gz, gz=): New options.
6861         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
6862         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
6863         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
6864         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
6865         LINK_COMPRESS_DEBUG_SPEC.
6866         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
6867         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
6868         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
6869         (Debugging Options): Document -gz[=type].
6871 2014-06-27  Martin Jambor  <mjambor@suse.cz>
6873         PR ipa/61160
6874         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
6875         args_to_skip, use those from node instead.  Copy args_to_skip and
6876         combined_args_to_skip from node to the new thunk.
6877         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
6878         (cgraph_create_virtual_clone): Moved computation of
6879         combined_args_to_skip...
6880         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
6882 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
6884         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
6885         redundant diagnostic machinary.
6887 2014-06-27  Richard Biener  <rguenther@suse.de>
6889         * tree-ssa-math-opts.c (bswap_replace): Fix
6890         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
6892 2014-06-27  Martin Liska  <mliska@suse.cz>
6894         * gimple.h (gimple_location_safe): New function introduced.
6895         * cgraphunit.c (walk_polymorphic_call_targets): Usage
6896         of gimple_location_safe replaces gimple_location.
6897         (gimple_fold_call): Likewise.
6898         * ipa-devirt.c (ipa_devirt): Likewise.
6899         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6900         * ipa.c (walk_polymorphic_call_targets): Likewise.
6901         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
6903 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
6905         PR tree-optimization/57233
6906         PR tree-optimization/61299
6907         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
6908         functions.
6909         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
6910         would be lowered to scalar shifts, check if corresponding
6911         shifts and vector BIT_IOR_EXPR are supported and don't lower
6912         or lower just to narrower vector type in that case.
6913         * expmed.c (expand_shift_1): Fix up handling of vector
6914         shifts and rotates.
6916 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
6918         PR target/61586
6919         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
6921 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
6923         * doc/invoke.texi (-fsemantic-interposition): Document.
6924         * common.opt (fsemantic-interposition): New flag.
6925         * varasm.c (decl_replaceable_p): Use it.
6927 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6929         PR target/61542
6930         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
6931         extraction other than index 3.
6933 2014-06-26  Teresa Johnson  <tejohnson@google.com>
6935         * doc/invoke.texi: Fix typo.
6936         * dumpfile.c: Add support for documented -fdump-* options
6937         optimized/missed/note/optall.
6939 2014-06-26  Martin Jambor  <mjambor@suse.cz>
6941         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
6942         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
6943         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
6944         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
6945         * opts.c (default_options_optimization): Set
6946         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
6947         * doc/invoke.texi (allow-load-data-races)
6948         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
6949         (allow-store-data-races): Document the new default.
6951 2014-06-26  Martin Jambor  <mjambor@suse.cz>
6953         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
6954         renamed to ipa_impossible_devirt_target.  Fix typo.
6955         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
6956         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
6957         ipa_impossible_devirt_target.
6959 2014-06-26  Richard Biener  <rguenther@suse.de>
6961         PR tree-optimization/61607
6962         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
6963         explaining why we restrict copies on loop depth.
6964         * tree-ssa-dom.c (cprop_operand): Remove restriction on
6965         on loop depth.
6966         (record_equivalences_from_phis): Instead add it here.
6968 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
6970         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
6971         (LTO_WRAPPER_OBJS): New variable.
6972         (lto-wrapper$(exeext)): Use it.
6973         * collect2.c: Include "collect-utils.h".
6974         (verbose, debug): Remove variables.
6975         (at_file_supplied): No longer static.
6976         (tool_name): New variable.
6977         (do_wait, fork_execute, maybe_unlink): Don't declare.
6978         (tool_cleanup): No longer static.
6979         (notice): Remove function.
6980         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
6981         fork_execute calls.
6982         (collect_wait, do_wait, collect_execute): Remove functions.
6983         (maybe_unlink): No longer static.
6984         * collect2.h (verbose, debug): Don't declare.
6985         (at_file_supplied): Declare.
6986         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
6987         changed.
6988         (collect_execute): Replace with implementation from collect2, plus a
6989         new arg use_atfile.  All callers changed.
6990         (collect_wait): Replace with implementation from collect2.
6991         (maybe_unlink_file): Remove function.
6992         (fork_execute): Replace with implementation from collect2, plus a
6993         new arg use_atfile.  All callers changed.
6994         (do_wait): Add call to utils_cleanup to the error path.
6995         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
6996         (tool_cleanup): Adjust declarations.
6997         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
6998         * tlink.c: Include "collect-utils.h".
6999         (tlink_execute): New arg use_atfile.  All callers changed.
7000         (tlink_init, tlink_execute): Remove declarations.
7002         * collect-utils.c (save_temps): New variable.
7003         (do_wait): Use it instead of debug.  Use fatal_error.
7004         * collect-utils.h (save_temps): Declare.
7005         * collect2.c (verbose): Rename from vflag.  All uses changed.
7006         (tool_cleanup): New function, copied from collect_atexit.
7007         (collect_atexit, handler): Just call it.
7008         * collect2.h (verbose): Declaration renamed from vflag.
7009         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
7010         debug.
7012         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
7013         (lto-wrapper$(exeext)): Link with collect-utils.o.
7014         * collect-utils.c: New file.
7015         * collect-utils.h: New file.
7016         * lto-wrapper.c: Include "collect-utils.h".
7017         (args_name): Delete variable.
7018         (tool_name): New variable.
7019         (tool_cleanup): New function.
7020         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
7021         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
7022         (fork_execute): Remove functions.
7024 2014-06-26  Nick Clifton  <nickc@redhat.com>
7026         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
7028         * doc/extend.texi (Function Attributes): Fix typo in description
7029         of RX vector attribute.
7031 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
7033         * config.gcc (supported_defaults): Error when passing either
7034         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
7036 2014-06-26  Richard Biener  <rguenther@suse.de>
7038         * tree-ssa-dom.c (cprop_operand): Remove restriction on
7039         propagating volatile pointers.
7041 2014-06-26  Richard Biener  <rguenther@suse.de>
7043         PR tree-optimization/61607
7044         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
7045         loop if we redirected its latch edge.
7046         (thread_block_1): Do not cancel loops prematurely.
7048 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
7050         * toplev.c (backend_init_target): Move init_emit_regs and
7051         init_regs to...
7052         (backend_init) ... here; skip ira_init_once and backend_init_target.
7053         (target_reinit) ... and here; clear
7054         this_target_rtl->lang_dependent_initialized.
7055         (lang_dependent_init_target): Clear
7056         this_target_rtl->lang_dependent_initialized;
7057         break out rtl initialization to ...
7058         (initialize_rtl): ... here; call also backend_init_target
7059         and ira_init_once.
7060         * toplev.h (initialize_rtl): New function.
7061         * function.c: Include toplev.h
7062         (init_function_start): Call initialize_rtl.
7063         * rtl.h (target_rtl): Add target_specific_initialized,
7064         lang_dependent_initialized.
7066 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
7067             Jakub Jelinek  <jakub@redhat.com>
7069         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
7071 2014-06-25  Tom de Vries  <tom@codesourcery.com>
7073         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
7075 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7077         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
7078         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
7079         Issue a strict overflow warning if appropriate.
7081 2014-06-25  Martin Liska  <mliska@suse.cz>
7083         IPA REF refactoring
7084         * Makefile.in: Removed header file (ipa-ref-inline.h).
7085         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
7086         called.
7087         (cgraph_speculative_call_info): Likewise.
7088         (cgraph_for_node_thunks_and_aliases): Likewise.
7089         (cgraph_for_node_and_aliases): Likewise.
7090         (verify_cgraph_node): Likewise.
7091         * cgraph.h: Batch of IPA REF functions become member functions of
7092         symtab_node: add_reference, maybe_add_reference, clone_references,
7093         clone_referring, clone_reference, find_reference,
7094         remove_stmt_references, remove_all_references,
7095         remove_all_referring, dump_references, dump_referring,
7096         has_alias_p, iterate_reference, iterate_referring.
7097         * cgraphbuild.c (record_reference): New IPA REF function used.
7098         (record_type_list): Likewise.
7099         (record_eh_tables): Likewise.
7100         (mark_address): Likewise.
7101         (mark_load): Likewise.
7102         (mark_store): Likewise.
7103         (pass_build_cgraph_edges): Likewise.
7104         (rebuild_cgraph_edge): Likewise.
7105         (cgraph_rebuild_references): Likewise.
7106         (pass_remove_cgraph_callee_edges): Likewise.
7107         * cgraphclones.c (cgraph_clone_node): Likewise.
7108         (cgraph_create_virtual_clone): Likewise.
7109         (cgraph_materialize_clone): Likewise.
7110         (cgraph_materialize_all_clones): Likewise.
7111         * cgraphunit.c (cgraph_reset_node): Likewise.
7112         (cgraph_reset_node): Likewise.
7113         (analyze_function): Likewise.
7114         (assemble_thunks_and_aliases): Likewise.
7115         (expand_function): Likewise.
7116         * ipa-comdats.c (propagate_comdat_group): Likewise.
7117         (enqueue_references): Likewise.
7118         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
7119         (create_specialized_node): Likewise.
7120         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
7121         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
7122         * ipa-inline.c (reset_edge_caches): Likewise.
7123         (update_caller_keys): Likewise.
7124         (execute): Likewise.
7125         * ipa-prop.c (remove_described_reference): Likewise.
7126         (propagate_controlled_uses): Likewise.
7127         (ipa_edge_duplication_hook): Likewise.
7128         (ipa_modify_call_arguments): Likewise.
7129         * ipa-pure-const.c (propagate_pure_const): Likewise.
7130         * ipa-ref-inline.h: Header file removed, functions moved
7131         to symtab_node class.
7132         * ipa-ref.c (remove_reference): New class member function.
7133         (cannot_lead_to_return): New class member function.
7134         (referring_ref_list): Likewise.
7135         (referred_ref_list): Likewise.
7136         Rest of functions moved to symtab_node class.
7137         * ipa-ref.h: New member functions remove_reference,
7138         cannot_lead_to_return, referring_ref_list, referred_ref_list added
7139         to ipa_ref class.
7140         ipa_ref_list class has new member functions: first_reference,
7141         first_referring, clear, nreferences.
7142         * ipa-reference.c (analyze_function): New IPA REF function used.
7143         (write_node_summary_p): Likewise.
7144         (ipa_reference_write_optimization_summary): Likewise.
7145         * ipa-split.c (split_function): Likewise.
7146         * ipa-utils.c (ipa_reverse_postorder): Likewise.
7147         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
7148         (function_and_variable_visibility): Likewise.
7149         * ipa.c (has_addr_references_p): Likewise.
7150         (process_references): Argument type changed.
7151         (symtab_remove_unreachable_nodes): New IPA REF function used.
7152         (process_references): Likewise.
7153         (set_writeonly_bit): Likewise.
7154         * lto-cgraph.c: Implementation of new symtab_node member functions
7155         that uses new IPA REF functions.
7156         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
7157         function used.
7158         * lto-streamer-out.c (output_symbol_p): Likewise.
7159         * lto-streamer.h (referenced_from_this_partition_p): Argument type
7160         changed.
7161         * symtab.c: Implementation of new IPA REF API.
7162         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
7163         (ipa_tm_create_version): Likewise.
7164         (ipa_tm_execute): Likewise.
7165         * tree-emutls.c (gen_emutls_addr): Likewise.
7166         * tree-inline.c (copy_bb): Likewise.
7167         (delete_unreachable_blocks_update_callgraph): Likewise.
7168         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
7169         (varpool_for_node_and_aliases): Likewise.
7171 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
7173         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
7175 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
7177         PR bootstrap/61598
7178         * fold-const.c (fold_checksum_tree): Use a hash_table of const
7179         tree_node * instead of tree_node *.
7180         (fold): Adjust.
7181         (print_fold_checksum): Likewise.
7182         (fold_check_failed): Likewise.
7183         (debug_fold_checksum): Likewise.
7184         (fold_build1_stat_loc): Likewise.
7185         (fold_build2_stat_loc): Likewise.
7186         (fold_build3_stat_loc): Likewise.
7187         (fold_build_call_array_loc): Likewise.
7189 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
7191         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
7192         implementation with call to...
7193         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
7194         function.
7195         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
7196         Declare.
7198 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
7200         PR tree-optimization/57742
7201         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
7202         after replacing the statement.
7204 2014-06-25  Nick Clifton  <nickc@redhat.com>
7206         * config/v850/v850.c (GHS_default_section_names): Change to const
7207         char * type.
7208         (GHS_current_section_names): Likewise.
7209         (v850_insert_attributes): Do not build strings, just assign the
7210         names directly.  Change the type of 'chosen_section' to const
7211         char*.
7212         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
7213         directly to the array entry.
7214         * config/v850/v850.h (GHS_default_section_names): Change to const
7215         char * type.
7216         (GHS_current_section_names): Likewise.
7218 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
7220         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
7221         (LANG_HOOKS_DECLS): Add it.
7222         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
7223         has correct type.
7224         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
7225         * langhooks.h (struct lang_hooks_for_decls): Add
7226         omp_clause_linear_ctor hook.
7227         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
7228         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
7229         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
7230         combined simd loop use omp_clause_linear_ctor hook.
7232 2014-06-24  Cong Hou  <congh@google.com>
7234         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
7235         pattern recognition.
7236         (type_conversion_p): PROMOTION is true if it's a type promotion
7237         conversion, and false otherwise.  Return true if the given expression
7238         is a type conversion one.
7239         * tree-vectorizer.h: Adjust the number of patterns.
7240         * tree.def: Add SAD_EXPR.
7241         * optabs.def: Add sad_optab.
7242         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
7243         * expr.c (expand_expr_real_2): Likewise.
7244         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
7245         * gimple.c (get_gimple_rhs_num_ops): Likewise.
7246         * optabs.c (optab_for_tree_code): Likewise.
7247         * tree-cfg.c (estimate_operator_cost): Likewise.
7248         * tree-ssa-operands.c (get_expr_operands): Likewise.
7249         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
7250         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
7251         * doc/generic.texi: Add document for SAD_EXPR.
7252         * doc/md.texi: Add document for ssad and usad.
7254 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
7256         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
7257         qualification in cast.
7259 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
7261         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
7262         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
7263         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
7264         (tree_function_decl): ... here.
7265         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
7266         streaming of vindex to ...
7267         (write_ts_function_decl_tree_pointers): ... here.
7268         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
7269         Do not stream DECL_VINDEX.
7270         (lto_input_ts_function_decl_tree_pointers): Stream it here.
7272 2014-06-24  Catherine Moore  <clm@codesourcery.com>
7273             Sandra Loosemore  <sandra@codesourcery.com>
7275         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
7276         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
7277         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
7279 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
7281         * doc/invoke.texi (Warning Options): Remove duplicated
7282         -Wmaybe-uninitialized.
7284 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
7286         PR tree-optimization/57742
7287         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
7288         (handle_builtin_malloc, handle_builtin_memset): New functions.
7289         (strlen_optimize_stmt): Call them.
7290         * passes.def: Move strlen after loop+dom but before vrp.
7292 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
7294         PR target/61570
7295         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
7296         model family 6 CPU with has_longmode never use a CPU without
7297         64-bit support.
7299 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
7301         PR target/61570
7302         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
7303         the last change.
7305 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
7307         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
7308         * dominance.c (iterate_fix_dominators): Use hash_map instead of
7309         pointer_map.
7310         * hash-map.h: New file.
7311         * ipa-comdats.c: Use hash_map instead of pointer_map.
7312         * ipa.c: Likewise.
7313         * lto-section-out.c: Adjust.
7314         * lto-streamer.h: Replace pointer_map with hash_map.
7315         * symtab.c (verify_symtab): Likewise.
7316         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
7317         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
7318         * tree-streamer.h: Likewise.
7319         * tree-streamer.c: Adjust.
7320         * pointer-set.h: Remove pointer_map.
7322 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
7324         * hash-table.h: Add a template arg to choose between storing values
7325         and storing pointers to values, and then provide partial
7326         specializations for both.
7327         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
7328         should store, not the type values should point to.
7329         * tree-into-ssa.c (var_info_hasher): Likewise.
7330         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
7331         * tree-complex.c: Adjust.
7332         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
7333         table instead of int_tree_map *.
7334         * tree-parloops.c: Adjust.
7335         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
7336         type is being stored.
7337         * tree-vectorizer.c: Adjust.
7339 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
7341         * hash-table.h: Remove a layer of indirection from hash_table so that
7342         it contains the hash table's data instead of a pointer to the data.
7343         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
7344         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
7345         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
7346         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
7347         fold-const.c, gcse.c, ggc-common.c,
7348         gimple-ssa-strength-reduction.c, gimplify.c,
7349         graphite-clast-to-gimple.c, graphite-dependences.c,
7350         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
7351         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
7352         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
7353         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
7354         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
7355         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
7356         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
7357         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
7358         tree-ssa-live.c, tree-ssa-loop-im.c,
7359         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
7360         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
7361         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
7362         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
7363         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
7364         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
7365         vtable-verify.c, vtable-verify.h: Adjust.
7367 2014-06-24  Richard Biener  <rguenther@suse.de>
7369         PR tree-optimization/61572
7370         * tree-ssa-sink.c (statement_sink_location): Do not sink
7371         loads from hard registers.
7373 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
7375         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
7376         not mentioned in clauses use private clause if the iterator is
7377         declared in #pragma omp for simd, and when adding lastprivate
7378         instead, add it to the outer #pragma omp for too.  Diagnose
7379         if the variable is private in outer context.  For simd collapse > 1
7380         loops, replace all iterators with temporaries.
7381         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
7382         same even in collapse > 1 loops.
7384         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
7385         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
7386         non-NULL.
7387         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
7388         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
7389         non-NULL.
7390         (gimplify_adjust_omp_clauses): Likewise.
7391         * omp-low.c (lower_rec_simd_input_clauses,
7392         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
7393         safelen the same as safelen(1).
7394         * tree-nested.c (convert_nonlocal_omp_clauses,
7395         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
7396         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
7397         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
7398         Fixup handling of GIMPLE_OMP_TARGET.
7399         (convert_tramp_reference_stmt, convert_gimple_call): Handle
7400         GIMPLE_OMP_TARGET.
7402 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
7404         PR tree-optimization/61554
7405         * tree-ssa-propagate.c: Include "bitmap.h".
7406         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
7407         properly update constructor/destructor.
7408         (substitute_and_fold_dom_walker::before_dom_children):
7409         Remove call to gimple_purge_dead_eh_edges, add bb->index to
7410         need_eh_cleaup instead.
7411         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
7412         need_eh_cleanup.
7414 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
7416         * varpool.c (dump_varpool_node): Dump used_by_single_function.
7417         * tree-pass.h (make_pass_ipa_single_use): New pass.
7418         * cgraph.h (used_by_single_function): New flag.
7419         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
7420         Stream it.
7421         * passes.def (pass_ipa_single_use): Scedule.
7422         * ipa.c (BOTTOM): New macro.
7423         (meet): New function
7424         (propagate_single_user): New function.
7425         (ipa_single_use): New function.
7426         (pass_data_ipa_single_use): New pass.
7427         (pass_ipa_single_use): New pass.
7428         (pass_ipa_single_use::gate): New gate.
7429         (make_pass_ipa_single_use): New function.
7431 2014-06-23  Kai Tietz  <ktietz@redhat.com>
7433         PR target/39284
7434         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
7435         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
7437 2014-06-23  Richard Biener  <rguenther@suse.de>
7439         * tree-ssa-loop.c (gate_loop): New function.
7440         (pass_tree_loop::gate): Call it.
7441         (pass_data_tree_no_loop, pass_tree_no_loop,
7442         make_pass_tree_no_loop): New.
7443         * tree-vectorizer.c: Include tree-scalar-evolution.c
7444         (pass_slp_vectorize::execute): Initialize loops and SCEV if
7445         required.
7446         (pass_slp_vectorize::clone): New method.
7447         * timevar.def (TV_TREE_NOLOOP): New.
7448         * tree-pass.h (make_pass_tree_no_loop): Declare.
7449         * passes.def (pass_tree_no_loop): New pass group with
7450         SLP vectorizer.
7452 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
7454         PR target/61570
7455         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
7456         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
7458 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
7460         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
7461         "yes" where needed.
7463 2014-06-23  Alan Modra  <amodra@gmail.com>
7465         PR bootstrap/61583
7466         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
7467         to zero on debug statements.
7469 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
7471         PR target/60825
7472         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
7473         Ignore third operand if present by marking qualifier_internal.
7475         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
7477         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
7478         vector extension.
7479         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
7480         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
7481         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
7482         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
7483         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
7484         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
7485         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
7486         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
7487         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
7488         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
7489         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
7490         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
7491         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
7492         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
7493         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
7494         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
7495         logic in GCC vector extensions
7497         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
7498         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
7499         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
7500         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
7501         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
7502         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
7503         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
7504         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
7505         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
7506         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
7508         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
7510         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
7511         extensions.
7513         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
7514         (vget_low_s64): Use __GET_LOW macro.
7515         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
7516         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
7517         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
7518         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
7519         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
7521         (vcombine_s64): Use GCC vector extensions; remove cast.
7522         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
7523         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
7524         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
7525         Fix type signature; remove cast.
7527 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
7529         PR target/60825
7530         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
7531         V1DFmode.
7532         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
7533         add V1DFmode
7534         (BUILTIN_VD1): New.
7535         (BUILTIN_VD_RE): Remove.
7536         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
7537         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
7538         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
7539         variant but not df.
7540         (vreinterpretv1df*, vreinterpret*v1df): New.
7541         (vreinterpretdf*, vreinterpret*df): Remove.
7542         * config/aarch64/aarch64-simd.md (aarch64_create,
7543         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
7544         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
7545         (VD1): New.
7546         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
7547         (vcreate_f64): Remove cast, use v1df builtin.
7548         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
7549         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
7550         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
7551         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
7552         vmov_n_f64, vst1_f64): Use gcc vector extensions.
7553         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
7554         add range check using __builtin_aarch64_im_lane_boundsi.
7555         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
7556         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
7557         type signature, use gcc vector extensions.
7558         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
7559         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
7560         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
7561         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
7562         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
7563         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
7564         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
7565         vreinterpret_u64_f64): Use v1df builtin not df.
7567 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
7569         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
7570         vector registers.
7572 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
7574         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
7575         priority directly.
7577 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
7579         * loop-invariant.c (pre_check_invariant_p): New function.
7580         (find_invariant_insn): Call pre_check_invariant_p.
7582 2014-06-22  Richard Henderson  <rth@redhat.com>
7584         PR target/61565
7585         * compare-elim.c (struct comparison): Add eh_note.
7586         (find_comparison_dom_walker::before_dom_children): Don't eliminate
7587         a redundant comparison in a different EH region.  Purge EH edges if
7588         necessary.
7590 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
7592         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
7593         (var_shift): Use it.
7594         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
7595         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
7596         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
7597         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
7598         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
7599         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
7600         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
7601         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
7602         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
7603         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
7604         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
7605         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
7606         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
7607         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
7608         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
7609         *rotldi3_internal15be): Use the new attribute.  Merge register and
7610         integer alternatives.
7612 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
7614         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
7615         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
7616         split, *ashrdi3_internal3 and split): Delete, merge into...
7617         (ashr<mode>3): New expander.
7618         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
7619         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
7621 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
7623         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
7624         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
7625         *rotldi3_internal3 and split): Delete, merge into...
7626         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
7627         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
7628         Use "rotlw" extended mnemonic.
7630 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
7632         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
7633         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
7634         and split, *ashldi3_internal3 and split): Delete, merge into...
7635         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
7636         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
7638 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
7640         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
7641         (lshrsi3, two anonymous define_insns and define_splits,
7642         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
7643         *lshrdi3_internal3 and split): Delete, merge into...
7644         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
7645         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
7647 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
7649         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
7650         Remove "O" alternative.
7652 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
7654         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
7655         (mips_move_from_gpr_cost): Likewise.
7656         (mips_register_move_cost): Update accordingly.
7657         (mips_secondary_reload_class): Remove name of in_p.
7659 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
7661         PR target/61503
7662         * config/i386/i386.md (x86_64_shrd, x86_shrd,
7663         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
7665 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7667         * config/nios2/nios2.c: Include "builtins.h".
7669 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
7671         * cgraph.h (tls_model_names): New variable.
7672         * print-tree.c (print_node): Simplify.
7673         * varpool.c (tls_model_names): New variable.
7674         (dump_varpool_node): Output tls model.
7676 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
7678         * ipa-visibility.c (function_and_variable_visibility): Disable
7679         temporarily local aliases for some targets.
7681 2014-06-20  Marek Polacek  <polacek@redhat.com>
7683         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
7684         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
7685         into SANITIZE_UNDEFINED.
7686         * doc/invoke.texi: Describe -fsanitize=bounds.
7687         * gimplify.c (gimplify_call_expr): Add gimplification of internal
7688         functions created in the FEs.
7689         * internal-fn.c: Move "internal-fn.h" after "tree.h".
7690         (expand_UBSAN_BOUNDS): New function.
7691         * internal-fn.def (UBSAN_BOUNDS): New internal function.
7692         * internal-fn.h: Don't define internal functions here.
7693         * opts.c (common_handle_option): Add -fsanitize=bounds.
7694         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
7695         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
7696         * tree-core.h: Define internal functions here.
7697         (struct tree_base): Add ifn field.
7698         * tree-pretty-print.c: Include "internal-fn.h".
7699         (dump_generic_node): Handle functions without CALL_EXPR_FN.
7700         * tree.c (get_callee_fndecl): Likewise.
7701         (build_call_expr_internal_loc): New function.
7702         * tree.def (CALL_EXPR): Update description.
7703         * tree.h (CALL_EXPR_IFN): Define.
7704         (build_call_expr_internal_loc): Declare.
7705         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
7706         types.
7707         (ubsan_type_descriptor): Change bool parameter to enum
7708         ubsan_print_style.  Adjust the code.  Add handling of
7709         UBSAN_PRINT_ARRAY.
7710         (ubsan_expand_bounds_ifn): New function.
7711         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
7712         (ubsan_build_overflow_builtin): Likewise.
7713         (instrument_bool_enum_load): Likewise.
7714         (ubsan_instrument_float_cast): Likewise.
7715         * ubsan.h (enum ubsan_print_style): New enum.
7716         (ubsan_expand_bounds_ifn): Declare.
7717         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
7719 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
7721         * config/rs6000/rs6000.md: Append `DONE' to preparation
7722         statements of `bswap' pattern splitters.
7724 2014-06-20  Tom de Vries  <tom@codesourcery.com>
7726         * target.def (call_fusage_contains_non_callee_clobbers): Update
7727         definition.
7728         * doc/tm.texi: Regenerate.
7730 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
7731             Max Ostapenko  <m.ostapenko@partner.samsung.com>
7733         PR sanitizer/61547
7734         * asan.c (instrument_strlen_call): Fixed instrumentation of
7735         trailing byte.
7737 2014-06-20  Martin Jambor  <mjambor@suse.cz>
7739         PR ipa/61540
7740         * ipa-prop.c (impossible_devirt_target): New function.
7741         (try_make_edge_direct_virtual_call): Use it, also instead of
7742         asserting.
7744 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
7745             Max Ostapenko  <m.ostapenko@partner.samsung.com>
7747         PR sanitizer/61530
7748         * asan.c (build_check_stmt): Add condition.
7750 2014-06-20  Martin Jambor  <mjambor@suse.cz>
7752         PR ipa/61211
7753         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
7754         expanded clones.
7756 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7758         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
7759         Update comments.
7760         (VCONQ): Make comment more helpful.
7761         (VCON): Delete.
7762         * config/aarch64/aarch64-simd.md
7763         (aarch64_sqdmulh_lane<mode>):
7764         Use VCOND for operands 2.  Update lane checking and flipping logic.
7765         (aarch64_sqrdmulh_lane<mode>): Likewise.
7766         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
7767         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
7768         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
7769         attribute of operand 3 to VCOND.
7770         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
7771         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
7772         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
7773         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
7774         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
7775         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
7776         define_insn.
7777         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
7778         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
7779         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
7780         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
7781         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
7782         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
7783         operand to VCOND.  Update lane flipping and bounds checking logic.
7784         (aarch64_sqdmlal2_lane<mode>): Likewise.
7785         (aarch64_sqdmlsl_lane<mode>): Likewise.
7786         (aarch64_sqdmull_lane<mode>): Likewise.
7787         (aarch64_sqdmull2_lane<mode>): Likewise.
7788         (aarch64_sqdmlal_laneq<mode>):
7789         Replace VCON usage with VCONQ.
7790         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
7791         (aarch64_sqdmlal2_laneq<mode>): Emit
7792         aarch64_sqdmlal2_laneq<mode>_internal insn.
7793         Replace VCON with VCONQ.
7794         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
7795         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
7796         (aarch64_sqdmull_laneq<mode>): Emit
7797         aarch64_sqdmull_laneq<mode>_internal insn.
7798         Replace VCON with VCONQ.
7799         (aarch64_sqdmull2_laneq<mode>): Emit
7800         aarch64_sqdmull2_laneq<mode>_internal insn.
7801         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
7802         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
7803         of 3rd argument to int16x4_t.
7804         (vqdmlalh_lane_s16): Likewise.
7805         (vqdmlslh_lane_s16): Likewise.
7806         (vqdmull_high_lane_s16): Likewise.
7807         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
7808         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
7809         (vqdmlsl_lane_s16): Likewise.
7810         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
7811         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
7812         (vqdmlals_lane_s32): Likewise.
7813         (vqdmlsls_lane_s32): Likewise.
7814         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
7815         (vqdmulls_lane_s32): Likewise.
7816         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
7817         (vqdmlsl_lane_s32): Likewise.
7818         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
7819         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
7820         (vqrdmulhh_lane_s16): Likewise.
7821         (vqdmlsl_high_lane_s16): Likewise.
7822         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
7823         (vqdmlsl_high_lane_s32): Likewise.
7824         (vqrdmulhs_lane_s32): Likewise.
7826 2014-06-20  Tom de Vries  <tom@codesourcery.com>
7828         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
7829         get_call_reg_set_usage.
7831 2014-06-20  Tom de Vries  <tom@codesourcery.com>
7833         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
7834         it contains all call_used_regs.
7836 2014-06-20  Tom de Vries  <tom@codesourcery.com>
7838         * final.c (collect_fn_hard_reg_usage): Add and use variable
7839         function_used_regs.
7841 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
7843         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
7844         (set_init_priority, get_init_priority, set_fini_priority,
7845         get_fini_priority): New methods.
7846         * tree.c (init_priority_for_decl): Remove.
7847         (init_ttree): Do not initialize init priority.
7848         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
7849         (decl_priority_info): Remove.
7850         (decl_init_priority_insert): Rewrite.
7851         (decl_fini_priority_insert): Rewrite.
7852         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
7853         tree_priority_map_marked_p): Remove.
7854         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
7855         * lto-streamer-out.c (hash_tree): Do not hash priorities.
7856         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
7857         not output priorities.
7858         (pack_ts_function_decl_value_fields): Likewise.
7859         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
7860         not input priorities.
7861         (unpack_ts_function_decl_value_fields): Likewise.
7862         * symtab.c (symbol_priority_map): Declare.
7863         (init_priority_hash): Declare.
7864         (symtab_unregister_node): Unregister from priority hash, too.
7865         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
7866         New methods.
7867         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
7868         (symbol_priority_info): New function.
7869         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
7870         New methods.
7871         * tree-core.h (tree_priority_map): Remove.
7873 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
7875         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
7876         0xff to uint64_t before shifting it up.
7878 2014-06-20  Julian Brown  <julian@codesourcery.com>
7879             Chung-Lin Tang  <cltang@codesourcery.com>
7881         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
7882         TARGET_THUMB1_ONLY. Add comments.
7884 2014-06-19  Tom de Vries  <tom@codesourcery.com>
7886         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
7887         return type to void.
7888         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
7890 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
7892         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
7893         as "move", from depends_on.
7895 2014-06-19  Terry Guo  <terry.guo@arm.com>
7897         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
7898         stage.
7900 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
7902         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
7903         Remove cr5.
7904         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
7906 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
7908         PR target/61550
7909         * config/sh/sh.c (prepare_move_operands): Don't process TLS
7910         addresses here if reload in progress or completed.
7912 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
7914         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
7915         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
7916         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
7917         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
7918         (mips_register_priority): New function that implements the target
7919         hook TARGET_REGISTER_PRIORITY.
7920         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
7921         (mips_lra_p): Likewise for TARGET_LRA_P.
7922         (TARGET_REGISTER_PRIORITY): Define macro.
7923         (TARGET_SPILL_CLASS): Likewise.
7924         (TARGET_LRA_P): Likewise.
7925         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
7926         classes.
7927         (REG_CLASS_NAMES): Likewise.
7928         (REG_CLASS_CONTENTS): Likewise.
7929         (BASE_REG_CLASS): Use M16_SP_REGS.
7930         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
7931         New set attribute to enable alternatives depending on the register
7932         allocator used.
7933         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
7934         (*lea64): Disable pattern for MIPS16.
7935         * config/mips/mips.opt (mlra): New option.
7937 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
7939         * lra-constraints.c (base_to_reg): New function.
7940         (process_address): Use new function.
7942 2014-06-18  Tom de Vries  <tom@codesourcery.com>
7944         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
7945         * config/aarch64/aarch64.c
7946         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
7947         (aarch64_emit_call_insn): New function.
7948         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
7949         of emit_call_insn.
7950         * config/aarch64/aarch64.md (define_expand "call_internal")
7951         (define_expand "call_value_internal", define_expand "sibcall_internal")
7952         (define_expand "sibcall_value_internal"): New.
7953         (define_expand "call", define_expand "call_value")
7954         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
7955         expand variant and aarch64_emit_call_insn.
7957 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
7958             Tom de Vries  <tom@codesourcery.com>
7960         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
7961         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
7962         Redefine to true.
7963         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
7964         clobbers to CALL_INSN_FUNCTION_USAGE.
7965         (define_expand "sibcall_internal")
7966         (define_expand "sibcall_value_internal"): New.
7967         (define_expand "call", define_expand "call_value"): Add argument to
7968         arm_emit_call_insn.
7969         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
7970         (define_expand "sibcall_value"): Use sibcall_value_internal and
7971         arm_emit_call_insn.
7973 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
7975         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
7977 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
7979         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
7980         __udivmoddi4.
7982 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
7984         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
7985         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
7986         annotations. Fix DWARF information.
7988 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
7990         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
7991         __udivmoddi4, and fixups for negative operands.
7993 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
7995         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
7997 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
7999         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
8000         to __udivmoddi4.
8002 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
8004         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
8005         manipulation.
8007 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
8009         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
8010         describing register usage on function entry and exit.
8012 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
8014         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
8015         (__aeabi_ldivmod): Fix whitespace.
8017 2014-06-18  Andreas Schwab  <schwab@suse.de>
8019         * doc/md.texi (Standard Names): Use @itemx for grouped items.
8020         Remove blank line after @item.
8022 2014-06-18  Richard Henderson  <rth@redhat.com>
8024         PR target/61545
8025         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
8027 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
8029         * config/arm/arm.c (neon_vector_mem_operand): Allow register
8030         POST_MODIFY for neon loads and stores.
8031         (arm_print_operand): Output post-index register for neon loads and
8032         stores.
8034 2014-06-18  Richard Biener  <rguenther@suse.de>
8036         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
8038 2014-06-18  Richard Biener  <rguenther@suse.de>
8040         * tree-pass.h (make_pass_dce_loop): Remove.
8041         * passes.def: Replace pass_dce_loop with pass_dce.
8042         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
8043         changed free niter estimates and reset the scev cache.
8044         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
8045         make_pass_dce_loop): Remove.
8046         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
8047         (fini_copy_prop): Return whether something changed.  Always
8048         let substitute_and_fold perform DCE and free niter estimates
8049         and reset the scev cache if so.
8050         (execute_copy_prop): If sth changed schedule cleanup-cfg.
8051         (pass_data_copy_prop): Do not unconditionally schedule
8052         cleanup-cfg or update-ssa.
8054 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
8056         PR tree-optimization/61518
8057         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
8058         reduction var is used in reduction stmt or phi-function only.
8060 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8062         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
8064 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8066         PR tree-optimization/61517
8067         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
8068         whose rhs's first tree is the source expression instead of the
8069         expression itself.
8070         (find_bswap_or_nop): Likewise.
8071         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
8072         gimple stmt whose rhs's first tree is the source. In the memory source
8073         case, move the stmt to be replaced close to one of the original load to
8074         avoid the problem of a store between the load and the stmt's original
8075         location.
8076         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
8077         signature.
8079 2014-06-18  Andreas Schwab  <schwab@suse.de>
8081         PR rtl-optimization/54555
8082         * postreload.c (move2add_use_add2_insn): Substitute
8083         STRICT_LOW_PART only if it is cheaper.
8085 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
8087         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
8088         Do not use unspec as call operand.  Use memory_operand instead of
8089         memory_nox32_operand and add "m" operand constraint.  Disable
8090         pattern for TARGET_X32.
8091         (*sibcall_pop_memory): Ditto.
8092         (*sibcall_value_memory): Ditto.
8093         (*sibcall_value_pop_memory): Ditto.
8094         (sibcall peepholes): Merge SImode and DImode patterns using
8095         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
8096         Disable pattern for TARGET_X32.  Check if eliminated register is
8097         really dead after call insn.  Generate call RTX without unspec operand.
8098         (sibcall_value peepholes): Ditto.
8099         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
8100         instead of memory_nox32_operand.  Check if eliminated register is
8101         really dead after call insn. Generate call RTX without unspec operand.
8102         (sibcall_value_pop peepholes): Ditto.
8103         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
8105 2014-06-18  Terry Guo  <terry.guo@arm.com>
8107         PR target/61544
8108         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
8109         reach the head.
8111 2014-06-18  Olivier Hainque  <hainque@adacore.com>
8113         * tree-core.h (tree_block): Add an "end_locus" field, allowing
8114         memorization of the end of block source location.
8115         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
8116         * gimplify.c (gimplify_bind_expr): Propagate the block start and
8117         end source location info we have on the block entry/exit code we
8118         generate.
8120 2014-06-18  Richard Biener  <rguenther@suse.de>
8122         * common.opt (fssa-phiopt): New option.
8123         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
8124         but not with -Og.
8125         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
8126         * doc/invoke.texi (-fssa-phiopt): Document.
8128 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8130         * genattrtab.c (n_bypassed): New variable.
8131         (process_bypasses): Initialise n_bypassed.
8132         Count number of bypassed reservations.
8133         (make_automaton_attrs): Allocate space for bypassed reservations
8134         rather than number of bypasses.
8136 2014-06-18  Richard Biener  <rguenther@suse.de>
8138         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
8139         we propagated anything.
8140         (substitute_and_fold_dom_walker::before_dom_children): Something
8141         changed if we propagated into PHI arguments.
8142         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
8143         we removed a stmt.
8145 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
8147         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
8148         vector case.
8149         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
8150         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
8151         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
8152         Introduces alternative way of loads group permutaions.
8153         (vect_transform_grouped_load): Try alternative way of permutations.
8155 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
8157         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
8158         changed in ORT_TARGET region, don't jump to do_outer.
8159         (struct gimplify_adjust_omp_clauses_data): New type.
8160         (gimplify_adjust_omp_clauses_1): Adjust for data being
8161         a struct gimplify_adjust_omp_clauses_data pointer instead
8162         of tree *.  Pass pre_p as a new argument to
8163         lang_hooks.decls.omp_finish_clause hook.
8164         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
8165         splay_tree_foreach to pass both list_p and pre_p.
8166         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
8167         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
8168         gimplify_adjust_omp_clauses callers.
8169         * langhooks.c (lhd_omp_finish_clause): New function.
8170         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
8171         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
8172         * langhooks.h (struct lang_hooks_for_decls): Add a new
8173         gimple_seq * argument to omp_finish_clause hook.
8174         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
8175         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
8176         (scan_omp_parallel, lower_omp_for): When adding
8177         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
8178         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
8179         * tree-nested.c (convert_nonlocal_omp_clauses,
8180         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
8181         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
8183 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
8185         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
8186         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
8188 2014-06-17  Xinliang David Li  <davidxl@google.com>
8190         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
8191         * passes.c (pass_init_dump_file): Do not set initialize
8192         flag to false unconditionally.
8194 2014-06-17  Richard Biener  <rguenther@suse.de>
8196         * genopinit.c (main): Use vec<>::qsort method.
8197         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
8198         Likewise.
8199         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
8201 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
8203         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
8204         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
8205         (mips_move_to_gpr_cost): Remove ST_REGS case.
8206         (mips_move_from_gpr_cost): Likewise.
8207         (mips_register_move_cost): Likewise.
8208         (mips_secondary_reload_class): Likewise.
8210 2014-06-17  Richard Biener  <rguenther@suse.de>
8212         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
8213         (pass_all_optimizations): Move 3rd copy-prop pass from after
8214         fre to before ifcombine/phiopt.
8216 2014-06-17  Richard Biener  <rguenther@suse.de>
8218         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
8219         and allow all blocks to be forwarders.
8221 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
8223         PR target/61483
8224         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
8225         variable 'size'; calculate 'size' right in the front; use
8226         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
8227         pcum->aapcs_stack_words.
8229 2014-06-17  Nick Clifton  <nickc@redhat.com>
8231         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
8232         (umulhi3, mulsidi3, umulsidi3): Likewise.
8234 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
8236         PR middle-end/61508
8237         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
8238         check for section name.
8240 2014-06-17  Richard Biener  <rguenther@suse.de>
8242         * tree-ssa-propagate.c: Include domwalk.h.
8243         (substitute_and_fold): Outline main worker into a domwalker ...
8244         (substitute_and_fold_dom_walker::before_dom_children): ... here.
8245         Schedule stmts we can fully propagate for removal.  Remove
8246         poor-mans DCE.
8247         (substitute_and_fold): Apply a dominator walk to perform
8248         substitution.  Process stmts scheduled for removal here.
8250 2014-06-17  Richard Biener  <rguenther@suse.de>
8252         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
8253         of PHI node moving.
8255 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
8257         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
8258         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
8259         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
8260         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
8261         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
8262         TARGET_HARD_FLOAT.
8263         (get_fpscr) : Likewise.
8265 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
8267         PR rtl-optimization/61325
8268         * lra-constraints.c (valid_address_p): Add forward declaration.
8269         (simplify_operand_subreg): Check address validity before and after
8270         alter_reg of memory subreg.
8272 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
8274         * config/i386/i386.c (decide_alg): Correctly handle
8275         maximum size of stringop algorithm.
8277 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
8279         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
8281 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
8283         PR rtl-optimization/61522
8284         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
8286 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
8288         Revert:
8289         * symtab.c (symtab_node::reset_section): New method.
8290         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
8291         for localization.
8292         * cgraph.h (reset_section): Declare.
8293         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
8294         do not consider comdat locals.
8295         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
8296         for new symbol.
8297         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
8298         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
8299         reset sections of symbols dragged out of the comdats.
8300         (function_and_variable_visibility): Reset sections of
8301         localized symbols.
8303 2014-06-16  Richard Biener  <rguenther@suse.de>
8305         PR tree-optimization/61482
8306         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
8307         [-INF(OVF), +INF(OVF)] range.
8309 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8311         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
8312         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
8313         handling 32-bit multiplication.
8315 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
8317         PR middle-end/61430
8318         * lra-lives.c (process_bb_lives): Skip creating copy during
8319         insn scan when src/dest has constrained to same regno.
8321 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
8323         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
8324         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
8326 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
8328         * asan.c (check_func): New function.
8329         (maybe_create_ssa_name): Likewise.
8330         (build_check_stmt_with_calls): Likewise.
8331         (use_calls_p): Likewise.
8332         (report_error_func): Change interface.
8333         (build_check_stmt): Allow non-integer lengths; add support
8334         for new parameter.
8335         (asan_instrument): Likewise.
8336         (instrument_mem_region_access): Moved code to build_check_stmt.
8337         (instrument_derefs): Likewise.
8338         (instrument_strlen_call): Likewise.
8339         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
8340         * doc/invoke.texi: Describe new parameter.
8341         * params.def: Define new parameter.
8342         * params.h: Likewise.
8343         * sanitizer.def: Describe new builtins.
8345 2014-06-16  Richard Biener  <rguenther@suse.de>
8347         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8348         Make all defs available at the end.
8349         (eliminate): If we remove a PHI node schedule cfg-cleanup.
8351 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
8353         PR plugins/45078
8354         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
8356 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
8358         PR bootstrap/61516
8359         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
8360         initialization.  Replace remaining use of uid.
8362 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
8364         * c-family/c-common.c (handle_tls_model_attribute): Use
8365         set_decl_tls_model.
8366         * c-family/c-common.c (handle_tls_model_attribute): Use
8367         set_decl_tls_model.
8368         * cgraph.h (struct varpool_node): Add tls_model.
8369         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
8370         * tree.h (DECL_TLS_MODEL): Update.
8371         (DECL_THREAD_LOCAL_P): Check that variable is static.
8372         (decl_tls_model): Declare.
8373         (set_decl_tls_model): Declare.
8374         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
8375         set symbol prorperties.
8376         (get_emutls_init_templ_addr): Cleanup.
8377         (new_emutls_decl): Update.
8378         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
8379         (lto_input_varpool_node): Likewise.
8380         * lto-streamer-out.c (hash_tree): Likewise.
8381         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
8382         not stream DECL_TLS_MODEL.
8383         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
8384         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
8386 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
8388         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
8390 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
8392         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
8393         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
8394         lists.
8395         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
8396         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
8397         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
8398         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
8399         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
8400         (df_get_artificial_defs, df_get_artificial_uses)
8401         (df_single_def, df_single_use): Update accordingly.
8402         (df_refs_chain_dump): Take the first element in a linked list as
8403         parameter, rather than a pointer to an array of pointers.
8404         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
8405         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
8406         (df_chain_create_bb_process_use): Likewise.
8407         (df_md_bb_local_compute_process_def): Likewise.
8408         * fwprop.c (process_defs, process_uses): Likewise.
8409         (register_active_defs, update_uses): Likewise.
8410         (forward_propagate_asm): Update for new df_ref linking.
8411         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
8412         (df_null_ref_rec, df_null_mw_rec): Likewise.
8413         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
8414         explicitly.
8415         (df_scan_free_bb_info): Remove check for null artificial_defs.
8416         (df_install_ref_incremental): Adjust for new df_ref linking.
8417         Use a single-element insertion rather than a full sort.
8418         (df_ref_chain_delete_du_chain): Take the first element
8419         in a linked list as parameter, rather than a pointer to an array of
8420         pointers.
8421         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
8422         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
8423         (df_insn_info_delete): Remove check for null defs and call to
8424         df_scan_free_mws_vec.
8425         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
8426         null rather than df_null_*_rec.
8427         (df_insn_rescan_debug_internal): Likewise, and update null
8428         checks in the same way.  Remove check for null defs.
8429         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
8430         Move a single element rather doing a full sort.
8431         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
8432         linking.
8433         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
8434         Initialize df_ref and df_mw_hardreg lists to null rather than
8435         df_null_*_rec.
8436         (df_ref_compare): Take df_refs as parameter, transferring the
8437         old interface to...
8438         (df_ref_ptr_compare): ...this new function.
8439         (df_sort_and_compress_refs): Update accordingly.
8440         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
8441         old interface to...
8442         (df_mw_ptr_compare): ...this new function.
8443         (df_sort_and_compress_mws): Update accordingly.
8444         (df_install_refs, df_install_mws): Return a linked list rather than
8445         an array of pointers.
8446         (df_refs_add_to_chains): Assert that old lists are empty rather
8447         than freeing them.
8448         (df_insn_refs_verify): Don't handle null defs speciailly.
8449         * web.c (union_match_dups): Update for new df_ref linking.
8451 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
8453         * df.h (df_ref_create, df_ref_remove): Delete.
8454         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
8455         (df_ref_remove): Likewise.
8457 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
8459         * df.h (df_single_def, df_single_use): New functions.
8460         * ira.c (find_moveable_pseudos): Use them.
8462 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
8464         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
8465         * df-problems.c (df_note_bb_compute): Use it.
8466         * regstat.c (regstat_bb_compute_ri): Likewise.
8468 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
8470         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
8471         * cse.c (cse_extended_basic_block): Use them.
8472         * dce.c (mark_artificial_use): Likewise.
8473         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
8474         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
8475         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
8476         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
8477         (df_simulate_initialize_backwards): Likewise.
8478         (df_simulate_finalize_backwards): Likewise.
8479         (df_simulate_initialize_forwards): Likewise.
8480         (df_md_simulate_artificial_defs_at_top): Likewise.
8481         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
8482         * regrename.c (init_rename_info): Likewise.
8483         * regstat.c (regstat_bb_compute_ri): Likewise.
8484         (regstat_bb_compute_calls_crossed): Likewise.
8486 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
8488         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
8489         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
8490         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
8491         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
8492         * combine.c (create_log_links): Likewise.
8493         * compare-elim.c (find_flags_uses_in_insn): Likewise.
8494         (try_eliminate_compare): Likewise.
8495         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
8496         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
8497         (remove_reg_equal_equiv_notes_for_defs): Likewise.
8498         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
8499         (word_dce_process_block, dce_process_block): Likewise.
8500         * ddg.c (def_has_ccmode_p): Likewise.
8501         * df-core.c (df_bb_regno_first_def_find): Likewise.
8502         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
8503         * df-problems.c (df_rd_simulate_one_insn): Likewise.
8504         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
8505         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
8506         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
8507         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
8508         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
8509         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
8510         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
8511         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
8512         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
8513         * fwprop.c (local_ref_killed_between_p): Likewise.
8514         (all_uses_available_at, free_load_extend): Likewise.
8515         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
8516         * hw-doloop.c (scan_loop): Likewise.
8517         * ifcvt.c (dead_or_predicable): Likewise.
8518         * init-regs.c (initialize_uninitialized_regs): Likewise.
8519         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
8520         (process_bb_node_lives): Likewise.
8521         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
8522         (find_moveable_pseudos): Likewise.
8523         * loop-invariant.c (check_dependencies, record_uses): Likewise.
8524         * recog.c (peep2_find_free_register): Likewise.
8525         * ree.c (get_defs): Likewise.
8526         * regstat.c (regstat_bb_compute_ri): Likewise.
8527         (regstat_bb_compute_calls_crossed): Likewise.
8528         * sched-deps.c (find_inc, find_mem): Likewise.
8529         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
8530         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
8531         * shrink-wrap.c (requires_stack_frame_p): Likewise.
8532         (prepare_shrink_wrap): Likewise.
8533         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
8534         * web.c (union_defs, pass_web::execute): Likewise.
8535         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
8536         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
8538 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
8540         * lra-assign.c (assign_by_spills): Add code to assign vector regs
8541         to inheritance pseudos.
8542         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
8544 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
8546         PR target/61415
8547         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
8548         (BU_MISC_2): Rename to ...
8549         (BU_LDBL128_2): ... this.
8550         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
8551         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
8552         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
8553         RS6000_BTM_LDBL128.
8554         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
8555         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
8556         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
8557         (unpacktf_1): Likewise.
8558         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
8559         (__builtin_longdouble_dw1): Likewise.
8560         * doc/sourcebuild.texi (longdouble128): Document.
8562 2014-06-13  Jeff Law  <law@redhat.com>
8564         PR rtl-optimization/61094
8565         PR rtl-optimization/61446
8566         * ree.c (combine_reaching_defs): Get the mode for the copy from
8567         the extension insn rather than the defining insn.
8569 2014-06-13  Dehao Chen  <dehao@google.com>
8571         * dwarf2out.c (add_linkage_name): Emit more linkage name.
8573 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
8575         * doc/install.texi (--enable-linker-plugin-configure-flags)
8576         (--enable-linker-plugin-flags): Document new flags.
8578 2014-06-13  Martin Jambor  <mjambor@suse.cz>
8580         PR ipa/61186
8581         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
8582         cache_token if returning early.
8584 2014-06-13  Nick Clifton  <nickc@redhat.com>
8586         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
8587         requested alignment is active.
8588         (LABEL_ALIGN): Likewise.
8589         (LOOP_ALIGN): Likewise.
8591 2014-06-13  Richard Biener  <rguenther@suse.de>
8593         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8594         Rewrite to propagate the VN result into all uses where
8595         possible and to remove stmts becoming dead because of that.
8596         (eliminate): Generalize stmt removal handling, remove in
8597         reverse dominator order to support proper debug stmt
8598         generation.  Update stmts before removing stmts.
8599         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
8601 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8603         PR tree-optimization/61375
8604         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
8605         symbolic number cannot be represented in an uint64_t.
8606         (find_bswap_or_nop_1): Likewise.
8608 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
8610         * symtab.c (symtab_node::reset_section): New method.
8611         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
8612         for localization.
8613         * cgraph.h (reset_section): Declare.
8614         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
8615         do not consider comdat locals.
8616         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
8617         for new symbol.
8618         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
8619         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
8620         reset sections of symbols dragged out of the comdats.
8621         (function_and_variable_visibility): Reset sections of
8622         localized symbols.
8624 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
8626         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
8627         to use symtab and decl_binds_to_current_def_p
8628         * tree-vectorizer.c (increase_alignment): Increase alignment
8629         of alias target, too.
8631 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
8633         PR middle-end/61486
8634         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
8635         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
8636         if outer combined construct is distribute.
8637         (gimplify_omp_for): For OMP_DISTRIBUTE set
8638         gimplify_omp_ctxp->distribute.
8639         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
8640         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
8641         mapping into decl map.
8643 2014-06-12  Jason Merrill  <jason@redhat.com>
8645         * common.opt (fabi-version): Change default to 0.
8647 2014-06-12  Jason Merrill  <jason@redhat.com>
8649         * toplev.c (process_options): Reject -fabi-version=1.
8651 2014-06-12  Jeff Law  <law@redhat.com>
8653         PR tree-optimization/61009
8654         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
8655         value when we stop processing a block due to problematic PHIs.
8657 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
8659         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
8660         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
8661         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
8662         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
8663         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
8664         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
8665         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
8666         are not in the spec.
8668 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
8670         PR target/59843
8671         * config/aarch64/aarch64-modes.def: Add V1DFmode.
8672         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
8673         Support V1DFmode.
8675 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
8677         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
8679 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
8681         PR target/61443
8682         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
8683         loading from address spaces.
8685 2014-06-12  Martin Liska  <mliska@suse.cz>
8687         PR ipa/61462
8688         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
8689         statement is reachable.
8691 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
8693         * symtab.c (section_hash): New hash.
8694         (symtab_unregister_node): Clear section before freeing.
8695         (hash_section_hash_entry): New haser.
8696         (eq_sections): New function.
8697         (symtab_node::set_section_for_node): New method.
8698         (set_section_1): Update.
8699         (symtab_node::set_section): Take string instead of tree as parameter.
8700         (symtab_resolve_alias): Update.
8701         * cgraph.h (section_hash_entry_d): New structure.
8702         (section_hash_entry): New typedef.
8703         (cgraph_node): Change comdat_group_ to x_comdat_group,
8704         change section_ to x_section and turn into section_hash_entry;
8705         update accestors; put set_section_for_node offline.
8706         * tree.c (decl_section_name): Turn into string.
8707         (set_decl_section_name): Change parameter to be string.
8708         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
8709         * sdbout.c (sdbout_one_type): Update.
8710         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
8711         * varasm.c (IN_NAMED_SECTION, get_named_section,
8712         resolve_unique_section, hot_function_section, get_named_text_section,
8713         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
8714         make_decl_rtl, default_unique_section): Update.
8715         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
8716         (c6x_elf_unique_section): Update.
8717         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
8718         * config/pa/pa.c (pa_function_section): Update.
8719         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
8720         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
8721         * config/arc/arc.c (arc_in_small_data_p): Update.
8722         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
8723         * config/mcore/mcore.c (mcore_unique_section): Update.
8724         * config/mips/mips.c (mips16_build_function_stub): Update.
8725         (mips16_build_call_stub): Update.
8726         (mips_function_rodata_section): Update.
8727         (mips_in_small_data_p): Update.
8728         * config/score/score.c (score_in_small_data_p): Update.
8729         * config/rx/rx.c (rx_in_small_data): Update.
8730         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
8731         (rs6000_xcoff_asm_named_section): Update.
8732         (rs6000_xcoff_unique_section): Update.
8733         * config/frv/frv.c (frv_string_begins_with): Update.
8734         (frv_in_small_data_p): Update.
8735         * config/v850/v850.c (v850_encode_data_area): Update.
8736         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
8737         (bfin_handle_l1_data_attribute): Update.
8738         (bfin_handle_l2_attribute): Update.
8739         * config/mep/mep.c (mep_unique_section): Update.
8740         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
8741         Update.
8742         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
8743         (h8300_handle_tiny_data_attribute): Update.
8744         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
8745         (m32r_in_small_data_p): Update.
8746         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
8747         * config/i386/i386.c (ix86_in_large_data_p): Update.
8748         * config/i386/winnt.c (i386_pe_unique_section): Update.
8749         * config/darwin.c (darwin_function_section): Update.
8750         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
8751         * tree-emutls.c (get_emutls_init_templ_addr): Update.
8752         (new_emutls_decl): Update.
8753         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
8754         input_varpool_node): Update.
8755         (ead_string_cst): Turn to ...
8756         (read_string): ... this one.
8757         * dwarf2out.c (secname_for_decl): Update.
8758         * asan.c (asan_protect_global): Update.
8760 2014-06-11  DJ Delorie  <dj@redhat.com>
8762         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
8763         cache lines.
8764         * config/rx/rx.c (rx_option_override): Likewise.
8765         (rx_align_for_label): Likewise.
8767         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
8769 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
8771         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
8772         prototype.
8774 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
8776         * common.md: New file.
8777         * doc/md.texi: Update description of generic, machine-independent
8778         constraints.
8779         * config/s390/constraints.md (e): Delete.
8780         * Makefile.in (md_file): Include common.md.
8781         * config/m32c/t-m32c (md_file): Likewise.
8782         * genpreds.c (general_mem): New array.
8783         (generic_constraint_letters): Remove constraints now defined by
8784         common.md.
8785         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
8786         Allow the first character to be '<' or '>' as well.
8787         * genoutput.c (general_mem): New array.
8788         (indep_constraints): Remove constraints now defined by common.md.
8789         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
8790         Remove special handling of 'm'.
8791         * ira-costs.c (record_reg_classes): Remove special handling of
8792         constraints now defined by common.md.
8793         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
8794         * ira-lives.c (single_reg_class): Likewise.
8795         (ira_implicitly_set_insn_hard_regs): Likewise.
8796         * lra-constraints.c (reg_class_from_constraints): Likewise.
8797         (process_alt_operands, process_address, curr_insn_transform): Likewise.
8798         * postreload.c (reload_cse_simplify_operands): Likewise.
8799         * reload.c (push_secondary_reload, scratch_reload_class)
8800         (find_reloads, alternative_allows_const_pool_ref): Likewise.
8801         * reload1.c (maybe_fix_stack_asms): Likewise.
8802         * targhooks.c (default_secondary_reload): Likewise.
8803         * stmt.c (parse_output_constraint): Likewise.
8804         * recog.c (preprocess_constraints): Likewise.
8805         (constrain_operands, peep2_find_free_register): Likewise.
8806         (asm_operand_ok): Likewise, but add a comment saying why 'o'
8807         must be handled specially.
8809 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
8811         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
8812         * genpreds.c (have_const_dbl_constraints): Delete.
8813         (add_constraint): Don't set it.
8814         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
8815         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
8816         constraints using the lookup_constraint logic.
8817         * ira-lives.c (single_reg_class): Likewise.
8818         * ira.c (ira_setup_alts): Likewise.
8819         * lra-constraints.c (process_alt_operands): Likewise.
8820         * recog.c (asm_operand_ok, constrain_operands): Likewise.
8821         * reload.c (find_reloads): Likewise.
8823 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
8825         * genpreds.c (const_int_start, const_int_end): New variables.
8826         (choose_enum_order): Output CONST_INT constraints before memory
8827         constraints.
8828         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
8829         Add CT_CONST_INT.
8830         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
8831         * ira.c (ira_setup_alts): Likewise.
8832         * lra-constraints.c (process_alt_operands): Likewise.
8833         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
8834         * reload.c (find_reloads): Likewise.
8836 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
8838         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
8839         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
8840         * recog.c (preprocess_constraints): Update accordingly.
8842 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
8844         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
8845         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
8846         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
8847         * genpreds.c (print_type_tree): New function.
8848         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
8849         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
8850         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
8851         Write out enum constraint_type and get_constraint_type.
8852         * lra-constraints.c (satisfies_memory_constraint_p): Take a
8853         constraint_num rather than a constraint string.
8854         (satisfies_address_constraint_p): Likewise.
8855         (reg_class_from_constraints): Avoid old constraint macros.
8856         (process_alt_operands, process_address_1): Likewise.
8857         (curr_insn_transform): Likewise.
8858         * ira-costs.c (record_reg_classes): Likewise.
8859         (record_operand_costs): Likewise.
8860         * ira-lives.c (single_reg_class): Likewise.
8861         (ira_implicitly_set_insn_hard_regs): Likewise.
8862         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
8863         * postreload.c (reload_cse_simplify_operands): Likewise.
8864         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
8865         (constrain_operands, peep2_find_free_register): Likewise.
8866         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
8867         (find_reloads, alternative_allows_const_pool_ref): Likewise.
8868         * reload1.c (maybe_fix_stack_asms): Likewise.
8869         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
8870         * targhooks.c (default_secondary_reload): Likewise.
8871         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
8872         to EXTRA_CONSTRAINT_STR.
8873         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
8875 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
8877         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
8878         (write_constraint_satisfied_p_array): ...this new function.
8879         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
8880         an array.
8881         (write_insn_preds_c): Update accordingly.
8883 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
8885         * genpreds.c (write_lookup_constraint): Rename to...
8886         (write_lookup_constraint_1): ...this.
8887         (write_lookup_constraint_array): New function.
8888         (write_tm_preds_h): Define lookup_constraint as an inline function
8889         that uses write_lookup_constraint_array where possible.
8890         (write_insn_preds_c): Update for the changes above.
8892 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
8894         * doc/md.texi (regclass_for_constraint): Rename to...
8895         (reg_class_for_constraint): ...this.
8896         * genpreds.c (num_constraints, enum_order, register_start)
8897         (register_end, satisfied_start, memory_start, memory_end)
8898         (address_start, address_end): New variables.
8899         (add_constraint): Count the number of constraints.
8900         (choose_enum_order): New function.
8901         (write_enum_constraint_num): Iterate over enum_order.
8902         (write_regclass_for_constraint): Rename to...
8903         (write_reg_class_for_constraint_1): ...this and update output
8904         accordingly.
8905         (write_constraint_satisfied_p): Rename to...
8906         (write_constraint_satisfied_p_1): ...this and update output
8907         accordingly.  Do nothing if all extra constraints are register
8908         constraints.
8909         (write_insn_extra_memory_constraint): Delete.
8910         (write_insn_extra_address_constraint): Delete.
8911         (write_range_function): New function.
8912         (write_tm_preds_h): Define constraint_satisfied_p and
8913         reg_class_for_constraint as inline functions that do a range check
8914         before calling the out-of-line function.  Use write_range_function
8915         to implement insn_extra_{register,memory,address}_constraint,
8916         the first of which is new.
8917         (write_insn_preds_c): Update after above changes to write_* functions.
8918         (main): Call choose_enum_order.
8920 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8922         PR tree-optimization/61306
8923         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
8924         expression instead of its size.
8925         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
8926         false to prevent optimization when the result is unpredictable due to
8927         arithmetic right shift of signed type with highest byte is set.
8928         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
8929         (init_symbolic_number): Likewise.
8930         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
8931         when the result is unpredictable due to sign extension.
8933 2014-06-11  Terry Guo  <terry.guo@arm.com>
8935         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
8936         (*thumb1_addsi3): Ditto.
8937         (*thumb_subdi3): Ditto.
8938         (thumb1_subsi3_insn): Ditto.
8939         (*thumb_mulsi3): Ditto.
8940         (*thumb_mulsi3_v6): Ditto.
8941         (*thumb1_andsi3_insn): Ditto.
8942         (thumb1_bicsi3): Ditto.
8943         (*thumb1_iorsi3_insn): Ditto.
8944         (*thumb1_xorsi3_insn): Ditto.
8945         (*thumb1_ashlsi3): Ditto.
8946         (*thumb1_ashrsi3): Ditto.
8947         (*thumb1_lshrsi3): Ditto.
8948         (*thumb1_rotrsi3): Ditto.
8949         (*thumb1_negdi2): Ditto.
8950         (*thumb1_negsi2): Ditto.
8951         (*thumb1_abssi2): Ditto.
8952         (*thumb1_neg_abssi2): Ditto.
8953         (*thumb1_one_cmplsi2): Ditto.
8954         (*thumb1_zero_extendhisi2): Ditto.
8955         (*thumb1_zero_extendqisi2): Ditto.
8956         (*thumb1_zero_extendqisi2_v6): Ditto.
8957         (thumb1_extendhisi2): Ditto.
8958         (thumb1_extendqisi2): Ditto.
8959         (*thumb1_movdi_insn): Ditto.
8960         (*thumb1_movsi_insn): Ditto.
8961         (*thumb1_movhi_insn): Ditto.
8962         (thumb_movhi_clobber): Ditto.
8963         (*thumb1_movqi_insn): Ditto.
8964         (*thumb1_movhf): Ditto.
8965         (*thumb1_movsf_insn): Ditto.
8966         (*thumb_movdf_insn): Ditto.
8967         (movmem12b): Ditto.
8968         (movmem8b): Ditto.
8969         (cbranchqi4): Ditto.
8970         (cbranchsi4_insn): Ditto.
8971         (cbranchsi4_scratch): Ditto.
8972         (*negated_cbranchsi4): Ditto.
8973         (*tbit_cbranch): Ditto.
8974         (*tlobits_cbranch): Ditto.
8975         (*tstsi3_cbranch): Ditto.
8976         (*cbranchne_decr1): Ditto.
8977         (*addsi3_cbranch): Ditto.
8978         (*addsi3_cbranch_scratch): Ditto.
8979         (*thumb_cmpdi_zero): Ditto.
8980         (cstoresi_eq0_thumb1): Ditto.
8981         (cstoresi_ne0_thumb1): Ditto.
8982         (*cstoresi_eq0_thumb1_insn): Ditto.
8983         (*cstoresi_ne0_thumb1_insn): Ditto.
8984         (cstoresi_nltu_thumb1): Ditto.
8985         (cstoresi_ltu_thumb1): Ditto.
8986         (thumb1_addsi3_addgeu): Ditto.
8987         (*thumb_jump): Ditto.
8988         (*call_reg_thumb1_v5): Ditto.
8989         (*call_reg_thumb1): Ditto.
8990         (*call_value_reg_thumb1_v5): Ditto.
8991         (*call_value_reg_thumb1): Ditto.
8992         (*call_insn): Ditto.
8993         (*call_value_insn): Ditto.
8994         (thumb1_casesi_internal_pic): Ditto.
8995         (thumb1_casesi_dispatch): Ditto.
8996         (*thumb1_indirect_jump): Ditto.
8997         (prologue_thumb1_interwork): Ditto.
8998         (*epilogue_insns): Ditto.
8999         (consttable_1): Ditto.
9000         (consttable_2): Ditto.
9001         (tablejump): Ditto.
9002         (*thumb1_tablejump): Ditto.
9003         (thumb_eh_return): Ditto.
9004         (define_peephole2): Two of them are thumb1 only and got moved into
9005         new file thumb1.md.
9006         (define_split): Six of them are thumb1 only and got moved into new
9007         file thumb1.md.
9008         * config/arm/thumb1.md: New file comprised of above thumb1 only
9009         patterns.
9011 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9013         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
9014         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
9015         dependencies.
9016         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
9017         (aarch64_crc_builtin_datum): New struct.
9018         (aarch64_crc_builtin_data): New.
9019         (aarch64_init_crc32_builtins): New function.
9020         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
9021         (aarch64_crc32_expand_builtin): New.
9022         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
9023         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
9024         __ARM_FEATURE_CRC32 when appropriate.
9025         (TARGET_CRC32): Define.
9026         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
9027         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
9028         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
9029         (aarch64_<crc_variant>): New pattern.
9030         * config/aarch64/arm_acle.h: New file.
9031         * config/aarch64/iterators.md (CRC): New int iterator.
9032         (crc_variant, crc_mode): New int attributes.
9033         * doc/aarch64-acle-intrinsics.texi: New file.
9034         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
9035         Include aarch64-acle-intrinsics.texi.
9037 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
9039         * tree-vect-data-refs.c (vect_grouped_store_supported): New
9040         check for stores group of length 3.
9041         (vect_permute_store_chain): New permutations for stores group of
9042         length 3.
9043         * tree-vect-stmts.c (vect_model_store_cost): Change cost
9044         of vec_perm_shuffle for the new permutations.
9046 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
9048         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
9049         table rewriting temporarily on targets not supporting ONE_ONLY.
9051 2014-06-11  Richard Biener  <rguenther@suse.de>
9053         PR middle-end/61437
9054         Revert
9055         2014-06-04  Richard Biener  <rguenther@suse.de>
9057         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
9058         TREE_PUBLIC and DECL_EXTERNAL decls.
9060 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
9062         * varasm.c (set_implicit_section): New function.
9063         (resolve_unique_section): Use it to set implicit section
9064         for aliases, too.
9065         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
9066         (default_function_section): Likewise.
9067         (decl_binds_to_current_def_p): Constify argument.
9068         * varasm.h (decl_binds_to_current_def_p): Update prototype.
9069         * asan.c (asan_protect_global): Use
9070         symtab_get_node (decl)->implicit_section.
9071         * symtab.c (dump_symtab_base): Dump implicit sections.
9072         (verify_symtab_base): Verify sanity of sectoins and comdats.
9073         (symtab_resolve_alias): Alias share the section of its target.
9074         (set_section_1): New function.
9075         (symtab_node::set_section): Move here, recurse to aliases.
9076         (verify_symtab): Check for duplicated symtab lists.
9077         * tree-core.h (implicit_section_name_p): Remove.
9078         * tree-vect-data-refs.c: Include varasm.h.
9079         (vect_can_force_dr_alignment_p): Fix conditional on when
9080         decl bints to current definition; use
9081         symtab_get_node (decl)->implicit_section.
9082         * cgraph.c (cgraph_make_node_local_1): Fix section set.
9083         * cgraph.h (struct symtab_node): Add implicit_section.
9084         (set_section): Rename to ...
9085         (set_section_for_node): ... this one.
9086         (set_section): Declare.
9087         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
9088         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
9089         input_overwrite_node, input_varpool_node): Stream implicit_section.
9090         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
9091         removal; it will fail in LTO.
9093 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9095         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
9096         Change second alternative type to f_mcr.
9097         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
9098         and 12th alternatives' types to f_mcr and f_mrc.
9099         (*movdi_aarch64): Same for 12th and 13th alternatives.
9100         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
9101         (aarch64_movtilow_tilow): Change type to fmov.
9103 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
9105         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
9106         (aarch64_save_or_restore_callee_save_registers): Fix layout.
9108 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9110         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
9111         New expander.
9112         (aarch64_sqrdmulh_lane<mode>): Likewise.
9113         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
9114         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
9115         (aarch64_sqdmulh_laneq<mode>): New expander.
9116         (aarch64_sqrdmulh_laneq<mode>): Likewise.
9117         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
9118         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
9119         (aarch64_sqdmulh_lane<mode>): New expander.
9120         (aarch64_sqrdmulh_lane<mode>): Likewise.
9121         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
9122         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
9123         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
9124         (aarch64_sqdmlal_laneq<mode>): Likewise.
9125         (aarch64_sqdmlsl_lane<mode>): Likewise.
9126         (aarch64_sqdmlsl_laneq<mode>): Likewise.
9127         (aarch64_sqdmlal2_lane<mode>): Likewise.
9128         (aarch64_sqdmlal2_laneq<mode>): Likewise.
9129         (aarch64_sqdmlsl2_lane<mode>): Likewise.
9130         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
9131         (aarch64_sqdmull_lane<mode>): Likewise.
9132         (aarch64_sqdmull_laneq<mode>): Likewise.
9133         (aarch64_sqdmull2_lane<mode>): Likewise.
9134         (aarch64_sqdmull2_laneq<mode>): Likewise.
9136 2014-06-10  Richard Biener  <rguenther@suse.de>
9138         PR tree-optimization/61438
9139         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
9140         (eliminate_dom_walker::before_dom_children): Only try to inhibit
9141         insertion of IVs if running PRE.
9142         (eliminate): Adjust.
9143         (pass_pre::execute): Likewise.
9144         (pass_fre::execute): Likewise.
9146 2014-06-10  Richard Biener  <rguenther@suse.de>
9148         PR middle-end/61456
9149         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
9150         Do not use the main variant for the type comparison.
9151         (ncr_compar): Likewise.
9152         (nonoverlapping_component_refs_p): Likewise.
9154 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9156         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
9157         REG_CFA_RESTORE mode.
9159 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
9161         * config/i386/i386.c (expand_vec_perm_pblendv): New.
9162         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
9163         expand_vec_perm_pblendv.
9165 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9167         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
9168         available.
9169         Simplify description of __crc32d and __crc32cd intrinsics.
9170         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
9171         availability.
9173 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
9175         PR lto/61334
9176         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
9177         * config.in: Regenerate.
9178         * configure: Likewise.
9180 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
9182         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
9183         and public vars.
9184         (intersect_static_var_sets): Remove.
9185         (propagate): Do not prune local statics.
9187 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
9189         PR fortran/60928
9190         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
9191         Set lastprivate_firstprivate even if omp_private_outer_ref
9192         langhook returns true.
9193         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
9194         langhook, call unshare_expr on new_var and call
9195         build_outer_var_ref to get the last argument.
9197 2014-06-10  Marek Polacek  <polacek@redhat.com>
9199         PR c/60988
9200         * doc/extend.texi: Add cindex for transparent_union.
9202 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9204         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
9205         init_symbolic_number ().
9207 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
9209         PR middle-end/61141
9210         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
9211         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
9212         (verify_rtl_sharing): Likewise.
9214 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
9216         PR c++/54442
9217         * tree.c (build_qualified_type): Use a canonical type for
9218         TYPE_CANONICAL.
9220 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9222         * config/arm/arm-modes.def: Remove XFmode.
9224 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
9226         PR target/61062
9227         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
9228         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
9229         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
9230         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
9231         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
9232         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
9233         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
9234         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
9235         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
9237 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
9239         * tree-core.h (tree_decl_with_vis): Remove section_name.
9241 2014-06-09  Kito Cheng  <kito@0xlab.org>
9243         * ira.c (ira): Don't call init_caller_save if LRA enabled
9244         since LRA use its own infrastructure to handle that.
9246 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
9248         * symtab.c (dump_symtab_base): Update dumping.
9249         (symtab_make_decl_local): Clear only DECL_COMDAT.
9250         * tree-vect-data-refs.c (Check that variable is static before
9251         tampering with sections.
9252         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
9253         (cgraph_create_virtual_clone): Likewise.
9254         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
9255         (decl_section_name, set_decl_section_name): New accessors.
9256         (find_decls_types_r): Do not walk section name
9257         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
9258         (decl_comdat_group, decl_comdat_group_id): Constify.
9259         (decl_section_name, set_decl_section_name): Update.
9260         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
9261         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
9262         (cgraph_make_node_local_1): Clear section and comdat group.
9263         * cgraph.h (set_comdat_group): Sanity check.
9264         (get_section, set_section): New.
9265         * ipa-comdats.c (ipa_comdats): Use get_section.
9266         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
9267         * lto-streamer-out.c: Do not follow section names.
9268         * c-family/c-common.c (handle_section_attribute): Update.
9269         * lto-cgraph.c (lto_output_node): Output section.
9270         (lto_output_varpool_node): Likewise.
9271         (read_comdat_group): Rename to ...
9272         (read_identifier): ... this one.
9273         (read_string_cst): New function.
9274         (input_node, input_varpool_node): Input section names.
9275         * tree-emutls.c (get_emutls_init_templ_addr): Update.
9276         (new_emutls_decl): Update.
9277         (secname_for_decl): Check section names only of static vars.
9278         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
9279         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
9280         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
9281         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
9282         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
9283         * config/mcore/mcore.c (mcore_unique_section): Likewise.
9284         * config/mips/mips.c (mips16_build_function_stub): Likewise.
9285         * config/v850/v850.c (v850_insert_attributes): Likewise.
9286         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
9287         Likewise.
9288         (h8300_handle_tiny_data_attribute): Likewise.
9289         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
9290         (bfin_handle_l2_attribute): Likewise.
9292 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
9294         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
9295         remove static initializer.
9297 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
9299         * varasm.c (use_blocks_for_decl_p): Check symbol table
9300         instead of alias attribute.
9301         (place_block_symbol): Recurse on aliases.
9303 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
9305         * ipa-visibility.c: Include varasm.h
9306         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
9308 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
9310         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
9311         outputting aliases.
9313 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
9315         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
9316         from test_insn into GGC space escape via SET_SRC.
9318 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
9320         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
9321         call statement, if any.
9322         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
9323         statements, if any.  Tidy up.
9325 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
9327         PR target/61431
9328         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
9329         iterators, VSX_D that handles 64-bit types, and VSX_LE that
9330         handles swapping the two 64-bit double words on little endian
9331         systems.  Include V1TImode and optionally TImode in VSX_LE so that
9332         these types are properly swapped.  Change all of the insns and
9333         splits that do the 64-bit swaps to use VSX_LE.
9334         (vsx_le_perm_load_<mode>): Likewise.
9335         (vsx_le_perm_store_<mode>): Likewise.
9336         (splitters for little endian memory operations): Likewise.
9337         (vsx_xxpermdi2_le_<mode>): Likewise.
9338         (vsx_lxvd2x2_le_<mode>): Likewise.
9339         (vsx_stxvd2x2_le_<mode>): Likewise.
9341 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
9343         PR target/61423
9344         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
9345         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
9346         and corresponding splitters.  Zero extend general register
9347         or memory input operand to XMM temporary.  Enable for
9348         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
9349         (floatunssi<mode>2): Update expander predicate.
9351 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
9353         PR rtl-optimization/61325
9354         * lra-constraints.c (process_address_1): Check scale equal to one
9355         to prevent transformation: base + scale * index => base + new_reg.
9357 2014-06-06  Richard Biener  <rguenther@suse.de>
9359         PR tree-optimization/59299
9360         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
9361         a def operand.
9362         (nearest_common_dominator_of_uses): Likewise.
9363         (statement_sink_location): Adjust.  Support sinking loads.
9365 2014-06-06  Martin Jambor  <mjambor@suse.cz>
9367         * ipa-prop.c (get_place_in_agg_contents_list): New function.
9368         (build_agg_jump_func_from_list): Likewise.
9369         (determine_known_aggregate_parts): Renamed to
9370         determine_locally_known_aggregate_parts.  Moved some functionality
9371         to the two functions above, removed bound checks.
9373 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
9375         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
9376         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
9377         (aarch64_progress_pointer): Likewise.
9378         (aarch64_copy_one_part_and_move_pointers): Likewise.
9379         (aarch64_expand_movmen): Likewise.
9380         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
9381         * config/aarch64/aarch64.md (movmem<mode>): New.
9383 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
9385         * targhooks.c (default_add_stmt_cost): Call target specific
9386         hook instead of default one.
9388 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9390         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
9391         endianness instead of host endianness.
9392         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
9393         comments.
9395 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
9397         PR debug/53927
9398         * function.c (instantiate_decls): Process the saved static chain.
9399         (expand_function_start): If not optimizing, save the static chain
9400         onto the stack.
9401         * tree-nested.c (convert_all_function_calls): Always create the static
9402         chain for nested functions if not optimizing.
9404 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
9406         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
9408 2014-06-06  Richard Biener  <rguenther@suse.de>
9410         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
9411         (construct_init_block): Likewise.
9412         (construct_exit_block): Likewise.
9413         (pass_expand::execute): Likewise.
9414         * graphite.c (graphite_transforms): Replace check for current_loops
9415         with a check for > 1 loops.
9416         (pass_graphite_transforms::execute): Adjust.
9417         * ipa-split.c (split_function): Remove check for current_loops.
9418         * omp-low.c (expand_parallel_call): Likewise.
9419         (expand_omp_for_init_counts): Likewise.
9420         (extract_omp_for_update_vars): Likewise.
9421         (expand_omp_for_generic): Likewise.
9422         (expand_omp_sections): Likewise.
9423         (expand_omp_target): Likewise.
9424         * tracer.c (tail_duplicate): Likewise.
9425         (pass_tracer::execute): Likewise.
9426         * trans-mem.c (expand_transaction): Likewise.
9427         * tree-complex.c (expand_complex_div_wide): Likewise.
9428         * tree-eh.c (lower_resx): Likewise.
9429         (cleanup_empty_eh_merge_phis): Likewise.
9430         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
9431         current_loops with a check for > 1 loops.
9432         (pass_predcom::execute): Adjust.
9433         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
9434         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
9435         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
9436         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
9437         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
9438         * tree-switch-conversion.c (process_switch): Likewise.
9439         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
9440         * tree-vrp.c (vrp_visit_phi_node): Likewise.
9441         (execute_vrp): Likewise.
9442         * ubsan.c (ubsan_expand_null_ifn): Likewise.
9444 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
9446         * rtl.h (insn_location): Declare.
9447         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
9448         with UNKNOWN_LOCATION.
9449         * emit-rtl.c (insn_location): New function.
9450         * final.c (notice_source_line): Check that the instruction has a
9451         location before retrieving it and use insn_location.
9452         * modulo-sched.c (loop_single_full_bb_p): Likewise.
9453         * print-rtl.c (print_rtx): Likewise.
9455 2014-06-06  Richard Biener  <rguenther@suse.de>
9457         * passes.def: Move 2nd VRP pass before phi-only-cprop.
9459 2014-06-06  Christian Bruel  <christian.bruel@st.com>
9461         PR tree-optimization/43934
9462         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
9463         cost.
9465 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
9467         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
9468         return NO_REGS for extra address and memory constraints.  Handle
9469         operands that match (or are equivalent to something that matches)
9470         extra constant constraints.  Ignore other non-register operands.
9472 2014-06-06  Alan Modra  <amodra@gmail.com>
9474         PR target/61300
9475         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
9476         * doc/tm.texi: Regenerate.
9477         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
9478         Use throughout in place of REG_PARM_STACK_SPACE.
9479         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
9480         "incoming" param.  Pass to rs6000_function_parms_need_stack.
9481         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
9482         prototype_p when incoming.  Use function decl when incoming
9483         to handle K&R style functions.
9484         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
9485         (INCOMING_REG_PARM_STACK_SPACE): Define.
9487 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
9489         PR target/52472
9490         * cfgexpand.c (expand_debug_expr): Use address space of nested
9491         TREE_TYPE for ADDR_EXPR and MEM_REF.
9493 2014-06-05  Jeff Law  <law@redhat.com>
9495         PR tree-optimization/61289
9496         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
9497         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
9498         looking for those which match LHS.  All callers changed.
9499         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
9500         parameters and code which manipulated them.  All callers changed.
9501         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
9502         and DST_MAP parameters.  Simplify invalidation code by just calling
9503         invalidate_equivalences.  All callers changed.
9504         (thread_across_edge): Simplify now that we don't need to maintain
9505         the map of equivalences to invalidate.
9507 2014-06-05  Kai Tietz  <ktietz@redhat.com>
9508             Richard Henderson  <rth@redhat.com>
9510         PR target/46219
9511         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
9512         checking for !TARGET_X32.
9513         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
9514         (sibcall_intern): New define_insn, plus required peepholes.
9515         (sibcall_pop_intern): Likewise.
9516         (sibcall_value_intern): Likewise.
9517         (sibcall_value_pop_intern): Likewise.
9519 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
9521         * tree-inline.c (tree_function_versioning): Check DF info existence
9522         before accessing it.
9524 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9526         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
9527         frame_size.
9528         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
9529         aarch64_frame hard_fp_offset and frame_size.
9530         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
9531         frame_size; remove original_frame_size.
9532         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
9533         (aarch64_initial_elimination_offset): Remove frame_size and
9534         offset.  Use aarch64_frame frame_size.
9536 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9537             Jiong Wang  <jiong.wang@arm.com>
9538             Renlin  <renlin.li@arm.com>
9540         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
9541         initialization of R30 offset.  Update offset.  Iterate core
9542         regisers upto X30.  Remove X29, X30 specific code.
9544 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9545             Jiong Wang  <jiong.wang@arm.com>
9547         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
9548         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
9549         (aarch64_register_saved_on_entry): Adjust test.
9551 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9553         * config/aarch64/aarch64.h (machine_function): Move
9554         saved_varargs_size from here...
9555         (aarch64_frame): ... to here.
9557         * config/aarch64/aarch64.c (aarch64_expand_prologue)
9558         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
9559         (aarch64_initial_elimination_offset)
9560         (aarch64_setup_incoming_varargs): Adjust location of
9561         saved_varargs_size.
9563 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9565         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
9566         layout comment.
9568 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
9569             Prachi Godbole  <Prachi.Godbole@imgtec.com>
9571         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
9572         mips32r5 entry to use PROCESSOR_P5600.
9573         * config/mips/mips-tables.opt: Regenerate.
9574         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
9575         * config/mips/mips.c (mips_fmadd_bypass): New function.
9576         (mips_rtx_cost_data): Add costs for p5600.
9577         (mips_issue_rate): Add support for p5600.
9578         (mips_multipass_dfa_lookahead): Likewise.
9579         * config/mips/mips.h (TUNE_P5600): New define.
9580         (TUNE_MACC_CHAINS): Add TUNE_P5600.
9581         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
9582         * config/mips/mips.md: Include p5600.md.
9583         (processor): Add p5600.
9584         * config/mips/p5600.md: New file.
9586 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
9588         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
9589         * config/i386/predicates.md (palignr_operand): New.
9590         Indicates if permutation is suitable for palignr instruction.
9592 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
9594         PR tree-optimization/61319
9595         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
9596         stmt belongs to loop.
9598 2014-06-05  Richard Biener  <rguenther@suse.de>
9600         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
9601         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
9602         (lookup_tmp_var): Adjust.
9603         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
9605 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9607         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
9609 2014-06-05  Marek Polacek  <polacek@redhat.com>
9611         PR c/49706
9612         * doc/invoke.texi: Document -Wlogical-not-parentheses.
9614 2014-06-04  Tom de Vries  <tom@codesourcery.com>
9616         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
9617         CONST_INT.
9619 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
9621         PR tree-optimization/61385
9622         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
9624 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
9626         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
9627         changed to use fatal_error.
9628         (main): Ensure lto_wrapper_cleanup is run atexit.
9630 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
9632         * lra-constraints.c (valid_address_p): Move earlier in file.
9633         (address_eliminator): New structure.
9634         (satisfies_memory_constraint_p): New function.
9635         (satisfies_address_constraint_p): Likewise.
9636         (process_alt_operands, process_address, curr_insn_transform): Use them.
9638 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
9640         * lra-int.h (lra_static_insn_data): Make operand_alternative a
9641         const pointer.
9642         (target_lra_int, default_target_lra_int, this_target_lra_int)
9643         (op_alt_data): Delete.
9644         * lra.h (lra_init): Delete.
9645         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
9646         (init_insn_code_data_once): Remove op_alt_data handling.
9647         (finish_insn_code_data_once): Likewise.
9648         (init_op_alt_data): Delete.
9649         (get_static_insn_data): Initialize operand_alternative to null.
9650         (free_insn_recog_data): Cast operand_alternative before freeing it.
9651         (setup_operand_alternative): Take the operand_alternative as
9652         parameter and assume it isn't already cached in the static
9653         insn data.
9654         (lra_set_insn_recog_data): Update accordingly.
9655         (lra_init): Delete.
9656         * ira.c (ira_init): Don't call lra_init.
9657         * target-globals.h (this_target_lra_int): Declare.
9658         (target_globals): Remove lra_int.
9659         (restore_target_globals): Update accordingly.
9660         * target-globals.c: Don't include lra-int.h.
9661         (default_target_globals, save_target_globals): Remove lra_int.
9663 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
9665         * recog.h (operand_alternative): Convert reg_class, reject,
9666         matched and matches into bitfields.
9667         (preprocess_constraints): New overload.
9668         (preprocess_insn_constraints): New function.
9669         (preprocess_constraints): Take the insn as parameter.
9670         (recog_op_alt): Change into a pointer.
9671         (target_recog): Add x_op_alt.
9672         * recog.c (asm_op_alt): New variable.
9673         (recog_op_alt): Change into a pointer.
9674         (preprocess_constraints): New overload, replacing the old function
9675         definition with one that doesn't use global state.
9676         (preprocess_insn_constraints): New function.
9677         (preprocess_constraints): Use them.  Take the insn as parameter.
9678         Use asm_op_alt for asms.
9679         (recog_init): Free existing x_op_alt entries.
9680         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
9681         pointer const.
9682         (make_early_clobber_and_input_conflicts): Likewise.
9683         (process_bb_node_lives): Pass the insn to process_constraints.
9684         * reg-stack.c (check_asm_stack_operands): Likewise.
9685         (subst_asm_stack_regs): Likewise.
9686         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
9687         * regrename.c (build_def_use): Likewise.
9688         * sched-deps.c (sched_analyze_insn): Likewise.
9689         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
9690         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
9691         (note_invalid_constants): Likewise.
9692         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9693         (ix86_legitimate_combined_insn): Make operand_alternative pointer
9694         const.
9696 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
9698         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
9699         * ira-lives.c (check_and_make_def_conflict): Check for disabled
9700         alternatives.
9701         (make_early_clobber_and_input_conflicts): Likewise.
9702         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9704 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
9706         * recog.h (alternative_class): New function.
9707         (which_op_alt): Return a const recog_op_alt.
9708         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
9709         (subst_asm_stack_regs): Likewise.
9710         * config/arm/arm.c (note_invalid_constants): Likewise.
9711         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
9712         the operand_alternative; use alternative class instead.
9713         * sel-sched.c (get_reg_class): Likewise.
9714         * regrename.c (build_def_use): Likewise.
9715         (hide_operands, restore_operands, record_out_operands): Update type
9716         accordingly.
9718 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
9720         * recog.h (recog_op_alt): Convert to a flat array.
9721         (which_op_alt): New function.
9722         * recog.c (recog_op_alt): Convert to a flat array.
9723         (preprocess_constraints): Update accordingly, grouping all
9724         operands of the same alternative together, rather than the
9725         other way around.
9726         * ira-lives.c (check_and_make_def_conflict): Likewise.
9727         (make_early_clobber_and_input_conflicts): Likewise.
9728         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9729         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
9730         (subst_asm_stack_regs): Likewise.
9731         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
9732         * regrename.c (hide_operands, record_out_operands): Likewise.
9733         (build_def_use): Likewise.
9734         * sel-sched.c (get_reg_class): Likewise.
9735         * config/arm/arm.c (note_invalid_constants): Likewise.
9737 2014-06-04  Jason Merrill  <jason@redhat.com>
9739         PR c++/51253
9740         PR c++/61382
9741         * gimplify.c (gimplify_arg): Non-static.
9742         * gimplify.h: Declare it.
9744 2014-06-04  Richard Biener  <rguenther@suse.de>
9746         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
9747         TREE_PUBLIC and DECL_EXTERNAL decls.
9749 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
9751         * regcprop.c (copyprop_hardreg_forward_1): Account for
9752         HARD_REGNO_CALL_PART_CLOBBERED.
9754 2014-06-04  Richard Biener  <rguenther@suse.de>
9756         * configure.ac: Check whether the underlying type of int64_t
9757         is long or long long.
9758         * configure: Regenerate.
9759         * config.in: Likewise.
9760         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
9761         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
9763 2014-06-04  Richard Biener  <rguenther@suse.de>
9765         PR tree-optimization/60098
9766         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
9767         we hit a kill.
9768         (dse_optimize_stmt): Simplify, now that we found a kill
9769         earlier.
9771 2014-06-04  Richard Biener  <rguenther@suse.de>
9773         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
9774         of accesses with non-invariant address.
9776 2014-06-04  Martin Liska  <mliska@suse.cz>
9778         * cgraph.h (cgraph_make_wrapper): New function introduced.
9779         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
9780         * ipa-inline.h (inline_analyze_function): The function is global.
9781         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
9783 2014-06-04  Martin Liska  <mliska@suse.cz>
9785         * tree.h (private_lookup_attribute_starting): New function.
9786         (lookup_attribute_starting): Likewise.
9787         * tree.c (private_lookup_attribute_starting): Likewise.
9789 2014-06-04  Martin Liska  <mliska@suse.cz>
9791         * cgraph.h (expand_thunk): New argument added.
9792         (address_taken_from_non_vtable_p): New global function.
9793         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
9794         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
9795         * cgraphunit.c (analyze_function): Likewise.
9796         (assemble_thunks_and_aliases): Argument added to call.
9797         (expand_thunk): New argument forces to produce GIMPLE thunk.
9799 2014-06-04  Martin Liska  <mliska@suse.cz>
9801         * coverage.h (coverage_compute_cfg_checksum): Argument added.
9802         * coverage.c (coverage_compute_cfg_checksum): Likewise.
9803         * profile.c (branch_prob): Likewise.
9805 2014-06-04  Martin Jambor  <mjambor@suse.cz>
9807         PR ipa/61340
9808         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
9809         handler for switch on an ipa_ref_use enum.
9810         * ipa-reference.c (analyze_function): Likewise.
9812 2014-06-04  Kai Tietz  <ktietz@redhat.com>
9814         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
9815         from old call-instruction.
9817 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
9819         * config/aarch64/aarch64.c (aarch64_classify_address)
9820         (aarch64_legitimize_reload_address): Support full addressing modes
9821         for vector modes.
9822         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
9823         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
9825 2014-06-03  Andrew Pinski  <apinski@cavium.com>
9827         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
9828         for OP0.
9830 2014-06-03  Andrew Pinski  <apinski@cavium.com>
9832         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
9833         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
9835 2014-06-03  Kai Tietz  <ktietz@redhat.com>
9837         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
9838         for 64-bit ms-abi.
9840 2014-06-03  Dehao Chen  <dehao@google.com>
9842         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
9843         the same loop.
9845 2014-06-03  Marek Polacek  <polacek@redhat.com>
9847         PR c/60439
9848         * doc/invoke.texi: Document -Wswitch-bool.
9849         * function.c (stack_protect_epilogue): Cast controlling expression of
9850         the switch to int.
9851         * gengtype.c (walk_type): Generate switch expression with its
9852         controlling expression cast to int.
9854 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
9856         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
9857         and attiny841.
9858         * config/avr/avr-tables.opt: Regenerate.
9859         * config/avr/t-multilib: Regenerate.
9860         * doc/avr-mmcu.texi: Regenerate.
9862 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
9863             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
9865         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
9866         (ata6617c, ata664251): Add new avr35 devices.
9867         (ata6612c): Add new avr4 device.
9868         (ata6613c, ata6614q): Add new avr5 devices.
9869         * config/avr/avr-tables.opt: Regenerate.
9870         * config/avr/t-multilib: Regenerate.
9871         * doc/avr-mmcu.texi: Regenerate.
9873 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
9875         * gcc/config/aarch64/aarch64-builtins.c
9876         (aarch64_types_binop_ssu_qualifiers): New static data.
9877         (TYPES_BINOP_SSU): Define.
9878         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
9879         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
9880         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
9881         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
9882         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
9883         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
9884         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
9885         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
9886         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
9887         suffix to builtin function name, remove cast.
9888         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
9889         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
9890         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
9892 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
9894         * gcc/config/aarch64/aarch64-builtins.c
9895         (aarch64_types_binop_uus_qualifiers,
9896         aarch64_types_shift_to_unsigned_qualifiers,
9897         aarch64_types_unsigned_shiftacc_qualifiers): Define.
9898         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
9899         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
9900         sqshlu_n, uqshl_n): Update qualifiers.
9901         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
9902         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
9903         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
9904         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
9905         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
9906         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
9907         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
9908         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
9909         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
9910         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
9911         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
9912         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
9913         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
9914         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
9915         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
9916         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
9917         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
9918         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
9919         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
9920         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
9921         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
9922         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
9923         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
9924         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
9925         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
9926         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
9927         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
9929 2014-06-03  Teresa Johnson  <tejohnson@google.com>
9931         * tree-sra.c (modify_function): Record caller nodes after rebuild.
9933 2014-06-02  Jason Merrill  <jason@redhat.com>
9935         PR c++/61020
9936         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
9938 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
9940         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
9941         location == 0.
9943 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
9945         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
9946         New pattern.
9947         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
9948         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
9949         * config/aarch64/iterators.md (REVERSE): New iterator.
9950         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
9951         (rev_op): New int_attribute.
9952         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
9953         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
9954         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
9955         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
9956         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
9957         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
9958         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
9959         Replace temporary __asm__ with __builtin_shuffle.
9961 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
9963         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
9964         mips64r5.
9965         * config/mips/mips-tables.opt: Regenerate.
9966         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
9967         to use mips_isa_rev rather than ISA_MIPS32R2.
9968         * config/mips/mips.h (ISA_MIPS32R3): New define.
9969         (ISA_MIPS32R5): New define.
9970         (ISA_MIPS64R3): New define.
9971         (ISA_MIPS64R5): New define.
9972         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
9973         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
9974         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
9975         and mips64r5.
9976         (MIPS_ISA_SYNCI_SPEC): Likewise.
9977         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
9978         (LINK_SPEC): Added mips32r3 and mips32r5.
9979         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
9980         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
9981         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
9982         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
9983         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
9984         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
9985         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
9987 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
9989         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
9990         options.
9991         * config/mips/mips.opt (mxpa): New option.
9992         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
9993         assembler.
9995 2014-06-03  Martin Jambor  <mjambor@suse.cz>
9997         PR ipa/61160
9998         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
9999         thunks.
10001 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10003         PR tree-optimization/61328
10004         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
10005         initialization from find_bswap_or_nop_1.
10006         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
10007         in source_expr2 before using the size value the function sets. Also
10008         make use of init_symbolic_number () in both the old place and
10009         find_bswap_or_nop_load () to avoid reading uninitialized memory when
10010         doing recursion in the GIMPLE_BINARY_RHS case.
10012 2014-06-03  Richard Biener  <rguenther@suse.de>
10014         PR tree-optimization/61383
10015         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
10016         stmts can't trap.
10018 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
10020         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
10021         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
10022         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
10023         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
10024         in this file.
10025         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
10026         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
10027         * system.h: ...here and make it unconditional.
10028         * target.def (conditional_register_usage): Mention
10029         define_register_constraint instead of old-style constraint macros.
10030         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
10031         * doc/tm.texi: Regenerate.
10032         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
10033         protected by !USE_MD_CONSTRAINTS.
10034         * config/frv/frv.md: Remove quote from old version of documentation.
10035         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
10036         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
10037         CONST_DOUBLE_OK_FOR_LETTER.
10038         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
10040 2014-06-02  Andrew Pinski  <apinski@cavium.com>
10042         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
10043         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
10044         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
10045         file whose name depends on -mabi= and -mbig-endian.
10046         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
10047         Handle LP64 better and handle ilp32 too.
10048         (MULTILIB_OPTIONS): Delete.
10049         (MULTILIB_DIRNAMES): Delete.
10051 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
10053         * expr.h: Remove prototypes of functions defined in builtins.c.
10054         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
10055         Remove prototypes of functions defined in builtins.c.
10056         * builtins.h: Update prototype list to include all exported functions.
10057         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
10058         no_c99_libc_has_function): Move to targhooks.c
10059         (build_string_literal, build_call_expr_loc_array,
10060         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
10061         to tree.c.
10062         (expand_builtin_object_size, fold_builtin_object_size): Make static.
10063         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
10064         no_c99_libc_has_function): Relocate from builtins.c.
10065         * tree.c: Include builtins.h.
10066         (build_call_expr_loc_array, build_call_expr_loc_vec,
10067         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
10068         from builtins.c.
10069         * fold-const.h (fold_fma): Move prototype to builtins.h.
10070         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
10071         * asan.c: Include builtins.h.
10072         * cfgexpand.c: Likewise.
10073         * convert.c: Likewise.
10074         * emit-rtl.c: Likewise.
10075         * except.c: Likewise.
10076         * expr.c: Likewise.
10077         * fold-const.c: Likewise.
10078         * gimple-fold.c: Likewise.
10079         * gimple-ssa-strength-reduction.c: Likewise.
10080         * gimplify.c: Likewise.
10081         * ipa-inline.c: Likewise.
10082         * ipa-prop.c: Likewise.
10083         * lto-streamer-out.c: Likewise.
10084         * stmt.c: Likewise.
10085         * tree-inline.c: Likewise.
10086         * tree-object-size.c: Likewise.
10087         * tree-sra.c: Likewise.
10088         * tree-ssa-ccp.c: Likewise.
10089         * tree-ssa-forwprop.c: Likewise.
10090         * tree-ssa-loop-ivcanon.c: Likewise.
10091         * tree-ssa-loop-ivopts.c: Likewise.
10092         * tree-ssa-math-opts.c: Likewise.
10093         * tree-ssa-reassoc.c: Likewise.
10094         * tree-ssa-threadedge.c: Likewise.
10095         * tree-streamer-in.c: Likewise.
10096         * tree-vect-data-refs.c: Likewise.
10097         * tree-vect-patterns.c: Likewise.
10098         * tree-vect-stmts.c: Likewise.
10099         * config/aarch64/aarch64.c: Likewise.
10100         * config/alpha/alpha.c: Likewise.
10101         * config/arc/arc.c: Likewise.
10102         * config/arm/arm.c: Likewise.
10103         * config/avr/avr.c: Likewise.
10104         * config/bfin/bfin.c: Likewise.
10105         * config/c6x/c6x.c: Likewise.
10106         * config/cr16/cr16.c: Likewise.
10107         * config/cris/cris.c: Likewise.
10108         * config/epiphany/epiphany.c: Likewise.
10109         * config/fr30/fr30.c: Likewise.
10110         * config/frv/frv.c: Likewise.
10111         * config/h8300/h8300.c: Likewise.
10112         * config/i386/i386.c: Likewise.
10113         * config/i386/winnt.c: Likewise.
10114         * config/ia64/ia64.c: Likewise.
10115         * config/iq2000/iq2000.c: Likewise.
10116         * config/lm32/lm32.c: Likewise.
10117         * config/m32c/m32c.c: Likewise.
10118         * config/m32r/m32r.c: Likewise.
10119         * config/m68k/m68k.c: Likewise.
10120         * config/mcore/mcore.c: Likewise.
10121         * config/mep/mep.c: Likewise.
10122         * config/microblaze/microblaze.c: Likewise.
10123         * config/mips/mips.c: Likewise.
10124         * config/mmix/mmix.c: Likewise.
10125         * config/mn10300/mn10300.c: Likewise.
10126         * config/moxie/moxie.c: Likewise.
10127         * config/msp430/msp430.c: Likewise.
10128         * config/nds32/nds32.c: Likewise.
10129         * config/pa/pa.c: Likewise.
10130         * config/pdp11/pdp11.c: Likewise.
10131         * config/picochip/picochip.c: Likewise.
10132         * config/rl78/rl78.c: Likewise.
10133         * config/rs6000/rs6000.c: Likewise.
10134         * config/rx/rx.c: Likewise.
10135         * config/s390/s390.c: Likewise.
10136         * config/score/score.c: Likewise.
10137         * config/sh/sh.c: Likewise.
10138         * config/sparc/sparc.c: Likewise.
10139         * config/spu/spu.c: Likewise.
10140         * config/stormy16/stormy16.c: Likewise.
10141         * config/tilegx/tilegx.c: Likewise.
10142         * config/tilepro/tilepro.c: Likewise.
10143         * config/v850/v850.c: Likewise.
10144         * config/vax/vax.c: Likewise.
10145         * config/xtensa/xtensa.c: Likewise.
10147 2014-06-02  Jeff Law  <law@redhat.com>
10149         PR rtl-optimization/61094
10150         * ree.c (combine_reaching_defs): Do not reextend an insn if it
10151         was marked as do_no_reextend.  If a copy is needed to eliminate
10152         an extension, then mark it as do_not_reextend.
10154 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10156         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
10158 2014-06-02  Richard Henderson  <rth@redhat.com>
10160         PR target/61336
10161         * config/alpha/alpha.c (print_operand_address): Allow symbolic
10162         addresses inside asms.  Use output_operand_lossage instead of
10163         gcc_unreachable.
10165 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
10167         PR target/61239
10168         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
10169         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
10171 2014-06-02  Tom de Vries  <tom@codesourcery.com>
10173         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
10174         case that x has VOIDmode.
10176 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
10178         * varasm.c (copy_constant): Delete function.
10179         (build_constant_desc): Don't call it.
10181 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10183         PR target/61154
10184         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
10185         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
10186         with immediate_operand.
10188 2014-06-02  Andreas Schwab  <schwab@suse.de>
10190         * config/ia64/ia64.c
10191         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
10192         pending_data_specs first.
10194 2014-06-02  Richard Biener  <rguenther@suse.de>
10196         PR tree-optimization/61378
10197         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
10198         valueized_anything.
10200 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
10202         * config/i386/constraints.md (Bw): Rename from 'w'.
10203         (Bz): Rename from 'z'.
10204         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
10206 2014-06-01  Kai Tietz  <ktietz@redhat.com>
10208         PR target/61377
10209         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
10210         * config/i386/i386.md (sibcall_insn_operand): Use Bs
10211         instead of m constraint.
10213 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
10215         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
10216         a separate alternative where the scratch operand 2 is marked as
10217         early clobber.
10219 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
10221         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
10222         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
10223         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
10224         and __builtins_arm_get_fpscr.
10225         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
10226         __builtins_arm_get_fpscr.
10227         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
10228         __builtins_arm_ldfpscr.
10229         (arm_atomic_assign_expand_fenv): New function.
10230         * config/arm/vfp.md (set_fpscr): New pattern.
10231         (get_fpscr) : Likewise.
10232         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
10233         VUNSPEC_SET_FPSCR.
10234         * doc/extend.texi (AARCH64 Built-in Functions) : Document
10235         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
10237 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
10239         * asan.c (report_error_func): Add SLOW_P argument, use
10240         BUILT_IN_ASAN_*_N if set.
10241         (build_check_stmt): Likewise.
10242         (instrument_derefs): If T has insufficient alignment,
10243         force same handling as for odd sizes.
10245         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
10246         BUILT_IN_ASAN_REPORT_STORE_N): New.
10247         * asan.c (struct asan_mem_ref): Change access_size type to
10248         HOST_WIDE_INT.
10249         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
10250         update_mem_ref_hash_table): Likewise.
10251         (asan_mem_ref_hasher::hash): Hash in a HWI.
10252         (report_error_func): Change size_in_bytes argument to HWI.
10253         Use *_N builtins if size_in_bytes is larger than 16 or not power of
10254         two.
10255         (build_shadow_mem_access): New function.
10256         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
10257         Handle size_in_bytes not power of two or larger than 16.
10258         (instrument_derefs): Don't give up if size_in_bytes is not
10259         power of two or is larger than 16.
10261 2014-05-30  Kai Tietz  <ktietz@redhat.com>
10263         PR target/60104
10264         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
10265         for sibling-tail-calls.
10266         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
10267         to its use.
10268         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
10269         (sibcall_insn_operand): Add check for sibcall_memory_operand.
10271 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10273         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
10274         * config/avr/avr-tables.opt: Regenerate.
10275         * config/avr/t-multilib: Regenerate.
10276         * doc/avr-mmcu.texi: Regenerate.
10278 2014-05-30  Ian Lance Taylor  <iant@google.com>
10280         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
10281         target("sse").
10283 2014-05-30  Tom de Vries  <tom@codesourcery.com>
10285         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
10286         Redefine as true.
10288 2014-05-30  Tom de Vries  <tom@codesourcery.com>
10290         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
10291         * lra.c (initialize_lra_reg_info_element): Add init of
10292         actual_call_used_reg_set field.
10293         (lra): Call lra_create_live_ranges before lra_inheritance for
10294         -fuse-caller-save.
10295         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
10296         -fuse-caller-save.
10297         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
10298         instead of call_used_reg_set for -fuse-caller-save.
10299         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
10301 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10303         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
10304         to mov_imm.
10305         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
10307 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
10309         * ira.c (ira_get_dup_out_num): Check for output operands at
10310         the start of the loop.  Handle cases where an included alternative
10311         follows an excluded one.
10313 2014-05-29  Mike Stump  <mikestump@comcast.net>
10315         PR debug/61352
10316         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
10317         post ld passes when lto is used.
10319 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
10321         PR rtl-optimization/61325
10322         * lra-constraints.c (process_address): Rename to process_address_1.
10323         (process_address): New function.
10325 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
10327         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
10328         TYPES_BINOPV): New static data.
10329         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
10330         New builtin.
10331         * config/aarch64/aarch64-simd.md (aarch64_ext,
10332         aarch64_im_lane_boundsi): New patterns.
10333         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
10334         patterns for EXT.
10335         (aarch64_evpc_ext): New function.
10337         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
10339         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
10340         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
10341         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
10342         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
10343         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
10345 2014-05-29  Tom de Vries  <tom@codesourcery.com>
10347         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
10349 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
10350             Richard Sandiford  <rdsandiford@googlemail.com>
10352         * arm/iterators.md (shiftable_ops): New code iterator.
10353         (t2_binop0, arith_shift_insn): New code attributes.
10354         * arm/predicates.md (shift_nomul_operator): New predicate.
10355         * arm/arm.md (insn_enabled): Delete.
10356         (enabled): Remove insn_enabled test.
10357         (*arith_shiftsi): Delete.  Replace with ...
10358         (*<arith_shift_insn>_multsi): ... new pattern.
10359         (*<arith_shift_insn>_shiftsi): ... new pattern.
10360         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
10362 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
10363             Tom de Vries  <tom@codesourcery.com>
10365         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
10366         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
10367         clobber.
10368         (mips_split_call): Use POST_CALL_TMP_REG.
10369         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
10371 2014-05-29  Tom de Vries  <tom@codesourcery.com>
10373         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
10374         with #ifdef STACK_REGS.
10376 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
10378         * varasm.c (get_variable_section): Walk aliases.
10379         (place_block_symbol): Walk aliases.
10381 2014-05-28  Tom de Vries  <tom@codesourcery.com>
10383         Revert:
10384         2014-05-28  Tom de Vries  <tom@codesourcery.com>
10386         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
10387         * lra.c (initialize_lra_reg_info_element): Add init of
10388         actual_call_used_reg_set field.
10389         (lra): Call lra_create_live_ranges before lra_inheritance for
10390         -fuse-caller-save.
10391         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
10392         -fuse-caller-save.
10393         * lra-constraints.c (need_for_call_save_p): Use
10394         actual_call_used_reg_set instead of call_used_reg_set for
10395         -fuse-caller-save.
10396         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
10398 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
10400         * doc/md.texi: Document that the % constraint character must
10401         be at the beginning of the string.
10402         * genoutput.c (validate_insn_alternatives): Check that '=',
10403         '+' and '%' only appear at the beginning of a constraint.
10404         * ira.c (commutative_constraint_p): Delete.
10405         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
10406         at the start of the string.
10407         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
10408         duplicate '='s.
10409         * config/arm/neon.md (bicdi3_neon): Likewise.
10410         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
10411         (slt_si, sltu_si): Likewise.
10412         * config/vax/vax.md (sbcdi3): Likewise.
10413         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
10414         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
10415         (mul64): Move '%' to beginning of constraint.
10416         * config/arm/arm.md (*xordi3_insn): Likewise.
10417         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
10418         (xorsi3): Likewise.
10420 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
10422         * doc/md.texi: Document the restrictions on the "enabled" attribute.
10424 2014-05-28  Jason Merrill  <jason@redhat.com>
10426         PR c++/47202
10427         * cgraph.h (symtab_node::get_comdat_group_id): New.
10428         * cgraphunit.c (analyze_functions): Call it.
10429         * symtab.c (dump_symtab_node): Likewise.
10430         * tree.c (decl_comdat_group_id): New.
10431         * tree.h: Declare it.
10432         * lto-streamer-out.c (write_symbol): Use it.
10433         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
10435 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10437         PR bootstrap/PR61146
10438         * wide-int.cc: Do not include longlong.h when compiling with clang.
10440 2014-05-28  Richard Biener  <rguenther@suse.de>
10442         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
10443         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
10444         (vrp_visit_assignment_or_call): Print less vertical space.
10445         (vrp_visit_stmt): Likewise.
10446         (vrp_visit_phi_node): Likewise.  For a PHI argument with
10447         VR_VARYING range consider recording it as copy.
10449 2014-05-28  Richard Biener  <rguenther@suse.de>
10451         Revert
10452         2014-05-28  Richard Biener  <rguenther@suse.de>
10454         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
10456 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10458         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
10459         sufficiently aligned and an offset is used at the same time.
10460         (expand_expr_real_1): Likewise.
10462 2014-05-28  Richard Biener  <rguenther@suse.de>
10464         PR middle-end/61045
10465         * fold-const.c (fold_comparison): When folding
10466         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
10467         the sign of the remaining constant operand stays the same.
10469 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
10471         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
10472         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
10473         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
10474         to the assembler.
10475         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
10476         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
10477         (m32bit-doubles) Likewise.
10478         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
10479         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
10480         option for RL78.
10482 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10484         * configure.ac ($gcc_cv_ld_clearcap): New test.
10485         * configure: Regenerate.
10486         * config.in: Regenerate.
10487         * config/sol2.opt (mclear-hwcap): New option.
10488         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
10489         * config/sol2-clearcap.map: Moved here from
10490         testsuite/gcc.target/i386/clearcap.map.
10491         * config/sol2-clearcapv2.map: Move here from
10492         gcc.target/i386/clearcapv2.map.
10493         * config/t-sol2 (install): Depend on install-clearcap-map.
10494         (install-clearcap-map): New target.
10495         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
10496         -mclear-hwcap.
10498 2014-05-28  Richard Biener  <rguenther@suse.de>
10500         * hwint.h (*_HALF_WIDE_INT*): Move to ...
10501         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
10502         ... here and remove the rest.
10503         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
10505 2014-05-28  Richard Biener  <rguenther@suse.de>
10507         PR tree-optimization/61335
10508         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
10509         new range fails, drop to varying.
10511 2014-05-28  Olivier Hainque  <hainque@adacore.com>
10513         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
10514         (CPP_SPEC): Add entry for -mcpu=8548.
10515         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
10516         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
10518 2014-05-28  Tom de Vries  <tom@codesourcery.com>
10520         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
10521         * lra.c (initialize_lra_reg_info_element): Add init of
10522         actual_call_used_reg_set field.
10523         (lra): Call lra_create_live_ranges before lra_inheritance for
10524         -fuse-caller-save.
10525         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
10526         -fuse-caller-save.
10527         * lra-constraints.c (need_for_call_save_p): Use
10528         actual_call_used_reg_set instead of call_used_reg_set for
10529         -fuse-caller-save.
10530         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
10532 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
10533             Tom de Vries  <tom@codesourcery.com>
10535         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
10536         to gccoptlist.
10537         (@item -fuse-caller-save): New item.
10539 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
10540             Tom de Vries  <tom@codesourcery.com>
10542         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
10543         OPT_fuse_caller_save.
10545 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
10546             Tom de Vries  <tom@codesourcery.com>
10548         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
10549         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
10550         get_call_reg_set_usage.
10551         * resource.c (mark_set_resources, mark_target_live_regs): Use
10552         get_call_reg_set_usage.
10553         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
10554         field.
10555         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
10556         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
10557         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10558         * ira-build.c (ira_create_allocno): Init
10559         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10560         (create_cap_allocno, propagate_allocno_info)
10561         (propagate_some_info_from_allocno)
10562         (copy_info_to_removed_store_destinations): Handle
10563         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10564         * ira-costs.c (ira_tune_allocno_costs): Use
10565         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
10567 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
10568             Tom de Vries  <tom@codesourcery.com>
10570         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
10571         and function_used_regs_valid fields.
10572         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
10573         find_all_hard_reg_sets.
10574         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
10575         (get_call_reg_set_usage): New function.
10576         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
10577         * regs.h (get_call_reg_set_usage): Declare.
10579 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
10581         PR libgcc/61152
10582         * config/dbx.h (License): Add Runtime Library Exception.
10583         * config/newlib-stdint.h (License): Same.
10584         * config/rtems.h (License): Same
10585         * config/initfini-array.h (License): Same
10586         * config/v850/v850.h (License): Same.
10587         * config/v850/v850-opts.h (License): Same
10588         * config/v850/rtems.h (License): Same.
10590 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
10592         PR target/61044
10593         * doc/extend.texi (Local Labels): Note that label differences are
10594         not supported for AVR.
10596 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
10597             Olivier Hainque  <hainque@adacore.com>
10599         * rtl.h (set_for_reg_notes): Declare.
10600         * emit-rtl.c (set_for_reg_notes): New function.
10601         (set_unique_reg_note): Use it.
10602         * optabs.c (add_equal_note): Likewise
10604 2014-05-27  Andrew Pinski  <apinski@cavium.com>
10606         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
10607         Use <w> for the register in assembly template.
10608         (stack_protect_test): Use the mode of operands[0] for the result.
10609         (stack_protect_test_<mode>): Use <w> for the register
10610         in assembly template.
10612 2014-05-27  DJ Delorie  <dj@redhat.com>
10614         * config/rx/rx.c (add_vector_labels): New.
10615         (rx_output_function_prologue): Call it.
10616         (rx_handle_func_attribute): Don't require empty arguments.
10617         (rx_handle_vector_attribute): New.
10618         (rx_attribute_table): Add "vector" attribute.
10619         * doc/extend.texi (interrupt, vector): Document new/changed
10620         RX-specific attributes.
10622         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
10624 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
10626         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
10627         predicate to detect a negative quotient.
10629 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
10631         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
10632         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
10633         Add X - Y CMP 0 to X CMP Y transformation.
10634         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
10636 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
10638         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
10639         before printing.
10641 2014-05-27  Steve Ellcey  <sellcey@mips.com>
10643         * config/mips/mips.c: Add include of cgraph.h.
10645 2014-05-27  Richard Biener  <rguenther@suse.de>
10647         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
10649 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
10651         PR libgcc/61152
10652         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
10653         * config/arm/arm-cores.def (License): Same.
10654         * config/arm/arm-opts.h (License): Same.
10655         * config/arm/aout.h (License): Same.
10656         * config/arm/bpabi.h (License): Same.
10657         * config/arm/elf.h (License): Same.
10658         * config/arm/linux-elf.h (License): Same.
10659         * config/arm/linux-gas.h (License): Same.
10660         * config/arm/netbsd-elf.h (License): Same.
10661         * config/arm/uclinux-eabi.h (License): Same.
10662         * config/arm/uclinux-elf.h (License): Same.
10663         * config/arm/vxworks.h (License): Same.
10665 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10667         * config/arm/neon.md (neon_bswap<mode>): New pattern.
10668         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
10669         (arm_init_neon_builtins): Handle NEON_BSWAP.
10670         Define required type nodes.
10671         (arm_expand_neon_builtin): Handle NEON_BSWAP.
10672         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
10673         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
10674         * config/arm/iterators.md (VDQHSD): New mode iterator.
10676 2014-05-27  Richard Biener  <rguenther@suse.de>
10678         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
10679         Try using literal operands when comparing value-ranges failed.
10681 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
10683         * ira.c (commutative_operand): Adjust for change to recog_data.
10684         [Missing from previous commit.]
10686 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
10688         * system.h (TEST_BIT): New macro.
10689         * recog.h (alternative_mask): New type.
10690         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
10691         (recog_data_d): Replace alternative_enabled_p array with
10692         enabled_alternatives.
10693         (target_recog): New structure.
10694         (default_target_recog, this_target_recog): Declare.
10695         (get_enabled_alternatives, recog_init): Likewise.
10696         * recog.c (default_target_recog, this_target_recog): New variables.
10697         (get_enabled_alternatives): New function.
10698         (extract_insn): Use it.
10699         (recog_init): New function.
10700         (preprocess_constraints, constrain_operands): Adjust for change to
10701         recog_data.
10702         * postreload.c (reload_cse_simplify_operands): Likewise.
10703         * reload.c (find_reloads): Likewise.
10704         * ira-costs.c (record_reg_classes): Likewise.
10705         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
10706         all alternatives after a disabled one would be skipped.
10707         (ira_implicitly_set_insn_hard_regs): Likewise.
10708         * ira.c (ira_setup_alts): Adjust for change to recog_data.
10709         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
10710         with enabled_alternatives.
10711         * lra.c (free_insn_recog_data): Update accordingly.
10712         (lra_update_insn_recog_data): Likewise.
10713         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
10714         * lra-constraints.c (process_alt_operands): Likewise.  Handle
10715         only_alternative as part of the enabled mask.
10716         * target-globals.h (this_target_recog): Declare.
10717         (target_globals): Add a recog field.
10718         (restore_target_globals): Restore this_target_recog.
10719         * target-globals.c: Include recog.h.
10720         (default_target_globals): Initialize recog field.
10721         (save_target_globals): Likewise.
10722         * reginfo.c (reinit_regs): Call recog_init.
10723         * toplev.c (backend_init_target): Likewise.
10725 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
10727         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
10728         rather than any named insn's code.
10730 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
10732         PR libgcc/61152
10733         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
10734         * config/arm/arm-cores.def (License): Same.
10736 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
10738         * tree.h (decl_comdat_group): Declare.
10739         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
10740         * tree.c (decl_comdat_group): Here.
10742 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
10744         PR rtl-optimization/61222
10745         * combine.c (simplify_shift_const_1): When moving a PLUS outside
10746         the shift, truncate the PLUS operand to the result mode.
10748 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
10750         PR target/61271
10751         * config/i386/i386.c (ix86_rtx_costs)
10752         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
10753         Fix condition.
10755 2014-05-26  Martin Jambor  <mjambor@suse.cz>
10757         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
10758         subreg uses.
10760 2014-05-26  Richard Biener  <rguenther@suse.de>
10762         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
10763         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
10764         Provide specializations.
10765         (wi::int_traits <HOST_WIDE_INT>,
10766         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
10768 2014-05-26  Alan Modra  <amodra@gmail.com>
10770         PR target/61098
10771         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
10772         params and return a bool.  Remove dead code.  Update comment.
10773         Assert we have a const_int source.  Remove bogus code from
10774         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
10775         handling of constants > 2G and reg_equal note, from..
10776         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
10777         return value.  Update comment.  If we can, use a new pseudo
10778         for intermediate calculations.
10779         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
10780         prototype.
10781         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
10782         call to rs6000_emit_set_const in splitter.
10783         (movdi_internal64+2, +3): Likewise.
10785 2014-05-26  Richard Biener  <rguenther@suse.de>
10787         * system.h: Define __STDC_FORMAT_MACROS before
10788         including inttypes.h.
10789         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
10790         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
10791         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
10792         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
10793         HOST_WIDEST_INT_C): Remove.
10794         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
10795         if C99 inttypes.h is not available.
10796         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
10797         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
10798         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
10799         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
10800         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
10801         (struct output_info): Likewise.
10802         (print_statistics): Adjust.
10803         (dump_bitmap_statistics): Likewise.
10804         * bt-load.c (migrate_btr_defs): Print with PRId64.
10805         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
10806         (MAX_SAFE_MULTIPLIER): Adjust.
10807         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
10808         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
10809         dump_cgraph_node): Likewise.
10810         * final.c (dump_basic_block_info): Likewise.
10811         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
10812         * gcov.c (format_gcov): Likewise.
10813         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
10814         for calculation.
10815         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
10816         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
10817         (inline_small_functions, dump_overall_stats, dump_inline_stats):
10818         Use PRId64 for dumping.
10819         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
10820         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
10821         (add_allocno_hard_regs): Adjust.
10822         * loop-doloop.c (doloop_modify): Print using PRId64.
10823         * loop-iv.c (inverse): Compute in uint64_t.
10824         (determine_max_iter, iv_number_of_iterations): Likewise.
10825         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
10826         Print using PRId64.
10827         * lto-streamer-out.c (write_symbol): Use uint64_t.
10828         * mcf.c (CAP_INFINITY): Use int64_t maximum.
10829         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
10830         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
10831         * modulo-sched.c (const_iteration_count): Use int64_t.
10832         (sms_schedule): Dump using PRId64.
10833         * predict.c (dump_prediction): Likewise.
10834         * pretty-print.h (pp_widest_integer): Remove.
10835         * profile.c (get_working_sets, is_edge_inconsistent,
10836         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
10837         * tree-pretty-print.c (pp_double_int): Remove case handling
10838         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
10839         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
10840         and adjust users.
10841         (pass_optimize_bswap::execute): Remove restriction on hosts.
10842         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
10843         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
10844         * tree.c (widest_int_cst_value): Remove.
10845         * tree.h (widest_int_cst_value): Likewise.
10846         * value-prof.c (dump_histogram_value): Print using PRId64.
10847         * gengtype.c (main): Also inject int64_t.
10848         * ggc-page.c (struct max_alignment): Use int64_t.
10849         * alloc-pool.c (struct allocation_object_def): Likewise.
10850         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
10851         for computation.
10852         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
10853         * doc/tm.texi: Regenerated.
10854         * gengtype-lex.l (IWORD): Handle [u]int64_t.
10855         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
10856         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
10857         mmix_output_register_setting): Use [u]int64_t in prototypes.
10858         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
10859         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
10860         mmix_output_octa, mmix_output_shifted_value): Adjust.
10861         (mmix_intval): Adjust.  Remove unreachable case.
10862         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
10864 2014-05-26  Richard Biener  <rguenther@suse.de>
10866         * configure.ac: Drop __int64 type check.  Insist that we
10867         found uint64_t and int64_t.
10868         * hwint.h (HOST_BITS_PER___INT64): Remove.
10869         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
10870         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
10871         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
10872         (HOST_WIDEST_FAST_INT): Remove __int64 case.
10873         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
10874         for dst_q_src_df_rms_cdt.
10875         * configure: Regenerate.
10876         * config.in: Likewise.
10878 2014-05-26  Michael Tautschnig  <mt@debian.org>
10880         PR target/61249
10881         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
10882         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
10884 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
10886         PR rtl-optimization/61278
10887         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
10889 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
10891         PR rtl-optimization/61220
10892         Part of PR rtl-optimization/61225
10893         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
10894         insn; skip split_edge for a block with only one successor.
10896 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
10898         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
10899         for variables.
10901 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
10903         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
10904         (update_vtable_references): New function.
10905         (function_and_variable_visibility): Rewrite also vtable initializers.
10906         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
10908 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
10910         * ggc.h (ggc_grow): New function.
10911         * ggc-none.c (ggc_grow): New function.
10912         * ggc-page.c (ggc_grow): Likewise.
10914 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
10916         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
10917         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
10918         comdat_can_be_unshared_p, cgraph_externally_visible_p,
10919         varpool_externally_visible_p, can_replace_by_local_alias,
10920         update_visibility_by_resolution_info, function_and_variable_visibility,
10921         pass_data_ipa_function_and_variable_visibility,
10922         make_pass_ipa_function_and_variable_visibility,
10923         whole_program_function_and_variable_visibility,
10924         pass_data_ipa_whole_program_visibility,
10925         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
10926         * cgraph.h (cgraph_local_node_p): Declare.
10927         * ipa-visibility.c: New file.
10928         * Makefile.in (OBJS): Add ipa-visiblity.o
10930 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
10932         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
10933         that var decl is available.
10935 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
10937         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
10938         symtab_node pointer.
10939         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
10940         (find_decls_types_r): Do not walk COMDAT_GROUP.
10941         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
10942         * varasm.c (make_decl_one_only): Use set_comdat_group;
10943         create node if needed.
10944         * ipa-inline-transform.c (save_inline_function_body): Update
10945         way we decl->symtab mapping.
10946         * symtab.c (symtab_hash, hash_node, eq_node
10947         symtab_insert_node_to_hashtable): Remove.
10948         (symtab_register_node): Update.
10949         (symtab_unregister_node): Update.
10950         (symtab_get_node): Reimplement as inline function.
10951         (symtab_add_to_same_comdat_group): Update.
10952         (symtab_dissolve_same_comdat_group_list): Update.
10953         (dump_symtab_base): Update.
10954         (verify_symtab_base): Update.
10955         (symtab_make_decl_local): Update.
10956         (fixup_same_cpp_alias_visibility): Update.
10957         (symtab_nonoverwritable_alias): Update.
10958         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
10959         * ipa.c (update_visibility_by_resolution_info): UPdate.
10960         * bb-reorder.c: Include cgraph.h
10961         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
10962         with comdat groups.
10963         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
10964         * cgraph.c (cgraph_get_create_node): Update.
10965         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
10966         and comdat_group_.
10967         (symtab_get_node): Make inline.
10968         (symtab_insert_node_to_hashtable): Remove.
10969         (symtab_can_be_discarded): Update.
10970         (decl_comdat_group): New function.
10971         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
10972         Update.
10973         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
10974         comdat group name.
10975         (read_comdat_group): New function.
10976         (input_node, input_varpool_node): Use it.
10977         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
10978         comdat groups.
10979         * mips.c (mips_start_unique_function): Likewise.
10980         (ix86_code_end): Likewise.
10981         (rs6000_code_end): Likweise.
10982         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
10984 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
10986         * gengtype-state.c (fatal_reading_state): Bring offline.
10987         * optabs.c (widening_optab_handler): Bring offline.
10988         * optabs.h (widening_optab_handler): Likewise.
10989         * final.c (get_attr_length_1): Likewise.
10991 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
10993         * sched-int.h (sd_iterator_cond): Manually tail recurse.
10995 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
10997         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
10998         (ppc440-compare): Include shift with dot.
10999         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
11000         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
11001         without dot.
11002         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
11003         without dot.
11004         (e6500_sfx2): Include it.
11005         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
11006         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
11007         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
11008         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
11009         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
11010         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
11011         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
11012         *lshiftrt_internal1le, *lshiftrt_internal1be,
11013         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
11014         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
11015         *rotldi3_internal10le, *rotldi3_internal10be,
11016         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
11017         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
11018         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
11019         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
11020         define_insns): Use type "shift" in the appropriate alternatives.
11022 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
11024         * config/rs6000/rs6000.md (type): Add "logical".  Delete
11025         "fast_compare".
11026         (dot): Adjust comment.
11027         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
11028         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
11029         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
11030         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
11031         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
11032         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
11033         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
11034         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
11036         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
11037         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
11038         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
11039         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
11040         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
11041         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
11042         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
11043         * config/rs6000/8540.md (ppc8540_su): Adjust.
11044         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
11045         cell-cmp-microcoded): Adjust.
11046         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
11047         * config/rs6000/e500mc.md (e500mc_su): Adjust.
11048         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
11049         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
11050         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
11051         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
11052         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
11053         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
11054         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
11055         Adjust.
11056         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
11057         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
11058         Adjust.  Adjust comment.
11059         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
11060         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
11062 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
11064         * config/rs6000/rs6000.md (type): Add "add".
11065         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
11066         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
11067         define_insns): Use it.
11068         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
11070         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
11071         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
11072         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
11073         * config/rs6000/601.md (ppc601-integer): Adjust.
11074         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
11075         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
11076         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
11077         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
11078         * config/rs6000/8540.md (ppc8540_su): Adjust.
11079         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
11080         cell-cmp-microcoded): Adjust.
11081         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
11082         * config/rs6000/e500mc.md (e500mc_su): Adjust.
11083         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
11084         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
11085         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
11086         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
11087         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
11088         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
11089         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
11090         Adjust.
11091         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
11092         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
11093         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
11094         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
11096 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
11098         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
11099         "delayed_compare", "var_delayed_compare".
11100         (var_shift): New attribute.
11101         (cell_micro): Adjust.
11102         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
11103         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
11104         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
11105         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11106         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11107         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11108         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11109         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
11110         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
11111         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
11112         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
11113         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
11114         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
11115         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
11116         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
11117         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
11118         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
11119         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
11120         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
11121         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
11122         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
11123         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
11124         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
11125         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
11126         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
11128         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
11129         * config/rs6000/440.md (ppc440-integer): Adjust.
11130         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
11131         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
11132         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
11133         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
11134         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
11135         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
11136         * config/rs6000/8540.md (ppc8540_su): Adjust.
11137         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
11138         cell-cmp-microcoded): Adjust.
11139         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
11140         * config/rs6000/e500mc.md (e500mc_su): Adjust.
11141         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
11142         e500mc64_delayed): Adjust.
11143         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
11144         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
11145         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
11146         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
11147         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
11148         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
11149         power6-delayed-compare, power6-var-delayed-compare): Adjust.
11150         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
11151         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
11152         Adjust comment.
11153         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
11154         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
11156 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
11158         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
11159         (bits): New mode_attr.
11160         (idiv_ldiv): Delete mode_attr.
11161         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
11162         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
11163         rs6000_adjust_priority, is_nonpipeline_insn,
11164         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
11166         * config/rs6000/40x.md (ppc403-idiv): Adjust.
11167         * config/rs6000/440.md (ppc440-idiv): Adjust.
11168         * config/rs6000/476.md (ppc476-idiv): Adjust.
11169         * config/rs6000/601.md (ppc601-idiv): Adjust.
11170         * config/rs6000/603.md (ppc603-idiv): Adjust.
11171         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
11172         ppc620-ldiv): Adjust.
11173         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
11174         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
11175         * config/rs6000/8540.md (ppc8540_divide): Adjust.
11176         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
11177         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
11178         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
11179         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
11180         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
11181         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
11182         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
11183         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
11184         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
11185         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
11186         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
11187         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
11188         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
11189         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
11190         * config/rs6000/titan.md (titan_fxu_div): Adjust.
11192 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
11194         * config/rs6000/rs6000.md (type): Delete "insert_word",
11195         "insert_dword".  Add "insert".
11196         (size): Update comment.
11197         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
11198         insn_must_be_first_in_group): Adjust.
11199         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
11200         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
11201         *insvsi_internal6, insvdi_internal): Adjust.
11203         * config/rs6000/40x.md (ppc403-integer): Adjust.
11204         * config/rs6000/440.md (ppc440-integer): Adjust.
11205         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
11206         * config/rs6000/601.md (ppc601-integer): Adjust.
11207         * config/rs6000/603.md (ppc603-integer): Adjust.
11208         * config/rs6000/6xx.md (ppc604-integer): Adjust.
11209         * config/rs6000/7450.md (ppc7450-integer): Adjust.
11210         * config/rs6000/7xx.md (ppc750-integer): Adjust.
11211         * config/rs6000/8540.md (ppc8540_su): Adjust.
11212         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
11213         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
11214         * config/rs6000/e500mc.md (e500mc_su): Adjust.
11215         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
11216         * config/rs6000/e5500.md (e5500_sfx): Adjust.
11217         * config/rs6000/e6500.md (e6500_sfx): Adjust.
11218         * config/rs6000/mpc.md (mpccore-integer): Adjust.
11219         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
11220         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
11221         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
11222         * config/rs6000/power7.md (power7-integer): Adjust.
11223         * config/rs6000/power8.md (power8-1cyc): Adjust.
11224         * config/rs6000/rs64.md (rs64a-integer): Adjust.
11225         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
11227 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
11229         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
11230         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
11231         (size): New attribute.
11232         (dot): New attribute.
11233         (cell_micro): Adjust.
11234         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
11235         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
11236         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
11237         umuldi3_highpart): Adjust.
11238         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
11239         rs6000_adjust_priority, is_nonpipeline_insn,
11240         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
11242         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
11243         ppc405-imul3): Adjust.
11244         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
11245         * config/rs6000/476.md (ppc476-imul): Adjust.
11246         * config/rs6000/601.md (ppc601-imul): Adjust.
11247         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
11248         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
11249         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
11250         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
11251         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
11252         Adjust.
11253         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
11254         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
11255         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
11256         cell-imul): Adjust.
11257         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
11258         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
11259         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
11260         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
11261         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
11262         * config/rs6000/mpc.md (mpccore-imul): Adjust.
11263         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
11264         power4-lmul, power4-imul, power4-imul3): Adjust.
11265         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
11266         power5-lmul, power5-imul, power5-imul3): Adjust.
11267         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
11268         power6-lmul, power6-imul, power6-imul3): Adjust.
11269         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
11270         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
11272         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
11273         rs64a-lmul): Adjust.
11274         * config/rs6000/titan.md (titan_imul): Adjust.
11276 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
11278         * config/rs6000/rs6000.md (type): Add new value "halfmul".
11279         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
11280         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
11281         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
11282         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
11283         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
11284         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
11285         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
11286         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
11287         * config/rs6000/titan.md: Delete nonsensical comment.
11288         (titan_imul): Add type imul3.
11289         (titan_mulhw): Remove type imul3; add type halfmul.
11291 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
11293         * config/rs6000/rs6000.md (type): Reorder, reformat.
11295 2014-05-23  Martin Jambor  <mjambor@suse.cz>
11297         PR tree-optimization/53787
11298         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
11299         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
11300         analysis_done, update all uses.
11301         * ipa-prop.c: Include domwalk.h
11302         (param_analysis_info): Removed.
11303         (param_aa_status): New type.
11304         (ipa_bb_info): Likewise.
11305         (func_body_info): Likewise.
11306         (ipa_get_bb_info): New function.
11307         (aa_overwalked): Likewise.
11308         (find_dominating_aa_status): Likewise.
11309         (parm_bb_aa_status_for_bb): Likewise.
11310         (parm_preserved_before_stmt_p): Changed to use new param AA info.
11311         (load_from_unmodified_param): Accept func_body_info as a parameter
11312         instead of parms_ainfo.
11313         (parm_ref_data_preserved_p): Changed to use new param AA info.
11314         (parm_ref_data_pass_through_p): Likewise.
11315         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
11316         (compute_complex_assign_jump_func): Changed to use new param AA info.
11317         (compute_complex_ancestor_jump_func): Likewise.
11318         (ipa_compute_jump_functions_for_edge): Likewise.
11319         (ipa_compute_jump_functions): Removed.
11320         (ipa_compute_jump_functions_for_bb): New function.
11321         (ipa_analyze_indirect_call_uses): Likewise, moved variable
11322         declarations down.
11323         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
11324         and info, moved variable declarations down.
11325         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
11326         node and info.
11327         (ipa_analyze_stmt_uses): Likewise.
11328         (ipa_analyze_params_uses): Removed.
11329         (ipa_analyze_params_uses_in_bb): New function.
11330         (ipa_analyze_controlled_uses): Likewise.
11331         (free_ipa_bb_info): Likewise.
11332         (analysis_dom_walker): New class.
11333         (ipa_analyze_node): Handle node-specific forbidden analysis,
11334         initialize and free func_body_info, use dominator walker.
11335         (ipcp_modif_dom_walker): New class.
11336         (ipcp_transform_function): Create and free func_body_info, use
11337         ipcp_modif_dom_walker, moved a lot of functionality there.
11339 2014-05-23  Marek Polacek  <polacek@redhat.com>
11340             Jakub Jelinek  <jakub@redhat.com>
11342         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
11343         * gcc.c (sanitize_spec_function): Likewise.
11344         * convert.c (convert_to_integer): Include "ubsan.h".  Add
11345         floating-point to integer instrumentation.
11346         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
11347         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
11348         SANITIZE_NONDEFAULT.
11349         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
11350         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
11351         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
11352         * ubsan.c: Include "realmpfr.h" and "dfp.h".
11353         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
11354         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
11355         float/double/long double.
11356         (ubsan_instrument_float_cast): New function.
11357         * ubsan.h (ubsan_instrument_float_cast): Declare.
11359 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
11361         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
11362         predicate.
11363         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
11364         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
11365         Adjust for tailcalling through registers.
11366         * config/aarch64/aarch64.h (enum reg_class): New caller save
11367         register class.
11368         (REG_CLASS_NAMES): Likewise.
11369         (REG_CLASS_CONTENTS): Likewise.
11370         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
11371         Allow tailcalling without decls.
11373 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
11375         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
11376         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
11378         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
11379         gsi, and variables v_* to v*.
11381 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
11383         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
11385 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
11387         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
11388         * omp-low.c: Update accordingly.
11390         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
11391         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
11392         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
11393         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
11394         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
11395         GF_OMP_TARGET_KIND_UPDATE.
11397         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
11398         Explicitly enumerate the expected region types.
11400 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11402         PR other/56955
11403         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
11404         documentation; the old documentation didn't clearly state the
11405         constraints on the contents of the pointed-to storage.
11407 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11409         Fix bootstrap error on ia64
11410         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
11411         Return default value.
11413 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11415         PR tree-optimization/54733
11416         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
11417         (CMPNOP): Define.
11418         (find_bswap_or_nop_load): New.
11419         (find_bswap_1): Renamed to ...
11420         (find_bswap_or_nop_1): This. Also add support for memory source.
11421         (find_bswap): Renamed to ...
11422         (find_bswap_or_nop): This. Also add support for memory source and
11423         detection of bitwise operations equivalent to load in target
11424         endianness.
11425         (execute_optimize_bswap): Likewise. Also move its leading comment back
11426         in place and split statement transformation into ...
11427         (bswap_replace): This.
11429 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
11431         PR rtl-optimization/61215
11432         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
11433         simplify_gen_subreg until final substitution.
11435 2014-05-23  Alan Modra  <amodra@gmail.com>
11437         PR target/61231
11438         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
11439         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
11440         Use "Y" constraint rather than "m".
11442 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
11444         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
11445         define.
11446         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
11447         New function declaration.
11448         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
11449         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
11450         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
11451         (aarch64_init_builtins) : Initialize builtins
11452         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
11453         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
11454         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
11455         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
11456         and __builtins_aarch64_set_fpsr.
11457         (aarch64_atomic_assign_expand_fenv): New function.
11458         * config/aarch64/aarch64.md (set_fpcr): New pattern.
11459         (get_fpcr) : Likewise.
11460         (set_fpsr) : Likewise.
11461         (get_fpsr) : Likewise.
11462         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
11463          and UNSPECV_SET_FPSR.
11464         * doc/extend.texi (AARCH64 Built-in Functions) : Document
11465         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
11466         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
11468 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
11470         PR rtl-optimization/60969
11471         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
11472         constraints.  Set up mem cost for NO_REGS case.
11474 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
11476         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
11478 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
11480         * config/darwin.c: Include "lto-section-names.h".
11481         (LTO_SEGMENT_NAME): Don't define.
11482         * config/i386/winnt.c: Include "lto-section-names.h".
11483         * lto-streamer.c: Include "lto-section-names.h".
11484         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
11485         * lto-wrapper.c: Include "lto-section-names.h".
11486         (LTO_SECTION_NAME_PREFIX): Don't define.
11487         * lto-section-names.h: New file.
11488         * cgraphunit.c: Include "lto-section-names.h".
11490 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
11492         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
11494 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
11496         PR target/61208
11497         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
11499 2014-05-22  Nick Clifton  <nickc@redhat.com>
11501         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
11503 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
11505         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
11506         -> (T)A transformation to integer types.
11508 2014-05-22  Teresa Johnson  <tejohnson@google.com>
11510         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
11511         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
11512         (gcov_rewrite): Use gcov_nonruntime_assert.
11513         (gcov_open): Ditto.
11514         (gcov_write_words): Ditto.
11515         (gcov_write_length): Ditto.
11516         (gcov_read_words): Use gcov_nonruntime_assert, and remove
11517         gcc_assert from IN_LIBGCOV code.
11518         (gcov_read_summary): Use gcov_error to flag profile corruption.
11519         (gcov_sync): Use gcov_nonruntime_assert.
11520         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
11521         (gcov_histo_index): Use gcov_nonruntime_assert.
11522         (static void gcov_histogram_merge): Ditto.
11523         (compute_working_sets): Ditto.
11524         * gcov-io.h (gcov_nonruntime_assert): Define.
11525         (gcov_error): Define for !IN_LIBGCOV
11527 2014-05-22  Richard Biener  <rguenther@suse.de>
11529         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
11530         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
11531         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
11532         and deallocation site.
11533         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11534         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
11535         passing through the incoming points-to set.
11536         (handle_lhs_call): Use flags argument instead of recomputing it.
11537         (find_func_aliases_for_call): Call handle_lhs_call with proper
11538         call return flags.
11540 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
11542         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
11543         all padding bits in REAL_VALUE_TYPE are cleared.
11545 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11547         Cleanup and improve multipass_dfa_lookahead_guard
11548         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
11549         (core2i7_first_cycle_multipass_begin,)
11550         (core2i7_first_cycle_multipass_issue,)
11551         (core2i7_first_cycle_multipass_backtrack): Update signature.
11552         * config/ia64/ia64.c
11553         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
11554         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
11555         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
11556         hook definition.
11557         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
11558         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
11559         values.
11560         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
11561         return values.
11562         * doc/tm.texi: Regenerate.
11563         * doc/tm.texi.in
11564         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
11565         * haifa-sched.c (ready_try): Make signed to allow negative values.
11566         (rebug_ready_list_1): Update.
11567         (choose_ready): Simplify.
11568         (sched_extend_ready_list): Update.
11570 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11572         Remove IA64 speculation tweaking flags
11573         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
11574         speculation tuning flags.
11575         (msched-prefer-non-data-spec-insns,)
11576         (msched-prefer-non-control-spec-insns): Obsolete options.
11577         * haifa-sched.c (choose_ready): Remove handling of
11578         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
11579         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
11580         and PREFER_NON_DATA_SPEC.
11581         * sel-sched.c (process_spec_exprs): Remove handling of
11582         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
11584 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11586         Improve scheduling debug output
11587         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
11588         (advance_one_cycle): Update.
11589         (schedule_insn, queue_to_ready): Add debug printouts.
11590         (debug_ready_list_1): New static function.
11591         (debug_ready_list): Update.
11592         (max_issue): Add debug printouts.
11593         (dump_insn_stream): New static function.
11594         (schedule_block): Use it.  Also better indent printouts.
11596 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
11598         Fix sched_insn debug counter
11599         * haifa-sched.c (schedule_insn): Update.
11600         (struct haifa_saved_data): Add nonscheduled_insns_begin.
11601         (save_backtrack_point, restore_backtrack_point): Update.
11602         (first_nonscheduled_insn): New static function.
11603         (queue_to_ready, choose_ready): Use it.
11604         (schedule_block): Init nonscheduled_insns_begin.
11605         (sched_emit_insn): Update.
11608 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
11610         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
11611         to GENERAL_REGS.
11612         (aarch64_secondary_reload) : LikeWise.
11613         (aarch64_class_max_nregs) : Remove CORE_REGS.
11614         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
11615         (REG_CLASS_NAMES) : Likewise.
11616         (REG_CLASS_CONTENTS) : LikeWise.
11617         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
11619 2014-05-21  Guozhi Wei  <carrot@google.com>
11621         PR target/61202
11622         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
11623         constraint.
11624         (vqdmulhq_n_s16): Likewise.
11626 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
11628         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
11630 2014-05-21  Marek Polacek  <polacek@redhat.com>
11632         PR sanitizer/61272
11633         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
11635 2014-05-21  Martin Jambor  <mjambor@suse.cz>
11637         * doc/invoke.texi (Optimize Options): Document parameters
11638         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
11639         ipa-cp-array-index-hint-bonus.
11641 2014-05-21  Mark Wielaard  <mjw@redhat.com>
11643         PR debug/16063
11644         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
11645         version >= 3 or not strict DWARF.
11646         * langhooks.h (struct lang_hooks_for_types): Add
11647         enum_underlying_base_type.
11648         * langhooks.c (lhd_enum_underlying_base_type): New function.
11649         * gcc/langhooks.h (struct lang_hooks_for_types): Add
11650         enum_underlying_base_type.
11651         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
11652         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
11653         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
11655 2014-05-21  Richard Biener  <rguenther@suse.de>
11657         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
11659 2014-05-21  John Marino  <gnugcc@marino.st>
11661         * config.gcc (*-*-dragonfly*): New target.
11662         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
11663         * configure: Regenerate.
11664         * config/dragonfly-stdint.h: New.
11665         * config/dragonfly.h: New.
11666         * config/dragonfly.opt: New.
11667         * config/i386/dragonfly.h: New.
11668         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
11670 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
11672         * tree.def (VOID_CST): New.
11673         * tree-core.h (TI_VOID): New.
11674         * tree.h (void_node): New.
11675         * tree.c (tree_node_structure_for_code, tree_code_size)
11676         (iterative_hash_expr): Handle VOID_CST.
11677         (build_common_tree_nodes): Initialize void_node.
11679 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
11681         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
11682         functions.
11683         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
11685         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
11686         more places.
11688         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
11689         flag_reorder_blocks_and_partition.
11690         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
11692 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
11694         PR target/54236
11695         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
11696         constraints.
11697         (*addc_r_t): Add new insn_and_split.
11699 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
11701         PR middle-end/61252
11702         * omp-low.c (handle_simd_reference): New function.
11703         (lower_rec_input_clauses): Use it.  Defer adding reference
11704         initialization even for reduction without placeholder if in simd,
11705         handle it properly later on.
11707 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
11709         PR tree-optimization/60899
11710         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
11711         assume all static symbols will have definition wile parsing and
11712         check the do have definition later in compilation; check that
11713         variable referring symbol will be output before concluding that
11714         reference is safe; be conservative for referring local statics;
11715         be more precise about when comdat is output in other partition.
11717 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
11719         PR bootstrap/60984
11720         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
11721         parameter.
11722         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
11723         (ipa_inline): Loop inline_to_all_callers until no more aliases
11724         are removed.
11726 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
11728         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
11729         set writeonly flag only for vars actually written to.
11731 2014-05-20  Dehao Chen  <dehao@google.com>
11733         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
11734         and callee count to get clone count.
11735         * tree-inline.c (expand_call_inline): Use callee count instead of bb
11736         count in copy_body.
11738 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
11740         PR rtl-optimization/61243
11741         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
11743 2014-05-20  Xinliang David Li  <davidxl@google.com>
11745         * cgraphunit.c (walk_polymorphic_call_targets): Add
11746         dbgcnt and fopt-info support.
11747         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
11748         * ipa-devirt.c (ipa_devirt): Ditto.
11749         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
11750         * ipa.c (walk_polymorphic_call_targets): Ditto.
11751         * gimple-fold.c (fold_gimple_assign): Ditto.
11752         (gimple_fold_call): Ditto.
11753         * dbgcnt.def: New counter.
11755 2014-05-20  DJ Delorie  <dj@redhat.com>
11757         * config/msp430/msp430.md (split): Don't allow subregs when
11758         splitting SImode adds.
11759         (andneghi): Fix subtraction logic.
11760         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
11762 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
11764         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
11765         symbols.
11766         * except.c (switch_to_exception_section, resolve_unique_section,
11767         get_named_text_section, default_function_rodata_section,
11768         align_variable, get_block_for_decl, default_section_type_flags):
11769         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
11770         * symtab.c (symtab_add_to_same_comdat_group,
11771         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
11772         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
11773         Likewise.
11774         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
11775         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
11776         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
11777         (c6x_function_in_section_p): Likewise.
11778         * config/darwin.c (machopic_select_section): Likewise.
11779         * config/arm/arm.c (arm_function_in_section_p): Likewise.
11780         * config/mips/mips.c (mips_function_rodata_section): Likewise.
11781         * config/mep/mep.c (mep_select_section): LIkewise.
11782         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
11784 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
11786         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
11787         EH region of calls to pure functions that can throw an exception.
11788         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
11789         (copy_reference_ops_from_call): Also copy the EH region of the call if
11790         it can throw an exception.
11792 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11794         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
11795         nested VEC_SELECTs that are inverses of each other.
11797 2014-05-20  Richard Biener  <rguenther@suse.de>
11799         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
11800         (extract_and_process_scc_for_name): not here.
11801         (cond_dom_walker::before_dom_children): Only process
11802         stmts that end the BB in interesting ways.
11803         (run_scc_vn): Mark param uses as visited.
11805 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11807         * config/arm/arm.md (arith_shiftsi): Do not predicate for
11808         arm_restrict_it.
11810 2014-05-20  Nick Clifton  <nickc@redhat.com>
11812         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
11813         (msp430_gimplify_va_arg_expr): New function.
11814         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
11816         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
11817         operand 0 in order to prevent confusion about the number of
11818         registers involved.
11820 2014-05-20  Richard Biener  <rguenther@suse.de>
11822         PR tree-optimization/61221
11823         * tree-ssa-pre.c (el_to_update): Remove.
11824         (eliminate_dom_walker::before_dom_children): Handle released
11825         VDEFs by value-numbering them to the associated VUSE.  Update
11826         stmt immediately for substituted call address.
11827         (eliminate): Remove delayed stmt updating code.
11828         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
11829         possibly late re-numbered vuses.
11830         (vn_reference_lookup_2): Adjust.
11831         (vn_reference_lookup_pieces): Likewise.
11832         (vn_reference_lookup): Likewise.
11834 2014-05-20  Richard Biener  <rguenther@suse.de>
11836         * config.gcc: Remove need_64bit_hwint.
11837         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
11838         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
11839         it to be true.
11840         * config.in: Regenerate.
11841         * configure: Likewise.
11843 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
11845         * doc/extend.texi: Create Label Attributes section,
11846         move all label attributes into it and reference it.
11848 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
11850         * arm.c (thumb1_reorg): When scanning backwards skip anything
11851         that's not a proper insn.
11853 2014-05-19  Richard Biener  <rguenther@suse.de>
11855         PR tree-optimization/61221
11856         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11857         Do nothing for unreachable blocks.
11858         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
11859         Improve unreachability detection.
11861 2014-05-19  Richard Biener  <rguenther@suse.de>
11863         PR tree-optimization/61209
11864         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
11866 2014-05-19  Nick Clifton  <nickc@redhat.com>
11868         * except.c (init_eh): Fix computation of builtin setjmp buffer
11869         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
11871 2014-05-19  Richard Biener  <rguenther@suse.de>
11873         PR tree-optimization/61184
11874         * tree-vrp.c (is_negative_overflow_infinity): Use
11875         TREE_OVERFLOW_P and do that check first.
11876         (is_positive_overflow_infinity): Likewise.
11877         (is_overflow_infinity): Likewise.
11878         (vrp_operand_equal_p): Properly treat operands with
11879         differing overflow as not equal.
11881 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
11883         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
11884         shift simplification where it was intended.
11886 2014-05-19  Christian Bruel  <christian.bruel@st.com>
11888         PR target/61195
11889         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
11891 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
11893         PR target/61084
11894         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
11895         than wide_int.
11897 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
11899         * reg-notes.def (CROSSING_JUMP): Likewise.
11900         * rtl.h (rtx_def): Update comment for jump flag.
11901         (CROSSING_JUMP_P): Define.
11902         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
11903         of a REG_CROSSING_JUMP note.
11904         * cfghooks.c (tidy_fallthru_edges): Likewise.
11905         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
11906         * emit-rtl.c (try_split): Likewise.
11907         * haifa-sched.c (sched_create_recovery_edges): Likewise.
11908         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
11909         * jump.c (redirect_jump_2): Likewise.
11910         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
11911         (relax_delay_slots): Likewise.
11912         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
11913         (bbit_di): Likewise.
11914         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
11915         * config/sh/sh.md (jump_compact): Likewise.
11916         * bb-reorder.c (rotate_loop): Likewise.
11917         (pass_duplicate_computed_gotos::execute): Likewise.
11918         (add_reg_crossing_jump_notes): Rename to...
11919         (update_crossing_jump_flags): ...this.
11920         (pass_partition_blocks::execute): Update accordingly.
11922 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
11924         * tree.h: Remove extraneous template <>.
11926 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
11928         * ipa.c (symtab_remove_unreachable_nodes): Remove
11929         symbol from comdat group if its body was eliminated.
11930         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
11931         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
11932         (symtab_unregister_node): ... this one.
11933         (verify_symtab_base): More strict checking of comdats.
11934         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
11936 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
11938         * tree-pass.h (make_pass_ipa_comdats): New pass.
11939         * timevar.def (TV_IPA_COMDATS): New timevar.
11940         * passes.def (pass_ipa_comdats): Add.
11941         * Makefile.in (OBJS): Add ipa-comdats.o
11942         * ipa-comdats.c: New file.
11944 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
11946         * ipa.c (update_visibility_by_resolution_info): New function.
11947         (function_and_variable_visibility): Use it.
11949 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
11951         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
11952         New functions.
11953         (FOR_EACH_DEFINED_SYMBOL): New macro.
11954         (varpool_first_static_initializer, varpool_next_static_initializer,
11955         varpool_first_defined_variable, varpool_next_defined_variable):
11956         Fix comments.
11957         (symtab_in_same_comdat_p): Correctly deal with inline functions.
11959 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
11961         * ggc-page.c (ggc_handle_finalizers): Add comment.
11963 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
11965         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
11966         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
11967         (ggc_internal_cleared_alloc): Likewise.
11968         * ggc-page.c (finalizer): New class.
11969         (vec_finalizer): Likewise.
11970         (globals::finalizers): New member.
11971         (globals::vec_finalizers): Likewise.
11972         (ggc_internal_alloc): Record the finalizer if any for the block being
11973         allocated.
11974         (ggc_handle_finalizers): New function.
11975         (ggc_collect): Call ggc_handle_finalizers.
11976         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
11977         finalizer.
11978         (ggc_internal_cleared_alloc): Likewise.
11979         (finalize): New function.
11980         (need_finalization_p): Likewise.
11981         (ggc_alloc): Install the type's destructor as the finalizer if it
11982         might do something.
11983         (ggc_cleared_alloc): Likewise.
11984         (ggc_vec_alloc): Likewise.
11985         (ggc_cleared_vec_alloc): Likewise.
11987 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
11989         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
11991 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
11993         * alias.c (record_alias_subset): Adjust.
11994         * bitmap.c (bitmap_element_allocate): Likewise.
11995         (bitmap_gc_alloc_stat): Likewise.
11996         * cfg.c (init_flow): Likewise.
11997         (alloc_block): Likewise.
11998         (unchecked_make_edge): Likewise.
11999         * cfgloop.c (alloc_loop): Likewise.
12000         (flow_loops_find): Likewise.
12001         (rescan_loop_exit): Likewise.
12002         * cfgrtl.c (init_rtl_bb_info): Likewise.
12003         * cgraph.c (insert_new_cgraph_node_version): Likewise.
12004         (cgraph_allocate_node): Likewise.
12005         (cgraph_create_edge_1): Likewise.
12006         (cgraph_allocate_init_indirect_info): Likewise.
12007         * cgraphclones.c (cgraph_clone_edge): Likewise.
12008         * cgraphunit.c (add_asm_node): Likewise.
12009         (init_lowered_empty_function): Likewise.
12010         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
12011         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
12012         (alpha_use_linkage): Likewise.
12013         * config/arc/arc.c (arc_init_machine_status): Likewise.
12014         * config/arm/arm.c (arm_init_machine_status): Likewise.
12015         * config/avr/avr.c (avr_init_machine_status): Likewise.
12016         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
12017         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
12018         * config/cris/cris.c (cris_init_machine_status): Likewise.
12019         * config/darwin.c (machopic_indirection_name): Likewise.
12020         (darwin_build_constant_cfstring): Likewise.
12021         (darwin_enter_string_into_cfstring_table): Likewise.
12022         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
12023         * config/frv/frv.c (frv_init_machine_status): Likewise.
12024         * config/i386/i386.c (get_dllimport_decl): Likewise.
12025         (ix86_init_machine_status): Likewise.
12026         (assign_386_stack_local): Likewise.
12027         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
12028         (i386_pe_maybe_record_exported_symbol): Likewise.
12029         (i386_pe_record_stub): Likewise.
12030         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
12031         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
12032         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
12033         (m32c_note_pragma_address): Likewise.
12034         * config/mep/mep.c (mep_init_machine_status): Likewise.
12035         (mep_note_pragma_flag): Likewise.
12036         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
12037         (mips16_local_alias): Likewise.
12038         (mips_init_machine_status): Likewise.
12039         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
12040         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
12041         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
12042         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
12043         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
12044         * config/pa/pa.c (pa_init_machine_status): Likewise.
12045         (pa_get_deferred_plabel): Likewise.
12046         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
12047         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
12048         (rs6000_init_machine_status): Likewise.
12049         (output_toc): Likewise.
12050         * config/s390/s390.c (s390_init_machine_status): Likewise.
12051         * config/score/score.c (score_output_external): Likewise.
12052         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
12053         * config/spu/spu.c (spu_init_machine_status): Likewise.
12054         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
12055         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
12056         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
12057         * coverage.c (coverage_end_function): Likewise.
12058         * dbxout.c (dbxout_init): Likewise.
12059         * doc/gty.texi: Don't mention variable_size attribute.
12060         * dwarf2cfi.c (new_cfi): Adjust.
12061         (new_cfi_row): Likewise.
12062         (copy_cfi_row): Likewise.
12063         (create_cie_data): Likewise.
12064         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
12065         (new_loc_descr): Likewise.
12066         (find_AT_string_in_table): Likewise.
12067         (add_addr_table_entry): Likewise.
12068         (new_die): Likewise.
12069         (add_var_loc_to_decl): Likewise.
12070         (clone_die): Likewise.
12071         (clone_as_declaration): Likewise.
12072         (break_out_comdat_types): Likewise.
12073         (new_loc_list): Likewise.
12074         (add_loc_descr_to_each): Likewise.
12075         (add_location_or_const_value_attribute): Likewise.
12076         (add_linkage_name): Likewise.
12077         (lookup_filename): Likewise.
12078         (dwarf2out_var_location): Likewise.
12079         (new_line_info_table): Likewise.
12080         (dwarf2out_init): Likewise.
12081         (mem_loc_descriptor): Likewise.
12082         (loc_descriptor): Likewise.
12083         (add_const_value_attribute): Likewise.
12084         (tree_add_const_value_attribute): Likewise.
12085         (comp_dir_string): Likewise.
12086         (dwarf2out_vms_debug_main_pointer): Likewise.
12087         (string_cst_pool_decl): Likewise.
12088         * emit-rtl.c (set_mem_attrs): Likewise.
12089         (get_reg_attrs): Likewise.
12090         (start_sequence): Likewise.
12091         (init_emit): Likewise.
12092         (init_emit_regs): Likewise.
12093         * except.c (init_eh_for_function): Likewise.
12094         (gen_eh_region): Likewise.
12095         (gen_eh_region_catch): Likewise.
12096         (gen_eh_landing_pad): Likewise.
12097         (add_call_site): Likewise.
12098         * function.c (add_frame_space): Likewise.
12099         (insert_temp_slot_address): Likewise.
12100         (assign_stack_temp_for_type): Likewise.
12101         (get_hard_reg_initial_val): Likewise.
12102         (allocate_struct_function): Likewise.
12103         (prepare_function_start): Likewise.
12104         (types_used_by_var_decl_insert): Likewise.
12105         * gengtype.c (variable_size_p): Remove function.
12106         (enum alloc_quantity): Remove enum.
12107         (write_typed_alloc_def): Remove function.
12108         (write_typed_struct_alloc_def): Likewise.
12109         (write_typed_typedef_alloc_def): Likewise.
12110         (write_typed_alloc_defns): Likewise.
12111         (main): Adjust.
12112         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
12113         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
12114         * ggc.h (ggc_alloc): new function.
12115         (ggc_cleared_alloc): Likewise.
12116         (ggc_vec_alloc): Template on type of vector element, and remove
12117         element size argument.
12118         (ggc_cleared_vec_alloc): Likewise.
12119         * gimple.c (gimple_build_omp_for): Adjust.
12120         (gimple_copy): Likewise.
12121         * ipa-cp.c (get_replacement_map): Likewise.
12122         (find_aggregate_values_for_callers_subset): Likewise.
12123         (known_aggs_to_agg_replacement_list): Likewise.
12124         * ipa-devirt.c (get_odr_type): Likewise.
12125         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
12126         (read_agg_replacement_chain): Likewise.
12127         * loop-iv.c (get_simple_loop_desc): Likewise.
12128         * lto-cgraph.c (input_node_opt_summary): Likewise.
12129         * lto-section-in.c (lto_new_in_decl_state): Likewise.
12130         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
12131         (input_eh_region): Likewise.
12132         (input_eh_lp): Likewise.
12133         (input_cfg): Likewise.
12134         * optabs.c (set_optab_libfunc): Likewise.
12135         (init_tree_optimization_optabs): Likewise.
12136         (set_conv_libfunc): Likewise.
12137         * passes.c (do_per_function_toporder): Likewise.
12138         * rtl.h: Don't use variable_size gty attribute.
12139         * sese.c (if_region_set_false_region): Adjust.
12140         * stringpool.c (gt_pch_save_stringpool): Likewise.
12141         * target-globals.c (save_target_globals): Likewise.
12142         * toplev.c (general_init): Likewise.
12143         * trans-mem.c (record_tm_replacement): Likewise.
12144         (split_bb_make_tm_edge): Likewise.
12145         * tree-cfg.c (move_sese_region_to_fn): Likewise.
12146         * tree-data-ref.h (lambda_vector_new): Likewise.
12147         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
12148         * tree-iterator.c (tsi_link_before): Likewise.
12149         (tsi_link_after): Likewise.
12150         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
12151         * tree-ssa-loop-niter.c (record_estimate): Likewise.
12152         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
12153         * tree-ssa-operands.h: Don't use variable_size gty attribute.
12154         * tree-ssa.c (init_tree_ssa): Adjust.
12155         * tree-ssanames.c (set_range_info): Likewise.
12156         (get_ptr_info): Likewise.
12157         (duplicate_ssa_name_ptr_info): Likewise.
12158         (duplicate_ssa_name_range_info): Likewise.
12159         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
12160         (unpack_ts_fixed_cst_value_fields): Likewise.
12161         * tree.c (build_fixed): Likewise.
12162         (build_real): Likewise.
12163         (build_string): Likewise.
12164         (decl_priority_info): Likewise.
12165         (decl_debug_expr_insert): Likewise.
12166         (decl_value_expr_insert): Likewise.
12167         (decl_debug_args_insert): Likewise.
12168         (type_hash_add): Likewise.
12169         (build_omp_clause): Likewise.
12170         * ubsan.c (decl_for_type_insert): Likewise.
12171         * varasm.c (get_unnamed_section): Likewise.
12172         (get_noswitch_section): Likewise.
12173         (get_section): Likewise.
12174         (get_block_for_section): Likewise.
12175         (create_block_symbol): Likewise.
12176         (build_constant_desc): Likewise.
12177         (create_constant_pool): Likewise.
12178         (force_const_mem): Likewise.
12179         (record_tm_clone_pair): Likewise.
12180         * varpool.c (varpool_create_empty_node): Likewise.
12182 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
12184         * dwarf2out.c (tree_add_const_value_attribute): Call
12185         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
12186         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
12187         instead of ggc_internal_<x>alloc_stat.
12188         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
12189         (ggc_realloc): Likewise.
12190         * ggc-none.c (ggc_internal_alloc): Likewise.
12191         (ggc_internal_cleared_alloc): Likewise.
12192         * ggc-page.c: Likewise.
12193         * ggc.h (ggc_internal_alloc_stat): Likewise.
12194         (ggc_internal_alloc): Remove macro.
12195         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
12196         (ggc_internal_cleared_alloc): Remove macro.
12197         (GGC_RESIZEVEC): Adjust.
12198         (ggc_resizevar): Remove macro.
12199         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
12200         (ggc_internal_cleared_vec_alloc_stat): Likewise.
12201         (ggc_internal_vec_cleared_alloc): Remove macro.
12202         (ggc_alloc_atomic_stat): Drop _stat suffix.
12203         (ggc_alloc_atomic): Remove macro.
12204         (ggc_alloc_cleared_atomic): Remove macro.
12205         (ggc_alloc_string_stat): Drop _stat suffix.
12206         (ggc_alloc_string): Remove macro.
12207         (ggc_alloc_rtx_def_stat): Adjust.
12208         (ggc_alloc_tree_node_stat): Likewise.
12209         (ggc_alloc_cleared_tree_node_stat): Likewise.
12210         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
12211         (ggc_alloc_cleared_simd_clone_stat): Likewise.
12212         * gimple.c (gimple_build_omp_for): Likewise.
12213         (gimple_copy): Likewise.
12214         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
12215         * toplev.c (realloc_for_line_map): Adjust.
12216         * tree-data-ref.h (lambda_vector_new): Likewise.
12217         * tree-phinodes.c (allocate_phi_node): Likewise.
12218         * tree.c (grow_tree_vec_stat): Likewise.
12219         * vec.h (va_gc::reserve): Adjust.
12221 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
12223         * config/microblaze/microblaze.c (break_handler): New Declaration.
12224         (microblaze_break_function_p,microblaze_is_break_handler): New.
12225         (compute_frame_size): Use microblaze_break_function_p.
12226         Add the test of break_handler.
12227         (microblaze_function_prologue) : Add the test of variable
12228         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
12229         (microblaze_function_epilogue) : Add the test of break_handler.
12230         (microblaze_globalize_label) : Add the test of break_handler.
12231         Check the name by BREAK_HANDLER_NAME.
12233         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
12235         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
12236         microblaze_is_break_handler test.
12237         (call_internal1,call_value_intern): Use microblaze_break_function_p.
12238         Use SYMBOL_REF_DECL.
12240         * config/microblaze/microblaze-protos.h
12241         (microblaze_break_function_p,microblaze_is_break_handler):
12242         New Declaration.
12244         * doc/extend.texi (MicroBlaze break_handler Functions): Document
12245         new MicroBlaze break_handler functions.
12247 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
12249         * doc/extend.texi (Size of an asm): Move node text according
12250         to its @menu entry position.
12252 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
12254         PR tree-optimization/61140
12255         PR tree-optimization/61150
12256         PR tree-optimization/61197
12257         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
12259 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
12261         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
12263 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
12265         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
12266         __SIZEOF_INT128__ is defined.
12268 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
12270         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
12271         (rs6000_delegitimize_address): Use it.
12273 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
12275         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
12276         inplace argument.  Store the new address in the original MEM when true.
12277         * emit-rtl.c (change_address_1): Likewise.
12278         (adjust_address_1, adjust_automodify_address_1, offset_address):
12279         Update accordingly.
12280         * rtl.h (plus_constant): Add an inplace argument.
12281         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
12282         when true.  Avoid generating (plus X (const_int 0)).
12283         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
12284         in-place.  Pass true to plus_constant.
12285         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
12287 2014-05-16  Dehao Chen  <dehao@google.com>
12289         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
12291 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
12293         PR target/54089
12294         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
12295         patterns.
12296         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
12298 2014-05-16  Dehao Chen  <dehao@google.com>
12300         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
12301         optimize_function_for_size_p.
12302         * regs.h (REG_FREQ_FROM_BB): Likewise.
12304 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
12306         PR target/51244
12307         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
12308         negt_reg_operand cases.
12309         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
12310         predicate.
12311         * config/sh/predicates.md (cbranch_treg_value): Simplify.
12313 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
12315         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
12316         target variants.
12318 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
12320         Revert:
12321         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
12323         * tree-cfg.c (dump_function_to_file): Dump the return type of
12324         functions, in a line to itself before the function body, mimicking
12325         the layout of a C function.
12327 2014-05-16  Dehao Chen  <dehao@google.com>
12329         * cfghooks.c (make_forwarder_block): Use direct computation to
12330         get fall-through edge's count and frequency.
12332 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
12334         * config/arc/arc.c (arc_init): Fix typo in error message.
12335         * config/i386/i386.c (ix86_expand_builtin): Likewise.
12336         (split_stack_prologue_scratch_regno): Likewise.
12337         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
12338         word from error message.
12340 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
12342         * ira-costs.c: Fix typo in comment.
12344 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
12346         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
12348 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
12350         * varpool.c (dump_varpool_node): Dump write-only flag.
12351         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
12352         write-only flag.
12353         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
12354         write-only variables.
12355         * ipa.c (process_references): New function.
12356         (set_readonly_bit): New function.
12357         (set_writeonly_bit): New function.
12358         (clear_addressable_bit): New function.
12359         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
12360         fix handling of aliases.
12361         * cgraph.h (struct varpool_node): Add writeonly flag.
12363 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
12365         PR rtl-optimization/60969
12366         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
12367         Calculate costs for this case.
12369 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
12371         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
12372         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
12374 2014-05-16  Richard Biener  <rguenther@suse.de>
12376         PR tree-optimization/61194
12377         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
12378         bool patterns ending in a COND_EXPR.
12380 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
12382         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
12384 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
12386         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
12387         where we were unable to cost an RTX.
12389 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
12391         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
12392         HIGH, LO_SUM.
12394 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
12395             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
12397         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
12399 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
12400             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
12402         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
12403         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
12405 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
12406             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
12408         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
12409         operators.
12411 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
12412             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
12414         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
12415         DIV/MOD.
12417 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
12418             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
12420         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
12421         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
12423 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
12424             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
12426         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
12427         rotates and shifts.
12429 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
12430             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
12432         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
12433         ZERO_EXTEND and SIGN_EXTEND better.
12435 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
12436             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
12438         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
12439         logical operations.
12441 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
12442             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
12444         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
12445         costs when costing loads and stores to memory.
12447 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
12448             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
12450         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
12451         for SET RTX.
12453 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
12455         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
12457 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
12458             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
12460         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
12461         to...
12462         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
12463         well formed.
12464         (aarch64_rtx_mult_cost): New.
12465         (aarch64_rtx_costs): Use it, refactor as appropriate.
12467 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
12468             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
12470         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
12471         emit instructions, return number of instructions which would
12472         be emitted.
12473         (aarch64_add_constant): Update call to aarch64_build_constant.
12474         (aarch64_output_mi_thunk): Likewise.
12475         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
12476         a CONST_DOUBLE.
12478 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
12480         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
12481         (TARGET_RTX_COSTS): Call it.
12483 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
12485         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
12486         (cortexa57_vector_cost): Likewise.
12487         (cortexa57_tunings): Use them.
12489 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
12491         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
12492         (cpu_addrcost_table): Use it.
12493         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
12494         (aarch64_address_cost): Rewrite using aarch64_classify_address,
12495         move it.
12497 2014-05-16  Richard Biener  <rguenther@suse.de>
12499         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
12500         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
12501         (visit_phi): Ignore edges marked as not executable.
12502         (class cond_dom_walker): New.
12503         (cond_dom_walker::before_dom_children): Value-number
12504         control statements and mark successor edges as not
12505         executable if possible.
12506         (run_scc_vn): First walk all control statements in
12507         dominator order, marking edges as not executable.
12508         * tree-inline.c (copy_edges_for_bb): Be not confused
12509         about random edge flags.
12511 2014-05-16  Richard Biener  <rguenther@suse.de>
12513         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
12515 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
12517         PR target/61193
12518         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
12519         (__TM_simple_begin): Use it.
12520         (__TM_begin): Likewise.
12522 2014-05-15  Martin Jambor  <mjambor@suse.cz>
12524         PR ipa/61085
12525         * ipa-prop.c (update_indirect_edges_after_inlining): Check
12526         type_preserved flag when the indirect edge is polymorphic.
12528 2014-05-15  Martin Jambor  <mjambor@suse.cz>
12530         PR tree-optimization/61090
12531         * tree-sra.c (sra_modify_expr): Pass the current gsi to
12532         build_ref_for_model.
12534 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12536         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
12537         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
12539 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
12541         PR tree-optimization/61158
12542         * fold-const.c (fold_binary_loc): If X is zero-extended and
12543         shiftc >= prec, make sure zerobits is all ones instead of
12544         invoking undefined behavior.
12546 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12548         * regcprop.h: New file.
12549         * regcprop.c (skip_debug_insn_p): New decl.
12550         (replace_oldest_value_reg): Check skip_debug_insn_p.
12551         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
12552         * shrink-wrap.c: Include regcprop.h.
12553         (prepare_shrink_wrap): Call
12554         copyprop_hardreg_forward_bb_without_debug_insn.
12556 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12558         * shrink-wrap.h: Update comment.
12559         * shrink-wrap.c: Update comment.
12560         (next_block_for_reg): Rename to live_edge_for_reg.
12561         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
12562         (move_insn_for_shrink_wrap): Split live_edge.
12563         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
12565 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
12567         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
12568         Delete.
12569         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
12570         * config/sparc/sparc.md (fptype_ut699): New attribute.
12571         (in_branch_delay): Return false if -mfix-ut699 is specified and
12572         fptype_ut699 is set to single.
12573         (truncdfsf2): Add fptype_ut699 attribute.
12574         (fix_truncdfsi2): Likewise.
12575         (floatsisf2): Change fptype attribute.
12576         (fix_truncsfsi2): Likewise.
12577         (negtf2_notv9): Delete.
12578         (negtf2_v9): Likewise.
12579         (negtf2_hq): New instruction.
12580         (negtf2): New instruction and splitter.
12581         (negdf2_notv9): Rewrite.
12582         (abstf2_notv9): Delete.
12583         (abstf2_hq_v9): Likewise.
12584         (abstf2_v9): Likewise.
12585         (abstf2_hq): New instruction.
12586         (abstf2): New instruction and splitter.
12587         (absdf2_notv9): Rewrite.
12589 2014-05-14  Cary Coutant  <ccoutant@google.com>
12591         PR debug/61013
12592         * opts.c (common_handle_option): Don't special-case "-g".
12593         (set_debug_level): Default to at least level 2 with "-g".
12595 2014-05-14  DJ Delorie  <dj@redhat.com>
12597         * config/msp430/msp430.c (msp430_builtin): Add
12598         MSP430_BUILTIN_DELAY_CYCLES.
12599         (msp430_init_builtins): Register void __delay_cycles(long long).
12600         (msp430_builtin_decl): Add it.
12601         (cg_magic_constant): New.
12602         (msp430_expand_delay_cycles): New.
12603         (msp430_expand_builtin): Call it.
12604         (msp430_print_operand_raw): Change integer printing from "int" to
12605         HOST_WIDE_INT.
12606         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
12607         (delay_cycles_start): New.
12608         (delay_cycles_end): New.
12609         (delay_cycles_32): New.
12610         (delay_cycles_32x): New.
12611         (delay_cycles_16): New.
12612         (delay_cycles_16x): New.
12613         (delay_cycles_2): New.
12614         (delay_cycles_1): New.
12615         * doc/extend.texi: Document __delay_cycles().
12617 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
12619         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
12620         length attribute computation.
12622 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
12624         PR debug/61188
12625         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
12627 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
12629         PR target/61084
12630         * config/sparc/sparc.md: Fix types of low and high in DI constant
12631         splitter.  Use gen_int_mode in some other splitters.
12633 2014-05-14  Martin Jambor  <mjambor@suse.cz>
12635         PR ipa/60897
12636         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
12638 2014-05-14  James Norris  <jnorris@codesourcery.com>
12640         * omp-low.c (expand_parallel_call): Remove shadow variable.
12641         (expand_omp_taskreg): Likewise.
12643 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
12645         * common/config/i386/i386-common.c
12646         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
12647         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
12648         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
12649         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
12650         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
12651         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
12652         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
12653         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
12654         xsavecintrin.h, xsavesintrin.h.
12655         (x86_64-*-*): Ditto.
12656         * config/i386/clflushoptintrin.h: New.
12657         * config/i386/xsavecintrin.h: Ditto.
12658         * config/i386/xsavesintrin.h: Ditto.
12659         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
12660         (bit_XSAVES): Ditto.
12661         (bit_XSAVES): Ditto.
12662         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
12663         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
12664         -mno-clflushopt.
12665         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12666         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
12667         OPTION_MASK_ISA_XSAVES.
12668         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
12669         -mxsavec, -mxsaves.
12670         (PTA_CLFLUSHOPT) Define.
12671         (PTA_XSAVEC): Ditto.
12672         (PTA_XSAVES): Ditto.
12673         (ix86_option_override_internal): Handle new options.
12674         (ix86_valid_target_attribute_inner_p): Ditto.
12675         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
12676         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
12677         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
12678         (bdesc_special_args): Add __builtin_ia32_xsaves,
12679         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
12680         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
12681         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
12682         (ix86_expand_builtin): Handle new builtins.
12683         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
12684         (TARGET_CLFLUSHOPT_P): Ditto.
12685         (TARGET_XSAVEC): Ditto.
12686         (TARGET_XSAVEC_P): Ditto.
12687         (TARGET_XSAVES): Ditto.
12688         (TARGET_XSAVES_P): Ditto.
12689         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
12690         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
12691         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
12692         (ANY_XRSTOR): New.
12693         (ANY_XRSTOR64): Ditto.
12694         (xrstor): Ditto.
12695         (xrstor): Change into <xrstor>.
12696         (xrstor_rex64): Change into <xrstor>_rex64.
12697         (xrstor64): Change into <xrstor>64
12698         (clflushopt): New.
12699         * config/i386/i386.opt (mclflushopt): New.
12700         (mxsavec): Ditto.
12701         (mxsaves): Ditto.
12702         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
12703         xsavecintrin.h.
12704         * doc/invoke.texi: Document new options.
12706 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
12708         PR rtl-optimization/60866
12709         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
12710         Default it to -1.  Pass it down to init_simplejump_data.
12711         (init_simplejump_data): New parameter old_seqno.  Pass it down
12712         to get_seqno_for_a_jump.
12713         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
12714         initializing new jump seqno as a last resort.  Add comment.
12715         (sel_redirect_edge_and_branch): Save old seqno of the conditional
12716         jump and pass it down to sel_init_new_insn.
12717         (sel_redirect_edge_and_branch_force): Likewise.
12719 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
12721         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
12722         shifted values to avoid build warning.
12724 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
12726         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
12727         * cfgrtl.c (rtl_merge_blocks): Fix comment.
12728         (cfg_layout_merge_blocks): Likewise.
12729         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
12731 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
12733         PR rtl-optimization/60901
12734         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
12735         bb predecessor belongs to the same scheduling region.  Adjust comment.
12737 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
12739         * doc/sourcebuild.texi: (dfp_hw): Document.
12740         (p8vector_hw): Likewise.
12741         (powerpc_eabi_ok): Likewise.
12742         (powerpc_elfv2): Likewise.
12743         (powerpc_htm_ok): Likewise.
12744         (ppc_recip_hw): Likewise.
12745         (vsx_hw): Likewise.
12747 2014-05-13  Cary Coutant  <ccoutant@google.com>
12749         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
12751 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
12753         * gengtype-parse.c (require3): Eliminate in favor of...
12754         (require4): New.
12755         (require_template_declaration): Update to support optional single *
12756         on a type.
12758         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
12759         (create_user_defined_type): Handle a single level of explicit
12760         pointerness within template arguments.
12761         (struct write_types_data): Add field "kind".
12762         (filter_type_name): Handle "*" character.
12763         (write_user_func_for_structure_ptr): Require a write_types_data
12764         rather than just a prefix string, so that we can look up the kind
12765         of the wtd and use it as an index into wrote_user_func_for_ptr,
12766         ensuring that such functions are written at most once.  Support
12767         subclasses by invoking the marking function of the ultimate base class.
12768         (write_user_func_for_structure_body): Require a write_types_data
12769         rather than just a prefix string, so that we can pass this to
12770         write_user_func_for_structure_ptr.
12771         (write_func_for_structure): Likewise.
12772         (ggc_wtd): Add initializer of new "kind" field.
12773         (pch_wtd): Likewise.
12775         * gengtype.h (enum write_types_kinds): New.
12776         (struct type): Add field wrote_user_func_for_ptr to the "s"
12777         union member.
12779 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
12781         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
12782         instead of const_binop.
12783         (fold_binary_loc): Likewise.
12785 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
12787         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
12788         calculation to match get_ref_base_and_extent.
12790 2014-05-13  Catherine Moore  <clm@codesourcery.com>
12791             Sandra Loosemore  <sandra@codesourcery.com>
12793         * configure.ac: Fix assembly for explicit JALR relocation check.
12794         * configure: Regenerate.
12796 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12798         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
12799         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
12800         Remove associated type declarations and initialisations.
12801         (arm_expand_neon_builtin): Likewise.
12802         (neon_emit_pair_result_insn): Delete.
12803         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
12804         * config/arm/neon.md (neon_vtrn<mode>): Delete.
12805         (neon_vzip<mode>): Likewise.
12806         (neon_vuzp<mode>): Likewise.
12808 2014-05-13  Richard Biener  <rguenther@suse.de>
12810         PR ipa/60973
12811         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
12812         it needs revisiting whether the call still may be tail-called.
12814 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
12816         * rtl.def (SYMBOL_REF): Remove middle "0" field.
12817         * rtl.h (block_symbol): Reduce number of fields to 2.
12818         (rtx_def): Add u2.symbol_ref_flags.
12819         (SYMBOL_REF_FLAGS): Use it.
12820         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
12821         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
12822         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
12823         Lower index of SYMBOL_REF_DATA.
12824         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
12825         Print SYMBOL_REF_FLAGS at the same time.
12826         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
12828 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
12830         * rtl.def (VAR_LOCATION): Remove "i" field.
12831         * rtl.h (rtx_def): Add u2.var_location_status.
12832         (PAT_VAR_LOCATION_STATUS): Use it.
12833         (gen_rtx_VAR_LOCATION): Declare.
12834         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
12835         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
12836         * var-tracking.c (emit_note_insn_var_location): Remove casts.
12838 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
12840         * rtl.def (scratch): Fix outdated comment and remove "0" field.
12841         * gengtype.c (adjust_field_rtx_def): Update accordingly.
12843 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
12845         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
12846         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
12847         * rtl.h (rtx_def): Add insn_uid to u2 field.
12848         (RTX_FLAG_CHECK8): Delete in favor of...
12849         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
12850         (INSN_DELETED_P): Update accordingly.
12851         (INSN_UID): Use u2.insn_uid.
12852         (INSN_CHAIN_CODE_P): Define.
12853         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
12854         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
12855         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
12856         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
12857         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
12858         indices accordingly.
12859         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
12860         Update indices for insn-chain rtxes.
12861         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
12862         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
12863         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
12864         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
12865         * combine.c (try_combine): Likewise.
12866         * ira.c (setup_prohibited_mode_move_regs): Likewise.
12868 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
12870         * rtl.def (REG): Remove middle field.
12871         * rtl.h (rtx_def): Add orignal_regno to u2.
12872         (ORIGINAL_REGNO): Use it instead of field 1.
12873         (REG_ATTRS): Lower field index accordingly.
12874         * gengtype.c (adjust_field_rtx_def): Remove handling of
12875         ORIGINAL_REGNO.  Move REG_ATTRS index down.
12876         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
12877         code that prints the REGNO.
12879 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
12881         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
12882         GENERATOR_FILE.
12884 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
12886         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
12888 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
12890         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
12891         (alloc_iv): Lower base expressions containing ADDR_EXPR.
12893 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
12895         * config/aarch64/aarch64-protos.h
12896         (aarch64_hard_regno_caller_save_mode): New prototype.
12897         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
12898         New function.
12899         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
12901 2014-05-13  Christian Bruel  <christian.bruel@st.com>
12903         * target.def (mode_switching): New hook vector.
12904         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
12905         (mode_exit, modepriority_to_mode): Likewise.
12906         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
12907         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12908         * target.h: Include tm.h and hard-reg-set.h.
12909         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
12910         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
12911         * doc/tm.texi Regenerate.
12912         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
12913         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12914         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
12915         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
12916         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
12917         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12918         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
12919         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
12920         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
12921         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
12922         (ix86_emit_mode_set): Hookify.
12923         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
12924         Delete.
12925         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
12926         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
12927         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
12928         (epiphany_mode_priority_to_mode): Remove declaration.
12929         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
12930         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
12931         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
12932         Likewise.
12933         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
12934         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
12935         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
12937 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
12939         PR target/61060
12940         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
12941         is const0_rtx, return immediately.  Don't test count == 0 when
12942         it is always true.
12944 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12946         * Makefile.in: add shrink-wrap.o.
12947         * config/i386/i386.c: include "shrink-wrap.h"
12948         * function.c: Likewise.
12949         (requires_stack_frame_p, next_block_for_reg,
12950         move_insn_for_shrink_wrap, prepare_shrink_wrap,
12951         dup_block_and_redirect): Move to shrink-wrap.c
12952         (thread_prologue_and_epilogue_insns): Extract three code segments
12953         as functions in shrink-wrap.c
12954         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
12955         shrink-wrap.h
12956         * shrink-wrap.c: New file.
12957         * shrink-wrap.h: New file.
12959 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
12961         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
12962         reference to Solaris.
12964 2014-05-12  Mike Stump  <mikestump@comcast.net>
12966         PR other/31778
12967         * genattrtab.c (filename): Add.
12968         (convert_set_attr_alternative): Improve error message.
12969         (check_defs): Restore read_md_filename for error messages.
12970         (gen_insn): Save filename.
12972 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
12974         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
12975         -fno-local-ivars and -fivar-visibility.
12976         * c-family/c.opt: Make -Wshadow also implicitly enable
12977         -Wshadow-ivar.
12979 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
12981         * doc/tm.texi: Remove reference to deleted macro.
12982         * doc/tm.texi.in: Likewise.
12984 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12986         PR target/60991
12987         * config/avr/avr.c (avr_out_store_psi): Use correct constant
12988         to restore Y.
12990 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
12992         PR libgcc/61152
12993         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
12994         * config/arm/aout.h (License): Same.
12995         * config/arm/bpabi.h (License): Same.
12996         * config/arm/elf.h (License): Same.
12997         * config/arm/linux-elf.h (License): Same.
12998         * config/arm/linux-gas.h (License): Same.
12999         * config/arm/netbsd-elf.h (License): Same.
13000         * config/arm/uclinux-eabi.h (License): Same.
13001         * config/arm/uclinux-elf.h (License): Same.
13002         * config/arm/vxworks.h (License): Same.
13004 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
13006         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
13007         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
13008         number of operands to 3.
13009         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
13010         * tree-nested.c (convert_nonlocal_omp_clauses,
13011         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
13012         * gimplify.c (gimplify_scan_omp_clauses): Handle
13013         OMP_CLAUSE_LINEAR_STMT.
13014         * omp-low.c (lower_rec_input_clauses): Fix typo.
13015         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
13016         cast between Fortran boolean_type_node and C _Bool if
13017         needed.
13019 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
13021         PR tree-optimization/61136
13022         * wide-int.h (multiple_of_p): Define a version that doesn't return
13023         the quotient.
13024         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
13025         integer_zerop/const_binop pair.
13026         (multiple_of_p): Likewise, converting both operands to widest_int
13027         precision.
13029 2014-05-09  Teresa Johnson  <tejohnson@google.com>
13031         * cgraphunit.c (analyze_functions): Use correct dump file.
13033 2014-05-09  Florian Weimer  <fweimer@redhat.com>
13035         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
13036         expand_used_vars.
13037         (stack_protect_return_slot_p): New function.
13038         (expand_used_vars): Call stack_protect_decl_p and
13039         stack_protect_return_slot_p for -fstack-protector-strong.
13041 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
13042         Andrew Haley <aph@redhat.com>
13043         Richard Sandiford <rdsandiford@googlemail.com>
13045         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
13046         pages.
13048 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
13050         PR middle-end/61111
13051         * fold-const.c (fold_binary_loc): Changed width of mask.
13053 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
13055         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
13056         unsigned int initializers for regno_in, regno_out.
13058 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
13060         PR target/61055
13061         * config/avr/avr.md (cc): Add new attribute set_vzn.
13062         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
13063         Set cc insn attribute to set_vzn instead of set_zn for alternatives
13064         with INC, DEC or NEG.
13065         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
13066         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
13067         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
13069 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13071         Revert:
13072         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13074         * wide-int.cc (UTItype): Define.
13075         (UDWtype): Define for appropriate W_TYPE_SIZE.
13077 2014-05-09  Richard Biener  <rguenther@suse.de>
13079         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
13080         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
13081         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
13082         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
13083         ssa_propagate): Adjust.
13085 2014-05-08  Jeff Law  <law@redhat.com>
13087         PR tree-optimization/61009
13088         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
13089         tri-state rather than a boolean.  When a block is too big to
13090         thread through, inform caller via negative return value.
13091         (thread_across_edge): If a block was too big for normal threading,
13092         then it's too big for a joiner too, so remove temporary equivalences
13093         and return immediately.
13095 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13096             Matthias Klose  <doko@ubuntu.com>
13098         PR driver/61106
13099         * optc-gen.awk: Fix option handling for -Wunused-parameter.
13101 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
13103         PR target/59952
13104         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
13106 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
13108         PR target/61092
13109         * config/alpha/alpha.c: Include gimple-iterator.h.
13110         (alpha_gimple_fold_builtin): New function.  Move
13111         ALPHA_BUILTIN_UMULH folding from ...
13112         (alpha_fold_builtin): ... here.
13113         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
13115 2014-05-08  Wei Mi  <wmi@google.com>
13117         PR target/58066
13118         * config/i386/i386.c (ix86_compute_frame_layout): Update
13119         preferred_stack_boundary for call, expanded from tls descriptor.
13120         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
13121         to depend on SP register.
13122         (*tls_local_dynamic_base_32_gnu): Ditto.
13123         (*tls_local_dynamic_32_once): Ditto.
13124         (tls_global_dynamic_64_<mode>): Set
13125         ix86_tls_descriptor_calls_expanded_in_cfun.
13126         (tls_local_dynamic_base_64_<mode>): Ditto.
13127         (tls_global_dynamic_32): Set
13128         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
13129         to depend on SP register.
13130         (tls_local_dynamic_base_32): Ditto.
13132 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13134         * config/arm/arm_neon.h: Update comment.
13135         * config/arm/neon-docgen.ml: Delete.
13136         * config/arm/neon-gen.ml: Delete.
13137         * doc/arm-neon-intrinsics.texi: Update comment.
13139 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13141         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
13142         and v4sf versions.
13143         (vand, vorr, veor, vorn, vbic): Remove.
13144         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
13145         iterator.
13146         (neon_vsub_unspec): Likewise.
13147         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
13149 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13151         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
13152         (vadd_s16): Likewise.
13153         (vadd_s32): Likewise.
13154         (vadd_f32): Likewise.
13155         (vadd_u8): Likewise.
13156         (vadd_u16): Likewise.
13157         (vadd_u32): Likewise.
13158         (vadd_s64): Likewise.
13159         (vadd_u64): Likewise.
13160         (vaddq_s8): Likewise.
13161         (vaddq_s16): Likewise.
13162         (vaddq_s32): Likewise.
13163         (vaddq_s64): Likewise.
13164         (vaddq_f32): Likewise.
13165         (vaddq_u8): Likewise.
13166         (vaddq_u16): Likewise.
13167         (vaddq_u32): Likewise.
13168         (vaddq_u64): Likewise.
13169         (vmul_s8): Likewise.
13170         (vmul_s16): Likewise.
13171         (vmul_s32): Likewise.
13172         (vmul_f32): Likewise.
13173         (vmul_u8): Likewise.
13174         (vmul_u16): Likewise.
13175         (vmul_u32): Likewise.
13176         (vmul_p8): Likewise.
13177         (vmulq_s8): Likewise.
13178         (vmulq_s16): Likewise.
13179         (vmulq_s32): Likewise.
13180         (vmulq_f32): Likewise.
13181         (vmulq_u8): Likewise.
13182         (vmulq_u16): Likewise.
13183         (vmulq_u32): Likewise.
13184         (vsub_s8): Likewise.
13185         (vsub_s16): Likewise.
13186         (vsub_s32): Likewise.
13187         (vsub_f32): Likewise.
13188         (vsub_u8): Likewise.
13189         (vsub_u16): Likewise.
13190         (vsub_u32): Likewise.
13191         (vsub_s64): Likewise.
13192         (vsub_u64): Likewise.
13193         (vsubq_s8): Likewise.
13194         (vsubq_s16): Likewise.
13195         (vsubq_s32): Likewise.
13196         (vsubq_s64): Likewise.
13197         (vsubq_f32): Likewise.
13198         (vsubq_u8): Likewise.
13199         (vsubq_u16): Likewise.
13200         (vsubq_u32): Likewise.
13201         (vsubq_u64): Likewise.
13202         (vand_s8): Likewise.
13203         (vand_s16): Likewise.
13204         (vand_s32): Likewise.
13205         (vand_u8): Likewise.
13206         (vand_u16): Likewise.
13207         (vand_u32): Likewise.
13208         (vand_s64): Likewise.
13209         (vand_u64): Likewise.
13210         (vandq_s8): Likewise.
13211         (vandq_s16): Likewise.
13212         (vandq_s32): Likewise.
13213         (vandq_s64): Likewise.
13214         (vandq_u8): Likewise.
13215         (vandq_u16): Likewise.
13216         (vandq_u32): Likewise.
13217         (vandq_u64): Likewise.
13218         (vorr_s8): Likewise.
13219         (vorr_s16): Likewise.
13220         (vorr_s32): Likewise.
13221         (vorr_u8): Likewise.
13222         (vorr_u16): Likewise.
13223         (vorr_u32): Likewise.
13224         (vorr_s64): Likewise.
13225         (vorr_u64): Likewise.
13226         (vorrq_s8): Likewise.
13227         (vorrq_s16): Likewise.
13228         (vorrq_s32): Likewise.
13229         (vorrq_s64): Likewise.
13230         (vorrq_u8): Likewise.
13231         (vorrq_u16): Likewise.
13232         (vorrq_u32): Likewise.
13233         (vorrq_u64): Likewise.
13234         (veor_s8): Likewise.
13235         (veor_s16): Likewise.
13236         (veor_s32): Likewise.
13237         (veor_u8): Likewise.
13238         (veor_u16): Likewise.
13239         (veor_u32): Likewise.
13240         (veor_s64): Likewise.
13241         (veor_u64): Likewise.
13242         (veorq_s8): Likewise.
13243         (veorq_s16): Likewise.
13244         (veorq_s32): Likewise.
13245         (veorq_s64): Likewise.
13246         (veorq_u8): Likewise.
13247         (veorq_u16): Likewise.
13248         (veorq_u32): Likewise.
13249         (veorq_u64): Likewise.
13250         (vbic_s8): Likewise.
13251         (vbic_s16): Likewise.
13252         (vbic_s32): Likewise.
13253         (vbic_u8): Likewise.
13254         (vbic_u16): Likewise.
13255         (vbic_u32): Likewise.
13256         (vbic_s64): Likewise.
13257         (vbic_u64): Likewise.
13258         (vbicq_s8): Likewise.
13259         (vbicq_s16): Likewise.
13260         (vbicq_s32): Likewise.
13261         (vbicq_s64): Likewise.
13262         (vbicq_u8): Likewise.
13263         (vbicq_u16): Likewise.
13264         (vbicq_u32): Likewise.
13265         (vbicq_u64): Likewise.
13266         (vorn_s8): Likewise.
13267         (vorn_s16): Likewise.
13268         (vorn_s32): Likewise.
13269         (vorn_u8): Likewise.
13270         (vorn_u16): Likewise.
13271         (vorn_u32): Likewise.
13272         (vorn_s64): Likewise.
13273         (vorn_u64): Likewise.
13274         (vornq_s8): Likewise.
13275         (vornq_s16): Likewise.
13276         (vornq_s32): Likewise.
13277         (vornq_s64): Likewise.
13278         (vornq_u8): Likewise.
13279         (vornq_u16): Likewise.
13280         (vornq_u32): Likewise.
13281         (vornq_u64): Likewise.
13283 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13285         * wide-int.cc (UTItype): Define.
13286         (UDWtype): Define for appropriate W_TYPE_SIZE.
13288 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
13290         PR tree-optimization/59100
13291         * tree-ssa-phiopt.c: Include tree-inline.h.
13292         (neutral_element_p, absorbing_element_p): New functions.
13293         (value_replacement): Handle conditional binary operations with a
13294         neutral or absorbing element.
13296 2014-05-08  Richard Biener  <rguenther@suse.de>
13298         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
13299         folding the expression.
13300         (valueize_expr): Remove.
13301         (visit_reference_op_load): Do not valueize the result of
13302         vn_get_expr_for.
13303         (simplify_binary_expression): Likewise.
13304         (simplify_unary_expression): Likewise.
13306 2014-05-08  Richard Biener  <rguenther@suse.de>
13308         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
13309         looking at TYPE_ARG_TYPES.
13311 2014-05-08  Richard Biener  <rguenther@suse.de>
13313         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
13314         pointer propagation special-case.
13316 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
13318         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
13319         core part of address expressions.
13321 2014-05-08  Alan Modra  <amodra@gmail.com>
13323         PR target/60737
13324         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
13325         loads and stores when -mno-strict-align at any alignment.
13326         (expand_block_clear): Similarly.  Also correct calculation of
13327         instruction count.
13329 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13331         PR middle-end/39246
13332         * tree-complex.c (expand_complex_move): Keep line info when expanding
13333         complex move.
13334         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
13335         of complex expression. Use new argument to display correct location
13336         for values coming from phi statement.
13337         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
13338         (warn_uninitialized_phi): Pass location of phi argument to
13339         warn_uninit.
13340         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
13341         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
13343 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
13345         * config/rs6000/predicates.md (indexed_address_mem): New.
13346         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
13347         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
13348         fpstore_ux, fpstore_u.
13349         (sign_extend, indexed, update): New.
13350         (cell_micro): Adjust.
13351         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
13352         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
13353         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
13354         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
13355         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
13356         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
13357         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
13358         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
13359         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
13360         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
13361         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
13362         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
13363         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
13364         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
13365         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
13367         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
13368         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
13369         *vsx_extract_<mode>_store): Adjust.
13370         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
13371         is_cracked_insn, insn_must_be_first_in_group,
13372         insn_must_be_last_in_group): Adjust.
13374         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
13375         Adjust.
13376         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
13377         ppc440-fpstore): Adjust.
13378         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
13379         ppc476-fpstore): Adjust.
13380         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
13381         ppc601-fpstore): Adjust.
13382         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
13383         Adjust.
13384         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
13385         Adjust.
13386         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
13387         ppc7450-fpstore): Adjust.
13388         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
13389         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
13390         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
13391         Adjust.
13392         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
13393         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
13394         cell-fpstore, cell-fpstore-update): Adjust.
13395         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
13396         ppce300c3_store, ppce300c3_fpstore): Adjust.
13397         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
13398         e500mc_fpstore): Adjust.
13399         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
13400         e500mc64_store, e500mc64_fpstore): Adjust.
13401         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
13402         e5500_fpstore): Adjust.
13403         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
13404         e6500_fpstore): Adjust.
13405         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
13406         Adjust.
13407         * config/rs6000/power4.md (power4-load, power4-load-ext,
13408         power4-load-ext-update, power4-load-ext-update-indexed,
13409         power4-load-update-indexed, power4-load-update, power4-fpload,
13410         power4-fpload-update, power4-store, power4-store-update,
13411         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
13412         Adjust.
13413         * config/rs6000/power5.md (power5-load, power5-load-ext,
13414         power5-load-ext-update, power5-load-ext-update-indexed,
13415         power5-load-update-indexed, power5-load-update, power5-fpload,
13416         power5-fpload-update, power5-store, power5-store-update,
13417         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
13418         Adjust.
13419         * config/rs6000/power6.md (power6-load, power6-load-ext,
13420         power6-load-update, power6-load-update-indexed,
13421         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
13422         power6-fpload-update, power6-store, power6-store-update,
13423         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
13424         Adjust.
13425         * config/rs6000/power7.md (power7-load, power7-load-ext,
13426         power7-load-update, power7-load-update-indexed,
13427         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
13428         power7-fpload-update, power7-store, power7-store-update,
13429         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
13430         Adjust.
13431         * config/rs6000/power8.md (power8-load, power8-load-update,
13432         power8-load-ext, power8-load-ext-update, power8-fpload,
13433         power8-fpload-update, power8-store, power8-store-update-indexed,
13434         power8-fpstore, power8-fpstore-update): Adjust.
13435         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
13436         Adjust.
13437         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
13438         titan_lsu_store, titan_lsu_fpstore): Adjust.
13439         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
13441 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
13443         PR target/60884
13444         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
13445         unrolled byte insns.  Emit address increments after move insns.
13447 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
13449         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
13450         const_gimple, rather than a gimple.
13451         (gimple_call_builtin_p): Likewise, for the three variants.
13453         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
13454         (gimple_call_builtin_p): Likewise, for the three variants.
13456 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
13458         PR tree-optimization/61095
13459         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
13461 2014-05-07  Richard Biener  <rguenther@suse.de>
13463         PR tree-optimization/61034
13464         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
13465         (maybe_skip_until): Use translate to take into account
13466         lattices when trying to do disambiguations.
13467         (get_continuation_for_phi_1): Likewise.
13468         (get_continuation_for_phi): Adjust for added translate arguments.
13469         (walk_non_aliased_vuses): Likewise.
13470         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
13471         (walk_non_aliased_vuses): Likewise.
13472         (call_may_clobber_ref_p_1): Declare.
13473         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
13474         calls.  Stop early if we are only supposed to disambiguate.
13475         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
13477 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
13479         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
13480         Emit an error when the function has arguments.
13482 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
13484         * cfgloop.h (unswitch_loops): Remove.
13485         * doc/passes.texi: Remove references to loop-unswitch.c
13486         * timevar.def (TV_LOOP_UNSWITCH): Remove.
13488 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
13490         * tree-vect-data-refs.c (vect_grouped_load_supported): New
13491         check for loads group of length 3.
13492         (vect_permute_load_chain): New permutations for loads group of
13493         length 3.
13494         * tree-vect-stmts.c (vect_model_load_cost): Change cost
13495         of vec_perm_shuffle for the new permutations.
13497 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
13499         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
13500         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
13501         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
13502         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
13503         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
13504         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
13505         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
13506         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
13508 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
13510         * loop-unswitch.c: Delete.
13512 2014-05-07  Richard Biener  <rguenther@suse.de>
13514         * config.gcc: Always set need_64bit_hwint to yes.
13516 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
13518         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
13519         of using optimize_size.
13521 2014-05-06  Mike Stump  <mikestump@comcast.net>
13523         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
13525 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
13527         * config/i386/sse.md (*mov<mode>_internal)
13528         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
13529         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
13530         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
13531         (*<code><mode>3, *andnot<mode>3<mask_name>)
13532         (<mask_codefor><code><mode>3<mask_name>): Only consider
13533         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
13535 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
13537         Revert:
13538         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
13540         * lra-constraints.c (valid_address_p): Move earlier in file.
13541         Add a constraint argument to the address_info version.
13542         (satisfies_memory_constraint_p): New function.
13543         (satisfies_address_constraint_p): Likewise.
13544         (process_alt_operands, curr_insn_transform): Use them.
13545         (process_address): Pass the constraint to valid_address_p when
13546         checking address operands.
13548 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
13550         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
13551         to their respective blocks.  Fix inadvertent use of "node".
13553 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
13555         * emit-rtl.c (init_derived_machine_modes): New functionm, split
13556         out from...
13557         (init_emit_once): ...here.
13558         * rtl.h (init_derived_machine_modes): Declare.
13559         * toplev.c (do_compile): Call it even if no_backend.
13561 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
13562             Mike Stump  <mikestump@comcast.net>
13563             Richard Sandiford  <rdsandiford@googlemail.com>
13564             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13566         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
13567         (rtx_equal_for_memref_p): Update comment.
13568         (adjust_offset_for_component_ref): Use wide-int interfaces.
13569         * builtins.c (get_object_alignment_2): Likewise.
13570         (c_readstr): Likewise.
13571         (target_char_cast): Add comment.
13572         (determine_block_size): Use wide-int interfaces.
13573         (expand_builtin_signbit): Likewise.
13574         (fold_builtin_int_roundingfn): Likewise.
13575         (fold_builtin_bitop): Likewise.
13576         (fold_builtin_bswap): Likewise.
13577         (fold_builtin_logarithm): Use signop.
13578         (fold_builtin_pow): Likewise.
13579         (fold_builtin_memory_op): Use wide-int interfaces.
13580         (fold_builtin_object_size): Likewise.
13581         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
13582         nb_iterations_estimate.
13583         (record_niter_bound): Use wide-int interfaces.
13584         (get_estimated_loop_iterations_int): Likewise.
13585         (get_estimated_loop_iterations): Likewise.
13586         (get_max_loop_iterations): Likewise.
13587         * cfgloop.h: Include wide-int.h.
13588         (struct nb_iter_bound): Change bound to widest_int.
13589         (struct loop): Change nb_iterations_upper_bound and
13590         nb_iterations_estimate to widest_int.
13591         (record_niter_bound): Switch to use widest_int.
13592         (get_estimated_loop_iterations): Likewise.
13593         (get_max_loop_iterations): Likewise.
13594         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
13595         update for wide-int.
13596         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
13597         * combine.c (try_combine): Likewise.
13598         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
13599         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
13600         interfaces.
13601         (aarch64_float_const_representable_p): Likewise.
13602         * config/arc/arc.c: Include wide-int.h.
13603         (arc_can_use_doloop_p): Use wide-int interfaces.
13604         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
13605         (vfp3_const_double_index): Likewise.
13606         * config/avr/avr.c (avr_out_round): Likewise.
13607         (avr_fold_builtin): Likewise.
13608         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
13609         (bfin_can_use_doloop_p): Likewise.
13610         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
13611         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
13612         * config/i386/i386.c: Include wide-int.h.
13613         (ix86_data_alignment): Use wide-int interfaces.
13614         (ix86_local_alignment): Likewise.
13615         (ix86_emit_swsqrtsf): Update real_from_integer.
13616         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
13617         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
13618         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
13619         (zero_constant): Likewise.
13620         (input_operand): Likewise.
13621         (splat_input_operand): Likewise.
13622         (non_logical_cint_operand): Change const_double to const_wide_int.
13623         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
13624         (easy_altivec_constant): Remove comment.
13625         (paired_expand_vector_init): Use CONSTANT_P.
13626         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
13627         (rs6000_emit_move): Update checks.
13628         (rs6000_aggregate_candidate): Use wide-int interfaces.
13629         (rs6000_expand_ternop_builtin): Likewise.
13630         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
13631         (rs6000_assemble_integer): Likewise.
13632         (rs6000_hash_constant): Likewise.
13633         (output_toc): Likewise.
13634         (rs6000_rtx_costs): Likewise.
13635         (rs6000_emit_swrsqrt); Update call to real_from_integer.
13636         * config/rs6000/rs6000-c.c: Include wide-int.h.
13637         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
13638         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
13639         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
13640         Handle CONST_WIDE_INT.
13641         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
13642         Use tree_fits_uhwi_p.
13643         * config/sparc/sparc.c: Include wide-int.h.
13644         (sparc_fold_builtin): Use wide-int interfaces.
13645         * config/vax/vax.c: Include wide-int.h.
13646         (vax_float_literal): Use real_from_integer.
13647         * coretypes.h (struct hwivec_def): New.
13648         (hwivec): New.
13649         (const_hwivec): New.
13650         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
13651         (equiv_constant): Handle CONST_WIDE_INT.
13652         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
13653         (cselib_hash_rtx): Handle CONST_WIDE_INT.
13654         * dbxout.c (stabstr_U): Use wide-int interfaces.
13655         (dbxout_type): Update to use cst_fits_shwi_p.
13656         * defaults.h (LOG2_BITS_PER_UNIT): Define.
13657         (TARGET_SUPPORTS_WIDE_INT): Add default.
13658         * dfp.c: Include wide-int.h.
13659         (decimal_real_to_integer2): Use wide-int interfaces and rename to
13660         decimal_real_to_integer.
13661         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
13662         decimal_real_to_integer.
13663         * doc/generic.texi (Constant expressions): Update for wide_int.
13664         * doc/rtl.texi (const_double): Likewise.
13665         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
13666         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
13667         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
13668         (REAL_VALUE_FROM_INT): Remove.
13669         (TARGET_SUPPORTS_WIDE_INT): New.
13670         * doc/tm.texi: Regenerate.
13671         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
13672         * double-int.h: Include wide-int.h.
13673         (struct wi::int_traits): New.
13674         * dwarf2out.c (get_full_len): New.
13675         (dw_val_equal_p): Add case dw_val_class_wide_int.
13676         (size_of_loc_descr): Likewise.
13677         (output_loc_operands): Likewise.
13678         (insert_double): Remove.
13679         (insert_wide_int): New.
13680         (add_AT_wide): New.
13681         (print_die): Add case dw_val_class_wide_int.
13682         (attr_checksum): Likewise.
13683         (attr_checksum_ordered): Likewise.
13684         (same_dw_val_p): Likewise.
13685         (size_of_die): Likewise.
13686         (value_format): Likewise.
13687         (output_die): Likewise.
13688         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
13689         Use wide-int.
13690         (clz_loc_descriptor): Use wide-int interfaces.
13691         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
13692         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
13693         (round_up_to_align): Use wide-int interfaces.
13694         (field_byte_offset): Likewise.
13695         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
13696         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
13697         CONST_DOUBLE handling.  Use wide-int interfaces.
13698         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
13699         (gen_enumeration_type_die): Use add_AT_wide.
13700         (hash_loc_operands): Add case dw_val_class_wide_int.
13701         (compare_loc_operands): Likewise.
13702         * dwarf2out.h: Include wide-int.h.
13703         (wide_int_ptr): New.
13704         (enum dw_val_class): Add dw_val_class_wide_int.
13705         (struct dw_val_struct): Add val_wide.
13706         * emit-rtl.c (const_wide_int_htab): New.
13707         (const_wide_int_htab_hash): New.
13708         (const_wide_int_htab_eq): New.
13709         (lookup_const_wide_int): New.
13710         (const_double_htab_hash): Use wide-int interfaces.
13711         (const_double_htab_eq): Likewise.
13712         (rtx_to_double_int): Conditionally compile for wide-int.
13713         (immed_double_int_const): Rename to immed_wide_int_const and
13714         update for wide-int.
13715         (immed_double_const): Conditionally compile for wide-int.
13716         (init_emit_once): Use wide-int interfaces.
13717         * explow.c (plus_constant): Likewise.
13718         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
13719         (lshift_value): Use wide-int interfaces.
13720         (expand_mult): Likewise.
13721         (choose_multiplier): Likewise.
13722         (expand_smod_pow2): Likewise.
13723         (make_tree): Likewise.
13724         * expr.c (convert_modes): Consolidate handling of constants.
13725         Use wide-int interfaces.
13726         (emit_group_load_1): Add note.
13727         (store_expr): Update comment.
13728         (get_inner_reference): Use wide-int interfaces.
13729         (expand_constructor): Update comment.
13730         (expand_expr_real_2): Use wide-int interfaces.
13731         (expand_expr_real_1): Likewise.
13732         (reduce_to_bit_field_precision): Likewise.
13733         (const_vector_from_tree): Likewise.
13734         * final.c: Include wide-int-print.h.
13735         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
13736         * fixed-value.c: Include wide-int.h.
13737         (fixed_from_string): Use wide-int interfaces.
13738         (fixed_to_decimal): Likewise.
13739         (fixed_convert_from_real): Likewise.
13740         (real_convert_from_fixed): Likewise.
13741         * fold-const.h (mem_ref_offset): Return an offset_int.
13742         (div_if_zero_remainder): Remove code parameter.
13743         * fold-const.c (div_if_zero_remainder): Remove code parameter.
13744         Use wide-int interfaces.
13745         (may_negate_without_overflow_p): Use wide-int interfaces.
13746         (negate_expr_p): Likewise.
13747         (fold_negate_expr): Likewise.
13748         (int_const_binop_1): Likewise.
13749         (const_binop): Likewise.
13750         (fold_convert_const_int_from_int): Likewise.
13751         (fold_convert_const_int_from_real): Likewise.
13752         (fold_convert_const_int_from_fixed): Likewise.
13753         (fold_convert_const_fixed_from_int): Likewise.
13754         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
13755         (sign_bit_p): Use wide-int interfaces.
13756         (make_range_step): Likewise.
13757         (build_range_check): Likewise.  Pass an integer of the correct type
13758         instead of using integer_one_node.
13759         (range_predecessor): Pass an integer of the correct type instead
13760         of using integer_one_node.
13761         (range_successor): Likewise.
13762         (merge_ranges): Likewise.
13763         (unextend): Use wide-int interfaces.
13764         (extract_muldiv_1): Likewise.
13765         (fold_div_compare): Likewise.
13766         (fold_single_bit_test): Likewise.
13767         (fold_sign_changed_comparison): Likewise.
13768         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
13769         (fold_plusminus_mult_expr): Use wide-int interfaces.
13770         (native_encode_int): Likewise.
13771         (native_interpret_int): Likewise.
13772         (fold_unary_loc): Likewise.
13773         (pointer_may_wrap_p): Likewise.
13774         (size_low_cst): Likewise.
13775         (mask_with_tz): Likewise.
13776         (fold_binary_loc): Likewise.
13777         (fold_ternary_loc): Likewise.
13778         (multiple_of_p): Likewise.
13779         (tree_call_nonnegative_warnv_p): Update calls to
13780         tree_int_cst_min_precision and real_from_integer.
13781         (fold_negate_const): Use wide-int interfaces.
13782         (fold_abs_const): Likewise.
13783         (fold_relational_const): Use tree_int_cst_lt.
13784         (round_up_loc): Use wide-int interfaces.
13785         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
13786         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
13787         * gengtype.c: Remove include of double-int.h.
13788         (do_typedef): Use wide-int interfaces.
13789         (open_base_files): Add wide-int.h.
13790         (main): Add offset_int and widest_int typedefs.
13791         * gengtype-lex.l: Handle "^".
13792         (CXX_KEYWORD): Add "static".
13793         * gengtype-parse.c (require3): New.
13794         (require_template_declaration): Handle constant template arguments
13795         and nested templates.
13796         * gengtype-state.c: Don't include "double-int.h".
13797         * genpreds.c (write_one_predicate_function): Update comment.
13798         (write_tm_constrs_h): Add check for hval and lval use in
13799         CONST_WIDE_INT.
13800         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
13801         (add_to_sequence): Likewise.
13802         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
13803         and const_double_operand.
13804         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
13805         interfaces.
13806         * gimple-fold.c (get_base_constructor): Likewise.
13807         (fold_array_ctor_reference): Likewise.
13808         (fold_nonarray_ctor_reference): Likewise.
13809         (fold_const_aggregate_ref_1): Likewise.
13810         (gimple_val_nonnegative_real_p): Likewise.
13811         (gimple_fold_indirect_ref): Likewise.
13812         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
13813         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
13814         (struct slsr_cand_d): Change index to be widest_int.
13815         (struct incr_info_d): Change incr to be widest_int.
13816         (alloc_cand_and_find_basis): Use wide-int interfaces.
13817         (slsr_process_phi): Likewise.
13818         (backtrace_base_for_ref): Likewise.  Return a widest_int.
13819         (restructure_reference): Take a widest_int instead of a double_int.
13820         (slsr_process_ref): Use wide-int interfaces.
13821         (create_mul_ssa_cand): Likewise.
13822         (create_mul_imm_cand): Likewise.
13823         (create_add_ssa_cand): Likewise.
13824         (create_add_imm_cand): Take a widest_int instead of a double_int.
13825         (slsr_process_add): Use wide-int interfaces.
13826         (slsr_process_cast): Likewise.
13827         (slsr_process_copy): Likewise.
13828         (dump_candidate): Likewise.
13829         (dump_incr_vec): Likewise.
13830         (replace_ref): Likewise.
13831         (cand_increment): Likewise.  Return a widest_int.
13832         (cand_abs_increment): Likewise.
13833         (replace_mult_candidate): Take a widest_int instead of a double_int.
13834         (replace_unconditional_candidate): Use wide-int interfaces.
13835         (incr_vec_index): Take a widest_int instead of a double_int.
13836         (create_add_on_incoming_edge): Likewise.
13837         (create_phi_basis): Use wide-int interfaces.
13838         (replace_conditional_candidate): Likewise.
13839         (record_increment): Take a widest_int instead of a double_int.
13840         (record_phi_increments): Use wide-int interfaces.
13841         (phi_incr_cost): Take a widest_int instead of a double_int.
13842         (lowest_cost_path): Likewise.
13843         (total_savings): Likewise.
13844         (analyze_increments): Use wide-int interfaces.
13845         (ncd_with_phi): Take a widest_int instead of a double_int.
13846         (ncd_of_cand_and_phis): Likewise.
13847         (nearest_common_dominator_for_cands): Likewise.
13848         (insert_initializers): Use wide-int interfaces.
13849         (all_phi_incrs_profitable): Likewise.
13850         (replace_one_candidate): Likewise.
13851         (replace_profitable_candidates): Likewise.
13852         * godump.c: Include wide-int-print.h.
13853         (go_output_typedef): Use wide-int interfaces.
13854         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
13855         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
13856         (build_loop_iteration_domains): Likewise.
13857         * hooks.h: Include wide-int.h rather than double-int.h.
13858         (hook_bool_dint_dint_uint_bool_true): Delete.
13859         (hook_bool_wint_wint_uint_bool_true): Declare.
13860         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
13861         (hook_bool_wint_wint_uint_bool_true): New.
13862         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
13863         interfaces.
13864         (ubsan_expand_si_overflow_mul_check): Likewise.
13865         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
13866         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
13867         (get_ancestor_addr_info): Likewise.
13868         (ipa_modify_call_arguments): Likewise.
13869         * loop-doloop.c (doloop_modify): Likewise.
13870         (doloop_optimize): Likewise.
13871         * loop-iv.c (iv_number_of_iterations): Likewise.
13872         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
13873         (unroll_loop_constant_iterations): Likewise.
13874         (decide_unroll_runtime_iterations): Likewise.
13875         (unroll_loop_runtime_iterations): Likewise.
13876         (decide_peel_simple): Likewise.
13877         (decide_unroll_stupid): Likewise.
13878         * lto-streamer-in.c (streamer_read_wi): Add.
13879         (input_cfg): Use wide-int interfaces.
13880         (lto_input_tree_1): Likewise.
13881         * lto-streamer-out.c (streamer_write_wi): Add.
13882         (hash_tree): Use wide-int interfaces.
13883         (output_cfg): Likewise.
13884         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
13885         (GTFILES): Add wide-int.h and signop.h.
13886         (TAGS): Look for .cc files too.
13887         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
13888         * optabs.c (expand_subword_shift): Likewise.
13889         (expand_doubleword_shift): Likewise.
13890         (expand_absneg_bit): Likewise.
13891         (expand_copysign_absneg): Likewise.
13892         (expand_copysign_bit): Likewise.
13893         * postreload.c (reload_cse_simplify_set): Likewise.
13894         * predict.c (predict_iv_comparison): Likewise.
13895         * pretty-print.h: Include wide-int-print.h.
13896         (pp_wide_int) New.
13897         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
13898         * print-tree.c: Include wide-int-print.h.
13899         (print_node_brief): Use wide-int interfaces.
13900         (print_node): Likewise.
13901         * read-rtl.c (validate_const_wide_int): New.
13902         (read_rtx_code): Add CONST_WIDE_INT case.
13903         * real.c: Include wide-int.h.
13904         (real_to_integer2): Delete.
13905         (real_to_integer): New function, returning a wide_int.
13906         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
13907         (ten_to_ptwo): Update call to real_from_integer.
13908         (real_digit): Likewise.
13909         * real.h: Include signop.h, wide-int.h and insn-modes.h.
13910         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
13911         (REAL_VALUE_TO_INT): Delete.
13912         (real_to_integer): Declare a wide-int form.
13913         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
13914         * recog.c (const_int_operand): Improve comment.
13915         (const_scalar_int_operand): New.
13916         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
13917         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
13918         (split_double): Likewise.
13919         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
13920         (rtx_size): Likewise.
13921         (rtx_alloc_stat_v): New.
13922         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
13923         (cwi_output_hex): New.
13924         (iterative_hash_rtx): Handle CONST_WIDE_INT.
13925         (cwi_check_failed_bounds): New.
13926         * rtl.def (CONST_WIDE_INT): New.
13927         * rtl.h: Include <utility> and wide-int.h.
13928         (struct hwivec_def): New.
13929         (CWI_GET_NUM_ELEM): New.
13930         (CWI_PUT_NUM_ELEM): New.
13931         (struct rtx_def): Add num_elem and hwiv.
13932         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
13933         (CASE_CONST_UNIQUE): Likewise.
13934         (CASE_CONST_ANY): Likewise.
13935         (CONST_SCALAR_INT_P): Likewise.
13936         (CONST_WIDE_INT_P): New.
13937         (CWI_ELT): New.
13938         (HWIVEC_CHECK): New.
13939         (cwi_check_failed_bounds): New.
13940         (CWI_ELT): New.
13941         (HWIVEC_CHECK): New.
13942         (CONST_WIDE_INT_VEC) New.
13943         (CONST_WIDE_INT_NUNITS) New.
13944         (CONST_WIDE_INT_ELT) New.
13945         (rtx_mode_t): New type.
13946         (wi::int_traits <rtx_mode_t>): New.
13947         (wi::shwi): New.
13948         (wi::min_value): New.
13949         (wi::max_value): New.
13950         (rtx_alloc_v) New.
13951         (const_wide_int_alloc): New.
13952         (immed_wide_int_const): New.
13953         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
13954         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
13955         * signop.h: New file.
13956         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
13957         (simplify_const_unary_operation): Use wide-int interfaces.
13958         (simplify_binary_operation_1): Likewise.
13959         (simplify_const_binary_operation): Likewise.
13960         (simplify_const_relational_operation): Likewise.
13961         (simplify_immed_subreg): Likewise.
13962         * stmt.c (expand_case): Likewise.
13963         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
13964         signop rather than a bool.
13965         * stor-layout.c (layout_type): Use wide-int interfaces.
13966         (initialize_sizetypes): Update calls to
13967         set_min_and_max_values_for_integral_type.
13968         (set_min_and_max_values_for_integral_type): Take a signop rather
13969         than a bool.  Use wide-int interfaces.
13970         (fixup_signed_type): Update accordingly.  Remove
13971         HOST_BITS_PER_DOUBLE_INT limit.
13972         (fixup_unsigned_type): Likewise.
13973         * system.h (STATIC_CONSTANT_P): New.
13974         (STATIC_ASSERT): New.
13975         * target.def (can_use_doloop_p): Take widest_ints rather than
13976         double_ints.
13977         * target.h: Include wide-int.h rather than double-int.h.
13978         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
13979         than double_ints.
13980         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
13981         rather than INT_CST_LT_UNSIGNED.
13982         (can_use_doloop_if_innermost): Take widest_ints rather than
13983         double_ints.
13984         * tree-affine.c: Include wide-int-print.h.
13985         (double_int_ext_for_comb): Delete.
13986         (wide_int_ext_for_comb): New.
13987         (aff_combination_zero): Use wide-int interfaces.
13988         (aff_combination_const): Take a widest_int instead of a double_int.
13989         (aff_combination_elt): Use wide-int interfaces.
13990         (aff_combination_scale): Take a widest_int instead of a double_int.
13991         (aff_combination_add_elt): Likewise.
13992         (aff_combination_add_cst): Likewise.
13993         (aff_combination_add): Use wide-int interfaces.
13994         (aff_combination_convert): Likewise.
13995         (tree_to_aff_combination): Likewise.
13996         (add_elt_to_tree): Take a widest_int instead of a double_int.
13997         (aff_combination_to_tree): Use wide-int interfaces.
13998         (aff_combination_remove_elt): Likewise.
13999         (aff_combination_add_product): Take a widest_int instead of
14000         a double_int.
14001         (aff_combination_mult): Use wide-int interfaces.
14002         (aff_combination_expand): Likewise.
14003         (double_int_constant_multiple_p): Delete.
14004         (wide_int_constant_multiple_p): New.
14005         (aff_combination_constant_multiple_p): Take a widest_int pointer
14006         instead of a double_int pointer.
14007         (print_aff): Use wide-int interfaces.
14008         (get_inner_reference_aff): Take a widest_int pointer
14009         instead of a double_int pointer.
14010         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
14011         * tree-affine.h: Include wide-int.h.
14012         (struct aff_comb_elt): Change type of coef to widest_int.
14013         (struct affine_tree_combination): Change type of offset to widest_int.
14014         (double_int_ext_for_comb): Delete.
14015         (wide_int_ext_for_comb): New.
14016         (aff_combination_const): Use widest_int instead of double_int.
14017         (aff_combination_scale): Likewise.
14018         (aff_combination_add_elt): Likewise.
14019         (aff_combination_constant_multiple_p): Likewise.
14020         (get_inner_reference_aff): Likewise.
14021         (aff_comb_cannot_overlap_p): Likewise.
14022         (aff_combination_zero_p): Use wide-int interfaces.
14023         * tree.c: Include tree.h.
14024         (init_ttree): Use make_int_cst.
14025         (tree_code_size): Removed code for INTEGER_CST case.
14026         (tree_size): Add INTEGER_CST case.
14027         (make_node_stat): Update comment.
14028         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
14029         (build_int_cst_type): Use wide-int interfaces.
14030         (double_int_to_tree): Likewise.
14031         (double_int_fits_to_tree_p): Delete.
14032         (force_fit_type_double): Delete.
14033         (force_fit_type): New.
14034         (int_cst_hash_hash): Use wide-int interfaces.
14035         (int_cst_hash_eq): Likewise.
14036         (build_int_cst_wide): Delete.
14037         (wide_int_to_tree): New.
14038         (cache_integer_cst): Use wide-int interfaces.
14039         (build_low_bits_mask): Likewise.
14040         (cst_and_fits_in_hwi): Likewise.
14041         (real_value_from_int_cst): Likewise.
14042         (make_int_cst_stat): New.
14043         (integer_zerop): Use wide_int interfaces.
14044         (integer_onep): Likewise.
14045         (integer_all_onesp): Likewise.
14046         (integer_pow2p): Likewise.
14047         (integer_nonzerop): Likewise.
14048         (tree_log2): Likewise.
14049         (tree_floor_log2): Likewise.
14050         (tree_ctz): Likewise.
14051         (int_size_in_bytes): Likewise.
14052         (mem_ref_offset): Return an offset_int rather than a double_int.
14053         (build_type_attribute_qual_variant): Use wide_int interfaces.
14054         (type_hash_eq): Likewise
14055         (tree_int_cst_equal): Likewise.
14056         (tree_int_cst_lt): Delete.
14057         (tree_int_cst_compare): Likewise.
14058         (tree_fits_shwi_p): Use wide_int interfaces.
14059         (tree_fits_uhwi_p): Likewise.
14060         (tree_int_cst_sign_bit): Likewise.
14061         (tree_int_cst_sgn): Likewise.
14062         (tree_int_cst_min_precision): Take a signop rather than a bool.
14063         (simple_cst_equal): Use wide_int interfaces.
14064         (compare_tree_int): Likewise.
14065         (iterative_hash_expr): Likewise.
14066         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
14067         INT_CST_LT.
14068         (get_type_static_bounds): Use wide_int interfaces.
14069         (tree_int_cst_elt_check_failed): New.
14070         (build_common_tree_nodes): Reordered to set prec before filling in
14071         value.
14072         (int_cst_value): Check cst_and_fits_in_hwi.
14073         (widest_int_cst_value): Use wide_int interfaces.
14074         (upper_bound_in_type): Likewise.
14075         (lower_bound_in_type): Likewise.
14076         (num_ending_zeros): Likewise.
14077         (drop_tree_overflow): Likewise.
14078         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
14079         (gen_conditions_for_pow_cst_base): Likewise.
14080         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
14081         (group_case_labels_stmt): Use wide-int interfaces.
14082         (verify_gimple_assign_binary): Likewise.
14083         (print_loop): Likewise.
14084         * tree-chrec.c (tree_fold_binomial): Likewise.
14085         * tree-core.h (struct tree_base): Add int_length.
14086         (struct tree_int_cst): Change rep of value.
14087         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
14088         (dr_may_alias_p): Likewise.
14089         (max_stmt_executions_tree): Likewise.
14090         * tree.def (INTEGER_CST): Update comment.
14091         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
14092         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
14093         * tree-dump.c: Include wide-int.h and wide-int-print.h.
14094         (dequeue_and_dump): Use wide-int interfaces.
14095         * tree.h: Include wide-int.h.
14096         (NULL_TREE): Moved to earlier loc in file.
14097         (TREE_INT_CST_ELT_CHECK): New.
14098         (tree_int_cst_elt_check_failed): New.
14099         (TYPE_SIGN): New.
14100         (TREE_INT_CST): Delete.
14101         (TREE_INT_CST_LOW): Use wide-int interfaces.
14102         (TREE_INT_CST_HIGH): Delete.
14103         (TREE_INT_CST_NUNITS): New.
14104         (TREE_INT_CST_EXT_NUNITS): Likewise.
14105         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
14106         (TREE_INT_CST_ELT): Likewise.
14107         (INT_CST_LT): Delete.
14108         (tree_int_cst_elt_check): New (two forms).
14109         (type_code_size): Update comment.
14110         (make_int_cst_stat, make_int_cst): New.
14111         (tree_to_double_int): Delete.
14112         (double_int_fits_to_tree_p): Delete.
14113         (force_fit_type_double): Delete.
14114         (build_int_cstu): Replace with out-of-line function.
14115         (build_int_cst_wide): Delete.
14116         (tree_int_cst_lt): Define inline.
14117         (tree_int_cst_le): New.
14118         (tree_int_cst_compare): Define inline.
14119         (tree_int_cst_min_precision): Take a signop rather than a bool.
14120         (wi::int_traits <const_tree>): New.
14121         (wi::int_traits <tree>): New.
14122         (wi::extended_tree): New.
14123         (wi::int_traits <wi::extended_tree>): New.
14124         (wi::to_widest): New.
14125         (wi::to_offset): New.
14126         (wi::fits_to_tree_p): New.
14127         (wi::min_value): New.
14128         (wi::max_value): New.
14129         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
14130         (copy_tree_body_r): Likewise.
14131         * tree-object-size.c (compute_object_offset): Likewise.
14132         (addr_object_size): Likewise.
14133         * tree-predcom.c: Include wide-int-print.h.
14134         (struct dref_d): Change type of offset to widest_int.
14135         (dump_dref): Call wide-int printer.
14136         (aff_combination_dr_offset): Use wide-int interfaces.
14137         (determine_offset): Take a widest_int pointer rather than a
14138         double_int pointer.
14139         (split_data_refs_to_components): Use wide-int interfaces.
14140         (suitable_component_p): Likewise.
14141         (order_drefs): Likewise.
14142         (add_ref_to_chain): Likewise.
14143         (valid_initializer_p): Likewise.
14144         (determine_roots_comp): Likewise.
14145         * tree-pretty-print.c: Include wide-int-print.h.
14146         (dump_generic_node): Use wide-int interfaces.
14147         * tree-sra.c (sra_ipa_modify_expr): Likewise.
14148         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
14149         (move_fixed_address_to_symbol): Likewise.
14150         (move_hint_to_base): Likewise.
14151         (move_pointer_to_base): Likewise.
14152         (move_variant_to_index): Likewise.
14153         (most_expensive_mult_to_index): Likewise.
14154         (addr_to_parts): Likewise.
14155         (copy_ref_info): Likewise.
14156         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
14157         (indirect_refs_may_alias_p): Likewise.
14158         (stmt_kills_ref_p_1): Likewise.
14159         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
14160         * tree-ssa-ccp.c: Update comment at top of file.  Include
14161         wide-int-print.h.
14162         (struct prop_value_d): Change type of mask to widest_int.
14163         (extend_mask): New function.
14164         (dump_lattice_value): Use wide-int interfaces.
14165         (get_default_value): Likewise.
14166         (set_constant_value): Likewise.
14167         (set_value_varying): Likewise.
14168         (valid_lattice_transition): Likewise.
14169         (set_lattice_value): Likewise.
14170         (value_to_double_int): Delete.
14171         (value_to_wide_int): New.
14172         (get_value_from_alignment): Use wide-int interfaces.
14173         (get_value_for_expr): Likewise.
14174         (do_dbg_cnt): Likewise.
14175         (ccp_finalize): Likewise.
14176         (ccp_lattice_meet): Likewise.
14177         (bit_value_unop_1): Use widest_ints rather than double_ints.
14178         (bit_value_binop_1): Likewise.
14179         (bit_value_unop): Use wide-int interfaces.
14180         (bit_value_binop): Likewise.
14181         (bit_value_assume_aligned): Likewise.
14182         (evaluate_stmt): Likewise.
14183         (ccp_fold_stmt): Likewise.
14184         (visit_cond_stmt): Likewise.
14185         (ccp_visit_stmt): Likewise.
14186         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
14187         (constant_pointer_difference): Likewise.
14188         (associate_pointerplus): Likewise.
14189         (combine_conversions): Likewise.
14190         * tree-ssa-loop.h: Include wide-int.h.
14191         (struct tree_niter_desc): Change type of max to widest_int.
14192         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
14193         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
14194         (remove_redundant_iv_tests): Likewise.
14195         (canonicalize_loop_induction_variables): Likewise.
14196         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
14197         (constant_multiple_of): Take a widest_int pointer instead of
14198         a double_int pointer.
14199         (get_computation_aff): Use wide-int interfaces.
14200         (ptr_difference_cost): Likewise.
14201         (difference_cost): Likewise.
14202         (get_loop_invariant_expr_id): Likewise.
14203         (get_computation_cost_at): Likewise.
14204         (iv_elimination_compare_lt): Likewise.
14205         (may_eliminate_iv): Likewise.
14206         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
14207         instead of double_int.
14208         (max_loop_iterations): Likewise.
14209         (max_stmt_executions): Likewise.
14210         (estimated_stmt_executions): Likewise.
14211         * tree-ssa-loop-niter.c: Include wide-int-print.h.
14212         (split_to_var_and_offset): Use wide-int interfaces.
14213         (determine_value_range): Likewise.
14214         (bound_difference_of_offsetted_base): Likewise.
14215         (bounds_add): Take a widest_int instead of a double_int.
14216         (number_of_iterations_ne_max): Use wide-int interfaces.
14217         (number_of_iterations_ne): Likewise.
14218         (number_of_iterations_lt_to_ne): Likewise.
14219         (assert_loop_rolls_lt): Likewise.
14220         (number_of_iterations_lt): Likewise.
14221         (number_of_iterations_le): Likewise.
14222         (number_of_iterations_cond): Likewise.
14223         (number_of_iterations_exit): Likewise.
14224         (finite_loop_p): Likewise.
14225         (derive_constant_upper_bound_assign): Likewise.
14226         (derive_constant_upper_bound): Return a widest_int.
14227         (derive_constant_upper_bound_ops): Likewise.
14228         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
14229         (record_estimate): Take a widest_int rather than a double_int.
14230         (record_nonwrapping_iv): Use wide-int interfaces.
14231         (double_int_cmp): Delete.
14232         (wide_int_cmp): New.
14233         (bound_index): Take a widest_int rather than a double_int.
14234         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
14235         (maybe_lower_iteration_bound): Likewise.
14236         (estimate_numbers_of_iterations_loop): Likewise.
14237         (estimated_loop_iterations): Take a widest_int pointer than than
14238         a double_int pointer.
14239         (estimated_loop_iterations_int): Use wide-int interfaces.
14240         (max_loop_iterations): Take a widest_int pointer than than
14241         a double_int pointer.
14242         (max_loop_iterations_int): Use wide-int interfaces.
14243         (max_stmt_executions): Take a widest_int pointer than than
14244         a double_int pointer.
14245         (estimated_stmt_executions): Likewise.
14246         (n_of_executions_at_most): Use wide-int interfaces.
14247         (scev_probably_wraps_p): Likewise.
14248         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
14249         to real_to_integer.
14250         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
14251         interfaces.
14252         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
14253         double_ints.  Adjust for trailing_wide_ints <3> representation.
14254         (set_nonzero_bits): Likewise.
14255         (get_range_info): Return wide_ints rather than double_ints.
14256         Adjust for trailing_wide_ints <3> representation.
14257         (get_nonzero_bits): Likewise.
14258         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
14259         representation.
14260         * tree-ssanames.h (struct range_info_def): Replace min, max and
14261         nonzero_bits with a trailing_wide_ints <3>.
14262         (set_range_info): Use wide_int_refs rather than double_ints.
14263         (set_nonzero_bits): Likewise.
14264         (get_range_info): Return wide_ints rather than double_ints.
14265         (get_nonzero_bits): Likewise.
14266         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
14267         * tree-ssa-pre.c (phi_translate_1): Likewise.
14268         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
14269         (acceptable_pow_call): Likewise.
14270         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
14271         interfaces.
14272         (vn_reference_fold_indirect): Likewise.
14273         (vn_reference_maybe_forwprop_address): Likewise.
14274         (valueize_refs_1): Likewise.
14275         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
14276         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
14277         tree_int_cst_lt and tree_int_cst_le.
14278         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
14279         interfaces.
14280         (streamer_alloc_tree): Likewise.
14281         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
14282         (streamer_write_tree_header): Likewise.
14283         (streamer_write_integer_cst): Likewise.
14284         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
14285         (build_constructors): Likewise.
14286         (array_value_type): Likewise.
14287         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
14288         (vect_check_gather): Likewise.
14289         * tree-vect-generic.c (build_replicated_const): Likewise.
14290         (expand_vector_divmod): Likewise.
14291         * tree-vect-loop.c (vect_transform_loop): Likewise.
14292         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
14293         (vect_do_peeling_for_alignment): Likewise.
14294         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
14295         * tree-vrp.c: Include wide-int.h.
14296         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
14297         (extract_range_from_assert): Use wide-int interfaces.
14298         (vrp_int_const_binop): Likewise.
14299         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
14300         double_int pointers.
14301         (ranges_from_anti_range): Use wide-int interfaces.
14302         (quad_int_cmp): Delete.
14303         (quad_int_pair_sort): Likewise.
14304         (extract_range_from_binary_expr_1): Use wide-int interfaces.
14305         (extract_range_from_unary_expr_1): Likewise.
14306         (adjust_range_with_scev): Likewise.
14307         (masked_increment): Take and return wide_ints rather than double_ints.
14308         (register_edge_assert_for_2): Use wide-int interfaces.
14309         (check_array_ref): Likewise.
14310         (search_for_addr_array): Likewise.
14311         (maybe_set_nonzero_bits): Likewise.
14312         (union_ranges): Pass an integer of the correct type instead of
14313         using integer_one_node.
14314         (intersect_ranges): Likewise.
14315         (simplify_truth_ops_using_ranges): Likewise.
14316         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
14317         (range_fits_type_p): Likewise.
14318         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
14319         a bool.
14320         (simplify_conversion_using_ranges): Use wide-int interfaces.
14321         (simplify_float_conversion_using_ranges): Likewise.
14322         (vrp_finalize): Likewise.
14323         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
14324         (gimple_stringops_transform): Likewise.
14325         * varasm.c (decode_addr_const): Likewise.
14326         (const_hash_1): Likewise.
14327         (const_rtx_hash_1): Likewise
14328         (output_constant): Likewise.
14329         (array_size_for_constructor): Likewise.
14330         (output_constructor_regular_field): Likewise.
14331         (output_constructor_bitfield): Likewise.
14332         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
14333         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
14334         GENERATOR_FILEs.
14335         * gencheck.c: Define BITS_PER_UNIT.
14336         * wide-int.cc: New.
14337         * wide-int.h: New.
14338         * wide-int-print.cc: New.
14339         * wide-int-print.h: New.
14341 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14343         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
14345 2014-05-06  Richard Biener  <rguenther@suse.de>
14347         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
14348         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
14349         (TODO_verify_all): Adjust.
14350         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
14351         TODO_verify_stmts and TODO_verify_rtl_sharing.
14352         * bb-reorder.c: Likewise.
14353         * cfgexpand.c: Likewise.
14354         * cprop.c: Likewise.
14355         * cse.c: Likewise.
14356         * function.c: Likewise.
14357         * fwprop.c: Likewise.
14358         * gcse.c: Likewise.
14359         * gimple-ssa-isolate-paths.c: Likewise.
14360         * gimple-ssa-strength-reduction.c: Likewise.
14361         * ipa-split.c: Likewise.
14362         * loop-init.c: Likewise.
14363         * loop-unroll.c: Likewise.
14364         * lower-subreg.c: Likewise.
14365         * modulo-sched.c: Likewise.
14366         * postreload-gcse.c: Likewise.
14367         * predict.c: Likewise.
14368         * recog.c: Likewise.
14369         * sched-rgn.c: Likewise.
14370         * store-motion.c: Likewise.
14371         * tracer.c: Likewise.
14372         * trans-mem.c: Likewise.
14373         * tree-call-cdce.c: Likewise.
14374         * tree-cfg.c: Likewise.
14375         * tree-cfgcleanup.c: Likewise.
14376         * tree-complex.c: Likewise.
14377         * tree-eh.c: Likewise.
14378         * tree-emutls.c: Likewise.
14379         * tree-if-conv.c: Likewise.
14380         * tree-into-ssa.c: Likewise.
14381         * tree-loop-distribution.c: Likewise.
14382         * tree-object-size.c: Likewise.
14383         * tree-parloops.c: Likewise.
14384         * tree-pass.h: Likewise.
14385         * tree-sra.c: Likewise.
14386         * tree-ssa-ccp.c: Likewise.
14387         * tree-ssa-copy.c: Likewise.
14388         * tree-ssa-copyrename.c: Likewise.
14389         * tree-ssa-dce.c: Likewise.
14390         * tree-ssa-dom.c: Likewise.
14391         * tree-ssa-dse.c: Likewise.
14392         * tree-ssa-forwprop.c: Likewise.
14393         * tree-ssa-ifcombine.c: Likewise.
14394         * tree-ssa-loop-ch.c: Likewise.
14395         * tree-ssa-loop-ivcanon.c: Likewise.
14396         * tree-ssa-loop.c: Likewise.
14397         * tree-ssa-math-opts.c: Likewise.
14398         * tree-ssa-phiopt.c: Likewise.
14399         * tree-ssa-phiprop.c: Likewise.
14400         * tree-ssa-pre.c: Likewise.
14401         * tree-ssa-reassoc.c: Likewise.
14402         * tree-ssa-sink.c: Likewise.
14403         * tree-ssa-strlen.c: Likewise.
14404         * tree-ssa-tail-merge.c: Likewise.
14405         * tree-ssa-uncprop.c: Likewise.
14406         * tree-switch-conversion.c: Likewise.
14407         * tree-tailcall.c: Likewise.
14408         * tree-vect-generic.c: Likewise.
14409         * tree-vectorizer.c: Likewise.
14410         * tree-vrp.c: Likewise.
14411         * tsan.c: Likewise.
14412         * var-tracking.c: Likewise.
14413         * bt-load.c: Likewise.
14414         * cfgcleanup.c: Likewise.
14415         * combine-stack-adj.c: Likewise.
14416         * combine.c: Likewise.
14417         * compare-elim.c: Likewise.
14418         * config/epiphany/resolve-sw-modes.c: Likewise.
14419         * config/i386/i386.c: Likewise.
14420         * config/mips/mips.c: Likewise.
14421         * config/s390/s390.c: Likewise.
14422         * config/sh/sh_treg_combine.cc: Likewise.
14423         * config/sparc/sparc.c: Likewise.
14424         * dce.c: Likewise.
14425         * dse.c: Likewise.
14426         * final.c: Likewise.
14427         * ifcvt.c: Likewise.
14428         * mode-switching.c: Likewise.
14429         * passes.c: Likewise.
14430         * postreload.c: Likewise.
14431         * ree.c: Likewise.
14432         * reg-stack.c: Likewise.
14433         * regcprop.c: Likewise.
14434         * regrename.c: Likewise.
14435         * web.c: Likewise.
14437 2014-05-06  Richard Biener  <rguenther@suse.de>
14439         PR middle-end/61070
14440         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
14441         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
14443 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
14445         PR ipa/60965
14446         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
14448 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
14449             Tom de Vries  <tom@codesourcery.com>
14451         * target.def (call_fusage_contains_non_callee_clobbers): New
14452         DEFHOOKPOD.
14453         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
14454         Hooks to @menu.
14455         (@node Miscellaneous Register Hooks): New node.
14456         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
14457         * doc/tm.texi: Regenerate.
14459 2014-05-05  Marek Polacek  <polacek@redhat.com>
14461         PR driver/61065
14462         * opts.c (common_handle_option): Call error_at instead of warning_at.
14464 2014-05-05  Richard Biener  <rguenther@suse.de>
14466         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
14467         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
14468         under the TODO_verify_il umbrella.
14470 2014-05-05  Richard Biener  <rguenther@suse.de>
14472         * passes.c (execute_function_todo): Move TODO_verify_flow under
14473         the TODO_verify_ul umbrella.
14475 2014-05-05  Richard Biener  <rguenther@suse.de>
14477         PR middle-end/61010
14478         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
14479         X & CST away from a CST that is the mask of a mode.
14481 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14483         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
14484         int argument to enum machine_mode.
14485         (picochip_class_max_nregs): Ditto.
14486         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
14487         (picochip_class_max_nregs): Ditto.
14489 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14491         * target.def: Add new target hook.
14492         * doc/tm.texi: Regenerate.
14493         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
14494         * targhooks.c (default_keep_leaf_when_profiled): New function.
14496         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
14497         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
14499 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
14501         PR tree-optimization/60363
14502         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
14503         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
14504         (update_destination_phis): New parameter.
14505         (create_edge_and_update_destination_phis): Ditto.
14506         (ssa_fix_duplicate_block_edges): Pass new arguments.
14507         (thread_single_edge): Ditto.
14509 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
14511         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
14512         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
14513         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
14514         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
14515         Use RS6000_BTM_HARD_FLOAT.
14516         (BU_MISC_2): Likewise.
14517         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
14518         RS6000_BTM_HARD_FLOAT.
14519         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
14520         is explicitly used.
14521         (rs6000_invalid_builtin): Add hard floating builtin support.
14522         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
14523         hard float builtins.
14524         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
14526 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
14528         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
14529         Add missing function* argument.
14531 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
14533         * lra-constraints.c (valid_address_p): Move earlier in file.
14534         Add a constraint argument to the address_info version.
14535         (satisfies_memory_constraint_p): New function.
14536         (satisfies_address_constraint_p): Likewise.
14537         (process_alt_operands, curr_insn_transform): Use them.
14538         (process_address): Pass the constraint to valid_address_p when
14539         checking address operands.
14541 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
14543         * config/mips/mips.c (mips_isa_rev): New variable.
14544         (mips_set_architecture): Set it.
14545         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
14546         from mips_isa_rev.
14547         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
14548         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
14549         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
14550         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
14551         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
14552         conditions in terms of mips_isa_rev.
14553         (mips_isa_rev): Declare.
14555 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
14557         * config/sh/sh-mem.cc: Use tabs instead of spaces.
14558         (prob_unlikely, prob_likely): Make variables const.
14560 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
14562         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
14564 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
14566         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
14568 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
14570         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
14571         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
14572         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
14573         functions.
14574         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
14575         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
14576         sh_pass_in_reg_p.
14577         Replace usage of ROUND_REG with sh_round_reg.
14578         Use CEIL instead of ROUND_ADVANCE.
14580 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
14582         PR target/61026
14583         * config/sh/sh.c: Include stdlib headers before everything else.
14585 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
14587         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
14588         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
14589         (gimplify_adjust_omp_clauses): Simd region is never
14590         directly nested in combined parallel.  Instead, for linear
14591         with copyin/copyout, if in combined for simd loop, make decl
14592         firstprivate/lastprivate on OMP_FOR.
14593         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
14594         expand_omp_for_static_chunk): When setting endvar, also set
14595         fd->loop.v to the same value.
14597 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
14599         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
14601 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
14603         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
14604         expression.
14606 2014-05-02  Marek Polacek  <polacek@redhat.com>
14608         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
14610 2014-05-02  Kito Cheng  <kito@0xlab.org>
14612         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
14613         to a C expression marco.
14614         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
14615         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
14616         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
14617         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
14618         HONOR_REG_ALLOC_ORDER.
14619         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
14621 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14623         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
14625 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14627         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
14629 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
14631         * tree-if-conv.c (is_cond_scalar_reduction): New function.
14632         (convert_scalar_cond_reduction): Likewise.
14633         (predicate_scalar_phi): Add recognition and transformation
14634         of simple conditioanl reduction to be vectorizable.
14636 2014-05-01  Marek Polacek  <polacek@redhat.com>
14638         PR c/43245
14639         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
14641 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
14643         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
14644         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
14645         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
14646         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
14647         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
14648         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
14649         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
14650         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
14652 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
14654         * config/arc/arc.opt (mlra): Move comment above option name
14655         to avoid mis-parsing as language options.
14657 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14659         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
14660         * config/sol2.h: ... here.
14661         * config/sol2-10.h: Remove.
14663         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
14664         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
14665         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
14666         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
14667         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
14668         * config/sol2.h: ... here.
14669         (SECTION_NAME_FORMAT): Don't redefine.
14670         (STARTFILE_ARCH32_SPEC): Rename to ...
14671         (STARTFILE_ARCH_SPEC): ... this.
14672         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
14673         * config/sparc/sol2.h: ... here.
14674         (SECTION_NAME_FORMAT): Don't undef.
14675         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
14676         (SUBTARGET_EXTRA_SPECS): Remove.
14677         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
14679         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
14680         (MD_STARTFILE_PREFIX): Remove.
14681         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
14682         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
14683         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
14684         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
14685         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
14686         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
14687         * config/i386/sol2.h: ... here.
14688         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
14689         * config/i386/sol2-bi.h: Remove.
14690         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
14691         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
14693         * config/i386/t-sol2-64: Rename to ...
14694         * config/i386/t-sol2: ... this.
14695         * config/sparc/t-sol2-64: Rename to ...
14696         * config/sparc/t-sol2: ... this.
14698         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
14699         sol2_tm_file_head, sol2_tm_file_tail.
14700         Include ${cpu_type}/sol2.h before sol2.h.
14701         Remove sol2-10.h.
14702         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
14703         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
14704         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
14705         Reflect i386/t-sol2-64 renaming.
14706         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
14707         Reflect sparc/t-sol2-64 renaming.
14709 2014-04-30  Richard Biener  <rguenther@suse.de>
14711         * passes.c (execute_function_todo): Move TODO_verify_stmts
14712         and TODO_verify_ssa under the TODO_verify_il umbrella.
14713         * tree-ssa.h (verify_ssa): Adjust prototype.
14714         * tree-ssa.c (verify_ssa): Add parameter to tell whether
14715         we should verify SSA operands.
14716         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
14717         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
14718         whether we should verify whether not throwing stmts have EH info.
14719         * graphite-scop-detection.c (create_sese_edges): Adjust.
14720         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
14721         * tree-eh.c (lower_try_finally_switch): Do not add the
14722         default case label twice.
14724 2014-04-30  Marek Polacek  <polacek@redhat.com>
14726         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
14727         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
14728         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
14729         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
14731 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
14733         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
14734         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
14735         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
14736         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
14737         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
14738         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
14739         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
14740         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
14742 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
14744         * tree-cfg.c (dump_function_to_file): Dump the return type of
14745         functions, in a line to itself before the function body, mimicking
14746         the layout of a C function.
14748 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
14750         PR tree-optimization/60971
14751         * tree-tailcall.c (process_assignment): Reject conversions which
14752         reduce precision.
14754 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
14756         * calls.c (initialize_argument_information): Always treat
14757         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
14758         (expand_call): Likewise.
14759         (emit_library_call_calue_1): Likewise.
14760         * expr.c (PUSH_ARGS_REVERSED): Do not define.
14761         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
14762         code accordingly.
14764 2014-04-29  Nick Clifton  <nickc@redhat.com>
14766         * config/msp430/msp430.md (umulsidi): Fix typo.
14767         (mulhisi3): Enable even inside interrupt handlers.
14768         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
14769         bigger return address pushed in large mode.
14771 2014-04-29  Nick Clifton  <nickc@redhat.com>
14773         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
14774         (arc_init_reg_tables): Use a machine_mode enum to iterate over
14775         available modes.
14776         * config/m32r/m32r.c (init_reg_tables): Likewise.
14777         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
14778         enum to hold the modes.
14780 2014-04-29  Richard Biener  <rguenther@suse.de>
14782         * dominance.c (free_dominance_info): Add overload with
14783         function parameter.
14784         (dom_info_state): Likewise.
14785         (dom_info_available_p): Likewise.
14786         * basic-block.h (free_dominance_info, dom_info_state,
14787         dom_info_available_p): Declare overloads.
14788         * passes.c (execute_function_todo): Verify that verifiers
14789         don't change dominator info state.  Drop dominator info
14790         for IPA pass invocations.
14791         * cgraph.c (release_function_body): Restore asserts that
14792         dominator information is released.
14794 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
14796         * doc/invoke.texi: Fix typo.
14797         * tree-vrp.c: Fix typos.
14798         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
14800 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
14802         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
14804 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
14806         * config/aarch64/aarch64-builtins.c
14807         (aarch64_types_storestruct_lane_qualifiers): New.
14808         (TYPES_STORESTRUCT_LANE): Likewise.
14809         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
14810         (st3_lane): Likewise.
14811         (st4_lane): Likewise.
14812         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
14813         (vec_store_lanesci_lane<mode>): Likewise.
14814         (vec_store_lanesxi_lane<mode>): Likewise.
14815         (aarch64_st2_lane<VQ:mode>): Likewise.
14816         (aarch64_st3_lane<VQ:mode>): Likewise.
14817         (aarch64_st4_lane<VQ:mode>): Likewise.
14818         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
14819         * config/aarch64/arm_neon.h
14820         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
14821         use new macro arguments.
14822         (__ST3_LANE_FUNC): Likewise.
14823         (__ST4_LANE_FUNC): Likewise.
14824         * config/aarch64/iterators.md (V_TWO_ELEM): New.
14825         (V_THREE_ELEM): Likewise.
14826         (V_FOUR_ELEM): Likewise.
14828 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
14830         * doc/gimple.texi: Replace the description of the now-defunct
14831         union gimple_statement_d with a diagram showing the
14832         gimple_statement_base class hierarchy and its relationships to
14833         the GSS_ and GIMPLE_ enums.
14835 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
14837         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
14838         * config/aarch64/aarch64.c
14839         (aarch64_cannot_change_mode_class): Weaken conditions.
14840         (aarch64_modes_tieable_p): New.
14841         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
14843 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
14845         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
14846         (loadsync_<mode>): Change mode.
14847         (load_quadpti, store_quadpti): New.
14848         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
14849         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
14851 2014-04-28  Martin Jambor  <mjambor@suse.cz>
14853         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
14854         same alias type as the original statement.
14855         (subreplacement_assignment_data): New type.
14856         (handle_unscalarized_data_in_subtree): New type of parameter,
14857         generate new memory accesses with same alias type as the original
14858         statement.
14859         (load_assign_lhs_subreplacements): Likewise.
14860         (sra_modify_constructor_assign): Generate new memory accesses with
14861         same alias type as the original statement.
14863 2014-04-28  Richard Biener  <rguenther@suse.de>
14865         * tree-pass.h (TODO_verify_il): Define.
14866         (TODO_verify_all): Complete properly.
14867         * passes.c (execute_function_todo): Move existing loop-closed
14868         SSA verification under TODO_verify_il.
14869         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
14870         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
14871         Fix tree sharing issue.
14873 2014-04-28  Richard Biener  <rguenther@suse.de>
14875         PR middle-end/60092
14876         * builtins.def (DEF_C11_BUILTIN): Add.
14877         (BUILT_IN_ALIGNED_ALLOC): Likewise.
14878         * coretypes.h (enum function_class): Add function_c11_misc.
14879         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14880         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
14881         (call_may_clobber_ref_p_1): Likewise.
14882         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
14883         (mark_all_reaching_defs_necessary_1): Likewise.
14884         (propagate_necessity): Likewise.
14885         (eliminate_unnecessary_stmts): Likewise.
14886         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
14888 2014-04-28  Richard Biener  <rguenther@suse.de>
14890         * tree-vrp.c (vrp_var_may_overflow): Remove.
14891         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
14892         with overflow immediately bump to one before that value and
14893         let iteration figure out overflow status.
14895 2014-04-28  Richard Biener  <rguenther@suse.de>
14897         * configure.ac: Do valgrind header checks unconditionally.
14898         Add --enable-valgrind-annotations.
14899         * system.h: Guard valgrind header inclusion with
14900         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
14901         * alloc-pool.c (pool_alloc, pool_free): Use
14902         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
14903         to guard possibly dead code.
14904         * config.in: Regenerated.
14905         * configure: Likewise.
14907 2014-04-28  Jeff Law  <law@redhat.com>
14909         PR tree-optimization/60902
14910         * tree-ssa-threadedge.c
14911         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
14912         over real defs when invalidating outputs from statements that do not
14913         produce useful outputs for threading.
14915 2014-04-28  Richard Biener  <rguenther@suse.de>
14917         PR tree-optimization/60979
14918         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
14919         SCOPs that end in a block with a successor with abnormal
14920         predecessors.
14922 2014-04-28  Richard Biener  <rguenther@suse.de>
14924         * tree-pass.h (execute_pass_list): Adjust prototype.
14925         * passes.c (pass_manager::execute_early_local_passes): Adjust.
14926         (do_per_function): Change callback signature, push all actual
14927         work to the callbals.
14928         (do_per_function_toporder): Likewise.
14929         (execute_function_dump): Adjust.
14930         (execute_function_todo): Likewise.
14931         (clear_last_verified): Likewise.
14932         (verify_curr_properties): Likewise.
14933         (update_properties_after_pass): Likewise.
14934         (execute_pass_list_1): Split out from ...
14935         (execute_pass_list): ... here.  Adjust.
14936         (execute_ipa_pass_list): Likewise.
14937         * cgraphunit.c (cgraph_add_new_function): Adjust.
14938         (analyze_function): Likewise.
14939         (expand_function): Likewise.
14940         * cgraph.c (release_function_body): Free dominance info
14941         here instead of asserting it was magically freed elsewhere.
14943 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
14945         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
14946         * configure: Regenerate.
14947         * config/sparc/sparc.opt (muser-mode): New option.
14948         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
14949         for LEON3.
14950         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
14951         * doc/invoke.texi (SPARC options): Document -muser-mode.
14953 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
14955         * cselib.c (find_slot_memmode): Delete.
14956         (cselib_hasher): Change compare_type to a struct.
14957         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
14958         constants.
14959         (preserve_constants_and_equivs): Adjust for new compare_type.
14960         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
14961         (wrap_constant): Delete.
14962         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
14964 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
14966         * doc/install.texi (Building with profile feedback): Remove
14967         outdated sentence.
14969 2014-04-26  Tom de Vries  <tom@codesourcery.com>
14971         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
14972         array accesses.
14974 2014-04-25  Cary Coutant  <ccoutant@google.com>
14976         PR debug/60929
14977         * dwarf2out.c (should_move_die_to_comdat): A type definition
14978         can contain a subprogram definition, but don't move it to a
14979         comdat unit.
14980         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
14981         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
14982         from original DIE.
14983         (clone_tree_hash): Rename to...
14984         (clone_tree_partial): ...this; change callers.  Copy
14985         DW_TAG_subprogram DIEs as declarations.
14986         (copy_decls_walk): Don't copy children of a declaration into a
14987         type unit.
14989 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
14991         PR target/60969
14992         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
14993         alternative 12.
14995 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
14997         * config/arm/predicates.md (call_insn_operand): Add long_call check.
14998         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
14999         reg for long_call.
15000         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
15001         restriction.
15003 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15005         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
15007 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15009         PR tree-optimization/60930
15010         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
15011         creating a multiply candidate by folding two constant
15012         multiplicands when the result overflows.
15014 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
15016         PR tree-optimization/60960
15017         * tree-vect-generic.c (expand_vector_operation): Only call
15018         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
15020 2014-04-25  Tom de Vries  <tom@codesourcery.com>
15022         * expr.c (clobber_reg_mode): New function.
15023         * expr.h (clobber_reg): New function.
15025 2014-04-25  Tom de Vries  <tom@codesourcery.com>
15027         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
15028         clobbers.
15030 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
15031             Tom de Vries  <tom@codesourcery.com>
15033         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
15034         handle.
15035         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
15036         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
15037         new argument to find_all_hard_reg_sets call.
15039 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15041         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
15042         Use HOST_WIDE_INT_C for mask literal.
15043         (aarch_rev16_shleft_mask_imm_p): Likewise.
15045 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
15047         PR target/60941
15048         * config/sparc/sparc.md (ashlsi3_extend): Delete.
15050 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
15052         PR preprocessor/56540
15053         * config/i386/i386-c.c (ix86_target_macros): Define
15054         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
15056 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15058         * configure.ac (tga_func): Remove.
15059         (LIB_TLS_SPEC): Remove.
15060         * configure: Regenerate.
15061         * config.in: Regenerate.
15062         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
15064 2014-04-25  Richard Biener  <rguenther@suse.de>
15066         PR ipa/60912
15067         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
15068         call stmt use/clobber sets during stmt walk instead of
15069         walking the possibly incomplete set of caller edges.
15071 2014-04-25  Richard Biener  <rguenther@suse.de>
15073         PR ipa/60911
15074         * passes.c (apply_ipa_transforms): Inline into only caller ...
15075         (execute_one_pass): ... here.  Properly bring in function
15076         bodies for nodes we want to apply IPA transforms to.
15078 2014-04-24  Cong Hou  <congh@google.com>
15080         PR tree-optimization/60896
15081         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
15082         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
15083         (vect_mark_pattern_stmts): Set the def type of all statements in
15084         PATTERN_DEF_SEQ as vect_internal_def.
15086 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
15088         * doc/extend.texi (PowerPC Built-in Functions): Document new
15089         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
15090         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
15092         * config/rs6000/predicates.md (const_0_to_3_operand): New
15093         predicate to match 0..3 integer constants.
15095         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
15096         to support adding miscellaneous builtin functions.
15097         (BU_DFP_MISC_2): Likewise.
15098         (BU_P7_MISC_1): Likewise.
15099         (BU_P7_MISC_2): Likewise.
15100         (BU_P8V_MISC_3): Likewise.
15101         (BU_MISC_1): Likewise.
15102         (BU_MISC_2): Likewise.
15103         (DIVWE): Add extended divide builtin functions.
15104         (DIVWEO): Likewise.
15105         (DIVWEU): Likewise.
15106         (DIVWEUO): Likewise.
15107         (DIVDE): Likewise.
15108         (DIVDEO): Likewise.
15109         (DIVDEU): Likewise.
15110         (DIVDEUO): Likewise.
15111         (DXEX): Add decimal floating-point builtin functions.
15112         (DXEXQ): Likewise.
15113         (DDEDPD): Likewise.
15114         (DDEDPDQ): Likewise.
15115         (DENBCD): Likewise.
15116         (DENBCDQ): Likewise.
15117         (DIEX): Likewise.
15118         (DIEXQ): Likewise.
15119         (DSCLI): Likewise.
15120         (DSCLIQ): Likewise.
15121         (DSCRI): Likewise.
15122         (DSCRIQ): Likewise.
15123         (CDTBCD): Add new BCD builtin functions.
15124         (CBCDTD): Likewise.
15125         (ADDG6S): Likewise.
15126         (BCDADD): Likewise.
15127         (BCDADD_LT): Likewise.
15128         (BCDADD_EQ): Likewise.
15129         (BCDADD_GT): Likewise.
15130         (BCDADD_OV): Likewise.
15131         (BCDSUB): Likewise.
15132         (BCDSUB_LT): Likewise.
15133         (BCDSUB_EQ): Likewise.
15134         (BCDSUB_GT): Likewise.
15135         (BCDSUB_OV): Likewise.
15136         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
15137         (UNPACK_TD): Likewise.
15138         (PACK_TF): Likewise.
15139         (UNPACK_TF): Likewise.
15140         (UNPACK_TF_0): Likewise.
15141         (UNPACK_TF_1): Likewise.
15142         (PACK_V1TI): Likewise.
15143         (UNPACK_V1TI): Likewise.
15145         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
15146         support for decimal floating point builtin functions.
15147         (rs6000_expand_ternop_builtin): Add checks for the new builtin
15148         functions that take constant arguments.
15149         (rs6000_invalid_builtin): Add decimal floating point builtin support.
15150         (rs6000_init_builtins): Setup long double, _Decimal64, and
15151         _Decimal128 types for new builtin functions.
15152         (builtin_function_type): Set the unsigned flags appropriately for
15153         the new builtin functions.
15154         (rs6000_opt_masks): Add support for decimal floating point builtin
15155         functions.
15157         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
15158         floating point builtin functions.
15159         (RS6000_BTM_COMMON): Likewise.
15160         (RS6000_BTI_long_double): Likewise.
15161         (RS6000_BTI_dfloat64): Likewise.
15162         (RS6000_BTI_dfloat128): Likewise.
15163         (long_double_type_internal_node): Likewise.
15164         (dfloat64_type_internal_node): Likewise.
15165         (dfloat128_type_internal_node): Likewise.
15167         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
15168         2.07 bcd arithmetic instructions.
15169         (UNSPEC_BCDSUB): Likewise.
15170         (UNSPEC_BCD_OVERFLOW): Likewise.
15171         (UNSPEC_BCD_ADD_SUB): Likewise.
15172         (bcd_add_sub): Likewise.
15173         (BCD_TEST): Likewise.
15174         (bcd<bcd_add_sub>): Likewise.
15175         (bcd<bcd_add_sub>_test): Likewise.
15176         (bcd<bcd_add_sub>_test2): Likewise.
15177         (bcd<bcd_add_sub>_<code>): Likewise.
15178         (peephole2 for combined bcd ops): Likewise.
15180         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
15181         decimal floating point builtin functions.
15182         (UNSPEC_DENBCD): Likewise.
15183         (UNSPEC_DXEX): Likewise.
15184         (UNSPEC_DIEX): Likewise.
15185         (UNSPEC_DSCLI): Likewise.
15186         (UNSPEC_DSCRI): Likewise.
15187         (D64_D128): Likewise.
15188         (dfp_suffix): Likewise.
15189         (dfp_ddedpd_<mode>): Likewise.
15190         (dfp_denbcd_<mode>): Likewise.
15191         (dfp_dxex_<mode>): Likewise.
15192         (dfp_diex_<mode>): Likewise.
15193         (dfp_dscli_<mode>): Likewise.
15194         (dfp_dscri_<mode>): Likewise.
15196         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
15197         builtin functions.
15198         (UNSPEC_CDTBCD): Likewise.
15199         (UNSPEC_CBCDTD): Likewise.
15200         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
15201         (UNSPEC_DIVEO): Likewise.
15202         (UNSPEC_DIVEU): Likewise.
15203         (UNSPEC_DIVEUO): Likewise.
15204         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
15205         pack/unpack 128-bit types.
15206         (UNSPEC_PACK_128BIT): Likewise.
15207         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
15208         (udiv<mode>3): Use idiv_ldiv mode attribute.
15209         (div<mode>3): Likewise.
15210         (addg6s): Add new BCD builtin functions.
15211         (cdtbcd): Likewise.
15212         (cbcdtd): Likewise.
15213         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
15214         (div_extend): Likewise.
15215         (div<div_extend>_<mode>"): Likewise.
15216         (FP128_64): Add support for new builtin functions to pack/unpack
15217         128-bit types.
15218         (unpack<mode>): Likewise.
15219         (unpacktf_0): Likewise.
15220         (unpacktf_1): Likewise.
15221         (unpack<mode>_dm): Likewise.
15222         (unpack<mode>_nodm): Likewise.
15223         (pack<mode>): Likewise.
15224         (unpackv1ti): Likewise.
15225         (packv1ti): Likewise.
15227 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
15229         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
15230         is disabled.
15232 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
15234         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
15235         * gimplify.c (omp_is_private): Change last argument's type to int.
15236         Only diagnose lastprivate if the simd argument is 1, only diagnose
15237         linear if the simd argument is 2.
15238         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
15239         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
15240         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
15241         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
15242         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
15243         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
15244         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
15245         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
15246         * tree-nested.c (convert_nonlocal_omp_clauses,
15247         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
15249 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
15251         PR target/60822
15252         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
15253         operand 1.
15255 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
15257         * flag-types.h (enum ivar_visibility): Add.
15259 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
15261         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
15262         function * argument.
15264 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
15266         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
15268 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
15269             Tom de Vries  <tom@codesourcery.com>
15271         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
15272         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
15273         reg-note.
15274         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
15275         * emit-rtl.c (try_split): Same.
15277 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
15278             Tom de Vries  <tom@codesourcery.com>
15280         * common.opt (fuse-caller-save): New option.
15282 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
15284         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
15285         elements for big-endian.
15287 2014-04-24  Richard Biener  <rguenther@suse.de>
15289         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
15290         during TER and instead use the sepops interface for expanding
15291         non-GIMPLE_SINGLE_RHS.
15293 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15295         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
15296         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
15298 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15300         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
15301         assembler 64-bit option.
15302         * configure: Regenerate.
15304 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15306         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
15307         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
15308         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
15309         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
15310         (TARGET_CRYPTO): Take TARGET_SIMD into account.
15312 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15314         * config/aarch64/aarch64-builtins.c
15315         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
15316         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
15317         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
15318         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
15319         builtins.
15320         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
15321         (Vrevsuff): New mode attribute.
15323 2014-04-24  Terry Guo  <terry.guo@arm.com>
15325         * config/arm/arm.h (machine_function): Define variable
15326         after_arm_reorg here.
15327         * config/arm/arm.c (after_arm_reorg): Remove the definition.
15328         (arm_split_constant): Update the way to access variable
15329         after_arm_reorg.
15330         (arm_reorg): Ditto.
15331         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
15333 2014-04-23  Tom de Vries  <tom@codesourcery.com>
15335         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
15337 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
15339         * is-a.h: Update comments to reflect the following changes to the
15340         "pointerness" of the API, making the template parameter match the
15341         return type, allowing use of is-a.h with typedefs of pointers.
15342         (is_a_helper::cast): Return a T rather then a pointer to a T, so
15343         that the return type matches the parameter to the is_a_helper.
15344         (as_a): Likewise.
15345         (dyn_cast): Likewise.
15347         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
15348         pointer from the is-a.h API.
15350         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
15351         (is_a_helper <cgraph_node *>::test): ...this, matching change to
15352         is-a.h API.
15353         (is_a_helper <varpool_node>::test): Likewise, convert to...
15354         (is_a_helper <varpool_node *>::test): ...this.
15356         (varpool_first_variable): Update for removal of implicit pointer
15357         from the is-a.h API.
15358         (varpool_next_variable): Likewise.
15359         (varpool_first_static_initializer): Likewise.
15360         (varpool_next_static_initializer): Likewise.
15361         (varpool_first_defined_variable): Likewise.
15362         (varpool_next_defined_variable): Likewise.
15363         (cgraph_first_defined_function): Likewise.
15364         (cgraph_next_defined_function): Likewise.
15365         (cgraph_first_function): Likewise.
15366         (cgraph_next_function): Likewise.
15367         (cgraph_first_function_with_gimple_body): Likewise.
15368         (cgraph_next_function_with_gimple_body): Likewise.
15369         (cgraph_alias_target): Likewise.
15370         (varpool_alias_target): Likewise.
15371         (cgraph_function_or_thunk_node): Likewise.
15372         (varpool_variable_node): Likewise.
15373         (symtab_real_symbol_p): Likewise.
15374         * cgraphunit.c (referred_to_p): Likewise.
15375         (analyze_functions): Likewise.
15376         (handle_alias_pairs): Likewise.
15377         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
15378         * gimple-ssa.h (gimple_vuse_op): Likewise.
15379         (gimple_vdef_op): Likewise.
15380         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
15381         * gimple.c (gimple_build_asm_1): Likewise.
15382         (gimple_build_try): Likewise.
15383         (gimple_build_resx): Likewise.
15384         (gimple_build_eh_dispatch): Likewise.
15385         (gimple_build_omp_for): Likewise.
15386         (gimple_omp_for_set_clauses): Likewise.
15388         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
15389         (is_a_helper <gimple_statement_asm *>::test): ...this.
15390         (is_a_helper <gimple_statement_bind>::test): Convert to...
15391         (is_a_helper <gimple_statement_bind *>::test): ...this.
15392         (is_a_helper <gimple_statement_call>::test): Convert to...
15393         (is_a_helper <gimple_statement_call *>::test): ...this.
15394         (is_a_helper <gimple_statement_catch>::test): Convert to...
15395         (is_a_helper <gimple_statement_catch *>::test): ...this.
15396         (is_a_helper <gimple_statement_resx>::test): Convert to...
15397         (is_a_helper <gimple_statement_resx *>::test): ...this.
15398         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
15399         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
15400         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
15401         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
15402         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
15403         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
15404         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
15405         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
15406         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
15407         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
15408         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
15409         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
15410         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
15411         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
15412         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
15413         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
15414         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
15415         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
15416         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
15417         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
15418         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
15419         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
15420         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
15421         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
15422         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
15423         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
15424         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
15425         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
15426         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
15427         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
15428         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
15429         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
15430         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
15431         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
15432         (is_a_helper <gimple_statement_phi>::test): Convert to...
15433         (is_a_helper <gimple_statement_phi *>::test): ...this.
15434         (is_a_helper <gimple_statement_transaction>::test): Convert to...
15435         (is_a_helper <gimple_statement_transaction *>::test): ...this.
15436         (is_a_helper <gimple_statement_try>::test): Convert to...
15437         (is_a_helper <gimple_statement_try *>::test): ...this.
15438         (is_a_helper <gimple_statement_wce>::test): Convert to...
15439         (is_a_helper <gimple_statement_wce *>::test): ...this.
15440         (is_a_helper <const gimple_statement_asm>::test): Convert to...
15441         (is_a_helper <const gimple_statement_asm *>::test): ...this.
15442         (is_a_helper <const gimple_statement_bind>::test): Convert to...
15443         (is_a_helper <const gimple_statement_bind *>::test): ...this.
15444         (is_a_helper <const gimple_statement_call>::test): Convert to...
15445         (is_a_helper <const gimple_statement_call *>::test): ...this.
15446         (is_a_helper <const gimple_statement_catch>::test): Convert to...
15447         (is_a_helper <const gimple_statement_catch *>::test): ...this.
15448         (is_a_helper <const gimple_statement_resx>::test): Convert to...
15449         (is_a_helper <const gimple_statement_resx *>::test): ...this.
15450         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
15451         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
15452         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
15453         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
15454         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
15455         Convert to...
15456         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
15457         ...this.
15458         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
15459         Convert to...
15460         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
15461         ...this.
15462         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
15463         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
15464         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
15465         to...
15466         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
15467         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
15468         to...
15469         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
15470         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
15471         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
15472         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
15473         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
15474         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
15475         to...
15476         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
15477         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
15478         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
15479         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
15480         to...
15481         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
15482         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
15483         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
15484         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
15485         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
15486         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
15487         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
15488         (is_a_helper <const gimple_statement_phi>::test): Convert to...
15489         (is_a_helper <const gimple_statement_phi *>::test): ...this.
15490         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
15491         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
15492         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
15493         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
15494         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
15495         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
15496         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
15497         to...
15498         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
15499         ...this.
15500         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
15501         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
15503         (gimple_use_ops): Update for removal of implicit pointer from the
15504         is-a.h API.
15505         (gimple_set_use_ops): Likewise.
15506         (gimple_vuse): Likewise.
15507         (gimple_vdef): Likewise.
15508         (gimple_vuse_ptr): Likewise.
15509         (gimple_vdef_ptr): Likewise.
15510         (gimple_set_vuse): Likewise.
15511         (gimple_set_vdef): Likewise.
15512         (gimple_omp_return_set_lhs): Likewise.
15513         (gimple_omp_return_lhs): Likewise.
15514         (gimple_omp_return_lhs_ptr): Likewise.
15515         (gimple_call_fntype): Likewise.
15516         (gimple_call_set_fntype): Likewise.
15517         (gimple_call_set_internal_fn): Likewise.
15518         (gimple_call_use_set): Likewise.
15519         (gimple_call_clobber_set): Likewise.
15520         (gimple_bind_vars): Likewise.
15521         (gimple_bind_set_vars): Likewise.
15522         (gimple_bind_body_ptr): Likewise.
15523         (gimple_bind_set_body): Likewise.
15524         (gimple_bind_add_stmt): Likewise.
15525         (gimple_bind_block): Likewise.
15526         (gimple_bind_set_block): Likewise.
15527         (gimple_asm_ninputs): Likewise.
15528         (gimple_asm_noutputs): Likewise.
15529         (gimple_asm_nclobbers): Likewise.
15530         (gimple_asm_nlabels): Likewise.
15531         (gimple_asm_input_op): Likewise.
15532         (gimple_asm_input_op_ptr): Likewise.
15533         (gimple_asm_output_op): Likewise.
15534         (gimple_asm_output_op_ptr): Likewise.
15535         (gimple_asm_set_output_op): Likewise.
15536         (gimple_asm_clobber_op): Likewise.
15537         (gimple_asm_set_clobber_op): Likewise.
15538         (gimple_asm_label_op): Likewise.
15539         (gimple_asm_set_label_op): Likewise.
15540         (gimple_asm_string): Likewise.
15541         (gimple_catch_types): Likewise.
15542         (gimple_catch_types_ptr): Likewise.
15543         (gimple_catch_handler_ptr): Likewise.
15544         (gimple_catch_set_types): Likewise.
15545         (gimple_catch_set_handler): Likewise.
15546         (gimple_eh_filter_types): Likewise.
15547         (gimple_eh_filter_types_ptr): Likewise.
15548         (gimple_eh_filter_failure_ptr): Likewise.
15549         (gimple_eh_filter_set_types): Likewise.
15550         (gimple_eh_filter_set_failure): Likewise.
15551         (gimple_eh_must_not_throw_fndecl): Likewise.
15552         (gimple_eh_must_not_throw_set_fndecl): Likewise.
15553         (gimple_eh_else_n_body_ptr): Likewise.
15554         (gimple_eh_else_e_body_ptr): Likewise.
15555         (gimple_eh_else_set_n_body): Likewise.
15556         (gimple_eh_else_set_e_body): Likewise.
15557         (gimple_try_eval_ptr): Likewise.
15558         (gimple_try_cleanup_ptr): Likewise.
15559         (gimple_try_set_eval): Likewise.
15560         (gimple_try_set_cleanup): Likewise.
15561         (gimple_wce_cleanup_ptr): Likewise.
15562         (gimple_wce_set_cleanup): Likewise.
15563         (gimple_phi_capacity): Likewise.
15564         (gimple_phi_num_args): Likewise.
15565         (gimple_phi_result): Likewise.
15566         (gimple_phi_result_ptr): Likewise.
15567         (gimple_phi_set_result): Likewise.
15568         (gimple_phi_arg): Likewise.
15569         (gimple_phi_set_arg): Likewise.
15570         (gimple_resx_region): Likewise.
15571         (gimple_resx_set_region): Likewise.
15572         (gimple_eh_dispatch_region): Likewise.
15573         (gimple_eh_dispatch_set_region): Likewise.
15574         (gimple_omp_critical_name): Likewise.
15575         (gimple_omp_critical_name_ptr): Likewise.
15576         (gimple_omp_critical_set_name): Likewise.
15577         (gimple_omp_for_clauses): Likewise.
15578         (gimple_omp_for_clauses_ptr): Likewise.
15579         (gimple_omp_for_set_clauses): Likewise.
15580         (gimple_omp_for_collapse): Likewise.
15581         (gimple_omp_for_index): Likewise.
15582         (gimple_omp_for_index_ptr): Likewise.
15583         (gimple_omp_for_set_index): Likewise.
15584         (gimple_omp_for_initial): Likewise.
15585         (gimple_omp_for_initial_ptr): Likewise.
15586         (gimple_omp_for_set_initial): Likewise.
15587         (gimple_omp_for_final): Likewise.
15588         (gimple_omp_for_final_ptr): Likewise.
15589         (gimple_omp_for_set_final): Likewise.
15590         (gimple_omp_for_incr): Likewise.
15591         (gimple_omp_for_incr_ptr): Likewise.
15592         (gimple_omp_for_set_incr): Likewise.
15593         (gimple_omp_for_pre_body_ptr): Likewise.
15594         (gimple_omp_for_set_pre_body): Likewise.
15595         (gimple_omp_parallel_clauses): Likewise.
15596         (gimple_omp_parallel_clauses_ptr): Likewise.
15597         (gimple_omp_parallel_set_clauses): Likewise.
15598         (gimple_omp_parallel_child_fn): Likewise.
15599         (gimple_omp_parallel_child_fn_ptr): Likewise.
15600         (gimple_omp_parallel_set_child_fn): Likewise.
15601         (gimple_omp_parallel_data_arg): Likewise.
15602         (gimple_omp_parallel_data_arg_ptr): Likewise.
15603         (gimple_omp_parallel_set_data_arg): Likewise.
15604         (gimple_omp_task_clauses): Likewise.
15605         (gimple_omp_task_clauses_ptr): Likewise.
15606         (gimple_omp_task_set_clauses): Likewise.
15607         (gimple_omp_task_child_fn): Likewise.
15608         (gimple_omp_task_child_fn_ptr): Likewise.
15609         (gimple_omp_task_set_child_fn): Likewise.
15610         (gimple_omp_task_data_arg): Likewise.
15611         (gimple_omp_task_data_arg_ptr): Likewise.
15612         (gimple_omp_task_set_data_arg): Likewise.
15613         (gimple_omp_taskreg_clauses): Likewise.
15614         (gimple_omp_taskreg_clauses_ptr): Likewise.
15615         (gimple_omp_taskreg_set_clauses): Likewise.
15616         (gimple_omp_taskreg_child_fn): Likewise.
15617         (gimple_omp_taskreg_child_fn_ptr): Likewise.
15618         (gimple_omp_taskreg_set_child_fn): Likewise.
15619         (gimple_omp_taskreg_data_arg): Likewise.
15620         (gimple_omp_taskreg_data_arg_ptr): Likewise.
15621         (gimple_omp_taskreg_set_data_arg): Likewise.
15622         (gimple_omp_task_copy_fn): Likewise.
15623         (gimple_omp_task_copy_fn_ptr): Likewise.
15624         (gimple_omp_task_set_copy_fn): Likewise.
15625         (gimple_omp_task_arg_size): Likewise.
15626         (gimple_omp_task_arg_size_ptr): Likewise.
15627         (gimple_omp_task_set_arg_size): Likewise.
15628         (gimple_omp_task_arg_align): Likewise.
15629         (gimple_omp_task_arg_align_ptr): Likewise.
15630         (gimple_omp_task_set_arg_align): Likewise.
15631         (gimple_omp_single_clauses): Likewise.
15632         (gimple_omp_single_clauses_ptr): Likewise.
15633         (gimple_omp_single_set_clauses): Likewise.
15634         (gimple_omp_target_clauses): Likewise.
15635         (gimple_omp_target_clauses_ptr): Likewise.
15636         (gimple_omp_target_set_clauses): Likewise.
15637         (gimple_omp_target_child_fn): Likewise.
15638         (gimple_omp_target_child_fn_ptr): Likewise.
15639         (gimple_omp_target_set_child_fn): Likewise.
15640         (gimple_omp_target_data_arg): Likewise.
15641         (gimple_omp_target_data_arg_ptr): Likewise.
15642         (gimple_omp_target_set_data_arg): Likewise.
15643         (gimple_omp_teams_clauses): Likewise.
15644         (gimple_omp_teams_clauses_ptr): Likewise.
15645         (gimple_omp_teams_set_clauses): Likewise.
15646         (gimple_omp_sections_clauses): Likewise.
15647         (gimple_omp_sections_clauses_ptr): Likewise.
15648         (gimple_omp_sections_set_clauses): Likewise.
15649         (gimple_omp_sections_control): Likewise.
15650         (gimple_omp_sections_control_ptr): Likewise.
15651         (gimple_omp_sections_set_control): Likewise.
15652         (gimple_omp_for_set_cond): Likewise.
15653         (gimple_omp_for_cond): Likewise.
15654         (gimple_omp_atomic_store_set_val): Likewise.
15655         (gimple_omp_atomic_store_val): Likewise.
15656         (gimple_omp_atomic_store_val_ptr): Likewise.
15657         (gimple_omp_atomic_load_set_lhs): Likewise.
15658         (gimple_omp_atomic_load_lhs): Likewise.
15659         (gimple_omp_atomic_load_lhs_ptr): Likewise.
15660         (gimple_omp_atomic_load_set_rhs): Likewise.
15661         (gimple_omp_atomic_load_rhs): Likewise.
15662         (gimple_omp_atomic_load_rhs_ptr): Likewise.
15663         (gimple_omp_continue_control_def): Likewise.
15664         (gimple_omp_continue_control_def_ptr): Likewise.
15665         (gimple_omp_continue_set_control_def): Likewise.
15666         (gimple_omp_continue_control_use): Likewise.
15667         (gimple_omp_continue_control_use_ptr): Likewise.
15668         (gimple_omp_continue_set_control_use): Likewise.
15669         (gimple_transaction_body_ptr): Likewise.
15670         (gimple_transaction_label): Likewise.
15671         (gimple_transaction_label_ptr): Likewise.
15672         (gimple_transaction_set_body): Likewise.
15673         (gimple_transaction_set_label): Likewise.
15675         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
15676         * ipa-inline-analysis.c (inline_write_summary): Likewise.
15677         * ipa-ref.c (ipa_record_reference): Likewise.
15678         * ipa-reference.c (analyze_function): Likewise.
15679         (ipa_reference_write_optimization_summary): Likewise.
15680         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
15681         (address_taken_from_non_vtable_p): Likewise.
15682         (comdat_can_be_unshared_p_1): Likewise.
15683         * lto-cgraph.c (lto_output_ref): Likewise.
15684         (add_references): Likewise.
15685         (compute_ltrans_boundary): Likewise.
15686         (output_symtab): Likewise.
15687         (input_ref): Likewise.
15688         (input_cgraph_1): Likewise.
15689         (output_cgraph_opt_summary): Likewise.
15690         * lto-streamer-out.c (lto_output): Likewise.
15691         (output_symbol_p): Likewise.
15692         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
15693         (lsei_start_function_in_partition): Likewise.
15694         (lsei_next_variable_in_partition): Likewise.
15695         (lsei_start_variable_in_partition): Likewise.
15696         * symtab.c (insert_to_assembler_name_hash): Likewise.
15697         (unlink_from_assembler_name_hash): Likewise.
15698         (symtab_unregister_node): Likewise.
15699         (symtab_remove_node): Likewise.
15700         (dump_symtab_node): Likewise.
15701         (verify_symtab_base): Likewise.
15702         (verify_symtab_node): Likewise.
15703         (symtab_make_decl_local): Likewise.
15704         (symtab_alias_ultimate_target): Likewise.
15705         (symtab_resolve_alias): Likewise.
15706         (symtab_get_symbol_partitioning_class): Likewise.
15707         * tree-phinodes.c (allocate_phi_node): Likewise.
15708         (reserve_phi_args_for_new_edge): Likewise.
15709         (remove_phi_args): Likewise.
15710         * varpool.c (varpool_node_for_asm): Likewise.
15711         (varpool_remove_unreferenced_decls): Likewise.
15713 2014-04-23  Jeff Law  <law@redhat.com>
15715         PR tree-optimization/60902
15716         * tree-ssa-threadedge.c
15717         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
15718         invalidate outputs from statements that do not produce useful
15719         outputs for threading.
15721 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
15723         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
15724         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
15725         machine descriptions for Stack Smashing Protector.
15727 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
15729         * aarch64.md (<optab>_rol<mode>3): New pattern.
15730         (<optab>_rolsi3_uxtw): Likewise.
15731         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
15733 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
15735         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
15736         (arm_cortex_a12_tune): Likewise.
15738 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15740         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
15742 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15744         * config/arm/arm.md (arm_rev16si2): New pattern.
15745         (arm_rev16si2_alt): Likewise.
15746         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
15748 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15750         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
15751         (rev16<mode>2_alt): Likewise.
15752         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
15753         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
15754         (aarch_rev16_shleft_mask_imm_p): Likewise.
15755         (aarch_rev16_p_1): Likewise.
15756         (aarch_rev16_p): Likewise.
15757         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
15758         (aarch_rev16_shright_mask_imm_p): Likewise.
15759         (aarch_rev16_shleft_mask_imm_p): Likewise.
15761 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15763         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
15764         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
15765         rev cost.
15766         (cortex_a53_extra_costs): Likewise.
15767         (cortex_a57_extra_costs): Likewise.
15768         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
15769         (cortexa7_extra_costs): Likewise.
15770         (cortexa8_extra_costs): Likewise.
15771         (cortexa12_extra_costs): Likewise.
15772         (cortexa15_extra_costs): Likewise.
15773         (v7m_extra_costs): Likewise.
15774         (arm_new_rtx_costs): Handle BSWAP.
15776 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15778         * config/arm/arm.c (cortexa8_extra_costs): New table.
15779         (arm_cortex_a8_tune): New tuning struct.
15780         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
15782 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15784         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
15786 2014-04-23  Richard Biener  <rguenther@suse.de>
15788         * Makefile.in (OBJS): Remove loop-unswitch.o.
15789         * tree-pass.h (make_pass_rtl_unswitch): Remove.
15790         * passes.def (pass_rtl_unswitch): Likewise.
15791         * loop-init.c (gate_rtl_unswitch): Likewise.
15792         (rtl_unswitch): Likewise.
15793         (pass_data_rtl_unswitch): Likewise.
15794         (pass_rtl_unswitch): Likewise.
15795         (make_pass_rtl_unswitch): Likewise.
15796         * rtl.h (reversed_condition): Likewise.
15797         (compare_and_jump_seq): Likewise.
15798         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
15799         and make static.
15800         * loop-unroll.c (compare_and_jump_seq): Likewise.
15802 2014-04-23  Richard Biener  <rguenther@suse.de>
15804         PR tree-optimization/60903
15805         * tree-ssa-loop-im.c (analyze_memory_references): Remove
15806         commented code block.
15807         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
15808         loop flags to newly created BBs and edges.
15810 2014-04-23  Nick Clifton  <nickc@redhat.com>
15812         * config/msp430/msp430.c (msp430_handle_option): Move function
15813         to msp430-common.c
15814         (msp430_option_override): Simplify mcu and mcpu option handling.
15815         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
15816         support for -mhwmult command line option.
15817         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
15818         -mhwmult command line option.
15819         (msp430_hwmult_enabled): Delete.
15820         (msp43o_output_labelref): Add support for -mhwmult command line option.
15821         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
15822         (umulsidi3): Likewise.
15823         * config/msp430/msp430.opt (mmcu): Add Report attribute.
15824         (mcpu, mlarge, msmall): Likewise.
15825         (mhwmult): New option.
15826         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
15827         prototype.
15828         (msp430_is_f5_mcu): Remove prototype.
15829         (msp430_use_f5_series_hwmult): Add prototype.
15830         * config/msp430/msp430-opts.h: New file.
15831         * common/config/msp430: New directory.
15832         * common/config/msp430/msp430-common.c: New file.
15833         * config.gcc (msp430): Remove target_has_targetm_common.
15834         * doc/invoke.texi: Document -mhwmult command line option.
15836 2014-04-23  Nick Clifton  <nickc@redhat.com>
15838         * config/i386/cygwin.h (ENDFILE_SPEC): Include
15839         default-manifest.o if it can be found in the search path.
15840         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
15842 2014-04-23  Terry Guo  <terry.guo@arm.com>
15844         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
15846 2014-04-23  Richard Biener  <rguenther@suse.de>
15848         PR middle-end/60895
15849         * tree-inline.c (declare_return_variable): Use mark_addressable.
15851 2014-04-23  Richard Biener  <rguenther@suse.de>
15853         PR middle-end/60891
15854         * loop-init.c (loop_optimizer_init): Make sure to apply
15855         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
15857 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
15859         PR sanitizer/60275
15860         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
15861         New options.
15862         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
15863         if flag_sanitize_undefined_trap_on_error.
15864         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
15865         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
15866         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
15867         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
15868         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
15869         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
15870         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
15871         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
15872         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
15873         * ubsan.c (ubsan_instrument_unreachable): Return
15874         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
15875         (ubsan_expand_null_ifn): Emit __builtin_trap ()
15876         if flag_sanitize_undefined_trap_on_error and
15877         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
15878         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
15879         instrument_bool_enum_load): Emit __builtin_trap () if
15880         flag_sanitize_undefined_trap_on_error and
15881         __builtin_handle_*_abort () if !flag_sanitize_recover.
15882         * doc/invoke.texi (-fsanitize-recover,
15883         -fsanitize-undefined-trap-on-error): Document.
15885 2014-04-22  Christian Bruel  <christian.bruel@st.com>
15887         * config/sh/sh.md (mov<mode>): Replace movQIHI.
15888          Force immediates to SImode.
15890 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
15892         * config/nios2/nios2.md (UNSPEC_ROUND): New.
15893         (lroundsfsi2): New.
15894         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
15895         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
15896         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
15897         (nios2_fpu_insn): Add entry for round.
15898         (N2FPU_NO_ERRNO_P): Define.
15899         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
15900         flag_errno_math.
15901         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
15903 2014-04-22  Richard Henderson  <rth@redhat.com>
15905         * config/aarch64/aarch64 (addti3, subti3): New expanders.
15906         (add<GPI>3_compare0): Remove leading * from name.
15907         (add<GPI>3_carryin): Likewise.
15908         (sub<GPI>3_compare0): Likewise.
15909         (sub<GPI>3_carryin): Likewise.
15910         (<su_optab>mulditi3): New expander.
15911         (multi3): New expander.
15912         (madd<GPI>): Remove leading * from name.
15914 2014-04-22  Martin Jambor  <mjambor@suse.cz>
15916         * cgraphclones.c (cgraph_function_versioning): Copy
15917         ipa_transforms_to_apply instead of asserting it is empty.
15919 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
15921         PR target/60868
15922         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
15923         on count_exp to get mode.
15925 2014-04-22  Andrew Pinski  <apinski@cavium.com>
15927         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15928         Handle TLS for ILP32.
15929         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
15930         (tlsie_small_<mode>): this and handle PTR.
15931         (tlsie_small_sidi): New pattern.
15932         (tlsle_small): Change to an expand to handle ILP32.
15933         (tlsle_small_<mode>): New pattern.
15934         (tlsdesc_small): Rename to ...
15935         (tlsdesc_small_<mode>): this and handle PTR.
15937 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15939         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
15941 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
15943         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
15944         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
15945         (aarch64_types_signed_poly_qualifiers): Likewise.
15946         (aarch64_types_unsigned_signed_qualifiers): Likewise.
15947         (aarch64_types_poly_signed_qualifiers): Likewise.
15948         (TYPES_REINTERP_SS): Type macro added.
15949         (TYPES_REINTERP_SU): Likewise.
15950         (TYPES_REINTERP_SP): Likewise.
15951         (TYPES_REINTERP_US): Likewise.
15952         (TYPES_REINTERP_PS): Likewise.
15953         (aarch64_fold_builtin): New expression folding added.
15954         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
15955         Declarations removed.
15956         (REINTERP_SS): Declarations added.
15957         (REINTERP_US): Likewise.
15958         (REINTERP_PS): Likewise.
15959         (REINTERP_SU): Likewise.
15960         (REINTERP_SP): Likewise.
15961         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
15962         (vreinterpretq_p8_f64): Likewise.
15963         (vreinterpret_p16_f64): Likewise.
15964         (vreinterpretq_p16_f64): Likewise.
15965         (vreinterpret_f32_f64): Likewise.
15966         (vreinterpretq_f32_f64): Likewise.
15967         (vreinterpret_f64_f32): Likewise.
15968         (vreinterpret_f64_p8): Likewise.
15969         (vreinterpret_f64_p16): Likewise.
15970         (vreinterpret_f64_s8): Likewise.
15971         (vreinterpret_f64_s16): Likewise.
15972         (vreinterpret_f64_s32): Likewise.
15973         (vreinterpret_f64_s64): Likewise.
15974         (vreinterpret_f64_u8): Likewise.
15975         (vreinterpret_f64_u16): Likewise.
15976         (vreinterpret_f64_u32): Likewise.
15977         (vreinterpret_f64_u64): Likewise.
15978         (vreinterpretq_f64_f32): Likewise.
15979         (vreinterpretq_f64_p8): Likewise.
15980         (vreinterpretq_f64_p16): Likewise.
15981         (vreinterpretq_f64_s8): Likewise.
15982         (vreinterpretq_f64_s16): Likewise.
15983         (vreinterpretq_f64_s32): Likewise.
15984         (vreinterpretq_f64_s64): Likewise.
15985         (vreinterpretq_f64_u8): Likewise.
15986         (vreinterpretq_f64_u16): Likewise.
15987         (vreinterpretq_f64_u32): Likewise.
15988         (vreinterpretq_f64_u64): Likewise.
15989         (vreinterpret_s64_f64): Likewise.
15990         (vreinterpretq_s64_f64): Likewise.
15991         (vreinterpret_u64_f64): Likewise.
15992         (vreinterpretq_u64_f64): Likewise.
15993         (vreinterpret_s8_f64): Likewise.
15994         (vreinterpretq_s8_f64): Likewise.
15995         (vreinterpret_s16_f64): Likewise.
15996         (vreinterpretq_s16_f64): Likewise.
15997         (vreinterpret_s32_f64): Likewise.
15998         (vreinterpretq_s32_f64): Likewise.
15999         (vreinterpret_u8_f64): Likewise.
16000         (vreinterpretq_u8_f64): Likewise.
16001         (vreinterpret_u16_f64): Likewise.
16002         (vreinterpretq_u16_f64): Likewise.
16003         (vreinterpret_u32_f64): Likewise.
16004         (vreinterpretq_u32_f64): Likewise.
16006 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
16008         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
16009         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
16010         (vreinterpret_p8_s8): Likewise.
16011         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
16012         (vreinterpret_p8_s16): Likewise.
16013         (vreinterpret_p8_s32): Likewise.
16014         (vreinterpret_p8_s64): Likewise.
16015         (vreinterpret_p8_f32): Likewise.
16016         (vreinterpret_p8_u8): Likewise.
16017         (vreinterpret_p8_u16): Likewise.
16018         (vreinterpret_p8_u32): Likewise.
16019         (vreinterpret_p8_u64): Likewise.
16020         (vreinterpret_p8_p16): Likewise.
16021         (vreinterpretq_p8_s8): Likewise.
16022         (vreinterpretq_p8_s16): Likewise.
16023         (vreinterpretq_p8_s32): Likewise.
16024         (vreinterpretq_p8_s64): Likewise.
16025         (vreinterpretq_p8_f32): Likewise.
16026         (vreinterpretq_p8_u8): Likewise.
16027         (vreinterpretq_p8_u16): Likewise.
16028         (vreinterpretq_p8_u32): Likewise.
16029         (vreinterpretq_p8_u64): Likewise.
16030         (vreinterpretq_p8_p16): Likewise.
16031         (vreinterpret_p16_s8): Likewise.
16032         (vreinterpret_p16_s16): Likewise.
16033         (vreinterpret_p16_s32): Likewise.
16034         (vreinterpret_p16_s64): Likewise.
16035         (vreinterpret_p16_f32): Likewise.
16036         (vreinterpret_p16_u8): Likewise.
16037         (vreinterpret_p16_u16): Likewise.
16038         (vreinterpret_p16_u32): Likewise.
16039         (vreinterpret_p16_u64): Likewise.
16040         (vreinterpret_p16_p8): Likewise.
16041         (vreinterpretq_p16_s8): Likewise.
16042         (vreinterpretq_p16_s16): Likewise.
16043         (vreinterpretq_p16_s32): Likewise.
16044         (vreinterpretq_p16_s64): Likewise.
16045         (vreinterpretq_p16_f32): Likewise.
16046         (vreinterpretq_p16_u8): Likewise.
16047         (vreinterpretq_p16_u16): Likewise.
16048         (vreinterpretq_p16_u32): Likewise.
16049         (vreinterpretq_p16_u64): Likewise.
16050         (vreinterpretq_p16_p8): Likewise.
16051         (vreinterpret_f32_s8): Likewise.
16052         (vreinterpret_f32_s16): Likewise.
16053         (vreinterpret_f32_s32): Likewise.
16054         (vreinterpret_f32_s64): Likewise.
16055         (vreinterpret_f32_u8): Likewise.
16056         (vreinterpret_f32_u16): Likewise.
16057         (vreinterpret_f32_u32): Likewise.
16058         (vreinterpret_f32_u64): Likewise.
16059         (vreinterpret_f32_p8): Likewise.
16060         (vreinterpret_f32_p16): Likewise.
16061         (vreinterpretq_f32_s8): Likewise.
16062         (vreinterpretq_f32_s16): Likewise.
16063         (vreinterpretq_f32_s32): Likewise.
16064         (vreinterpretq_f32_s64): Likewise.
16065         (vreinterpretq_f32_u8): Likewise.
16066         (vreinterpretq_f32_u16): Likewise.
16067         (vreinterpretq_f32_u32): Likewise.
16068         (vreinterpretq_f32_u64): Likewise.
16069         (vreinterpretq_f32_p8): Likewise.
16070         (vreinterpretq_f32_p16): Likewise.
16071         (vreinterpret_s64_s8): Likewise.
16072         (vreinterpret_s64_s16): Likewise.
16073         (vreinterpret_s64_s32): Likewise.
16074         (vreinterpret_s64_f32): Likewise.
16075         (vreinterpret_s64_u8): Likewise.
16076         (vreinterpret_s64_u16): Likewise.
16077         (vreinterpret_s64_u32): Likewise.
16078         (vreinterpret_s64_u64): Likewise.
16079         (vreinterpret_s64_p8): Likewise.
16080         (vreinterpret_s64_p16): Likewise.
16081         (vreinterpretq_s64_s8): Likewise.
16082         (vreinterpretq_s64_s16): Likewise.
16083         (vreinterpretq_s64_s32): Likewise.
16084         (vreinterpretq_s64_f32): Likewise.
16085         (vreinterpretq_s64_u8): Likewise.
16086         (vreinterpretq_s64_u16): Likewise.
16087         (vreinterpretq_s64_u32): Likewise.
16088         (vreinterpretq_s64_u64): Likewise.
16089         (vreinterpretq_s64_p8): Likewise.
16090         (vreinterpretq_s64_p16): Likewise.
16091         (vreinterpret_u64_s8): Likewise.
16092         (vreinterpret_u64_s16): Likewise.
16093         (vreinterpret_u64_s32): Likewise.
16094         (vreinterpret_u64_s64): Likewise.
16095         (vreinterpret_u64_f32): Likewise.
16096         (vreinterpret_u64_u8): Likewise.
16097         (vreinterpret_u64_u16): Likewise.
16098         (vreinterpret_u64_u32): Likewise.
16099         (vreinterpret_u64_p8): Likewise.
16100         (vreinterpret_u64_p16): Likewise.
16101         (vreinterpretq_u64_s8): Likewise.
16102         (vreinterpretq_u64_s16): Likewise.
16103         (vreinterpretq_u64_s32): Likewise.
16104         (vreinterpretq_u64_s64): Likewise.
16105         (vreinterpretq_u64_f32): Likewise.
16106         (vreinterpretq_u64_u8): Likewise.
16107         (vreinterpretq_u64_u16): Likewise.
16108         (vreinterpretq_u64_u32): Likewise.
16109         (vreinterpretq_u64_p8): Likewise.
16110         (vreinterpretq_u64_p16): Likewise.
16111         (vreinterpret_s8_s16): Likewise.
16112         (vreinterpret_s8_s32): Likewise.
16113         (vreinterpret_s8_s64): Likewise.
16114         (vreinterpret_s8_f32): Likewise.
16115         (vreinterpret_s8_u8): Likewise.
16116         (vreinterpret_s8_u16): Likewise.
16117         (vreinterpret_s8_u32): Likewise.
16118         (vreinterpret_s8_u64): Likewise.
16119         (vreinterpret_s8_p8): Likewise.
16120         (vreinterpret_s8_p16): Likewise.
16121         (vreinterpretq_s8_s16): Likewise.
16122         (vreinterpretq_s8_s32): Likewise.
16123         (vreinterpretq_s8_s64): Likewise.
16124         (vreinterpretq_s8_f32): Likewise.
16125         (vreinterpretq_s8_u8): Likewise.
16126         (vreinterpretq_s8_u16): Likewise.
16127         (vreinterpretq_s8_u32): Likewise.
16128         (vreinterpretq_s8_u64): Likewise.
16129         (vreinterpretq_s8_p8): Likewise.
16130         (vreinterpretq_s8_p16): Likewise.
16131         (vreinterpret_s16_s8): Likewise.
16132         (vreinterpret_s16_s32): Likewise.
16133         (vreinterpret_s16_s64): Likewise.
16134         (vreinterpret_s16_f32): Likewise.
16135         (vreinterpret_s16_u8): Likewise.
16136         (vreinterpret_s16_u16): Likewise.
16137         (vreinterpret_s16_u32): Likewise.
16138         (vreinterpret_s16_u64): Likewise.
16139         (vreinterpret_s16_p8): Likewise.
16140         (vreinterpret_s16_p16): Likewise.
16141         (vreinterpretq_s16_s8): Likewise.
16142         (vreinterpretq_s16_s32): Likewise.
16143         (vreinterpretq_s16_s64): Likewise.
16144         (vreinterpretq_s16_f32): Likewise.
16145         (vreinterpretq_s16_u8): Likewise.
16146         (vreinterpretq_s16_u16): Likewise.
16147         (vreinterpretq_s16_u32): Likewise.
16148         (vreinterpretq_s16_u64): Likewise.
16149         (vreinterpretq_s16_p8): Likewise.
16150         (vreinterpretq_s16_p16): Likewise.
16151         (vreinterpret_s32_s8): Likewise.
16152         (vreinterpret_s32_s16): Likewise.
16153         (vreinterpret_s32_s64): Likewise.
16154         (vreinterpret_s32_f32): Likewise.
16155         (vreinterpret_s32_u8): Likewise.
16156         (vreinterpret_s32_u16): Likewise.
16157         (vreinterpret_s32_u32): Likewise.
16158         (vreinterpret_s32_u64): Likewise.
16159         (vreinterpret_s32_p8): Likewise.
16160         (vreinterpret_s32_p16): Likewise.
16161         (vreinterpretq_s32_s8): Likewise.
16162         (vreinterpretq_s32_s16): Likewise.
16163         (vreinterpretq_s32_s64): Likewise.
16164         (vreinterpretq_s32_f32): Likewise.
16165         (vreinterpretq_s32_u8): Likewise.
16166         (vreinterpretq_s32_u16): Likewise.
16167         (vreinterpretq_s32_u32): Likewise.
16168         (vreinterpretq_s32_u64): Likewise.
16169         (vreinterpretq_s32_p8): Likewise.
16170         (vreinterpretq_s32_p16): Likewise.
16171         (vreinterpret_u8_s8): Likewise.
16172         (vreinterpret_u8_s16): Likewise.
16173         (vreinterpret_u8_s32): Likewise.
16174         (vreinterpret_u8_s64): Likewise.
16175         (vreinterpret_u8_f32): Likewise.
16176         (vreinterpret_u8_u16): Likewise.
16177         (vreinterpret_u8_u32): Likewise.
16178         (vreinterpret_u8_u64): Likewise.
16179         (vreinterpret_u8_p8): Likewise.
16180         (vreinterpret_u8_p16): Likewise.
16181         (vreinterpretq_u8_s8): Likewise.
16182         (vreinterpretq_u8_s16): Likewise.
16183         (vreinterpretq_u8_s32): Likewise.
16184         (vreinterpretq_u8_s64): Likewise.
16185         (vreinterpretq_u8_f32): Likewise.
16186         (vreinterpretq_u8_u16): Likewise.
16187         (vreinterpretq_u8_u32): Likewise.
16188         (vreinterpretq_u8_u64): Likewise.
16189         (vreinterpretq_u8_p8): Likewise.
16190         (vreinterpretq_u8_p16): Likewise.
16191         (vreinterpret_u16_s8): Likewise.
16192         (vreinterpret_u16_s16): Likewise.
16193         (vreinterpret_u16_s32): Likewise.
16194         (vreinterpret_u16_s64): Likewise.
16195         (vreinterpret_u16_f32): Likewise.
16196         (vreinterpret_u16_u8): Likewise.
16197         (vreinterpret_u16_u32): Likewise.
16198         (vreinterpret_u16_u64): Likewise.
16199         (vreinterpret_u16_p8): Likewise.
16200         (vreinterpret_u16_p16): Likewise.
16201         (vreinterpretq_u16_s8): Likewise.
16202         (vreinterpretq_u16_s16): Likewise.
16203         (vreinterpretq_u16_s32): Likewise.
16204         (vreinterpretq_u16_s64): Likewise.
16205         (vreinterpretq_u16_f32): Likewise.
16206         (vreinterpretq_u16_u8): Likewise.
16207         (vreinterpretq_u16_u32): Likewise.
16208         (vreinterpretq_u16_u64): Likewise.
16209         (vreinterpretq_u16_p8): Likewise.
16210         (vreinterpretq_u16_p16): Likewise.
16211         (vreinterpret_u32_s8): Likewise.
16212         (vreinterpret_u32_s16): Likewise.
16213         (vreinterpret_u32_s32): Likewise.
16214         (vreinterpret_u32_s64): Likewise.
16215         (vreinterpret_u32_f32): Likewise.
16216         (vreinterpret_u32_u8): Likewise.
16217         (vreinterpret_u32_u16): Likewise.
16218         (vreinterpret_u32_u64): Likewise.
16219         (vreinterpret_u32_p8): Likewise.
16220         (vreinterpret_u32_p16): Likewise.
16221         (vreinterpretq_u32_s8): Likewise.
16222         (vreinterpretq_u32_s16): Likewise.
16223         (vreinterpretq_u32_s32): Likewise.
16224         (vreinterpretq_u32_s64): Likewise.
16225         (vreinterpretq_u32_f32): Likewise.
16226         (vreinterpretq_u32_u8): Likewise.
16227         (vreinterpretq_u32_u16): Likewise.
16228         (vreinterpretq_u32_u64): Likewise.
16229         (vreinterpretq_u32_p8): Likewise.
16230         (vreinterpretq_u32_p16): Likewise.
16232 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
16234         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
16235         Pattern extended.
16236         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
16237         (sqabs): Likewise.
16238         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
16239         (vqnegd_s64): Likewise.
16240         (vqabs_s64): Likewise.
16241         (vqabsd_s64): Likewise.
16243 2014-04-22  Richard Henderson  <rth@redhat.com>
16245         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
16246         computation to the top of the loop.
16248 2014-04-22  Renlin  <renlin.li@arm.com>
16249             Jiong Wang  <jiong.wang@arm.com>
16251         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
16252         * config/aarch64/aarch64.c (aarch64_layout_frame)
16253         (aarch64_initial_elimination_offset): Likewise.
16255 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16257         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
16258         Fix indentation.
16260 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
16262         * machmode.h (bitwise_mode_for_mode): Declare.
16263         * stor-layout.h (bitwise_type_for_mode): Likewise.
16264         * stor-layout.c (bitwise_mode_for_mode): New function.
16265         (bitwise_type_for_mode): Likewise.
16266         * builtins.c (fold_builtin_memory_op): Use it instead of
16267         int_mode_for_mode and build_nonstandard_integer_type.
16269 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16271         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
16272         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
16273         (*-*-solaris2*): Simplify.
16274         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
16275         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
16276         *-*-solaris2.9* handling.
16278         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
16279         as bug.
16280         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
16281         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
16282         handling, simplify.
16283         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
16284         * configure: Regenerate.
16286         * config/i386/sol2-9.h: Remove.
16288         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
16289         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
16290         Remove Solaris 9 references.
16292 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
16294         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
16295         (floatuns<GPI:mode><GPF:mode>2): Remove.
16296         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
16297         and floatuns conversions.
16298         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
16299         and floatuns conversions.
16300         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
16301         (w1,w2): New mode attributes for inequal width conversions.
16303 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
16305         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
16306         the output asm format.
16308 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
16310         * config/aarch64/aarch64-simd.md
16311         (aarch64_cm<optab>di): Always split.
16312         (*aarch64_cm<optab>di): New.
16313         (aarch64_cmtstdi): Always split.
16314         (*aarch64_cmtstdi): New.
16316 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
16318         PR tree-optimization/60823
16319         * omp-low.c (ipa_simd_modify_function_body): Go through
16320         all SSA_NAMEs and for those refering to vector arguments
16321         which are going to be replaced adjust SSA_NAME_VAR and,
16322         if it is a default definition, change it into a non-default
16323         definition assigned at the beginning of function from new_decl.
16324         (ipa_simd_modify_stmt_ops): Rewritten.
16325         * tree-dfa.c (set_ssa_default_def): When removing default def,
16326         check for NULL loc instead of NULL *loc.
16328 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16330         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
16331         restrictions on core registers for DImode values in Thumb2.
16333 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
16335         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
16336         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
16338 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
16340         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
16341         (*iordi_notzesidi_di): Likewise.
16342         (*iordi_notsesidi_di): Likewise.
16344 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
16346         * config/arm/arm-protos.h (tune_params): New struct members.
16347         * config/arm/arm.c: Initialise tune_params per processor.
16348         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
16349         for speed, based on new tune_params.
16351 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
16353         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
16354         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
16355         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
16356         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
16357         * config/aarch64/arm_neon.h (vrnd_f64): Added.
16358         (vrnda_f64): Likewise.
16359         (vrndi_f64): Likewise.
16360         (vrndm_f64): Likewise.
16361         (vrndn_f64): Likewise.
16362         (vrndp_f64): Likewise.
16363         (vrndx_f64): Likewise.
16365 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16367         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
16368         GET_MODE_SIZE argument is enum machine_mode.
16370 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
16372         PR target/60910
16373         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
16374         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
16376 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
16378         PR middle-end/60281
16379         * asan.c (asan_emit_stack_protection): Force the base to align to
16380         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
16381         appropriate bits if STRICT_ALIGNMENT.
16382         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
16383         when asan is on.
16384         (expand_used_vars): Leave a space in the stack frame for alignment
16385         if STRICT_ALIGNMENT.
16387 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
16389         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
16390         than a gimple.
16391         (gimple_store_p): Likewise.
16392         (gimple_assign_load_p): Likewise.
16393         (gimple_assign_cast_p): Likewise.
16394         (gimple_clobber_p): Likewise.
16396         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
16397         rather than a gimple.
16398         (gimple_assign_cast_p): Likewise.
16400 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
16402         PR target/60735
16403         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
16404         If mode is DDmode and TARGET_E500_DOUBLE allow move.
16406         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
16407         more debug information for E500 if -mdebug=reg.
16409 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
16411         PR target/60909
16412         * config/i386/i386.c (ix86_expand_builtin)
16413         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
16414         register for target RTX.
16415         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
16417 2014-04-18  Cong Hou  <congh@google.com>
16419         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
16420         the widen-mult pattern by handling two operands with different sizes,
16421         and operands whose size is smaller than half of the result type.
16423 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
16425         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
16426         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
16427         (do_estimate_edge_time): Compute it.
16428         * ipa-inline.c (want_inline_small_function_p): Bypass
16429         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
16431 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
16433         * ipa-inline.c (spec_rem): New static variable.
16434         (dump_overall_stats): New function.
16435         (dump_inline_stats): New function.
16437 2014-04-18  Richard Henderson  <rth@redhat.com>
16439         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
16440         to GET_MODE_SIZE, not a reg_class_t.
16442 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16444         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
16445         (vsx_xxmrglw_<mode>): Likewise.
16447 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
16449         PR target/60876
16450         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
16451         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
16452         (rs6000_init_hard_regno_mode_ok): Likewise.
16454 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
16456         * ipa-inline.c (inline_small_functions): Account only non-cold
16457         functions.
16458         * doc/invoke.texi (inline-unit-growth): Update documentation.
16460 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
16462         * config/rs6000/rs6000.md (addti3, subti3): New.
16464 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
16466         PR target/60863
16467         * config/i386/i386.c (ix86_expand_clear): Remove outdated
16468         comment.  Check optimize_insn_for_size_p instead of
16469         optimize_insn_for_speed_p.
16471 2014-04-17  Martin Jambor  <mjambor@suse.cz>
16473         * gimple-iterator.c (gsi_start_edge): New function.
16474         * gimple-iterator.h (gsi_start_edge): Declare.
16475         * tree-sra.c (single_non_eh_succ): New function.
16476         (disqualify_ops_if_throwing_stmt): Renamed to
16477         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
16478         having one non-EH successor BB.
16479         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
16480         generate loads into replacements.
16481         (sra_modify_assign): Likewise and and also use the simple path for
16482         such statements.
16483         (sra_modify_function_body): Commit statements on edges.
16485 2014-04-17  Richard Biener  <rguenther@suse.de>
16487         PR middle-end/60849
16488         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
16489         comparison results and add clarifying comment.
16491 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
16493         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
16494         (blank_mode): Initialize it.
16495         (emit_mode_size_inline, emit_mode_nunits_inline,
16496         emit_mode_inner_inline): New functions.
16497         (emit_insn_modes_h): Call them and surround their output with
16498         #if GCC_VERSION >= 4001 ... #endif.
16499         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
16500         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
16501         mode_* arrays if the argument is __builtin_constant_p.
16502         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
16503         is enum machine_mode.
16505 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
16507         * passes.c (opt_pass::execute): Adjust.
16508         (pass_manager::execute_pass_mode_switching): Likewise.
16509         (early_local_passes::execute): Likewise.
16510         (execute_one_pass): Pass cfun to the pass's execute method.
16511         * tree-pass.h (opt_pass::execute): Add function * argument.
16512         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
16513         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
16514         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
16515         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
16516         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
16517         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
16518         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
16519         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
16520         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
16521         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
16522         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
16523         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
16524         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
16525         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
16526         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
16527         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
16528         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
16529         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
16530         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
16531         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16532         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
16533         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
16534         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
16535         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16536         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16537         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
16538         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
16539         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
16540         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
16541         Adjust.
16543 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
16545         * passes.c (opt_pass::gate): Take function * argument.
16546         (gate_all_early_local_passes): Merge into
16547         (early_local_passes::gate): this.
16548         (gate_all_early_optimizations): Merge into
16549         (all_early_optimizations::gate): this.
16550         (gate_all_optimizations): Mege into
16551         (all_optimizations::gate): this.
16552         (gate_all_optimizations_g): Merge into
16553         (all_optimizations_g::gate): this.
16554         (gate_rest_of_compilation): Mege into
16555         (rest_of_compilation::gate): this.
16556         (gate_postreload): Merge into
16557         (postreload::gate): this.
16558         (dump_one_pass): Pass cfun to the pass's gate method.
16559         (execute_ipa_summary_passes): Likewise.
16560         (execute_one_pass): Likewise.
16561         (ipa_write_summaries_2): Likewise.
16562         (ipa_write_optimization_summaries_1): Likewise.
16563         (ipa_read_summaries_1): Likewise.
16564         (ipa_read_optimization_summaries_1): Likewise.
16565         (execute_ipa_stmt_fixups): Likewise.
16566         * tree-pass.h (opt_pass::gate): Add function * argument.
16567         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
16568         combine-stack-adj.c, combine.c, compare-elim.c,
16569         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
16570         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
16571         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
16572         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
16573         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
16574         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
16575         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
16576         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
16577         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
16578         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
16579         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
16580         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
16581         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
16582         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
16583         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
16584         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16585         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
16586         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
16587         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
16588         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16589         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16590         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
16591         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
16592         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
16593         var-tracking.c, vtable-verify.c, web.c: Adjust.
16595 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
16597         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
16598         * configure: Regenerate.
16600 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
16602         * passes.c (dump_one_pass): don't check pass->has_gate.
16603         (execute_ipa_summary_passes): Likewise.
16604         (execute_one_pass): Likewise.
16605         (ipa_write_summaries_2): Likewise.
16606         (ipa_write_optimization_summaries_1): Likewise.
16607         (ipa_read_optimization_summaries_1): Likewise.
16608         (execute_ipa_stmt_fixups): Likewise.
16609         * tree-pass.h (pass_data::has_gate): Remove.
16610         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
16611         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
16612         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
16613         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
16614         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
16615         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
16616         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
16617         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
16618         gimple-low.c, gimple-ssa-isolate-paths.c,
16619         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
16620         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
16621         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
16622         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
16623         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
16624         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
16625         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
16626         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
16627         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
16628         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
16629         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
16630         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
16631         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16632         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
16633         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
16634         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
16635         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
16636         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
16637         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
16638         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
16639         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
16640         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
16641         Adjust.
16643 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
16645         * pass_manager.h (pass_manager::register_dump_files_1): Remove
16646         declaration.
16647         * passes.c (pass_manager::register_dump_files_1): Merge into
16648         (pass_manager::register_dump_files): this, and remove its handling of
16649         properties since the pass always has the properties anyway.
16650         (pass_manager::pass_manager): Adjust.
16652 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
16654         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
16655         * passes.c (pass_manager::register_dump_files_1): Remove dead code
16656         dealing with properties.
16657         (pass_manager::register_dump_files): Adjust.
16659 2014-03-20  Mark Wielaard  <mjw@redhat.com>
16661         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
16662         then represent the bound as normal constant value.
16664 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
16666         PR target/60847
16667         Forward port from 4.8 branch
16668         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
16670         * config/i386/bmiintrin.h (_blsi_u32): New.
16671         (_blsi_u64): Ditto.
16672         (_blsr_u32): Ditto.
16673         (_blsr_u64): Ditto.
16674         (_blsmsk_u32): Ditto.
16675         (_blsmsk_u64): Ditto.
16676         (_tzcnt_u32): Ditto.
16677         (_tzcnt_u64): Ditto.
16679 2014-04-17  Kito Cheng  <kito@0xlab.org>
16681         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
16683 2014-04-17  Richard Biener  <rguenther@suse.de>
16685         PR middle-end/60849
16686         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
16687         boolean results for comparisons.
16689 2014-04-17  Richard Biener  <rguenther@suse.de>
16691         PR tree-optimization/60836
16692         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
16693         initial PHI args to be gimple values.
16695 2014-04-17  Richard Biener  <rguenther@suse.de>
16697         PR tree-optimization/60841
16698         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
16699         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
16700         of stmts to SLP build.
16701         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
16702         (vect_analyze_slp): Likewise.
16703         (vect_analyze_slp_instance): Likewise.
16704         (vect_build_slp_tree): Limit overall SLP tree growth.
16705         * tree-vectorizer.h (vect_analyze_data_refs,
16706         vect_analyze_slp): Adjust prototypes.
16708 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
16710         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
16711         Silvermont.
16713 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
16715         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
16716         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
16717         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
16718         for TARGET_SLOW_PSHUFB
16720 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
16722         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
16723         * config/i386/i386.c (intel_cost): Ditto.
16725 2014-04-17  Joey Ye  <joey.ye@arm.com>
16727         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
16729 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
16731         * opts.c (common_handle_option): Disable -fipa-reference coorectly
16732         with -fuse-profile.
16734 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
16736         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
16737         (type_all_derivations_known_p): New predicate.
16738         (type_all_ctors_visible_p): New predicate.
16739         (type_possibly_instantiated_p): New predicate.
16740         (get_odr_type): Compute all_derivations_known.
16741         (dump_odr_type): Dump the flag.
16742         (maybe_record_type): Cleanup.
16743         (record_target_from_binfo): Add bases_to_consider array;
16744         record bases for types w/o instances and skip CXX destructor.
16745         (possible_polymorphic_call_targets_1): Add bases_to_consider
16746         and consider_construction parameters; check if type may have instance.
16747         (get_polymorphic_call_info): Set maybe_in_construction to true
16748         when we know nothing.
16749         (record_targets_from_bases): Skip CXX destructors; they are
16750         never called for types in construction.
16751         (possible_polymorphic_call_targets): Do not record target when
16752         type may not have instance.
16754 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
16756         PR ipa/60854
16757         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
16758         external aliases alive, too.
16760 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
16762         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
16763         definition.
16765 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
16767         * final.c (compute_alignments): Do not apply loop alignment to a block
16768         falling through to the exit.
16770 2014-04-16  Catherine Moore  <clm@codesourcery.com>
16772         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
16773         Adjust constraints for microMIPS store patterns.
16775 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
16777         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
16779 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
16781         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
16782         (append_use): Run at -O0.
16783         (append_vdef): Likewise.
16784         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
16785         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
16787 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
16789         PR tree-optimization/60844
16790         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
16791         (propagate_op_to_single_use, remove_visited_stmt_chain,
16792         linearize_expr, repropagate_negates, reassociate_bb): Use it
16793         instead of gsi_remove.
16795 2014-04-16  Martin Jambor  <mjambor@suse.cz>
16797         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
16798         ipa_transforms_to_apply.
16799         (cgraph_function_versioning): Assert that old_node has empty
16800         ipa_transforms_to_apply.
16801         * trans-mem.c (ipa_tm_create_version): Likewise.
16802         * tree-inline.c (tree_function_versioning): Do not duplicate
16803         ipa_transforms_to_apply.
16805 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16807         PR target/60817
16808         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
16809         x86_64-*-* cases.
16810         Pass necessary as flags on 64-bit Solaris/x86.
16811         Use lowercase relocs for x86_64-*-*.
16812         * configure: Regenerate.
16814 2014-04-15  Jan Hubicka  <jh@suse.cz>
16816         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
16817         (maybe_record_node, likely_target_p): Use it.
16819 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16821         PR target/60839
16822         Revert following patch
16824         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
16826         PR target/60735
16827         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
16828         software floating point or no floating point registers, do not
16829         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
16830         in GPRs that occurs after we tested for GPRs that would never be
16831         true.
16833         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
16834         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
16835         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
16836         specifically allow DDmode, since that does not use the SPE SIMD
16837         instructions.
16839 2014-03-21  Mark Wielaard  <mjw@redhat.com>
16841         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
16842         as unsigned or int depending on type and value used.
16844 2014-04-15  Richard Biener  <rguenther@suse.de>
16846         PR rtl-optimization/56965
16847         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
16848         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
16849         ... here.
16850         * alias.c (true_dependence_1): Do not call
16851         nonoverlapping_component_refs_p.
16852         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
16853         nonoverlapping_component_refs_p.
16854         (indirect_refs_may_alias_p): Likewise.
16856 2014-04-15  Teresa Johnson  <tejohnson@google.com>
16858         * cfg.c (dump_bb_info): Fix flags check.
16859         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
16861 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16863         PR rtl-optimization/60663
16864         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
16865         avoid 0 cost.
16867 2014-04-15  Richard Biener  <rguenther@suse.de>
16869         * lto-streamer.h (LTO_major_version): Bump to 4.
16871 2014-04-15  Richard Biener  <rguenther@suse.de>
16873         * common.opt (lto_partition_model): New enum.
16874         (flto-partition=): Merge separate options with a single with argument,
16875         add -flto-partition=one support.
16876         * flag-types.h (enum lto_partition_model): Declare.
16877         * opts.c (finish_options): Remove duplicate -flto-partition=
16878         option check.
16879         * lto-wrapper.c (run_gcc): Adjust.
16881 2014-04-15  Richard Biener  <rguenther@suse.de>
16883         * alias.c (ncr_compar): New function.
16884         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
16886 2014-04-15  Richard Biener  <rguenther@suse.de>
16888         * alias.c (record_component_aliases): Do not walk BINFOs.
16890 2014-04-15  Richard Biener  <rguenther@suse.de>
16892         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16893         Add struct function argument and adjust.
16894         (find_func_aliases_for_call): Likewise.
16895         (find_func_aliases): Likewise.
16896         (find_func_clobbers): Likewise.
16897         (intra_create_variable_infos): Likewise.
16898         (compute_points_to_sets): Likewise.
16899         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
16901 2014-04-15  Richard Biener  <rguenther@suse.de>
16903         * tree.c (iterative_hash_expr): Use enum tree_code_class
16904         to store TREE_CODE_CLASS.
16905         (tree_block): Likewise.
16906         (tree_set_block): Likewise.
16907         * tree.h (fold_build_pointer_plus_loc): Use
16908         convert_to_ptrofftype_loc.
16910 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
16912         PR plugins/59335
16913         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
16914         added in 4.9.
16916 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
16918         * cfgloop.h (struct loop): Move force_vectorize down.
16919         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
16920         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
16921         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
16922         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
16923         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
16924         * tree-core.h (enum annot_expr_kind): Add new kind values.
16925         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
16926         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
16927         kinds.
16928         * tree.def (ANNOTATE_EXPR): Tweak comment.
16930 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
16932         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
16933         cxa_pure_virtual).
16935 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
16937         * tree.h (TYPE_IDENTIFIER): Declare.
16938         * tree.c (subrange_type_for_debug_p): Use it.
16939         * godump.c (go_format_type): Likewise.
16940         * dwarf2out.c (is_cxx_auto, modified_type_die,
16941         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
16942         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
16944 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
16946         PR lto/60820
16947         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
16949 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
16951         * config/i386/i386.c (examine_argument): Return bool.  Return true if
16952         parameter should be passed in memory.
16953         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
16954         (construct_container): Update calls to examine_argument.
16955         (function_arg_advance_64): Ditto.
16956         (return_in_memory_32): Merge with ix86_return_in_memory.
16957         (return_in_memory_64): Ditto.
16958         (return_in_memory_ms_64): Ditto.
16960 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
16962         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
16963         * coverage.c (coverage_compute_profile_id): Handle externally visible
16964         symbols.
16966 2014-04-14  Martin Jambor  <mjambor@suse.cz>
16968         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
16969         DECL_DISREGARD_INLINE_LIMITS functions.
16971 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
16973         PR target/60827
16974         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
16976 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
16978         PR target/60827
16979         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
16980         optimize_insn_for_speed_p instead of
16981         optimize_function_for_speed_p.
16983 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
16985         * doc/invoke.texi (free): Document AArch64.
16987 2014-04-14  Richard Biener  <rguenther@suse.de>
16989         PR tree-optimization/60042
16990         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
16991         (insert_into_preds_of_block): Do not prevent PHI insertion
16992         for REFERENCE exprs here ...
16993         (eliminate_dom_walker::before_dom_children): ... but prevent
16994         their use here under similar conditions when applied to the
16995         IL after PRE optimizations.
16997 2014-04-14  Richard Biener  <rguenther@suse.de>
16999         * passes.def: Move early points-to after early SRA.
17001 2014-04-14  Richard Biener  <rguenther@suse.de>
17003         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
17004         check for which sign-changes we allow when forwarding
17005         a converted value into a switch.
17007 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
17009         * stor-layout.c (place_field): Finalize non-constant offset for the
17010         field, if any.
17012 2014-04-14  Richard Biener  <rguenther@suse.de>
17014         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
17015         as argument.
17016         (expand_switch_using_bit_tests_p): Likewise.
17017         (process_switch): Compute and pass on speed_p based on the
17018         switch stmt.
17019         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
17020         optimize_bb_for_speed_p.
17022 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
17024         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
17025         * function.h (struct function): Rename has_force_vect_loops into
17026         has_force_vectorize_loops.
17027         * lto-streamer-in.c (input_cfg): Adjust for renaming.
17028         (input_struct_function_base): Likewise.
17029         * lto-streamer-out.c (output_cfg): Likewise.
17030         (output_struct_function_base): Likewise.
17031         * omp-low.c (expand_omp_simd): Likewise.
17032         * tree-cfg.c (move_sese_region_to_fn): Likewise.
17033         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
17034         (version_loop_for_if_conversion): Likewise.
17035         (tree_if_conversion): Likewise.
17036         (main_tree_if_conversion): Likewise.
17037         (gate_tree_if_conversion): Likewise.
17038         * tree-inline.c (copy_loops): Likewise.
17039         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
17040         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
17041         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
17042         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
17043         * tree-vectorizer.c (vectorize_loops): Likewise.
17044         * tree-vectorizer.h (unlimited_cost_model): Likewise.
17046 2014-04-14  Richard Biener  <rguenther@suse.de>
17048         PR lto/60720
17049         * lto-streamer-out.c (wrap_refs): New function.
17050         (lto_output): Wrap symbol references in global initializes in
17051         type-preserving MEM_REFs.
17053 2014-04-14  Christian Bruel  <christian.bruel@st.com>
17055         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
17057 2014-04-14  Christian Bruel  <christian.bruel@st.com>
17059         * config/sh/sh.md (setmemqi): New expand pattern.
17060         * config/sh/sh.h (CLEAR_RATIO): Define.
17061         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
17062         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
17064 2014-04-14  Richard Biener  <rguenther@suse.de>
17066         PR middle-end/55022
17067         * fold-const.c (negate_expr_p): Don't negate directional rounding
17068         division.
17069         (fold_negate_expr): Likewise.
17071 2014-04-14  Richard Biener  <rguenther@suse.de>
17073         PR tree-optimization/59817
17074         PR tree-optimization/60453
17075         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
17076         recursion to catch all CHRECs in the scalar evolution and restrict
17077         the predicate for the remains appropriately.
17079 2014-04-12  Catherine Moore  <clm@codesourcery.com>
17081         * config/mips/constraints.md: Add new register constraint "kb".
17082         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
17083         (*movhi_internal): Likewise.
17084         (*movqi_internal): Likewise.
17085         * config/mips/mips.h (M16_STORE_REGS): New register class.
17086         (REG_CLASS_NAMES): Add M16_STORE_REGS.
17087         (REG_CLASS_CONTENTS): Likewise.
17088         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
17090 2014-04-11  Tobias Burnus  <burnus@net-b.de>
17092         PR c/60194
17093         * doc/invoke.texi (-Wformat-signedness): Document it.
17094         (Wformat=2): Mention that this enables -Wformat-signedness.
17096 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
17098         * common/config/epiphany/epiphany-common.c
17099         (epiphany_option_optimization_table): Enable section anchors by
17100         default at -O1 or higher.
17101         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
17102         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
17103         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
17104         carries no extra cost.
17105         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
17106         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
17107         * config/epiphany/predicates.md (memclob_operand): New predicate.
17108         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
17109         Use memclob_operand predicate and X constraint for operand 3.
17111 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
17113         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
17114         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
17115         its operands.
17117 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
17119         PR rtl-optimization/60651
17120         * mode-switching.c (optimize_mode_switching): Make sure to emit
17121         sets of a lower numbered entity before sets of a higher numbered
17122         entity to a mode of the same or lower priority.
17123         When creating a seginfo for a basic block that starts with a code
17124         label, move the insertion point past the code label.
17125         (new_seginfo): Document and enforce requirement that
17126         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
17127         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
17128         * doc/tm.texi: Regenerate.
17130 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
17132         PR target/60811
17133         * config/arc/arc.c (arc_save_restore): Fix assert typo.
17135 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
17137         * BASE-VER: Set to 4.10.0.
17139 2014-04-11  Tobias Burnus  <burnus@net-b.de>
17141         PR other/59055
17142         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
17143         * doc/gcc.texi (Service): Update description in the @menu
17144         * doc/invoke.texi (Option Summary): Remove misplaced and
17145         duplicated @menu.
17147 2014-04-11  Steve Ellcey  <sellcey@mips.com>
17148             Jakub Jelinek  <jakub@redhat.com>
17150         PR middle-end/60556
17151         * expr.c (convert_move): Use emit_store_flag_force instead of
17152         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
17153         argument to it.
17155 2014-04-11  Richard Biener  <rguenther@suse.de>
17157         PR middle-end/60797
17158         * varasm.c (assemble_alias): Avoid endless error reporting
17159         recursion by setting TREE_ASM_WRITTEN.
17161 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17163         * config/s390/s390.md: Add a splitter for NOT rtx.
17165 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
17167         PR rtl-optimization/60663
17168         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
17170 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
17171             Jakub Jelinek  <jakub@redhat.com>
17173         PR lto/60567
17174         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
17175         flag from decl_node to node.
17177 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17179         PR debug/60655
17180         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
17181         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
17182         ameliorating the cases where it can be.
17184 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
17186         Revert
17187         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
17189         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
17190         (loadsync_<mode>): Change mode.
17191         (load_quadpti, store_quadpti): New.
17192         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
17193         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
17194         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
17196 2014-04-09  Cong Hou  <congh@google.com>
17198         PR testsuite/60773
17199         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
17200         documentation.
17202 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17204         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
17205         instead of vnor to exploit possible fusion opportunity in the
17206         future.
17207         (altivec_expand_vec_perm_const_le): Likewise.
17209 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
17211         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
17212         (loadsync_<mode>): Change mode.
17213         (load_quadpti, store_quadpti): New.
17214         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
17215         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
17217 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
17219         PR target/60763
17220         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
17221         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
17222         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
17224 2014-04-08  Richard Biener  <rguenther@suse.de>
17226         PR middle-end/60706
17227         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
17228         a 64bit widest int print double-int similar to on HWI64 hosts.
17230 2014-04-08  Richard Biener  <rguenther@suse.de>
17232         PR tree-optimization/60785
17233         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
17234         default defs properly.
17236 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
17238         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
17239         (Weffc++): Likewise.
17241 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
17243         * ipa-devirt.c (maybe_record_node): When node is not recorded,
17244         set completep to false rather than true.
17246 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
17248         PR target/60504
17249         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
17250         ARM_TARGET2_DWARF_FORMAT.
17252 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
17254         PR target/60609
17255         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
17256         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
17257         ADDR_DIFF_VEC.
17259 2014-04-07  Richard Biener  <rguenther@suse.de>
17261         PR tree-optimization/60766
17262         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
17263         (may_eliminate_iv): Convert cand_value_at result to desired type.
17265 2014-04-07  Jason Merrill  <jason@redhat.com>
17267         PR c++/60731
17268         * common.opt (-fno-gnu-unique): Add.
17269         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
17271 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17273         * haifa-sched.c: Fix outdated function reference and minor
17274         grammar errors in introductory comment.
17276 2014-04-07  Richard Biener  <rguenther@suse.de>
17278         PR middle-end/60750
17279         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
17280         for noreturn calls.
17281         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
17283 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
17285         PR debug/55794
17286         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
17287         size accounting for thunks.
17288         (pa_asm_output_mi_thunk): Use final_start_function() and
17289         final_end_function() to output function start and end directives.
17291 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
17293         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
17294         device specific ISA/ feature information. Remove short_sp and
17295         errata_skip ds.  Add avr_device_specific_features enum to have device
17296         specific info.
17297         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
17298         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
17299         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
17300         updated device specific info.
17301         * config/avr/avr-mcus.def: Merge device specific details to
17302         dev_attribute field.
17303         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
17304         errata_skip.
17305         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
17306         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
17307         assembler if RMW isa supported by current device.
17308         * config/avr/genmultilib.awk: Update as device info structure changed.
17309         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
17311 2014-04-04  Cong Hou  <congh@google.com>
17313         PR tree-optimization/60656
17314         * tree-vect-stmts.c (supportable_widening_operation):
17315         Fix a bug that elements in a vector with vect_used_by_reduction
17316         property are incorrectly reordered when the operation on it is not
17317         consistant with the one in reduction operation.
17319 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
17321         PR rtl-optimization/60155
17322         * gcse.c (record_set_data): New function.
17323         (single_set_gcse): New function.
17324         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
17325         (hoist_code): Likewise.
17326         (get_pressure_class_and_nregs): Likewise.
17328 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
17330         * explow.c (probe_stack_range): Emit a final optimization blockage.
17332 2014-04-04  Anthony Green  <green@moxielogic.com>
17334         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
17335         typos.
17337 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
17339         PR ipa/59626
17340         * lto-cgraph.c (input_overwrite_node): Check that partitioning
17341         flags are set only during streaming.
17342         * ipa.c (process_references, walk_polymorphic_call_targets,
17343         symtab_remove_unreachable_nodes): Drop bodies of always inline
17344         after early inlining.
17345         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
17347 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
17348         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17350         PR debug/60655
17351         * dwarf2out.c (const_ok_for_output_1): Reject expressions
17352         containing a NOT.
17354 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17356         PR bootstrap/60743
17357         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
17358         duration.
17359         (cortex_a53_fdivd): Likewise.
17361 2014-04-04  Martin Jambor  <mjambor@suse.cz>
17363         PR ipa/60640
17364         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
17365         Adjust all callers.
17366         * cgraph.c (clone_of_p): Also return true if thunks match.
17367         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
17368         cgraph_function_or_thunk_node and an obsolete comment.
17369         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
17370         file.
17371         (build_function_decl_skip_args): Likewise.
17372         (set_new_clone_decl_and_node_flags): New function.
17373         (duplicate_thunk_for_node): Likewise.
17374         (redirect_edge_duplicating_thunks): Likewise.
17375         (cgraph_clone_node): New parameter args_to_skip, pass it to
17376         redirect_edge_duplicating_thunks which is called instead of
17377         cgraph_redirect_edge_callee.
17378         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
17379         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
17381 2014-04-04  Jeff Law  <law@redhat.com>
17383         PR target/60657
17384         * config/arm/predicates.md (const_int_I_operand): New predicate.
17385         (const_int_M_operand): Similarly.
17386         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
17387         const_int_operand.
17388         (insv_t2, extv_reg, extzv_t2): Likewise.
17389         (load_multiple_with_writeback): Similarly for const_int_I_operand.
17390         (pop_multiple_with_writeback_and_return): Likewise.
17391         (vfp_pop_multiple_with_writeback): Likewise
17393 2014-04-04  Richard Biener  <rguenther@suse.de>
17395         PR ipa/60746
17396         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
17397         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
17398         non-GIMPLE_LABELs.
17399         * gimplify.h (gimple_add_tmp_var_fn): Declare.
17400         * gimplify.c (gimple_add_tmp_var_fn): New function.
17401         * gimple-expr.h (create_tmp_reg_fn): Declare.
17402         * gimple-expr.c (create_tmp_reg_fn): New function.
17403         * gimple-low.c (record_vars_into): Don't change cfun.
17404         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
17405         code generation without cfun.
17407 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
17409         PR bootstrap/60719
17410         * Makefile.in (install-driver): Fix shell scripting.
17412 2014-04-03  Cong Hou  <congh@google.com>
17414         PR tree-optimization/60505
17415         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
17416         threshold of number of iterations below which no vectorization
17417         will be done.
17418         * tree-vect-loop.c (new_loop_vec_info):
17419         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
17420         * tree-vect-loop.c (vect_analyze_loop_operations):
17421         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
17422         * tree-vect-loop.c (vect_transform_loop):
17423         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
17424         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
17425         of iterations of the loop and see if we should build the epilogue.
17427 2014-04-03  Richard Biener  <rguenther@suse.de>
17429         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
17430         (streamer_tree_cache_create): Adjust.
17431         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
17432         to allow optional nodes array.
17433         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
17434         (streamer_tree_cache_append): Likewise.
17435         (streamer_tree_cache_create): Create nodes array optionally
17436         as specified by parameter.
17437         * lto-streamer-out.c (create_output_block): Avoid maintaining
17438         the node array in the writer cache.
17439         (DFS_write_tree): Remove assertion.
17440         (produce_asm_for_decls): Free the out decl state hash table early.
17441         * lto-streamer-in.c (lto_data_in_create): Adjust for
17442         streamer_tree_cache_create prototype change.
17444 2014-04-03  Richard Biener  <rguenther@suse.de>
17446         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
17447         set TREE_CHAIN to NULL_TREE.
17449 2014-04-03  Richard Biener  <rguenther@suse.de>
17451         PR tree-optimization/60740
17452         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
17453         over all GIMPLE_COND operands.
17455 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
17457         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
17458         (Weffc++): Remove Scott's numbering, merge lists and reference
17459         Wnon-virtual-dtor.
17461 2014-04-03  Nick Clifton  <nickc@redhat.com>
17463         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
17464         properly.
17466 2014-04-03  Martin Jambor  <mjambor@suse.cz>
17468         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
17469         mention gcc_unreachable before failing.
17470         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
17471         removed symbols.
17473 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
17475         PR ipa/60659
17476         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
17477         inconsistent code and instead mark the context inconsistent.
17478         (possible_polymorphic_call_targets): For inconsistent contexts
17479         return empty complete list.
17481 2014-04-02  Anthony Green  <green@moxielogic.com>
17483         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
17484         (extendqisi2, extendhisi2): Define.
17485         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
17486         (WCHAR_TYPE): Change to unsigned int.
17488 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17490         PR tree-optimization/60733
17491         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
17492         insertion point for PHI candidates to be the end of the feeding
17493         block for the PHI argument.
17495 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
17497         PR rtl-optimization/60650
17498         * lra-constraints.c (process_alt_operands): Decrease reject for
17499         earlyclobber matching.
17501 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17503         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
17505 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17507         * config/spu/spu.c (pad_bb): Do not crash when the last
17508         insn is CODE_FOR_blockage.
17510 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17512         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
17513         lies outside the target mode.
17515 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
17517         PR target/60735
17518         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
17519         software floating point or no floating point registers, do not
17520         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
17521         in GPRs that occurs after we tested for GPRs that would never be
17522         true.
17524         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
17525         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
17526         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
17527         specifically allow DDmode, since that does not use the SPE SIMD
17528         instructions.
17530 2014-04-02  Richard Biener  <rguenther@suse.de>
17532         PR middle-end/60729
17533         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
17534         MODE_INTs.  Properly use negv_optab.
17535         (expand_abs): Likewise.
17537 2014-04-02  Richard Biener  <rguenther@suse.de>
17539         PR bootstrap/60719
17540         * Makefile.in (install-driver): Guard extra installs with special
17541         names properly.
17543 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
17545         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17546         Document vec_vgbbd.
17548 2014-04-01  Richard Henderson  <rth@redhat.com>
17550         PR target/60704
17551         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
17552         alternative enabled before register allocation.
17554 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
17556         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
17557         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
17558         typo.
17559         (nios2_large_got_address): Remove unneeded 'sym' parameter.
17560         (nios2_got_address): Update nios2_large_got_address call site.
17561         (nios2_delegitimize_address): New function.
17562         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
17563         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
17564         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
17566 2014-04-01  Martin Husemann  <martin@duskware.de>
17568         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
17569         for -mabi=32.
17571 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
17573         PR rtl-optimization/60604
17574         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
17575         check from register_operand.
17576         (register_operand): Redefine in terms of general_operand.
17577         (nonmemory_operand): Use register_operand for the non-constant cases.
17579 2014-04-01  Richard Biener  <rguenther@suse.de>
17581         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
17583 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17585         * doc/invoke.texi (mapp-regs): Clarify.
17587 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
17589         * config/i386/avx512fintrin.h (__v32hi): Define type.
17590         (__v64qi): Likewise.
17591         (_mm512_set1_epi8): Define.
17592         (_mm512_set1_epi16): Define.
17593         (_mm512_set4_epi32): Define.
17594         (_mm512_set4_epi64): Define.
17595         (_mm512_set4_pd): Define.
17596         (_mm512_set4_ps): Define.
17597         (_mm512_setr4_epi64): Define.
17598         (_mm512_setr4_epi32): Define.
17599         (_mm512_setr4_pd): Define.
17600         (_mm512_setr4_ps): Define.
17601         (_mm512_setzero_epi32): Define.
17603 2014-03-31  Martin Jambor  <mjambor@suse.cz>
17605         PR middle-end/60647
17606         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
17607         callsite_arguments_match_p.  Updated all callers.  Also check types of
17608         corresponding formal parameters and actual arguments.
17609         (not_all_callers_have_enough_arguments_p) Renamed to
17610         some_callers_have_mismatched_arguments_p.
17612 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
17614         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
17616 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
17618         PR target/60034
17619         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
17620         section anchor.
17622 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
17624         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
17625         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
17626         Split out
17627         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
17628         Use FMAMODE_NOVF512 mode iterator.
17629         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
17630         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
17631         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
17632         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
17633         Split out
17634         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
17635         Use VF_128_256 mode iterator.
17636         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
17637         Ditto.
17639 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
17641         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
17642         static chain if needed.
17644 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
17646         PR target/60697
17647         * lra-constraints.c (index_part_to_reg): New.
17648         (process_address): Use it.
17650 2014-03-27  Jeff Law  <law@redhat.com>
17651             Jakub Jelinek  <jakub@redhat.com>
17653         PR target/60648
17654         * expr.c (do_tablejump): Use simplify_gen_binary rather than
17655         gen_rtx_{PLUS,MULT} to build up the address expression.
17657         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
17658         creating non-canonical RTL.
17660 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
17662         PR ipa/60243
17663         * ipa-inline.c (want_inline_small_function_p): Short circuit large
17664         functions; reorganize to make cheap checks first.
17665         (inline_small_functions): Do not estimate growth when dumping;
17666         it is expensive.
17667         * ipa-inline.h (inline_summary): Add min_size.
17668         (growth_likely_positive): New function.
17669         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
17670         (set_cond_stmt_execution_predicate): Cleanup.
17671         (estimate_edge_size_and_time): Compute min_size.
17672         (estimate_calls_size_and_time): Likewise.
17673         (estimate_node_size_and_time): Likewise.
17674         (inline_update_overall_summary): Update min_size.
17675         (do_estimate_edge_time): Likewise.
17676         (do_estimate_edge_size): Update.
17677         (do_estimate_edge_hints): Update.
17678         (growth_likely_positive): New function.
17680 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
17682         PR target/60693
17683         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
17684         also if addr has VOIDmode.
17686 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17688         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
17689         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
17690         Declare extern.
17691         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
17692         instructions as well as AdvancedSIMD loads.
17694 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17696         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
17697         Use crypto_aese type.
17698         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
17699         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
17700         crypto_aese, crypto_aesmc.  Move to types.md.
17701         * config/arm/types.md (crypto_aes): Split into crypto_aese,
17702         crypto_aesmc.
17703         * config/arm/iterators.md (crypto_type): Likewise.
17705 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
17707         * cgraph.c: Include expr.h and tree-dfa.h.
17708         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
17709         remove LHS.
17711 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
17713         PR target/60675
17714         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
17715         regs from checking multi-reg pseudos.
17717 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17719         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
17721 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17723         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
17724         if it would clobber the stack pointer, even temporarily.
17726 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
17728         * mode-switching.c: Make small adjustments to the top comment.
17730 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
17732         * config/rs6000/constraints.md (wD constraint): New constraint to
17733         match the constant integer to get the top DImode/DFmode out of a
17734         vector in a VSX register.
17736         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
17737         match the constant integer to get the top DImode/DFmode out of a
17738         vector in a VSX register.
17740         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
17741         for ISA 2.07.
17743         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17744         vbpermq builtins.
17746         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
17747         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
17749         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
17750         Optimize vec_extract of 64-bit values, where the value being
17751         extracted is in the top word, where we can use scalar
17752         instructions.  Add direct move and store support.  Combine the big
17753         endian/little endian vector select load support into a single insn.
17754         (vsx_extract_<mode>_internal1): Likewise.
17755         (vsx_extract_<mode>_internal2): Likewise.
17756         (vsx_extract_<mode>_load): Likewise.
17757         (vsx_extract_<mode>_store): Likewise.
17758         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
17759         combined into vsx_extract_<mode>_load.
17760         (vsx_extract_<mode>_one_le): Likewise.
17762         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
17763         define the top 64-bit vector element.
17765         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
17766         constraint.
17768         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17769         Document vec_vbpermq builtin.
17771         PR target/60672
17772         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
17773         enable use of xxsldwi and xxpermdi builtin functions.
17774         (vec_xxpermdi): Likewise.
17776         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17777         Document use of vec_xxsldwi and vec_xxpermdi builtins.
17779 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
17781         PR rtl-optimization/60650
17782         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
17783         first_p.  Use it.
17784         (find_spills_for): New.
17785         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
17786         Spill all pseudos on the second iteration.
17788 2014-03-27  Marek Polacek  <polacek@redhat.com>
17790         PR c/50347
17791         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
17792         types.
17794 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17796         * config/s390/s390.c (s390_can_use_return_insn): Check for
17797         call-saved FPRs on 31 bit.
17799 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
17801         PR middle-end/60682
17802         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
17803         if they need regimplification, just drop them instead of
17804         calling gimple_regimplify_operands on them.
17806 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17808         PR target/60580
17809         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
17810         (aarch64_frame_pointer_required): Adjust logic.
17811         (aarch64_can_eliminate): Adjust logic.
17812         (aarch64_override_options_after_change): Adjust logic.
17814 2014-03-27  Dehao Chen  <dehao@google.com>
17816         * ipa-inline.c (early_inliner): Update node's inline info.
17818 2014-03-26  Dehao Chen  <dehao@google.com>
17820         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
17821         compiler inserted conditional jumps for NAN float check.
17823 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
17825         * ubsan.h (ubsan_create_data): Change second argument's type
17826         to const location_t *.
17827         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
17828         _("<unknown>").
17829         (ubsan_create_data): Change second argument to const location_t *PLOC.
17830         Create Loc field whenever PLOC is non-NULL.
17831         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
17832         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
17833         callers.
17835         PR other/59545
17836         * real.c (real_to_integer2): Change type of low to UHWI.
17838 2014-03-26  Tobias Burnus  <burnus@net-b.de>
17840         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
17841         (CILK_SELF_SPECS): New define.
17842         (driver_self_specs): Use it.
17844 2014-03-26  Richard Biener  <rguenther@suse.de>
17846         * tree-pretty-print.c (percent_K_format): Implement special
17847         case for LTO and its stripped down BLOCK tree.
17849 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
17851         PR sanitizer/60636
17852         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
17854         * tree-vrp.c (simplify_internal_call_using_ranges): If only
17855         one range is range_int_cst_p, but not both, at least optimize
17856         addition/subtraction of 0 and multiplication by 0 or 1.
17857         * gimple-fold.c (gimple_fold_call): Fold
17858         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
17859         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
17860         INTEGER_CSTs, try to fold at least x * 0 and y - y.
17862 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
17864         PR rtl-optimization/60452
17865         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
17866         <case REG>: Return 1 for invalid offsets from the frame pointer.
17868 2014-03-26  Marek Polacek  <polacek@redhat.com>
17870         PR c/37428
17871         * doc/extend.texi (C Extensions): Mention variable-length arrays in
17872         a structure/union.
17874 2014-03-26  Marek Polacek  <polacek@redhat.com>
17876         PR c/39525
17877         * doc/extend.texi (Designated Inits): Describe what happens to omitted
17878         field members.
17880 2014-03-26  Marek Polacek  <polacek@redhat.com>
17882         PR other/59545
17883         * ira-color.c (update_conflict_hard_regno_costs): Perform the
17884         multiplication in unsigned type.
17886 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
17888         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
17890 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
17892         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
17894 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
17896         PR ipa/60315
17897         * cif-code.def (UNREACHABLE) New code.
17898         * ipa-inline.c (inline_small_functions): Skip edges to
17899         __builtlin_unreachable.
17900         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
17901         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
17902         predicate to __bulitin_unreachable.
17903         (set_cond_stmt_execution_predicate): Fix issue when
17904         invert_tree_comparison returns ERROR_MARK.
17905         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
17906         propagate to inline clones.
17907         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
17908         to unreachable.
17909         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
17910         * cgraphclones.c (cgraph_clone_node): If call destination is already
17911         ureachable, do not redirect it back.
17912         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
17913         unreachable.
17915 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
17917         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
17918         Do not modify inline clones.
17920 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
17922         * config/i386/i386.md (general_sext_operand): New mode attr.
17923         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
17924         don't generate (sign_extend (const_int)).
17925         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
17926         operands[2].  Use We constraint instead of <i> and
17927         <general_sext_operand> predicate instead of <general_operand>.
17928         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
17929         * config/i386/constraints.md (We): New constraint.
17930         * config/i386/predicates.md (x86_64_sext_operand,
17931         sext_operand): New predicates.
17933 2014-03-25  Martin Jambor  <mjambor@suse.cz>
17935         PR ipa/60600
17936         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
17937         inconsistent devirtualizations to __builtin_unreachable.
17939 2014-03-25  Marek Polacek  <polacek@redhat.com>
17941         PR c/35449
17942         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
17944 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
17946         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
17947         order of elements for big-endian.
17949 2014-03-25  Richard Biener  <rguenther@suse.de>
17951         PR middle-end/60635
17952         * gimplify-me.c (gimple_regimplify_operands): Update the
17953         re-gimplifed stmt.
17955 2014-03-25  Martin Jambor  <mjambor@suse.cz>
17957         PR ipa/59176
17958         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
17959         (lto_output_varpool_node): Likewise.
17960         (input_overwrite_node): Likewise.
17961         (input_varpool_node): Likewise.
17963 2014-03-25  Richard Biener  <rguenther@suse.de>
17965         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
17966         (run_gcc): Likewise.
17968 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
17970         * combine.c (simplify_compare_const): Add MODE argument.
17971         Handle mode_width 0 as very large mode_width.
17972         (try_combine, simplify_comparison): Adjust callers.
17974         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
17975         type to avoid signed integer overflow.
17976         * explow.c (plus_constant): Likewise.
17978 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17980         * doc/generic.texi: Correct typos.
17982 2014-03-24  Tobias Burnus  <burnus@net-b.de>
17984         * doc/invoke.texi (-flto): Expand section about
17985         using static libraries with LTO.
17987 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17989         PR rtl-optimization/60501
17990         * optabs.def (addptr3_optab): New optab.
17991         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
17992         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
17993         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
17995         * lra.c (emit_add3_insn): Use the addptr pattern if available.
17997         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
17999 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
18001         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
18002         _mm512_set1_pd.
18004         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
18005         (_mm256_undefined_ps): Define.
18006         (_mm256_undefined_pd): Define.
18007         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
18008         (_mm_undefined_pd): Define.
18009         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
18010         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
18011         (_mm512_undefined_ps): Define.
18012         (_mm512_undefined_pd): Define.
18013         Use _mm*_undefined_*.
18014         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
18016 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
18018         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
18019         (lshr_simd): DI mode added.
18020         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
18021         (aarch64_ushr_simddi): Likewise.
18022         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
18023         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
18024         (vshrd_n_u64): Likewise.
18026 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18028         * Makefile.in (s-macro_list): Depend on cc1.
18030 2014-03-23  Teresa Johnson  <tejohnson@google.com>
18032         * ipa-utils.c (ipa_print_order): Use specified dump file.
18034 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
18036         PR rtl-optimization/60601
18037         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
18039         * gcc.c (eval_spec_function): Initialize save_growing_value.
18041 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
18043         PR sanitizer/60613
18044         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
18045         code == MINUS_EXPR, never swap op0 with op1.
18047         * toplev.c (init_local_tick): Avoid signed integer multiplication
18048         overflow.
18049         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
18050         shift by first operand's bitsize.
18052 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
18054         PR target/60610
18055         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
18056         redefine to 1 or 0.
18057         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
18058         TARGET_ISA_64BIT_P(x).
18060 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18062         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
18063         pattern for vector nor instead of subtract from splat(-1).
18064         (altivec_expand_vec_perm_const_le): Likewise.
18066 2014-03-21  Richard Henderson  <rth@twiddle.net>
18068         PR target/60598
18069         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
18070         related insns after epilogue_completed.
18072 2014-03-21  Martin Jambor  <mjambor@suse.cz>
18074         PR ipa/59176
18075         * cgraph.h (symtab_node): New flag body_removed.
18076         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
18077         when removing bodies.
18078         * symtab.c (dump_symtab_base): Dump body_removed flag.
18079         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
18080         had their bodies removed.
18082 2014-03-21  Martin Jambor  <mjambor@suse.cz>
18084         PR ipa/60419
18085         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
18086         in the border.
18088 2014-03-21  Richard Biener  <rguenther@suse.de>
18090         PR tree-optimization/60577
18091         * tree-core.h (struct tree_base): Document nothrow_flag use
18092         in DECL_NONALIASED.
18093         * tree.h (DECL_NONALIASED): New.
18094         (may_be_aliased): Adjust.
18095         * coverage.c (build_var): Set DECL_NONALIASED.
18097 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
18099         * expr.c (expand_expr_real_1): Remove outdated comment.
18101 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
18103         PR middle-end/60597
18104         * ira.c (adjust_cleared_regs): Call copy_rtx on
18105         *reg_equiv[REGNO (loc)].src_p before passing it to
18106         simplify_replace_fn_rtx.
18108         PR target/60568
18109         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
18110         into CONST, put pic register as first operand of PLUS.  Use
18111         gen_const_mem for both 32-bit and 64-bit PIC got loads.
18113 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18115         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
18117 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
18119         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
18120         around for store forwarding issue in the FPU on the UT699.
18121         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
18122         loads and operations if -mfix-ut699 is specified.
18123         (divtf3_hq): Tweak attribute.
18124         (sqrttf2_hq): Likewise.
18126 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
18128         * calls.c (store_one_arg): Remove incorrect const qualification on the
18129         type of the temporary.
18130         * cfgexpand.c (expand_return): Likewise.
18131         * expr.c (expand_constructor): Likewise.
18132         (expand_expr_real_1): Likewise.
18134 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18136         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
18137         of parts.
18139 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
18141         PR target/60039
18142         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
18144 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
18146         * config/arm/aarch-common-protos.h
18147         (alu_cost_table): Fix spelling of "extend".
18148         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
18150 2014-03-19  Richard Biener  <rguenther@suse.de>
18152         PR middle-end/60553
18153         * tree-core.h (tree_type_common): Re-order pointer members
18154         to reduce recursion depth during GC walks.
18156 2014-03-19  Marek Polacek  <polacek@redhat.com>
18158         PR sanitizer/60569
18159         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
18160         before accessing it.
18162 2014-03-19  Richard Biener  <rguenther@suse.de>
18164         PR lto/59543
18165         * lto-streamer-in.c (input_function): In WPA stage do not drop
18166         debug stmts.
18168 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
18170         PR tree-optimization/60559
18171         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
18172         with build_zero_cst assignment.
18174 2014-03-18  Kai Tietz  <ktietz@redhat.com>
18176         PR rtl-optimization/56356
18177         * sdbout.c (sdbout_parms): Verify that parms'
18178         incoming argument is valid.
18179         (sdbout_reg_parms): Likewise.
18181 2014-03-18  Richard Henderson  <rth@redhat.com>
18183         PR target/60562
18184         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
18185         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
18186         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
18188 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
18190         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
18191         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
18192         Italicize plugin event names in description.  Explain that
18193         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
18194         Remind that no GCC functions should be called after PLUGIN_FINISH.
18195         Explain what pragmas with expansion are.
18197 2014-03-18  Martin Liska  <mliska@suse.cz>
18199         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
18200         gimple call statement is update.
18201         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
18202         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
18204 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
18206         PR sanitizer/60557
18207         * ubsan.c (ubsan_instrument_unreachable): Call
18208         initialize_sanitizer_builtins.
18209         (ubsan_pass): Likewise.
18211         PR sanitizer/60535
18212         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
18213         varpool_finalize_decl instead of rest_of_decl_compilation.
18215 2014-03-18  Richard Biener  <rguenther@suse.de>
18217         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
18218         by using bitmap_and_compl instead of bitmap_and_compl_into.
18219         (df_rd_transfer_function): Likewise.
18221 2014-03-18  Richard Biener  <rguenther@suse.de>
18223         * doc/lto.texi (fresolution): Fix typo.
18225 2014-03-18  Richard Biener  <rguenther@suse.de>
18227         * doc/invoke.texi (flto): Update for changes in 4.9.
18229 2014-03-18  Richard Biener  <rguenther@suse.de>
18231         * doc/loop.texi: Remove section on the removed lambda framework.
18232         Update loop docs with recent changes in preserving loop structure.
18234 2014-03-18  Richard Biener  <rguenther@suse.de>
18236         * doc/lto.texi (-fresolution): Document.
18238 2014-03-18  Richard Biener  <rguenther@suse.de>
18240         * doc/contrib.texi: Adjust my name.
18242 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
18244         PR ipa/58721
18245         * internal-fn.c: Include diagnostic-core.h.
18246         (expand_BUILTIN_EXPECT): New function.
18247         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
18248         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
18249         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
18250         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
18251         IFN_BUILTIN_EXPECT.
18252         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
18253         Revert 3 argument __builtin_expect code.
18254         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
18255         * gimple-fold.c (gimple_fold_call): Likewise.
18256         * tree.h (fold_builtin_expect): New prototype.
18257         * builtins.c (build_builtin_expect_predicate): Add predictor
18258         argument, if non-NULL, create 3 argument __builtin_expect.
18259         (fold_builtin_expect): No longer static.  Add ARG2 argument,
18260         pass it through to build_builtin_expect_predicate.
18261         (fold_builtin_2): Adjust caller.
18262         (fold_builtin_3): Handle BUILT_IN_EXPECT.
18263         * internal-fn.def (BUILTIN_EXPECT): New.
18265 2014-03-18  Tobias Burnus  <burnus@net-b.de>
18267         PR ipa/58721
18268         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
18269         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
18270         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
18272 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
18274         PR ipa/58721
18275         * predict.c (combine_predictions_for_bb): Fix up formatting.
18276         (expr_expected_value_1, expr_expected_value): Add predictor argument,
18277         fill what it points to if non-NULL.
18278         (tree_predict_by_opcode): Adjust caller, use the predictor.
18279         * predict.def (PRED_COMPARE_AND_SWAP): Add.
18281 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
18283         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
18284         proper constant for the store mode.
18286 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
18288         * symtab.c (change_decl_assembler_name): Fix transparent alias
18289         chain construction.
18291 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
18293         * config/aarch64/aarch64.c: Correct the comments about the
18294         aarch64 stack layout.
18296 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
18298         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
18299         check for GF_OMP_FOR_KIND_FOR.
18301 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
18303         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
18304         ymm and zmm register names.
18306 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
18308         PR target/60516
18309         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
18310         note creation for the 2010-08-31 changes.
18312 2014-03-17  Marek Polacek  <polacek@redhat.com>
18314         PR middle-end/60534
18315         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
18316         as -fno-tree-loop-vectorize.
18317         (expand_omp_simd): Likewise.
18319 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
18321         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
18322         (eligible_for_call_delay): New prototype.
18323         * config/sparc/sparc.c (tls_call_delay): Rename into...
18324         (eligible_for_call_delay): ...this.  Return false if the instruction
18325         cannot be put in the delay slot of a branch.
18326         (eligible_for_restore_insn): Simplify.
18327         (eligible_for_return_delay): Return false if the instruction cannot be
18328         put in the delay slot of a branch and simplify.
18329         (eligible_for_sibcall_delay): Return false if the instruction cannot be
18330         put in the delay slot of a branch.
18331         * config/sparc/sparc.md (fix_ut699): New attribute.
18332         (tls_call_delay): Delete.
18333         (in_call_delay): Reimplement.
18334         (eligible_for_sibcall_delay): Rename into...
18335         (in_sibcall_delay): ...this.
18336         (eligible_for_return_delay): Rename into...
18337         (in_return_delay): ...this.
18338         (in_branch_delay): Reimplement.
18339         (in_uncond_branch_delay): Delete.
18340         (in_annul_branch_delay): Delete.
18342 2014-03-14  Richard Henderson  <rth@redhat.com>
18344         PR target/60525
18345         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
18346         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
18347         (*floathi<X87MODEF>2_i387_with_temp): Remove.
18348         (floathi splitters): Remove.
18349         (float<SWI48x>xf2): New pattern.
18350         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
18351         code that tried to handle DImode for 32-bit, but which was excluded
18352         by the pattern's condition.  Drop allocation of stack temporary.
18353         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
18354         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
18355         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
18356         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
18357         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
18358         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
18359         (*float<SWI48><MODEF>2_sse_interunit): Remove.
18360         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
18361         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
18362         (*float<SWI48x><X87MODEF>2_i387): Remove.
18363         (all float _with_temp splitters): Remove.
18364         (*float<SWI48x><MODEF>2_i387): New pattern.
18365         (*float<SWI48><MODEF>2_sse): New pattern.
18366         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
18367         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
18369 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
18370             Marek Polacek  <polacek@redhat.com>
18372         PR middle-end/60484
18373         * common.opt (dump_base_name_prefixed): New Variable.
18374         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
18375         if x_dump_base_name_prefixed is already set, set it at the end.
18377 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
18379         PR rtl-optimization/60508
18380         * lra-constraints.c (get_reload_reg): Add new parameter
18381         in_subreg_p.
18382         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
18383         Pass the new parameter values.
18385 2014-03-14  Richard Biener  <rguenther@suse.de>
18387         * common.opt: Revert unintented changes from r205065.
18388         * opts.c: Likewise.
18390 2014-03-14  Richard Biener  <rguenther@suse.de>
18392         PR middle-end/60518
18393         * cfghooks.c (split_block): Properly adjust all loops the
18394         block was a latch of.
18396 2014-03-14  Martin Jambor  <mjambor@suse.cz>
18398         PR lto/60461
18399         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
18400         and simplify it.
18402 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
18404         PR target/59396
18405         * config/avr/avr.c (avr_set_current_function): Pass function name
18406         through default_strip_name_encoding before sanity checking instead
18407         of skipping the first char of the assembler name.
18409 2014-03-13  Richard Henderson  <rth@redhat.com>
18411         PR debug/60438
18412         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
18413         (ix86_force_to_memory, ix86_free_from_memory): Remove.
18414         * config/i386/i386-protos.h: Likewise.
18415         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
18416         in the expander instead of a splitter.
18417         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
18418         any possibility of requiring a memory.
18419         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
18420         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
18421         (fp branch splitters): Update for ix86_split_fp_branch.
18422         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
18423         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
18424         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
18425         (*fop_<MODEF>_2_i387): Remove f/r alternative.
18426         (*fop_<MODEF>_3_i387): Likewise.
18427         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
18428         (splitters for the fop_* register patterns): Remove.
18429         (fscalexf4_i387): Rename from *fscalexf4_i387.
18430         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
18432 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
18434         PR tree-optimization/59779
18435         * tree-dfa.c (get_ref_base_and_extent): Use double_int
18436         type for bitsize and maxsize instead of HOST_WIDE_INT.
18438 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
18440         PR rtl-optimization/57320
18441         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
18442         the CFG after thread_prologue_and_epilogue_insns.
18444 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
18446         PR rtl-optimization/57189
18447         * lra-constraints.c (process_alt_operands): Disfavor spilling
18448         vector pseudos.
18450 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
18452         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
18454 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
18456         PR tree-optimization/59025
18457         PR middle-end/60418
18458         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
18459         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
18461 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
18463         PR target/60486
18464         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
18465         calls of avr_out_plus_1.
18467 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
18469         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
18470         BB's single pred and update the father loop's latch info later.
18472 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
18474         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
18475         (VEC_M): Likewise.
18476         (VEC_N): Likewise.
18477         (VEC_R): Likewise.
18478         (VEC_base): Likewise.
18479         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
18480         registers, we need to swap double words in little endian mode.
18482         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
18483         to be a container mode for 128-bit integer operations added in ISA
18484         2.07.  Unlike TImode and PTImode, the preferred register set is
18485         the Altivec/VMX registers for the 128-bit operations.
18487         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
18488         declarations.
18489         (rs6000_split_128bit_ok_p): Likewise.
18491         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
18492         macros for creating ISA 2.07 normal and overloaded builtin
18493         functions with 3 arguments.
18494         (BU_P8V_OVERLOAD_3): Likewise.
18495         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
18496         for use as overloaded functions.
18497         (VPERM_1TI_UNS): Likewise.
18498         (VSEL_1TI): Likewise.
18499         (VSEL_1TI_UNS): Likewise.
18500         (ST_INTERNAL_1ti): Likewise.
18501         (LD_INTERNAL_1ti): Likewise.
18502         (XXSEL_1TI): Likewise.
18503         (XXSEL_1TI_UNS): Likewise.
18504         (VPERM_1TI): Likewise.
18505         (VPERM_1TI_UNS): Likewise.
18506         (XXPERMDI_1TI): Likewise.
18507         (SET_1TI): Likewise.
18508         (LXVD2X_V1TI): Likewise.
18509         (STXVD2X_V1TI): Likewise.
18510         (VEC_INIT_V1TI): Likewise.
18511         (VEC_SET_V1TI): Likewise.
18512         (VEC_EXT_V1TI): Likewise.
18513         (EQV_V1TI): Likewise.
18514         (NAND_V1TI): Likewise.
18515         (ORC_V1TI): Likewise.
18516         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
18517         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
18518         overloaded builtin.
18519         (VADDUQM): Likewise.
18520         (VSUBCUQ): Likewise.
18521         (VADDEUQM): Likewise.
18522         (VADDECUQ): Likewise.
18523         (VSUBEUQM): Likewise.
18524         (VSUBECUQ): Likewise.
18526         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
18527         __int128_t and __uint128_t types.
18528         (__uint128_type): Likewise.
18529         (altivec_categorize_keyword): Add support for vector __int128_t,
18530         vector __uint128_t, vector __int128, and vector unsigned __int128
18531         as a container type for TImode operations that need to be done in
18532         VSX/Altivec registers.
18533         (rs6000_macro_to_expand): Likewise.
18534         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
18535         to support 128-bit integer instructions vaddcuq, vadduqm,
18536         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
18537         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
18539         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
18540         for V1TImode, and set up preferences to use VSX/Altivec registers.
18541         Setup VSX reload handlers.
18542         (rs6000_debug_reg_global): Likewise.
18543         (rs6000_init_hard_regno_mode_ok): Likewise.
18544         (rs6000_preferred_simd_mode): Likewise.
18545         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
18546         (easy_altivec_constant): Likewise.
18547         (output_vec_const_move): Likewise.
18548         (rs6000_expand_vector_set): Convert V1TImode set and extract to
18549         simple move.
18550         (rs6000_expand_vector_extract): Likewise.
18551         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
18552         addressing.
18553         (rs6000_const_vec): Add support for V1TImode.
18554         (rs6000_emit_le_vsx_load): Swap double words when loading or
18555         storing TImode/V1TImode.
18556         (rs6000_emit_le_vsx_store): Likewise.
18557         (rs6000_emit_le_vsx_move): Likewise.
18558         (rs6000_emit_move): Add support for V1TImode.
18559         (altivec_expand_ld_builtin): Likewise.
18560         (altivec_expand_st_builtin): Likewise.
18561         (altivec_expand_vec_init_builtin): Likewise.
18562         (altivec_expand_builtin): Likewise.
18563         (rs6000_init_builtins): Add support for V1TImode type.  Add
18564         support for ISA 2.07 128-bit integer builtins.  Define type names
18565         for the VSX/Altivec vector types.
18566         (altivec_init_builtins): Add support for overloaded vector
18567         functions with V1TImode type.
18568         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
18569         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
18570         external function.
18571         (rs6000_split_128bit_ok_p): Likewise.
18572         (rs6000_handle_altivec_attribute): Create V1TImode from vector
18573         __int128_t and vector __uint128_t.
18575         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
18576         and mode attributes.
18577         (VSX_M): Likewise.
18578         (VSX_M2): Likewise.
18579         (VSm): Likewise.
18580         (VSs): Likewise.
18581         (VSr): Likewise.
18582         (VSv): Likewise.
18583         (VS_scalar): Likewise.
18584         (VS_double): Likewise.
18585         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
18587         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
18588         we support the ISA 2.07 128-bit integer arithmetic instructions.
18589         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
18590         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
18591         and TImode types for use with the builtin functions.
18592         (V1TI_type_node): Likewise.
18593         (unsigned_V1TI_type_node): Likewise.
18594         (intTI_type_internal_node): Likewise.
18595         (uintTI_type_internal_node): Likewise.
18597         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
18598         128-bit builtin functions.
18599         (UNSPEC_VADDEUQM): Likewise.
18600         (UNSPEC_VADDECUQ): Likewise.
18601         (UNSPEC_VSUBCUQ): Likewise.
18602         (UNSPEC_VSUBEUQM): Likewise.
18603         (UNSPEC_VSUBECUQ): Likewise.
18604         (VM): Add V1TImode to vector mode iterators.
18605         (VM2): Likewise.
18606         (VI_unit): Likewise.
18607         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
18608         (altivec_vaddcuq): Likewise.
18609         (altivec_vsubuqm): Likewise.
18610         (altivec_vsubcuq): Likewise.
18611         (altivec_vaddeuqm): Likewise.
18612         (altivec_vaddecuq): Likewise.
18613         (altivec_vsubeuqm): Likewise.
18614         (altivec_vsubecuq): Likewise.
18616         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
18617         mode iterators.
18618         (BOOL_128): Likewise.
18619         (BOOL_REGS_OUTPUT): Likewise.
18620         (BOOL_REGS_OP1): Likewise.
18621         (BOOL_REGS_OP2): Likewise.
18622         (BOOL_REGS_UNARY): Likewise.
18623         (BOOL_REGS_AND_CR0): Likewise.
18625         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
18626         128-bit integer builtin support.
18627         (vec_vadduqm): Likewise.
18628         (vec_vaddecuq): Likewise.
18629         (vec_vaddeuqm): Likewise.
18630         (vec_vsubecuq): Likewise.
18631         (vec_vsubeuqm): Likewise.
18632         (vec_vsubcuq): Likewise.
18633         (vec_vsubuqm): Likewise.
18635         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
18636         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
18637         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
18638         128-bit integer add/subtract to ISA 2.07.
18640 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
18642         * config/arc/arc.c (arc_predicate_delay_insns):
18643         Fix third argument passed to conditionalize_nonjump.
18645 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
18647         * config/aarch64/aarch64-builtins.c
18648         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
18649         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
18650         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
18651         instead of __builtin_lfloor.
18652         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
18654 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
18656         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
18657         (tree_ssa_ifcombine_bb_1): New function.
18658         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
18659         is an empty forwarder block to then_bb or vice versa and then_bb
18660         and else_bb are effectively swapped.
18662 2014-03-12  Christian Bruel  <christian.bruel@st.com>
18664         PR target/60264
18665         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
18666         REG_CFA_DEF_CFA note.
18667         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
18668         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
18670 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18672         PR tree-optimization/60454
18673         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
18675 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18677         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
18678         Do not define target_cpu_default2 to generic.
18679         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
18680         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
18681         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
18683 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
18684             Marc Glisse  <marc.glisse@inria.fr>
18686         PR tree-optimization/60502
18687         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
18688         instead of build_low_bits_mask.
18690 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
18692         PR middle-end/60482
18693         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
18694         if there are multiple uses, but op doesn't live on E edge.
18695         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
18696         clobber stmts before __builtin_unreachable.
18698 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
18700         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
18701         hard_frame_pointer_rtx.
18702         * cse.c (cse_insn): Remove volatile check.
18703         * cselib.c (cselib_process_insn): Likewise.
18704         * dse.c (scan_insn): Likewise.
18706 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
18708         * config/arc/arc.c (conditionalize_nonjump): New function,
18709         broken out of ...
18710         (arc_ifcvt): ... this.
18711         (arc_predicate_delay_insns): Use it.
18713 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
18715         * config/arc/predicates.md (extend_operand): During/after reload,
18716         allow const_int_operand.
18717         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
18718         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
18719         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
18720         to "i".
18721         (umulsi3_highpart_i): Likewise.
18723 2014-03-11  Richard Biener  <rguenther@suse.de>
18725         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
18726         Add asserts to guard possible wrong-code bugs.
18728 2014-03-11  Richard Biener  <rguenther@suse.de>
18730         PR tree-optimization/60429
18731         PR tree-optimization/60485
18732         * tree-ssa-structalias.c (set_union_with_increment): Properly
18733         take into account all fields that overlap the shifted vars.
18734         (do_sd_constraint): Likewise.
18735         (do_ds_constraint): Likewise.
18736         (get_constraint_for_ptr_offset): Likewise.
18738 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
18740         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
18741         (nios2_compute_frame_layout):
18742         Add calculation of cfun->machine->fp_save_offset.
18743         (nios2_expand_prologue): Correct setting of frame pointer register
18744         in prologue.
18745         (nios2_expand_epilogue): Update recovery of stack pointer from
18746         frame pointer accordingly.
18747         (nios2_initial_elimination_offset): Update calculation of offset
18748         for eliminating to HARD_FRAME_POINTER_REGNUM.
18750 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
18752         PR ipa/60457
18753         * ipa.c (symtab_remove_unreachable_nodes): Don't call
18754         cgraph_get_create_node on VAR_DECLs.
18756 2014-03-10  Richard Biener  <rguenther@suse.de>
18758         PR middle-end/60474
18759         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
18761 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
18763         * config/vms/vms.opt (vms_float_format): New variable.
18765 2014-03-08  Tobias Burnus  <burnus@net-b.de>
18767         * doc/invoke.texi (-fcilkplus): Update implementation status.
18769 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
18770             Richard Biener  <rguenther@suse.de>
18772         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
18773         consistently accross all TUs.
18774         (run_gcc): Enable -fshort-double automatically at link at link-time
18775         and disallow override.
18777 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
18779         PR target/58271
18780         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
18781         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
18782         if they can't be used.
18784 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18786         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
18787         for Solaris 11/x86 ld.
18788         * configure: Regenerate.
18790 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18792         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
18793         (LIB_TLS_SPEC): Save as ld_tls_libs.
18794         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
18795         (HAVE_AS_IX86_TLSLDM): New test.
18796         * configure, config.in: Regenerate.
18797         * config/i386/i386.c (legitimize_tls_address): Fall back to
18798         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
18799         cannot support TLS_MODEL_LOCAL_DYNAMIC.
18800         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
18801         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
18803 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
18805         * common.opt (fira-loop-pressure): Mark as optimization.
18807 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
18809         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
18810         an OpenMP mappable type.
18812 2014-03-06  Matthias Klose  <doko@ubuntu.com>
18814         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
18815         MULTILIB_OSDIRNAMES is not defined.
18817 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
18818             Meador Inge  <meadori@codesourcery.com>
18820         PR target/58595
18821         * config/arm/arm.c (arm_tls_symbol_p): Remove.
18822         (arm_legitimize_address): Call legitimize_tls_address for any
18823         arm_tls_referenced_p expression, handle constant addend.  Call it
18824         before testing for !TARGET_ARM.
18825         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
18827 2014-03-06  Richard Biener  <rguenther@suse.de>
18829         PR middle-end/60445
18830         PR lto/60424
18831         PR lto/60427
18832         Revert
18833         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
18835         * tree-streamer.c (record_common_node): Assert we don't record
18836         nodes with type double.
18837         (preload_common_node): Skip type double, complex double and double
18838         pointer since it is now frontend dependent due to fshort-double option.
18840 2014-03-06  Richard Biener  <rguenther@suse.de>
18842         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
18843         or -fno-lto is specified and the linker has full plugin support.
18844         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
18845         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
18846         * lto-wrapper.c (merge_and_complain): Merge compile-time
18847         optimization levels.
18848         (run_gcc): And pass it through to the link options.
18850 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
18852         PR debug/60381
18853         Revert:
18854         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
18855         PR debug/59992
18856         * cselib.c (remove_useless_values): Skip to avoid quadratic
18857         behavior if the condition moved from...
18858         (cselib_process_insn): ... here holds.
18860 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
18862         PR plugins/59335
18863         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
18864         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
18866         PR plugins/59335
18867         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
18868         (TM_H): Add x86-tune.def.
18870 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18872         * config/aarch64/aarch64.c (generic_tunings):
18873         Use cortexa57_extra_costs.
18875 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
18877         PR lto/60404
18878         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
18879         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
18880         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
18881         cost for in_lto_p.
18883 2014-03-04  Heiher  <r@hev.cc>
18885         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
18886         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
18888 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
18890         * config/i386/predicates.md (const2356_operand): Change to ...
18891         (const2367_operand): ... this.
18892         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
18893         const2367_operand.
18894         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
18895         (*avx512pf_scatterpf<mode>sf): Ditto.
18896         (avx512pf_scatterpf<mode>df): Ditto.
18897         (*avx512pf_scatterpf<mode>df_mask): Ditto.
18898         (*avx512pf_scatterpf<mode>df): Ditto.
18899         * config/i386/i386.c (ix86_expand_builtin): Update
18900         incorrect hint operand error message.
18902 2014-03-04  Richard Biener  <rguenther@suse.de>
18904         * lto-section-in.c (lto_get_section_data): Fix const cast.
18906 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
18908         * tree-streamer.c (record_common_node): Assert we don't record
18909         nodes with type double.
18910         (preload_common_node): Skip type double, complex double and double
18911         pointer since it is now frontend dependent due to fshort-double option.
18913 2014-03-04  Richard Biener  <rguenther@suse.de>
18915         PR lto/60405
18916         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
18917         (lto_input_toplevel_asms): Likewise.
18918         * lto-section-in.c (lto_get_section_data): Instead do it here
18919         for every section.
18921 2014-03-04  Richard Biener  <rguenther@suse.de>
18923         PR tree-optimization/60382
18924         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
18925         dead PHIs a reduction.
18927 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
18929         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
18930         hint value.
18931         (_mm_prefetch): Move out of GCC target("sse") pragma.
18932         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
18933         GCC target("prfchw") pragma.
18934         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
18935         for locality <= 2.
18936         * config/i386/i386.c (ix86_option_override_internal): Enable
18937         -mprfchw with -mprefetchwt1.
18939 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
18941         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
18942         Mark as varying.
18944 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
18946         * opts.h (CL_PCH_IGNORE): Define.
18947         * targhooks.c (option_affects_pch_p):
18948         Return false for options that have CL_PCH_IGNORE set.
18949         * opt-functions.awk: Process PchIgnore.
18950         * doc/options.texi: Document PchIgnore.
18952         * config/arc/arc.opt (misize): Add PchIgnore property.
18954 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18956         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
18957         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
18958         constraint on constants to permit them being loaded into
18959         GENERAL_REGS or BASE_REGS.
18961 2014-03-03  Nick Clifton  <nickc@redhat.com>
18963         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
18964         anti-cacnonical alternatives.
18965         (negandhi3_real): New pattern.
18966         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
18968 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
18970         * config/avr/avr-mcus.def: Remove atxmega16x1.
18971         * config/avr/avr-tables.opt: Regenerate.
18972         * config/avr/t-multilib: Regenerate.
18973         * doc/avr-mmcu.texi: Regenerate.
18975 2014-03-03  Tobias Grosser  <tobias@grosser.es>
18976             Mircea Namolaru  <mircea.namolaru@inria.fr>
18978         PR tree-optimization/58028
18979         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
18980         scalar dimensions.
18982 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18984         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
18985         not handled by recognizers.
18987 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
18989         PR middle-end/60175
18990         * function.c (expand_function_end): Don't emit
18991         clobber_return_register sequence if clobber_after is a BARRIER.
18992         * cfgexpand.c (construct_exit_block): Append instructions before
18993         return_label to prev_bb.
18995 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18997         * config/rs6000/constraints.md: Document reserved use of "wc".
18999 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
19001         PR ipa/60150
19002         * ipa.c (function_and_variable_visibility): When dissolving comdat
19003         group, also set all symbols to local.
19005 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
19007         PR ipa/60306
19009         Revert:
19010         2013-12-14  Jan Hubicka  <jh@suse.cz>
19011         PR middle-end/58477
19012         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
19014 2014-03-02  Jon Beniston  <jon@beniston.com>
19016         PR bootstrap/48230
19017         PR bootstrap/50927
19018         PR bootstrap/52466
19019         PR target/46898
19020         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
19021           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
19022         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
19023         (simple_return, *simple_return): New patterns
19024         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
19025         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
19027 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
19029         * dwarf2out.c (gen_subprogram_die): Tidy.
19031 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
19033         PR target/60071
19034         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
19035         (*mov_t_msb_neg_negc): ... this new insn.
19037 2014-02-28  Jason Merrill  <jason@redhat.com>
19039         PR c++/58678
19040         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
19041         function.
19043 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
19045         PR c++/60314
19046         * dwarf2out.c (decltype_auto_die): New static.
19047         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
19048         (gen_type_die_with_usage): Handle 'decltype(auto)'.
19049         (is_cxx_auto): Likewise.
19051 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
19053         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
19054         we are not using general regs only.
19056 2014-02-28  Richard Biener  <rguenther@suse.de>
19058         PR target/60280
19059         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
19060         previous fix and only allow to remove trivial pre-headers
19061         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
19062         (remove_forwarder_block): Properly update the latch of a loop.
19064 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
19066         PR debug/59992
19067         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
19068         (cselib_preserved_hash_table): New.
19069         (preserve_constants_and_equivs): Move preserved vals to it.
19070         (cselib_find_slot): Look it up first.
19071         (cselib_init): Initialize it.
19072         (cselib_finish): Release it.
19073         (dump_cselib_table): Dump it.
19075 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
19077         PR debug/59992
19078         * cselib.c (remove_useless_values): Skip to avoid quadratic
19079         behavior if the condition moved from...
19080         (cselib_process_insn): ... here holds.
19082 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
19084         PR debug/57232
19085         * var-tracking.c (vt_initialize): Apply the same condition to
19086         preserve the CFA base value.
19088 2014-02-28  Joey Ye  <joey.ye@arm.com>
19090         PR target/PR60169
19091         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
19092         if reload in progress or completed.
19094 2014-02-28  Tobias Burnus  <burnus@net-b.de>
19096         PR middle-end/60147
19097         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
19098         NAMELIST_DECL.
19100 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
19102         * doc/tm.texi.in (Condition Code Status): Update documention for
19103         relative locations of cc0-setter and cc0-user.
19105 2014-02-27  Jeff Law  <law@redhat.com>
19107         PR rtl-optimization/52714
19108         * combine.c (try_combine): When splitting an unrecognized PARALLEL
19109         into two independent simple sets, if I3 is a jump, ensure the
19110         pattern we place into I3 is a (set (pc) ...).
19112 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
19113             Jeff Law  <law@redhat.com>
19115         PR rtl-optimization/49847
19116         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
19117         are in different blocks.
19118         * doc/tm.texi (Condition Code Status): Update documention for
19119         relative locations of cc0-setter and cc0-user.
19121 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
19123         PR target/59222
19124         * lra.c (lra_emit_add): Check SUBREG too.
19126 2014-02-27  Andreas Schwab  <schwab@suse.de>
19128         * config/m68k/m68k.c (m68k_option_override): Disable
19129         -flive-range-shrinkage for classic m68k.
19130         (m68k_override_options_after_change): Likewise.
19132 2014-02-27  Marek Polacek  <polacek@redhat.com>
19134         PR middle-end/59223
19135         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
19136         -Wmaybe-uninitialized.
19138 2014-02-27  Alan Modra  <amodra@gmail.com>
19140         PR target/57936
19141         * reload1.c (emit_input_reload_insns): When reload_override_in,
19142         set old to rl->in_reg when rl->in_reg is a subreg.
19144 2014-02-26  Richard Biener  <rguenther@suse.de>
19146         PR bootstrap/60343
19147         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
19149 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
19151         * common/config/i386/predicates.md (const1256_operand): Remove.
19152         (const2356_operand): New.
19153         (const_1_to_2_operand): Remove.
19154         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
19155         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
19156         (*avx512pf_gatherpf<mode>sf): Ditto.
19157         (avx512pf_gatherpf<mode>df): Ditto.
19158         (*avx512pf_gatherpf<mode>df_mask): Ditto.
19159         (*avx512pf_gatherpf<mode>df): Ditto.
19160         (avx512pf_scatterpf<mode>sf): Ditto.
19161         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
19162         (*avx512pf_scatterpf<mode>sf): Ditto.
19163         (avx512pf_scatterpf<mode>df): Ditto.
19164         (*avx512pf_scatterpf<mode>df_mask): Ditto.
19165         (*avx512pf_scatterpf<mode>df): Ditto.
19166         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
19168 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
19170         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
19171         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
19172         (_mm512_mask_testn_epi64_mask): Move to ...
19173         * config/i386/avx512cdintrin.h: Here.
19174         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
19175         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
19176         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
19177         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
19178         TARGET_AVX512F from TARGET_AVX512CD.
19180 2014-02-26  Richard Biener  <rguenther@suse.de>
19182         PR ipa/60327
19183         * ipa.c (walk_polymorphic_call_targets): Properly guard
19184         call to inline_update_overall_summary.
19186 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
19188         PR target/60280
19189         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
19190         and latches only if requested.  Fix latch if it is removed.
19191         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
19192         LOOPS_HAVE_PREHEADERS.
19194 2014-02-25  Andrew Pinski  <apinski@cavium.com>
19196         * builtins.c (expand_builtin_thread_pointer): Create a new target
19197         when the target is NULL.
19199 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
19201         PR rtl-optimization/60317
19202         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
19203         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
19204         * lra-assigns.c: Include params.h.
19205         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
19206         other reload pseudos considerations.
19208 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19210         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
19211         to use canonical form for nor<mode>3.
19213 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19215         PR target/55426
19216         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
19217         conversions.
19219 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
19221         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
19222         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
19223         (ix86_handle_option): Handle OPT_mprefetchwt1.
19224         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
19225         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
19226         PREFETCHWT1 CPUID.
19227         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19228         OPTION_MASK_ISA_PREFETCHWT1.
19229         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
19230         (PTA_PREFETCHWT1): New.
19231         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
19232         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
19233         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
19234         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
19235         (*prefetch_avx512pf_<mode>_: Change into ...
19236         (*prefetch_prefetchwt1_<mode>: This.
19237         * config/i386/i386.opt (mprefetchwt1): New.
19238         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
19239         (_mm_prefetch): Handle intent to write.
19240         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
19242 2014-02-25  Richard Biener  <rguenther@suse.de>
19244         PR middle-end/60291
19245         * emit-rtl.c (mem_attrs_htab): Remove.
19246         (mem_attrs_htab_hash): Likewise.
19247         (mem_attrs_htab_eq): Likewise.
19248         (set_mem_attrs): Always allocate new mem-attrs when something changed.
19249         (init_emit_once): Do not allocate mem_attrs_htab.
19251 2014-02-25  Richard Biener  <rguenther@suse.de>
19253         PR lto/60319
19254         * lto-opts.c (lto_write_options): Output non-explicit conservative
19255         -fwrapv, -fno-trapv and -fno-strict-overflow.
19256         * lto-wrapper.c (merge_and_complain): Handle merging those options.
19257         (run_gcc): And pass them through.
19259 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
19261         * sel-sched.c (calculate_new_fences): New parameter ptime.
19262         Calculate it as a maximum over all fence cycles.
19263         (sel_sched_region_2): Adjust the call to calculate_new_fences.
19264         Print the final schedule timing when sched_verbose.
19266 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
19268         PR rtl-optimization/60292
19269         * sel-sched.c (fill_vec_av_set): Do not reset target availability
19270         bit fot the fence instruction.
19272 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
19274         * calls.h: Fix typo in comment.
19276 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
19278         * config/pa/pa.c (pa_output_move_double): Don't valididate when
19279         adjusting offsetable addresses.
19281 2014-02-24  Guozhi Wei  <carrot@google.com>
19283         * sparseset.h (sparseset_pop): Fix the wrong index.
19285 2014-02-24  Walter Lee  <walt@tilera.com>
19287         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
19288         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
19289         triplet.
19290         * common/config/tilegx/tilegx-common.c
19291         (TARGET_DEFAULT_TARGET_FLAGS): Define.
19292         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
19293         (LINK_SPEC): Ditto.
19294         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
19295         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
19296         (tilegx_gimplify_va_arg_expr): Handle big endian.
19297         (tilegx_expand_unaligned_load): Ditto.
19298         (tilegx_expand_unaligned_store): Ditto.
19299         (TARGET_RETURN_IN_MSB): New.
19300         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
19301         (TARGET_ENDIAN_DEFAULT): New.
19302         (TARGET_BIG_ENDIAN): Handle big endian.
19303         (BYTES_BIG_ENDIAN): Ditto.
19304         (WORDS_BIG_ENDIAN): Ditto.
19305         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
19306         (ENDIAN_SPEC): New.
19307         (EXTRA_SPECS): New.
19308         * config/tilegx/tilegx.md (extv): Handle big endian.
19309         (extzv): Ditto.
19310         (insn_st<n>): Ditto.
19311         (insn_st<n>_add<bitsuffix>): Ditto.
19312         (insn_stnt<n>): Ditto.
19313         (insn_stnt<n>_add<bitsuffix>):Ditto.
19314         (vec_interleave_highv8qi): Handle big endian.
19315         (vec_interleave_highv8qi_be): New.
19316         (vec_interleave_highv8qi_le): New.
19317         (insn_v1int_h): Handle big endian.
19318         (vec_interleave_lowv8qi): Handle big endian.
19319         (vec_interleave_lowv8qi_be): New.
19320         (vec_interleave_lowv8qi_le): New.
19321         (insn_v1int_l): Handle big endian.
19322         (vec_interleave_highv4hi): Handle big endian.
19323         (vec_interleave_highv4hi_be): New.
19324         (vec_interleave_highv4hi_le): New.
19325         (insn_v2int_h): Handle big endian.
19326         (vec_interleave_lowv4hi): Handle big endian.
19327         (vec_interleave_lowv4hi_be): New.
19328         (vec_interleave_lowv4hi_le): New.
19329         (insn_v2int_l): Handle big endian.
19330         (vec_interleave_highv2si): Handle big endian.
19331         (vec_interleave_highv2si_be): New.
19332         (vec_interleave_highv2si_le): New.
19333         (insn_v4int_h): Handle big endian.
19334         (vec_interleave_lowv2si): Handle big endian.
19335         (vec_interleave_lowv2si_be): New.
19336         (vec_interleave_lowv2si_le): New.
19337         (insn_v4int_l): Handle big endian.
19338         * config/tilegx/tilegx.opt (mbig-endian): New option.
19339         (mlittle-endian): New option.
19340         * doc/install.texi: Document tilegxbe-linux.
19341         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
19343 2014-02-24  Martin Jambor  <mjambor@suse.cz>
19345         PR ipa/60266
19346         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
19347         there are no parameter descriptors.
19349 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
19351         PR rtl-optimization/60268
19352         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
19353         initialization to ...
19354         (sched_rgn_init): ... here.
19355         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
19357 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
19359         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
19360         names.
19362 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
19364         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
19365         definition.
19367 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
19369         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
19370         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
19372 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
19374         * config/microblaze/predicates.md: Add cmp_op predicate.
19375         * config/microblaze/microblaze.md: Add branch_compare instruction
19376         which uses cmp_op predicate and emits cmp insn before branch.
19377         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
19378         to microblaze_expand_conditional_branch and consolidate logic.
19379         (microblaze_expand_conditional_branch): emit branch_compare
19380         insn instead of handling cmp op separate from branch insn.
19382 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19384         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
19385         to permit subregs.
19387 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19389         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
19390         define_insn with define_expand and new define_insn
19391         *altivec_lve<VI_char>x_internal.
19392         (altivec_stve<VI_char>x): Replace define_insn with define_expand
19393         and new define_insn *altivec_stve<VI_char>x_internal.
19394         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
19395         prototype.
19396         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
19397         lve*x built-ins.
19398         (altivec_expand_stvex_be): New function.
19400 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
19402         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
19403         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
19404         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
19405         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
19407 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
19409         PR target/60298
19410         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
19411         instead of emit_move_insn.
19413 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19415         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
19416         vspltw with vsldoi.
19417         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
19418         gen_altivec_vsumsws.
19420 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19422         * config/rs6000/altivec.md (altivec_lvxl): Rename as
19423         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
19424         (altivec_lvxl_<mode>): New define_expand incorporating
19425         -maltivec=be semantics where needed.
19426         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
19427         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
19428         semantics where needed.
19429         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
19430         (altivec_stvx_<mode>): New define_expand incorporating
19431         -maltivec=be semantics where needed.
19432         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
19433         VM2 iterator instead of V4SI.
19434         (altivec_stvxl_<mode>): New define_expand incorporating
19435         -maltivec=be semantics where needed.
19436         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
19437         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
19438         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
19439         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
19440         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
19441         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
19442         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
19443         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
19444         ALTIVEC_BUILTIN_STVXL.
19445         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
19446         (altivec_expand_stvx_be): Likewise.
19447         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
19448         (altivec_expand_lvx_be): Likewise.
19449         (altivec_expand_stvx_be): Likewise.
19450         (altivec_expand_builtin): Add cases for
19451         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
19452         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
19453         (altivec_init_builtins): Add definitions for
19454         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
19455         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
19457 2014-02-21  Catherine Moore  <clm@codesourcery.com>
19459         * doc/invoke.texi (mvirt, mno-virt): Document.
19460         * config/mips/mips.opt (mvirt): New option.
19461         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
19463 2014-02-21  Richard Biener  <rguenther@suse.de>
19465         PR tree-optimization/60276
19466         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
19467         (STMT_VINFO_MIN_NEG_DIST): New macro.
19468         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
19469         STMT_VINFO_MIN_NEG_DIST.
19470         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
19471         made for negative dependence distances still hold.
19473 2014-02-21  Richard Biener  <rguenther@suse.de>
19475         PR middle-end/60291
19476         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
19477         DECL_INITIAL for globals not in the current function context.
19479 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
19481         PR tree-optimization/56490
19482         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
19483         * tree-ssa-uninit.c: Include params.h.
19484         (compute_control_dep_chain): Add num_calls argument, return false
19485         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
19486         num_calls to recursive call.
19487         (find_predicates): Change dep_chain into normal array,
19488         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
19489         variable and adjust compute_control_dep_chain caller.
19490         (find_def_preds): Likewise.
19492 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
19494         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
19495         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
19497 2014-02-21  Nick Clifton  <nickc@redhat.com>
19499         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
19500         (pushhi1): Likewise.
19501         (popqi1): Add mode to pre_dec.
19502         (pophi1): Likewise.
19504 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
19506         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
19507         mode for mask of V8SFmode permutation.
19509 2014-02-20  Richard Henderson  <rth@redhat.com>
19511         PR c++/60272
19512         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
19513         a new pseudo for OLDVAL.
19515 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
19517         PR target/57896
19518         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
19519         gen_reg_rtx if d->testing_p.
19520         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
19521         if d->testing_p and we will certainly return true.
19522         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
19523         if d->testing_p.
19525 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
19527         * emit-rtl.c (gen_reg_rtx): Assert that
19528         crtl->emit.regno_pointer_align_length is non-zero.
19530 2014-02-20  Richard Henderson  <rth@redhat.com>
19532         PR c++/60272
19533         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
19534         on failure the store back into EXPECT.
19536 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
19537             Sandra Loosemore  <sandra@codesourcery.com>
19539         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
19540         * config/nios2/nios2.c (nios2_function_profiler): Add
19541         -fPIC (flag_pic == 2) support.
19542         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
19543         (nios2_large_offset_p): New function.
19544         (nios2_unspec_reloc_p): Move up position, update to use
19545         nios2_large_offset_p.
19546         (nios2_unspec_address): Remove function.
19547         (nios2_unspec_offset): New function.
19548         (nios2_large_got_address): New function.
19549         (nios2_got_address): Add large offset support.
19550         (nios2_legitimize_tls_address): Update usage of removed and new
19551         functions.
19552         (nios2_symbol_binds_local_p): New function.
19553         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
19554         (nios2_legitimize_address): Update to use nios2_large_offset_p.
19555         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
19556         (nios2_print_operand): Merge H/L processing, add hiadj/lo
19557         processing for (const (unspec ...)).
19558         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
19560 2014-02-20  Richard Biener  <rguenther@suse.de>
19562         * tree-cfg.c (replace_uses_by): Mark altered BBs before
19563         doing the substitution.
19564         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
19566 2014-02-20  Martin Jambor  <mjambor@suse.cz>
19568         PR ipa/55260
19569         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
19570         info when checking whether lattices are bottom.
19572 2014-02-20  Richard Biener  <rguenther@suse.de>
19574         PR middle-end/60221
19575         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
19576         regions at -O0.
19578 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
19580         PR ipa/58555
19581         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
19582         parameter specifying the scaling.
19583         (inline_call): Update.
19584         (want_inline_recursively): Guard division by zero.
19585         (recursive_inlining): Update.
19586         * ipa-inline.h (clone_inlined_nodes): Update.
19588 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
19590         PR target/60204
19591         * config/i386/i386.c (classify_argument): Pass structures of size
19592         64 bytes or less in register.
19594 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
19595             Kirill Yukhin  <kirill.yukhin@intel.com>
19597         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
19598         (_mm_rcp28_round_ss): Ditto.
19599         (_mm_rsqrt28_round_sd): Ditto.
19600         (_mm_rsqrt28_round_ss): Ditto.
19601         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
19602         (_mm_rcp14_round_ss): Ditto.
19603         (_mm_rsqrt14_round_sd): Ditto.
19604         (_mm_rsqrt14_round_ss): Ditto.
19605         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
19606         the first input operand, get rid of match_dup.
19607         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
19608         attribute to sse.
19609         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
19610         Ditto.
19611         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
19612         operand as the first input operand, set type attribute.
19613         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
19614         Set type attribute.
19615         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
19616         operand as the first input operand, set type attribute.
19618 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19620         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
19621         bit of zero.
19623 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
19625         PR target/60207
19626         * config/i386/i386.c (construct_container): Remove TFmode check
19627         for X86_64_INTEGER_CLASS.
19629 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
19631         PR target/59794
19632         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
19633         only when -Wpsabi is enabled.
19635 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
19637          PR target/59799
19638         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
19639         passing arrays in registers are the same as for structs, so remove the
19640         special case for them.
19642 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
19644         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
19645         destination type, extract only the valid bits if the source type is not
19646         integral and has a different mode.
19648 2014-02-19  Richard Biener  <rguenther@suse.de>
19650         PR ipa/60243
19651         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
19652         for all calls.
19654 2014-02-19  Richard Biener  <rguenther@suse.de>
19656         PR ipa/60243
19657         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
19658         (ipa_modify_call_arguments): Emit an argument load explicitely and
19659         preserve virtual SSA form there and for the replacement call.
19660         Do not update SSA form nor free dominance info.
19662 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
19664         * ipa.c (function_and_variable_visibility): Also clear WEAK
19665         flag when disolving COMDAT_GROUP.
19667 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
19669         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
19670         * ipa-prop.c (ipa_set_jf_known_type): Return early when
19671         not devirtualizing.
19672         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
19673         do more sanity checks.
19674         (detect_type_change): Return true when giving up early.
19675         (compute_complex_assign_jump_func): Fix type parameter of
19676         ipa_set_ancestor_jf.
19677         (compute_complex_ancestor_jump_func): Likewise.
19678         (update_jump_functions_after_inlining): Fix updating of
19679         ancestor function.
19680         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
19682 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
19684         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
19685         inline clones when edge disappears.
19687 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
19689         PR target/60203
19690         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
19691         Split 64-bit moves into 2 patterns.  Do not allow the use of
19692         direct move for TDmode in little endian, since the decimal value
19693         has little endian bytes within a word, but the 64-bit pieces are
19694         ordered in a big endian fashion, and normal subreg's of TDmode are
19695         not allowed.
19696         (mov<mode>_64bit_dm): Likewise.
19697         (movtd_64bit_nodm): Likewise.
19699 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
19701         PR tree-optimization/60174
19702         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
19703         statement of an SSA_NAME that occurs in an abnormal PHI node.
19705 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
19707         PR sanitizer/60142
19708         * final.c (SEEN_BB): Remove.
19709         (SEEN_NOTE, SEEN_EMITTED): Renumber.
19710         (final_scan_insn): Don't force_source_line on second
19711         NOTE_INSN_BASIC_BLOCK.
19713 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
19715         PR target/60205
19716         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
19717         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
19718         (type_natural_mode): Warn ABI change when %zmm register is not
19719         available for AVX512F vector value passing.
19721 2014-02-18  Kai Tietz  <ktietz@redhat.com>
19723         PR target/60193
19724         * config/i386/i386.c (ix86_expand_prologue): Use value in
19725         rax register as displacement when restoring %r10 or %rax.
19726         Fix wrong offset when restoring both registers.
19728 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
19730         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
19731         assertion with conditional return.
19733 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
19734             Uros Bizjak  <ubizjak@gmail.com>
19736         PR driver/60233
19737         * config/i386/driver-i386.c (host_detect_local_cpu): If
19738         YMM state is not saved by the OS, also clear has_f16c.  Move
19739         CPUID 0x80000001 handling before YMM state saving checking.
19741 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
19743         PR rtl-optimization/58960
19744         * haifa-sched.c (alloc_global_sched_pressure_data): New,
19745         factored out from ...
19746         (sched_init): ... here.
19747         (free_global_sched_pressure_data): New, factored out from ...
19748         (sched_finish): ... here.
19749         * sched-int.h (free_global_sched_pressure_data): Declare.
19750         * sched-rgn.c (nr_regions_initial): New static global.
19751         (haifa_find_rgns): Initialize it.
19752         (schedule_region): Disable sched-pressure for the newly
19753         generated regions.
19755 2014-02-17  Richard Biener  <rguenther@suse.de>
19757         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
19758         release SSA defs of pattern stmts.
19760 2014-02-17  Richard Biener  <rguenther@suse.de>
19762         * tree-inline.c (expand_call_inline): Release the virtual
19763         operand defined by the call we are about to inline.
19765 2014-02-17  Richard Biener  <rguenther@suse.de>
19767         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
19769 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
19770             Ilya Tocar  <ilya.tocar@intel.com>
19772         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
19773         arguments order in builtin.
19774         (_mm512_permutexvar_epi64): Ditto.
19775         (_mm512_mask_permutexvar_epi64): Ditto
19776         (_mm512_maskz_permutexvar_epi32): Ditto
19777         (_mm512_permutexvar_epi32): Ditto
19778         (_mm512_mask_permutexvar_epi32): Ditto
19780 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19782         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
19783         (p8_vmrgow): Likewise.
19785 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19787         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
19788         endian targets.
19790 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
19792         PR target/60203
19793         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
19794         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
19795         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
19796         using direct move instructions on ISA 2.07.  Also adjust
19797         instruction length for 64-bit.
19798         (mov<mode>_64bit, TFmode/TDmode): Likewise.
19799         (mov<mode>_32bit, TFmode/TDmode): Likewise.
19801 2014-02-15  Alan Modra  <amodra@gmail.com>
19803         PR target/58675
19804         PR target/57935
19805         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
19806         find_replacement on parts of insn rtl that might be reloaded.
19808 2014-02-15  Richard Biener  <rguenther@suse.de>
19810         PR tree-optimization/60183
19811         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
19812         (tree_ssa_phiprop): Calculate and free post-dominators.
19814 2014-02-14  Jeff Law  <law@redhat.com>
19816         PR rtl-optimization/60131
19817         * ree.c (get_extended_src_reg): New function.
19818         (combine_reaching_defs): Use it rather than assuming location of REG.
19819         (find_and_remove_re): Verify first operand of extension is
19820         a REG before adding the insns to the copy list.
19822 2014-02-14  Roland McGrath  <mcgrathr@google.com>
19824         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
19825         * configure: Regenerated.
19826         * config.in: Regenerated.
19827         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
19828         instead of ASM_SHORT.
19830 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
19831             Richard Earnshaw  <rearnsha@arm.com>
19833         PR rtl-optimization/59535
19834         * lra-constraints.c (process_alt_operands): Encourage alternative
19835         when unassigned pseudo class is superset of the alternative class.
19836         (inherit_reload_reg): Don't inherit when optimizing for code size.
19837         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
19838         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
19839         modes not less than 4 for Thumb1.
19841 2014-02-14  Kyle McMartin  <kyle@redhat.com>
19843         PR pch/60010
19844         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
19846 2014-02-14  Richard Biener  <rguenther@suse.de>
19848         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
19849         (get_frame_arg): Drop the assert with langhook types_compatible_p.
19850         Do not strip INDIRECT_REFs.
19852 2014-02-14  Richard Biener  <rguenther@suse.de>
19854         PR lto/60179
19855         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
19856         DECL_FUNCTION_SPECIFIC_TARGET.
19857         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
19858         * tree-streamer-out.c (pack_ts_target_option): Remove.
19859         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
19860         (write_ts_function_decl_tree_pointers): Do not stream
19861         DECL_FUNCTION_SPECIFIC_TARGET.
19862         * tree-streamer-in.c (unpack_ts_target_option): Remove.
19863         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
19864         (lto_input_ts_function_decl_tree_pointers): Do not stream
19865         DECL_FUNCTION_SPECIFIC_TARGET.
19867 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
19869         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
19870         (get_initial_def_for_induction, vectorizable_induction): Ignore
19871         debug stmts when looking for exit_phi.
19872         (vectorizable_live_operation): Fix up condition.
19874 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
19876         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
19877         nreverse() because it changes the content of original tree list.
19879 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
19881         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
19882         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
19884 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
19886         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
19887         GNU coding standards.
19889 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
19891         PR debug/60152
19892         * dwarf2out.c (gen_subprogram_die): Don't call
19893         add_calling_convention_attribute if subr_die is old_die.
19895 2014-02-13  Sharad Singhai  <singhai@google.com>
19897         * doc/optinfo.texi: Fix order of nodes.
19899 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
19901         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
19902         operands[2], not operands[3].
19904 2014-02-13  Richard Biener  <rguenther@suse.de>
19906         PR bootstrap/59878
19907         * doc/install.texi (ISL): Update recommended version to 0.12.2,
19908         mention the possibility of an in-tree build.
19909         (CLooG): Update recommended version to 0.18.1, mention the
19910         possibility of an in-tree build and clarify that the ISL
19911         bundled with CLooG does not work.
19913 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
19915         PR target/43546
19916         * expr.c (compress_float_constant): If x is a hard register,
19917         extend into a pseudo and then move to x.
19919 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19921         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
19922         caused by bad second argument to warning_at() with -mhotpatch and
19923         nested functions (e.g. with gfortran).
19925 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
19927         * opts.c (option_name): Remove "enabled by default" rider.
19929 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
19931         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
19933 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
19934             Uros Bizjak  <ubizjak@gmail.com>
19936         PR target/60151
19937         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
19938         * configure: Regenerated.
19940 2014-02-12  Richard Biener  <rguenther@suse.de>
19942         * vec.c (vec_prefix::calculate_allocation): Move as
19943         inline variant to vec.h.
19944         (vec_prefix::calculate_allocation_1): New out-of-line version.
19945         * vec.h (vec_prefix::calculate_allocation_1): Declare.
19946         (vec_prefix::m_has_auto_buf): Rename to ...
19947         (vec_prefix::m_using_auto_storage): ... this.
19948         (vec_prefix::calculate_allocation): Inline the easy cases
19949         and dispatch to calculate_allocation_1 which doesn't need the
19950         prefix address.
19951         (va_heap::reserve): Use gcc_checking_assert.
19952         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
19953         m_using_auto_storage.
19954         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
19955         member and adjust.
19956         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
19957         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
19958         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
19960 2014-02-12  Richard Biener  <rguenther@suse.de>
19962         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
19963         when we found a dependence.
19965 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
19967         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
19968         common code...
19969         (maybe_fold_stmt): ... into this new function.
19970         * omp-low.c (lower_omp): Update comment.
19972         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
19973         last use.
19975         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
19976         dereference.
19978 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
19980         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
19981         identifiers in comments.
19982         (cortexa53_extra_costs): Likewise.
19983         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
19984         (cortexa7_extra_costs): Likewise.
19985         (cortexa12_extra_costs): Likewise.
19986         (cortexa15_extra_costs): Likewise.
19987         (v7m_extra_costs): Likewise.
19989 2014-02-12  Richard Biener  <rguenther@suse.de>
19991         PR middle-end/60092
19992         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
19993         of posix_memalign being successful.
19994         (lower_stmt): Restrict lowering of posix_memalign to when
19995         -ftree-bit-ccp is enabled.
19997 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
19999         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
20000         arg_loc.
20001         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
20003 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
20005         PR rtl-optimization/60116
20006         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
20007         other_insn once the combination has been validated.
20009 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
20011         PR lto/59468
20012         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
20013         and wrapper.
20014         * ipa-devirt.c: Include demangle.h
20015         (odr_violation_reported): New static variable.
20016         (add_type_duplicate): Update odr_violations.
20017         (maybe_record_node): Add completep parameter; update it.
20018         (record_target_from_binfo): Add COMPLETEP parameter;
20019         update it as needed.
20020         (possible_polymorphic_call_targets_1): Likewise.
20021         (struct polymorphic_call_target_d): Add nonconstruction_targets;
20022         rename FINAL to COMPLETE.
20023         (record_targets_from_bases): Sanity check we found the binfo;
20024         fix COMPLETEP updating.
20025         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
20026         parameter, fix computing of COMPLETEP.
20027         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
20028         at LTO time do demangling.
20029         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
20030         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
20031         parameter.
20032         (gimple_get_virt_method_for_binfo): Likewise.
20033         * gimple-fold.h (gimple_get_virt_method_for_binfo,
20034         gimple_get_virt_method_for_vtable): Update prototypes.
20036 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
20038         PR target/49008
20039         * genautomata.c (add_presence_absence): Fix typo with
20040         {final_}presence_list.
20042 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
20044         PR target/60137
20045         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
20046         for VSX/Altivec vectors that land in GPR registers.
20048 2014-02-11  Richard Henderson  <rth@redhat.com>
20049             Jakub Jelinek  <jakub@redhat.com>
20051         PR debug/59776
20052         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
20053         around drhs if type conversion to lacc->type is not useless.
20055 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20057         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
20058         tuning struct.
20059         (cortex-a57.cortex-a53): Likewise.
20060         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
20062 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20064         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
20065         arm_restrict_it.
20067 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
20069         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
20070         add_options_for_arm_vfp3.
20072 2014-02-11  Jeff Law  <law@redhat.com>
20074         PR middle-end/54041
20075         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
20076         object with an undesirable mode.
20078 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20080         PR libgomp/60107
20081         * config/i386/sol2-9.h: New file.
20082         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
20083         *-*-solaris2.9*): Use it.
20085 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
20087         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
20088         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
20090 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
20092         * config/microblaze/microblaze.c: Extend mcpu version format
20094 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
20096         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
20098 2014-02-10  Richard Henderson  <rth@redhat.com>
20100         PR target/59927
20101         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
20102         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
20103         ms-abi vs -mno-accumulate-outgoing-args.
20104         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
20105         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
20106         respect to ms-abi.
20108 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20110         PR middle-end/60080
20111         * cfgexpand.c (expand_asm_operands): Attach source location to
20112         ASM_INPUT rtx objects.
20113         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
20115 2014-02-10  Nick Clifton  <nickc@redhat.com>
20117         * config/mn10300/mn10300.c (popcount): New function.
20118         (mn10300_expand_prologue): Include saved registers in stack usage
20119         count.
20121 2014-02-10  Jeff Law  <law@redhat.com>
20123         PR middle-end/52306
20124         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
20125         when changing the SET_DEST of a prior insn to avoid an input reload.
20127 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20129         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
20130         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
20131         -mcall-openbsd, or -mcall-linux.
20132         (CC1_ENDIAN_BIG_SPEC): Remove.
20133         (CC1_ENDIAN_LITTLE_SPEC): Remove.
20134         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
20135         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
20136         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
20137         and %cc1_endian_default.
20138         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
20140 2014-02-10  Richard Biener  <rguenther@suse.de>
20142         PR tree-optimization/60115
20143         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
20144         MEM_REF handling.  Properly verify that the accesses are not
20145         out of the objects bound.
20147 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20149         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
20150         coretex to cortex.
20152 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
20154         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
20155         proper constants and fix formatting.
20156         (possible_polymorphic_call_targets): Fix formatting.
20158 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
20159             Ilya Tocar  <ilya.tocar@intel.com>
20161         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
20162         (_mm512_loadu_epi32): Renamed into...
20163         (_mm512_loadu_si512): This.
20164         (_mm512_storeu_epi32): Renamed into...
20165         (_mm512_storeu_si512): This.
20166         (_mm512_maskz_ceil_ps): Removed.
20167         (_mm512_maskz_ceil_pd): Ditto.
20168         (_mm512_maskz_floor_ps): Ditto.
20169         (_mm512_maskz_floor_pd): Ditto.
20170         (_mm512_floor_round_ps): Ditto.
20171         (_mm512_floor_round_pd): Ditto.
20172         (_mm512_ceil_round_ps): Ditto.
20173         (_mm512_ceil_round_pd): Ditto.
20174         (_mm512_mask_floor_round_ps): Ditto.
20175         (_mm512_mask_floor_round_pd): Ditto.
20176         (_mm512_mask_ceil_round_ps): Ditto.
20177         (_mm512_mask_ceil_round_pd): Ditto.
20178         (_mm512_maskz_floor_round_ps): Ditto.
20179         (_mm512_maskz_floor_round_pd): Ditto.
20180         (_mm512_maskz_ceil_round_ps): Ditto.
20181         (_mm512_maskz_ceil_round_pd): Ditto.
20182         (_mm512_expand_pd): Ditto.
20183         (_mm512_expand_ps): Ditto.
20184         * config/i386/i386.c (ix86_builtins): Remove
20185         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
20186         (bdesc_args): Ditto.
20187         * config/i386/predicates.md (const1256_operand): New.
20188         (const_1_to_2_operand): Ditto.
20189         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
20190         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
20191         (*avx512pf_gatherpf<mode>sf): Ditto.
20192         (avx512pf_gatherpf<mode>df): Ditto.
20193         (*avx512pf_gatherpf<mode>df_mask): Ditto.
20194         (*avx512pf_gatherpf<mode>df): Ditto.
20195         (avx512pf_scatterpf<mode>sf): Ditto.
20196         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
20197         (*avx512pf_scatterpf<mode>sf): Ditto.
20198         (avx512pf_scatterpf<mode>df): Ditto.
20199         (*avx512pf_scatterpf<mode>df_mask): Ditto.
20200         (*avx512pf_scatterpf<mode>df): Ditto.
20201         (avx512f_expand<mode>): Removed.
20202         (<shift_insn><mode>3<mask_name>): Change predicate type.
20204 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
20206         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
20207         not at the end of datarefs vector use ordered_remove to avoid
20208         reordering datarefs vector.
20210         PR c/59984
20211         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
20212         mark local addressable non-static vars as GOVD_PRIVATE
20213         instead of GOVD_LOCAL.
20214         * omp-low.c (lower_omp_for): Move gimple_bind_vars
20215         and BLOCK_VARS of gimple_bind_block to new_stmt rather
20216         than copying them.
20218         PR middle-end/60092
20219         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
20220         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
20221         assume_aligned or alloc_align attributes.
20222         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
20223         arguments.  Handle also assume_aligned and alloc_align attributes.
20224         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
20225         calls to functions with assume_aligned or alloc_align attributes.
20226         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
20228 2014-02-08  Terry Guo  <terry.guo@arm.com>
20230         * doc/invoke.texi: Document ARM -march=armv7e-m.
20232 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
20234         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
20235         flag on __cilkrts_rethrow builtin.
20237         PR ipa/60026
20238         * ipa-cp.c (determine_versionability): Fail at -O0
20239         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
20240         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
20242         Revert:
20243         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
20245         PR ipa/60026
20246         * tree-inline.c (copy_forbidden): Fail for
20247         __attribute__((optimize (0))) functions.
20249 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
20251         * varpool.c: Include pointer-set.h.
20252         (varpool_remove_unreferenced_decls): Variables in other partitions
20253         will not be output; be however careful to not lose information
20254         about partitioning.
20256 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
20258         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
20259         lookup in the vtable constructor.
20261 2014-02-07  Jeff Law  <law@redhat.com>
20263         PR target/40977
20264         * config/m68k/m68k.md (ashldi_extsi): Turn into a
20265         define_insn_and_split.
20267         * ipa-inline.c (inline_small_functions): Fix typos.
20269 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
20271         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
20272         (s390_can_use_return_insn): Declare.
20273         * config/s390/s390.h (EPILOGUE_USES): Define.
20274         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
20275         instructions.
20276         (s390_chunkify_start): Handle return JUMP_LABELs.
20277         (s390_early_mach): Emit a main_pool instruction on the entry edge.
20278         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
20279         (s390_can_use_return_insn): New functions.
20280         (s390_fix_long_loop_prediction): Handle conditional returns.
20281         (TARGET_SET_UP_BY_PROLOGUE): Define.
20282         * config/s390/s390.md (ANY_RETURN): New code iterator.
20283         (*creturn, *csimple_return, return, simple_return): New patterns.
20285 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
20287         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
20288         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
20289         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
20290         REG_CFA_RESTORE list when deciding not to restore a register.
20292 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
20294         * config/s390/s390.c: Include tree-pass.h and context.h.
20295         (s390_early_mach): New function, split out from...
20296         (s390_emit_prologue): ...here.
20297         (pass_data_s390_early_mach): New pass structure.
20298         (pass_s390_early_mach): New class.
20299         (s390_option_override): Create and register early_mach pass.
20300         Move to end of file.
20302 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
20304         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
20305         to match for the exit block.
20307 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20309         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
20310         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
20311         Reject misaligned operands.
20313 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20315         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
20317 2014-02-07  Richard Biener  <rguenther@suse.de>
20319         PR middle-end/60092
20320         * gimple-low.c (lower_builtin_posix_memalign): New function.
20321         (lower_stmt): Call it to lower posix_memalign in a way
20322         to make alignment info accessible.
20324 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
20326         PR c++/60082
20327         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
20328         __builtin_setjmp_receiver.
20330 2014-02-07  Richard Biener  <rguenther@suse.de>
20332         PR middle-end/60092
20333         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
20334         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
20335         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20336         Handle BUILT_IN_POSIX_MEMALIGN.
20337         (find_func_clobbers): Likewise.
20338         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
20339         (call_may_clobber_ref_p_1): Likewise.
20341 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
20343         PR ipa/59918
20344         * ipa-devirt.c (record_target_from_binfo): Remove overactive
20345         sanity check.
20347 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
20349         PR ipa/59469
20350         * lto-cgraph.c (lto_output_node): Use
20351         symtab_get_symbol_partitioning_class.
20352         (lto_output_varpool_node): likewise.
20353         (symtab_get_symbol_partitioning_class): Move here from
20354         lto/lto-partition.c
20355         * cgraph.h (symbol_partitioning_class): Likewise.
20356         (symtab_get_symbol_partitioning_class): Declare.
20358 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
20360         * ggc.h (ggc_internal_cleared_alloc): New macro.
20361         * vec.h (vec_safe_copy): Handle memory stats.
20362         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
20363         * target-globals.c (save_target_globals): Likewise.
20365 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
20367         PR target/60077
20368         * expr.c (emit_move_resolve_push): Export; be bit more selective
20369         on when to clear alias set.
20370         * expr.h (emit_move_resolve_push): Declare.
20371         * function.h (struct function): Add tail_call_marked.
20372         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
20373         * config/i386/i386-protos.h (ix86_expand_push): Remove.
20374         * config/i386/i386.md (TImode move expander): De not call
20375         ix86_expand_push.
20376         (FP push expanders): Preserve memory attributes.
20377         * config/i386/sse.md (push<mode>1): Remove.
20378         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
20379         (ix86_expand_push): Remove.
20380         * config/i386/mmx.md (push<mode>1): Remove.
20382 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
20384         PR rtl-optimization/60030
20385         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
20386         lopart with paradoxical subreg before shifting it up by hprec.
20388 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20390         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
20391         Remove extra newline at end of file.
20392         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
20393         (arm_issue_rate): Handle cortexa57.
20394         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
20395         (cortex-a57.cortex-a53): Likewise.
20397 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
20399         PR target/59575
20400         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
20401         don't record in REG_FRAME_RELATED_EXPR registers not set in that
20402         bitmask.
20403         (arm_expand_prologue): Adjust all callers.
20404         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
20405         info, registers also at the lowest numbered registers side.  Use
20406         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
20407         XEXP.
20409         PR debug/59992
20410         * var-tracking.c (adjust_mems): Before adding a SET to
20411         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
20413 2014-02-06  Alan Modra  <amodra@gmail.com>
20415         PR target/60032
20416         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
20417         change SDmode to DDmode when lra_in_progress.
20419 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
20421         PR middle-end/59150
20422         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
20423         free_data_ref on the dr first, and before goto again also set dr
20424         to the next dr.  For simd_lane_access, free old datarefs[i] before
20425         overwriting it.  For get_vectype_for_scalar_type failure, don't
20426         free_data_ref if simd_lane_access.
20428         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
20430         PR target/60062
20431         * tree.h (opts_for_fn): New inline function.
20432         (opt_for_fn): Define.
20433         * config/i386/i386.c (ix86_function_regparm): Use
20434         opt_for_fn (decl, optimize) instead of optimize.
20436 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
20438         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
20439         for SYMBOL_REF in large memory model.
20441 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20443         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
20444         and crypto support.
20445         (cortex-a57): Likewise.
20446         (cortex-a57.cortex-a53): Likewise.
20448 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
20449             Kugan Vivekanandarajah  <kuganv@linaro.org>
20451         * config/arm/arm.c (arm_vector_alignment_reachable): Check
20452         unaligned_access.
20453         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
20455 2014-02-06  Richard Biener  <rguenther@suse.de>
20457         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
20458         set_loop_copy and initialize_original_copy_tables.
20460 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
20462         * config/aarch64/aarch64-simd.md
20463         (aarch64_ashr_simddi): Change QI to SI.
20465 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
20466             Jakub Jelinek  <jakub@redhat.com>
20468         PR middle-end/60013
20469         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
20470         of the dataflow.
20472 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20474         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
20475         CODE_FOR_altivec_vpku[hw]um to
20476         CODE_FOR_altivec_vpku[hw]um_direct.
20477         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
20478         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
20479         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
20480         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
20482 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20484         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
20485         generation for -maltivec=be.
20486         (altivec_vsumsws): Simplify redundant test.
20488 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20490         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
20491         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
20492         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
20493         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
20494         gen_altivec_vpkuwum.
20495         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
20496         BYTES_BIG_ENDIAN.
20497         (altivec_vpks<VI_char>ss): Likewise.
20498         (altivec_vpks<VI_char>us): Likewise.
20499         (altivec_vpku<VI_char>us): Likewise.
20500         (altivec_vpku<VI_char>um): Likewise.
20501         (altivec_vpku<VI_char>um_direct): New (copy of
20502         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
20503         internal use).
20504         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
20505         target is little endian and -maltivec=be is not specified.
20506         (*altivec_vupkhs<VU_char>_direct): New (copy of
20507         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
20508         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
20509         target is little endian and -maltivec=be is not specified.
20510         (*altivec_vupkls<VU_char>_direct): New (copy of
20511         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
20512         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
20513         little endian and -maltivec=be is not specified.
20514         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
20515         little endian and -maltivec=be is not specified.
20517 2014-02-05  Richard Henderson  <rth@redhat.com>
20519         PR debug/52727
20520         * combine-stack-adj.c: Revert r206943.
20521         * sched-int.h (struct deps_desc): Add last_args_size.
20522         * sched-deps.c (init_deps): Initialize it.
20523         (sched_analyze_insn): Add OUTPUT dependencies between insns that
20524         contain REG_ARGS_SIZE notes.
20526 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
20528         * lto-cgraph.c (asm_nodes_output): Make global.
20529         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
20530         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
20531         (driver_handle_option): Handle OPT_fwpa.
20533 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
20535         PR ipa/59947
20536         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
20537         a comment typo and formatting issue.  If odr_hash hasn't been
20538         created, return vNULL and set *completep to false.
20540         PR middle-end/57499
20541         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
20542         bb with no successors.
20544 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
20546         PR target/59718
20547         * doc/invoke.texi (-march): Clarify documentation for ARM.
20548         (-mtune): Likewise.
20549         (-mcpu): Likewise.
20551 2014-02-05  Richard Biener  <rguenther@suse.de>
20553         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
20554         when not vectorizing because of too many alias checks.
20555         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
20556         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
20558 2014-02-05  Nick Clifton  <nickc@redhat.com>
20560         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
20561         accept extended registers in any mode when compiling for the MN10300.
20563 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
20565         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
20566         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
20567         sanitization attributes.
20568         (can_inline_edge_p): Likewise.
20569         (sanitize_attrs_match_for_inline_p): New function.
20571 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
20573         * ipa-prop.c (detect_type_change): Shor circuit testing of
20574         type changes on THIS pointer.
20576 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
20578         PR target/59777
20579         * config/pa/pa.c (legitimize_tls_address): Return original address
20580         if not passed a SYMBOL_REF rtx.
20581         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
20582         addresses.
20583         (pa_emit_move_sequence): Simplify TLS source operands.
20584         (pa_legitimate_constant_p): Reject all TLS constants.
20585         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
20586         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
20588 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
20590         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
20591         groups when we know they are controlled by LTO.
20592         * varasm.c (default_binds_local_p_1): If object is in other partition,
20593         it will be resolved locally.
20595 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20597         * config/host-linux.c (linux_gt_pch_use_address): Don't
20598         use SSIZE_MAX because it is not always defined.
20600 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
20602         PR bootstrap/59913
20603         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
20604         threshold for pseudo splitting.
20605         (update_ebb_live_info): Process call argument hard registers and
20606         hard registers from insn definition too.
20607         (max_small_class_regs_num): New constant.
20608         (inherit_in_ebb): Update live hard regs through EBBs.  Update
20609         reloads_num only for small register classes.  Don't split for
20610         outputs of jumps.
20612 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
20614         PR ipa/60058
20615         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
20616         is non-null.
20618 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
20620         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
20621         visibility is safe.
20623 2014-02-04  Marek Polacek  <polacek@redhat.com>
20625         * gdbinit.in (pel): Define.
20627 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20629         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
20630         behavior.
20632 2014-02-04  Richard Biener  <rguenther@suse.de>
20634         PR lto/59723
20635         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
20636         in function context local.
20637         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
20638         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
20639         similar to LTO_imported_decl_ref.
20641 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
20643         PR tree-optimization/60002
20644         * cgraphclones.c (build_function_decl_skip_args): Clear
20645         DECL_LANG_SPECIFIC.
20647         PR tree-optimization/60023
20648         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
20649         false to gsi_replace.
20650         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
20651         has been in some EH region and vec_stmt could throw, add
20652         vec_stmt into the same EH region.
20653         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
20654         has no lhs, ignore it.
20655         * internal-fn.c (expand_MASK_LOAD): Likewise.
20657         PR ipa/60026
20658         * tree-inline.c (copy_forbidden): Fail for
20659         __attribute__((optimize (0))) functions.
20661         PR other/58712
20662         * omp-low.c (simd_clone_struct_copy): If from->inbranch
20663         is set, copy one less argument.
20664         (expand_simd_clones): Don't subtract clone_info->inbranch
20665         from simd_clone_struct_alloc argument.
20667         PR rtl-optimization/57915
20668         * recog.c (simplify_while_replacing): If all unary/binary/relational
20669         operation arguments are constant, attempt to simplify those.
20671         PR middle-end/59261
20672         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
20673         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
20675 2014-02-04  Richard Biener  <rguenther@suse.de>
20677         PR tree-optimization/60012
20678         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
20679         TBAA disambiguation to all DDRs.
20681 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20683         PR target/59788
20684         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
20685         (LINK_SPEC): Use it for -shared, -shared-libgcc.
20687 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
20689         PR ipa/59882
20690         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
20692 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
20694         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
20695         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
20697 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
20699         PR ipa/59831
20700         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
20701         to figure out targets of polymorphic calls with known decl.
20702         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
20703         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
20704         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
20705         (get_polymorphic_call_info): ... here.
20706         (get_polymorphic_call_info_from_invariant): New function.
20708 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
20710         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
20711         lookup via vtable pointer; check for type consistency
20712         and turn inconsitent facts into UNREACHABLE.
20713         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
20714         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
20715         type inconsistent querries; return UNREACHABLE instead.
20717 2014-02-03  Richard Henderson  <rth@twiddle.net>
20719         PR tree-opt/59924
20720         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
20721         already processed this node.
20722         (normalize_one_pred_1): Pass along mark_set.
20723         (normalize_one_pred): Create and destroy a pointer_set_t.
20724         (normalize_one_pred_chain): Likewise.
20726 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
20728         PR gcov-profile/58602
20729         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
20731 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
20733         PR ipa/59831
20734         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
20735         -fno-devirtualize; try to devirtualize by the knowledge of
20736         virtual table pointer given by aggregate propagation.
20737         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
20738         (ipa_print_node_jump_functions): Dump also offset that
20739         is relevant for polymorphic calls.
20740         (determine_known_aggregate_parts): Add arg_type parameter; use it
20741         instead of determining the type from pointer type.
20742         (ipa_compute_jump_functions_for_edge): Update call of
20743         determine_known_aggregate_parts.
20744         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
20745         (gimple_get_virt_method_for_binfo): ... here; simplify using
20746         vtable_pointer_value_to_vtable.
20747         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
20748         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
20749         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
20750         (vtable_pointer_value_to_vtable): Break out from ...; handle also
20751         POINTER_PLUS_EXPR.
20752         (vtable_pointer_value_to_binfo): ... here.
20753         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
20755 2014-02-03  Teresa Johnson  <tejohnson@google.com>
20757         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
20758         redef of outer loop index variable.
20760 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
20762         PR c++/53017
20763         PR c++/59211
20764         * doc/extend.texi (Function Attributes): Typo.
20766 2014-02-03  Cong Hou  <congh@google.com>
20768         PR tree-optimization/60000
20769         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
20770         if the vectorized statement is a store.  A store statement can only
20771         appear at the end of pattern statements.
20773 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
20775         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
20776         (ix86_option_override_internal): Default long double to 64-bit for
20777         32-bit Bionic and to 128-bit for 64-bit Bionic.
20779         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
20780         TARGET_LONG_DOUBLE_128 is true.
20781         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
20783         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
20784         (mlong-double-64): Negate -mlong-double-128.
20785         (mlong-double-128): New option.
20787         * config/i386/i386-c.c (ix86_target_macros): Define
20788         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
20790         * doc/invoke.texi: Document -mlong-double-128.
20792 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
20794         PR rtl-optimization/60024
20795         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
20797 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
20799         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
20801 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
20803         PR rtl-optimization/57662
20804         * sel-sched.c (code_motion_path_driver): Do not mark already not
20805         existing blocks in the visiting bitmap.
20807 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
20809         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
20810         on the insn being emitted.
20812 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
20813             Will Deacon  <will.deacon@arm.com>
20815         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
20817 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20819         * config/arm/arm-tables.opt: Regenerate.
20821 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20823         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
20824         for vector types other than V16QImode.
20825         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
20826         define_expand, and call altivec_expand_vec_perm_le when producing
20827         code with little endian element order.
20828         (*altivec_vperm_<mode>_internal): New insn having previous
20829         behavior of altivec_vperm_<mode>.
20830         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
20831         altivec_expand_vec_perm_le when producing code with little endian
20832         element order.
20833         (*altivec_vperm_<mode>_uns_internal): New insn having previous
20834         behavior of altivec_vperm_<mode>_uns.
20836 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20838         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
20839         (altivec_vsumsws): Add handling for -maltivec=be with a little
20840         endian target.
20841         (altivec_vsumsws_direct): New.
20842         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
20843         gen_altivec_vsumsws.
20845 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
20847         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
20848         vtable_pointer_value_to_binfo): New functions.
20849         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
20850         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
20852 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
20854         * config/nios2/nios2.md (load_got_register): Initialize GOT
20855         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
20856         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
20858 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
20860         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
20861         preserverd by passthrough, do not propagate the type.
20863 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
20865         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
20866         (mips_atomic_assign_expand_fenv): New function.
20867         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
20869 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
20871         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
20872         (__builtin_mips_set_fcsr): Likewise.
20873         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
20874         MIPS_USI_FTYPE_VOID.
20875         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
20876         (mips16_expand_set_fcsr): Likewise.
20877         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
20878         (mips16_set_fcsr_stub): Likewise.
20879         (mips16_get_fcsr_one_only_stub): New class.
20880         (mips16_set_fcsr_one_only_stub): Likewise.
20881         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
20882         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
20883         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
20884         (hard_float): New availability predicate.
20885         (mips_builtins): Add get_fcsr and set_fcsr.
20886         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
20887         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
20888         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
20889         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
20890         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
20891         patterns.
20893 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
20895         * config/mips/mips.c (mips_one_only_stub): New class.
20896         (mips_need_mips16_rdhwr_p): Replace with...
20897         (mips16_rdhwr_stub): ...this new variable.
20898         (mips16_stub_call_address): New function.
20899         (mips16_rdhwr_one_only_stub): New class.
20900         (mips_expand_thread_pointer): Use mips16_stub_call_address.
20901         (mips_output_mips16_rdhwr): Delete.
20902         (mips_finish_stub): New function.
20903         (mips_code_end): Use it to handle rdhwr stubs.
20905 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
20907         PR target/60017
20908         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
20909         when calculating size of integer atomic types.
20911 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20913         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
20915 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
20917         PR tree-optimization/60003
20918         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
20919         * profile.c (branch_prob): Use gimple_call_builtin_p
20920         to check for BUILT_IN_SETJMP_RECEIVER.
20921         * tree-inline.c (copy_bb): Call notice_special_calls.
20923 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
20925         PR bootstrap/59985
20926         * lra-constraints.c (process_alt_operands): Update reload_sum only
20927         on the first pass.
20929 2014-01-31  Richard Henderson  <rth@redhat.com>
20931         PR middle-end/60004
20932         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
20933         until after else_eh is processed.
20935 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
20937         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
20938         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
20939         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
20940         in smmintrin.h, remove them.
20941         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
20942         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
20943         * config/i386/i386.md (ROUND_SAE): Fix value.
20944         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
20945         (const48_operand): New.
20946         * config/i386/subst.md (round), (round_expand): Use
20947         const_4_or_8_to_11_operand.
20948         (round_saeonly), (round_saeonly_expand): Use const48_operand.
20950 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
20952         * config/i386/constraints.md (Yk): Swap meaning with k.
20953         * config/i386/i386.md (movhi_internal): Change Yk to k.
20954         (movqi_internal): Ditto.
20955         (*k<logic><mode>): Ditto.
20956         (*andhi_1): Ditto.
20957         (*andqi_1): Ditto.
20958         (kandn<mode>): Ditto.
20959         (*<code>hi_1): Ditto.
20960         (*<code>qi_1): Ditto.
20961         (kxnor<mode>): Ditto.
20962         (kortestzhi): Ditto.
20963         (kortestchi): Ditto.
20964         (kunpckhi): Ditto.
20965         (*one_cmplhi2_1): Ditto.
20966         (*one_cmplqi2_1): Ditto.
20967         * config/i386/sse.md (): Change k to Yk.
20968         (avx512f_load<mode>_mask): Ditto.
20969         (avx512f_blendm<mode>): Ditto.
20970         (avx512f_store<mode>_mask): Ditto.
20971         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
20972         (avx512f_storedqu<mode>_mask): Ditto.
20973         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
20974         Ditto.
20975         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
20976         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
20977         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
20978         (avx512f_maskcmp<mode>3): Ditto.
20979         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
20980         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
20981         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
20982         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
20983         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
20984         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
20985         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
20986         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
20987         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
20988         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
20989         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
20990         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
20991         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
20992         (vec_extract_lo_<mode>_maskm): Ditto.
20993         (vec_extract_hi_<mode>_maskm): Ditto.
20994         (avx512f_vternlog<mode>_mask): Ditto.
20995         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
20996         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
20997         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
20998         (avx512f_<code>v8div16qi2_mask): Ditto.
20999         (avx512f_<code>v8div16qi2_mask_store): Ditto.
21000         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
21001         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
21002         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
21003         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
21004         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
21005         (*avx512pf_gatherpf<mode>df_mask): Ditto.
21006         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
21007         (*avx512pf_scatterpf<mode>df_mask): Ditto.
21008         (avx512cd_maskb_vec_dupv8di): Ditto.
21009         (avx512cd_maskw_vec_dupv16si): Ditto.
21010         (avx512f_vpermi2var<mode>3_maskz): Ditto.
21011         (avx512f_vpermi2var<mode>3_mask): Ditto.
21012         (avx512f_vpermi2var<mode>3_mask): Ditto.
21013         (avx512f_vpermt2var<mode>3_maskz): Ditto.
21014         (*avx512f_gathersi<mode>): Ditto.
21015         (*avx512f_gathersi<mode>_2): Ditto.
21016         (*avx512f_gatherdi<mode>): Ditto.
21017         (*avx512f_gatherdi<mode>_2): Ditto.
21018         (*avx512f_scattersi<mode>): Ditto.
21019         (*avx512f_scatterdi<mode>): Ditto.
21020         (avx512f_compress<mode>_mask): Ditto.
21021         (avx512f_compressstore<mode>_mask): Ditto.
21022         (avx512f_expand<mode>_mask): Ditto.
21023         * config/i386/subst.md (mask): Change k to Yk.
21024         (mask_scalar_merge): Ditto.
21025         (sd): Ditto.
21027 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
21029         * doc/extend.texi (Vector Extensions): Document ?: in C++.
21031 2014-01-31  Richard Biener  <rguenther@suse.de>
21033         PR middle-end/59990
21034         * builtins.c (fold_builtin_memory_op): Make sure to not
21035         use a floating-point mode or a boolean or enumeral type for
21036         the copy operation.
21038 2014-01-30  DJ Delorie  <dj@redhat.com>
21040         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
21041         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
21042         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
21043         whenever main() has an epilogue.
21045 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21047         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
21048         unused variable "field".
21049         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
21050         (vsx_mergeh_<mode>): Likewise.
21051         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
21052         (altivec_vmrghh): Likewise.
21053         (altivec_vmrghw): Likewise.
21054         (altivec_vmrglb): Likewise.
21055         (altivec_vmrglh): Likewise.
21056         (altivec_vmrglw): Likewise.
21057         (altivec_vspltb): Add missing uses.
21058         (altivec_vsplth): Likewise.
21059         (altivec_vspltw): Likewise.
21060         (altivec_vspltsf): Likewise.
21062 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
21064         PR target/59923
21065         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
21066         frame related instructions.
21068 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
21070         PR rtl-optimization/59959
21071         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
21072         any reload of register whose subreg is invalid.
21074 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
21076         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
21077         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
21078         Add missing return type - void.
21080 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21082         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
21083         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
21084         remove element index adjustment for endian (now handled in vsx.md
21085         and altivec.md).
21086         (altivec_expand_vec_perm_const): Use
21087         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
21088         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
21089         (vsx_xxspltw_<mode>): Adjust element index for little endian.
21090         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
21091         define_expand and a new define_insn *altivec_vspltb_internal;
21092         adjust for -maltivec=be on a little endian target.
21093         (altivec_vspltb_direct): New.
21094         (altivec_vsplth): Divide into a define_expand and a new
21095         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
21096         little endian target.
21097         (altivec_vsplth_direct): New.
21098         (altivec_vspltw): Divide into a define_expand and a new
21099         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
21100         little endian target.
21101         (altivec_vspltw_direct): New.
21102         (altivec_vspltsf): Divide into a define_expand and a new
21103         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
21104         a little endian target.
21106 2014-01-30  Richard Biener  <rguenther@suse.de>
21108         PR tree-optimization/59993
21109         * tree-ssa-forwprop.c (associate_pointerplus): Check we
21110         can propagate form the earlier stmt and avoid the transform
21111         when the intermediate result is needed.
21113 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
21115         * README.Portability: Fix typo.
21117 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
21119         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
21120         comparison_operator with ordered_comparison_operator.
21122 2014-01-30  Nick Clifton  <nickc@redhat.com>
21124         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
21125         Rename to mn10300_store_multiple_regs.
21126         * config/mn10300/mn10300.c: Likewise.
21127         * config/mn10300/mn10300.md (store_movm): Fix typo: call
21128         store_multiple_regs.
21129         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
21130         Call mn10300_store_multiple_regs.
21132 2014-01-30  Nick Clifton  <nickc@redhat.com>
21133             DJ Delorie  <dj@redhat.com>
21135         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
21136         %fp 2 to keep registers after it properly word-aligned.
21137         (rl78_alloc_physical_registers_umul): Handle the case where both
21138         input operands are the same.
21140 2014-01-30  Richard Biener  <rguenther@suse.de>
21142         PR tree-optimization/59903
21143         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
21144         check properly.
21146 2014-01-30  Jason Merrill  <jason@redhat.com>
21148         PR c++/59633
21149         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
21151         PR c++/59645
21152         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
21154 2014-01-30  Richard Biener  <rguenther@suse.de>
21156         PR tree-optimization/59951
21157         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
21159 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
21161         PR target/59784
21162         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
21163         SFmode to DFmode case.
21165 2014-01-29  DJ Delorie  <dj@redhat.com>
21167         * config/msp430/msp430.opt (-minrt): New.
21168         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
21169         if -minrt given.
21170         (ENDFILE_SPEC): Likewise.
21172 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
21174         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
21175         (estimate_function_body_sizes): Use it.
21177 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
21179         PR c++/58561
21180         * dwarf2out.c (is_cxx_auto): New.
21181         (is_base_type): Use it.
21182         (gen_type_die_with_usage): Likewise.
21184 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21186         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
21187         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
21188         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
21189         -maltivec=be with LE targets.
21190         (vsx_mergeh_<mode>): Likewise.
21191         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
21192         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
21193         (altivec_vmrghb): Replace with define_expand and new
21194         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
21195         (altivec_vmrghb_direct): New define_insn.
21196         (altivec_vmrghh): Replace with define_expand and new
21197         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
21198         (altivec_vmrghh_direct): New define_insn.
21199         (altivec_vmrghw): Replace with define_expand and new
21200         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
21201         (altivec_vmrghw_direct): New define_insn.
21202         (*altivec_vmrghsf): Adjust for endianness.
21203         (altivec_vmrglb): Replace with define_expand and new
21204         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
21205         (altivec_vmrglb_direct): New define_insn.
21206         (altivec_vmrglh): Replace with define_expand and new
21207         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
21208         (altivec_vmrglh_direct): New define_insn.
21209         (altivec_vmrglw): Replace with define_expand and new
21210         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
21211         (altivec_vmrglw_direct): New define_insn.
21212         (*altivec_vmrglsf): Adjust for endianness.
21213         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
21214         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
21215         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
21216         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
21217         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
21218         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
21219         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
21220         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
21222 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21224         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
21225         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
21226         whitespace.
21228 2014-01-29  Richard Biener  <rguenther@suse.de>
21230         PR tree-optimization/58742
21231         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
21232         associate_pointerplus_align.
21233         (associate_pointerplus_diff): New function.
21234         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
21235         and associate_pointerplus_diff.
21237 2014-01-29  Richard Biener  <rguenther@suse.de>
21239         * lto-streamer.h (LTO_major_version): Bump to 3.
21240         (LTO_minor_version): Reset to 0.
21242 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
21244         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
21245         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
21246         (arm_file_start): Generate correct asm header for armv7ve.
21247         * config/arm/bpabi.h: Add multilib support for armv7ve.
21248         * config/arm/driver-arm.c: Change the architectures of cortex-a7
21249         and cortex-a15 to armv7ve.
21250         * config/arm/t-aprofile: Add multilib support for armv7ve.
21251         * doc/invoke.texi: Document -march=armv7ve.
21253 2014-01-29  Richard Biener  <rguenther@suse.de>
21255         PR tree-optimization/58742
21256         * tree-ssa-forwprop.c (associate_plusminus): Return true
21257         if we changed sth, defer EH cleanup to ...
21258         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
21259         (simplify_mult): New function.
21261 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
21263         PR middle-end/59917
21264         PR tree-optimization/59920
21265         * tree.c (build_common_builtin_nodes): Remove
21266         __builtin_setjmp_dispatcher initialization.
21267         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
21268         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
21269         instead of gsi_after_labels + manually skipping debug stmts.
21270         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
21271         ignore bbs with IFN_ABNORMAL_DISPATCHER.
21272         * tree-inline.c (copy_edges_for_bb): Remove
21273         can_make_abnormal_goto argument, instead add abnormal_goto_dest
21274         argument.  Ignore computed_goto_p stmts.  Don't call
21275         make_abnormal_goto_edges.  If a call might need abnormal edges
21276         for non-local gotos, see if it already has an edge to
21277         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
21278         with true argument, don't do anything then, otherwise add
21279         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
21280         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
21281         caller.
21282         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
21283         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
21284         (lower_stmt): Don't set data->calls_builtin_setjmp.
21285         (lower_builtin_setjmp): Adjust comment.
21286         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
21287         * tree-cfg.c (found_computed_goto): Remove.
21288         (factor_computed_gotos): Remove.
21289         (make_goto_expr_edges): Return bool, true for computed gotos.
21290         Don't call make_abnormal_goto_edges.
21291         (build_gimple_cfg): Don't set found_computed_goto, don't call
21292         factor_computed_gotos.
21293         (computed_goto_p): No longer static.
21294         (make_blocks): Don't set found_computed_goto.
21295         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
21296         (make_edges): If make_goto_expr_edges returns true, push bb
21297         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
21298         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
21299         vector.  Record mapping between bbs and OpenMP regions if there
21300         are any, adjust make_gimple_omp_edges caller.  Call
21301         handle_abnormal_edges.
21302         (make_abnormal_goto_edges): Remove.
21303         * tree-cfg.h (make_abnormal_goto_edges): Remove.
21304         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
21305         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
21306         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
21307         * internal-fn.def (ABNORMAL_DISPATCHER): New.
21308         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
21309         filling *region also set *region_idx to (*region)->entry->index.
21311         PR other/58712
21312         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
21313         For REGs set ORIGINAL_REGNO.
21315 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
21317         * doc/md.texi: Mention that a target shouldn't implement
21318         vec_widen_(s|u)mul_even/odd pair if it is less efficient
21319         than hi/lo pair.
21321 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
21323         PR tree-optimization/59594
21324         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
21325         a copy of the datarefs vector rather than the vector itself.
21327 2014-01-28  Jason Merrill  <jason@redhat.com>
21329         PR c++/53756
21330         * dwarf2out.c (auto_die): New static.
21331         (gen_type_die_with_usage): Handle C++1y 'auto'.
21332         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
21333         on definition.
21335 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
21337         PR target/59672
21338         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
21339         (SPEC_X32): Likewise.
21340         (SPEC_64): Likewise.
21341         * config/i386/i386.c (ix86_option_override_internal): Turn off
21342         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
21343         for TARGET_16BIT.
21344         (x86_file_start): Output .code16gcc for TARGET_16BIT.
21345         * config/i386/i386.h (TARGET_16BIT): New macro.
21346         (TARGET_16BIT_P): Likewise.
21347         * config/i386/i386.opt: Add m16.
21348         * doc/invoke.texi: Document -m16.
21350 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
21352         PR preprocessor/59935
21353         * input.c (location_get_source_line): Bail out on when line number
21354         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
21356 2014-01-28  Richard Biener  <rguenther@suse.de>
21358         PR tree-optimization/58742
21359         * tree-ssa-forwprop.c (associate_plusminus): Handle
21360         pointer subtraction of the form (T)(P + A) - (T)P.
21362 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21364         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
21365         at const_int_cost.
21367 2014-01-28  Richard Biener  <rguenther@suse.de>
21369         Revert
21370         2014-01-28  Richard Biener  <rguenther@suse.de>
21372         PR rtl-optimization/45364
21373         PR rtl-optimization/59890
21374         * var-tracking.c (local_get_addr_clear_given_value): Handle
21375         already cleared slot.
21376         (val_reset): Handle not allocated local_get_addr_cache.
21377         (vt_find_locations): Use post-order on the inverted CFG.
21379 2014-01-28  Richard Biener  <rguenther@suse.de>
21381         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
21383 2014-01-28  Richard Biener  <rguenther@suse.de>
21385         PR rtl-optimization/45364
21386         PR rtl-optimization/59890
21387         * var-tracking.c (local_get_addr_clear_given_value): Handle
21388         already cleared slot.
21389         (val_reset): Handle not allocated local_get_addr_cache.
21390         (vt_find_locations): Use post-order on the inverted CFG.
21392 2014-01-28  Alan Modra  <amodra@gmail.com>
21394         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
21395         * configure.ac <recursive call for build != host>: Define
21396         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
21397         and LD_FOR_BUILD too.
21398         * configure: Regenerate.
21400 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
21402         * config/i386/i386.c (get_builtin_code_for_version): Separate
21403         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
21404         Broadwell from Haswell.
21406 2014-01-27  Steve Ellcey  <sellcey@mips.com>
21408         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
21409         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
21410         * config/mips/mips.c (mips_option_override): Change setting
21411         of TARGET_DSP.
21412         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
21413         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
21414         Change from Mask to Var.
21416 2014-01-27  Jeff Law  <law@redhat.com>
21418         * ipa-inline.c (inline_small_functions): Fix typo.
21420 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
21422         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
21423         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
21424         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
21425         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
21426         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
21427         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
21428         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
21429         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
21430         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
21431         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
21432         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
21433         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
21434         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
21435         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
21436         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
21437         (_mm512_storeu_epi64): Ditto.
21438         (_mm512_cmpge_epi32_mask): Ditto.
21439         (_mm512_cmpge_epu32_mask): Ditto.
21440         (_mm512_cmpge_epi64_mask): Ditto.
21441         (_mm512_cmpge_epu64_mask): Ditto.
21442         (_mm512_cmple_epi32_mask): Ditto.
21443         (_mm512_cmple_epu32_mask): Ditto.
21444         (_mm512_cmple_epi64_mask): Ditto.
21445         (_mm512_cmple_epu64_mask): Ditto.
21446         (_mm512_cmplt_epi32_mask): Ditto.
21447         (_mm512_cmplt_epu32_mask): Ditto.
21448         (_mm512_cmplt_epi64_mask): Ditto.
21449         (_mm512_cmplt_epu64_mask): Ditto.
21450         (_mm512_cmpneq_epi32_mask): Ditto.
21451         (_mm512_cmpneq_epu32_mask): Ditto.
21452         (_mm512_cmpneq_epi64_mask): Ditto.
21453         (_mm512_cmpneq_epu64_mask): Ditto.
21454         (_mm512_expand_pd): Ditto.
21455         (_mm512_expand_ps): Ditto.
21456         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
21457         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
21458         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
21459         * config/i386/i386.c (ix86_builtins): Add
21460         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
21461         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
21462         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
21463         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
21464         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
21465         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
21466         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
21467         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
21468         IX86_BUILTIN_PMOVUSQW512_MEM.
21469         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
21470         __builtin_ia32_pmovsqd512mem_mask,
21471         __builtin_ia32_pmovqd512mem_mask,
21472         __builtin_ia32_pmovusqw512mem_mask,
21473         __builtin_ia32_pmovsqw512mem_mask,
21474         __builtin_ia32_pmovqw512mem_mask,
21475         __builtin_ia32_pmovusdw512mem_mask,
21476         __builtin_ia32_pmovsdw512mem_mask,
21477         __builtin_ia32_pmovdw512mem_mask,
21478         __builtin_ia32_pmovqb512mem_mask,
21479         __builtin_ia32_pmovusqb512mem_mask,
21480         __builtin_ia32_pmovsqb512mem_mask,
21481         __builtin_ia32_pmovusdb512mem_mask,
21482         __builtin_ia32_pmovsdb512mem_mask,
21483         __builtin_ia32_pmovdb512mem_mask.
21484         (bdesc_args): Add __builtin_ia32_expanddf512,
21485         __builtin_ia32_expandsf512.
21486         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
21487         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
21488         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
21489         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
21490         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
21491         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
21492         (avx512f_<code>v8div16qi2_mask_store): This.
21493         (avx512f_expand<mode>): New.
21495 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
21497         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
21498         New.
21499         (_mm512_mask_prefetch_i64gather_pd): Ditto.
21500         (_mm512_prefetch_i32scatter_pd): Ditto.
21501         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
21502         (_mm512_prefetch_i64scatter_pd): Ditto.
21503         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
21504         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
21505         (_mm512_mask_prefetch_i64gather_ps): Ditto.
21506         (_mm512_prefetch_i32scatter_ps): Ditto.
21507         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
21508         (_mm512_prefetch_i64scatter_ps): Ditto.
21509         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
21510         * config/i386/i386-builtin-types.def: Define
21511         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
21512         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
21513         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
21514         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
21515         IX86_BUILTIN_SCATTERPFQPD.
21516         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
21517         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
21518         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
21519         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
21520         __builtin_ia32_scatterpfqps.
21521         (ix86_expand_builtin): Expand new built-ins.
21522         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
21523         fix memory access data type.
21524         (*avx512pf_gatherpf<mode>_mask): Ditto.
21525         (*avx512pf_gatherpf<mode>): Ditto.
21526         (avx512pf_scatterpf<mode>): Ditto.
21527         (*avx512pf_scatterpf<mode>_mask): Ditto.
21528         (*avx512pf_scatterpf<mode>): Ditto.
21529         (GATHER_SCATTER_SF_MEM_MODE): New.
21530         (avx512pf_gatherpf<mode>df): Ditto.
21531         (*avx512pf_gatherpf<mode>df_mask): Ditto.
21532         (*avx512pf_scatterpf<mode>df): Ditto.
21534 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
21536         PR bootstrap/59934
21537         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
21538         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
21539         reached.
21541 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
21543         * common/config/arm/arm-common.c
21544         (arm_rewrite_mcpu): Handle multiple names.
21545         * config/arm/arm.h
21546         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
21548 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
21550         * gimple-builder.h (create_gimple_tmp): Delete.
21552 2014-01-27  Christian Bruel  <christian.bruel@st.com>
21554         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
21555         words comparisons.
21557 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
21559         * config/pa/pa.md (call): Generate indirect long calls to non-local
21560         functions when outputing 32-bit code.
21561         (call_value): Likewise except for special call to buggy powf function.
21563         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
21564         portable runtime and PIC indirect calls.
21565         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
21566         and PIC call sequences.  Use ldo instead of blr to set return register
21567         in PIC call sequence.
21569 2014-01-25  Walter Lee  <walt@tilera.com>
21571         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
21572         avoid clobbering a live register.
21574 2014-01-25  Walter Lee  <walt@tilera.com>
21576         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
21577         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
21578         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
21579         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
21581 2014-01-25  Walter Lee  <walt@tilera.com>
21583         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
21584         arguments on even registers.
21585         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
21586         STACK_BOUNDARY.
21587         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
21588         (BIGGEST_ALIGNMENT): Ditto.
21589         (BIGGEST_FIELD_ALIGNMENT): Ditto.
21591 2014-01-25  Walter Lee  <walt@tilera.com>
21593         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
21594         insns before bundling.
21595         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
21597 2014-01-25  Walter Lee  <walt@tilera.com>
21599         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
21600         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
21601         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
21603 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
21605         * config/mips/constraints.md (kl): Delete.
21606         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
21607         define expands, using...
21608         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
21609         instructions for MIPS16.
21610         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
21611         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
21613 2014-01-25  Walter Lee  <walt@tilera.com>
21615         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
21616         (clzdi2): Ditto.
21617         (ffsdi2): Ditto.
21619 2014-01-25  Walter Lee  <walt@tilera.com>
21621         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
21622         (TARGET_EXPAND_TO_RTL_HOOK): Define.
21624 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
21626         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
21627         Handle XOR.
21629 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
21631         * print-rtl.c (in_call_function_usage): New var.
21632         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
21633         EXPR_LIST mode as mode and not as reg note name.
21635         PR middle-end/59561
21636         * cfgloopmanip.c (copy_loop_info): If
21637         loop->warned_aggressive_loop_optimizations, make sure
21638         the flag is set in target loop too.
21640 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
21642         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
21643         flag_cilkplus.
21644         * builtins.def: Likewise.
21645         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
21646         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
21647         * ira.c (ira_setup_eliminable_regset): Likewise.
21648         * omp-low.c (gate_expand_omp): Likewise.
21649         (execute_lower_omp): Likewise.
21650         (diagnose_sb_0): Likewise.
21651         (gate_diagnose_omp_blocks): Likewise.
21652         (simd_clone_clauses_extract): Likewise.
21653         (gate): Likewise.
21655 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21657         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
21658         correction for little endian...
21659         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
21660         here.
21662 2014-01-24  Jeff Law  <law@redhat.com>
21664         PR tree-optimization/59919
21665         * tree-vrp.c (find_assert_locations_1): Do not register asserts
21666         for non-returning calls.
21668 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
21670         * common/config/aarch64/aarch64-common.c
21671         (aarch64_rewrite_mcpu): Handle multiple names.
21672         * config/aarch64/aarch64.h
21673         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
21675 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
21677         * input.c (add_file_to_cache_tab): Handle the case where fopen
21678         returns NULL.
21680 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
21682         PR target/59929
21683         * config/i386/i386.md (pushsf splitter): Get stack adjustment
21684         from push operand if code of push isn't PRE_DEC.
21686 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
21688         PR target/59909
21689         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
21690         -mquad-memory-atomic.  Update -mquad-memory documentation to say
21691         it is only used for non-atomic loads/stores.
21693         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
21694         -mquad-memory or -mquad-memory-atomic switches.
21696         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
21697         -mquad-memory-atomic to ISA 2.07 support.
21699         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
21700         to separate support of normal quad word memory operations (ldq, stq)
21701         from the atomic quad word memory operations.
21703         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
21704         support to separate non-atomic quad word operations from atomic
21705         quad word operations.  Disable non-atomic quad word operations in
21706         little endian mode so that we don't have to swap words after the
21707         load and before the store.
21708         (quad_load_store_p): Add comment about atomic quad word support.
21709         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
21710         options printed with -mdebug=reg.
21712         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
21713         -mquad-memory-atomic as the test for whether we have quad word
21714         atomic instructions.
21715         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
21716         or -mp8-vector are used, allow byte/half-word atomic operations.
21718         * config/rs6000/sync.md (load_lockedti): Insure that the address
21719         is a proper indexed or indirect address for the lqarx instruction.
21720         On little endian systems, swap the hi/lo registers after the lqarx
21721         instruction.
21722         (load_lockedpti): Use indexed_or_indirect_operand predicate to
21723         insure the address is valid for the lqarx instruction.
21724         (store_conditionalti): Insure that the address is a proper indexed
21725         or indirect address for the stqcrx. instruction.  On little endian
21726         systems, swap the hi/lo registers before doing the stqcrx.
21727         instruction.
21728         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
21729         insure the address is valid for the stqcrx. instruction.
21731         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
21732         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
21733         type of quad memory support is available.
21735 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
21737         PR regression/59915
21738         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
21739         there is a danger of looping.
21741 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
21743         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
21744         force flag_ira_loop_pressure if set via command line.
21746 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
21748         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
21749         (ashr_simd): New builtin handling DI mode.
21750         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
21751         (aarch64_sshr_simddi): New match pattern.
21752         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
21753         (vshrd_n_s64): Likewise.
21754         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
21756 2014-01-23  Nick Clifton  <nickc@redhat.com>
21758         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
21759         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
21760         favour of mcu specific scripts.
21761         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
21762         430x multilibs.
21764 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
21765             Alex Velenko  <Alex.Velenko@arm.com>
21767         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
21768         (vaddv_s16): Likewise.
21769         (vaddv_s32): Likewise.
21770         (vaddv_u8): Likewise.
21771         (vaddv_u16): Likewise.
21772         (vaddv_u32): Likewise.
21773         (vaddvq_s8): Likewise.
21774         (vaddvq_s16): Likewise.
21775         (vaddvq_s32): Likewise.
21776         (vaddvq_s64): Likewise.
21777         (vaddvq_u8): Likewise.
21778         (vaddvq_u16): Likewise.
21779         (vaddvq_u32): Likewise.
21780         (vaddvq_u64): Likewise.
21781         (vaddv_f32): Likewise.
21782         (vaddvq_f32): Likewise.
21783         (vaddvq_f64): Likewise.
21784         (vmaxv_f32): Likewise.
21785         (vmaxv_s8): Likewise.
21786         (vmaxv_s16): Likewise.
21787         (vmaxv_s32): Likewise.
21788         (vmaxv_u8): Likewise.
21789         (vmaxv_u16): Likewise.
21790         (vmaxv_u32): Likewise.
21791         (vmaxvq_f32): Likewise.
21792         (vmaxvq_f64): Likewise.
21793         (vmaxvq_s8): Likewise.
21794         (vmaxvq_s16): Likewise.
21795         (vmaxvq_s32): Likewise.
21796         (vmaxvq_u8): Likewise.
21797         (vmaxvq_u16): Likewise.
21798         (vmaxvq_u32): Likewise.
21799         (vmaxnmv_f32): Likewise.
21800         (vmaxnmvq_f32): Likewise.
21801         (vmaxnmvq_f64): Likewise.
21802         (vminv_f32): Likewise.
21803         (vminv_s8): Likewise.
21804         (vminv_s16): Likewise.
21805         (vminv_s32): Likewise.
21806         (vminv_u8): Likewise.
21807         (vminv_u16): Likewise.
21808         (vminv_u32): Likewise.
21809         (vminvq_f32): Likewise.
21810         (vminvq_f64): Likewise.
21811         (vminvq_s8): Likewise.
21812         (vminvq_s16): Likewise.
21813         (vminvq_s32): Likewise.
21814         (vminvq_u8): Likewise.
21815         (vminvq_u16): Likewise.
21816         (vminvq_u32): Likewise.
21817         (vminnmv_f32): Likewise.
21818         (vminnmvq_f32): Likewise.
21819         (vminnmvq_f64): Likewise.
21821 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
21823         * config/aarch64/aarch64-simd.md
21824         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
21825         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
21826         (*aarch64_mul3_elt<mode>): Likewise.
21827         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
21828         (*aarch64_mul3_elt_to_64v2df): Likewise.
21829         (*aarch64_mla_elt<mode>): Likewise.
21830         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
21831         (*aarch64_mls_elt<mode>): Likewise.
21832         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
21833         (*aarch64_fma4_elt<mode>): Likewise.
21834         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
21835         (*aarch64_fma4_elt_to_64v2df): Likewise.
21836         (*aarch64_fnma4_elt<mode>): Likewise.
21837         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
21838         (*aarch64_fnma4_elt_to_64v2df): Likewise.
21839         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
21840         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
21841         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
21842         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
21843         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
21844         (aarch64_sqdmull_lane<mode>_internal): Likewise.
21845         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
21847 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
21849         * config/aarch64/aarch64-simd.md
21850         (aarch64_be_checked_get_lane<mode>): New define_expand.
21851         * config/aarch64/aarch64-simd-builtins.def
21852         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
21853         New builtin definition.
21854         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
21855         Use new safe be builtin.
21857 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
21859         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
21860         New define_insn.
21861         (aarch64_be_st1<mode>): Likewise.
21862         (aarch_ld1<VALL:mode>): Define_expand modified.
21863         (aarch_st1<VALL:mode>): Likewise.
21864         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
21865         (UNSPEC_ST1): Likewise.
21867 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
21869         * config/microblaze/microblaze.md: Add trap insn and attribute
21871 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
21873         PR preprocessor/58580
21874         * input.h (location_get_source_line): Take an additional line_size
21875         parameter.
21876         (void diagnostics_file_cache_fini): Declare new function.
21877         * input.c (struct fcache): New type.
21878         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
21879         New static constants.
21880         (diagnostic_file_cache_init, total_lines_num)
21881         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
21882         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
21883         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
21884         (get_next_line, read_next_line, goto_next_line, read_line_num):
21885         New static function definitions.
21886         (diagnostic_file_cache_fini): New function.
21887         (location_get_source_line): Take an additional output line_len
21888         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
21889         read_line_num.
21890         * diagnostic.c (diagnostic_finish): Call
21891         diagnostic_file_cache_fini.
21892         (adjust_line): Take an additional input parameter for the length
21893         of the line, rather than calculating it with strlen.
21894         (diagnostic_show_locus): Adjust the use of
21895         location_get_source_line and adjust_line with respect to their new
21896         signature.  While displaying a line now, do not stop at the first
21897         null byte.  Rather, display the zero byte as a space and keep
21898         going until we reach the size of the line.
21899         * Makefile.in: Add vec.o to OBJS-libcommon
21901 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
21902             Ilya Tocar  <ilya.tocar@intel.com>
21904         * config/i386/avx512fintrin.h (_mm512_kmov): New.
21905         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
21906         (__builtin_ia32_kmov16): Ditto.
21907         * config/i386/i386.md (UNSPEC_KMOV): New.
21908         (kmovw): Ditto.
21910 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
21912         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
21913         (_mm512_storeu_si512): Ditto.
21915 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
21917         PR target/52125
21918         * rtl.h (get_referenced_operands): Declare.
21919         * recog.c (get_referenced_operands): New function.
21920         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
21921         operands have been referenced when recording LO_SUM references.
21923 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
21925         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
21927 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
21929         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
21930         Enable for generic and recent AMD targets.
21932 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
21934         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
21935         ARG_SIZE note when adjustment was eliminated.
21937 2014-01-22  Jeff Law  <law@redhat.com>
21939         PR tree-optimization/59597
21940         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
21941         in file.  Accept new argument REGISTERING and use it to modify
21942         dump output appropriately.
21943         (register_jump_thread): Corresponding changes.
21944         (mark_threaded_blocks): Reinstate code to cancel unprofitable
21945         thread paths involving joiner blocks.  Add code to dump cancelled
21946         jump threading paths.
21948 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
21950         PR rtl-optimization/59477
21951         * lra-constraints.c (inherit_in_ebb): Process call for living hard
21952         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
21954 2014-01-22  Tom Tromey  <tromey@redhat.com>
21956         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
21957         PARAMS.
21958         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
21960 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
21962         PR rtl-optimization/59896
21963         * lra-constraints.c (process_alt_operands): Check unused note for
21964         matched operands of insn with no output reloads.
21966 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
21968         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
21969         (mips_move_from_gpr_cost): Likewise.
21971 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
21973         PR rtl-optimization/59858
21974         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
21975         ira_class_hard_regs_num.
21976         (process_alt_operands): Increase reject for dying matched operand.
21978 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
21980         PR target/59003
21981         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
21982         smaller than size, perform several stores or loads and stores
21983         at dst + count - size to store or copy all of size bytes, rather
21984         than just last modesize bytes.
21986 2014-01-20  DJ Delorie  <dj@redhat.com>
21988         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
21989         that CLOBBERs are REGs before propogating their values.
21991 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
21993         PR middle-end/59789
21994         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
21995         (cgraph_inline_failed_type): New function.
21996         * cgraph.h (DEFCIFCODE): Add type.
21997         (cgraph_inline_failed_type_t): New enum.
21998         (cgraph_inline_failed_type): New prototype.
21999         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
22000         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
22001         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
22002         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
22003         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
22004         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
22005         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
22006         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
22007         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
22008         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
22009         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
22010         OPTIMIZATION_MISMATCH.
22011         * tree-inline.c (expand_call_inline): Emit errors during
22012         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
22014 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
22016         PR target/59685
22017         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
22018         mode attribute in insn output.
22020 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
22022         * output.h (output_constant): Delete.
22023         * varasm.c (output_constant): Make private.
22025 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
22027         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
22029 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
22031         PR middle-end/59860
22032         * tree.h (fold_builtin_strcat): New prototype.
22033         * builtins.c (fold_builtin_strcat): No longer static.  Add len
22034         argument, if non-NULL, don't call c_strlen.  Optimize
22035         directly into __builtin_memcpy instead of __builtin_strcpy.
22036         (fold_builtin_2): Adjust fold_builtin_strcat caller.
22037         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
22039 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
22041         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
22042         for SImode_address_operand operands, having only a REG argument.
22044 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22046         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
22047         loader name using mbig-endian.
22048         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
22050 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
22052         * doc/invoke.texi (-march): Clarify documentation for AArch64.
22053         (-mtune): Likewise.
22054         (-mcpu): Likewise.
22056 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
22058         * config/aarch64/aarch64-protos.h
22059         (aarch64_cannot_change_mode_class_ptr): Declare.
22060         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
22061         aarch64_cannot_change_mode_class_ptr): New.
22062         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
22063         backend hook aarch64_cannot_change_mode_class.
22065 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
22067         * common/config/aarch64/aarch64-common.c
22068         (aarch64_handle_option): Don't handle any option order logic here.
22069         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
22070         selected_cpu, warn on architecture version mismatch.
22071         (aarch64_override_options): Fix parsing order for option strings.
22073 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22074             Iain Sandoe  <iain@codesourcery.com>
22076         PR bootstrap/59496
22077         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
22078         warning.  Amend comment to reflect current functionality.
22080 2014-01-20  Richard Biener  <rguenther@suse.de>
22082         PR middle-end/59860
22083         * builtins.c (fold_builtin_strcat): Remove case better handled
22084         by tree-ssa-strlen.c.
22086 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
22088         * config/aarch64/aarch64.opt
22089         (mcpu, march, mtune): Make case-insensitive.
22091 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
22093         PR target/59880
22094         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
22095         if operands[1] is a REG or ZERO_EXTEND of a REG.
22097 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
22099         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
22101 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
22103         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
22104         long non-pic millicode calls.
22106 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22108         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
22110 2014-01-19  Kito Cheng  <kito@0xlab.org>
22112         * builtins.c (expand_movstr): Check movstr expand done or fail.
22114 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
22115             H.J. Lu  <hongjiu.lu@intel.com>
22117         PR target/59379
22118         * config/i386/i386.md (*lea<mode>): Zero-extend return register
22119         to DImode for zero-extended addresses.
22121 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
22123         PR rtl-optimization/57763
22124         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
22125         on the new indirect jump_insn and increment LABEL_NUSES (label).
22127 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
22129         PR bootstrap/59580
22130         PR bootstrap/59583
22131         * config.gcc (x86_archs): New variable.
22132         (x86_64_archs): Likewise.
22133         (x86_cpus): Likewise.
22134         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
22135         --with-arch/--with-cpu= options.
22136         Support --with-arch=/--with-cpu={nehalem,westmere,
22137         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
22139 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
22141         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
22142         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
22144 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
22146         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
22148 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
22150         PR target/58944
22151         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
22152         clear cpp_get_options (parse_in)->warn_unused_macros for
22153         ix86_target_macros_internal with cpp_define.
22155 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
22157         * jump.c (delete_related_insns): Keep (use (insn))s.
22158         * reorg.c (redundant_insn): Check for barriers too.
22160 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
22162         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
22164 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
22166         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
22167         call to $$dyncall when TARGET_LONG_CALLS is true.
22169 2014-01-17  Jeff Law  <law@redhat.com>
22171         * ree.c (combine_set_extension): Temporarily disable test for
22172         changing number of hard registers.
22174 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
22176         PR middle-end/58125
22177         * ipa-inline-analysis.c (inline_free_summary):
22178         Do not free summary of aliases.
22180 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
22182         PR middle-end/59706
22183         * gimplify.c (gimplify_expr): Use create_tmp_var
22184         instead of create_tmp_var_raw.  If cond doesn't have
22185         integral type, don't add the IFN_ANNOTATE builtin at all.
22187 2014-01-17  Martin Jambor  <mjambor@suse.cz>
22189         PR ipa/59736
22190         * ipa-cp.c (prev_edge_clone): New variable.
22191         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
22192         Also resize prev_edge_clone vector.
22193         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
22194         (ipcp_edge_removal_hook): New function.
22195         (ipcp_driver): Register ipcp_edge_removal_hook.
22197 2014-01-17  Andrew Pinski  <apinski@cavium.com>
22198             Steve Ellcey  <sellcey@mips.com>
22200         PR target/59462
22201         * config/mips/mips.c (mips_print_operand): Check operand mode instead
22202         of operator mode.
22204 2014-01-17  Jeff Law  <law@redhat.com>
22206         PR middle-end/57904
22207         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
22208         so that pass_ccp runs first.
22210 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
22212         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
22213         (ix86_adjust_cost): Use !TARGET_XXX.
22214         (do_reorder_for_imul): Likewise.
22215         (swap_top_of_ready_list): Likewise.
22216         (ix86_sched_reorder): Likewise.
22218 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
22220         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22221         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
22222         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
22223         (intel_memset): New.  Duplicate slm_memset.
22224         (intel_cost): New.  Duplicate slm_cost.
22225         (m_INTEL): New macro.
22226         (processor_target_table): Add "intel".
22227         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
22228         with PROCESSOR_INTEL for "intel".
22229         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
22230         PROCESSOR_SILVERMONT.
22231         (ix86_issue_rate): Likewise.
22232         (ix86_adjust_cost): Likewise.
22233         (ia32_multipass_dfa_lookahead): Likewise.
22234         (swap_top_of_ready_list): Likewise.
22235         (ix86_sched_reorder): Likewise.
22236         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
22237         instead of TARGET_OPT_AGU.
22238         * config/i386/i386.h (TARGET_INTEL): New.
22239         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
22240         (processor_type): Add PROCESSOR_INTEL.
22241         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
22242         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
22244 2014-01-17  Marek Polacek  <polacek@redhat.com>
22246         PR c/58346
22247         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
22248         size is zero.
22250 2014-01-17  Richard Biener  <rguenther@suse.de>
22252         PR tree-optimization/46590
22253         * opts.c (default_options_table): Add entries for
22254         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
22255         all enabled at -O1 but not for -Og.
22256         * common.opt (fbranch-count-reg): Remove Init(1).
22257         (fmove-loop-invariants): Likewise.
22258         (ftree-pta): Likewise.
22260 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
22262         * config/i386/i386.c (ix86_data_alignment): For compatibility with
22263         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
22264         decls to at least the GCC 4.8 used alignments.
22266         PR fortran/59440
22267         * tree-nested.c (convert_nonlocal_reference_stmt,
22268         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
22269         of GIMPLE_BIND stmts, adjust associated decls.
22271 2014-01-17  Richard Biener  <rguenther@suse.de>
22273         PR tree-optimization/46590
22274         * vec.h (vec<>::bseach): New member function implementing
22275         binary search according to C89 bsearch.
22276         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
22277         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
22278         bitmap pointer again.  Make accesses_in_loop a flat array.
22279         (mem_ref_obstack): New global.
22280         (outermost_indep_loop): Adjust for mem_ref->stored changes.
22281         (mark_ref_stored): Likewise.
22282         (ref_indep_loop_p_2): Likewise.
22283         (set_ref_stored_in_loop): New helper function.
22284         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
22285         (memref_free): Adjust.
22286         (record_mem_ref_loc): Simplify.
22287         (gather_mem_refs_stmt): Adjust.
22288         (sort_locs_in_loop_postorder_cmp): New function.
22289         (analyze_memory_references): Sort accesses_in_loop after
22290         loop postorder number.
22291         (find_ref_loc_in_loop_cmp): New function.
22292         (for_all_locs_in_loop): Find relevant cluster of locs in
22293         accesses_in_loop and iterate without recursion.
22294         (execute_sm): Avoid uninit warning.
22295         (struct ref_always_accessed): Simplify.
22296         (ref_always_accessed::operator ()): Likewise.
22297         (ref_always_accessed_p): Likewise.
22298         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
22299         loop postorder numbers here.
22300         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
22301         numbers.
22303 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
22305         PR c++/57945
22306         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
22307         on decls for which assemble_alias has been called.
22309 2014-01-17  Nick Clifton  <nickc@redhat.com>
22311         * config/msp430/msp430.opt: (mcpu): New option.
22312         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
22313         (msp430_option_override): Parse target_cpu.  If the MCU name
22314         matches a generic string, clear target_mcu.
22315         (msp430_attr): Allow numeric interrupt values up to 63.
22316         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
22317         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
22318         option.
22319         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
22320         Add mcpu matches.
22321         * config/msp430/msp430.md (popm): Use %J rather than %I.
22322         (addsi3): Use msp430_nonimmediate_operand for operand 2.
22323         (addhi_cy_i): Use immediate_operand for operand 2.
22324         * doc/invoke.texi: Document -mcpu option.
22326 2014-01-17  Richard Biener  <rguenther@suse.de>
22328         PR rtl-optimization/38518
22329         * df.h (df_analyze_loop): Declare.
22330         * df-core.c: Include cfgloop.h.
22331         (df_analyze_1): Split out main part of df_analyze.
22332         (df_analyze): Adjust.
22333         (loop_inverted_post_order_compute): New function.
22334         (loop_post_order_compute): Likewise.
22335         (df_analyze_loop): New function avoiding whole-function
22336         postorder computes.
22337         * loop-invariant.c (find_defs): Use df_analyze_loop.
22338         (find_invariants): Adjust.
22339         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
22341 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
22343         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
22344         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
22346 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
22348         * ipa-ref.c (ipa_remove_stmt_references): Fix references
22349         traversal when removing references.
22351 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
22353         PR ipa/59775
22354         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
22356 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
22358         PR middle-end/56791
22359         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
22360         pushing a reload for an autoinc when we had previously reloaded an
22361         inner part of the address.
22363 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
22365         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
22366         field.
22367         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
22368         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
22369         when not giving up or versioning for alias only because of
22370         loop->safelen.
22371         (vect_analyze_data_ref_dependences): Set to true.
22372         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
22373         is a GIMPLE_PHI.
22374         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
22375         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
22376         to the condition.
22378         PR middle-end/58344
22379         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
22381         PR target/59839
22382         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
22383         operand 0 predicate for gathers, use a new pseudo as subtarget.
22385 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
22387         PR middle-end/59609
22388         * lra-constraints.c (process_alt_operands): Add printing debug info.
22389         Check absence of input/output reloads for matched operands too.
22391 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
22393         PR rtl-optimization/59835
22394         * ira.c (ira_init_register_move_cost): Increase cost for
22395         impossible modes.
22397 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
22399         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
22401 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
22403         PR target/59780
22404         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
22405         non-register objects.  Use gen_(high/low)part more consistently.
22406         Fix assertions.
22408 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
22410         PR target/59844
22411         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
22412         endian support, remove tests for WORDS_BIG_ENDIAN.
22413         (p8_mfvsrd_3_<mode>): Likewise.
22414         (reload_gpr_from_vsx<mode>): Likewise.
22415         (reload_gpr_from_vsxsf): Likewise.
22416         (p8_mfvsrd_4_disf): Likewise.
22418 2014-01-16  Richard Biener  <rguenther@suse.de>
22420         PR rtl-optimization/46590
22421         * lcm.c (compute_antinout_edge): Use postorder iteration.
22422         (compute_laterin): Use inverted postorder iteration.
22424 2014-01-16  Nick Clifton  <nickc@redhat.com>
22426         PR middle-end/28865
22427         * varasm.c (output_constant): Return the number of bytes actually
22428         emitted.
22429         (output_constructor_array_range): Update the field size with the
22430         number of bytes emitted by output_constant.
22431         (output_constructor_regular_field): Likewise.  Also do not
22432         complain if the total number of bytes emitted is now greater
22433         than the expected fieldpos.
22434         * output.h (output_constant): Update prototype and descriptive comment.
22436 2014-01-16  Marek Polacek  <polacek@redhat.com>
22438         PR middle-end/59827
22439         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
22440         it is error_mark_node.
22442 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
22444         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
22445         VALID_AVX256_REG_OR_OI_MODE.
22447 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
22449         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
22450         current procedure should be profiled.
22452 2014-01-15  Andrew Pinski  <apinski@cavium.com>
22454         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
22455         of moving from/to the STACK_REG register class.
22457 2014-01-15  Richard Henderson  <rth@redhat.com>
22459         PR debug/54694
22460         * reginfo.c (global_regs_decl): Globalize.
22461         * rtl.h (global_regs_decl): Declare.
22462         * ira.c (do_reload): Diagnose frame_pointer_needed and it
22463         reserved via global_regs.
22465 2014-01-15  Teresa Johnson  <tejohnson@google.com>
22467         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
22469 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
22471         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
22472         and vmulosh rather than call gen_vec_widen_smult_*.
22473         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
22474         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
22475         (vec_widen_smult_even_v16qi): Likewise.
22476         (vec_widen_umult_even_v8hi): Likewise.
22477         (vec_widen_smult_even_v8hi): Likewise.
22478         (vec_widen_umult_odd_v16qi): Likewise.
22479         (vec_widen_smult_odd_v16qi): Likewise.
22480         (vec_widen_umult_odd_v8hi): Likewise.
22481         (vec_widen_smult_odd_v8hi): Likewise.
22482         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
22483         vmuloub rather than call gen_vec_widen_umult_*.
22484         (vec_widen_umult_lo_v16qi): Likewise.
22485         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
22486         vmulosb rather than call gen_vec_widen_smult_*.
22487         (vec_widen_smult_lo_v16qi): Likewise.
22488         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
22489         rather than call gen_vec_widen_umult_*.
22490         (vec_widen_umult_lo_v8hi): Likewise.
22491         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
22492         rather than call gen_vec_widen_smult_*.
22493         (vec_widen_smult_lo_v8hi): Likewise.
22495 2014-01-15  Jeff Law  <law@redhat.com>
22497         PR tree-optimization/59747
22498         * ree.c (find_and_remove_re): Properly handle case where a second
22499         eliminated extension requires widening a copy created for elimination
22500         of a prior extension.
22501         (combine_set_extension): Ensure that the number of hard regs needed
22502         for a destination register does not change when we widen it.
22504 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
22506         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
22507         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
22508         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
22509         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
22510         (avr-*-rtems*): Likewise.
22511         (bfin*-rtems*): Likewise.
22512         (moxie-*-rtems*): Likewise.
22513         (h8300-*-rtems*): Likewise.
22514         (i[34567]86-*-rtems*): Likewise.
22515         (lm32-*-rtems*): Likewise.
22516         (m32r-*-rtems*): Likewise.
22517         (m68k-*-rtems*): Likewise.
22518         (microblaze*-*-rtems*): Likewise.
22519         (mips*-*-rtems*): Likewise.
22520         (powerpc-*-rtems*): Likewise.
22521         (sh-*-rtems*): Likewise.
22522         (sparc-*-rtems*): Likewise.
22523         (sparc64-*-rtems*): Likewise.
22524         (v850-*-rtems*): Likewise.
22525         (m32c-*-rtems*): Likewise.
22527 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
22529         PR rtl-optimization/59511
22530         * ira.c (ira_init_register_move_cost): Use memory costs for some
22531         cases of register move cost calculations.
22532         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
22533         instead of BB frequency.
22534         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
22535         * lra-assigns.c (find_hard_regno_for): Ditto.
22537 2014-01-15  Richard Biener  <rguenther@suse.de>
22539         PR tree-optimization/59822
22540         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
22541         (vectorizable_load): Use it to hoist defs of uses of invariant
22542         loads out of the loop.
22544 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
22545             Kugan Vivekanandarajah  <kuganv@linaro.org>
22547         PR target/59695
22548         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
22549         truncation.
22551 2014-01-15  Richard Biener  <rguenther@suse.de>
22553         PR rtl-optimization/59802
22554         * lcm.c (compute_available): Use inverted postorder to seed
22555         the initial worklist.
22557 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22559         PR target/59803
22560         * config/s390/s390.c (s390_preferred_reload_class): Don't return
22561         ADDR_REGS for invalid symrefs in non-PIC code.
22563 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
22565         PR other/58712
22566         * builtins.c (determine_block_size): Initialize *probable_max_size
22567         even if len_rtx is CONST_INT.
22569 2014-01-14  Andrew Pinski  <apinski@cavium.com>
22571         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
22572         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
22573         (cortexa53_tunings): Likewise.
22574         (aarch64_sched_issue_rate): New function.
22575         (TARGET_SCHED_ISSUE_RATE): Define.
22577 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
22579         * ira-costs.c (find_costs_and_classes): Add missed
22580         ira_init_register_move_cost_if_necessary.
22582 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
22584         PR target/59787
22585         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
22587 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
22589         PR target/59794
22590         * config/i386/i386.c (type_natural_mode): Add a bool parameter
22591         to indicate if type is used for function return value.  Warn ABI
22592         change if the vector mode isn't available for function return value.
22593         (ix86_function_arg_advance): Pass false to type_natural_mode.
22594         (ix86_function_arg): Likewise.
22595         (ix86_gimplify_va_arg): Likewise.
22596         (function_arg_32): Don't warn ABI change.
22597         (ix86_function_value): Pass true to type_natural_mode.
22598         (ix86_return_in_memory): Likewise.
22599         (ix86_struct_value_rtx): Removed.
22600         (TARGET_STRUCT_VALUE_RTX): Likewise.
22602 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
22604         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
22605         converting a conditional jump into a conditional return.
22607 2014-01-14  Richard Biener  <rguenther@suse.de>
22609         PR tree-optimization/58921
22610         PR tree-optimization/59006
22611         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
22612         hoisting invariant stmts.
22613         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
22614         invariant loads on the preheader edge if possible.
22616 2014-01-14  Joey Ye  <joey.ye@arm.com>
22618         * doc/plugin.texi (Building GCC plugins): Update to C++.
22620 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
22622         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
22623         (_mm_rcp28_round_ss): Ditto.
22624         (_mm_rsqrt28_round_sd): Ditto.
22625         (_mm_rsqrt28_round_ss): Ditto.
22626         (_mm_rcp28_sd): Ditto.
22627         (_mm_rcp28_ss): Ditto.
22628         (_mm_rsqrt28_sd): Ditto.
22629         (_mm_rsqrt28_ss): Ditto.
22630         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
22631         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
22632         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
22633         (IX86_BUILTIN_RCP28SD): Ditto.
22634         (IX86_BUILTIN_RCP28SS): Ditto.
22635         (IX86_BUILTIN_RSQRT28SD): Ditto.
22636         (IX86_BUILTIN_RSQRT28SS): Ditto.
22637         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
22638         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
22639         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
22640         (ix86_expand_special_args_builtin): Expand new FTYPE.
22641         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
22642         (srcp14<mode>): Make insn unary.
22643         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
22644         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
22645         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
22646         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
22647         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
22648         Fix rounding: make it SAE only.
22649         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
22650         Ditto.
22651         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
22652         Ditto.
22653         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
22654         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
22655         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
22656         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
22657         (round_saeonly_mask_scalar_operand4): Ditto.
22658         (round_saeonly_mask_scalar_op3): Ditto.
22659         (round_saeonly_mask_scalar_op4): Ditto.
22661 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22663         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
22664         Implement -maltivec=be for vec_insert and vec_extract.
22666 2014-01-10  DJ Delorie  <dj@redhat.com>
22668         * config/msp430/msp430.md (call_internal): Don't allow memory
22669         references with SP as the base register.
22670         (call_value_internal): Likewise.
22671         * config/msp430/constraints.md (Yc): New.  For memory references
22672         that don't use SP as a base register.
22674         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
22675         "an integer without a # prefix"
22676         * config/msp430/msp430.md (epilogue_helper): Use it.
22678 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
22680         PR target/59617
22681         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
22682         AVX512F gather builtins.
22683         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
22684         on gather decls with INTEGER_TYPE masktype.
22685         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
22686         directly into the builtin rather than hoisting it before loop.
22688         PR tree-optimization/59387
22689         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
22690         (scev_const_prop): If folded_casts and type has undefined overflow,
22691         use force_gimple_operand instead of force_gimple_operand_gsi and
22692         for each added stmt if it is assign with
22693         arith_code_with_undefined_signed_overflow, call
22694         rewrite_to_defined_overflow.
22695         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
22696         gimple-fold.h instead.
22697         (arith_code_with_undefined_signed_overflow,
22698         rewrite_to_defined_overflow): Moved to ...
22699         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
22700         rewrite_to_defined_overflow): ... here.  No longer static.
22701         Include gimplify-me.h.
22702         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
22703         rewrite_to_defined_overflow): New prototypes.
22705 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22707         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
22709 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
22711         * builtins.c (get_object_alignment_2): Minor tweak.
22712         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
22714 2014-01-13  Christian Bruel  <christian.bruel@st.com>
22716         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
22717         optimized non constant lengths.
22719 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
22721         PR libgomp/59194
22722         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
22723         load as __atomic_load_N if possible.
22725 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
22727         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
22728         target parameter.
22729         (rs6000_expand_builtin): Adjust call.
22731 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
22733         PR target/58115
22734         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
22735         * config/rs6000/rs6000.c: Include target-globals.h.
22736         (rs6000_set_current_function): Instead of doing target_reinit
22737         unconditionally, use save_target_globals_default_opts and
22738         restore_target_globals.
22740         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
22741         FPSCR.
22742         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
22743         (rs6000_expand_builtin): Handle mffs and mtfsf.
22744         (rs6000_init_builtins): Define mffs and mtfsf.
22745         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
22746         (rs6000_mffs): New pattern.
22747         (rs6000_mtfsf): New pattern.
22749 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
22751         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
22752         Start narrowing with START.  Apply candidate-use pair
22753         and check overall cost in narrowing.
22754         (iv_ca_prune): Pass new argument.
22756 2014-01-10  Jeff Law  <law@redhat.com>
22758         PR middle-end/59743
22759         * ree.c (combine_reaching_defs): Ensure the defining statement
22760         occurs before the extension when optimizing extensions with
22761         different source and destination hard registers.
22763 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
22765         PR ipa/58585
22766         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
22767         vtables into the type inheritance graph.
22769 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
22771         PR rtl-optimization/59754
22772         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
22773         modes in the REGNO != REGNO case.
22775 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22777         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
22779 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
22781         PR tree-optimization/59745
22782         * tree-predcom.c (tree_predictive_commoning_loop): Call
22783         free_affine_expand_cache if giving up because components is NULL.
22785         * target-globals.c (save_target_globals): Allocate < 4KB structs using
22786         GC in payload of target_globals struct instead of allocating them on
22787         the heap and the larger structs separately using GC.
22788         * target-globals.h (struct target_globals): Make regs, hard_regs,
22789         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
22790         of GTY((skip)) and change type to void *.
22791         (reset_target_globals): Cast loads from those fields to corresponding
22792         types.
22794 2014-01-10  Steve Ellcey  <sellcey@mips.com>
22796         PR plugins/59335
22797         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
22798         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
22799         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
22801 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
22803         PR target/59744
22804         * aarch64-modes.def (CC_Zmode): New flags mode.
22805         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
22806         represents an equality.
22807         (aarch64_get_condition_code): Handle CC_Zmode.
22808         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
22810 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22812         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
22813         extraction in good case.
22815 2014-01-10  Richard Biener  <rguenther@suse.de>
22817         PR tree-optimization/59374
22818         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
22819         checking after SLP discovery.  Mark stmts not participating
22820         in any SLP instance properly.
22822 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22824         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
22825         when handling a SET rtx.
22827 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22829         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
22830         (cortex-a57): Likewise.
22831         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
22833 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22835         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
22836         non-iwmmxt builtins.
22838 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
22840         PR ipa/58252
22841         PR ipa/59226
22842         * ipa-devirt.c record_target_from_binfo): Take as argument
22843         stack of binfos and lookup matching one for virtual inheritance.
22844         (possible_polymorphic_call_targets_1): Update.
22846 2014-01-10  Huacai Chen  <chenhc@lemote.com>
22848         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
22849         kernel strings for Loongson-2E/2F/3A.
22851 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
22853         PR middle-end/59670
22854         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
22855         is_gimple_call before calling gimple_call_internal_p.
22857 2014-01-09  Steve Ellcey  <sellcey@mips.com>
22859         * Makefile.in (TREE_FLOW_H): Remove.
22860         (TREE_SSA_H): Add file names from tree-flow.h.
22861         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
22862         * tree.h: Remove tree-flow.h reference.
22863         * hash-table.h: Remove tree-flow.h reference.
22864         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
22865         reference with tree-ssa-loop.h.
22867 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22869         * doc/invoke.texi: Add -maltivec={be,le} options, and document
22870         default element-order behavior for -maltivec.
22871         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
22872         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
22873         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
22874         when targeting big endian, at least for now.
22875         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
22877 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
22879         PR middle-end/47735
22880         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
22881         var satisfies use_register_for_decl, just take into account type
22882         alignment, rather than decl alignment.
22884         PR tree-optimization/59622
22885         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
22886         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
22887         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
22888         Don't devirtualize for inplace at all.  For targets.length () == 1,
22889         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
22891 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
22893         * config/i386/i386.md (cpu): Remove the unused btver1.
22895 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
22897         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
22899 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
22901         PR target/58115
22902         * tree-core.h (struct target_globals): New forward declaration.
22903         (struct tree_target_option): Add globals field.
22904         * tree.h (TREE_TARGET_GLOBALS): Define.
22905         (prepare_target_option_nodes_for_pch): New prototype.
22906         * target-globals.h (struct target_globals): Define even if
22907         !SWITCHABLE_TARGET.
22908         * tree.c (prepare_target_option_node_for_pch,
22909         prepare_target_option_nodes_for_pch): New functions.
22910         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
22911         * config/i386/i386.c: Include target-globals.h.
22912         (ix86_set_current_function): Instead of doing target_reinit
22913         unconditionally, use save_target_globals_default_opts and
22914         restore_target_globals.
22916 2014-01-09  Richard Biener  <rguenther@suse.de>
22918         PR tree-optimization/59715
22919         * tree-cfg.h (split_critical_edges): Declare.
22920         * tree-cfg.c (split_critical_edges): Export.
22921         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
22923 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
22925         * cfgexpand.c (expand_stack_vars): Optionally disable
22926         asan stack protection.
22927         (expand_used_vars): Likewise.
22928         (partition_stack_vars): Likewise.
22929         * asan.c (asan_emit_stack_protection): Optionally disable
22930         after return stack usage.
22931         (instrument_derefs): Optionally disable memory access instrumentation.
22932         (instrument_builtin_call): Likewise.
22933         (instrument_strlen_call): Likewise.
22934         (asan_protect_global): Optionally disable global variables protection.
22935         * doc/invoke.texi: Added doc for new options.
22936         * params.def: Added new options.
22937         * params.h: Likewise.
22939 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
22941         PR rtl-optimization/59724
22942         * ifcvt.c (cond_exec_process_if_block): Don't call
22943         flow_find_head_matching_sequence with 0 longest_match.
22944         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
22945         non-active insns if !stop_after.
22946         (try_head_merge_bb): Revert 2014-01-07 changes.
22948 2014-01-08  Jeff Law  <law@redhat.com>
22950         * ree.c (get_sub_rtx): New function, extracted from...
22951         (merge_def_and_ext): Here.
22952         (combine_reaching_defs): Use get_sub_rtx.
22954 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
22956         * cgraph.h (varpool_variable_node): Do not choke on null node.
22958 2014-01-08  Catherine Moore  <clm@codesourcery.com>
22960         * config/mips/mips.md (simple_return): Attempt to use JRC
22961         for microMIPS.
22962         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
22964 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
22966         PR rtl-optimization/59137
22967         * reorg.c (steal_delay_list_from_target): Call update_block for
22968         elided insns.
22969         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
22971 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22973         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
22974         two duplicate entries.
22976 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
22978         Revert:
22979         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
22981         * config/mips/mips.c (mips_truncated_op_cost): New function.
22982         (mips_rtx_costs): Adjust test for BADDU.
22983         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
22985         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
22987         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
22988         (*baddu_si): ...this new pattern.
22990 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
22992         PR ipa/59722
22993         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
22995 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22997         PR middle-end/57748
22998         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
22999         inner_reference_p.
23000         (expand_expr, expand_normal): Adjust.
23001         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
23002         inner_reference_p. Use inner_reference_p to expand inner references.
23003         (store_expr): Adjust.
23004         * cfgexpand.c (expand_call_stmt): Adjust.
23006 2014-01-08  Rong Xu  <xur@google.com>
23008         * gcov-io.c (gcov_var): Move from gcov-io.h.
23009         (gcov_position): Ditto.
23010         (gcov_is_error): Ditto.
23011         (gcov_rewrite): Ditto.
23012         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
23013         only part to libgcc/libgcov.h.
23015 2014-01-08  Marek Polacek  <polacek@redhat.com>
23017         PR middle-end/59669
23018         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
23020 2014-01-08  Marek Polacek  <polacek@redhat.com>
23022         PR sanitizer/59667
23023         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
23025 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
23027         PR rtl-optimization/59649
23028         * stor-layout.c (get_mode_bounds): For BImode return
23029         0 and STORE_FLAG_VALUE.
23031 2014-01-08  Richard Biener  <rguenther@suse.de>
23033         PR middle-end/59630
23034         * gimple.h (is_gimple_builtin_call): Remove.
23035         (gimple_builtin_call_types_compatible_p): New.
23036         (gimple_call_builtin_p): New overload.
23037         * gimple.c (is_gimple_builtin_call): Remove.
23038         (validate_call): Rename to ...
23039         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
23040         check return types.
23041         (validate_type): New static function.
23042         (gimple_call_builtin_p): New overload and adjust.
23043         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
23044         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
23045         (gimple_fold_stmt_to_constant_1): Likewise.
23046         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
23048 2014-01-08  Richard Biener  <rguenther@suse.de>
23050         PR middle-end/59471
23051         * gimplify.c (gimplify_expr): Gimplify register-register type
23052         VIEW_CONVERT_EXPRs to separate stmts.
23054 2014-01-07  Jeff Law  <law@redhat.com>
23056         PR middle-end/53623
23057         * ree.c (combine_set_extension): Handle case where source
23058         and destination registers in an extension insn are different.
23059         (combine_reaching_defs): Allow source and destination registers
23060         in extension to be different under limited circumstances.
23061         (add_removable_extension): Remove restriction that the
23062         source and destination registers in the extension are the same.
23063         (find_and_remove_re): Emit a copy from the extension's
23064         destination to its source after the defining insn if
23065         the source and destination registers are different.
23067         PR middle-end/59285
23068         * ifcvt.c (merge_if_block): If we are merging a block with more than
23069         one successor with a block with no successors, remove any BARRIER
23070         after the second block.
23072 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
23074         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
23076 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
23078         PR target/59652
23079         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
23080         for 14-bit register offsets when INT14_OK_STRICT is false.
23082 2014-01-07  Roland Stigge  <stigge@antcom.de>
23083             Michael Meissner  <meissner@linux.vnet.ibm.com>
23085         PR 57386/target
23086         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
23087         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
23089 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
23091         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
23092         -mcpu.
23094 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
23096         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
23097         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
23098         rtx is const0_rtx or not.
23100 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
23102         PR target/58115
23103         * target-globals.c (save_target_globals): Remove this_fn_optab
23104         handling.
23105         * toplev.c: Include optabs.h.
23106         (target_reinit): Temporarily restore the global options if another
23107         set of options are in force.
23109 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
23111         PR rtl-optimization/58668
23112         * cfgcleanup.c (flow_find_cross_jump): Don't count
23113         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
23114         to determine what is counted.
23115         (flow_find_head_matching_sequence): Use active_insn_p to determine
23116         what is counted.
23117         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
23118         counting change.
23119         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
23120         determine what is counted.
23122         PR tree-optimization/59643
23123         * tree-predcom.c (split_data_refs_to_components): If one dr is
23124         read and one write, determine_offset fails and the write isn't
23125         in the bad component, just put the read into the bad component.
23127 2014-01-07  Mike Stump  <mikestump@comcast.net>
23128             Jakub Jelinek  <jakub@redhat.com>
23130         PR pch/59436
23131         * tree-core.h (struct tree_optimization_option): Change optabs
23132         type from unsigned char * to void *.
23133         * optabs.c (init_tree_optimization_optabs): Adjust
23134         TREE_OPTIMIZATION_OPTABS initialization.
23136 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
23138         PR target/59644
23139         * config/i386/i386.h (struct machine_function): Add
23140         no_drap_save_restore field.
23141         * config/i386/i386.c (ix86_save_reg): Use
23142         !cfun->machine->no_drap_save_restore instead of
23143         crtl->stack_realign_needed.
23144         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
23145         this function clears frame_pointer_needed.  Set
23146         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
23147         and DRAP reg is needed.
23149 2014-01-06  Marek Polacek  <polacek@redhat.com>
23151         PR c/57773
23152         * doc/implement-c.texi: Mention that other integer types are
23153         permitted as bit-field types in strictly conforming mode.
23155 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
23157         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
23158         is newly allocated.
23160 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
23162         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
23164 2014-01-06  Martin Jambor  <mjambor@suse.cz>
23166         PR ipa/59008
23167         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
23168         to int.
23169         * ipa-prop.c (ipa_print_node_params): Fix indentation.
23171 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
23173         PR debug/59350
23174         PR debug/59510
23175         * var-tracking.c (add_stores): Preserve the value of the source even if
23176         we don't record the store.
23178 2014-01-06  Terry Guo  <terry.guo@arm.com>
23180         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
23182 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
23184         PR bootstrap/59541
23185         * config/darwin.c (darwin_function_section): Adjust return values to
23186         correspond to optimisation changes made in r206070.
23188 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
23190         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
23191         from prefetch_block tune setting.
23192         (nocona_cost): Correct size of prefetch block to 64.
23194 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
23196         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
23197         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
23198         used to save the static chain register in the computation of the offset
23199         from which the FP registers need to be restored.
23201 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
23203         PR tree-optimization/59519
23204         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
23205         ICE if get_current_def (current_new_name) is already non-NULL, as long
23206         as it is a phi result of some other phi in *new_exit_bb that has
23207         the same argument.
23209         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
23210         or vmovdqu* for misaligned_operand.
23211         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
23212         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
23213         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
23214         aligned_mem for AVX512F masked aligned load and store builtins and for
23215         non-temporal moves.
23217 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
23219         PR tree-optimization/59651
23220         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
23221         Address range for negative step should be added by TYPE_SIZE_UNIT.
23223 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
23225         * config/m68k/m68k.c (handle_move_double): Handle pushes with
23226         overlapping registers also for registers other than the stack pointer.
23228 2014-01-03  Marek Polacek  <polacek@redhat.com>
23230         PR other/59661
23231         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
23232         __builtin_FILE.
23234 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
23236         PR target/59625
23237         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
23238         asm goto as jump.
23240         * config/i386/i386.md (MODE_SIZE): New mode attribute.
23241         (push splitter): Use <P:MODE_SIZE> instead of
23242         GET_MODE_SIZE (<P:MODE>mode).
23243         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
23244         (mov -1, reg peephole2): Likewise.
23245         * config/i386/sse.md (*mov<mode>_internal,
23246         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
23247         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
23248         *<code><mode>3, *andnot<mode>3<mask_name>,
23249         <mask_codefor><code><mode>3<mask_name>): Likewise.
23250         * config/i386/subst.md (mask_mode512bit_condition,
23251         sd_mask_mode512bit_condition): Likewise.
23253 2014-01-02  Xinliang David Li  <davidxl@google.com>
23255         PR tree-optimization/59303
23256         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
23257         (dump_predicates): Better output format.
23258         (pred_equal_p): New function.
23259         (is_neq_relop_p): Ditto.
23260         (is_neq_zero_form_p): Ditto.
23261         (pred_expr_equal_p): Ditto.
23262         (pred_neg_p): Ditto.
23263         (simplify_pred): Ditto.
23264         (simplify_preds_2): Ditto.
23265         (simplify_preds_3): Ditto.
23266         (simplify_preds_4): Ditto.
23267         (simplify_preds): Ditto.
23268         (push_pred): Ditto.
23269         (push_to_worklist): Ditto.
23270         (get_pred_info_from_cmp): Ditto.
23271         (is_degenerated_phi): Ditto.
23272         (normalize_one_pred_1): Ditto.
23273         (normalize_one_pred): Ditto.
23274         (normalize_one_pred_chain): Ditto.
23275         (normalize_preds): Ditto.
23276         (normalize_cond_1): Remove function.
23277         (normalize_cond): Ditto.
23278         (is_gcond_subset_of): Ditto.
23279         (is_subset_of_any): Ditto.
23280         (is_or_set_subset_of): Ditto.
23281         (is_and_set_subset_of): Ditto.
23282         (is_norm_cond_subset_of): Ditto.
23283         (pred_chain_length_cmp): Ditto.
23284         (convert_control_dep_chain_into_preds): Type change.
23285         (find_predicates): Ditto.
23286         (find_def_preds): Ditto.
23287         (destroy_predicates_vecs): Ditto.
23288         (find_matching_predicates_in_rest_chains): Ditto.
23289         (use_pred_not_overlap_with_undef_path_pred): Ditto.
23290         (is_pred_expr_subset): Ditto.
23291         (is_pred_chain_subset_of): Ditto.
23292         (is_included_in): Ditto.
23293         (is_superset_of): Ditto.
23295 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
23297         Update copyright years.
23299 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
23301         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
23302         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
23303         config/arc/arc.md, config/arc/arc.opt,
23304         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
23305         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
23306         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
23307         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
23308         config/linux-protos.h, config/linux.c, config/winnt-c.c,
23309         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
23310         vtable-verify.c, vtable-verify.h: Use the standard form for the
23311         copyright notice.
23313 2014-01-02  Tobias Burnus  <burnus@net-b.de>
23315         * gcc.c (process_command): Update copyright notice dates.
23316         * gcov-dump.c: Ditto.
23317         * gcov.c: Ditto.
23318         * doc/cpp.texi: Bump @copying's copyright year.
23319         * doc/cppinternals.texi: Ditto.
23320         * doc/gcc.texi: Ditto.
23321         * doc/gccint.texi: Ditto.
23322         * doc/gcov.texi: Ditto.
23323         * doc/install.texi: Ditto.
23324         * doc/invoke.texi: Ditto.
23326 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
23328         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
23330 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
23332         * config/i386/sse.md (*mov<mode>_internal): Guard
23333         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
23335         PR rtl-optimization/59647
23336         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
23337         new_rtx into UNSIGNED_FLOAT rtxes.
23339 Copyright (C) 2014 Free Software Foundation, Inc.
23341 Copying and distribution of this file, with or without modification,
23342 are permitted in any medium without royalty provided the copyright
23343 notice and this notice are preserved.