1 2014-08-26 David Malcolm <dmalcolm@redhat.com>
3 * df.h (df_dump_insn_problem_function): Strengthen first param of
4 this callback from const_rtx to const rtx_insn *.
5 (struct df_insn_info): Strengthen field "insn" from rtx to
7 (DF_REF_INSN): Eliminate this function, reinstating the older
9 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
10 (df_reg_defined): Likewise.
11 (df_find_use): Likewise.
12 (df_reg_used): Likewise.
13 (df_dump_insn_top): Strengthen param 1 from const_rtx to
15 (df_dump_insn_bottom): Likewise.
16 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
17 (df_insn_debug_regno): Likewise.
18 (debug_df_insn): Likewise.
19 (df_rd_simulate_one_insn): Likewise for param 2.
20 (df_word_lr_simulate_defs): Likewise for param 1.
21 (df_word_lr_simulate_uses): Likewise.
22 (df_md_simulate_one_insn): Likewise for param 2.
23 (df_simulate_find_noclobber_defs): Likewise for param 1.
24 (df_simulate_find_defs): Likewise.
25 (df_simulate_defs): Likewise.
26 (df_simulate_uses): Likewise.
27 (df_simulate_one_insn_backwards): Likewise for param 2.
28 (df_simulate_one_insn_forwards): Likewise.
29 (df_uses_create): Likewise for param 2.
30 (df_insn_create_insn_record): Likewise for param 1.
31 (df_insn_delete): Likewise.
32 (df_insn_rescan): Likewise.
33 (df_insn_rescan_debug_internal): Likewise.
34 (df_insn_change_bb): Likewise.
35 (df_notes_rescan): Likewise.
36 * rtl.h (remove_death): Likewise for param 2.
37 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
39 * sched-int.h (reemit_notes): Strengthen param from rtx to
41 * valtrack.h (propagate_for_debug): Likewise for param 1.
43 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
44 local "tmp_rtx" from const_rtx to const rtx_insn *.
45 * combine.c (remove_death): Strengthen param "insn" from rtx to
47 (move_deaths): Likewise for local "where_dead".
48 * cse.c (delete_trivially_dead_insns): Introduce local
49 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
50 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
52 (df_reg_defined): Likewise.
53 (df_find_use): Likewise.
54 (df_reg_used): Likewise.
55 (df_dump_insn_problem_data): Strengthen param "insn" from
56 const_rtx to const rtx_insn *.
57 (df_dump_insn_top): Likewise.
58 (df_dump_insn_bottom): Likewise.
59 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
60 (df_insn_debug_regno): Likewise.
61 (debug_df_insn): Likewise.
62 (DF_REF_INSN): Delete.
63 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
64 from rtx to rtx_insn *.
65 (df_chain_insn_top_dump): Strengthen param "insn" from
66 const_rtx to const rtx_insn *.
67 (df_chain_insn_bottom_dump): Likewise.
68 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
70 (df_word_lr_simulate_uses): Likewise.
71 (df_print_note): Likewise.
72 (df_remove_dead_and_unused_notes): Likewise.
73 (df_set_unused_notes_for_mw): Likewise.
74 (df_set_dead_notes_for_mw): Likewise.
75 (df_create_unused_note): Likewise.
76 (df_simulate_find_defs): Likewise.
77 (df_simulate_find_uses): Likewise.
78 (df_simulate_find_noclobber_defs): Likewise.
79 (df_simulate_defs): Likewise.
80 (df_simulate_uses): Likewise.
81 (df_simulate_one_insn_backwards): Likewise.
82 (df_simulate_one_insn_forwards): Likewise.
83 (df_md_simulate_one_insn): Likewise.
84 * df-scan.c (df_uses_create): Likewise.
85 (df_insn_create_insn_record): Likewise.
86 (df_insn_delete): Likewise.
87 (df_insn_rescan): Likewise.
88 (df_insn_rescan_debug_internal): Likewise.
89 (df_insn_change_bb): Likewise.
90 (df_notes_rescan): Likewise.
91 (df_refs_add_to_chains): Likewise.
92 (df_insn_refs_verify): Likewise.
93 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
94 when invoking df_insn_delete.
95 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
96 (set_unique_reg_note): Add checked cast.
97 * final.c (cleanup_subreg_operands): Likewise.
98 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
99 "insn" from rtx to rtx_insn *.
100 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
101 "last" from rtx to rtx_insn *.
102 * ira-emit.c (change_regs_in_insn): New function.
103 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
104 Invoke change_regs_in_insn rather than change_regs.
105 * ira.c (update_equiv_regs): Strengthen locals "insn",
106 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
107 for_each_rtx_in_insn rather than for_each_rtx.
108 * recog.c (confirm_change_group): Add checked casts.
109 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
111 (peep2_fill_buffer): Add checked cast.
112 * rtlanal.c (remove_note): Likewise.
113 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
114 locals "next" "end" from rtx to rtx_insn *.
116 2014-08-26 David Malcolm <dmalcolm@redhat.com>
118 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
120 (struct reg_use_data): Likewise for field "insn".
121 (insn_cost): Likewise for param.
122 (real_insn_for_shadow): Likewise for return type and param.
123 (increase_insn_priority): Likewise for param 1.
124 (debug_dependencies): Likewise for both params.
126 * haifa-sched.c (insn_delay): Likewise for param "insn".
127 (real_insn_for_shadow): Likewise for return type and param "insn".
128 (update_insn_after_change): Likewise for param "insn".
129 (recompute_todo_spec): Likewise for param "next" and locals "pro",
131 (insn_cost): Likewise for param "insn".
132 (increase_insn_priority): Likewise.
133 (calculate_reg_deaths): Likewise.
134 (setup_insn_reg_pressure_info): Likewise.
135 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
136 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
137 (model_recompute): Likewise.
138 (must_restore_pattern_p): Likewise for param "next".
139 (model_excess_cost): Likewise for param "insn".
140 (queue_remove): Likewise.
141 (adjust_priority): Likewise for param "prev".
142 (update_register_pressure): Likewise for param "insn".
143 (setup_insn_max_reg_pressure): Likewise for local "insn".
144 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
145 (model_add_to_schedule): Likewise.
146 (model_reset_queue_indices): Likewise for local "insn".
147 (unschedule_insns_until): Strengthen local "recompute_vec" from
148 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
149 "con" from rtx to rtx_insn *.
150 (restore_last_backtrack_point): Likewise for both locals "x". Add
152 (estimate_insn_tick): Likewise for param "insn".
153 (commit_schedule): Likewise for params "prev_head", "tail" and
155 (verify_shadows): Likewise for locals "i1", "i2".
156 (dump_insn_stream): Likewise for params "head", "tail" and locals
158 (schedule_block): Likewise for locals "insn", "x". Add a checked
160 (fix_inter_tick): Likewise for params "head", "tail".
161 (create_check_block_twin): Likewise for local "jump".
162 (haifa_change_pattern): Likewise for param "insn".
163 (haifa_speculate_insn): Likewise.
164 (dump_new_block_header): Likewise for params "head", "tail".
165 (fix_jump_move): Likewise for param "jump".
166 (move_block_after_check): Likewise.
167 (sched_init_insn_luid): Likewise for param "insn".
168 (sched_init_luids): Likewise for local "insn".
169 (insn_luid): Likewise for param "insn".
170 (init_h_i_d): Likewise.
171 (haifa_init_h_i_d): Likewise for local "insn".
172 (haifa_init_insn): Likewise for param "insn".
173 * sched-deps.c (add_dependence): Likewise for local "real_pro",
175 (create_insn_reg_use): Likewise for param "insn".
176 (setup_insn_reg_uses): Likewise. Add a checked cast.
177 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
178 "tail" from rtx to rtx_insn *.
179 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
182 2014-08-26 David Malcolm <dmalcolm@redhat.com>
184 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
185 from rtx to rtx_insn *.
186 (model_add_to_schedule): Likewise for locals "start", "end",
189 2014-08-26 David Malcolm <dmalcolm@redhat.com>
191 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
193 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
194 "to" and locals "insn", "next", "copy". Remove now-redundant
197 2014-08-26 David Malcolm <dmalcolm@redhat.com>
199 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
200 rtx_insn * and param 4 from rtx * to rtx_insn **.
201 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
202 param 2 from rtx * to rtx_insn **.
204 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
205 rtx_insn * and final param from rtx * to rtx_insn **.
207 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
208 from rtx to rtx_insn *.
209 (try_head_merge_bb): Likewise for both locals named "move_upto".
210 * df-problems.c (can_move_insns_across): Likewise for params
211 "from", "to", "across_from", "across_to" and locals "insn",
212 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
214 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
215 from rtx to rtx_insn *.
216 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
217 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
218 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
220 (noce_try_abs): Likewise.
221 (noce_get_condition): Likewise for param "jump". Strengthen param
222 "earliest" from rtx * to rtx_insn **.
223 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
225 (find_cond_trap): Likewise.
226 (dead_or_predicable): Likewise for local "earliest".
227 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
229 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
230 and local "prev". Strengthen param "earliest" from rtx * to
232 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
233 Strengthen param "earliest" from rtx * to rtx_insn **.
235 2014-08-26 David Malcolm <dmalcolm@redhat.com>
237 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
238 "to" and local "insn" from rtx to rtx_insn *.
240 2014-08-26 David Malcolm <dmalcolm@redhat.com>
242 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
243 from rtx to rtx_insn *.
244 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
245 (code_motion_path_driver): Likewise for local "last_insn".
246 (simplify_changed_insns): Likewise for local "insn".
248 2014-08-26 David Malcolm <dmalcolm@redhat.com>
250 * rtl.h (push_to_sequence): Strengthen param from rtx to
252 (push_to_sequence2): Likewise for both params.
253 (delete_insns_since): Likewise for param.
254 (reorder_insns_nobb): Likewise for all three params.
255 (set_new_first_and_last_insn): Likewise for both params.
257 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
258 rtx_insn *. Remove now-redundant cast.
259 (set_last_insn): Likewise.
261 * builtins.c (expand_builtin_return): Strengthen local
262 "call_fusage" from rtx to rtx_insn *.
263 * cfgrtl.c (create_basic_block_structure): Likewise for local
265 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
266 "first", "last" and local "insn".
267 (delete_insns_since): Likewise for param "from".
268 (reorder_insns_nobb): Likewise for params "from", "to", "after"
270 (push_to_sequence): Likewise for param "first" and local "last".
271 (push_to_sequence2): Likewise for params "first" and "last".
272 * lra.c (emit_add3_insn): Likewise for local "last".
273 (lra_emit_add): Likewise.
274 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
276 (process_address_1): Likewise for locals "insn", last".
277 * modulo-sched.c (ps_first_note): Likewise for return type.
278 * optabs.c (expand_binop_directly): Likewise for param "last".
280 2014-08-26 David Malcolm <dmalcolm@redhat.com>
282 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
284 * emit-rtl.c (get_last_insn_anywhere): Likewise.
286 2014-08-26 David Malcolm <dmalcolm@redhat.com>
288 * function.h (struct sequence_stack): Strengthen fields "first"
289 and "last" from rtx to rtx_insn *.
290 (struct emit_status): Likewise for fields "x_first_insn" and
293 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
294 (set_first_insn): Add checked cast.
295 (get_last_insn): Remove now-redundant checked cast.
296 (set_last_insn): Add checked cast.
298 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
299 "saved_first" and "saved_last" from rtx to rtx_insn *.
301 2014-08-26 David Malcolm <dmalcolm@redhat.com>
303 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
304 (unlink_insn_chain): Strengthen both params from rtx to
307 * cfgrtl.c (cfg_layout_function_header): Likewise for this
309 (unlink_insn_chain): Likewise for params "first" and "last".
310 Remove now-redundant checked cast.
311 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
312 (fixup_reorder_chain): Strengthen local "insn" from rtx to
314 * emit-rtl.c (link_insn_into_chain): Likewise for all three
316 (add_insn): Likewise for param "insn" and local "prev".
317 (add_insn_after_nobb): Likewise for both params and local "next".
318 (add_insn_before_nobb): Likewise for both params and local "prev".
319 (add_insn_after): Rename param "after" to "uncast_after",
320 introducing local "after" with another checked cast.
321 (add_insn_before): Rename params "insn" and "before", giving them
322 "uncast_" prefixes, adding the old names back using checked casts.
323 (emit_note_after): Likewise for param "after".
324 (emit_note_before): Likewise for param "before".
325 (emit_label): Add a checked cast.
327 2014-08-26 David Malcolm <dmalcolm@redhat.com>
329 * cselib.h (cselib_record_sets_hook): Strengthen initial param
330 "insn" from rtx to rtx_insn *.
332 * cselib.c (cselib_record_sets_hook): Likewise.
334 * var-tracking.c (add_with_sets): Likewise, renaming back from
335 "uncast_insn" to "insn" and eliminating the checked cast from rtx
338 2014-08-26 David Malcolm <dmalcolm@redhat.com>
340 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
341 and "header_" from rtx to rtx_insn *.
342 (struct basic_block_d): Likewise for field "head_" within "x"
343 field of union basic_block_il_dependent.
344 (BB_HEAD): Drop function...
345 (SET_BB_HEAD): ...and this function in favor of...
346 (BB_HEAD): ...reinstate macro.
347 (BB_END): Drop function...
348 (SET_BB_END): ...and this function in favor of...
349 (BB_END): ...reinstate macro.
350 (BB_HEADER): Drop function...
351 (SET_BB_HEADER): ...and this function in favor of...
352 (BB_HEADER): ...reinstate macro.
354 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
355 (fix_crossing_unconditional_branches): Likewise.
356 * caller-save.c (save_call_clobbered_regs): Likewise.
357 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
358 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
359 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
360 (merge_blocks_move_successor_nojumps): Likewise.
361 (outgoing_edges_match): Update use of for_each_rtx to
362 for_each_rtx_in_insn.
363 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
364 (expand_gimple_cond): Likewise.
365 (expand_gimple_tailcall): Likewise.
366 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
368 (construct_exit_block): Drop use of SET_BB_END.
369 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
371 (delete_insn): Rename param "insn" to "uncast_insn", introducing
372 a new local "insn" with a checked cast to rtx_insn *. Drop use of
373 SET_BB_HEAD and SET_BB_END.
374 (create_basic_block_structure): Drop use of SET_BB_HEAD and
376 (rtl_delete_block): Drop use of SET_BB_HEAD.
377 (rtl_split_block): Drop use of SET_BB_END.
378 (emit_nop_for_unique_locus_between): Likewise.
379 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
380 (block_label): Drop use of SET_BB_HEAD.
381 (fixup_abnormal_edges): Drop use of SET_BB_END.
382 (record_effective_endpoints): Drop use of SET_BB_HEADER.
383 (relink_block_chain): Likewise.
384 (fixup_reorder_chain): Drop use of SET_BB_END.
385 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
386 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
387 rtx_insn **. Drop use of SET_BB_HEADER.
388 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
390 (BB_HEAD): Delete this function.
391 (SET_BB_HEAD): Likewise.
393 (SET_BB_END): Likewise.
394 (BB_HEADER): Likewise.
395 (SET_BB_HEADER): Likewise.
396 * emit-rtl.c (add_insn_after): Rename param "insn" to
397 "uncast_insn", adding a new local "insn" and a checked cast to
398 rtx_insn *. Drop use of SET_BB_END.
399 (remove_insn): Strengthen locals "next" and "prev" from rtx to
400 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
401 (reorder_insns): Drop use of SET_BB_END.
402 (emit_insn_after_1): Strengthen param "first" and locals "last",
403 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
404 (emit_pattern_after_noloc): Add checked cast.
405 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
406 (restore_other_notes): Likewise.
407 (move_insn): Likewise.
408 (sched_extend_bb): Likewise.
409 (fix_jump_move): Likewise.
410 * ifcvt.c (noce_process_if_block): Likewise.
411 (dead_or_predicable): Likewise.
412 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
413 * reg-stack.c (change_stack): Drop use of SET_BB_END.
414 * sel-sched-ir.c (sel_move_insn): Likewise.
415 * sel-sched.c (move_nop_to_previous_block): Likewise.
417 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
419 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
421 2014-08-26 David Malcolm <dmalcolm@redhat.com>
423 * basic-block.h (create_basic_block_structure): Strengthen params
424 1 "head" and 2 "end" from rtx to rtx_insn *.
425 * cfgrtl.c (create_basic_block_structure): Likewise.
426 (rtl_create_basic_block): Update casts from void * to rtx to
427 rtx_insn *, so that we can pass them as rtx_insn * to
428 create_basic_block_structure.
429 * sel-sched-ir.c (sel_create_basic_block): Likewise.
431 2014-08-26 David Malcolm <dmalcolm@redhat.com>
433 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
435 (check_for_inc_dec): Strengthen param "insn" from rtx to
438 * cselib.h (cselib_process_insn): Likewise.
440 * cselib.c (cselib_record_sets): Likewise.
441 (cselib_process_insn): Likewise.
443 * dse.c (struct insn_info): Likewise for field "insn".
444 (check_for_inc_dec_1): Likewise for local "insn".
445 (check_for_inc_dec): Likewise for param "insn".
446 (scan_insn): Likewise.
447 (dse_step1): Likewise for local "insn".
449 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
450 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
452 2014-08-26 David Malcolm <dmalcolm@redhat.com>
454 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
455 from rtx to rtx_insn *.
456 (DEP_PRO): Delete this function and...
457 (SET_DEP_PRO): ...this function in favor of...
458 (DEP_PRO): ...reinstate this macro.
459 (DEP_CON): Delete this function and...
460 (SET_DEP_CON): ...this function in favor of...
461 (DEP_CON): ...reinstate this old macro.
462 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
463 (init_dep): Likewise.
464 (set_priorities): Likewise for both params.
465 (sd_copy_back_deps): Likewise for params 1 and 2.
467 * haifa-sched.c (priority): Likewise for param "insn" and local
469 (set_priorities): Likewise for params "head" and "tail" and local
471 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
473 (add_to_speculative_block): Add a checked cast.
474 (create_check_block_twin): Drop use of SET_DEP_CON.
475 (add_jump_dependencies): Strengthen params "insn" and "jump" from
478 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
479 Drop use of SET_DEP_PRO
480 (init_dep): Strengthen params "pro" and "con" from rtx to
482 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
486 (SET_DEP_PRO): Delete.
487 (SET_DEP_CON): Delete.
489 2014-08-26 David Malcolm <dmalcolm@redhat.com>
491 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
492 from rtx to rtx_insn *.
493 (VINSN_INSN_RTX): Eliminate rvalue function and...
494 (SET_VINSN_INSN): ...lvalue function in favor of...
495 (VINSN_INSN_RTX): reinstate this old macro.
497 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
498 in favor of VINSN_INSN_RTX.
499 (VINSN_INSN_RTX): Delete this function.
500 (SET_VINSN_INSN_RTX): Likewise.
502 2014-08-26 David Malcolm <dmalcolm@redhat.com>
504 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
505 (BND_TO): Delete this function and...
506 (SET_BND_TO): ...this functions in favor of...
507 (BND_TO): ...reinstating this macro.
508 (struct _fence): Strengthen field "executing_insns" from
509 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
510 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
511 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
512 and param "insn" from rtx to insn_t.
513 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
516 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
518 (rtx_vec_t): Likewise.
519 (struct sched_deps_info_def): Strengthen param of "start_insn"
520 callback from rtx to rtx_insn *. Likewise for param "insn2" of
521 "note_mem_dep" callback and first param of "note_dep" callback.
523 * haifa-sched.c (add_to_speculative_block): Strengthen param
524 "insn" from rtx to rtx_insn *.
525 (clear_priorities): Likewise.
526 (calc_priorities): Likewise for local "insn".
528 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
529 Remove redundant checked cast.
530 (haifa_note_mem_dep): Likewise for param "pending_insn".
531 (haifa_note_dep): Likewise for param "elem".
532 (note_mem_dep): Likewise for param "e".
533 (sched_analyze_1): Add checked casts.
534 (sched_analyze_2): Likewise.
536 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
537 from rtx to rtx_insn *.
538 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
539 from vec<rtx> * to vec<rtx_insn *> *.
541 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
543 (flist_add): Strengthen param "executing_insns" from
544 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
545 (advance_deps_context): Remove now-redundant checked cast.
546 (init_fences): Replace uses of NULL_RTX with NULL.
547 (merge_fences): Strengthen params "last_scheduled_insn" and
548 "sched_next" from rtx to rtx_insn * and "executing_insns" from
549 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
550 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
551 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
552 an instruction, rather than doing double-duty as a pattern.
553 (return_nop_to_pool): Update for change of insn_t.
554 (deps_init_id): Remove now-redundant checked cast.
555 (struct sched_scan_info_def): Strengthen param of "init_insn"
556 callback from rtx to insn_t.
557 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
558 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
560 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
561 "end" from rtx to rtx_insn *.
562 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
563 (rtx insn_rtx, bool force_unique_p)
564 (BND_TO): Delete function.
565 (SET_BND_TO): Delete function.
567 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
569 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
570 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
572 (undo_transformations): Likewise for param "insn".
573 (update_liveness_on_insn): Likewise.
574 (compute_live_below_insn): Likewise for param "insn" and local
576 (update_data_sets): Likewise for param "insn".
577 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
578 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
579 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
581 (move_cond_jump): Likewise for param "insn".
582 (move_cond_jump): Drop use of SET_BND_TO.
583 (compute_av_set_on_boundaries): Likewise.
584 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
585 (update_and_record_unavailable_insns): Strengthen local "bb_end"
586 from rtx to rtx_insn *.
587 (maybe_emit_renaming_copy): Likewise for param "insn".
588 (maybe_emit_speculative_check): Likewise.
589 (handle_emitting_transformations): Likewise.
590 (remove_insn_from_stream): Likewise.
591 (code_motion_process_successors): Strengthen local "succ" from rtx
594 2014-08-26 David Malcolm <dmalcolm@redhat.com>
596 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
597 ilist_t, not _xlist_t;
598 (ILIST_INSN): Define in terms of new union field "insn".
599 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
601 (struct _list_node): Add new field "insn" to the union, of type
603 (ilist_add): Replace macro with an inline function, requiring an
605 (ilist_remove): Define this macro directly in terms of
606 _list_remove, rather than indirectly via _xlist_remove.
607 (ilist_clear): Likewise, in terms of _list_clear rather than
609 (ilist_is_in_p): Replace macro with an inline function, requiring
611 (_list_iter_cond_insn): New function.
612 (ilist_iter_remove): Define this macro directly in terms of
613 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
614 (ilist_iterator): Define directly in terms of _list_iterator
615 rather than indirectly through _xlist_iterator.
616 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
617 than in terms of _FOR_EACH_X.
618 (FOR_EACH_INSN_1): Likewise.
620 2014-08-26 Joseph Myers <joseph@codesourcery.com>
624 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
625 DECL_HARD_REGISTER and return for invalid register specifications.
626 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
627 DECL_HARD_REGISTER, call expand_one_error_var.
628 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
629 CC_REGNUM with non-MODE_CC modes.
630 (arm_regno_class): Return NO_REGS for PC_REGNUM.
632 2014-08-26 Marek Polacek <polacek@redhat.com>
635 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
637 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
639 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
640 qi cost; add di cost.
641 (cortexa57_addrcost_table): Likewise.
643 2014-08-26 Marek Polacek <polacek@redhat.com>
646 * expr.c (is_aligning_offset): Remove logical not.
648 2014-08-26 Marek Polacek <polacek@redhat.com>
651 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
652 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
654 2014-08-26 Richard Biener <rguenther@suse.de>
656 PR tree-optimization/62175
657 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
658 expand possibly trapping operations.
660 2014-08-26 David Malcolm <dmalcolm@redhat.com>
662 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
663 "insn" from rtx to rtx_insn *.
664 (permute_load): Likewise for param "insn".
665 (permute_store): Likewise.
666 (handle_special_swappables): Likewise for local "insn".
667 (replace_swap_with_copy): Likewise for locals "insn" and
669 (rs6000_analyze_swaps): Likewise for local "insn".
671 2014-08-25 David Malcolm <dmalcolm@redhat.com>
673 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
676 2014-08-25 David Malcolm <dmalcolm@redhat.com>
678 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
679 "note_list" from rtx to rtx_insn *.
680 (BB_NOTE_LIST): Replace this function and...
681 (SET_BB_NOTE_LIST): ...this function with...
682 (BB_NOTE_LIST): ...the former macro implementation.
684 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
685 local "from_start" from rtx to rtx_insn *. Strengthen param
686 "to_endp" from rtx * to rtx_insn **.
688 * haifa-sched.c (concat_note_lists): Likewise.
689 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
691 (sel_restore_notes): Likewise.
692 (move_bb_info): Likewise.
693 (BB_NOTE_LIST): Delete this function.
694 (SET_BB_NOTE_LIST): Delete this function.
695 * sel-sched.c (create_block_for_bookkeeping): Eliminate
696 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
698 2014-08-25 David Malcolm <dmalcolm@redhat.com>
700 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
701 from rtx * to rtx_insn **.
702 (reorder2): Likewise.
703 (dependencies_evaluation_hook): Strengthen params "head", "tail"
704 from rtx to rtx_insn *.
706 * doc/tm.texi: Update mechanically for above change to target.def.
708 * sched-int.h (note_list): Strengthen this variable from rtx to
710 (remove_notes): Likewise for both params.
711 (restore_other_notes): Likewise for return type and first param.
712 (struct ready_list): Strengthen field "vec" from rtx * to
714 (struct dep_replacement): Strenghten field "insn" from rtx to
716 (struct deps_desc): Likewise for fields "last_debug_insn",
718 (struct haifa_sched_info): Likewise for callback field
719 "can_schedule_ready_p"'s param, for first param of "new_ready"
720 callback field, for both params of "rank" callback field, for
721 first field of "print_insn" callback field (with a const), for
722 both params of "contributes_to_priority" callback, for param
723 of "insn_finishes_block_p" callback, for fields "prev_head",
724 "next_tail", "head", "tail", for first param of "add_remove_insn"
725 callback, for first param of "begin_schedule_ready" callback, for
726 both params of "begin_move_insn" callback, and for second param
727 of "advance_target_bb" callback.
728 (add_dependence): Likewise for params 1 and 2.
729 (sched_analyze): Likewise for params 2 and 3.
730 (deps_analyze_insn): Likewise for param 2.
731 (ready_element): Likewise for return type.
732 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
733 (try_ready): Strenghten param from rtx to rtx_insn *.
734 (sched_emit_insn): Likewise for return type.
735 (record_delay_slot_pair): Likewise for params 1 and 2.
736 (add_delay_dependencies): Likewise for param.
737 (contributes_to_priority): Likewise for both params.
738 (find_modifiable_mems): Likewise.
740 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
741 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
742 "first_older_only_insn" from rtx to rtx_insn *.
743 (arm_sched_reorder): Strengthen param "ready" from rtx * to
746 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
747 "last_scheduled_iter0" from rtx to rtx_insn *.
748 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
749 (c6x_sched_reorder_1): Strengthen param "ready" and locals
750 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
751 "insn" from rtx to rtx_insn *.
752 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
754 (c6x_sched_reorder2): Strengthen param "ready" and locals
755 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
756 "insn" from rtx to rtx_insn *.
757 (c6x_variable_issue): Add a checked cast when assigning from insn
758 to ss.last_scheduled_iter0.
759 (split_delayed_branch): Strengthen param "insn" and local "i1"
760 from rtx to rtx_insn *.
761 (split_delayed_nonbranch): Likewise.
762 (undo_split_delayed_nonbranch): Likewise for local "insn".
763 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
764 "entry_after", "end_packet", "head_insn", "tail_insn",
765 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
766 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
767 to rtx_insn **. Remove now-redundant checked cast on last_insn,
768 but add a checked cast on loop->start_label. Consolidate calls to
769 avoid assigning result of gen_spkernel to "insn", now an
772 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
773 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
775 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
776 rtx_insn **. Strengthen locals "top", "next" from rtx to
778 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
779 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
780 (add_parameter_dependencies): Strengthen params "call", "head" and
781 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
782 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
783 (add_dependee_for_func_arg): Likewise for param "arg" and local
785 (ix86_dependencies_evaluation_hook): Likewise for params "head",
786 "tail" and locals "insn", "first_arg".
788 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
789 for params "head", "tail" and locals "insn", "next", "next_tail".
790 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
791 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
792 "insn", "lowest", "highest" from rtx to rtx_insn *.
793 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
795 (ia64_sched_reorder2): Likewise.
797 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
798 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
799 from rtx * to rtx_insn **.
800 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
802 (mep_print_sched_insn): Strengthen param "insn" from rtx to
804 (mep_sched_reorder): Strengthen param "ready" from rtx * to
805 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
808 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
809 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
811 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
812 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
813 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
815 (vr4130_reorder): Likewise.
816 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
818 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
820 (mips_sched_reorder): Likewise.
821 (mips_sched_reorder2): Likewise.
823 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
825 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
826 Strengthen local "tmp" from rtx to rtx_insn *.
827 (rs6000_sched_reorder2): Likewise.
829 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
830 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
831 (s390_sched_reorder): Strengthen param "ready" from rtx * to
832 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
834 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
835 "tmp2" from rtx to rtx_insn *.
836 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
837 Strengthen local "insn" from rtx to rtx_insn *.
838 (ready_reorder): Strengthen param "ready" from rtx * to
839 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
840 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
841 (sh_reorder2): Likewise.
843 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
844 local "insn" from rtx to rtx_insn *.
846 * haifa-sched.c (note_list): Strengthen this variable from rtx to
848 (scheduled_insns): Strengthen this variable from vec<rtx> to
850 (set_modulo_params): Likewise for locals "i1", "i2".
851 (record_delay_slot_pair): Likewise for params "i1", "i2".
852 (add_delay_dependencies): Likewise for param "insn".
853 (cond_clobbered_p): Likewise.
854 (recompute_todo_spec): Likewise for local "prev".
855 (last_scheduled_insn): Likewise for this variable.
856 (nonscheduled_insns_begin): Likewise.
857 (model_set_excess_costs): Strengthen param "insns" from rtx * to
859 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
861 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
862 Strengthen local "insn" from rtx to rtx_insn *.
863 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
864 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
865 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
866 (ready_remove_first): Likewise for return type and local "t".
867 (ready_element): Likewise for return type.
868 (ready_remove): Likewise for return type and local "t".
869 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
870 (check_clobbered_conditions): Strengthen local "x" from rtx to
871 rtx_insn *, adding a checked cast.
872 (schedule_insn): Likewise for param "insn".
873 (remove_notes): Likewise for params "head", "tail" and locals
874 "next_tail", "insn", "next".
875 (struct haifa_saved_data): Likewise for fields
876 "last_scheduled_insn", "nonscheduled_insns_begin".
877 (save_backtrack_point): Update for change to field "vec" of
879 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
881 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
882 from rtx to rtx_insn *
883 (resolve_dependencies): Strengthen param "insn" from rtx to
885 (restore_other_notes): Likewise for return type, for param "head"
886 and local "note_head".
887 (undo_all_replacements): Likewise for local "insn".
888 (first_nonscheduled_insn): Likewise for return type and local "insn".
889 (queue_to_ready): Likewise for local "insn", adding checked casts.
890 (early_queue_to_ready): Likewise for local "insn".
891 (debug_ready_list_1): Strengthen local "p" from rtx * to
893 (move_insn): Strengthen param "insn" and local "note" from rtx to
895 (insn_finishes_cycle_p): Likewise for param "insn".
896 (max_issue): Likewise for local "insn".
897 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
899 (commit_schedule): Strengthen param "prev_head" and local "insn"
900 from rtx to rtx_insn *
901 (prune_ready_list): Likewise for local "insn".
902 (schedule_block): Likewise for locals "prev_head", "head", "tail",
903 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
904 (set_priorities): Likewise for local "prev_head".
905 (try_ready): Likewise for param "next".
906 (fix_tick_ready): Likewise.
907 (change_queue_index): Likewise.
908 (sched_extend_ready_list): Update for change to field "vec" of
910 (generate_recovery_code): Strengthen param "insn" from rtx to
912 (begin_speculative_block): Likewise.
913 (create_check_block_twin): Likewise for param "insn" and locals
914 "label", "check", "twin". Introduce local "check_pat" to avoid
915 "check" being used as a plain rtx before being used as an insn.
916 (fix_recovery_deps): Add a checked cast to rtx_insn * when
917 extracting elements from ready_list.
918 (sched_remove_insn): Strengthen param "insn" from rtx to
920 (sched_emit_insn): Likewise for return type.
921 (ready_remove_first_dispatch): Likewise for return type and local
924 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
926 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
929 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
930 from rtx to rtx_insn *.
931 (add_dependence_list): Likewise for param "insn". Add a checked
933 (add_dependence_list_and_free): Strengthen param "insn" from rtx
934 to rtx_insn *. Strengthen param "list_p" from rtx * to
936 (chain_to_prev_insn): Strengthen param "insn" and locals
937 "prec_nonnote", "i" from rtx to rtx_insn *.
938 (flush_pending_lists): Likewise for param "insn".
939 (cur_insn): Likewise for this variable.
940 (haifa_start_insn): Add a checked cast.
941 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
942 (sched_analyze_reg): Likewise for param "insn".
943 (sched_analyze_1): Likewise.
944 (sched_analyze_2): Likewise. Add checked casts.
945 (sched_analyze_insn): Likewise. Also for local "prev".
946 (deps_analyze_insn): Likewise for param "insn".
947 (sched_analyze): Likewise for params "head", "tail" and local "insn".
948 (add_dependence_1): Likewise for params "insn", "elem".
949 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
950 (parse_add_or_inc): Likewise for param "insn".
951 (find_inc): Likewise for local "inc_cand".
952 (find_modifiable_mems): Likewise for params "head", "tail" and
953 locals "insn", "next_tail".
955 * sched-ebb.c (init_ready_list): Likewise for local "insn".
956 (begin_schedule_ready): Likewise for param "insn".
957 (begin_move_insn): Likewise for params "insn" and "last".
958 (ebb_print_insn): Strengthen param "insn" from const_rtx to
960 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
961 (ebb_contributes_to_priority): Likewise for params "next", "insn".
962 (ebb_add_remove_insn): Likewise for param "insn".
963 (advance_target_bb): Likewise.
965 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
967 (check_live): Likewise for param "insn".
968 (init_ready_list): Likewise for local "insn".
969 (can_schedule_ready_p): Likewise for param "insn".
970 (begin_schedule_ready): Likewise.
971 (new_ready): Likewise for param "next".
972 (rgn_print_insn): Likewise for param "insn".
973 (rgn_rank): Likewise for params "insn1", "insn2".
974 (contributes_to_priority): Likewise for params "next", "insn".
975 (rgn_insn_finishes_block_p): Likewise for param "insn".
976 (add_branch_dependences): Likewise for params "head", "tail" and
977 locals "insn", "last".
978 (rgn_add_remove_insn): Likewise for param "insn".
979 (advance_target_bb): Likewise.
981 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
982 const_rtx to const rtx_insn *.
984 * sel-sched-dump.h (sel_print_insn): Likewise.
986 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
987 (deps_init_id): Likewise.
989 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
990 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
993 2014-08-25 David Malcolm <dmalcolm@redhat.com>
995 * output.h (final_start_function): Strengthen param 1 from rtx to
998 * final.c (final_start_function): Likewise, renaming back from
999 "uncast_first" to "first", and dropping the checked cast from rtx
1002 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1004 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1005 * final.c (final): Likewise. Rename param back from
1006 "uncast_first" to "first" and eliminate the checked cast from rtx
1009 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1011 * output.h (shorten_branches): Strengthen param from rtx to
1014 * final.c (shorten_branches): Likewise, renaming param back from
1015 "uncast_first" to "first", and dropping the checked cast from rtx
1018 * genattr.c (gen_attr): Likewise when writing out the prototype of
1021 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1023 * sched-int.h (struct haifa_sched_info): Strengthen fields
1024 "prev_head" and "next_tail" from rtx to rtx_insn *.
1026 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1028 * rtl.h (rtx_jump_table_data::get_labels): New method.
1029 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1030 with use of the new rtx_jump_table_data::get_labels method.
1031 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1032 to rtx_jump_table_data *. Simplify by using get_labels method.
1033 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1034 a dyn_cast, introducing local "table", using it to replace
1035 label-lookup logic with a get_labels method call.
1036 (patch_jump_insn): Simplify using get_labels method.
1037 * dwarf2cfi.c (create_trace_edges): Likewise.
1038 * rtlanal.c (label_is_jump_target_p): Likewise.
1040 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1042 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1045 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1046 (unshare_all_rtl_again): Likewise, also for local "p".
1048 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1050 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1052 * cfgrtl.c (delete_insn_and_edges): Likewise.
1054 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1056 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1057 from rtx to rtx_insn *.
1059 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1061 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1063 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1064 locals "returnjump", "epilogue_end", "insn", "next".
1066 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1067 "returnjump" from rtx * to rtx_insn **.
1068 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1070 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1072 * basic-block.h (struct edge_def). Strengthen "r" within
1073 union edge_def_insns from rtx to rtx_insn *.
1075 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1076 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1078 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1079 from rtx to rtx_insn *.
1080 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1082 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1083 (reg_used_on_edge): Likewise.
1084 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1085 (gt_pch_nx): New overload for rtx_insn *&.
1086 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1087 from rtx to rtx_insn *.
1089 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1091 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1092 from rtx to rtx_insn *.
1093 (BB_FOOTER): Replace function with access macro.
1094 (SET_BB_FOOTER): Delete.
1096 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1098 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1099 (emit_barrier_after_bb): Likewise.
1100 (record_effective_endpoints): Likewise.
1101 (relink_block_chain): Likewise.
1102 (fixup_fallthru_exit_predecessor): Likewise.
1103 (cfg_layout_duplicate_bb): Likewise.
1104 (cfg_layout_split_block): Likewise.
1105 (cfg_layout_delete_block): Likewise.
1106 (cfg_layout_merge_blocks): Likewise.
1107 (BB_FOOTER): Delete function.
1108 (SET_BB_FOOTER): Delete function.
1109 * combine.c (update_cfg_for_uncondjump): Replace uses of
1110 SET_BB_FOOTER with BB_FOOTER.
1112 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1114 * except.h (struct eh_landing_pad_d): Strengthen field
1115 "landing_pad" from rtx to rtx_code_label *.
1117 * except.c (sjlj_emit_dispatch_table): Likewise for param
1119 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1121 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1123 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1124 first param from rtx to rtx_insn *.
1125 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1126 field "set_frame_ptr_insn".
1127 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1128 "csend" from rtx to rtx_code_label *.
1129 (xtensa_expand_atomic): Likewise for local "csloop".
1130 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1132 (xtensa_call_tls_desc): Likewise for return type and locals
1133 "call_insn", "insns".
1134 (xtensa_legitimize_tls_address): Likewise for local "insns".
1135 (xtensa_expand_prologue): Likewise for locals "insn", "first".
1137 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1139 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1140 first param from rtx to rtx_insn *.
1141 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1144 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1146 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1147 Strengthen param 1 from rtx to rtx_insn *.
1148 (tilepro_output_cbranch): Likewise.
1149 (tilepro_adjust_insn_length): Likewise.
1150 (tilepro_final_prescan_insn): Likewise for sole param.
1152 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1153 Likewise for local "last".
1154 (cbranch_predicted_p): Likewise for param "insn".
1155 (tilepro_output_simple_cbranch_with_opcode): Likewise.
1156 (tilepro_output_cbranch_with_opcode): Likewise.
1157 (tilepro_output_cbranch): Likewise.
1158 (frame_emit_load): Likewise for return type and locals "seq",
1160 (emit_sp_adjust): Likewise for return type and local "insn".
1161 (tilepro_expand_epilogue): Likewise for locals "last_insn",
1163 (tilepro_adjust_insn_length): Likewise for param "insn".
1164 (next_insn_to_bundle): Likewise for return type and params
1166 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
1167 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
1169 (match_addli_pcrel): Likewise for param "insn".
1170 (replace_addli_pcrel): Likewise.
1171 (match_auli_pcrel): Likewise.
1172 (replace_auli_pcrel): Likewise.
1173 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
1175 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1176 "queue", "next_queue", "prev".
1177 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
1178 (tilepro_final_prescan_insn): Likewise for param "insn".
1180 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1182 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
1183 Strengthen param 1 from rtx to rtx_insn *.
1184 (tilegx_output_cbranch): Likewise.
1185 (tilegx_adjust_insn_length): Likewise.
1186 (tilegx_final_prescan_insn): Likewise for sole param.
1188 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
1190 (cbranch_predicted_p): Likewise for param "insn".
1191 (tilegx_output_simple_cbranch_with_opcode): Likewise.
1192 (tilegx_output_cbranch_with_opcode): Likewise.
1193 (tilegx_output_cbranch): Likewise.
1194 (frame_emit_load): Likewise for return type.
1195 (set_frame_related_p): Likewise for locals "seq", "insn".
1196 (emit_sp_adjust): Likewise for return type, and for local "insn".
1197 Introduce local "pat" for use in place of "insn" where the latter
1198 isn't an instruction.
1199 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
1200 from rtx to rtx_insn *.
1201 (tilegx_adjust_insn_length): Likewise for param "insn".
1202 (next_insn_to_bundle): Likewise for return type and params "r" and
1204 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
1206 (replace_insns): Likewise for params "old_insn", "new_insns".
1207 (replace_mov_pcrel_step1): Likewise for param "insn" and local
1209 (replace_mov_pcrel_step2): Likewise.
1210 (replace_mov_pcrel_step3): Likewise.
1211 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
1213 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1214 "queue", "next_queue", "prev".
1215 (tilegx_output_mi_thunk): Likewise for local "insn".
1216 (tilegx_final_prescan_insn): Likewise for param "insn".
1218 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1220 * config/spu/spu.c (frame_emit_store): Strengthen return type from
1222 (frame_emit_load): Likewise.
1223 (frame_emit_add_imm): Likewise, also for local "insn".
1224 (spu_expand_prologue): Likewise for local "insn".
1225 (struct spu_bb_info): Likewise for field "prop_jump".
1226 (emit_nop_for_insn): Likewise for param "insn" and local
1228 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
1230 (spu_emit_branch_hint): Likewise for params "before", "branch" and
1231 locals "hint", "insn".
1232 (get_branch_target): Likewise for param "branch".
1233 (insn_clobbers_hbr): Likewise for param "insn".
1234 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
1235 locals "insn", "before_4", "before_16".
1236 (insert_hbrp): Likewise for local "insn".
1237 (spu_machine_dependent_reorg): Likewise for locals "branch",
1238 "insn", "next", "bbend".
1239 (uses_ls_unit): Likewise for param "insn".
1240 (get_pipe): Likewise.
1241 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
1242 introducing a checked cast.
1243 (spu_sched_adjust_cost): Likewise for params "insn" and
1245 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
1246 (spu_sms_res_mii): Likewise.
1248 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1250 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
1251 from rtx to rtx_insn *.
1252 (output_cbranch): Likewise for param 6.
1253 (output_return): Likewise for param 1.
1254 (output_sibcall): Likewise.
1255 (output_v8plus_shift): Likewise.
1256 (output_v8plus_mult): Likewise.
1257 (output_v9branch): Likewise for param 7.
1258 (output_cbcond): Likewise for param 3.
1260 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
1262 (sparc_legitimize_pic_address): Likewise.
1263 (sparc_emit_call_insn): Likewise.
1264 (emit_save_or_restore_regs): Likewise.
1265 (emit_window_save): Likewise for return type and local "insn".
1266 (sparc_expand_prologue): Likewise for local "insn".
1267 (sparc_flat_expand_prologue): Likewise.
1268 (output_return): Likewise for param "insn".
1269 (output_sibcall): Likewise for param "insn" and local "delay".
1270 (output_ubranch): Likewise for param "insn".
1271 (output_cbranch): Likewise.
1272 (output_cbcond): Likewise.
1273 (output_v9branch): Likewise.
1274 (output_v8plus_shift): Likewise.
1275 (sparc_output_mi_thunk): Likewise for local "insn".
1276 (get_some_local_dynamic_name): Likewise.
1277 (output_v8plus_mult): Likewise for param "insn".
1279 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1281 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
1282 from rtx to rtx_insn *.
1283 (output_branchy_insn): Likewise for param 3.
1284 (output_far_jump): Likewise for param 1.
1285 (final_prescan_insn): Likewise.
1286 (sh_insn_length_adjustment): Likewise for sole param.
1288 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
1289 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
1291 (sh_emit_compare_and_set): Likewise for local "lab".
1292 (output_far_jump): Strengthen param "insn" and local "prev" from
1294 (output_branchy_insn): Likewise for param "insn" and local
1296 (output_ieee_ccmpeq): Likewise for param "insn".
1297 (struct label_ref_list_d): Strengthen field "label" from rtx to
1299 (pool_node): Likewise.
1300 (pool_window_label): Likewise for this global.
1301 (add_constant): Likewise for return type and locals "lab", "new_rtx".
1302 (dump_table): Strengthen params "start", "barrier" and local
1303 "scan" from rtx to rtx_insn *.
1304 (broken_move): Likewise for param "insn".
1305 (untangle_mova): Likewise for params "first_mova" and "new_mova".
1306 Strengthen param "first_mova" from rtx * to rtx_insn **.
1307 (mova_p): Likewise for param "insn".
1308 (fixup_mova): Likewise for param "mova".
1309 (find_barrier): Likewise for return type, params "mova" and
1310 "from", and locals "barrier_before_mova", "found_barrier",
1311 "good_barrier", "orig", "last_symoff", "next". Strengthen local
1312 "label" from rtx to rtx_code_label *.
1313 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
1315 (sh_reorg): Likewise for locals "link", "scan", "barrier".
1316 (split_branches): Likewise for param "first" and local "insn".
1317 (final_prescan_insn): Likewise for param "insn".
1318 (sequence_insn_p): Likewise for locals "prev", "next".
1319 (sh_insn_length_adjustment): Likewise for param "insn".
1320 (sh_can_redirect_branch): Likewise for local "insn".
1321 (find_r0_life_regions): Likewise for locals "end", "insn".
1322 (sh_output_mi_thunk): Likewise for local "insns".
1324 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1326 * config/score/score.c (score_output_mi_thunk): Strengthen local
1327 "insn" from rtx to rtx_insn *.
1328 (score_prologue): Likewise.
1330 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1332 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
1333 1 from rtx to rtx_insn *.
1334 (s390_emit_jump): Likewise for return type.
1335 (s390_emit_call): Likewise.
1336 (s390_load_got): Likewise.
1338 * config/s390/s390.c (last_scheduled_insn): Likewise for this
1340 (s390_match_ccmode): Likewise for param "insn".
1341 (s390_emit_jump): Likewise for return type.
1342 (s390_split_branches): Likewise for local "label".
1343 (struct constant): Strengthen field "label" from rtx to
1345 (struct constant_pool): Likewise for field "label". Strengthen
1346 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
1348 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
1350 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
1351 (s390_end_pool): Likewise.
1352 (s390_dump_pool): Likewise for local "insn".
1353 (s390_mainpool_start): Likewise.
1354 (s390_chunkify_start): Likewise.
1355 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
1356 with insns. Strengthen locals "label", "jump", "barrier", "next",
1357 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
1358 (s390_chunkify_finish): Strengthen local "insn" from rtx to
1360 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
1361 "jump", "label", "next_insn".
1362 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
1363 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
1365 (s390_load_got): Likewise for return type and local "insns".
1366 (s390_save_gprs_to_fprs): Likewise for local "insn".
1367 (s390_restore_gprs_from_fprs): Likewise.
1368 (pass_s390_early_mach::execute): Likewise.
1369 (s390_emit_prologue): Likewise for local "insns".
1370 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
1372 (s390_emit_call): Strengthen return type and local "insn" from
1374 (s390_emit_tpf_eh_return): Likewise for local "insn".
1375 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
1376 "next_insn", introducing locals "s_pat", "rpat" to allow this.
1377 (s390_fix_long_loop_prediction): Likewise for param "insn" and
1379 (s390_non_addr_reg_read_p): Likewise for param "insn".
1380 (find_cond_jump): Likewise for return type and param "insn".
1381 (s390_swap_cmp): Likewise for param "insn".
1382 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
1383 "prev_insn", "next_insn".
1384 (s390_reorg): Likewise for locals "insn", "target".
1385 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
1386 (s390_sched_variable_issue): For now, rename param "insn" to
1387 "uncast_insn", introducing a checked cast.
1388 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
1390 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
1391 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
1393 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1395 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
1396 param from rtx to rtx_insn *.
1397 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
1399 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1401 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
1402 4 from rtx to rtx_insn *.
1403 (rs6000_final_prescan_insn): Likewise for first param.
1404 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
1406 (rs6000_get_some_local_dynamic_name): Likewise.
1407 (output_cbranch): Likewise for param "insn".
1408 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
1409 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
1410 (rs6000_emit_allocate_stack): Likewise for local "insn".
1411 (load_cr_save): Likewise.
1412 (restore_saved_cr): Likewise.
1413 (restore_saved_lr): Likewise.
1414 (emit_cfa_restores): Likewise.
1415 (rs6000_output_function_epilogue): Likewise for locals "insn" and
1416 "deleted_debug_label".
1417 (rs6000_output_mi_thunk): Likewise for local "insn".
1418 (rs6000_final_prescan_insn): Likewise for param "insn".
1420 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1422 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
1423 Strengthen param "insn" from rtx to rtx_insn *.
1424 * config/picochip/picochip.c (picochip_current_prescan_insn):
1425 Likewise for this variable.
1426 (picochip_final_prescan_insn): Likewise for param "insn".
1428 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1430 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
1431 from rtx to rtx_insn *.
1432 (pa_output_indirect_call): Likewise.
1433 (pa_adjust_insn_length): Likewise.
1434 (pa_attr_length_millicode_call): Likewise.
1435 (pa_attr_length_call): Likewise.
1436 (pa_attr_length_indirect_call): Likewise.
1438 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
1440 (pa_attr_length_millicode_call): Likewise.
1441 (pa_attr_length_call): Likewise.
1442 (pa_output_call): Likewise.
1443 (pa_attr_length_indirect_call): Likewise.
1444 (pa_output_indirect_call): Likewise.
1446 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1448 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
1449 Strengthen first param from rtx to rtx_insn *.
1450 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
1453 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1455 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
1456 type from rtx to rtx_insn *.
1457 (mips_expand_call): Likewise.
1458 (mips_adjust_insn_length): Likewise for first param.
1459 (mips_output_conditional_branch): Likewise.
1460 (mips_output_order_conditional_branch): Likewise.
1461 (mips_final_prescan_insn): Likewise.
1463 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
1464 rtx_insn * for the SEQUENCE case.
1465 (SEQ_END): Likewise.
1466 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
1467 (mips_emit_call_insn): Likewise, also for local "insn".
1468 (mips16_gp_pseudo_reg): Likewise for local "scan".
1469 (mips16_build_call_stub): Likewise for return type and for local
1470 "insn". Introduce a new local "pattern" so that "insn" can indeed
1472 (mips_expand_call): Strengthen return type and local "insn" from
1474 (mips_block_move_loop): Strengthen local "label" from rtx to
1476 (mips_expand_synci_loop): Likewise for locals "label",
1478 (mips_set_frame_expr): Strengthen local "insn" from rtx to
1480 (mips16e_collect_argument_saves): Likewise for locals "insn",
1482 (mips_find_gp_ref): Likewise for param of callback for "pred"
1483 param, and for local "insn".
1484 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
1485 (mips_insn_has_flexible_gp_ref_p): Likewise.
1486 (mips_epilogue_emit_cfa_restores): Likewise for return type and
1488 (mips_epilogue_set_cfa): Likewise for local "insn".
1489 (mips_expand_epilogue): Likewise.
1490 (mips_adjust_insn_length): Likewise for param "insn".
1491 (mips_output_conditional_branch): Likewise.
1492 (mips_output_order_conditional_branch): Likewise.
1493 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
1494 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
1495 "falu2_turn_enabled_insn".
1496 (mips_builtin_branch_and_move): Strengthen locals "true_label",
1497 "done_label" from rtx to rtx_code_label *.
1498 (struct mips16_constant): Likewise for field "label".
1499 (mips16_add_constant): Likewise for return type.
1500 (mips16_emit_constants_1): Strengthen return type and param "insn"
1501 from rtx to rtx_insn *.
1502 (mips16_emit_constants): Likewise for param "insn".
1503 (mips16_insn_length): Likewise.
1504 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
1505 to rtx_code_label *.
1506 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
1507 from rtx to rtx_insn *.
1508 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
1509 "jump". Strengthen local "label" from rtx to rtx_code_label *.
1510 (r10k_simplify_address): Strengthen param "insn" and local
1511 "def_insn" from rtx to rtx_insn *.
1512 (r10k_safe_address_p): Strengthen param "insn" from rtx to
1514 (r10k_needs_protection_p_1): Update target type of cast of data
1515 from to rtx to rtx_insn *.
1516 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
1517 rtx * to rtx_insn **.
1518 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
1520 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
1521 (mips_call_expr_from_insn): Likewise for param "insn".
1522 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
1523 (mips_find_pic_call_symbol): Likewise for param "insn".
1524 (mips_annotate_pic_calls): Likewise for local "insn".
1525 (mips_sim_insn): Likewise for this variable.
1526 (struct mips_sim): Likewise for field "insn" within elements of
1528 (mips_sim_wait_reg): Likewise for param "insn".
1529 (mips_sim_wait_regs): Likewise.
1530 (mips_sim_wait_units): Likewise.
1531 (mips_sim_wait_insn): Likewise.
1532 (mips_sim_issue_insn): Likewise.
1533 (mips_sim_finish_insn): Likewise.
1534 (mips_seq_time): Likewise for param "seq" and local "insn".
1535 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
1536 locals "first", "second".
1537 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
1538 "last", "last2", "next".
1539 (mips_avoid_hazard): Likewise for params "after", "insn".
1540 (mips_reorg_process_insns): Likewise for locals "insn",
1541 "last_insn", "subinsn", "next_insn".
1542 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
1543 (mips16_split_long_branches): Likewise for locals "insn" "jump",
1545 (mips_output_mi_thunk): Likewise for local "insn".
1546 (mips_final_prescan_insn): Likewise for param "insn".
1548 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1550 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
1551 Strengthen return type and local "insns" from rtx to rtx_insn *.
1552 (microblaze_legitimize_tls_address): Likewise for local "insns".
1553 (microblaze_block_move_loop): Strengthen local "label" from rtx
1554 to rtx_code_label *.
1555 (microblaze_expand_prologue): Strengthen two locals named "insn"
1556 from rtx to rtx_insn *.
1557 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
1558 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
1559 "insn". Strengthen locals "div_label", "div_end_label" from rtx
1560 to rtx_code_label *.
1562 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1564 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
1565 param from rtx to rtx_insn *.
1566 (mep_reuse_lo): Likewise for third param.
1567 (mep_use_post_modify_p): Likewise for first param.
1568 (mep_core_address_length): Likewise.
1569 (mep_cop_address_length): Likewise.
1570 (mep_final_prescan_insn): Likewise.
1571 (mep_store_data_bypass_p): Likewise for both params.
1572 (mep_mul_hilo_bypass_p): Likewise.
1573 (mep_ipipe_ldc_p): Likewise for param.
1575 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
1576 (mep_rewrite_mult): Likewise.
1577 (mep_rewrite_mulsi3): Likewise.
1578 (mep_rewrite_maddsi3): Likewise.
1579 (mep_reuse_lo_p_1): Likewise.
1580 (mep_reuse_lo_p): Likewise.
1581 (mep_frame_expr): Likewise.
1582 (mep_make_parallel): Likewise for both params.
1583 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
1585 (mep_use_post_modify_p): Likewise for param "insn".
1586 (mep_core_address_length): Likewise.
1587 (mep_cop_address_length): Likewise.
1588 (mep_reg_set_in_function): Likewise for local "insn".
1589 (mep_asm_without_operands_p): Likewise.
1590 (F): Likewise for return type and param "x".
1591 (add_constant): Likewise for local "insn".
1592 (maybe_dead_move): Likewise for return type and local "insn".
1593 (mep_expand_prologue): Likewise for local "insn".
1594 (mep_final_prescan_insn): Likewise for param "insn".
1595 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
1596 "next", "follow", "x".
1597 (mep_insert_repeat_label_last): Likewise for return type, param
1598 "last_insn", and locals "next", "prev". Strengthen param "label"
1599 from rtx to rtx_code_label *.
1600 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
1602 (struct mep_doloop_end): Likewise for fields "insn" and
1604 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
1605 Strengthen local "repeat_label" from rtx to rtx_code_label *.
1606 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
1608 (mep_invert_branch): Likewise for params "insn" and "after".
1609 (mep_reorg_erepeat): Likewise for param "insns" and locals
1610 "insn", "prev", "new_last", "barrier", "user". Strengthen local
1611 "l" from rtx to rtx_code_label *.
1612 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
1613 from rtx to rtx_insn *.
1614 (mep_reorg_addcombine): Likewise for param "insns" and locals
1616 (add_sp_insn_p): Likewise for param "insn".
1617 (mep_reorg_noframe): Likewise for param "insns" and locals
1618 "start_frame_insn", "end_frame_insn", "next".
1619 (mep_reorg): Likewise for local "insns".
1620 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
1622 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
1623 (mep_mul_hilo_bypass_p): Likewise.
1624 (mep_ipipe_ldc_p): Likewise for param "insn".
1625 (mep_make_bundle): Likewise for return type, param "cop" and local
1626 "insn", splitting out the latter into a new local "seq" for when it
1627 is a SEQUENCE rather than an insn.
1628 (core_insn_p): Likewise for param "insn".
1629 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
1630 "last", "first", "note", "prev", "core_insn".
1632 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1634 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
1636 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
1637 (m68k_final_prescan_insn): Likewise for first param.
1639 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
1640 (m68k_set_frame_related): Likewise for param "insn".
1641 (output_btst): Likewise for param "insn".
1642 (m68k_final_prescan_insn): Likewise.
1643 (m68k_move_to_reg): Likewise for local "insn".
1644 (m68k_call_tls_get_addr): Likewise for local "insns".
1645 (m68k_call_m68k_read_tp): Likewise.
1646 (strict_low_part_peephole_ok): Likewise for param "first_insn".
1647 (m68k_output_mi_thunk): Likewise for local "insn".
1649 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1651 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
1652 first param from rtx to rtx_insn *.
1653 (iq2000_adjust_insn_length): Likewise.
1654 (iq2000_output_conditional_branch): Likewise.
1655 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
1656 "insn" and local "nop_insn".
1657 (iq2000_annotate_frame_insn): Likewise for param "insn".
1658 (iq2000_expand_prologue): Likewise for both locals "insn".
1659 (iq2000_adjust_insn_length): Likewise for param "insn".
1660 (iq2000_output_conditional_branch): Likewise.
1662 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1664 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
1665 "insns" from rtx to rtx_insn *.
1666 (ia64_emit_cond_move): Likewise for locals "insn", "first".
1667 (struct spill_fill_data): Likewise for field "init_after" and for
1668 elements of array field "prev_insn".
1669 (spill_restore_mem): Likewise for locals "insn", "first".
1670 (do_spill): Likewise for local "insn".
1671 (do_restore): Likewise.
1672 (ia64_expand_prologue): Likewise.
1673 (ia64_expand_epilogue): Likewise.
1674 (emit_insn_group_barriers): Likewise for locals "insn",
1676 (emit_all_insn_group_barriers): Likewise for locals "insn",
1678 (dfa_stop_insn): Likewise for this global.
1679 (dfa_pre_cycle_insn): Likewise.
1680 (ia64_nop): Likewise.
1681 (final_emit_insn_group_barriers): Likewise for locals "insn",
1683 (emit_predicate_relation_info): Likewise for locals "head", "n",
1685 (ia64_reorg): Likewise for local "insn".
1686 (ia64_output_mi_thunk): Likewise.
1687 (expand_vec_perm_interleave_2): Likewise for local "seq".
1689 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1691 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
1692 param 1 "insn" from rtx to rtx_insn *.
1693 (ix86_use_lea_for_mov): Likewise.
1694 (ix86_avoid_lea_for_addr): Likewise.
1695 (ix86_split_lea_for_addr): Likewise.
1696 (ix86_lea_for_add_ok): Likewise.
1697 (ix86_output_call_insn): Likewise.
1699 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
1700 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
1701 (ix86_output_function_epilogue): Likewise for locals "insn",
1702 "deleted_debug_label".
1703 (legitimize_tls_address): Likewise for local "insn".
1704 (get_some_local_dynamic_name): Likewise.
1705 (increase_distance): Likewise for params "prev", "next".
1706 (distance_non_agu_define_in_bb): Likewise for params "insn",
1707 "start" and locals "prev", "next".
1708 (distance_non_agu_define): Likewise for param "insn".
1709 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
1710 locals "next", "prev".
1711 (distance_agu_use): Likewise for param "insn".
1712 (ix86_lea_outperforms): Likewise.
1713 (ix86_ok_to_clobber_flags): Likewise.
1714 (ix86_avoid_lea_for_add): Likewise.
1715 (ix86_use_lea_for_mov): Likewise.
1716 (ix86_avoid_lea_for_addr): Likewise.
1717 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
1718 (ix86_split_lea_for_addr): Likewise for param "insn".
1719 (ix86_lea_for_add_ok): Likewise for param "insn".
1720 (ix86_expand_carry_flag_compare): Likewise for local
1722 (ix86_expand_int_movcc): Likewise.
1723 (ix86_output_call_insn): Likewise for param "insn".
1724 (ix86_output_call_insn): Likewise for local "i".
1725 (x86_output_mi_thunk): Introduce local "insn", using it in place
1726 of "tmp" when dealing with insns.
1727 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
1729 (ix86_pad_returns): Likewise for locals "ret", "prev".
1730 (ix86_count_insn_bb): Likewise for local "insn".
1731 (ix86_pad_short_function): Likewise for locals "ret", "insn".
1732 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
1733 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
1734 (expand_vec_perm_interleave2): Likewise for local "seq".
1735 (expand_vec_perm_vperm2f128_vblend): Likewise.
1736 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
1737 call to for_each_rtx with for_each_rtx_in_insn.
1739 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1741 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
1742 "label" from rtx to rtx_code_label *.
1743 (ix86_expand_prologue): Likewise.
1744 (ix86_expand_split_stack_prologue): Likewise for locals "label",
1746 (ix86_split_idivmod): Likewise for locals "end_label" and
1748 (ix86_expand_branch): Likewise for local "label2".
1749 (ix86_expand_aligntest): Likewise for return type and local "label".
1750 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
1752 (expand_movmem_epilogue): Likewise for the various locals named
1754 (expand_setmem_epilogue): Likewise.
1755 (expand_small_movmem_or_setmem): Likewise for local "label".
1756 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
1757 Strengthen param "done_label" from rtx * to rtx_code_label **.
1758 Strengthen locals "loop_label" and "label" from rtx to
1760 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
1761 Likewise for locals "loop_label", "label".
1762 (ix86_expand_set_or_movmem): Likewise for locals "label",
1763 "jump_around_label", "hot_label".
1764 (ix86_expand_strlensi_unroll_1): Likewise for locals
1765 "align_2_label", align_3_label", "align_4_label", "end_0_label",
1767 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
1768 (void ix86_emit_i387_log1p): Likewise for locals "label1",
1769 "label2", "jump_label".
1770 (ix86_expand_sse_compare_and_jump): Likewise for return type and
1772 (ix86_expand_lfloorceil): Likewise for local "label".
1773 (ix86_expand_rint): Likewise.
1774 (ix86_expand_floorceildf_32): Likewise.
1775 (ix86_expand_floorceil): Likewise.
1776 (ix86_expand_rounddf_32): Likewise.
1777 (ix86_expand_trunc): Likewise.
1778 (ix86_expand_truncdf_32): Likewise.
1779 (ix86_expand_round): Likewise.
1781 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1783 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
1784 first param from rtx to rtx_insn *.
1785 (h8300_insn_length_from_table): Likewise.
1786 * config/h8300/h8300.c (F): Likewise for return type and param
1788 (Fpa): Add a checked cast to rtx_insn *.
1789 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
1791 (final_prescan_insn): Likewise for param "insn".
1792 (h8300_binary_length): Likewise.
1793 (h8300_insn_length_from_table): Likewise.
1795 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1797 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
1798 Strengthen first param "insn" from rtx to rtx_insn *.
1800 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
1802 (frame_insn): Likewise for return type. Introduce local "insn"
1803 for use in place of local "x" for use as an rtx_insn *.
1804 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
1805 (epiphany_expand_prologue): Likewise for local "insn".
1806 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
1807 * config/epiphany/resolve-sw-modes.c
1808 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
1811 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1813 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
1814 param from rtx to rtx_insn *.
1815 (c6x_final_prescan_insn): Likewise for first param.
1817 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
1818 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
1819 (c6x_expand_compare): Strengthen local "insns" from rtx to
1821 (c6x_get_unit_specifier): Likewise for param "insn".
1822 (c6x_print_unit_specifier_field): Likewise.
1823 (c6x_final_prescan_insn): Likewise.
1824 (emit_add_sp_const): Likewise for local "insn".
1825 (c6x_expand_prologue): Likewise.
1827 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1829 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
1830 param 1 from rtx to rtx_insn *.
1831 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
1832 the various locals named "insn".
1833 (expand_epilogue_reg_restore): Likewise.
1834 (frame_related_constant_load): Likewise.
1835 (add_to_reg): Likewise.
1836 (emit_link_insn): Likewise.
1837 (do_link): Likewise.
1838 (expand_interrupt_handler_prologue): Likewise.
1839 (branch_dest): Likewise for param "branch".
1840 (asm_conditional_branch): Likewise for param "insn".
1841 (gen_one_bundle): Likewise for elements of param "slot" and local
1843 (bfin_gen_bundles): Likewise for locals "insn", "next" and
1844 elements of local "slot".
1845 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1846 "queue", "next_queue", "prev".
1847 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
1848 (add_sched_insns_for_speculation): Likewise for local "insn".
1850 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1852 * config/avr/avr-protos.h (output_movqi): Strengthen first param
1853 from rtx to rtx_insn *.
1854 (output_movhi): Likewise.
1855 (output_movsisf): Likewise.
1856 (avr_out_tstsi): Likewise.
1857 (avr_out_tsthi): Likewise.
1858 (avr_out_tstpsi): Likewise.
1859 (avr_out_compare): Likewise.
1860 (avr_out_compare64): Likewise.
1861 (avr_out_movpsi): Likewise.
1862 (ashlqi3_out): Likewise.
1863 (ashlhi3_out): Likewise.
1864 (ashlsi3_out): Likewise.
1865 (ashrqi3_out): Likewise.
1866 (ashrhi3_out): Likewise.
1867 (ashrsi3_out): Likewise.
1868 (lshrqi3_out): Likewise.
1869 (lshrhi3_out): Likewise.
1870 (lshrsi3_out): Likewise.
1871 (avr_out_ashlpsi3): Likewise.
1872 (avr_out_ashrpsi3): Likewise.
1873 (avr_out_lshrpsi3): Likewise.
1874 (avr_out_fract): Likewise.
1875 (avr_out_sbxx_branch): Likewise.
1876 (avr_out_round): Likewise.
1877 (avr_out_xload): Likewise.
1878 (avr_out_movmem): Likewise.
1879 (adjust_insn_length): Likewise.
1880 (avr_out_lpm): Likewise.
1881 (reg_unused_after): Likewise.
1882 (_reg_unused_after): Likewise.
1883 (avr_jump_mode): Likewise for second param.
1884 (jump_over_one_insn): Likewise for first param.
1885 (avr_final_prescan_insn): Likewise.
1886 (out_shift_with_cnt): Likewise for second param.
1888 * config/avr/avr.c (get_sequence_length): Likewise for param
1889 "insns" and local "insn".
1890 (emit_push_byte): Likewise for local "insn".
1891 (emit_push_sfr): Likewise.
1892 (avr_prologue_setup_frame): Likewise for locals "insn",
1893 "fp_plus_insns", "sp_plus_insns".
1894 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
1896 (avr_jump_mode): Likewise for param "insn".
1897 (avr_final_prescan_insn): Likewise.
1898 (avr_find_unused_d_reg): Likewise.
1899 (avr_out_lpm_no_lpmx): Likewise.
1900 (avr_out_lpm): Likewise.
1901 (avr_out_xload): Likewise.
1902 (output_movqi): Likewise.
1903 (output_movhi): Likewise.
1904 (out_movqi_r_mr): Likewise.
1905 (out_movhi_r_mr): Likewise.
1906 (out_movsi_r_mr): Likewise.
1907 (out_movsi_mr_r): Likewise.
1908 (output_movsisf): Likewise.
1909 (avr_out_load_psi): Likewise.
1910 (avr_out_store_psi): Likewise.
1911 (avr_out_movpsi): Likewise.
1912 (out_movqi_mr_r): Likewise.
1913 (avr_out_movhi_mr_r_xmega): Likewise.
1914 (out_movhi_mr_r): Likewise.
1915 (compare_condition): Likewise for param "insn" and local "next".
1916 (compare_sign_p): Likewise for param "insn".
1917 (compare_diff_p): Likewise.
1918 (compare_eq_p): Likewise.
1919 (avr_out_compare): Likewise.
1920 (avr_out_compare64): Likewise.
1921 (avr_out_tsthi): Likewise.
1922 (avr_out_tstpsi): Likewise.
1923 (avr_out_tstsi): Likewise.
1924 (out_shift_with_cnt): Likewise.
1925 (ashlqi3_out): Likewise.
1926 (ashlhi3_out): Likewise.
1927 (avr_out_ashlpsi3): Likewise.
1928 (ashlsi3_out): Likewise.
1929 (ashrqi3_out): Likewise.
1930 (ashrhi3_out): Likewise.
1931 (avr_out_ashrpsi3): Likewise.
1932 (ashrsi3_out): Likewise.
1933 (lshrqi3_out): Likewise.
1934 (lshrhi3_out): Likewise.
1935 (avr_out_lshrpsi3): Likewise.
1936 (lshrsi3_out): Likewise.
1937 (avr_out_fract): Likewise.
1938 (avr_out_round): Likewise.
1939 (avr_adjust_insn_length): Likewise.
1940 (reg_unused_after): Likewise.
1941 (_reg_unused_after): Likewise.
1942 (avr_compare_pattern): Likewise.
1943 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
1944 and locals "branch1", "branch2", "insn2", "jump".
1945 (avr_reorg): Likewise for local "insn".
1946 (avr_2word_insn_p): Likewise for param "insn".
1947 (jump_over_one_insn_p): Likewise.
1948 (avr_out_sbxx_branch): Likewise.
1949 (avr_out_movmem): Likewise.
1951 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1953 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
1954 param from rtx to rtx_insn *.
1955 (thumb1_final_prescan_insn): Likewise.
1956 (thumb2_final_prescan_insn): Likewise.
1958 * config/arm/arm.c (emit_set_insn): Strengthen return type from
1960 (struct minipool_node): Likewise for field "insn".
1961 (dump_minipool): Likewise for param "scan".
1962 (create_fix_barrier): Likewise for local "from". Strengthen local
1963 "label" from rtx to rtx_code_label *.
1964 (push_minipool_barrier): Strengthen param "insn" from rtx to
1966 (push_minipool_fix): Likewise.
1967 (note_invalid_constants): Likewise.
1968 (thumb2_reorg): Likewise for local "insn".
1969 (arm_reorg): Likewise.
1970 (thumb2_final_prescan_insn): Likewise for param
1971 "insn" and local "first_insn".
1972 (arm_final_prescan_insn): Likewise for param "insn" and locals
1973 "start_insn", "this_insn".
1974 (arm_debugger_arg_offset): Likewise for param "insn".
1975 (thumb1_emit_multi_reg_push): Likewise for return type and local
1977 (thumb1_final_prescan_insn): Likewise for param "insn".
1978 (thumb_far_jump_used_p): Likewise for local "insn".
1979 (thumb1_expand_prologue): Likewise.
1980 (arm_expand_epilogue_apcs_frame): Likewise.
1981 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
1982 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
1983 from rtx to rtx_code_label *.
1984 (arm_split_atomic_op): Likewise for local "label".
1985 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
1987 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1989 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
1990 first param from rtx to rtx_insn *.
1991 (arc_verify_short): Likewise.
1992 (arc_short_long): Likewise.
1993 (arc_need_delay): Likewise.
1995 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
1997 (arc_ccfsm_advance): Likewise for param "insn" and locals
1998 "start_insn", "this_insn".
1999 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2000 (arc_ccfsm_post_advance): Likewise for param "insn".
2001 (arc_next_active_insn): Likewise for return type and param "insn".
2002 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2003 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2004 (output_short_suffix): Likewise for local "insn".
2005 (arc_final_prescan_insn): Likewise for param "insn". Remove
2006 now-redundant checked cast.
2007 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2008 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2009 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2010 for use where lc_set became an insn.
2011 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2013 (arc_get_insn_variants): Likewise for local "prev".
2014 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2016 (arc_predicate_delay_insns): Likewise for local "insn".
2017 (arc_pad_return): Likewise for local "prev". For now, add a
2018 checked cast when extracting the insn from "final_sequence".
2019 (arc_short_long): Likewise for param "insn".
2020 (arc_need_delay): Likewise for param "insn" and local "next".
2021 (arc_label_align): Likewise for locals "prev", "next".
2023 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2025 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2026 "insn" from rtx to rtx_insn *.
2027 (alpha_gp_save_rtx): Likewise for local "seq".
2028 (alpha_instantiate_decls): Likewise for local "top".
2029 (get_some_local_dynamic_name): Likewise for local "insn".
2030 (alpha_does_function_need_gp): Likewise.
2031 (set_frame_related_p): Likewise for return type and for locals
2033 (emit_frame_store_1): Likewise for local "insn".
2034 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2035 (alpha_end_function): Likewise for local "insn".
2036 (alpha_output_mi_thunk_osf): Likewise.
2037 (alphaev4_insn_pipe): Likewise for param "insn".
2038 (alphaev5_insn_pipe): Likewise.
2039 (alphaev4_next_group): Likewise for return type and param 1
2041 (alphaev5_next_group): Likewise.
2042 (alpha_align_insns_1): Likewise for return type and param 1 of
2043 callback param "next_group", and for locals "i", "next", "prev",
2044 "where", "where2", "insn".
2046 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2048 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2049 rather than modifying the stmt.
2051 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2053 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2054 cgraph_state conversion.
2056 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2058 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2059 Strengthen local "insns" from rtx to rtx_insn *.
2060 (aarch64_set_frame_expr): Likewise for local "insn".
2061 (aarch64_save_or_restore_fprs): Likewise.
2062 (aarch64_save_or_restore_callee_save_registers): Likewise.
2063 (aarch64_expand_prologue): Likewise.
2064 (aarch64_expand_epilogue): Likewise.
2065 (aarch64_output_mi_thunk): Likewise.
2066 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2067 "label2" from rtx to rtx_code_label *.
2068 (aarch64_split_atomic_op): Likewise for local "label".
2070 2014-08-25 Martin Liska <mliska@suse.cz>
2072 * cgraph.h (symtab_node):
2073 (bool needed_p (void)): created from decide_is_symbol_needed
2074 (bool referred_to_p (void)): created from referred_to_p
2075 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2076 * cgraph.h (cgraph_node):
2077 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2078 (void expand (void)): created from expand_function
2079 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2080 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2081 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2082 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2083 * cgraph.h (varpool_node):
2084 (static void add (tree decl): created from varpool_add_new_variable
2085 * cgraph.h (cgraph_edge):
2087 (void remove_caller (void)): created from cgraph_edge_remove_caller
2088 (void remove_callee (void)): created from cgraph_edge_remove_callee
2089 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2090 created from cgraph_set_call_stmt
2091 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2092 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2093 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2094 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2095 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2096 created from cgraph_speculative_call_info
2097 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2098 int freq_scale, bool update_original)): created from cgraph_clone_edge
2099 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2100 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2101 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2102 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2103 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2104 (static void rebuild_references (void)): created from cgraph_rebuild_references
2105 * cgraph.h (symbol_table):
2106 (create_reference): renamed from add_reference
2107 (maybe_create_reference): renamed from maybe_add_reference
2108 (void register_symbol (symtab_node *node)): new function
2109 (void clear_asm_symbols (void)): new function
2110 (void unregister (symtab_node *node)): new function
2111 (void release_symbol (cgraph_node *node, int uid)): new function
2112 (cgraph_node * allocate_cgraph_symbol (void)): new function
2113 (void initialize (void)): created from cgraph_init
2114 (symtab_node *first_symbol (void)):new function
2115 (asm_node *first_asm_symbol (void)):new function
2116 (symtab_node *first_defined_symbol (void)):new function
2117 (varpool_node *first_variable (void)):new function
2118 (varpool_node *next_variable (varpool_node *node)):new function
2119 (varpool_node *first_static_initializer (void)):new function
2120 (varpool_node *next_static_initializer (varpool_node *node)):new function
2121 (varpool_node *first_defined_variable (void)):new function
2122 (varpool_node *next_defined_variable (varpool_node *node)):new function
2123 (cgraph_node *first_defined_function (void)):new function
2124 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2125 (cgraph_node *first_function (void)):new function
2126 (cgraph_node *next_function (cgraph_node *node)):new function
2127 (cgraph_node *first_function_with_gimple_body (void)):new function
2128 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2129 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2130 created from symtab_remove_unreachable_nodes
2131 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2132 (void process_new_functions (void)): created from cgraph_process_new_functions
2133 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2134 (bool output_variables (void)): created from varpool_node::output_variables
2135 (void output_asm_statements (void)): created from output_asm_statements
2136 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2137 (void compile (void)): created from compile
2138 (void output_weakrefs (void)): created from output_weakrefs
2139 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2140 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2141 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2142 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2143 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2144 created from cgraph_next_function_with_gimple_body
2145 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2146 created from cgraph_remove_edge_removal_hook
2147 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2148 created from cgraph_add_node_removal_hook
2149 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2150 created from cgraph_remove_node_removal_hook
2151 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2152 created from varpool_add_node_removal_hook
2153 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2154 created from varpool_remove_node_removal_hook
2155 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2156 created from cgraph_add_function_insertion_hook
2157 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
2158 created from cgraph_remove_function_insertion_hook
2159 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
2160 created from varpool_add_variable_insertion_hook
2161 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
2162 created from varpool_remove_variable_insertion_hook
2163 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
2164 created from cgraph_add_edge_duplication_hook
2165 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
2166 created from cgraph_remove_edge_duplication_hook
2167 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
2168 created from cgraph_add_node_duplication_hook
2169 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
2170 created from cgraph_remove_node_duplication_hook
2171 (void call_edge_removal_hooks (cgraph_edge *e)):
2172 created from cgraph_call_edge_removal_hooks
2173 (void call_cgraph_insertion_hooks (cgraph_node *node)):
2174 created from call_function_insertion_hooks
2175 (void call_cgraph_removal_hooks (cgraph_node *node)):
2176 created from cgraph_call_node_removal_hooks
2177 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
2178 created from cgraph_node::call_duplication_hooks
2179 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
2180 created from cgraph_call_edge_duplication_hooks
2181 (void call_varpool_removal_hooks (varpool_node *node)):
2182 created from varpool_call_node_removal_hooks
2183 (void call_varpool_insertion_hooks (varpool_node *node)):
2184 created from varpool_call_variable_insertion_hooks
2185 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
2186 created from insert_to_assembler_name_hash
2187 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
2188 created from unlink_from_assembler_name_hash
2189 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
2190 created from symtab_prevail_in_asm_name_hash
2191 (void symtab_initialize_asm_name_hash (void)):
2192 created from symtab_initialize_asm_name_hash
2193 (void change_decl_assembler_name (tree decl, tree name)):
2194 created from change_decl_assembler_name
2195 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
2196 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
2197 created from decl_assembler_name_hash
2198 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
2199 created from decl_assembler_name_equal
2200 (static hashval_t hash_node_by_assembler_name (const void *p)):
2201 created from hash_node_by_assembler_name
2202 (static int eq_assembler_name (const void *p1, const void *p2)):
2203 created from eq_assembler_name
2205 2014-08-25 Marek Polacek <polacek@redhat.com>
2207 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
2209 2014-08-25 Petr Murzin <petr.murzin@intel.com>
2211 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
2212 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
2213 SWI1248_AVX512BW mode iterator.
2215 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
2218 * config/sh/predicates.md (general_extend_operand): Disable
2219 TRUNCATE before reload completes.
2221 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
2223 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
2225 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
2228 * config/sh/sh.opt (musermode): Allow negative form.
2229 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
2230 targets that don't support it.
2231 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
2232 Document -mno-usermode option.
2234 2014-08-24 Kito Cheng <kito@0xlab.org>
2236 * system.h (CALLER_SAVE_PROFITABLE): Poison.
2237 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
2238 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
2239 * doc/tm.texi: Regenerate.
2241 2014-08-24 Kito Cheng <kito@0xlab.org>
2243 * ira.c: Fix typo in comment.
2245 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2247 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
2248 Deprecate c++1y. Change language to reflect greater confidence in C++14.
2250 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
2253 * config/pa/pa.c (pa_output_function_epilogue): Don't set
2254 last_address when the current function is a thunk.
2255 (pa_asm_output_mi_thunk): When we don't have named sections or they
2256 are not being used, check that thunk can reach the stub table with a
2259 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2261 * web.c (union_match_dups): Strengthen param "insn" from rtx to
2263 (pass_web::execute): Likewise for local "insn".
2265 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2267 * var-tracking.c (struct micro_operation_def): Strengthen field
2268 "insn" from rtx to rtx_insn *.
2269 (struct emit_note_data_def): Likewise.
2270 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
2271 (vt_stack_adjustments): Likewise for local "insn".
2272 (adjust_insn): Likewise for param "insn".
2273 (val_store): Likewise.
2274 (val_resolve): Likewise.
2275 (struct count_use_info): Likewise for field "insn".
2276 (log_op_type): Likewise for param "insn".
2277 (reverse_op): Likewise.
2278 (prepare_call_arguments): Likewise.
2279 (add_with_sets): The initial param takes an insn, but we can't
2280 yet strengthen it from rtx to rtx_insn * since it's used as a
2281 cselib_record_sets_hook callback. For now rename initial param
2282 from "insn" to "uncast_insn", and introduce a local "insn" of
2283 the stronger rtx_insn * type, with a checked cast.
2284 (compute_bb_dataflow): Strengthen local "insn" from rtx to
2286 (emit_note_insn_var_location): Likewise.
2287 (emit_notes_for_changes): Likewise.
2288 (emit_notes_for_differences): Likewise.
2289 (next_non_note_insn_var_location): Likewise for return type and
2291 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
2292 (vt_initialize): Likewise for local "insn".
2293 (delete_debug_insns): Likewise for locals "insn" and "next".
2295 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2297 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
2299 (mark_constant_pool): Likewise for local "insn".
2301 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2303 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
2305 (dead_debug_promote_uses): Likewise.
2306 (dead_debug_insert_temp): Likewise.
2308 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2310 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
2311 from const_rtx to const rtx_insn *.
2312 (store_killed_after): Likewise. Strengthen locals "last", "act"
2313 from rtx to rtx_insn *.
2314 (store_killed_before): Strengthen param "insn" from const_rtx to
2315 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
2316 (find_moveable_store): Strengthen param "insn" from rtx to
2318 (compute_store_table): Likewise for local "insn".
2319 (insert_insn_start_basic_block): Likewise for param "insn" and
2320 locals "prev", "before", "insn".
2321 (insert_store): For now, add a checked cast to rtx_insn * on the
2322 result of gen_move_insn.
2323 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
2325 (replace_store_insn): Likewise. For now, add a checked cast to
2326 rtx_insn * on the result of gen_move_insn.
2328 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2330 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
2332 (expand_sjlj_dispatch_table): Likewise.
2334 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2336 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
2337 "insn" from rtx to rtx_insn *.
2339 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2341 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
2342 "insn" from rtx to rtx_insn *.
2343 (dup_block_and_redirect): Likewise for param 3 "before".
2345 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
2346 from rtx to rtx_insn *.
2347 (move_insn_for_shrink_wrap): Likewise.
2348 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
2349 (dup_block_and_redirect): Likewise for param "before" and local
2351 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
2353 (convert_to_simple_return): Likewise for local "start".
2355 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
2356 Strengthen local "insn" from rtx to rtx_insn *, for use when
2357 invoking requires_stack_frame_p.
2359 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2361 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
2363 (speculate_expr): Likewise for locals "orig_insn_rtx",
2365 (eq_transformed_insns): Likewise for locals "i1", "i2".
2366 (check_for_new_jump): Likewise for return type and local "end".
2367 (find_new_jump): Likewise for return type and local "jump".
2368 (sel_split_edge): Likewise for local "jump".
2369 (sel_create_recovery_block): Likewise.
2370 (sel_redirect_edge_and_branch_force): Likewise.
2371 (sel_redirect_edge_and_branch): Likewise.
2373 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2375 * sel-sched.c (substitute_reg_in_expr): Strengthen local
2376 "new_insn" from rtx to rtx_insn *.
2377 (create_insn_rtx_with_rhs): Likewise for return type and for local
2379 (create_insn_rtx_with_lhs): Likewise.
2380 (create_speculation_check): Likewise for local "insn_rtx".
2381 (implicit_clobber_conflict_p): Likewise for local "insn".
2382 (get_expr_cost): Likewise.
2383 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
2384 (move_cond_jump): Likewise for locals "next", "prev", "link",
2385 "head", "from", "to".
2387 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2389 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
2390 "next" from rtx to rtx_insn *.
2391 (find_conditional_protection): Likewise for local "next".
2392 (is_conditionally_protected): Likewise for local "insn1".
2393 (is_pfree): Likewise for locals "insn1", "insn2".
2395 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2397 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
2398 from rtx to rtx_insn *.
2400 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
2401 locals "insn1", "insn2" from rtx to rtx_insn *.
2402 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
2403 locals "insn", "prev", "last_jump", "next_tail".
2404 (schedule_ebb): Likewise for params "head", "tail".
2405 (schedule_ebbs): Likewise for locals "tail", "head".
2407 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
2408 to rtx_insn on "last_insn" in one of the invocations of
2411 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2413 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
2414 "elem", "insn" from rtx to rtx_insn *.
2415 (change_spec_dep_to_hard): Likewise.
2416 (get_back_and_forw_lists): Likewise for local "con".
2417 (sd_add_dep): Likewise for locals "elem", "insn".
2418 (sd_resolve_dep): Likewise for locals "pro", "con".
2419 (sd_unresolve_dep): Likewise.
2420 (sd_delete_dep): Likewise.
2421 (chain_to_prev_insn): Likewise for local "pro".
2422 (find_inc): Likewise for locals "pro", "con".
2424 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2426 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
2428 (reg_set_between_p): Strengthen local "insn" from const_rtx to
2430 (modified_between_p): Strengthen local "insn" from rtx to
2432 (remove_reg_equal_equiv_notes_for_regno): Likewise.
2433 (keep_with_call_p): Strengthen local "i2" from const_rtx to
2436 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2438 * resource.c (next_insn_no_annul): Strengthen local "next" from
2440 (mark_referenced_resources): Likewise for local "insn".
2442 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2444 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
2446 (find_reloads): Likewise for param 1.
2447 (subst_reloads): Likewise for sole param.
2448 (find_equiv_reg): Likwise for param 2.
2449 (regno_clobbered_p): Likwise for param 2.
2450 (reload): Likewise for param 1.
2452 * caller-save.c (save_call_clobbered_regs): Strengthen local
2453 "insn" from rtx to rtx_insn *.
2454 (insert_one_insn): Likewise for local "insn".
2456 * reload.c (this_insn): Likewise for this global.
2457 (find_reloads): Likewise for param "insn".
2458 (find_reloads_toplev): Likewise.
2459 (find_reloads_address): Likewise.
2460 (subst_reg_equivs): Likewise.
2461 (update_auto_inc_notes): Likewise.
2462 (find_reloads_address_1): Likewise.
2463 (find_reloads_subreg_address): Likewise.
2464 (subst_reloads): Likewise.
2465 (find_equiv_reg): Likewise, also for local "p".
2466 (regno_clobbered_p): Likewise for param "insn".
2468 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
2470 (spill_reg_store): Likewise for the elements of this array.
2471 (remove_init_insns): Likewise for local "equiv_insn".
2472 (will_delete_init_insn_p): Likewise for param "insn".
2473 (reload): Likewise for param ""first" and local "insn".
2474 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
2476 (calculate_elim_costs_all_insns): Likewise.
2477 (delete_caller_save_insns): Likewise.
2478 (spill_failure): Likewise for param "insn".
2479 (delete_dead_insn): Likewise.
2480 (set_label_offsets): Likewise.
2481 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
2483 (elimination_costs_in_insn): Likewise for param "insn".
2484 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
2485 when referring to an insn.
2486 (set_initial_label_offsets): Likewise.
2487 (set_offsets_for_label): Strengthen param "insn" from rtx to
2489 (init_eliminable_invariants): Likewise for param "first" and local
2491 (fixup_eh_region_note): Likewise for param "insn".
2492 (reload_as_needed): Likewise for locals "prev", "insn",
2493 "old_next", "old_prev", "next".
2494 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
2496 (reload_inheritance_insn): Strengthen elements of this array from
2498 (failed_reload): Likewise for param "insn".
2499 (choose_reload_regs): Likewise for local "insn". Replace use of
2500 NULL_RTX with NULL when referring to an insn.
2501 (input_reload_insns): Strengthen elements of this array from rtx
2503 (other_input_address_reload_insns): Likewise for this global.
2504 (other_input_reload_insns): Likewise for this global.
2505 (input_address_reload_insns): Likwise for the elements of this
2507 (inpaddr_address_reload_insns): Likwise for the elements of this
2509 (output_reload_insns): Likewise for the elements of this array.
2510 (output_address_reload_insns): Likewise for the elements of this
2512 (outaddr_address_reload_insns): Likewise for the elements of this
2514 (operand_reload_insns): Likewise for this global.
2515 (other_operand_reload_insns): Likewise for this global.
2516 (other_output_reload_insns): Likewise for the elements of this
2518 (new_spill_reg_store): Likewise for the elements of this
2520 (emit_input_reload_insns): Likewise for locals "insn", "temp".
2521 Strengthen local "where" from rtx * to rtx_insn **.
2522 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
2523 from rtx to rtx_insn *.
2524 (do_input_reload): Likewise for local "insn".
2525 (do_output_reload): Likewise for local "insn".
2526 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
2527 (emit_insn_if_valid_for_reload): Likewise for return type and local
2528 "last". Add checked cast to rtx_insn when returning "insn" since
2529 this has been through emit_insn.
2530 (gen_reload): Strengthen return type and locals "last", "insn", "set"
2531 from rtx to rtx_insn *. Add checked cast to rtx_insn when
2532 returning "insn" since it's been through
2533 emit_insn_if_valid_for_reload at this point.
2534 (delete_output_reload): Strengthen param "insn" and locals
2535 "output_reload_insn", "i2" from rtx to rtx_insn *.
2536 (delete_address_reloads): Likewise for params "dead_insn",
2537 "current_insn" and locals "prev", "next".
2538 (delete_address_reloads_1): Likewise for params "dead_insn",
2539 "current_insn" and locals "prev", "i2".
2540 (inc_for_reload): Likewise for locals "last", "add_insn".
2541 (add_auto_inc_notes): Strengthen param "insn" from rtx to
2544 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
2545 param of this duplicate of the prototype from reload.h
2547 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2549 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
2551 (regstat_bb_compute_calls_crossed): Likewise.
2553 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2555 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
2557 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
2559 (regrename_analyze): Strengthen local "insn" from rtx to
2561 (scan_rtx_reg): Likewise for param "insn".
2562 (scan_rtx_address): Likewise.
2563 (scan_rtx): Likewise.
2564 (restore_operands): Likewise.
2565 (record_out_operands): Likewise.
2566 (build_def_use): Likewise for local "insn". Replace use of
2567 NULL_RTX with NULL when dealing with an insn.
2569 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2571 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
2572 * reginfo.c (reg_scan): Likewise, also for local "insn".
2573 (reg_scan_mark_refs): Likewise for param "insn".
2574 (init_subregs_of_mode): Likewise for local "insn".
2576 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2578 * regcprop.c (struct queued_debug_insn_change): Strengthen field
2579 "insn" from rtx to rtx_insn *.
2580 (replace_oldest_value_reg): Likewise for param "insn".
2581 (replace_oldest_value_addr): Likewise.
2582 (replace_oldest_value_mem): Likewise.
2583 (apply_debug_insn_changes): Likewise for local "last_insn".
2584 (copyprop_hardreg_forward_1): Likewise for local "insn".
2586 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2588 * reg-stack.c (next_flags_user): Strengthen return type and param
2589 "insn" from rtx to rtx_insn *.
2590 (straighten_stack): Likewise for param "insn".
2591 (check_asm_stack_operands): Likewise.
2592 (remove_regno_note): Likewise.
2593 (emit_pop_insn): Likewise for return type, param "insn", local
2595 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
2596 "limit" from rtx to rtx_insn *.
2597 (swap_to_top): Likewise for param "insn".
2598 (move_for_stack_reg): Likewise.
2599 (move_nan_for_stack_reg): Likewise.
2600 (swap_rtx_condition): Likewise.
2601 (compare_for_stack_reg): Likewise.
2602 (subst_all_stack_regs_in_debug_insn): Likewise.
2603 (subst_stack_regs_pat): Likewise, and local "insn2".
2604 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
2606 (subst_stack_regs): Likewise.
2607 (change_stack): Likewise.
2608 (convert_regs_1): Likewise for locals "insn", "next".
2610 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2612 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
2614 (combine_set_extension): Likewise for param "curr_insn".
2615 (transform_ifelse): Likewise for param "def_insn".
2616 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
2617 from vec<rtx> * to vec<rtx_insn *> *.
2618 (is_cond_copy_insn): Likewise for param "insn".
2619 (struct ext_state): Strengthen the four vec fields from vec<rtx>
2621 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
2622 local "def_insn" from rtx to rtx_insn *.
2623 (get_sub_rtx): Likewise for param "def_insn".
2624 (merge_def_and_ext): Likewise.
2625 (combine_reaching_defs): Likewise.
2626 (add_removable_extension): Likewise for param "insn".
2627 (find_removable_extensions): Likewise for local "insn".
2628 (find_and_remove_re): Likewise for locals "curr_insn" and
2629 "def_insn". Strengthen locals "reinsn_del_list" and
2630 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
2632 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2634 * recog.c (split_insn): Strengthen param "insn" and locals
2635 "first", "last" from rtx to rtx_insn *.
2636 (split_all_insns): Likewise for locals "insn", "next".
2637 (split_all_insns_noflow): Likewise.
2639 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2641 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
2643 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
2644 (debug_rtx_find): Likewise for param 1 "x".
2646 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
2647 const_rtx to const rtx_insn *. Likewise for local "insn".
2648 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
2649 (debug_rtx_find): Likewise for param 1 "x".
2650 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
2651 from const_rtx to const rtx_insn * within the appropriate cases of
2652 the switch statement.
2654 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
2655 Strengthen local "insns" from rtx to rtx_insn * since this is
2656 passed to a call to debug_rtx_list.
2658 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2660 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
2663 * function.c (stack_protect_epilogue): Add checked cast to
2664 rtx_insn for now when invoking predict_insn_def.
2666 * predict.c (predict_insn): Strengthen param "insn" from rtx to
2668 (predict_insn_def): Likewise.
2669 (rtl_predict_edge): Likewise for local "last_insn".
2670 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
2672 (combine_predictions_for_insn): Strengthen param "insn" from rtx
2674 (bb_estimate_probability_locally): Likewise for local "last_insn".
2675 (expensive_function_p): Likewise for local "insn".
2677 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
2678 local "jmp", since this is used when invoking predict_insn_def.
2680 2014-08-22 Marek Polacek <polacek@redhat.com>
2683 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
2685 2014-08-22 Marek Polacek <polacek@redhat.com>
2688 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
2689 a comparison in parens.
2690 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
2693 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2695 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
2698 * cprop.c (fis_get_condition): Likewise.
2700 * postreload.c (reload_cse_regs): Likewise for param "first".
2701 (reload_cse_simplify): Likewise for param "insn".
2702 (reload_cse_regs_1): Likewise for local "insn".
2703 (reload_cse_simplify_set): Likewise for param "insn".
2704 (reload_cse_simplify_operands): Likewise.
2705 (struct reg_use): Likewise for field "insn".
2706 (reload_combine_purge_insn_uses): Likewise for param "insn".
2707 (fixup_debug_insns): Likewise for params "from", "to" and local
2709 (try_replace_in_use): Likewise for local "use_insn".
2710 (reload_combine_recognize_const_pattern): Likewise for param
2711 "insn" and locals "add_moved_after_insn", "use_insn".
2712 (reload_combine_recognize_pattern): Likewise for param "insn" and
2714 (reload_combine): Likewise for locals "insn", "prev".
2715 (reload_combine_note_use): Likewise for param "insn".
2716 (move2add_use_add2_insn): Likewise.
2717 (move2add_use_add3_insn): Likewise.
2718 (reload_cse_move2add): Likewise, also for local "next".
2719 (move2add_note_store): Likewise for local "insn".
2721 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2723 * postreload-gcse.c (struct occr): Strengthen field "insn" from
2725 (struct unoccr): Likewise.
2726 (struct modifies_mem): Likewise.
2727 (alloc_mem): Likewise for local "insn".
2728 (insert_expr_in_table): Likewise for param "insn".
2729 (dump_expr_hash_table_entry): Likewise for local "insn".
2730 (oprs_unchanged_p): Likewise for param "insn".
2731 (load_killed_in_block_p): Likewise for local "setter".
2732 (record_last_reg_set_info): Likewise for param "insn".
2733 (record_last_reg_set_info_regno): Likewise.
2734 (record_last_mem_set_info): Likewise.
2735 (record_last_set_info): Likewise for local "last_set_insn".
2736 (record_opr_changes): Likewise for param "insn".
2737 (hash_scan_set): Likewise.
2738 (compute_hash_table): Likewise for local "insn".
2739 (get_avail_load_store_reg): Likewise for param "insn".
2740 (eliminate_partially_redundant_load): Likewise, also for locals
2741 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
2743 (eliminate_partially_redundant_loads): Likewise for local "insn".
2745 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2747 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
2749 (expand_binop): Likewise for locals "entry_last", "last", "insns"
2750 (expand_twoval_unop): Likewise for locals entry_last", "last".
2751 (expand_twoval_binop): Likewise.
2752 (expand_twoval_binop_libfunc): Likewise for local "insns".
2753 (widen_leading): Likewise for local "last".
2754 (expand_doubleword_clz): Likewise for local "seq". Strengthen
2755 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
2756 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
2757 (expand_parity): Likewise for locals "last" and "seq".
2758 (expand_ffs): Likewise for local "seq". Strengthen local
2759 "nonzero_label" from rtx to rtx_code_label *.
2760 (expand_absneg_bit): Strengthen local "insns" from rtx to
2762 (expand_unop_direct): Likewise for local "last".
2763 (expand_unop): Likewise for locals "last", "insns".
2764 (expand_abs_nojump): Likewise for local "last".
2765 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
2766 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
2768 (expand_copysign_absneg): Strengthen local "label" from rtx to
2770 (expand_copysign_bit): Strengthen local "insns" from rtx to
2772 (struct no_conflict_data): Likewise for fields "first", "insn".
2773 (emit_libcall_block_1): Likewise for param "insns" and locals
2774 "next", "last", "insn".
2775 (emit_libcall_block): For now, add a checked cast to rtx_insn *
2776 on "insns" when invoking emit_libcall_block_1. Ultimately we
2777 want to strengthen insns itself.
2778 (prepare_cmp_insn): Strengthen local "last" from rtx to
2780 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
2781 (prepare_float_lib_cmp): Likewise for local "insns".
2782 (emit_conditional_move): Likewise for local "last".
2783 (emit_conditional_add): Likewise.
2784 (have_sub2_insn): Likewise for local "seq".
2785 (expand_float): Likewise for local "insns". Strengthen locals
2786 "label", "neglabel" from rtx to rtx_code_label *.
2787 (expand_fix): Likewise for locals "last", "insn", "insns" (to
2788 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
2789 (expand_fixed_convert): Likewise for local "insns" (to
2791 (expand_sfix_optab): Likewise for local "last".
2792 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
2793 to rtx_code_label *.
2794 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
2795 from rtx to rtx_insn *.
2796 (expand_atomic_fetch_op): Likewise for local "insn".
2797 (maybe_legitimize_operand_same_code): Likewise for local "last".
2798 (maybe_legitimize_operands): Likewise.
2800 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2802 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
2803 "insn" from rtx to rtx_insn *.
2804 (ps_rtl_insn): Likewise for return type.
2805 (doloop_register_get): Likewise for params "head", "tail" and
2806 locals "insn", "first_insn_not_to_check".
2807 (schedule_reg_move): Likewise for local "this_insn".
2808 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
2809 of gen_move_insn for now.
2810 (reset_sched_times): Strengthen local "insn" from rtx to
2812 (permute_partial_schedule): Likewise.
2813 (duplicate_insns_of_cycles): Likewise for local "u_insn".
2814 (dump_insn_location): Likewise for param "insn".
2815 (loop_canon_p): Likewise for local "insn".
2816 (sms_schedule): Likewise.
2817 (print_partial_schedule): Likewise.
2818 (ps_has_conflicts): Likewise.
2820 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2822 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
2823 "tailp" from rtx * to rtx_insn **.
2825 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
2826 from rtx to rtx_insn *.
2827 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
2828 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
2829 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
2831 * modulo-sched.c (const_iteration_count): Strengthen return type
2832 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
2833 use of NULL_RTX with NULL when working with insns.
2834 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
2836 (sms_schedule): Likewise.
2837 * sched-rgn.c (init_ready_list): Likewise, also for locals
2838 "src_head" and "src_next_tail".
2839 (compute_block_dependences): Likewise.
2840 (free_block_dependencies): Likewise.
2841 (debug_rgn_dependencies): Likewise.
2842 (free_rgn_deps): Likewise.
2843 (compute_priorities): Likewise.
2844 (schedule_region): Likewise.
2845 * sel-sched.c (find_ebb_boundaries): Likewise.
2847 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
2848 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
2850 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2852 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
2853 from rtx to rtx_insn *.
2854 (new_seginfo): Likewise for param "insn".
2855 (create_pre_exit): Likewise for locals "last_insn",
2856 "before_return_copy", "return_copy".
2857 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
2860 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2862 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
2863 from rtx to rtx_insn *.
2864 (lra_push_insn): Likewise for 1st param.
2865 (lra_push_insn_and_update_insn_regno_info): Likewise.
2866 (lra_pop_insn): Likewise for return type.
2867 (lra_invalidate_insn_data): Likewise for 1st param.
2868 (lra_set_insn_deleted): Likewise.
2869 (lra_delete_dead_insn): Likewise.
2870 (lra_process_new_insns): Likewise for first 3 params.
2871 (lra_set_insn_recog_data): Likewise for 1st param.
2872 (lra_update_insn_recog_data): Likewise.
2873 (lra_set_used_insn_alternative): Likewise.
2874 (lra_invalidate_insn_regno_info): Likewise.
2875 (lra_update_insn_regno_info): Likewise.
2876 (lra_former_scratch_operand_p): Likewise.
2877 (lra_eliminate_regs_1): Likewise.
2878 (lra_get_insn_recog_data): Likewise.
2880 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
2883 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
2885 (substitute_within_insn): New.
2886 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
2887 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
2888 Replace call to "substitute" with call to substitute_within_insn.
2890 * lra-constraints.c (curr_insn): Strengthen from rtx to
2892 (get_equiv_with_elimination): Likewise for param "insn".
2893 (match_reload): Strengthen params "before" and "after" from rtx *
2895 (emit_spill_move): Likewise for return type. Add a checked cast
2896 to rtx_insn * on result of gen_move_insn for now.
2897 (check_and_process_move): Likewise for local "before". Replace
2898 NULL_RTX with NULL when referring to insns.
2899 (process_addr_reg): Strengthen params "before" and "after" from
2900 rtx * to rtx_insn **.
2901 (insert_move_for_subreg): Likewise.
2902 (simplify_operand_subreg): Strengthen locals "before" and "after"
2903 from rtx to rtx_insn *.
2904 (process_address_1): Strengthen params "before" and "after" from
2905 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
2907 (process_address): Strengthen params "before" and "after" from
2908 rtx * to rtx_insn **.
2909 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
2910 (curr_insn_transform): Strengthen locals "before" and "after"
2911 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
2913 (loc_equivalence_callback): Update cast of "data", changing
2914 resulting type from rtx to rtx_insn *.
2915 (substitute_pseudo_within_insn): New.
2916 (inherit_reload_reg): Strengthen param "insn" from rtx to
2917 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
2918 NULL when referring to insns. Add a checked cast to rtx_insn *
2919 when using usage_insn to invoke lra_update_insn_regno_info.
2920 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
2921 likewise for locals "restore", "save". Add checked casts to
2922 rtx_insn * when using usage_insn to invoke
2923 lra_update_insn_regno_info and lra_process_new_insns. Replace
2924 NULL_RTX with NULL when referring to insns.
2925 (split_if_necessary): Strengthen param "insn" from rtx to
2927 (update_ebb_live_info): Likewise for params "head", "tail" and local
2929 (get_last_insertion_point): Likewise for return type and local "insn".
2930 (get_live_on_other_edges): Likewise for local "last".
2931 (inherit_in_ebb): Likewise for params "head", "tail" and locals
2932 "prev_insn", "next_insn", "restore".
2933 (remove_inheritance_pseudos): Likewise for local "prev_insn".
2934 (undo_optional_reloads): Likewise for local "insn".
2936 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
2938 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
2940 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
2942 (spill_pseudos): Likewise for local "insn".
2943 (init_elimination): Likewise.
2944 (process_insn_for_elimination): Likewise for param "insn".
2946 * lra-lives.c (curr_insn): Likewise.;
2948 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
2949 (remove_pseudos): Likewise for param "insn".
2950 (spill_pseudos): Likewise for local "insn".
2951 (lra_final_code_change): Likewise for locals "insn", "curr".
2953 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
2954 (lra_set_insn_deleted): Likewise.
2955 (lra_delete_dead_insn): Likewise, and for local "prev".
2956 (new_insn_reg): Likewise for param "insn".
2957 (lra_set_insn_recog_data): Likewise.
2958 (lra_update_insn_recog_data): Likewise.
2959 (lra_set_used_insn_alternative): Likewise.
2960 (get_insn_freq): Likewise.
2961 (invalidate_insn_data_regno_info): Likewise.
2962 (lra_invalidate_insn_regno_info): Likewise.
2963 (lra_update_insn_regno_info): Likewise.
2964 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
2966 (lra_push_insn_1): Strengthen param "insn" from rtx to
2968 (lra_push_insn): Likewise.
2969 (lra_push_insn_and_update_insn_regno_info): Likewise.
2970 (lra_pop_insn): Likewise for return type and local "insn".
2971 (push_insns): Likewise for params "from", "to", and local "insn".
2972 (setup_sp_offset): Likewise for params "from", "last" and locals
2974 (lra_process_new_insns): Likewise for params "insn", "before",
2975 "after" and local "last".
2976 (struct sloc): Likewise for field "insn".
2977 (lra_former_scratch_operand_p): Likewise for param "insn".
2978 (remove_scratches): Likewise for locals "insn", "last".
2979 (check_rtl): Likewise for local "insn".
2980 (add_auto_inc_notes): Likewise for param "insn".
2981 (update_inc_notes): Likewise for local "insn".
2982 (lra): Replace NULL_RTX with NULL when referring to insn.
2984 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2986 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
2988 (resolve_reg_notes): Likewise.
2989 (resolve_simple_move): Likewise for return type, param "insn", and
2990 locals "insns", "minsn".
2991 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
2992 (resolve_use): Likewise.
2993 (resolve_debug): Likewise.
2994 (find_decomposable_shift_zext): Likewise.
2995 (resolve_shift_zext): Likewise for return type, param "insn", and
2996 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
2997 (decompose_multiword_subregs): Likewise for local "insn",
2998 "orig_insn", "decomposed_shift", "end".
3000 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3002 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3003 param "insns" from rtx to rtx_insn *.
3005 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3007 (struct iv_to_split): Likewise.
3008 (loop_exit_at_end_p): Likewise for local "insn".
3009 (split_edge_and_insert): Likewise for param "insns".
3010 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3011 and locals "seq", "jump".
3012 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3013 "branch_code"; update invocations of compare_and_jump_seq to
3014 eliminate NULL_RTX in favor of NULL.
3015 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3017 (reset_debug_uses_in_loop): Likewise.
3018 (analyze_insn_to_expand_var): Likewise for param "insn".
3019 (analyze_iv_to_split_insn): Likewise.
3020 (analyze_insns_in_loop): Likewise for local "insn".
3021 (insert_base_initialization): Likewise for param
3022 "insn" and local "seq".
3023 (split_iv): Likewise for param "insn" and local "seq".
3024 (expand_var_during_unrolling): Likewise for param "insn".
3025 (insert_var_expansion_initialization): Likewise for local "seq".
3026 (combine_var_copies_in_loop_exit): Likewise.
3027 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3029 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3030 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3033 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3035 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3037 (iv_analyze_result): Likewise.
3038 (iv_analyze_expr): Likewise.
3041 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3042 local "def_insn" from rtx to rtx_insn *.
3043 (get_biv_step_1): Likewise for local "insn".
3044 (iv_analyze_expr): Likewise for param "insn".
3045 (iv_analyze_def): Likewise for local "insn".
3046 (iv_analyze_op): Likewise for param "insn".
3047 (iv_analyze): Likewise.
3048 (iv_analyze_result): Likewise.
3050 (suitable_set_for_replacement): Likewise.
3051 (simplify_using_initial_values): Likewise for local "insn".
3052 (iv_number_of_iterations): Likewise for param "insn".
3053 (check_simple_exit): Add checked cast to rtx_insn when invoking
3054 iv_number_of_iterations for now (until get_condition is
3057 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3058 "insn" from rtx to rtx_insn *.
3059 (analyze_insns_in_loop): Likewise for local "insn".
3061 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3063 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3065 (struct invariant): Likewise.
3066 (hash_invariant_expr_1): Likewise for param "insn".
3067 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3068 (find_exits): Likewise for local "insn".
3069 (create_new_invariant): Likewise for param "insn".
3070 (check_dependencies): Likewise.
3071 (find_invariant_insn): Likewise.
3072 (record_uses): Likewise.
3073 (find_invariants_insn): Likewise.
3074 (find_invariants_bb): Likewise for local "insn".
3075 (get_pressure_class_and_nregs): Likewise for param "insn".
3076 (calculate_loop_reg_pressure): Likewise for local "insn".
3078 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3080 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3082 (add_test): Likewise for locals "seq", "jump".
3083 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3085 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3087 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3089 (rebuild_jump_labels_chain): Likewise for param "chain".
3091 * cfgexpand.c (pass_expand::execute): Add checked cast to
3092 rtx_insn * when calling rebuild_jump_labels_chain in region where
3093 we know e->insns.r is non-NULL.
3095 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3097 (rebuild_jump_labels): Likewise.
3098 (rebuild_jump_labels_chain): Likewise for param "chain".
3099 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3100 (init_label_info): Likewise for param "f".
3101 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3102 "prev_nonjump_insn".
3103 (mark_all_labels): Likewise for param "f" and locals "insn",
3104 "prev_nonjump_insn".
3106 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3108 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3109 from rtx to rtx_insn *insn.
3110 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3111 (ira_add_allocno_copy): Likewise.
3112 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3114 (ira_create_copy): Likewise.
3115 (ira_add_allocno_copy): Likewise.
3116 (create_bb_allocnos): Likewise for local "insn".
3117 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3118 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3119 process_regs_for_copy for rtx_insn * param.
3120 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3121 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3122 process_regs_for_copy for rtx_insn * param.
3123 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3124 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3125 (record_operand_costs): Likewise.
3126 (scan_one_insn): Likewise for return type, and for param "insn".
3127 (process_bb_for_costs): Likewise for local "insn".
3128 (process_bb_node_for_hard_reg_moves): Likewise.
3129 * ira-emit.c (struct move): Likewise for field "insn".
3130 (create_move): Eliminate use of NULL_RTX when dealing with an
3132 (emit_move_list): Strengthen return type and locals "result",
3133 "insn" from rtx to rtx_insn *insn.
3134 (emit_moves): Likewise for locals "insns", "tmp".
3135 (ira_emit): Likewise for local "insn".
3136 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3138 (find_call_crossed_cheap_reg): Likewise.
3139 (process_bb_node_lives): Likewise for local "insn".
3140 * ira.c (decrease_live_ranges_number): Likewise.
3141 (compute_regs_asm_clobbered): Likewise.
3142 (build_insn_chain): Likewise.
3143 (find_moveable_pseudos): Likewise, also locals "def_insn",
3144 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
3145 to rtx_insn **. Add a checked cast when assigning from
3146 "closest_use" into closest_uses array in a region where we know
3147 it's a non-NULL insn.
3148 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3150 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3151 "last_interesting_insn", "uin".
3152 (move_unallocated_pseudos): Likewise for locals "def_insn",
3153 "move_insn", "newinsn".
3155 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3157 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
3158 Strengthen locals "done_label", "do_error" from rtx to
3160 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
3161 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
3163 (ubsan_expand_si_overflow_neg_check): Likewise for locals
3164 "done_label", "do_error" to rtx_code_label * and local "last" to
3166 (ubsan_expand_si_overflow_mul_check): Likewise for locals
3167 "done_label", "do_error", "large_op0", "small_op0_large_op1",
3168 "one_small_one_large", "both_ops_large", "after_hipart_neg",
3169 "after_lopart_neg", "do_overflow", "hipart_different" to
3170 rtx_code_label * and local "last" to rtx_insn *.
3172 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3174 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
3175 "insn" and "move_insn" from rtx to rtx_insn *.
3177 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3179 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
3181 (cheap_bb_rtx_cost_p): Likewise.
3182 (first_active_insn): Likewise for return type and local "insn".
3183 (last_active_insn): Likewise for return type and locals "insn",
3185 (struct noce_if_info): Likewise for fields "jump", "insn_a",
3187 (end_ifcvt_sequence): Likewise for return type and locals "insn",
3189 (noce_try_move): Likewise for local "seq".
3190 (noce_try_store_flag): Likewise.
3191 (noce_try_store_flag_constants): Likewise.
3192 (noce_try_addcc): Likewise.
3193 (noce_try_store_flag_mask): Likewise.
3194 (noce_try_cmove): Likewise.
3195 (noce_try_minmax): Likewise.
3196 (noce_try_abs): Likewise.
3197 (noce_try_sign_mask): Likewise.
3198 (noce_try_bitop): Likewise.
3199 (noce_can_store_speculate_p): Likewise for local "insn".
3200 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
3202 (check_cond_move_block): Likewise for local "insn".
3203 (cond_move_convert_if_block): Likewise.
3204 (cond_move_process_if_block): Likewise for locals "seq",
3206 (noce_find_if_block): Likewise for local "jump".
3207 (merge_if_block): Likewise for local "last".
3208 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
3209 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
3210 (block_has_only_trap): Likewise for return type and local "trap".
3211 (find_if_case_1): Likewise for local "jump".
3212 (dead_or_predicable): Likewise for locals "head", "end", "jump",
3215 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3217 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
3218 "last_insn", "loop_end" from rtx to rtx_insn *.
3220 * hw-doloop.c (scan_loop): Likewise for local "insn".
3221 (discover_loop): Likewise for param "tail_insn".
3222 (discover_loops): Likewise for local "tail".
3224 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
3225 cast to rtx_insn * when assigning from an rtx local to a
3226 hwloop_info's "last_insn" field.
3228 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3230 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
3231 (add_delay_dependencies): Strengthen local "pro" from rtx to
3233 (recompute_todo_spec): Likewise.
3234 (dep_cost_1): Likewise for locals "insn", "used".
3235 (schedule_insn): Likewise for local "dbg".
3236 (schedule_insn): Likewise for locals "pro", "next".
3237 (unschedule_insns_until): Likewise for local "con".
3238 (restore_pattern): Likewise for local "next".
3239 (estimate_insn_tick): Likewise for local "pro".
3240 (resolve_dependencies): Likewise for local "next".
3241 (fix_inter_tick): Likewise.
3242 (fix_tick_ready): Likewise for local "pro".
3243 (add_to_speculative_block): Likewise for locals "check", "twin",
3245 (sched_extend_bb): Likewise for locals "end", "insn".
3246 (init_before_recovery): Likewise for local "x".
3247 (sched_create_recovery_block): Likewise for local "barrier".
3248 (create_check_block_twin): Likewise for local "pro".
3249 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
3251 (unlink_bb_notes): Update for change to type of bb_header.
3252 Strengthen locals "prev", "label", "note", "next" from rtx to
3254 (clear_priorities): Likewise for local "pro".
3256 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3258 * gcse.c (struct occr): Strengthen field "insn" from rtx to
3260 (test_insn): Likewise for this global.
3261 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
3263 (oprs_anticipatable_p): Likewise.
3264 (oprs_available_p): Likewise.
3265 (insert_expr_in_table): Strengthen param "insn" from rtx to
3267 (hash_scan_set): Likewise.
3268 (hash_scan_clobber): Likewise.
3269 (hash_scan_call): Likewise.
3270 (hash_scan_insn): Likewise.
3271 (compute_hash_table_work): Likewise for local "insn".
3272 (process_insert_insn): Likewise for return type and local "pat".
3273 (insert_insn_end_basic_block): Likewise for locals "new_insn",
3274 "pat", "pat_end", "maybe_cc0_setter".
3275 (pre_edge_insert): Likewise for local "insn".
3276 (pre_insert_copy_insn): Likewise for param "insn".
3277 (pre_insert_copies): Likewise for local "insn".
3278 (struct set_data): Likewise for field "insn".
3279 (single_set_gcse): Likewise for param "insn".
3280 (gcse_emit_move_after): Likewise.
3281 (pre_delete): Likewise for local "insn".
3282 (update_bb_reg_pressure): Likewise for param "from" and local
3284 (should_hoist_expr_to_dom): Likewise for param "from".
3285 (hoist_code): Likewise for local "insn".
3286 (get_pressure_class_and_nregs): Likewise for param "insn".
3287 (calculate_bb_reg_pressure): Likewise for local "insn".
3288 (compute_ld_motion_mems): Likewise.
3290 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3292 * genpeep.c (main): Rename param back from "uncast_ins1" to
3293 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
3296 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
3298 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3301 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
3302 documentation to state it is only for VSX operations.
3304 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
3305 constraint only active if VSX.
3307 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
3308 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
3311 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3313 * fwprop.c (single_def_use_dom_walker::before_dom_children):
3314 Strengthen local "insn" from rtx to rtx_insn *.
3315 (use_killed_between): Likewise for param "target_insn".
3316 (all_uses_available_at): Likewise for param "target_insn" and
3318 (update_df_init): Likewise for params "def_insn", "insn".
3319 (update_df): Likewise for param "insn".
3320 (try_fwprop_subst): Likewise for param "def_insn" and local
3322 (free_load_extend): Likewise for param "insn".
3323 (forward_propagate_subreg): Likewise for param "def_insn" and
3325 (forward_propagate_asm): Likewise for param "def_insn" and local
3327 (forward_propagate_and_simplify): Likewise for param "def_insn"
3328 and local "use_insn".
3329 (forward_propagate_into): Likewise for locals "def_insn" and
3332 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3334 * function.c (emit_initial_value_sets): Strengthen local "seq"
3335 from rtx to rtx_insn *.
3336 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
3338 (instantiate_virtual_regs): Likewise for local "insn".
3339 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
3340 (reorder_blocks_1): Likewise for param "insns" and local "insn".
3341 (expand_function_end): Likewise for locals "insn" and "seq".
3342 (epilogue_done): Likewise for local "insn".
3343 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
3345 (reposition_prologue_and_epilogue_notes): Likewise for locals
3346 "insn", "last", "note", "first".
3347 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
3348 (pass_match_asm_constraints::execute): Likewise for local "insn".
3350 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3352 * output.h (final_scan_insn): Strengthen return type from rtx to
3354 (final_forward_branch_p): Likewise for param.
3355 (current_output_insn): Likewise for this global.
3357 * final.c (rtx debug_insn): Likewise for this variable.
3358 (current_output_insn): Likewise.
3359 (get_attr_length_1): Rename param "insn" to "uncast_insn",
3360 adding "insn" back in as an rtx_insn * with a checked cast, so
3361 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
3363 (compute_alignments): Strengthen local "label" from rtx to
3365 (shorten_branches): Rename param from "first" to "uncast_first",
3366 introducing a new local rtx_insn * "first" using a checked cast to
3367 effectively strengthen "first" from rtx to rtx_insn * without
3368 affecting the type signature. Strengthen locals "insn", "seq",
3369 "next", "label" from rtx to rtx_insn *.
3370 (change_scope): Strengthen param "orig_insn" and local "insn" from
3372 (final_start_function): Rename param from "first" to "uncast_first",
3373 introducing a new local rtx_insn * "first" using a checked cast to
3374 effectively strengthen "first" from rtx to rtx_insn * without
3375 affecting the type signature. Strengthen local "insn" from rtx to
3377 (dump_basic_block_info): Strengthen param "insn" from rtx to
3379 (final): Rename param from "first" to "uncast_first",
3380 introducing a new local rtx_insn * "first" using a checked cast to
3381 effectively strengthen "first" from rtx to rtx_insn * without
3382 affecting the type signature. Strengthen locals "insn", "next"
3383 from rtx to rtx_insn *.
3384 (output_alternate_entry_point): Strengthen param "insn" from rtx to
3386 (call_from_call_insn): Strengthen param "insn" from rtx to
3388 (final_scan_insn): Rename param from "insn" to "uncast_insn",
3389 introducing a new local rtx_insn * "insn" using a checked cast to
3390 effectively strengthen "insn" from rtx to rtx_insn * without
3391 affecting the type signature. Strengthen return type and locals
3392 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
3393 now-redundant checked cast to rtx_insn * from both invocations of
3394 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
3395 introducing a local "call_insn" for use when invoking
3396 call_from_call_insn.
3397 (notice_source_line): Strengthen param "insn" from rtx to
3399 (leaf_function_p): Likewise for local "insn".
3400 (final_forward_branch_p): Likewise.
3401 (leaf_renumber_regs): Likewise for param "first".
3402 (rest_of_clean_state): Likewise for locals "insn" and "next".
3403 (self_recursive_call_p): Likewise for param "insn".
3404 (collect_fn_hard_reg_usage): Likewise for local "insn".
3405 (get_call_fndecl): Likewise for param "insn".
3406 (get_call_cgraph_rtl_info): Likewise.
3407 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
3408 introducing a new local rtx_insn * "insn" using a checked cast to
3409 effectively strengthen "insn" from rtx to rtx_insn * without
3410 affecting the type signature.
3412 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
3413 cast when assigning from param "insn" to current_output_insn.
3414 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
3415 so that we can assign it back to current_output_insn.
3417 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3419 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
3420 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
3421 atmxt540s and atmxt540sreva devices.
3422 * config/avr/avr-tables.opt: Regenerate.
3423 * config/avr/t-multilib: Regenerate.
3424 * doc/avr-mmcu.texi: Regenerate.
3426 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3428 * expr.c (convert_move): Strengthen local "insns" from rtx to
3430 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
3431 "top_label" from rtx to rtx_code_label *.
3432 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
3434 (emit_single_push_insn): Likewise for locals "prev", "last".
3435 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
3436 to rtx_code_label *.
3437 (store_constructor): Likewise for locals "loop_start", "loop_end".
3438 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
3440 (expand_expr_real_2): Likewise.
3441 (expand_expr_real_1): Strengthen local "label" from rtx to
3444 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3446 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
3447 from rtx to rtx_insn *.
3448 (store_bit_field_1): Likewise.
3449 (extract_bit_field_1): Likewise.
3450 (expand_mult_const): Likewise for local "insns".
3451 (expmed_mult_highpart): Strengthen local "label" from rtx to
3453 (expand_smod_pow2): Likewise.
3454 (expand_sdiv_pow2): Likewise.
3455 (expand_divmod): Strengthen locals "last", "insn" from rtx to
3456 rtx_insn *. Strengthen locals "label", "label1", "label2",
3457 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
3458 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
3459 (emit_store_flag): Likewise.
3460 (emit_store_flag_force): Strengthen local "label" from rtx to
3462 (do_cmp_and_jump): Likewise for param "label".
3464 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3466 * explow.c (force_reg): Strengthen local "insn" from rtx to
3468 (adjust_stack_1): Likewise.
3469 (allocate_dynamic_stack_space): Likewise. Strengthen locals
3470 "final_label", "available_label", "space_available" from rtx to
3472 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
3473 (anti_adjust_stack_and_probe): Likewise.
3475 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3477 * except.h (sjlj_emit_function_exit_after): Strengthen param
3478 "after" from rtx to rtx_insn *. This is only called with
3479 result of get_last_insn (in function.c) so type-change should be
3482 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
3483 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
3484 to rtx_insn *. These fields are only used from except.c so this
3485 type-change should be self-contained to this patch.
3487 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
3488 local "last" from rtx to rtx_insn *.
3489 (dw2_build_landing_pads): Likewise for local "seq".
3490 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
3491 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
3492 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
3494 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
3496 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
3497 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
3498 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
3499 referring to an insn. Strengthen local "dispatch_label" from
3500 rtx to rtx_code_label *.
3501 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
3503 (expand_eh_return): Strengthen local "around_label" from
3504 rtx to rtx_code_label *.
3505 (convert_to_eh_region_ranges): Strengthen locals "iter",
3506 "last_action_insn", "first_no_action_insn",
3507 "first_no_action_insn_before_switch",
3508 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
3510 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3512 * dwarf2out.c (last_var_location_insn): Strengthen this variable
3513 from rtx to rtx_insn *.
3514 (cached_next_real_insn): Likewise.
3515 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
3517 (dwarf2out_var_location): Strengthen locals "next_real",
3518 "next_note", "expected_next_loc_note", "last_start", "insn" from
3521 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3523 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
3524 from rtx to rtx_insn *.
3525 (create_pseudo_cfg): Likewise for local "insn".
3527 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3529 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
3530 from rtx to rtx_insn *.
3531 (df_bb_regno_last_def_find): Likewise.
3533 * df-problems.c (df_rd_bb_local_compute): Likewise.
3534 (df_lr_bb_local_compute): Likewise.
3535 (df_live_bb_local_compute): Likewise.
3536 (df_chain_remove_problem): Likewise.
3537 (df_chain_create_bb): Likewise.
3538 (df_word_lr_bb_local_compute): Likewise.
3539 (df_remove_dead_eq_notes): Likewise for param "insn".
3540 (df_note_bb_compute): Likewise for local "insn".
3541 (simulate_backwards_to_point): Likewise.
3542 (df_md_bb_local_compute): Likewise.
3544 * df-scan.c (df_scan_free_bb_info): Likewise.
3545 (df_scan_start_dump): Likewise.
3546 (df_scan_start_block): Likewise.
3547 (df_install_ref_incremental): Likewise for local "insn".
3548 (df_insn_rescan_all): Likewise.
3549 (df_reorganize_refs_by_reg_by_insn): Likewise.
3550 (df_reorganize_refs_by_insn_bb): Likewise.
3551 (df_recompute_luids): Likewise.
3552 (df_bb_refs_record): Likewise.
3553 (df_update_entry_exit_and_calls): Likewise.
3554 (df_bb_verify): Likewise.
3556 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3558 * ddg.h (struct ddg_node): Strengthen fields "insn" and
3559 "first_note" from rtx to rtx_insn *.
3560 (get_node_of_insn): Likewise for param 2 "insn".
3561 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
3563 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
3565 (mem_write_insn_p): Likewise.
3566 (mem_access_insn_p): Likewise.
3567 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
3568 (def_has_ccmode_p): Likewise for param "insn".
3569 (add_cross_iteration_register_deps): Likewise for locals
3570 "def_insn" and "use_insn".
3571 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
3572 (build_intra_loop_deps): Likewise for local "src_insn".
3573 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
3575 (get_node_of_insn): Likewise for param "insn".
3577 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3579 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
3580 (deletable_insn_p): Strengthen param "insn" from rtx to
3581 rtx_insn *. Add checked cast to rtx_call_insn when invoking
3582 find_call_stack_args, since this is guarded by CALL_P (insn).
3583 (marked_insn_p): Strengthen param "insn" from rtx to
3585 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
3586 invoking find_call_stack_args, since this is guarded by
3588 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
3589 rtx_insn *; we know this is an insn since this was called by
3591 (mark_nonreg_stores_2): Likewise.
3592 (mark_nonreg_stores): Strengthen param "insn" from rtx to
3594 (find_call_stack_args): Strengthen param "call_insn" from rtx to
3595 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
3597 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
3598 from rtx to rtx_insn *.
3599 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
3601 (delete_unmarked_insns): Likewise for locals "insn", "next".
3602 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
3603 (mark_reg_dependencies): Likewise for param "insn".
3604 (rest_of_handle_ud_dce): Likewise for local "insn".
3605 (word_dce_process_block): Likewise.
3606 (dce_process_block): Likewise.
3608 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3610 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
3611 from rtx to rtx_insn *.
3612 (struct change_cc_mode_args): Likewise for field "insn".
3613 (this_insn): Strengthen from rtx to rtx_insn *.
3614 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
3616 (validate_canon_reg): Strengthen param "insn" from rtx to
3618 (canon_reg): Likewise.
3619 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
3621 (record_jump_equiv): Strengthen param "insn" from rtx to
3623 (try_back_substitute_reg): Likewise, also for locals "prev",
3625 (find_sets_in_insn): Likewise for param "insn".
3626 (canonicalize_insn): Likewise.
3627 (cse_insn): Likewise. Add a checked cast.
3628 (invalidate_from_clobbers): Likewise for param "insn".
3629 (invalidate_from_sets_and_clobbers): Likewise.
3630 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
3632 (cse_prescan_path): Strengthen local "insn" from rtx to
3634 (cse_extended_basic_block): Likewise for locals "insn" and
3636 (cse_main): Likewise for param "f".
3637 (check_for_label_ref): Likewise for local "insn".
3638 (set_live_p): Likewise for second param ("insn").
3639 (insn_live_p): Likewise for first param ("insn") and for local
3641 (cse_change_cc_mode_insn): Likewise for first param "insn".
3642 (cse_change_cc_mode_insns): Likewise for first and second params
3644 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
3646 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
3649 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
3650 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3651 Anna Tikhonova <anna.tikhonova@intel.com>
3652 Ilya Tocar <ilya.tocar@intel.com>
3653 Andrey Turetskiy <andrey.turetskiy@intel.com>
3654 Ilya Verbin <ilya.verbin@intel.com>
3655 Kirill Yukhin <kirill.yukhin@intel.com>
3656 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3658 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
3660 * config/i386/sse.md
3661 (define_mode_iterator VI248_AVX2): Delete.
3662 (define_mode_iterator VI2_AVX2_AVX512BW): New.
3663 (define_mode_iterator VI48_AVX2): Ditto.
3664 (define_insn <shift_insn><mode>3): Delete.
3665 (define_insn "<shift_insn><mode>3<mask_name>" with
3666 VI2_AVX2_AVX512BW): New.
3667 (define_insn "<shift_insn><mode>3<mask_name>" with
3670 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
3671 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3672 Anna Tikhonova <anna.tikhonova@intel.com>
3673 Ilya Tocar <ilya.tocar@intel.com>
3674 Andrey Turetskiy <andrey.turetskiy@intel.com>
3675 Ilya Verbin <ilya.verbin@intel.com>
3676 Kirill Yukhin <kirill.yukhin@intel.com>
3677 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3679 * config/i386/sse.md
3680 (define_mode_iterator VI4F_BRCST32x2): New.
3681 (define_mode_attr 64x2_mode): Ditto.
3682 (define_mode_attr 32x2mode): Ditto.
3683 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
3684 with VI4F_BRCST32x2): Ditto.
3685 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
3686 with V16FI mode iterator): Ditto.
3687 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
3689 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
3690 with VI8F_BRCST64x2): Ditto.
3692 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
3693 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3694 Anna Tikhonova <anna.tikhonova@intel.com>
3695 Ilya Tocar <ilya.tocar@intel.com>
3696 Andrey Turetskiy <andrey.turetskiy@intel.com>
3697 Ilya Verbin <ilya.verbin@intel.com>
3698 Kirill Yukhin <kirill.yukhin@intel.com>
3699 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3701 * config/i386/sse.md
3702 (define_mode_iterator VI8_AVX512VL): New.
3703 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
3705 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
3707 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
3708 (define_mode_iterator V48_AVX512VL): New.
3709 (define_mode_iterator V12_AVX512VL): Ditto.
3710 (define_insn <avx512>_load<mode>_mask): Split into two similar
3711 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
3712 Refactor output template.
3713 (define_insn "<avx512>_store<mode>_mask"): Ditto.
3715 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3717 * cprop.c (struct occr): Strengthen field "insn" from rtx to
3719 (reg_available_p): Likewise for param "insn".
3720 (insert_set_in_table): Likewise.
3721 (hash_scan_set): Likewise.
3722 (hash_scan_insn): Likewise.
3723 (make_set_regs_unavailable): Likewise.
3724 (compute_hash_table_work): Likewise for local "insn".
3725 (reg_not_set_p): Strengthen param "insn" from const_rtx to
3727 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
3728 (try_replace_reg): Likewise.
3729 (find_avail_set): Likewise.
3730 (cprop_jump): Likewise for params "setcc", "jump".
3731 (constprop_register): Likewise for param "insn".
3732 (cprop_insn): Likewise.
3733 (do_local_cprop): Likewise.
3734 (local_cprop_pass): Likewise for local "insn".
3735 (bypass_block): Likewise for params "setcc" and "jump".
3736 (bypass_conditional_jumps): Likewise for locals "setcc" and
3738 (one_cprop_pass): Likewise for local "insn".
3740 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3742 * compare-elim.c (struct comparison_use): Strengthen field "insn"
3743 from rtx to rtx_insn *.
3744 (struct comparison): Likewise, also for field "prev_clobber".
3745 (conforming_compare): Likewise for param "insn".
3746 (arithmetic_flags_clobber_p): Likewise.
3747 (find_flags_uses_in_insn): Likewise.
3748 (find_comparison_dom_walker::before_dom_children): Likewise for
3749 locals "insn", "next", "last_clobber".
3750 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
3752 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3754 * combine-stack-adj.c (struct csa_reflist): Strengthen field
3755 "insn" from rtx to rtx_insn *.
3756 (single_set_for_csa): Likewise for param "insn".
3757 (record_one_stack_ref): Likewise.
3758 (try_apply_stack_adjustment): Likewise.
3759 (struct record_stack_refs_data): Likewise for field "insn".
3760 (maybe_move_args_size_note): Likewise for params "last" and "insn".
3761 (prev_active_insn_bb): Likewise for return type and param "insn".
3762 (next_active_insn_bb): Likewise.
3763 (force_move_args_size_note): Likewise for params "prev" and "last"
3764 and locals "test", "next_candidate", "prev_candidate".
3765 (combine_stack_adjustments_for_block): Strengthen locals
3766 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
3769 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3771 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
3772 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
3773 (subst_insn): Likewise for this variable.
3774 (added_links_insn): Likewise.
3775 (struct insn_link): Likewise for field "insn".
3776 (alloc_insn_link): Likewise for param "insn".
3777 (struct undobuf): Likewise for field "other_insn".
3778 (find_single_use): Likewise for param "insn" and local "next".
3779 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
3780 (delete_noop_moves): Likewise for locals "insn", "next".
3781 (create_log_links): Likewise for locals "insn", "use_insn".
3782 Strengthen local "next_use" from rtx * to rtx_insn **.
3783 (insn_a_feeds_b): Likewise for params "a", "b".
3784 (combine_instructions): Likewise for param "f" and locals "insn",
3785 "next", "prev", "first", "last_combined_insn", "link", "link1",
3786 "temp". Replace use of NULL_RTX with NULL when referring to
3788 (setup_incoming_promotions): Likewise for param "first"
3789 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
3790 (can_combine_p): Likewise for params "insn", "i3", "pred",
3791 "pred2", "succ", "succ2" and for local "p".
3792 (combinable_i3pat): Likewise for param "i3".
3793 (cant_combine_insn_p): Likewise for param "insn".
3794 (likely_spilled_retval_p): Likewise.
3795 (adjust_for_new_dest): Likewise.
3796 (update_cfg_for_uncondjump): Likewise, also for local "insn".
3797 (try_combine): Likewise for return type and for params "i3", "i2",
3798 "i1", "i0", "last_combined_insn", and for locals "insn",
3799 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
3800 "i0_insn". Eliminate local "tem" in favor of new locals
3801 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
3802 checked cast for now to rtx_insn * on the return type of
3803 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
3805 (find_split_point): Strengthen param "insn" from rtx to
3807 (simplify_set): Likewise for local "other_insn".
3808 (recog_for_combine): Likewise for param "insn".
3809 (record_value_for_reg): Likewise.
3810 (record_dead_and_set_regs_1): Likewise for local
3812 (record_dead_and_set_regs): Likewise for param "insn".
3813 (record_promoted_value): Likewise.
3814 (check_promoted_subreg): Likewise.
3815 (get_last_value_validate): Likewise.
3816 (reg_dead_at_p): Likewise.
3817 (move_deaths): Likewise for param "to_insn".
3818 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
3819 and locals "place", "place2", "cc0_setter". Eliminate local "tem
3820 in favor of new locals "tem_note" and "tem_insn", the latter being
3822 (distribute_links): Strengthen locals "place", "insn" from rtx to
3825 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3827 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
3829 (can_delete_label_p): Require a const rtx_code_label * rather than
3831 (delete_insn): Add checked cast to rtx_code_label * when we know
3832 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
3834 (delete_insn_chain): Strengthen locals "prev" and "current" from
3835 rtx to rtx_insn *. Add a checked cast when assigning from
3836 "finish" (strengthening the params will come later). Add a
3837 checked cast to rtx_note * in region where we know
3839 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
3841 (compute_bb_for_insn): Likewise.
3842 (free_bb_for_insn): Likewise for local "insn".
3843 (compute_bb_for_insn): Likewise.
3844 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
3845 local "insn" from rtx to rtx_insn *
3846 (flow_active_insn_p): Require a const rtx_insn * rather than a
3848 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
3850 (can_fallthru): Likewise for locals "insn" and "insn2".
3851 (bb_note): Likewise for local "note".
3852 (first_insn_after_basic_block_note): Likewise for local "note" and
3854 (rtl_split_block): Likewise for locals "insn" and "next".
3855 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
3857 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
3858 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
3860 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
3861 them), "kill_from", "barrier", "new_insn".
3862 (patch_jump_insn): Likewise for params "insn", "old_label".
3863 (redirect_branch_edge): Likewise for locals "old_label", "insn".
3864 (force_nonfallthru_and_redirect): Likewise for locals "insn",
3865 "old_label", "new_label".
3866 (rtl_tidy_fallthru_edge): Likewise for local "q".
3867 (rtl_split_edge): Likewise for locals "before", "last".
3868 (commit_one_edge_insertion): Likewise for locals "before",
3869 "after", "insns", "tmp", "last", adding a checked cast where
3870 currently necessary.
3871 (commit_edge_insertions): Likewise.
3872 (rtl_dump_bb): Likewise for locals "insn", "last".
3873 (print_rtl_with_bb): Likewise for local "x".
3874 (rtl_verify_bb_insns): Likewise for local "x".
3875 (rtl_verify_bb_pointers): Likewise for local "insn".
3876 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
3878 (rtl_verify_fallthru): Likewise for local "insn".
3879 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
3880 (purge_dead_edges): Likewise for local "insn".
3881 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
3882 (skip_insns_after_block): Likewise for return type and for locals
3883 "insn", "last_insn", "next_head", "prev".
3884 (record_effective_endpoints): Likewise for locals "next_insn",
3886 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
3887 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
3888 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
3889 (duplicate_insn_chain): For now, add checked cast from rtx to
3890 rtx_insn * when returning insn.
3891 (cfg_layout_duplicate_bb): Likewise for local "insn".
3892 (cfg_layout_delete_block): Likewise for locals "insn", "next",
3894 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
3895 (rtl_block_empty_p): Likewise.
3896 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
3897 "split_point", "last".
3898 (rtl_block_ends_with_call_p): Likewise for local "insn".
3899 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
3901 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
3902 "split_at_insn" from rtx to rtx_insn *.
3903 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
3904 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
3905 to const rtx_insn *.
3906 (rtl_account_profile_record): Likewise.
3908 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3910 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
3912 (average_num_loop_insns): Likewise.
3913 (init_set_costs): Likewise for local "seq".
3914 (seq_cost): Likewise for param "seq", from const_rtx to const
3917 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3919 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
3922 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3924 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
3925 "f1" and "f2" from rtx * to rtx_insn **.
3926 (flow_find_head_matching_sequence): Likewise.
3928 * cfgcleanup.c (try_simplify_condjump): Strengthen local
3929 "cbranch_insn" from rtx to rtx_insn *.
3930 (thread_jump): Likewise for local "insn".
3931 (try_forward_edges): Likewise for local "last".
3932 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
3933 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
3935 (can_replace_by): Likewise for params "i1", "i2".
3936 (old_insns_match_p): Likewise.
3937 (merge_notes): Likewise.
3938 (walk_to_nondebug_insn): Likewise for param "i1".
3939 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
3940 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
3941 "afterlast1", "afterlast2" from rtx to rtx_insn *.
3942 (flow_find_head_matching_sequence): Strengthen params "f1" and
3943 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
3944 "last1", "last2", "beforelast1", "beforelast2" from rtx to
3946 (outgoing_edges_match): Likewise for locals "last1", "last2".
3947 (try_crossjump_to_edge): Likewise for local "insn".
3948 Replace call to for_each_rtx with for_each_rtx_in_insn.
3950 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
3951 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
3952 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
3953 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
3954 (try_optimize_cfg): Strengthen local "last" from rtx to
3956 (delete_dead_jumptables): Likewise for locals "insn", "next",
3959 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
3960 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
3961 "rtx else_first_tail", to reflect the basic-block.h changes above.
3963 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3965 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
3967 (purge_dead_tablejump_edges): Likewise.
3968 (find_bb_boundaries): Likewise for locals "insn", "end",
3969 "flow_transfer_insn".
3971 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3973 * caller-save.c (save_call_clobbered_regs): Strengthen locals
3974 "ins" and "prev" from rtx to rtx_insn *.
3976 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3978 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
3980 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
3981 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
3983 (load_register_parameters): Likewise for local "before_arg".
3984 (check_sibcall_argument_overlap): Likewise for param "insn".
3985 (expand_call): Likewise for locals "normal_call_insns",
3986 "tail_call_insns", "insns", "before_call", "after_args",
3987 "before_arg", "last", "prev". Strengthen one of the "last" from
3988 rtx to rtx_call_insn *.
3989 (fixup_tail_calls): Strengthen local "insn" from rtx to
3991 (emit_library_call_value_1): Likewise for locals "before_call" and
3994 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3996 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
3997 and "last" from rtx to rtx_insn *.
3998 (expand_builtin_nonlocal_goto): Likewise for local "insn".
3999 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4001 (expand_errno_check): Strengthen local "lab" from rtx to
4003 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4005 (expand_builtin_mathfn_2): Likewise.
4006 (expand_builtin_mathfn_ternary): Likewise.
4007 (expand_builtin_mathfn_3): Likewise.
4008 (expand_builtin_interclass_mathfn): Likewise for local "last".
4009 (expand_builtin_int_roundingfn): Likewise for local "insns".
4010 (expand_builtin_int_roundingfn_2): Likewise.
4011 (expand_builtin_strlen): Likewise for local "before_strlen".
4012 (expand_builtin_strncmp): Likewise for local "seq".
4013 (expand_builtin_signbit): Likewise for local "last".
4014 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4015 from rtx to rtx_code_label *.
4016 (expand_stack_restore): Strengthen local "prev" from rtx to
4019 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4021 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4023 (struct btr_def_s): Likewise.
4024 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4026 (add_btr_def): Likewise.
4027 (new_btr_user): Likewise.
4028 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4030 (link_btr_uses): Likewise.
4031 (move_btr_def): Likewise for locals "insp", "old_insn",
4032 "new_insn". Add checked cast to rtx_insn * for now on result of
4034 (can_move_up): Strengthen param "insn" from const_rtx to
4037 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4039 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4041 (get_uncond_jump_length): Likewise for locals "label", "jump".
4042 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4044 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4045 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4046 (find_jump_block): Likewise for local "insn".
4047 (fix_crossing_conditional_branches): Likewise for locals
4048 "old_jump", "new_jump".
4049 (fix_crossing_unconditional_branches): Likewise for locals
4050 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4051 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4053 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4055 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4057 (struct mem_insn): Likewise for field "insn".
4058 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4059 (reg_next_inc_use): Likewise.
4060 (reg_next_def): Likewise.
4061 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4062 from rtx to rtx_insn *.
4063 (move_insn_before): Likewise for param "next_insn" and local "insns".
4064 (attempt_change): Likewise for local "mov_insn".
4065 (try_merge): Likewise for param "last_insn".
4066 (get_next_ref): Likewise for return type and local "insn".
4067 Strengthen param "next_array" from rtx * to rtx_insn **.
4068 (parse_add_or_inc): Strengthen param "insn" from rtx to
4070 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4072 (merge_in_block): Likewise for locals "insn", "curr",
4074 (pass_inc_dec::execute): Update allocations of the arrays to
4075 reflect the stronger types.
4077 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4079 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4080 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4081 from rtx to rtx_code_label *.
4083 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4085 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4088 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4090 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4091 generated a warning and prevented bootstrapping the compiler.
4093 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4095 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4098 * jump.c (delete_related_insns): Likewise, also for locals "next"
4101 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4103 * genautomata.c (output_internal_insn_latency_func): When writing
4104 the function "internal_insn_latency" to insn-automata.c,
4105 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4106 allowing the optional guard function of (define_bypass) clauses to
4107 expect a pair of rtx_insn *, rather than a pair of rtx.
4108 (output_insn_latency_func): When writing the function
4109 "insn_latency", add an "uncast_" prefix to params "insn" and
4110 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4111 using checked casts from the params, thus enabling the above
4112 change to the generated "internal_insn_latency" function.
4114 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4116 PR tree-optimization/62091
4117 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4118 handle correctly arrays.
4119 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4121 (record_known_type): Walk into inner type.
4122 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4123 condition on no type changes.
4125 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4127 * genattrtab.c (write_attr_get): Within the generated get_attr_
4128 functions, rename param "insn" to "uncast_insn" and reintroduce
4129 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4130 is an rtx_insn * within insn-attrtab.c
4132 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4134 * output.h (peephole): Strengthen return type from rtx to
4136 * rtl.h (delete_for_peephole): Likewise for both params.
4137 * genpeep.c (main): In generated "peephole" function, strengthen
4138 return type and local "insn" from rtx to rtx_insn *. For now,
4139 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4140 rtx_insn *, with a checked cast.
4141 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4142 locals "insn", "next", "prev" from rtx to rtx_insn *.
4144 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
4146 PR tree-optimization/62112
4147 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4148 * gimple-iterator.h (gsi_replace): Return bool.
4149 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4150 moved from ref_may_alias_global_p.
4151 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4153 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4154 (stmt_kills_ref_p_1): Rename...
4155 (stmt_kills_ref_p): ... to this.
4156 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
4157 stmt_kills_ref_p): Declare.
4158 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
4159 Move the self-assignment case...
4160 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
4162 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4164 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
4166 * emit-rtl.c (try_split): Likewise, also for locals "before" and
4167 "after". For now, don't strengthen param "trial", which requires
4168 adding checked casts when returning it.
4170 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4172 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4173 "label" from rtx to rtx_code_label *. Strengthen param 1 of
4174 "var_location" hook from rtx to rtx_insn *.
4175 (debug_nothing_rtx): Delete in favor of...
4176 (debug_nothing_rtx_code_label): New prototype.
4177 (debug_nothing_rtx_rtx): Delete unused prototype.
4178 (debug_nothing_rtx_insn): New prototype.
4180 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
4181 invoking debug_hooks->var_location (in two places, one in a NOTE
4182 case of a switch statement, the other guarded by a CALL_P
4183 conditional. Add checked cast to rtx_code_label * when invoking
4184 debug_hooks->label (within CODE_LABEL case of switch statement).
4186 * dbxout.c (dbx_debug_hooks): Update "label" hook from
4187 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4188 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
4189 (xcoff_debug_hooks): Likewise.
4190 * debug.c (do_nothing_debug_hooks): Likewise.
4191 (debug_nothing_rtx): Delete in favor of...
4192 (debug_nothing_rtx_insn): New function.
4193 (debug_nothing_rtx_rtx): Delete unused function.
4194 (debug_nothing_rtx_code_label): New function.
4195 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
4196 debug_nothing_rtx to debug_nothing_rtx_code_label.
4197 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
4199 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
4200 debug_nothing_rtx to debug_nothing_rtx_insn.
4201 (sdbout_label): Strengthen param "insn" from rtx to
4203 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
4204 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4205 "var_location" hook from debug_nothing_rtx to
4206 debug_nothing_rtx_insn.
4208 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4210 * recog.h (insn_output_fn): Update this function typedef to match
4211 the changes below to the generated output functions, strengthening
4212 the 2nd param from rtx to rtx_insn *.
4214 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
4215 insn when invoking an output function, to match the new signature
4216 of insn_output_fn with a stronger second param.
4218 * genconditions.c (write_header): In the generated code for
4219 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
4220 to match the other changes in this patch.
4222 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
4223 the generated "gen_" functions from rtx to rtx_insn * within their
4226 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
4227 the subfunctions within the generated "recog_", "split", "peephole2"
4228 function trees from rtx to rtx_insn *. For now, the top-level
4229 generated functions ("recog", "split", "peephole2") continue to
4230 take a plain rtx for "insn", to avoid introducing dependencies on
4231 other patches. Rename this 2nd param from "insn" to
4232 "uncast_insn", and reintroduce "insn" as a local variable of type
4233 rtx_insn *, initialized at the top of the generated function with
4234 a checked cast on "uncast_insn".
4235 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
4236 the generated "gen_" functions from rtx to rtx_insn * within their
4239 * genoutput.c (process_template): Strengthen the 2nd param within
4240 the generated "output_" functions "insn" from rtx to rtx_insn *.
4242 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4244 * tree-profile.c (tree_profiling): Skip external functions
4245 when doing coverage instrumentation.
4246 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
4248 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4250 * config/rs6000/altivec.h (vec_cpsgn): New #define.
4251 (vec_mergee): Likewise.
4252 (vec_mergeo): Likewise.
4253 (vec_cntlz): Likewise.
4254 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
4255 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
4256 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
4258 * doc/extend.texi: Document various forms of vec_cpsgn,
4259 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
4260 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
4261 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
4262 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
4263 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
4265 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4267 * config/rs6000/rs6000.c (context.h): New include.
4268 (tree-pass.h): Likewise.
4269 (make_pass_analyze_swaps): New decl.
4270 (rs6000_option_override): Register pass_analyze_swaps.
4271 (swap_web_entry): New subsclass of web_entry_base (df.h).
4272 (special_handling_values): New enum.
4273 (union_defs): New function.
4274 (union_uses): Likewise.
4275 (insn_is_load_p): Likewise.
4276 (insn_is_store_p): Likewise.
4277 (insn_is_swap_p): Likewise.
4278 (rtx_is_swappable_p): Likewise.
4279 (insn_is_swappable_p): Likewise.
4280 (chain_purpose): New enum.
4281 (chain_contains_only_swaps): New function.
4282 (mark_swaps_for_removal): Likewise.
4283 (swap_const_vector_halves): Likewise.
4284 (adjust_subreg_index): Likewise.
4285 (permute_load): Likewise.
4286 (permute_store): Likewise.
4287 (handle_special_swappables): Likewise.
4288 (replace_swap_with_copy): Likewise.
4289 (dump_swap_insn_table): Likewise.
4290 (rs6000_analyze_swaps): Likewise.
4291 (pass_data_analyze_swaps): New pass_data.
4292 (pass_analyze_swaps): New rtl_opt_pass.
4293 (make_pass_analyze_swaps): New function.
4294 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
4296 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4298 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
4299 type from rtx to rtx_insn *.
4300 (create_copy_of_insn_rtx): Likewise.
4301 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
4302 (create_copy_of_insn_rtx): Likewise, also for local "res".
4304 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4306 * rtl.h (find_first_parameter_load): Strengthen return type from
4308 * rtlanal.c (find_first_parameter_load): Strengthen return type
4309 from rtx to rtx_insn *. Add checked cast for now, to postpone
4310 strengthening the params.
4312 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4315 * diagnostic.c: Set default caret.
4316 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
4318 * diagnostic.h (struct diagnostic_context):
4320 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4322 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
4323 (sel_bb_head): Strengthen return type insn_t (currently just an
4325 (sel_bb_end): Likewise.
4327 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
4328 (sel_bb_head): Strengthen return type and local "head" from
4329 insn_t (currently just an rtx) to rtx_insn *.
4330 (sel_bb_end): Likewise for return type.
4331 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
4334 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4336 * basic-block.h (get_last_bb_insn): Strengthen return type from
4338 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
4341 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4344 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
4346 (diagnostic_report_diagnostic): ... from here.
4347 * toplev.c (general_init): Move code to c-family.
4349 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4351 * df.h (web_entry_base): Replace existing struct web_entry with a
4352 new class web_entry_base with only the predecessor member.
4353 (unionfind_root): Remove declaration and move to class member.
4354 (unionfind_union): Remove declaration and move to friend
4356 (union_defs): Remove declaration.
4357 * web.c (web_entry_base::unionfind_root): Modify to be member
4358 function and adjust accessors.
4359 (unionfind_union): Modify to be friend function and adjust
4361 (web_entry): New subclass of web_entry_base containing the reg
4363 (union_match_dups): Modify for struct -> class changes.
4364 (union_defs): Likewise.
4365 (entry_register): Likewise.
4366 (pass_web::execute): Likewise.
4368 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
4370 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
4371 builtin define __VEC_ELEMENT_REG_ORDER__.
4373 2014-08-20 Martin Jambor <mjambor@suse.cz>
4374 Wei Mi <wmi@google.com>
4378 * tree-ssa-operands.c (update_stmt_operands): Remove
4379 MODIFIED_NORETURN_CALLS.
4380 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
4381 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
4382 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
4383 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
4384 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
4385 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
4386 (gimple_call_set_ctrl_altering): New func.
4387 (gimple_call_ctrl_altering_p): Ditto.
4388 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
4389 (make_blocks): Use gimple_call_initialize_ctrl_altering.
4390 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
4391 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
4392 remove MODIFIED_NORETURN_CALLS.
4394 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4396 * coverage.c (coverage_compute_profile_id): Return non-0;
4397 also handle symbols with unique name.
4398 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
4400 2014-08-20 Steve Ellcey <sellcey@mips.com>
4403 * doc/sourcebuild.texi (non_strict_align): New.
4405 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4407 * cgraphunit.c (ipa_passes, compile): Reshedule
4408 symtab_remove_unreachable_nodes passes; update comments.
4409 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
4410 TODO_remove_functions before the pass; the functions ought to be
4412 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
4413 TODO_remove_functions.
4414 * passes.c (pass_data_early_local_passes): Do not schedule function
4416 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
4418 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4421 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
4422 before setting the option.
4423 * diagnostic.c (diagnostic_classify_diagnostic): Record
4424 command-line status.
4426 2014-08-20 Richard Biener <rguenther@suse.de>
4429 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
4430 to build uint{16,32,64}_type_node.
4432 2014-08-20 Terry Guo <terry.guo@arm.com>
4434 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
4435 with immediate_operand.
4437 2014-08-20 David Malcolm <dmalcolm@redhat.com>
4439 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
4440 "insn" from an as_a to a safe_as_a, for the case when "insn" is
4443 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4445 PR preprocessor/51303
4446 * incpath.c (remove_duplicates): Use cpp_warning.
4448 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4452 * doc/options.texi (CPP): Document it.
4453 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
4454 * optc-gen.awk: Handle CPP.
4455 * opth-gen.awk: Likewise.
4457 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4459 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
4461 (duplicate_insn_chain): Likewise.
4462 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
4463 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
4464 checked cast for now (until we can strengthen the params in the
4466 (duplicate_insn_chain): Likewise.
4468 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4470 * rtl.h (next_cc0_user): Strengthen return type from rtx to
4472 (prev_cc0_setter): Likewise.
4474 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
4475 rtx_insn *, adding checked casts for now as necessary.
4476 (prev_cc0_setter): Likewise.
4478 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4480 * expr.h (emit_move_insn): Strengthen return type from rtx to
4482 (emit_move_insn_1): Likewise.
4483 (emit_move_complex_push): Likewise.
4484 (emit_move_complex_parts): Likewise.
4486 * expr.c (emit_move_via_integer): Strengthen return type from rtx
4487 to rtx_insn *. Replace use of NULL_RTX with NULL when working
4489 (emit_move_complex_push): Strengthen return type from rtx to
4491 (emit_move_complex): Likewise, also for local "ret".
4492 (emit_move_ccmode): Likewise.
4493 (emit_move_multi_word): Likewise for return type and locals
4495 (emit_move_insn_1): Likewise for return type and locals "result",
4497 (emit_move_insn): Likewise for return type and local "last_insn".
4498 (compress_float_constant): Likewise.
4500 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4502 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
4503 from rtx to rtx_insn *.
4505 * rtl.h (emit_insn_before): Likewise.
4506 (emit_insn_before_noloc): Likewise.
4507 (emit_insn_before_setloc): Likewise.
4508 (emit_jump_insn_before): Likewise.
4509 (emit_jump_insn_before_noloc): Likewise.
4510 (emit_jump_insn_before_setloc): Likewise.
4511 (emit_call_insn_before): Likewise.
4512 (emit_call_insn_before_noloc): Likewise.
4513 (emit_call_insn_before_setloc): Likewise.
4514 (emit_debug_insn_before): Likewise.
4515 (emit_debug_insn_before_noloc): Likewise.
4516 (emit_debug_insn_before_setloc): Likewise.
4517 (emit_label_before): Likewise.
4518 (emit_insn_after): Likewise.
4519 (emit_insn_after_noloc): Likewise.
4520 (emit_insn_after_setloc): Likewise.
4521 (emit_jump_insn_after): Likewise.
4522 (emit_jump_insn_after_noloc): Likewise.
4523 (emit_jump_insn_after_setloc): Likewise.
4524 (emit_call_insn_after): Likewise.
4525 (emit_call_insn_after_noloc): Likewise.
4526 (emit_call_insn_after_setloc): Likewise.
4527 (emit_debug_insn_after): Likewise.
4528 (emit_debug_insn_after_noloc): Likewise.
4529 (emit_debug_insn_after_setloc): Likewise.
4530 (emit_label_after): Likewise.
4531 (emit_insn): Likewise.
4532 (emit_debug_insn): Likewise.
4533 (emit_jump_insn): Likewise.
4534 (emit_call_insn): Likewise.
4535 (emit_label): Likewise.
4536 (gen_clobber): Likewise.
4537 (emit_clobber): Likewise.
4538 (gen_use): Likewise.
4539 (emit_use): Likewise.
4542 (emit_barrier_before): Strengthen return type from rtx to
4544 (emit_barrier_after): Likewise.
4545 (emit_barrier): Likewise.
4547 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
4548 from rtx to rtx_insn *. Add checked casts for now when converting
4549 "last" from rtx to rtx_insn *.
4550 (emit_insn_before_noloc): Likewise for return type.
4551 (emit_jump_insn_before_noloc): Likewise.
4552 (emit_call_insn_before_noloc): Likewise.
4553 (emit_debug_insn_before_noloc): Likewise.
4554 (emit_barrier_before): Strengthen return type and local "insn"
4555 from rtx to rtx_barrier *.
4556 (emit_label_before): Strengthen return type from rtx to
4557 rtx_insn *. Add checked cast for now when returning param
4558 (emit_pattern_after_noloc): Strengthen return type from rtx to
4559 rtx_insn *. Add checked casts for now when converting "last" from
4561 (emit_insn_after_noloc): Strengthen return type from rtx to
4563 (emit_jump_insn_after_noloc): Likewise.
4564 (emit_call_insn_after_noloc): Likewise.
4565 (emit_debug_insn_after_noloc): Likewise.
4566 (emit_barrier_after): Strengthen return type from rtx to
4568 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
4569 Add checked cast for now when converting "label" from rtx to
4571 (emit_pattern_after_setloc): Strengthen return type from rtx to
4572 rtx_insn *. Add checked casts for now when converting "last" from
4574 (emit_pattern_after): Strengthen return type from rtx to
4576 (emit_insn_after_setloc): Likewise.
4577 (emit_insn_after): Likewise.
4578 (emit_jump_insn_after_setloc): Likewise.
4579 (emit_jump_insn_after): Likewise.
4580 (emit_call_insn_after_setloc): Likewise.
4581 (emit_call_insn_after): Likewise.
4582 (emit_debug_insn_after_setloc): Likewise.
4583 (emit_debug_insn_after): Likewise.
4584 (emit_pattern_before_setloc): Likewise. Add checked casts for now
4585 when converting "last" from rtx to rtx_insn *.
4586 (emit_pattern_before): Strengthen return type from rtx to
4588 (emit_insn_before_setloc): Likewise.
4589 (emit_insn_before): Likewise.
4590 (emit_jump_insn_before_setloc): Likewise.
4591 (emit_jump_insn_before): Likewise.
4592 (emit_call_insn_before_setloc): Likewise.
4593 (emit_call_insn_before): Likewise.
4594 (emit_debug_insn_before_setloc): Likewise.
4595 (emit_debug_insn_before): Likewise.
4596 (emit_insn): Strengthen return type and locals "last", "insn",
4597 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
4598 within cases where we know we have an insn.
4599 (emit_debug_insn): Likewise.
4600 (emit_jump_insn): Likewise.
4601 (emit_call_insn): Strengthen return type and local "insn" from rtx
4603 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
4604 a checked cast to rtx_insn * for now on "label".
4605 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
4606 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
4607 (emit_use): Likewise.
4608 (gen_use): Likewise, also for local "seq".
4609 (emit): Likewise for return type and local "insn".
4610 (rtx_insn): Likewise for return type and local "new_rtx".
4612 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
4613 from rtx to rtx_barrier *.
4615 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
4616 changed return type from rtx to rtx_insn *, we must update
4617 "emit_fn" type, and this in turn means updating...
4618 (frame_insn): ...this. Strengthen return type from rtx to
4619 rtx_insn *. Introduce a new local "insn" of the appropriate type.
4621 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4623 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
4624 rtx to rtx_jump_table_data *. Also for local.
4625 * rtl.h (emit_jump_table_data): Likewise.
4627 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4629 * basic-block.h (create_basic_block_structure): Strengthen third
4630 param "bb_note" from rtx to rtx_note *.
4631 * rtl.h (emit_note_before): Strengthen return type from rtx to
4633 (emit_note_after): Likewise.
4634 (emit_note): Likewise.
4635 (emit_note_copy): Likewise. Also, strengthen param similarly.
4636 * function.h (struct rtl_data): Strengthen field
4637 "x_stack_check_probe_note" from rtx to rtx_note *.
4639 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
4640 from rtx to rtx_note *.
4641 * cfgrtl.c (create_basic_block_structure): Strengthen third param
4642 "bb_note" from rtx to rtx_note *.
4643 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
4644 when calling emit_note_copy.
4645 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
4647 (emit_note_after): Likewise.
4648 (emit_note_before): Likewise.
4649 (emit_note_copy): Likewise. Also, strengthen param similarly.
4650 (emit_note): Likewise.
4651 * except.c (emit_note_eh_region_end): Likewise for return type.
4652 Strengthen local "next" from rtx to rtx_insn *.
4653 (convert_to_eh_region_ranges): Strengthen local "note"
4654 from rtx to rtx_note *.
4655 * final.c (change_scope): Likewise.
4656 (reemit_insn_block_notes): Likewise, for both locals named "note".
4657 Also, strengthen local "insn" from rtx to rtx_insn *.
4658 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
4660 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
4661 strengthen local "seq" from rtx to rtx_insn *.
4662 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
4664 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
4666 (get_bb_note_from_pool): Strengthen return type from rtx to
4668 (sel_create_basic_block): Strengthen local "new_bb_note" from
4669 insn_t to rtx_note *.
4670 * var-tracking.c (emit_note_insn_var_location): Strengthen local
4671 "note" from rtx to rtx_note *.
4672 (emit_notes_in_bb): Likewise.
4674 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4676 * function.h (struct rtl_data): Strengthen field
4677 "x_parm_birth_insn" from rtx to rtx_insn *.
4678 * function.c (struct assign_parm_data_all): Strengthen fields
4679 "first_conversion_insn" and "last_conversion_insn" from rtx to
4682 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4684 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
4685 to rtx_insn *; also for local "var_end_seq".
4686 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
4687 (maybe_cleanup_end_of_block): Likewise for param "last" and local
4689 (expand_gimple_cond): Likewise for locals "last2" and "last".
4690 (mark_transaction_restart_calls): Likewise for local "insn".
4691 (expand_gimple_stmt): Likewise for return type and locals "last"
4693 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
4694 (avoid_complex_debug_insns): Likewise for param "insn".
4695 (expand_debug_locations): Likewise for locals "insn", "last",
4696 "prev_insn" and "insn2".
4697 (expand_gimple_basic_block): Likewise for local "last".
4698 (construct_exit_block): Likewise for locals "head", "end",
4700 (pass_expand::execute): Likewise for locals "var_seq",
4701 "var_ret_seq", "next".
4703 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4705 * asan.h (asan_emit_stack_protection): Strengthen return type from
4707 * asan.c (asan_emit_stack_protection): Likewise. Add local
4708 "insns" to hold the return value.
4710 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4712 * basic-block.h (bb_note): Strengthen return type from rtx to
4714 * sched-int.h (bb_note): Likewise.
4715 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
4717 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4719 * rtl.h (make_insn_raw): Strengthen return type from rtx to
4722 * emit-rtl.c (make_insn_raw): Strengthen return type and local
4723 "insn" from rtx to rtx_insn *.
4724 (make_debug_insn_raw): Strengthen return type from rtx to
4725 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
4726 (make_jump_insn_raw): Strengthen return type from rtx to
4727 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
4728 (make_call_insn_raw): Strengthen return type from rtx to
4729 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
4730 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
4731 callback from rtx to rtx_insn *; likewise for local "insn" and
4732 "next", adding a checked cast to rtx_insn in the relevant cases of
4733 the switch statement.
4734 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
4735 callback from rtx to rtx_insn *.
4736 (emit_pattern_after_setloc): Likewise.
4737 (emit_pattern_after): Likewise.
4738 (emit_pattern_before_setloc): Likewise.
4739 (emit_pattern_before): Likewise.
4741 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4743 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
4745 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
4746 accepting an rtx_insn *.
4747 (last_call_insn): Strengthen return type from rtx to
4750 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4752 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
4753 "insns" from rtx to rtx_insn *.
4754 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
4755 locals "insn" and "prev".
4757 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4759 * rtl.h (tablejump_p): Strengthen third param from rtx * to
4760 rtx_jump_table_data **.
4762 * cfgbuild.c (make_edges): Introduce local "table", using it in
4763 place of "tmp" for jump table data.
4764 (find_bb_boundaries): Strengthen local "table" from rtx to
4765 rtx_jump_table_data *.
4766 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
4767 (outgoing_edges_match): Likewise for locals "table1" and "table2".
4768 (try_crossjump_to_edge): Likewise.
4769 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
4771 (patch_jump_insn): Introduce local "table", using it in place of
4772 "tmp" for jump table data.
4773 (force_nonfallthru_and_redirect): Introduce local "table", so that
4774 call to tablejump_p can receive an rtx_jump_table_data **. Update
4775 logic around the call to overwrite "note" appropriately if
4776 tablejump_p returns non-zero.
4777 (get_last_bb_insn): Introduce local "table", using it in place of
4778 "tmp" for jump table data.
4779 * dwarf2cfi.c (create_trace_edges): Likewise.
4781 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
4782 from rtx to rtx_jump_table_data *.
4783 (create_fix_barrier): Strengthen local "tmp" from rtx to
4784 rtx_jump_table_data *.
4785 (arm_reorg): Likewise for local "table".
4787 * config/s390/s390.c (s390_chunkify_start): Likewise.
4789 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
4791 * jump.c (delete_related_insns): Strengthen local "lab_next" from
4792 rtx to rtx_jump_table_data *.
4794 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
4795 rtx_jump_table_data **. Add a checked cast when writing through
4796 the pointer: we know there that local "table" is non-NULL and that
4797 JUMP_TABLE_DATA_P (table) holds.
4798 (label_is_jump_target_p): Introduce local "table", using it in
4799 place of "tmp" for jump table data.
4801 2014-08-19 Marek Polacek <polacek@redhat.com>
4804 * doc/invoke.texi: Document -Wbool-compare.
4806 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4808 * rtl.h (entry_of_function): Strengthen return type from rtx to
4810 * cfgrtl.c (entry_of_function): Likewise.
4812 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4814 * emit-rtl.h (get_insns): Strengthen return type from rtx to
4815 rtx_insn *, adding a checked cast for now.
4816 (get_last_insn): Likewise.
4818 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4820 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
4823 * emit-rtl.c (gen_label_rtx): Likewise.
4825 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4827 * rtl.h (previous_insn): Strengthen return type from rtx to
4829 (next_insn): Likewise.
4830 (prev_nonnote_insn): Likewise.
4831 (prev_nonnote_insn_bb): Likewise.
4832 (next_nonnote_insn): Likewise.
4833 (next_nonnote_insn_bb): Likewise.
4834 (prev_nondebug_insn): Likewise.
4835 (next_nondebug_insn): Likewise.
4836 (prev_nonnote_nondebug_insn): Likewise.
4837 (next_nonnote_nondebug_insn): Likewise.
4838 (prev_real_insn): Likewise.
4839 (next_real_insn): Likewise.
4840 (prev_active_insn): Likewise.
4841 (next_active_insn): Likewise.
4843 * emit-rtl.c (next_insn): Strengthen return type from rtx to
4844 rtx_insn *, adding a checked cast.
4845 (previous_insn): Likewise.
4846 (next_nonnote_insn): Likewise.
4847 (next_nonnote_insn_bb): Likewise.
4848 (prev_nonnote_insn): Likewise.
4849 (prev_nonnote_insn_bb): Likewise.
4850 (next_nondebug_insn): Likewise.
4851 (prev_nondebug_insn): Likewise.
4852 (next_nonnote_nondebug_insn): Likewise.
4853 (prev_nonnote_nondebug_insn): Likewise.
4854 (next_real_insn): Likewise.
4855 (prev_real_insn): Likewise.
4856 (next_active_insn): Likewise.
4857 (prev_active_insn): Likewise.
4859 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
4860 param "stepfunc" so that it returns an rtx_insn * rather than an
4861 rtx, to track the change to prev_nonnote_insn_bb, which is the
4862 only function this is called with.
4863 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
4865 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
4867 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
4870 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4872 * coretypes.h (class rtx_debug_insn): Add forward declaration.
4873 (class rtx_nonjump_insn): Likewise.
4874 (class rtx_jump_insn): Likewise.
4875 (class rtx_call_insn): Likewise.
4876 (class rtx_jump_table_data): Likewise.
4877 (class rtx_barrier): Likewise.
4878 (class rtx_code_label): Likewise.
4879 (class rtx_note): Likewise.
4881 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
4882 adding the invariant DEBUG_INSN_P (X).
4883 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
4884 the invariant NONJUMP_INSN_P (X).
4885 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
4886 the invariant JUMP_P (X).
4887 (class rtx_call_insn): New, a subclass of rtx_insn, adding
4888 the invariant CALL_P (X).
4889 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
4890 invariant JUMP_TABLE_DATA_P (X).
4891 (class rtx_barrier): New, a subclass of rtx_insn, adding the
4892 invariant BARRIER_P (X).
4893 (class rtx_code_label): New, a subclass of rtx_insn, adding
4894 the invariant LABEL_P (X).
4895 (class rtx_note): New, a subclass of rtx_insn, adding
4896 the invariant NOTE_P(X).
4897 (is_a_helper <rtx_debug_insn *>::test): New.
4898 (is_a_helper <rtx_nonjump_insn *>::test): New.
4899 (is_a_helper <rtx_jump_insn *>::test): New.
4900 (is_a_helper <rtx_call_insn *>::test): New.
4901 (is_a_helper <rtx_jump_table_data *>::test): New functions,
4902 overloaded for both rtx and rtx_insn *.
4903 (is_a_helper <rtx_barrier *>::test): New.
4904 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
4905 for both rtx and rtx_insn *.
4906 (is_a_helper <rtx_note *>::test): New.
4908 2014-08-19 Marek Polacek <polacek@redhat.com>
4910 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
4911 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
4912 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
4913 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
4915 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4917 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
4918 rtx_insn *. To help with transition, for now, convert from an
4919 access macro into a pair of functions: BND_TO, returning an
4921 (SET_BND_TO): New function, for use where BND_TO is used as an
4924 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
4926 (BND_TO): New function, adding a checked cast.
4927 (SET_BND_TO): New function.
4929 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
4931 (compute_av_set_on_boundaries): Likewise.
4933 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
4935 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
4936 destination if it is used in source.
4937 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
4938 (*popcount<mode>2_falsedep_1): Likewise.
4940 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
4943 * configure.ac: Set install_gold_as_default to no first.
4944 * configure: Regenerated.
4946 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4948 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
4949 "note_list" field will eventually be an rtx_insn *. To help with
4950 transition, for now, convert from an access macro into a pair of
4951 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
4952 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
4955 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
4956 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
4958 * sel-sched-ir.c (init_bb): Likewise.
4959 (sel_restore_notes): Likewise.
4960 (move_bb_info): Likewise.
4961 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
4962 (SET_BB_NOTE_LIST): New function.
4964 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4966 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
4967 field will eventually be an rtx_insn *. To help with transition,
4968 for now, convert from an access macro into a pair of functions:
4969 VINSN_INSN_RTX, returning an rtx_insn *, and...
4970 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
4971 is used as an lvalue.
4973 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
4974 SET_VINSN_INSN_RTX where it's used as an lvalue.
4975 (VINSN_INSN_RTX): New function.
4976 (SET_VINSN_INSN_RTX): New function.
4978 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4980 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
4981 eventually be rtx_insn *, but to help with transition, for now,
4982 convert from an access macro into a pair of functions: DEP_PRO
4983 returning an rtx_insn * and...
4984 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
4985 lvalue, returning an rtx&.
4986 (DEP_CON): Analogous changes to DEP_PRO above.
4987 (SET_DEP_CON): Likewise.
4989 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
4990 an lvalue to SET_DEP_CON.
4991 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
4992 (sd_copy_back_deps): Likewise for DEP_CON.
4993 (DEP_PRO): New function, adding a checked cast for now.
4994 (DEP_CON): Likewise.
4995 (SET_DEP_PRO): New function.
4996 (SET_DEP_CON): Likewise.
4998 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5000 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5001 (extra_options): Add i386/cygwin.opt.
5002 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5003 (CPP_SPEC): Accept -pthread.
5005 (GOMP_SELF_SPECS): Update comment.
5006 * config/i386/cygwin.opt: New file for -pthread flag.
5008 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5010 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5011 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5012 that we can return an rtx_insn *.
5014 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5016 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5017 when building executables, not DLLs. Add --large-address-aware
5018 under the same conditions.
5019 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5020 when building executables, not DLLs. Add --large-address-aware
5021 under the same conditions when using -m32.
5023 * config/i386/cygwin-stdint.h: Throughout, make type
5024 definitions dependent on target architecture, not host.
5026 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5028 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5029 the return type from rtx to rtx_insn *, which will enable various
5030 conversions in followup patches. For now this is is done by a
5032 (NEXT_INSN): Likewise.
5033 (SET_PREV_INSN): Convert to an inline function. This is intended
5034 for use as an lvalue, and so returns an rtx& to allow in-place
5036 (SET_NEXT_INSN): Likewise.
5038 2014-07-08 Mark Wielaard <mjw@redhat.com>
5041 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5043 2014-08-19 Marek Polacek <polacek@redhat.com>
5046 * cgraphunit.c (handle_alias_pairs): Fix condition.
5048 2014-08-19 Richard Biener <rguenther@suse.de>
5050 * gimple-fold.c (fold_gimple_assign): Properly build a
5051 null-pointer constant when devirtualizing addresses.
5053 2014-07-07 Mark Wielaard <mjw@redhat.com>
5055 * dwarf2out.c (decl_quals): New function.
5056 (modified_type_die): Take one cv_quals argument instead of two,
5057 one for const and one for volatile.
5058 (add_type_attribute): Likewise.
5059 (generic_parameter_die): Call add_type_attribute with one modifier
5061 (base_type_for_mode): Likewise.
5062 (add_bounds_info): Likewise.
5063 (add_subscript_info): Likewise.
5064 (gen_array_type_die): Likewise.
5065 (gen_descr_array_type_die): Likewise.
5066 (gen_entry_point_die): Likewise.
5067 (gen_enumeration_type_die): Likewise.
5068 (gen_formal_parameter_die): Likewise.
5069 (gen_subprogram_die): Likewise.
5070 (gen_variable_die): Likewise.
5071 (gen_const_die): Likewise.
5072 (gen_field_die): Likewise.
5073 (gen_pointer_type_die): Likewise.
5074 (gen_reference_type_die): Likewise.
5075 (gen_ptr_to_mbr_type_die): Likewise.
5076 (gen_inheritance_die): Likewise.
5077 (gen_subroutine_type_die): Likewise.
5078 (gen_typedef_die): Likewise.
5079 (force_type_die): Likewise.
5081 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5083 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5085 * configure: Regenerate.
5087 2014-08-19 Richard Biener <rguenther@suse.de>
5089 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5090 DECL_EXTERNALs in BLOCKs as non-references.
5091 * tree-streamer-out.c (streamer_write_chain): Likewise.
5093 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5094 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5095 Anna Tikhonova <anna.tikhonova@intel.com>
5096 Ilya Tocar <ilya.tocar@intel.com>
5097 Andrey Turetskiy <andrey.turetskiy@intel.com>
5098 Ilya Verbin <ilya.verbin@intel.com>
5099 Kirill Yukhin <kirill.yukhin@intel.com>
5100 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5102 * config/i386/sse.md
5103 (define_mode_iterator VI48_AVX512F): Delete.
5104 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5105 (define_mode_iterator VI2_AVX512VL): Ditto.
5106 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5109 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5111 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5112 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5113 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5114 with VI48_AVX512F_AVX512VL): New.
5115 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5116 with VI2_AVX512VL): Ditto.
5118 2014-08-19 Marek Polacek <polacek@redhat.com>
5120 * doc/invoke.texi: Document -Wc99-c11-compat.
5122 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5124 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5126 (SET_PREV_INSN): New macro, for use as an lvalue.
5127 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5129 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5130 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5131 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5132 (fixup_abnormal_edges): Likewise.
5133 (unlink_insn_chain): Likewise.
5134 (fixup_reorder_chain): Likewise.
5135 (cfg_layout_delete_block): Likewise.
5136 (cfg_layout_merge_blocks): Likewise.
5137 * combine.c (update_cfg_for_uncondjump): Likewise.
5138 * emit-rtl.c (link_insn_into_chain): Likewise.
5139 (remove_insn): Likewise.
5140 (delete_insns_since): Likewise.
5141 (reorder_insns_nobb): Likewise.
5142 (emit_insn_after_1): Likewise.
5143 * final.c (rest_of_clean_state): Likewise.
5144 (final_scan_insn): Likewise.
5145 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5146 * haifa-sched.c (concat_note_lists): Likewise.
5147 (remove_notes): Likewise.
5148 (restore_other_notes): Likewise.
5149 (move_insn): Likewise.
5150 (unlink_bb_notes): Likewise.
5151 (restore_bb_notes): Likewise.
5152 * jump.c (delete_for_peephole): Likewise.
5153 * optabs.c (emit_libcall_block_1): Likewise.
5154 * reorg.c (emit_delay_sequence): Likewise.
5155 (fill_simple_delay_slots): Likewise.
5156 * sel-sched-ir.c (sel_move_insn): Likewise.
5157 (sel_remove_insn): Likewise.
5158 (get_bb_note_from_pool): Likewise.
5159 * sel-sched.c (move_nop_to_previous_block): Likewise.
5161 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
5162 * config/c6x/c6x.c (gen_one_bundle): Likewise.
5163 (c6x_gen_bundles): Likewise.
5164 (hwloop_optimize): Likewise.
5165 * config/frv/frv.c (frv_function_prologue): Likewise.
5166 (frv_register_nop): Likewise.
5167 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
5168 (ia64_reorg): Likewise.
5169 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
5170 (mep_make_bundle): Likewise.
5171 (mep_bundle_insns): Likewise.
5172 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
5173 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
5174 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
5176 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5178 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
5179 return type from rtx to rtx_insn *.
5181 (BB_HEADER): Likewise.
5182 (BB_FOOTER): Likewise.
5183 (SET_BB_HEAD): Convert to a function.
5184 (SET_BB_END): Likewise.
5185 (SET_BB_HEADER): Likewise.
5186 (SET_BB_FOOTER): Likewise.
5188 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
5189 Strengthen the return type from rtx to rtx_insn *. For now, this
5190 is done by adding a checked cast, but this will eventually
5191 become a field lookup.
5193 (BB_HEADER): Likewise.
5194 (BB_FOOTER): Likewise.
5195 (SET_BB_HEAD): New function, from macro of same name. This is
5196 intended for use as an lvalue, and so returns an rtx& to allow
5197 in-place modification.
5198 (SET_BB_END): Likewise.
5199 (SET_BB_HEADER): Likewise.
5200 (SET_BB_FOOTER): Likewise.
5202 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5204 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
5206 (SET_BB_HEAD): New macro, for use as a lvalue.
5207 (BB_END, SET_BB_END): Likewise.
5208 (BB_HEADER, SET_BB_HEADER): Likewise.
5209 (BB_FOOTER, SET_BB_FOOTER): Likewise.
5211 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
5212 of BB_* macros into SET_BB_* macros.
5213 (fix_crossing_unconditional_branches): Likewise.
5214 * caller-save.c (save_call_clobbered_regs): Likewise.
5215 (insert_one_insn): Likewise.
5216 * cfgbuild.c (find_bb_boundaries): Likewise.
5217 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5218 (outgoing_edges_match): Likewise.
5219 (try_optimize_cfg): Likewise.
5220 * cfgexpand.c (expand_gimple_cond): Likewise.
5221 (expand_gimple_tailcall): Likewise.
5222 (expand_gimple_basic_block): Likewise.
5223 (construct_exit_block): Likewise.
5224 * cfgrtl.c (delete_insn): Likewise.
5225 (create_basic_block_structure): Likewise.
5226 (rtl_delete_block): Likewise.
5227 (rtl_split_block): Likewise.
5228 (emit_nop_for_unique_locus_between): Likewise.
5229 (rtl_merge_blocks): Likewise.
5230 (block_label): Likewise.
5231 (try_redirect_by_replacing_jump): Likewise.
5232 (emit_barrier_after_bb): Likewise.
5233 (fixup_abnormal_edges): Likewise.
5234 (record_effective_endpoints): Likewise.
5235 (relink_block_chain): Likewise.
5236 (fixup_reorder_chain): Likewise.
5237 (fixup_fallthru_exit_predecessor): Likewise.
5238 (cfg_layout_duplicate_bb): Likewise.
5239 (cfg_layout_split_block): Likewise.
5240 (cfg_layout_delete_block): Likewise.
5241 (cfg_layout_merge_blocks): Likewise.
5242 * combine.c (update_cfg_for_uncondjump): Likewise.
5243 * emit-rtl.c (add_insn_after): Likewise.
5244 (remove_insn): Likewise.
5245 (reorder_insns): Likewise.
5246 (emit_insn_after_1): Likewise.
5247 * haifa-sched.c (get_ebb_head_tail): Likewise.
5248 (restore_other_notes): Likewise.
5249 (move_insn): Likewise.
5250 (sched_extend_bb): Likewise.
5251 (fix_jump_move): Likewise.
5252 * ifcvt.c (noce_process_if_block): Likewise.
5253 (dead_or_predicable): Likewise.
5254 * ira.c (update_equiv_regs): Likewise.
5255 * reg-stack.c (change_stack): Likewise.
5256 * sel-sched-ir.c (sel_move_insn): Likewise.
5257 * sel-sched.c (move_nop_to_previous_block): Likewise.
5259 * config/c6x/c6x.c (hwloop_optimize): Likewise.
5260 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5262 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5264 * rtl.h (for_each_rtx_in_insn): New function.
5265 * rtlanal.c (for_each_rtx_in_insn): Likewise.
5267 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5269 * coretypes.h (class rtx_insn): Add forward declaration.
5271 * rtl.h: Include is-a.h.
5272 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
5273 workaround to ensure gengtype knows inheritance is occurring,
5274 whilst continuing to use the pre-existing special-casing for
5276 (class rtx_insn): New subclass of rtx_def, adding the
5277 invariant that we're dealing with something we can sanely use
5278 INSN_UID, NEXT_INSN, PREV_INSN on.
5279 (is_a_helper <rtx_insn *>::test): New.
5280 (is_a_helper <const rtx_insn *>::test): New.
5282 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5284 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
5286 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5288 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
5291 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5293 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
5294 to BUILT_IN_UNREACHABLE.
5296 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
5299 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
5301 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
5302 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
5303 (ffs<mode>2): Do not expand with tzcnt for
5304 TARGET_AVOID_FALSE_DEP_FOR_BMI.
5305 (ffssi2_no_cmove): Ditto.
5306 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
5307 (ctz<mode>2): New expander.
5308 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
5309 (*ctz<mode>2_falsedep): New insn.
5310 (*ctz<mode>2): Rename from ctz<mode>2.
5311 (clz<mode>2_lzcnt): New expander.
5312 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
5313 (*clz<mode>2_lzcnt_falsedep): New insn.
5314 (*clz<mode>2): Rename from ctz<mode>2.
5315 (popcount<mode>2): New expander.
5316 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
5317 (*popcount<mode>2_falsedep): New insn.
5318 (*popcount<mode>2): Rename from ctz<mode>2.
5319 (*popcount<mode>2_cmp): Remove.
5320 (*popcountsi2_cmp_zext): Ditto.
5322 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
5324 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
5325 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
5326 * config/microblaze/microblaze.h
5327 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
5329 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
5332 * configure.ac: Set install_gold_as_default to no for
5334 * configure: Regenerated.
5336 2014-08-18 Roman Gareev <gareevroman@gmail.com>
5338 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
5339 * config.in: Add undef of HAVE_isl.
5340 * configure: Regenerate.
5341 * configure.ac: Add definition of HAVE_isl.
5342 * graphite-blocking.c: Add checking of HAVE_isl.
5343 * graphite-dependences.c: Likewise.
5344 * graphite-interchange.c: Likewise.
5345 * graphite-isl-ast-to-gimple.c: Likewise.
5346 * graphite-optimize-isl.c: Likewise.
5347 * graphite-poly.c: Likewise.
5348 * graphite-scop-detection.c: Likewise.
5349 * graphite-sese-to-poly.c: Likewise.
5350 * graphite.c: Likewise.
5351 * toplev.c: Replace the checking of HAVE_cloog with the checking
5354 2014-08-18 Richard Biener <rguenther@suse.de>
5356 PR tree-optimization/62090
5357 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
5358 (fold_builtin_3): Do not fold snprintf.
5359 (fold_builtin_4): Likewise.
5360 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
5361 moved from builtins.c.
5362 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
5363 (gimple_fold_builtin): Do not fold sprintf here.
5365 2014-08-18 Richard Biener <rguenther@suse.de>
5367 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
5369 (maybe_canonicalize_mem_ref_addr): ... this function.
5370 (fold_stmt_1): Apply it here before all simplification.
5372 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
5375 * cgraph.h (cgraph_node::create_indirect_edge): Add
5376 compute_indirect_info param.
5377 * cgraph.c (cgraph_node::create_indirect_edge): Compute
5378 indirect_info only when it is required.
5379 * cgraphclones.c (cgraph_clone_edge): Do not recompute
5380 indirect_info fore cloned indirect edge.
5382 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5383 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5384 Anna Tikhonova <anna.tikhonova@intel.com>
5385 Ilya Tocar <ilya.tocar@intel.com>
5386 Andrey Turetskiy <andrey.turetskiy@intel.com>
5387 Ilya Verbin <ilya.verbin@intel.com>
5388 Kirill Yukhin <kirill.yukhin@intel.com>
5389 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5391 * config/i386/sse.md
5392 (define_mode_iterator VI8_AVX2_AVX512BW): New.
5393 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
5395 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5396 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5397 Anna Tikhonova <anna.tikhonova@intel.com>
5398 Ilya Tocar <ilya.tocar@intel.com>
5399 Andrey Turetskiy <andrey.turetskiy@intel.com>
5400 Ilya Verbin <ilya.verbin@intel.com>
5401 Kirill Yukhin <kirill.yukhin@intel.com>
5402 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5404 * config/i386/sse.md
5405 (define_mode_iterator VF1_AVX512VL): New.
5406 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
5407 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
5410 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5411 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5412 Anna Tikhonova <anna.tikhonova@intel.com>
5413 Ilya Tocar <ilya.tocar@intel.com>
5414 Andrey Turetskiy <andrey.turetskiy@intel.com>
5415 Ilya Verbin <ilya.verbin@intel.com>
5416 Kirill Yukhin <kirill.yukhin@intel.com>
5417 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5419 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
5420 * config/i386/i386.md
5421 (define_code_iterator any_float): New.
5422 (define_code_attr floatsuffix): New.
5423 * config/i386/sse.md
5424 (define_mode_iterator VF1_128_256VL): New.
5425 (define_mode_iterator VF2_512_256VL): New.
5426 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
5428 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
5429 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
5431 (define_mode_attr qq2pssuff): New.
5432 (define_mode_attr sselongvecmode): New.
5433 (define_mode_attr sselongvecmodelower): New.
5434 (define_mode_attr sseintvecmode3): New.
5435 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
5437 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
5438 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
5439 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
5440 (define_insn "ufloatv2siv2df2<mask_name>"): New.
5442 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5443 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5444 Anna Tikhonova <anna.tikhonova@intel.com>
5445 Ilya Tocar <ilya.tocar@intel.com>
5446 Andrey Turetskiy <andrey.turetskiy@intel.com>
5447 Ilya Verbin <ilya.verbin@intel.com>
5448 Kirill Yukhin <kirill.yukhin@intel.com>
5449 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5451 * config/i386/sse.md
5452 (define_mode_iterator VF2_AVX512VL): New.
5453 (define_mode_attr sseintvecmode2): New.
5454 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
5455 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
5456 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
5458 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
5460 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5462 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5465 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5466 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5467 Anna Tikhonova <anna.tikhonova@intel.com>
5468 Ilya Tocar <ilya.tocar@intel.com>
5469 Andrey Turetskiy <andrey.turetskiy@intel.com>
5470 Ilya Verbin <ilya.verbin@intel.com>
5471 Kirill Yukhin <kirill.yukhin@intel.com>
5472 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5474 * config/i386/i386.md
5475 (define_insn "*movoi_internal_avx"): Add evex version.
5476 (define_insn "*movti_internal"): Ditto.
5478 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5479 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5480 Anna Tikhonova <anna.tikhonova@intel.com>
5481 Ilya Tocar <ilya.tocar@intel.com>
5482 Andrey Turetskiy <andrey.turetskiy@intel.com>
5483 Ilya Verbin <ilya.verbin@intel.com>
5484 Kirill Yukhin <kirill.yukhin@intel.com>
5485 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5487 * config/i386/i386.md
5488 (define_attr "isa"): Add avx512dq, noavx512dq.
5489 (define_attr "enabled"): Ditto.
5490 * config/i386/sse.md
5491 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
5493 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5494 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5495 Anna Tikhonova <anna.tikhonova@intel.com>
5496 Ilya Tocar <ilya.tocar@intel.com>
5497 Andrey Turetskiy <andrey.turetskiy@intel.com>
5498 Ilya Verbin <ilya.verbin@intel.com>
5499 Kirill Yukhin <kirill.yukhin@intel.com>
5500 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5502 * config/i386/i386.c
5503 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
5504 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
5505 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
5506 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
5507 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
5508 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
5509 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
5510 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
5511 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
5512 * config/i386/sse.md
5513 (define_mode_iterator VMOVE): Allow V4TI mode.
5514 (define_mode_iterator V_AVX512VL): New.
5515 (define_mode_iterator V): New handling for AVX512VL.
5516 (define_insn "avx512f_load<mode>_mask"): Delete.
5517 (define_insn "<avx512>_load<mode>_mask"): New.
5518 (define_insn "avx512f_store<mode>_mask"): Delete.
5519 (define_insn "<avx512>_store<mode>_mask"): New.
5522 2014-08-18 Yury Gribov <y.gribov@samsung.com>
5525 * asan.c (instrument_derefs): Fix bitfield check.
5527 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5529 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
5530 * config/rs6000/htm.md (ttest): Remove clobber.
5531 * config/rs6000/predicates.md (any_mask_operand): New predicate.
5532 (and_operand): Reformat.
5533 (and_2rld_operand): New predicate.
5534 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
5536 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
5537 parameter. Handle AND directly.
5538 (rs6000_split_logical_di): Remove last parameter.
5539 (rs6000_split_logical): Remove last parameter. Remove obsolete
5541 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
5542 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
5543 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
5544 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
5545 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
5546 and 5 anonymous splitters): Delete.
5547 (and<mode>3): New expander.
5548 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
5549 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
5550 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
5551 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
5552 (floatdisf2_internal1): Remove clobbers.
5553 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
5554 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
5555 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
5556 (and<mode>3 for BOOL_128): Remove clobber.
5557 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
5558 rs6000_split_logical.
5559 (*bool<mode>3_internal for BOOL_128): Adjust call of
5560 rs6000_split_logical.
5561 (*boolc<mode>3_internal1 for BOOL_128,
5562 *boolc<mode>3_internal2 for BOOL_128,
5563 *boolcc<mode>3_internal1 for BOOL_128,
5564 *boolcc<mode>3_internal2 for BOOL_128,
5565 *eqv<mode>3_internal1 for BOOL_128,
5566 *eqv<mode>3_internal2 for BOOL_128,
5567 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
5568 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
5570 (*vec_reload_and_reg_<mptrsize>): Delete.
5572 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5574 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
5575 and split, *boolccsi3_internal3 and split): Delete.
5576 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
5577 *boolccdi3_internal3 and split): Delete.
5578 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
5579 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
5581 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5583 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
5584 and split, *boolcsi3_internal3 and split): Delete.
5585 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
5586 *boolcdi3_internal3 and split): Delete.
5587 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
5589 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5591 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
5592 <'u'>: Also support printing the low-order 16 bits.
5593 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
5594 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
5595 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
5596 *booldi3_internal3 and split): Delete.
5597 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
5598 *bool<mode>3_dot2): New.
5599 (two anonymous define_splits for non_logical_cint_operand): Merge.
5601 2014-08-17 Marek Polacek <polacek@redhat.com>
5602 Manuel López-Ibáñez <manu@gcc.gnu.org>
5605 * diagnostic.c (adjust_line): Add gcc_checking_assert.
5606 (diagnostic_show_locus): Don't print caret diagnostic
5607 if a column is larger than the line_width.
5609 2014-08-17 Roman Gareev <gareevroman@gmail.com>
5611 * common.opt: Make the ISL AST generator to be the main code generator
5614 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
5616 * wide-int.h (generic_wide_int): Declare as class instead of struct.
5618 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
5621 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
5623 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
5624 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
5625 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
5627 * config/pa/pa.md (begin_brtab): Delete insn.
5628 (end_brtab): Likewise.
5630 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
5632 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
5634 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
5636 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
5637 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
5638 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
5639 (get_dynamic_type): Remove.
5640 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
5641 (clear_speculation): Bring to ipa-deivrt.h
5642 (get_class_context): Rename to ...
5643 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
5644 (contains_type_p): Update.
5645 (get_dynamic_type): Rename to ...
5646 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
5647 (possible_polymorphic_call_targets): UPdate.
5648 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
5649 * ipa-prop.c (ipa_analyze_call_uses): Update.
5651 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
5653 * doc/invoke.texi (SH options): Document missing processor variant
5654 options. Remove references to Hitachi. Undocument deprecated mspace
5657 2014-08-15 Jason Merrill <jason@redhat.com>
5659 * tree.c (type_hash_canon): Uncomment assert.
5661 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5663 * input.h (in_system_header_at): Add comment.
5665 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5668 * diagnostic.c (build_message_string): Make it extern.
5669 * diagnostic.h (build_message_string): Make it extern.
5671 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
5673 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
5674 load/store from/to non-floating class pseudo.
5676 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5678 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
5680 2014-08-15 Richard Biener <rguenther@suse.de>
5682 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
5683 (get_constraint_for_ssa_var): Remove dead code.
5684 (get_constraint_for_1): Adjust.
5685 (find_what_var_points_to): Likewise.
5686 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
5688 2014-08-15 Ilya Tocar <tocarip@gmail.com>
5691 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
5692 (_mm512_mask_cmpge_epu32_mask): Ditto.
5693 (_mm512_cmpge_epu32_mask): Ditto.
5694 (_mm512_mask_cmpge_epi64_mask): Ditto.
5695 (_mm512_cmpge_epi64_mask): Ditto.
5696 (_mm512_mask_cmpge_epu64_mask): Ditto.
5697 (_mm512_cmpge_epu64_mask): Ditto.
5698 (_mm512_mask_cmple_epi32_mask): Ditto.
5699 (_mm512_cmple_epi32_mask): Ditto.
5700 (_mm512_mask_cmple_epu32_mask): Ditto.
5701 (_mm512_cmple_epu32_mask): Ditto.
5702 (_mm512_mask_cmple_epi64_mask): Ditto.
5703 (_mm512_cmple_epi64_mask): Ditto.
5704 (_mm512_mask_cmple_epu64_mask): Ditto.
5705 (_mm512_cmple_epu64_mask): Ditto.
5706 (_mm512_mask_cmplt_epi32_mask): Ditto.
5707 (_mm512_cmplt_epi32_mask): Ditto.
5708 (_mm512_mask_cmplt_epu32_mask): Ditto.
5709 (_mm512_cmplt_epu32_mask): Ditto.
5710 (_mm512_mask_cmplt_epi64_mask): Ditto.
5711 (_mm512_cmplt_epi64_mask): Ditto.
5712 (_mm512_mask_cmplt_epu64_mask): Ditto.
5713 (_mm512_cmplt_epu64_mask): Ditto.
5714 (_mm512_mask_cmpneq_epi32_mask): Ditto.
5715 (_mm512_mask_cmpneq_epu32_mask): Ditto.
5716 (_mm512_cmpneq_epu32_mask): Ditto.
5717 (_mm512_mask_cmpneq_epi64_mask): Ditto.
5718 (_mm512_cmpneq_epi64_mask): Ditto.
5719 (_mm512_mask_cmpneq_epu64_mask): Ditto.
5720 (_mm512_cmpneq_epu64_mask): Ditto.
5721 (_mm512_castpd_ps): Ditto.
5722 (_mm512_castpd_si512): Ditto.
5723 (_mm512_castps_pd): Ditto.
5724 (_mm512_castps_si512): Ditto.
5725 (_mm512_castsi512_ps): Ditto.
5726 (_mm512_castsi512_pd): Ditto.
5727 (_mm512_castpd512_pd128): Ditto.
5728 (_mm512_castps512_ps128): Ditto.
5729 (_mm512_castsi512_si128): Ditto.
5730 (_mm512_castpd512_pd256): Ditto.
5731 (_mm512_castps512_ps256): Ditto.
5732 (_mm512_castsi512_si256): Ditto.
5733 (_mm512_castpd128_pd512): Ditto.
5734 (_mm512_castps128_ps512): Ditto.
5735 (_mm512_castsi128_si512): Ditto.
5736 (_mm512_castpd256_pd512): Ditto.
5737 (_mm512_castps256_ps512): Ditto.
5738 (_mm512_castsi256_si512): Ditto.
5739 (_mm512_cmpeq_epu32_mask): Ditto.
5740 (_mm512_mask_cmpeq_epu32_mask): Ditto.
5741 (_mm512_mask_cmpeq_epu64_mask): Ditto.
5742 (_mm512_cmpeq_epu64_mask): Ditto.
5743 (_mm512_cmpgt_epu32_mask): Ditto.
5744 (_mm512_mask_cmpgt_epu32_mask): Ditto.
5745 (_mm512_mask_cmpgt_epu64_mask): Ditto.
5746 (_mm512_cmpgt_epu64_mask): Ditto.
5747 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
5748 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
5749 * config/i386/i386.c (enum ix86_builtins): Add
5750 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
5751 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
5752 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
5753 (bdesc_args): Add __builtin_ia32_si512_256si,
5754 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
5755 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
5756 __builtin_ia32_pd512_pd.
5757 (ix86_expand_args_builtin): Handle new FTYPEs.
5758 * config/i386/sse.md (castmode): Add 512-bit modes.
5759 (AVX512MODE2P): New.
5760 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
5761 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
5763 2014-08-15 Richard Biener <rguenther@suse.de>
5765 * fold-const.c (tree_swap_operands_p): Put all constants
5766 last, also strip sign-changing NOPs when considering further
5767 canonicalization. Canonicalize also when optimizing for size.
5769 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5771 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
5772 one_match > zero_match case to just before simple_sequence.
5774 2014-08-15 Richard Biener <rguenther@suse.de>
5776 * data-streamer.h (streamer_string_index, string_for_index):
5778 * data-streamer-out.c (streamer_string_index): Make static.
5779 * data-streamer-in.c (string_for_index): Likewise.
5780 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
5781 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
5783 2014-08-15 Richard Biener <rguenther@suse.de>
5785 PR tree-optimization/62031
5786 * tree-data-ref.c (dr_analyze_indices): Do not set
5787 DR_UNCONSTRAINED_BASE.
5788 (dr_may_alias_p): All indirect accesses have to go the
5789 formerly DR_UNCONSTRAINED_BASE path.
5790 * tree-data-ref.h (struct indices): Remove
5791 unconstrained_base member.
5792 (DR_UNCONSTRAINED_BASE): Remove.
5794 2014-08-15 Jakub Jelinek <jakub@redhat.com>
5797 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
5798 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
5799 in OMP_CLAUSE_MAP in some outer target region.
5801 2014-08-15 Bin Cheng <bin.cheng@arm.com>
5803 * tree-ssa-loop-ivopts.c (ivopts_data): New field
5804 name_expansion_cache.
5805 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
5806 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
5807 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
5808 (difference_cannot_overflow_p): New parameter. Use affine
5809 expansion for equality check.
5810 (iv_elimination_compare_lt): Pass new argument.
5812 2014-08-14 DJ Delorie <dj@redhat.com>
5814 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
5815 variables to the accumulator.
5817 * config/rl78/predicates.md (rl78_near_mem_operand): New.
5818 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
5819 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
5822 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
5823 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
5824 (umulqihi3_virt): Likewise.
5825 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
5826 (umulqihi3_real): Likewise.
5828 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
5830 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
5832 PR tree-optimization/62091
5833 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
5834 function_entry_reached.
5835 (walk_aliased_vdefs): Clear it here.
5836 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
5838 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
5840 * ipa-utils.h (compare_virtual_tables): Declare.
5841 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
5843 2014-08-14 Marek Polacek <polacek@redhat.com>
5846 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
5847 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
5849 2014-08-14 Tom de Vries <tom@codesourcery.com>
5851 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
5853 2014-08-14 Tom de Vries <tom@codesourcery.com>
5855 PR rtl-optimization/62004
5856 PR rtl-optimization/62030
5857 * ifcvt.c (rtx_interchangeable_p): New function.
5858 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
5859 * emit-rtl.h (mem_attrs_eq_p): Declare.
5861 2014-08-14 Roman Gareev <gareevroman@gmail.com>
5863 * graphite-scop-detection.c:
5864 Add inclusion of cp-tree.h.
5865 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
5866 in case they are pointers to object types
5868 2014-08-14 Richard Biener <rguenther@suse.de>
5870 * BASE-VER: Change to 5.0.0
5872 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5873 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5874 Anna Tikhonova <anna.tikhonova@intel.com>
5875 Ilya Tocar <ilya.tocar@intel.com>
5876 Andrey Turetskiy <andrey.turetskiy@intel.com>
5877 Ilya Verbin <ilya.verbin@intel.com>
5878 Kirill Yukhin <kirill.yukhin@intel.com>
5879 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5881 * config/i386/sse.md (define_mode_attr avx512): New.
5882 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
5884 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
5885 (define_mode_attr ssse3_avx2): Ditto.
5886 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
5887 (define_mode_attr avx2_avx512bw): New.
5888 (define_mode_attr ssedoublemodelower): New.
5889 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
5891 (define_mode_attr ssebytemode): Allow V8DI modes.
5892 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
5893 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
5894 (define_mode_attr ssePSmode2): New.
5895 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
5897 (define_mode_attr dbpsadbwmode): New.
5898 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
5899 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
5900 (vi8_sse4_1_avx2_avx512): New.
5901 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
5903 (define_mode_attr blendbits): Move before its immediate use.
5905 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5906 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5907 Anna Tikhonova <anna.tikhonova@intel.com>
5908 Ilya Tocar <ilya.tocar@intel.com>
5909 Andrey Turetskiy <andrey.turetskiy@intel.com>
5910 Ilya Verbin <ilya.verbin@intel.com>
5911 Kirill Yukhin <kirill.yukhin@intel.com>
5912 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5914 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
5915 * config/i386/subst.md
5916 (define_mode_iterator SUBST_V): Update.
5917 (define_mode_iterator SUBST_A): Ditto.
5918 (define_subst_attr "mask_operand7"): New.
5919 (define_subst_attr "mask_operand10"): New.
5920 (define_subst_attr "mask_operand_arg34") : New.
5921 (define_subst_attr "mask_expand_op3"): New.
5922 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
5923 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
5924 (define_subst_attr "mask_avx512vl_condition"): New.
5925 (define_subst_attr "round_mask_operand4"): Ditto.
5926 (define_subst_attr "round_mask_scalar_op3"): Delete.
5927 (define_subst_attr "round_mask_op4"): New.
5928 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
5930 (define_subst_attr "round_modev8sf_condition"): New.
5931 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
5933 (define_subst_attr "round_saeonly_mask_operand4"): New.
5934 (define_subst_attr "round_saeonly_mask_op4"): New.
5935 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
5936 V8DImode, V16SImode.
5937 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
5938 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
5939 (define_subst_attr "mask_expand4_args"): New.
5940 (define_subst "mask_expand4"): New.
5942 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5943 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5944 Anna Tikhonova <anna.tikhonova@intel.com>
5945 Ilya Tocar <ilya.tocar@intel.com>
5946 Andrey Turetskiy <andrey.turetskiy@intel.com>
5947 Ilya Verbin <ilya.verbin@intel.com>
5948 Kirill Yukhin <kirill.yukhin@intel.com>
5949 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5951 * config/i386/i386.md
5952 (define_attr "isa"): Add avx512bw,noavx512bw.
5953 (define_attr "enabled"): Ditto.
5954 (define_split): Add 32/64-bit mask logic.
5955 (define_insn "*k<logic>qi"): New.
5956 (define_insn "*k<logic>hi"): New.
5957 (define_insn "*anddi_1"): Add mask version.
5958 (define_insn "*andsi_1"): Ditto.
5959 (define_insn "*<code><mode>_1"): Ditto.
5960 (define_insn "*<code>hi_1"): Ditto.
5961 (define_insn "kxnor<mode>"): New.
5962 (define_insn "kunpcksi"): New.
5963 (define_insn "kunpckdi"): New.
5964 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
5965 (define_insn "*one_cmplhi2_1"): Ditto.
5967 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5968 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5969 Anna Tikhonova <anna.tikhonova@intel.com>
5970 Ilya Tocar <ilya.tocar@intel.com>
5971 Andrey Turetskiy <andrey.turetskiy@intel.com>
5972 Ilya Verbin <ilya.verbin@intel.com>
5973 Kirill Yukhin <kirill.yukhin@intel.com>
5974 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5976 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
5979 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5980 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5981 Anna Tikhonova <anna.tikhonova@intel.com>
5982 Ilya Tocar <ilya.tocar@intel.com>
5983 Andrey Turetskiy <andrey.turetskiy@intel.com>
5984 Ilya Verbin <ilya.verbin@intel.com>
5985 Kirill Yukhin <kirill.yukhin@intel.com>
5986 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5988 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
5990 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
5991 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
5992 xmm/ymm16+ when availble.
5993 * config/i386/i386.h
5994 (HARD_REGNO_NREGS): Add mask regs.
5995 (VALID_AVX512F_REG_MODE): Ditto.
5996 (VALID_AVX512F_REG_MODE) : Define.
5997 (VALID_MASK_AVX512BW_MODE): Ditto.
5998 (reg_class) (MASK_REG_P(X)): Define.
5999 * config/i386/i386.md: Do not split long moves with mask register,
6000 use kmovb if avx512bw is availible.
6001 (movdi_internal): Handle mask registers.
6003 2014-08-14 Richard Biener <rguenther@suse.de>
6005 PR tree-optimization/62081
6006 * tree-ssa-loop.c (pass_fix_loops): New pass.
6007 (pass_tree_loop::gate): Do not fixup loops here.
6008 * tree-pass.h (make_pass_fix_loops): Declare.
6009 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6011 2014-08-14 Richard Biener <rguenther@suse.de>
6013 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6014 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6016 2014-08-14 Richard Biener <rguenther@suse.de>
6018 PR tree-optimization/62090
6019 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6020 (fold_builtin_2): Do not fold sprintf.
6021 (fold_builtin_3): Likewise.
6022 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6023 moved from builtins.c.
6024 (gimple_fold_builtin): Fold sprintf.
6026 2014-08-14 Richard Biener <rguenther@suse.de>
6028 PR rtl-optimization/62079
6029 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6032 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6034 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6035 current_function_decl.
6037 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6039 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6040 cgraph_function_node to cgraph_node::function_symbol
6043 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6045 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6046 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6048 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6050 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6053 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6055 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6058 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6061 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6062 any registers that are used in mem_insn.
6064 2014-08-12 Steve Ellcey <sellcey@mips.com>
6066 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6068 2014-08-12 Steve Ellcey <sellcey@mips.com>
6070 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6071 (MULTILIB_DIRNAMES): Ditto.
6072 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6073 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6074 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6075 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6076 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6077 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6079 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6082 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6083 of __ARM_SIZEOF_WCHAR_T.
6085 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6088 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6089 Remove unnecessary attributes.
6091 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6093 * internal-fn.c (init_internal_fns): Fix off-by-one.
6095 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6096 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6097 Anna Tikhonova <anna.tikhonova@intel.com>
6098 Ilya Tocar <ilya.tocar@intel.com>
6099 Andrey Turetskiy <andrey.turetskiy@intel.com>
6100 Ilya Verbin <ilya.verbin@intel.com>
6101 Kirill Yukhin <kirill.yukhin@intel.com>
6102 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6104 * config/i386/i386.c (standard_sse_constant_opcode): Use
6105 vpxord/vpternlog if avx512 is availible.
6107 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6110 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6111 bitfields, that is when size doesn't match the size of type or the
6112 size of the constructor.
6114 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6116 * config/rs6000/constraints.md (wh constraint): New constraint,
6117 for FP registers if direct move is available.
6118 (wi constraint): New constraint, for VSX/FP registers that can
6119 handle 64-bit integers.
6120 (wj constraint): New constraint for VSX/FP registers that can
6121 handle 64-bit integers for direct moves.
6122 (wk constraint): New constraint for VSX/FP registers that can
6123 handle 64-bit doubles for direct moves.
6124 (wy constraint): Make documentation match implementation.
6126 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6127 scalar_in_vmx_p field to simplify tests of whether SFmode or
6128 DFmode can go in the Altivec registers.
6129 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6130 (rs6000_setup_reg_addr_masks): Likewise.
6131 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6132 field, and wh/wi/wj/wk constraints.
6133 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6134 the wh/wi/wj/wk constraints.
6135 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6136 upper registers, prefer VSX registers unless the operation is a
6137 memory operation with REG+OFFSET addressing.
6139 * config/rs6000/vsx.md (VSr mode attribute): Add support for
6140 DImode. Change SFmode to use ww constraint instead of d to allow
6141 SF registers in the upper registers.
6144 (VSr5): Fix thinko in comment.
6145 (VSa): New mode attribute that is an alternative to wa, that
6146 returns the VSX register class that a mode can go in, but may not
6147 be the preferred register class.
6148 (VS_64dm): New mode attribute for appropriate register classes for
6149 referencing 64-bit elements of vectors for direct moves and normal
6151 (VS_64reg): Likewise.
6152 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6153 register allocator to only registers the data type can handle.
6154 (vsx_le_perm_load_<mode>): Likewise.
6155 (vsx_le_perm_store_<mode>): Likewise.
6156 (vsx_xxpermdi2_le_<mode>): Likewise.
6157 (vsx_xxpermdi4_le_<mode>): Likewise.
6158 (vsx_lxvd2x2_le_<mode>): Likewise.
6159 (vsx_lxvd2x4_le_<mode>): Likewise.
6160 (vsx_stxvd2x2_le_<mode>): Likewise.
6161 (vsx_add<mode>3): Likewise.
6162 (vsx_sub<mode>3): Likewise.
6163 (vsx_mul<mode>3): Likewise.
6164 (vsx_div<mode>3): Likewise.
6165 (vsx_tdiv<mode>3_internal): Likewise.
6166 (vsx_fre<mode>2): Likewise.
6167 (vsx_neg<mode>2): Likewise.
6168 (vsx_abs<mode>2): Likewise.
6169 (vsx_nabs<mode>2): Likewise.
6170 (vsx_smax<mode>3): Likewise.
6171 (vsx_smin<mode>3): Likewise.
6172 (vsx_sqrt<mode>2): Likewise.
6173 (vsx_rsqrte<mode>2): Likewise.
6174 (vsx_tsqrt<mode>2_internal): Likewise.
6175 (vsx_fms<mode>4): Likewise.
6176 (vsx_nfma<mode>4): Likewise.
6177 (vsx_eq<mode>): Likewise.
6178 (vsx_gt<mode>): Likewise.
6179 (vsx_ge<mode>): Likewise.
6180 (vsx_eq<mode>_p): Likewise.
6181 (vsx_gt<mode>_p): Likewise.
6182 (vsx_ge<mode>_p): Likewise.
6183 (vsx_xxsel<mode>): Likewise.
6184 (vsx_xxsel<mode>_uns): Likewise.
6185 (vsx_copysign<mode>3): Likewise.
6186 (vsx_float<VSi><mode>2): Likewise.
6187 (vsx_floatuns<VSi><mode>2): Likewise.
6188 (vsx_fix_trunc<mode><VSi>2): Likewise.
6189 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
6190 (vsx_x<VSv>r<VSs>i): Likewise.
6191 (vsx_x<VSv>r<VSs>ic): Likewise.
6192 (vsx_btrunc<mode>2): Likewise.
6193 (vsx_b2trunc<mode>2): Likewise.
6194 (vsx_floor<mode>2): Likewise.
6195 (vsx_ceil<mode>2): Likewise.
6196 (vsx_<VS_spdp_insn>): Likewise.
6197 (vsx_xscvspdp): Likewise.
6198 (vsx_xvcvspuxds): Likewise.
6199 (vsx_float_fix_<mode>2): Likewise.
6200 (vsx_set_<mode>): Likewise.
6201 (vsx_extract_<mode>_internal1): Likewise.
6202 (vsx_extract_<mode>_internal2): Likewise.
6203 (vsx_extract_<mode>_load): Likewise.
6204 (vsx_extract_<mode>_store): Likewise.
6205 (vsx_splat_<mode>): Likewise.
6206 (vsx_xxspltw_<mode>): Likewise.
6207 (vsx_xxspltw_<mode>_direct): Likewise.
6208 (vsx_xxmrghw_<mode>): Likewise.
6209 (vsx_xxmrglw_<mode>): Likewise.
6210 (vsx_xxsldwi_<mode>): Likewise.
6211 (vsx_xscvdpspn): Tighten constraints to only use register classes
6213 (vsx_xscvspdpn): Likewise.
6214 (vsx_xscvdpspn_scalar): Likewise.
6216 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
6217 wj, and wk constraints.
6218 (GPR_REG_CLASS_P): New helper macro for register classes targeting
6219 general purpose registers.
6221 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
6223 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
6224 DImode instead of wm. Use wk constraint for direct move of DFmode
6226 (extendsidi2_lfiwax): Likewise.
6229 (movdi_internal64): Likewise.
6231 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
6232 wk constraints. Make the wy constraint documentation match them
6235 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
6237 Replacement of isl_int by isl_val
6238 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
6239 (compute_bounds_for_param): use isl_val instead of isl_int
6240 (compute_bounds_for_loop): likewise
6241 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
6242 (build_linearized_memory_access): use isl_val instead of isl_int
6243 (pdr_stride_in_loop): likewise
6244 * graphite-optimize-isl.c:
6245 (getPrevectorMap): use isl_val instead of isl_int
6247 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
6248 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
6249 (extern the_isl_ctx): declare
6250 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
6251 (extract_affine_gmp): likewise
6253 (build_loop_iteration_domains): likewise
6254 (add_param_constraints): likewise
6256 2014-08-11 Richard Biener <rguenther@suse.de>
6258 PR tree-optimization/62075
6259 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
6260 handle uses in patterns.
6262 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6263 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6264 Anna Tikhonova <anna.tikhonova@intel.com>
6265 Ilya Tocar <ilya.tocar@intel.com>
6266 Andrey Turetskiy <andrey.turetskiy@intel.com>
6267 Ilya Verbin <ilya.verbin@intel.com>
6268 Kirill Yukhin <kirill.yukhin@intel.com>
6269 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6271 * common/config/i386/i386-common.c
6272 (OPTION_MASK_ISA_AVX512VL_SET): Define.
6273 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
6274 (ix86_handle_option): Handle OPT_mavx512vl.
6275 * config/i386/cpuid.h (bit_AVX512VL): Define.
6276 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
6277 set -mavx512vl accordingly.
6278 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6279 OPTION_MASK_ISA_AVX512VL.
6280 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
6281 (ix86_option_override_internal): Define PTA_AVX512VL, handle
6282 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
6283 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
6284 * config/i386/i386.h (TARGET_AVX512VL): Define.
6285 (TARGET_AVX512VL_P(x)): Ditto.
6286 * config/i386/i386.opt: Add mavx512vl.
6288 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
6290 PR tree-optimization/62073
6291 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
6294 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6295 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6296 Anna Tikhonova <anna.tikhonova@intel.com>
6297 Ilya Tocar <ilya.tocar@intel.com>
6298 Andrey Turetskiy <andrey.turetskiy@intel.com>
6299 Ilya Verbin <ilya.verbin@intel.com>
6300 Kirill Yukhin <kirill.yukhin@intel.com>
6301 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6303 * common/config/i386/i386-common.c
6304 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
6305 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
6306 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
6307 (ix86_handle_option): Handle OPT_mavx512bw.
6308 * config/i386/cpuid.h (bit_AVX512BW): Define.
6309 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
6310 set -mavx512bw accordingly.
6311 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6312 OPTION_MASK_ISA_AVX512BW.
6313 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
6314 (ix86_option_override_internal): Define PTA_AVX512BW, handle
6315 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
6316 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
6317 * config/i386/i386.h (TARGET_AVX512BW): Define.
6318 (TARGET_AVX512BW_P(x)): Ditto.
6319 * config/i386/i386.opt: Add mavx512bw.
6321 2014-08-11 Richard Biener <rguenther@suse.de>
6323 PR tree-optimization/62070
6324 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
6325 Remove SSA checking.
6327 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6329 * asan.c (asan_check_flags): New enum.
6330 (build_check_stmt_with_calls): Removed function.
6331 (build_check_stmt): Split inlining logic to
6332 asan_expand_check_ifn.
6333 (instrument_derefs): Rename parameter.
6334 (instrument_mem_region_access): Rename parameter.
6335 (instrument_strlen_call): Likewise.
6336 (asan_expand_check_ifn): New function.
6337 (asan_instrument): Remove old code.
6338 (pass_sanopt::execute): Change handling of
6339 asan-instrumentation-with-call-threshold.
6340 (asan_clear_shadow): Fix formatting.
6341 (asan_function_start): Likewise.
6342 (asan_emit_stack_protection): Likewise.
6343 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
6345 * internal-fn.c (expand_ASAN_CHECK): New function.
6346 * internal-fn.def (ASAN_CHECK): New internal function.
6347 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
6349 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
6350 * tree.c: Small comment fix.
6352 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6354 * gimple.c (gimple_call_fnspec): Support internal functions.
6355 (gimple_call_return_flags): Use const.
6356 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
6357 * internal-fn.def: Add fnspec information.
6358 * internal-fn.h (internal_fn_fnspec): New function.
6359 (init_internal_fns): Declare new function.
6360 * internal-fn.c (internal_fn_fnspec_array): New global variable.
6361 (init_internal_fns): New function.
6362 * tree-core.h: Update macro call.
6363 * tree.c (build_common_builtin_nodes): Initialize internal fns.
6365 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
6367 * lto-streamer.h (struct output_block::symbol): Change from
6368 struct symtab_node to plain symtab_node.
6369 (referenced_from_this_partition_p): Change first parameter
6370 from struct symtab_node to plain symtab_node.
6372 2014-08-10 Marek Polacek <polacek@redhat.com>
6375 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
6377 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
6379 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
6380 DECL correctly; do not give up on types in static storage.
6382 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
6384 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
6386 2014-08-09 Roman Gareev <gareevroman@gmail.com>
6388 * graphite-isl-ast-to-gimple.c:
6389 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
6391 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
6393 2014-08-08 Guozhi Wei <carrot@google.com>
6395 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
6397 2014-08-08 Cary Coutant <ccoutant@google.com>
6399 * dwarf2out.c (get_skeleton_type_unit): Remove.
6400 (output_skeleton_debug_sections): Remove skeleton type units.
6401 (output_comdat_type_unit): Likewise.
6402 (dwarf2out_finish): Likewise.
6404 2014-08-07 Yi Yang <ahyangyi@google.com>
6406 * predict.c (expr_expected_value_1): Remove the redundant assignment.
6408 2014-08-08 Richard Biener <rguenther@suse.de>
6410 * lto-streamer.h (struct lto_input_block): Make it a class
6412 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
6413 (struct lto_function_header, struct lto_simple_header,
6414 struct lto_simple_header_with_strings,
6415 struct lto_decl_header, struct lto_function_header): Make
6416 a simple inheritance hieararchy. Remove unused fields.
6417 (struct lto_asm_header): Remove.
6418 * lto-streamer-out.c (produce_asm): Adjust.
6419 (lto_output_toplevel_asms): Likewise.
6420 (produce_asm_for_decls): Likewise.
6421 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
6422 * data-streamer-in.c (string_for_index): Likewise.
6423 * ipa-inline-analysis.c (inline_read_section): Likewise.
6424 * ipa-prop.c (ipa_prop_read_section): Likewise.
6425 (read_replacements_section): Likewise.
6426 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
6427 * lto-section-in.c (lto_create_simple_input_block): Likewise.
6428 (lto_destroy_simple_input_block): Likewise.
6429 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
6430 (lto_input_toplevel_asms): Likewise.
6432 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
6433 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6434 Anna Tikhonova <anna.tikhonova@intel.com>
6435 Ilya Tocar <ilya.tocar@intel.com>
6436 Andrey Turetskiy <andrey.turetskiy@intel.com>
6437 Ilya Verbin <ilya.verbin@intel.com>
6438 Kirill Yukhin <kirill.yukhin@intel.com>
6439 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6441 * common/config/i386/i386-common.c
6442 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
6443 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
6444 (ix86_handle_option): Handle OPT_mavx512dq.
6445 * config/i386/cpuid.h (bit_AVX512DQ): Define.
6446 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
6447 set -mavx512dq accordingly.
6448 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6449 OPTION_MASK_ISA_AVX512DQ.
6450 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
6451 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
6452 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
6453 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
6454 * config/i386/i386.h (TARGET_AVX512DQ): Define.
6455 (TARGET_AVX512DQ_P(x)): Ditto.
6456 * config/i386/i386.opt: Add mavx512dq.
6458 2014-08-08 Richard Biener <rguenther@suse.de>
6460 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
6461 target_percent, target_percent_s): Export.
6462 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
6463 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
6464 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
6465 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
6466 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
6467 Move to gimple-fold.c.
6468 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
6470 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
6471 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
6472 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
6473 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
6474 (rewrite_call_expr_array): Remove.
6475 (fold_builtin_sprintf_chk): Likewise.
6476 (fold_builtin_snprintf_chk): Likewise.
6477 (fold_builtin_varargs): Remove handling of sprintf_chk,
6478 vsprintf_chk, snprintf_chk and vsnprintf_chk.
6479 (gimple_fold_builtin_sprintf_chk): Remove.
6480 (gimple_fold_builtin_snprintf_chk): Likewise.
6481 (gimple_fold_builtin_varargs): Likewise.
6482 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
6483 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
6484 * gimple.c (gimple_seq_add_seq_without_update): New function.
6485 * gimple.h (gimple_seq_add_seq_without_update): Declare.
6486 * gimple-fold.c: Include output.h.
6487 (gsi_replace_with_seq_vops): New function, split out from ...
6488 (gimplify_and_update_call_from_tree): ... here.
6489 (replace_call_with_value): New function.
6490 (replace_call_with_call_and_fold): Likewise.
6491 (var_decl_component_p): Moved from builtins.c.
6492 (gimple_fold_builtin_memory_op): Moved from builtins.c
6493 fold_builtin_memory_op and rewritten to GIMPLE.
6494 (gimple_fold_builtin_memset): Likewise.
6495 (gimple_fold_builtin_strcpy): Likewise.
6496 (gimple_fold_builtin_strncpy): Likewise.
6497 (gimple_fold_builtin_strcat): Likewise.
6498 (gimple_fold_builtin_fputs): Likewise.
6499 (gimple_fold_builtin_memory_chk): Likewise.
6500 (gimple_fold_builtin_stxcpy_chk): Likewise.
6501 (gimple_fold_builtin_stxncpy_chk): Likewise.
6502 (gimple_fold_builtin_snprintf_chk): Likewise.
6503 (gimple_fold_builtin_sprintf_chk): Likewise.
6504 (gimple_fold_builtin_strlen): New function.
6505 (gimple_fold_builtin_with_strlen): New function split out from
6506 gimple_fold_builtin.
6507 (gimple_fold_builtin): Change signature and handle
6508 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
6509 here. Call gimple_fold_builtin_with_strlen.
6510 (gimple_fold_call): Adjust.
6512 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
6514 * calls.c (precompute_arguments): Check
6515 promoted_for_signed_and_unsigned_p and set the promoted mode.
6516 (promoted_for_signed_and_unsigned_p): New function.
6517 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
6518 and set the promoted mode.
6519 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
6520 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
6521 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
6524 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
6526 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
6527 instead of SUBREG_PROMOTED_UNSIGNED_SET.
6528 (expand_call): Likewise.
6529 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
6530 to get promoted mode.
6531 * combine.c (record_promoted_value): Skip > 0 comparison with
6532 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
6533 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
6534 of SUBREG_PROMOTED_UNSIGNED_P.
6535 (convert_modes): Likewise.
6536 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
6537 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
6538 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
6539 SUBREG_PROMOTED_UNSIGNED_SET.
6540 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
6541 instead of SUBREG_PROMOTED_UNSIGNED_SET.
6542 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
6543 SUBREG_PROMOTED_SET.
6544 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
6545 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
6546 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
6547 of SUBREG_PROMOTED_UNSIGNED_P.
6548 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
6549 (SUBREG_PROMOTED_SET): New define.
6550 (SUBREG_PROMOTED_GET): Likewise.
6551 (SUBREG_PROMOTED_SIGN): Likewise.
6552 (SUBREG_PROMOTED_SIGNED_P): Likewise.
6553 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
6554 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
6555 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
6556 instead of SUBREG_PROMOTED_UNSIGNED_GET.
6557 (nonzero_bits1): Skip > 0 comparison with the results as
6558 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
6559 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
6560 of !SUBREG_PROMOTED_UNSIGNED_P.
6561 * simplify-rtx.c (simplify_unary_operation_1): Use new
6562 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
6563 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
6564 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
6565 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
6567 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
6569 * ipa-devirt.c: Include gimple-pretty-print.h
6570 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
6572 (decl_maybe_in_construction_p): Fix conditional on cdtor check
6573 (get_polymorphic_call_info): Fix return value
6574 (type_change_info): New sturcture based on ipa-prop
6576 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
6577 based on ipa-prop variant.
6578 (extr_type_from_vtbl_ptr_store): New function
6579 based on ipa-prop variant.
6580 (record_known_type): New function.
6581 (check_stmt_for_type_change): New function.
6582 (get_dynamic_type): New function.
6583 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
6584 * tree-ssa-pre.c: ipa-utils.h
6585 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
6586 machinery; sanity check with ipa-prop devirtualization.
6587 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
6590 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
6592 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
6593 * alias.c, cfgexpand.c, cgraphbuild.c,
6594 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
6595 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
6596 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
6597 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
6598 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
6599 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6600 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
6601 dse.c, except.c, gengtype.c, gimple-expr.c,
6602 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
6603 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
6604 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
6605 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
6606 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
6607 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
6609 * pointer-set.c: Remove file.
6610 * pointer-set.h: Remove file.
6612 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6614 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
6615 * config/arm/types.md (f_sels, f_seld): Delete.
6617 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6619 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
6620 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
6621 (aarch64_movdi_<mode>high): Likewise.
6622 (aarch64_mov<mode>high_di): Likewise.
6623 (aarch64_movdi_<mode>low): Likewise.
6624 (aarch64_mov<mode>low_di): Likewise.
6625 (aarch64_movtilow_tilow): Likewise.
6626 Add comment explaining usage of fp,simd attributes and of
6627 TARGET_FLOAT and TARGET_SIMD.
6629 2014-08-07 Ian Bolton <ian.bolton@arm.com>
6630 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6632 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
6633 Use MOVN when one of the half-words is 0xffff.
6635 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
6637 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
6639 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
6641 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
6642 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
6643 (rfs_str): String corresponding to RFS_* constants.
6644 (rank_for_schedule_stats_t): New typedef.
6645 (rank_for_schedule_stats): New static variable.
6646 (rfs_result): New static function.
6647 (rank_for_schedule): Track statistics for deciding heuristics.
6648 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
6650 (ready_sort): Use them for debug printouts.
6651 (schedule_block): Init statistics state. Print statistics on
6652 rank_for_schedule decisions.
6654 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
6656 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
6658 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
6660 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
6663 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
6665 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
6666 function to not conflict.
6667 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
6668 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
6669 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
6670 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
6671 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
6674 2014-08-07 Marek Polacek <polacek@redhat.com>
6676 * fold-const.c (fold_binary_loc): Add folding of
6677 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
6679 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
6681 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
6682 instead of type size.
6683 (ASM_FINISH_DECLARE_OBJECT): Likewise.
6685 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
6687 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
6688 (*thumb1_movqi_insn): Likewise.
6689 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
6691 2014-08-07 Tom de Vries <tom@codesourcery.com>
6693 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
6694 (glibc_2_11_or_earlier): Remove effective-target keywords.
6696 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
6698 * config/arm/arm.c (bdesc_2arg): Fix typo.
6699 (arm_atomic_assign_expand_fenv): Remove The default implementation.
6701 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
6703 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
6705 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
6708 * haifa-sched.c (advance_one_cycle): Fix dump.
6709 (schedule_block): Don't advance cycle if we are already at the
6710 beginning of the cycle.
6712 2014-08-06 Martin Jambor <mjambor@suse.cz>
6715 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
6717 2014-08-06 Richard Biener <rguenther@suse.de>
6720 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
6722 (lto_input_tree): Pop SCCs here.
6724 2014-08-06 Richard Biener <rguenther@suse.de>
6726 PR tree-optimization/61320
6727 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
6728 handle misaligned loads.
6730 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
6732 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
6733 (aarch64_expand_vec_perm_const): Check for dup before zip.
6735 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6737 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
6738 CONST_INT_P instead of GET_CODE and compare.
6739 (aarch64_select_cc_mode): Likewise.
6740 (aarch64_print_operand): Likewise.
6741 (aarch64_rtx_costs): Likewise.
6742 (aarch64_simd_valid_immediate): Likewise.
6743 (aarch64_simd_check_vect_par_cnst_half): Likewise.
6744 (aarch64_simd_emit_pair_result_insn): Likewise.
6746 2014-08-05 David Malcolm <dmalcolm@redhat.com>
6748 * gdbhooks.py (find_gcc_source_dir): New helper function.
6749 (class PassNames): New class, locating and parsing passes.def.
6750 (class BreakOnPass): New command "break-on-pass".
6752 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
6754 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
6757 2014-08-05 Richard Biener <rguenther@suse.de>
6759 PR rtl-optimization/61672
6760 * emit-rtl.h (mem_attrs_eq_p): Declare.
6761 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
6762 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
6763 * cfgcleanup.c (merge_memattrs): Likewise.
6766 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6768 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
6769 rather than singleton vectors.
6770 (vqdmlsls_lane_s32): Likewise.
6772 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6774 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
6775 Use VSDQ_HSI mode iterator.
6776 (aarch64_sqrdmulh_laneq<mode>): Likewise.
6777 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
6778 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
6779 Use BUILTIN_VDQHS macro.
6780 (sqrdmulh_laneq): Likewise.
6781 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
6782 (vqdmlals_laneq_s32): Likewise.
6783 (vqdmlslh_laneq_s16): Likewise.
6784 (vqdmlsls_laneq_s32): Likewise.
6785 (vqdmulhh_laneq_s16): Likewise.
6786 (vqdmulhs_laneq_s32): Likewise.
6787 (vqrdmulhh_laneq_s16): Likewise.
6788 (vqrdmulhs_laneq_s32): Likewise.
6790 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6792 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
6793 (vmuld_laneq_f64): Likewise.
6794 (vmuls_laneq_f32): Likewise.
6795 (vmul_n_f64): Likewise.
6796 (vmuld_lane_f64): Reimplement in C.
6797 (vmuls_lane_f32): Likewise.
6799 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6801 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
6803 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
6805 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6807 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
6808 (rbitsi2): Likewise.
6809 (*arm_rev): Set predicable and predicable_short_it attributes.
6811 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6813 * convert.c (convert_to_integer): Guard transformation to lrint by
6816 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
6818 * config/aarch64/aarch64-builtins.c
6819 (aarch64_simd_builtin_type_mode): Delete.
6820 (v8qi_UP): Remap to V8QImode.
6821 (v4hi_UP): Remap to V4HImode.
6822 (v2si_UP): Remap to V2SImode.
6823 (v2sf_UP): Remap to V2SFmode.
6824 (v1df_UP): Remap to V1DFmode.
6825 (di_UP): Remap to DImode.
6826 (df_UP): Remap to DFmode.
6827 (v16qi_UP):V16QImode.
6828 (v8hi_UP): Remap to V8HImode.
6829 (v4si_UP): Remap to V4SImode.
6830 (v4sf_UP): Remap to V4SFmode.
6831 (v2di_UP): Remap to V2DImode.
6832 (v2df_UP): Remap to V2DFmode.
6833 (ti_UP): Remap to TImode.
6834 (ei_UP): Remap to EImode.
6835 (oi_UP): Remap to OImode.
6836 (ci_UP): Map to CImode.
6837 (xi_UP): Remap to XImode.
6838 (si_UP): Remap to SImode.
6839 (sf_UP): Remap to SFmode.
6840 (hi_UP): Remap to HImode.
6841 (qi_UP): Remap to QImode.
6842 (aarch64_simd_builtin_datum): Make mode a machine_mode.
6843 (VAR1): Build builtin name.
6844 (aarch64_init_simd_builtins): Remove dead code.
6846 2014-08-05 Roman Gareev <gareevroman@gmail.com>
6848 * graphite-isl-ast-to-gimple.c:
6849 (set_options): New function.
6850 (scop_to_isl_ast): Add calling of set_options.
6852 2014-08-05 Jakub Jelinek <jakub@redhat.com>
6854 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
6855 (analyze_iv_to_split_insn): Don't initialize them.
6856 (get_ivts_expr): Removed.
6857 (allocate_basic_variable, insert_base_initialization): Use
6858 SET_SRC instead of *get_ivts_expr.
6859 (split_iv): Use &SET_SRC instead of get_ivts_expr.
6861 2014-08-05 Roman Gareev <gareevroman@gmail.com>
6863 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
6864 (translate_isl_ast_for_loop): Add checking of the
6865 flag_loop_parallelize_all.
6866 (ast_build_before_for): New function.
6867 (scop_to_isl_ast): Add checking of the
6868 flag_loop_parallelize_all.
6869 * graphite-dependences.c: Move the defenition of the
6870 scop_get_dependences from graphite-optimize-isl.c to this file.
6871 (apply_schedule_on_deps): Add checking of the ux's emptiness.
6872 (carries_deps): Add checking of the x's value.
6873 * graphite-optimize-isl.c: Move the defenition of the
6874 scop_get_dependences to graphite-dependences.c.
6875 * graphite-poly.h: Add declarations of scop_get_dependences
6878 2014-08-04 Rohit <rohitarulraj@freescale.com>
6881 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
6883 (alt_reg_names): Likewise.
6884 (rs6000_dwarf_register_span): For SPE high registers, replace
6885 dwarf register numbers with GCC hard register numbers.
6886 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
6887 (rs6000_dbx_register_number): For SPE high registers, return dwarf
6888 register number for the corresponding GCC hard register number.
6889 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
6890 newly added GCC hard register numbers for SPE high registers.
6891 (DWARF_FRAME_REGISTERS): Likewise.
6892 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
6893 (DWARF_FRAME_REGNUM): Likewise.
6894 (FIXED_REGISTERS): Likewise.
6895 (CALL_USED_REGISTERS): Likewise.
6896 (CALL_REALLY_USED_REGISTERS): Likewise.
6897 (REG_ALLOC_ORDER): Likewise.
6898 (enum reg_class): Likewise.
6899 (REG_CLASS_NAMES): Likewise.
6900 (REG_CLASS_CONTENTS): Likewise.
6901 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
6903 2014-08-04 Richard Biener <rguenther@suse.de>
6905 * gimple-fold.h (gimple_fold_builtin): Remove.
6906 * gimple-fold.c (gimple_fold_builtin): Make static.
6907 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
6908 fold_stmt, not gimple_fold_builtin.
6910 2014-08-04 Martin Liska <mliska@suse.cz>
6912 * cgraph.h (csi_end_p): Removed.
6913 (csi_next): Likewise.
6914 (csi_node): Likewise.
6915 (csi_start): Likewise.
6916 (cgraph_node_in_set_p): Likewise.
6917 (cgraph_node_set_size): Likewise.
6918 (vsi_end_p): Likewise.
6919 (vsi_next): Likewise.
6920 (vsi_node): Likewise.
6921 (vsi_start): Likewise.
6922 (varpool_node_set_size): Likewise.
6923 (cgraph_node_set_nonempty_p): Likewise.
6924 (varpool_node_set_nonempty_p): Likewise.
6925 * cgraphunit.c (cgraph_process_new_functions): vec replaces
6927 * ipa-inline-transform.c: Likewise.
6928 * ipa-utils.c (cgraph_node_set_new): Removed.
6929 (cgraph_node_set_add): Likewise.
6930 (cgraph_node_set_remove): Likewise.
6931 (cgraph_node_set_find): Likewise.
6932 (dump_cgraph_node_set): Likewise.
6933 (debug_cgraph_node_set): Likewise.
6934 (free_cgraph_node_set): Likewise.
6935 (varpool_node_set_new): Likewise.
6936 (varpool_node_set_add): Likewise.
6937 (varpool_node_set_remove): Likewise.
6938 (varpool_node_set_find): Likewise.
6939 (dump_varpool_node_set): Likewise.
6940 (free_varpool_node_set): Likewise.
6941 (debug_varpool_node_set): Likewise.
6942 * tree-emutls.c (struct tls_var_data):
6943 (emutls_index): Removed.
6944 (emutls_decl): Likewise.
6945 (gen_emutls_addr): Function implementation uses newly added
6946 hash_map<varpool_node *, tls_var_data>.
6947 (clear_access_vars): Likewise.
6948 (create_emultls_var): Likewise.
6949 (ipa_lower_emutls): Likewise.
6950 (reset_access): New function.
6952 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6954 * config/i386/i386.c (ix86_option_override_internal): Add
6955 PTA_RDRND and PTA_MOVBE for bdver4.
6957 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6958 James Greenhalgh <james.greenhalgh@arm.com>
6960 * doc/md.texi (clrsb): Document.
6961 (clz): Change reference to x into operand 1.
6963 (popcount): Likewise.
6965 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6968 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
6969 move to subtarget in serial version if result is ignored.
6971 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6972 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6974 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
6975 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
6976 (sched_analyze_insn): Update use of try_group_insn to
6977 sched_macro_fuse_insns.
6978 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
6979 arguments that are not conditional jumps.
6981 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6983 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
6984 family information. Handle BTVER2 cpu with cpuid family value.
6986 2014-08-04 Tom de Vries <tom@codesourcery.com>
6988 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
6989 (glibc_2_11_or_earlier): Document effective-target keywords.
6991 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
6993 * ipa-devirt.c (odr_type_warn_count): Add type.
6994 (possible_polymorphic_call_targets): Set it.
6995 (ipa_devirt): Use it.
6997 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
6999 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7001 * ipa-devirt.c: Include hash-map.h
7002 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7003 (clear_speculation): Break out of ...
7004 (get_class_context): ... here; speed up handling obviously useless
7006 (odr_type_warn_count, decl_warn_count): New structures.
7007 (final_warning_record): New structure.
7008 (final_warning_records): New static variable.
7009 (possible_polymorphic_call_targets): Cleanup handling of
7010 speculative info; do not build speculation when user do not care;
7011 record info about warnings when asked for.
7012 (add_decl_warning): New function.
7013 (type_warning_cmp): New function.
7014 (decl_warning_cmp): New function.
7015 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7016 (gate): Enable pass when warnings are requested.
7017 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7020 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7022 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7024 (hash_map::remove): New method.
7025 (hash_map::traverse): New method.
7026 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7027 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7028 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7029 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7030 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7031 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7034 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7036 * hash-set.h: new File.
7037 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7038 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7039 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7040 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7041 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7042 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7043 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7044 varpool.c: Use hash_set instead of pointer_set.
7046 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7048 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7050 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7052 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7053 for frame access when strict_p is false.
7055 2014-08-01 Renlin Li <renlin.li@arm.com>
7056 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7058 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7059 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7060 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7062 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7064 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7065 aarch64_mem_pair_offset.
7067 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7069 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7071 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7072 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7074 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7076 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7078 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7081 * cgraphunit.c (analyze_functions): Use get_create rather than get
7082 for decls which are clones of abstract functions.
7084 2014-08-01 Martin Liska <mliska@suse.cz>
7086 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7087 * ipa-prop.h (count_formal_params): Global function created from static.
7088 * ipa-prop.c (count_formal_params): Likewise.
7089 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7090 profiles for semantically equivalent functions.
7091 * passes.c (do_per_function): If we load body of a function
7092 during WPA, this condition should behave same.
7093 * varpool.c (ctor_for_folding): More tolerant assert for variable
7094 aliases created during WPA.
7096 2014-08-01 Martin Liska <mliska@suse.cz>
7098 * doc/invoke.texi (Options That Control Optimization): Documentation
7099 for -foptimize-strlen introduced. Optimization levels default options
7102 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7104 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7105 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7106 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7108 * stor-layout.h (min_align_of_type): New prototype.
7109 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7110 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7112 * ubsan.c: Include builtins.h.
7113 (ubsan_expand_bounds_ifn): Change return type to bool,
7115 (ubsan_expand_null_ifn): Change return type to bool, change
7116 argument to gimple_stmt_iterator *. Handle both null and alignment
7117 sanitization, take type from ckind argument's type rather than
7119 (instrument_member_call): Removed.
7120 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7121 Handle both null and alignment sanitization, don't say whole
7122 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7123 call instead of 2 argument.
7124 (instrument_null): Adjust instrument_mem_ref caller. Don't
7125 instrument calls here.
7126 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7128 * stor-layout.c (min_align_of_type): New function.
7129 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7130 Or it into SANITIZE_UNDEFINED.
7131 * doc/invoke.texi (-fsanitize=alignment): Document.
7133 2014-07-31 Andi Kleen <ak@linux.intel.com>
7135 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7137 2014-07-31 Andi Kleen <ak@linux.intel.com>
7139 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7141 (vn_reference_compute_hash): Dito.
7142 (vn_nary_op_compute_hash): Dito.
7143 (vn_phi_compute_hash): Dito.
7144 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7146 2014-07-31 Andi Kleen <ak@linux.intel.com>
7148 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7149 Rename to inchash:add_expr_commutative. Convert to inchash.
7150 (iterative_hash_hashable_expr): Rename to
7151 inchash:add_hashable_expr. Convert to inchash.
7152 (avail_expr_hash): Dito.
7154 2014-07-31 Andi Kleen <ak@linux.intel.com>
7156 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
7159 2014-07-31 Andi Kleen <ak@linux.intel.com>
7161 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
7163 2014-07-31 Andi Kleen <ak@linux.intel.com>
7165 * Makefile.in (OBJS): Add rtlhash.o
7166 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
7167 (loc_checksum): Dito.
7168 (loc_checksum_ordered): Dito.
7169 (hash_loc_operands): Dito.
7171 (hash_loc_list): Dito.
7172 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
7173 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
7174 * rtlhash.c: New file.
7175 * rtlhash.h: New file.
7177 2014-07-31 Andi Kleen <ak@linux.intel.com>
7179 * inchash.h (inchash): Change inchash class to namespace.
7180 (class hash): ... Rename from inchash.
7181 (add_object): Move from macro to class template.
7182 * lto-streamer-out.c (hash_tree): Change inchash
7184 * tree.c (build_type_attribute_qual_variant): Dito.
7185 (type_hash_list): Dito.
7186 (attribute_hash_list): Dito.
7187 (iterative_hstate_expr): Rename to inchash::add_expr
7188 (build_range_type_1): Change inchash to inchash::hash
7189 and use hash::add_expr.
7190 (build_array_type_1): Dito.
7191 (build_function_type): Dito
7192 (build_method_type_directly): Dito.
7193 (build_offset_type): Dito.
7194 (build_complex_type): Dito.
7195 (make_vector_type): Dito.
7196 * tree.h (iterative_hash_expr): Dito.
7198 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
7200 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
7202 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7204 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
7205 correct alphabetical position.
7206 (vpaddd_f64): Rewrite using builtins.
7207 (vpaddd_s64): Move to correct alphabetical position.
7210 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
7213 * config/sh/sh.c (sh_legitimate_address_p,
7214 sh_legitimize_reload_address): Handle reg+reg address modes when
7215 ALLOW_INDEXED_ADDRESS is false.
7216 * config/sh/predicates.md (general_movsrc_operand,
7217 general_movdst_operand): Likewise.
7219 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7221 * config/aarch64/aarch64-builtins.c
7222 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
7225 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7227 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
7228 the generated mask based on BYTES_BIG_ENDIAN.
7229 (aarch64_simd_check_vect_par_cnst_half): New.
7230 * config/aarch64/aarch64-protos.h
7231 (aarch64_simd_check_vect_par_cnst_half): New.
7232 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
7233 the check out to aarch64_simd_check_vect_par_cnst_half.
7234 (vect_par_cnst_lo_half): Likewise.
7235 * config/aarch64/aarch64-simd.md
7236 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
7237 (move_hi_quad_<mode>): Always generate a low mask.
7239 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7241 * doc/invoke.texi (AVR Options): Add documentation about
7242 __AVR_DEVICE_NAME__ built-in macro.
7244 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
7247 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
7248 constraints are satisfied.
7249 (<shift>di3_neon): Likewise.
7251 2014-07-31 Richard Biener <rguenther@suse.de>
7253 PR tree-optimization/61964
7254 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
7255 by structural equality.
7257 2014-07-31 Yury Gribov <y.gribov@samsung.com>
7259 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
7260 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
7261 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
7263 * gcc.c (sanitize_spec_function): Support new option.
7264 (SANITIZER_SPEC): Remove now redundant check.
7265 * opts.c (common_handle_option): Support new option.
7266 (finish_options): Check for incompatibilities.
7267 * toplev.c (process_options): Split userspace-specific checks.
7269 2014-07-31 Richard Biener <rguenther@suse.de>
7271 * lto-streamer.h (struct output_block): Remove global.
7272 (struct data_in): Remove labels, num_named_labels and
7274 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
7275 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
7277 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
7280 * common.opt (-Wreturn-local-addr): Moved from c.opt.
7281 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
7282 (isolate_path): New argument to avoid inserting a trap.
7283 (find_implicit_erroneous_behaviour): Handle returning the address
7284 of a local variable.
7285 (find_explicit_erroneous_behaviour): Likewise.
7287 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
7290 * toplev.c (init_random_seed): Move piece of code never called to
7292 (set_random_seed): see above.
7294 2014-07-31 Tom de Vries <tom@codesourcery.com>
7296 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
7298 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
7300 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
7301 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
7303 2014-07-31 Richard Biener <rguenther@suse.de>
7305 * data-streamer.h (streamer_write_data_stream): Declare here,
7307 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
7308 * lto-cgraph.c (lto_output_node): Adjust.
7309 (lto_output_varpool_node): Likewise.
7310 * data-streamer-out.c (streamer_string_index): Likewise.
7311 (streamer_write_data_stream, lto_append_block): Move from ...
7312 * lto-section-out.c (lto_output_data_stream,
7313 lto_append_block): ... here.
7315 2014-07-30 Mike Stump <mikestump@comcast.net>
7317 * configure.ac: Also check for popen.
7318 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
7319 * configure: Regenerate.
7320 * config.in: Regenerate.
7322 2014-07-30 Martin Jambor <mjambor@suse.cz>
7324 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
7325 parameter to gimple.
7327 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7329 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
7330 address as second parameter to __tpf_eh_return routine.
7332 2014-07-30 Jiong Wang <jiong.wang@arm.com>
7334 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
7337 2014-07-30 Tom Tromey <tromey@redhat.com>
7340 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
7341 * doc/extend.texi (Type Attributes): Document designated_init
7344 2014-07-30 Roman Gareev <gareevroman@gmail.com>
7346 * graphite-isl-ast-to-gimple.c:
7347 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
7348 (gcc_expression_from_isl_expression): Pass type to
7349 gcc_expression_from_isl_ast_expr_id.
7351 2014-07-30 Richard Biener <rguenther@suse.de>
7353 * lto-streamer.h (lto_write_data): New function.
7354 * langhooks.c (lhd_append_data): Do not free block.
7355 * lto-section-out.c (lto_write_data): New function writing
7356 raw data to the current section.
7357 (lto_write_stream): Adjust for langhook semantic change.
7358 (lto_destroy_simple_output_block): Write header directly.
7359 * lto-opts.c (lto_write_options): Write options directly.
7360 * lto-streamer-out.c (produce_asm): Write heaeder directly.
7361 (lto_output_toplevel_asms): Likewise.
7362 (copy_function_or_variable): Copy data directly.
7363 (write_global_references): Output index table directly.
7364 (lto_output_decl_state_refs): Likewise.
7365 (write_symbol): Write data directly.
7366 (produce_symtab): Adjust.
7367 (produce_asm_for_decls): Output header and refs directly.
7369 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7371 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
7372 to speculative_targets
7373 (get_class_context): Fix handling of contextes without outer type;
7374 avoid matching non-polymorphic types in LTO.
7375 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
7376 parameter to speculative_targetsp; handle speculation.
7377 (dump_possible_polymorphic_call_targets): Update dumping.
7379 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7381 * common.opt (Wodr): Enable by default.
7383 2014-07-29 Olivier Hainque <hainque@adacore.com>
7385 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
7387 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
7390 * gengtype.c (strtoken): New function.
7391 (create_user_defined_type): Replace strtok with strtoken.
7393 2014-07-29 Nathan Sidwell <nathan@acm.org>
7395 * gcov-io.c (gcov_var): Make hidden.
7396 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
7397 (gcov_do_dump): Declare.
7398 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
7400 2014-07-29 Martin Jambor <mjambor@suse.cz>
7402 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
7403 parameter to gimple.
7404 (sra_modify_assign): Likewise.
7406 2014-07-29 Richard Biener <rguenther@suse.de>
7409 * expr.c (expand_expr_real_2): Revert last change.
7411 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7413 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
7414 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
7415 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
7417 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
7418 (contains_type_p): Forward declare.
7419 (polymorphic_call_target_hasher::hash): Hash speculative info.
7420 (polymorphic_call_target_hasher::equal): Compare speculative info.
7421 (get_class_context): Handle speuclation.
7422 (contains_type_p): Update.
7423 (get_polymorphic_call_info_for_decl): Update.
7424 (walk_ssa_copies): Break out from ...
7425 (get_polymorphic_call_info): ... here; set speculative context
7427 * ipa-prop.c (ipa_write_indirect_edge_info,
7428 ipa_read_indirect_edge_info): Stream speculative context.
7429 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
7430 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
7431 SPECULATIVE_MAYBE_DERIVED_TYPE).
7432 (possible_polymorphic_call_targets overriders): Update.
7433 (dump_possible_polymorphic_call_targets overriders): Update.
7434 (dump_possible_polymorphic_call_target_p overriders): Update.
7436 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7438 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
7439 ipa-devirt path; fix thinko there.
7441 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
7443 * config/i386/i386.c (ix86_return_in_memory): Replace one
7444 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
7446 2014-07-28 Marek Polacek <polacek@redhat.com>
7448 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
7450 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
7452 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
7453 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
7454 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
7455 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7456 (USE_LD_AS_NEEDED): Likewise.
7457 (ASM_APP_ON): Likewise.
7458 (ASM_APP_OFF): Likewise.
7459 (TARGET_POSIX_IO): Likewise.
7460 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
7461 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7462 (USE_LD_AS_NEEDED): Likewise.
7463 (ASM_APP_ON): Likewise.
7464 (ASM_APP_OFF): Likewise.
7465 (TARGET_POSIX_IO): Likewise.
7467 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
7470 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
7471 operators other than the equality operators.
7473 2014-07-28 Richard Biener <rguenther@suse.de>
7476 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
7477 sure to register SImode ones, not only >= word_mode ones.
7478 * expr.c (expand_expr_real_2): When expanding -ftrapv
7479 binops do not use OPTAB_LIB_WIDEN.
7481 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
7484 * tree-outof-ssa.c (insert_partition_copy_on_edge)
7485 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
7486 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
7487 inserting them in the insn stream.
7489 2014-07-28 Marek Polacek <polacek@redhat.com>
7492 * common.opt (Wodr): Add Var.
7494 2014-07-28 Richard Biener <rguenther@suse.de>
7496 PR tree-optimization/61921
7497 * tree-ssa-structalias.c (create_variable_info_for_1): Check
7498 if there is a varpool node before dereferencing it.
7500 2014-07-28 Roman Gareev <gareevroman@gmail.com>
7502 * graphite-sese-to-poly.c:
7503 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
7504 id of the pbb), which contains pointer to the pbb1.
7506 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
7508 2014-07-28 Roman Gareev <gareevroman@gmail.com>
7510 * graphite-isl-ast-to-gimple.c:
7511 (graphite_create_new_guard): New function.
7512 (translate_isl_ast_node_if): New function.
7513 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
7515 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
7517 2014-07-27 Anthony Green <green@moxielogic.com>
7519 * config.gcc: Add moxie-*-moxiebox* configuration.
7520 * config/moxie/moxiebox.h: New file.
7522 2014-07-26 Andrew Pinski <apinski@cavium.com>
7524 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
7525 from the read only register.
7527 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
7529 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
7530 as the allocation class if it isn't likely to be spilled.
7532 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
7534 * rtl.h (tls_referenced_p): Declare.
7535 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
7536 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
7537 (mips_cannot_force_const_mem): Use tls_referenced_p.
7538 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
7539 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
7540 instead of pa_tls_referenced_p.
7541 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
7542 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
7543 (pa_legitimate_constant_p): Likewise.
7544 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
7545 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
7546 (rs6000_cannot_force_const_mem, rs6000_emit_move)
7547 (rs6000_address_for_altivec): Use tls_referenced_p instead of
7548 rs6000_tls_referenced_p.
7549 (rs6000_tls_symbol_ref_1): Delete.
7551 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
7554 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7555 Optimize inverse of a VEC_CONCAT.
7557 2014-07-25 Xinliang David Li <davidxl@google.com>
7559 * params.def: New parameter.
7560 * coverage.c (get_coverage_counts): Check new flag.
7561 (coverage_compute_profile_id): Check new flag.
7562 (coverage_begin_function): Check new flag.
7563 (coverage_end_function): Check new flag.
7564 * value-prof.c (coverage_node_map_initialized_p): New function.
7565 (init_node_map): Populate map with all functions.
7566 * doc/invoke.texi: Document new parameter.
7568 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
7569 Richard Biener <rguenther@suse.de>
7571 * lto-streamer-out.c (struct sccs): Turn to ...
7572 (class DFS): ... this one; refactor the DFS walk so it can
7573 be re-done on per-SCC basis.
7574 (DFS::DFS): New constructor.
7575 (DFS::~DFS): New destructor.
7576 (hash_tree): Add new MAP argument holding in-SCC hash values;
7577 remove POINTER_TYPE hashing hack.
7578 (scc_entry_compare): Rename to ...
7579 (DFS::scc_entry_compare): ... this one.
7580 (hash_scc): Rename to ...
7581 (DFS::hash_scc): ... this one; pass output_block instead
7582 of streamer_cache; work harder to get unique and stable SCC
7584 (DFS_write_tree): Rename to ...
7585 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
7586 (lto_output_tree): Update.
7588 2014-07-25 Andi Kleen <ak@linux.intel.com>
7590 * lto-streamer-out.c (hash_tree): Convert to inchash.
7592 2014-07-25 Andi Kleen <ak@linux.intel.com>
7594 * tree.c (build_type_attribute_qual_variant): Use inchash.
7595 (type_hash_list): Dito.
7596 (attribute_hash_list): Dito
7597 (iterative_hstate_expr): Dito.
7598 (iterative_hash_expr): Dito.
7599 (build_range_type_1): Dito.
7600 (build_array_type_1): Dito.
7601 (build_function_type): Dito.
7602 (build_method_type_directly): Dito.
7603 (build_offset_type): Dito.
7604 (build_complex_type): Dito.
7605 (make_vector_type): Dito.
7606 * tree.h (iterative_hash_expr): Add compat wrapper.
7607 (iterative_hstate_expr): Add.
7609 2014-07-25 Andi Kleen <ak@linux.intel.com>
7611 * Makefile.in (OBJS): Add inchash.o.
7612 (PLUGIN_HEADERS): Add inchash.h.
7613 * ipa-devirt.c: Include inchash.h.
7614 * lto-streamer-out.c: Dito.
7615 * tree-ssa-dom.c: Dito.
7616 * tree-ssa-pre.c: Dito.
7617 * tree-ssa-sccvn.c: Dito.
7618 * tree-ssa-tail-merge.c: Dito.
7620 * tree.c (iterative_hash_hashval_t): Move to ...
7621 (iterative_hash_host_wide_int): Move to ...
7622 * inchash.c: Here. New file.
7623 * tree.h (iterative_hash_hashval_t): Move to ...
7624 (iterative_hash_host_wide_int): Move to ...
7625 * inchash.h: Here. New file.
7627 2014-07-25 Richard Biener <rguenther@suse.de>
7631 * fold-const.c (native_encode_int): Add and handle offset
7632 parameter to do partial encodings of expr.
7633 (native_encode_fixed): Likewise.
7634 (native_encode_real): Likewise.
7635 (native_encode_complex): Likewise.
7636 (native_encode_vector): Likewise.
7637 (native_encode_string): Likewise.
7638 (native_encode_expr): Likewise.
7639 * fold-const.c (native_encode_expr): Add offset parameter
7641 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
7642 (fold_ctor_reference): Handle all reads from tcc_constant
7645 2014-07-25 Richard Biener <rguenther@suse.de>
7647 * tree-inline.c (estimate_move_cost): Mark speed_p argument
7650 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7652 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
7654 2014-07-24 Kyle McMartin <kyle@redhat.com>
7656 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
7658 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7660 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
7662 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
7664 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
7665 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
7666 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
7668 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7670 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
7671 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
7672 aggregate types. Instead, *all* aggregate types, except for single-
7673 element or homogeneous float/vector aggregates, are quadword-aligned
7674 if required by their type alignment. Issue -Wpsabi note when a type
7675 is now treated differently than before.
7677 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7679 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
7680 does not fit fully into floating-point registers, and there is still
7681 space in the register parameter area, use GPRs to pass those parts
7682 of the argument. Issue -Wpsabi note if any parameter is now treated
7683 differently than before.
7684 (rs6000_arg_partial_bytes): Update.
7686 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
7688 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
7690 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
7692 * rtl.h (target_rtl): Remove lang_dependent_initialized.
7693 * toplev.c (initialize_rtl): Don't use it. Move previously
7694 "language-dependent" calls to...
7695 (backend_init): ...here.
7696 (lang_dependent_init_target): Don't set lang_dependent_initialized.
7697 Assert that RTL initialization hasn't happend yet.
7699 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
7701 PR rtl-optimization/61629
7702 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
7703 they have already been initialized.
7705 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
7708 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
7709 DECL_INCOMING_RTL and entry_parm.
7710 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
7711 * calls.c (load_register_parameters): Likewise argument values.
7712 (emit_library_call_value_1, store_one_arg): Likewise argument
7714 * config/i386/i386.c (assign_386_stack_local): Likewise the local
7716 * explow.c (validize_mem): Modify the argument in-place.
7718 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7720 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
7721 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
7723 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7725 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
7726 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
7728 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7730 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
7731 (aarch64_save_callee_saves): New parameter "skip_wb".
7732 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
7734 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7736 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
7738 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
7740 2014-07-24 Roman Gareev <gareevroman@gmail.com>
7742 * graphite-isl-ast-to-gimple.c:
7743 (graphite_create_new_loop): Add calling of isl_id_free to properly
7744 decrement reference counts.
7746 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
7748 2014-07-24 Martin Liska <mliska@suse.cz>
7749 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
7751 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
7752 (rs6000_code_end): Likewise.
7754 2014-07-24 Martin Liska <mliska@suse.cz>
7756 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
7757 symtab_node funtion used.
7758 (rs6000_xcoff_declare_object_name): Likewise.
7760 2014-07-24 Martin Liska <mliska@suse.cz>
7762 * cgraphunit.c (compile): Correct function used.
7764 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
7766 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
7769 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
7772 * varasm.c (bss_initializer_p): Handle offlined ctors.
7773 (align_variable, get_variable_align): Likewise.
7774 (make_decl_one_only): Likewise.
7775 (default_binds_local_p_1): Likewise.
7776 (decl_binds_to_current_def_p): Likewise.
7777 (get_variable_section): Get constructor if it is offlined.
7778 (assemble_variable_contents): Sanity check that the caller
7779 streamed in the ctor in LTO.
7781 2014-07-24 Roman Gareev <gareevroman@gmail.com>
7783 * graphite-isl-ast-to-gimple.c:
7784 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
7785 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
7786 isl_ast_op_pdiv_r to the different case.
7788 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
7790 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7793 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
7794 when flag_errno_math is on.
7796 2014-07-24 Martin Liska <mliska@suse.cz>
7798 * cgraph.h (varpool_node):
7799 (availability get_availability (void)):
7800 created from cgraph_variable_initializer_availability
7801 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
7802 created from: cgraph_variable_initializer_availability
7803 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
7804 (void finalize_named_section_flags (void)):
7805 created from varpool_finalize_named_section_flags
7806 (bool assemble_decl (void)): created from varpool_assemble_decl
7807 (void analyze (void)): created from varpool_analyze_node
7808 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
7809 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
7810 (void remove_initializer (void)): created from varpool_remove_initializer
7811 (tree get_constructor (void)): created from varpool_get_constructor
7812 (bool externally_visible_p (void)): created from varpool_externally_visible_p
7813 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
7814 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
7815 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
7816 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
7817 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
7818 (static bool output_variables (void)): created from varpool_output_variables
7819 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
7820 created from varpool_extra_name_alias
7821 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
7822 (static void dump_varpool (FILE *f)): created from dump_varpool
7823 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
7824 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
7825 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
7826 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
7827 (void assemble_aliases (void)): created from assemble_aliases
7829 2014-07-24 Martin Liska <mliska@suse.cz>
7831 * cgraph.h (symtab_node):
7832 (void register_symbol (void)): created from symtab_register_node
7833 (void remove (void)): created from symtab_remove_node
7834 (void dump (FILE *f)): created from dump_symtab_node
7835 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
7836 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
7837 (struct ipa_ref *add_reference (symtab_node *referred_node,
7838 enum ipa_ref_use use_type)): created from add_reference
7839 (struct ipa_ref *add_reference (symtab_node *referred_node,
7840 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
7841 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
7842 gimple stmt)): created from maybe_add_reference
7843 (bool semantically_equivalent_p (symtab_node *target)): created from
7844 symtab_semantically_equivalent_p
7845 (void remove_from_same_comdat_group (void)): created from
7846 remove_from_same_comdat_group
7847 (void add_to_same_comdat_group (symtab_node *old_node)): created from
7848 symtab_add_to_same_comdat_group
7849 (void dissolve_same_comdat_group_list (void)): created from
7850 symtab_dissolve_same_comdat_group_list
7851 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
7852 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
7853 created from symtab_alias_ultimate_target
7854 (inline symtab_node *next_defined_symbol (void)): created from
7855 symtab_next_defined_symbol
7856 (bool resolve_alias (symtab_node *target)): created from
7857 symtab_resolve_alias
7858 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
7859 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
7860 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
7861 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
7862 (void set_section (const char *section)): created from set_section_1
7863 (enum availability get_availability (void)): created from symtab_node_availability
7864 (void make_decl_local (void)): created from symtab_make_decl_local
7865 (bool real_symbol_p (void)): created from symtab_read_node
7866 (can_be_discarded_p (void)): created from symtab_can_be_discarded
7867 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
7868 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
7869 symtab_in_same_comdat_p;
7870 (bool address_taken_from_non_vtable_p (void)): created from
7871 address_taken_from_non_vtable_p
7872 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
7873 (static void dump_table (FILE *)): created from dump_symtab
7874 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
7875 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
7876 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
7877 symtab_used_from_object_file_p
7878 (void dump_base (FILE *)): created from dump_symtab_base
7879 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
7880 (void unregister (void)): created from symtab_unregister_node
7881 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
7882 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
7883 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
7884 symtab_nonoverwritable_alias_1
7885 * cgraph.h (cgraph_node):
7886 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
7887 created from cgraph_remove_node_and_inline_clones
7888 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
7889 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
7890 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
7891 (cgraph_node *function_symbol (enum availability *avail = NULL)):
7892 created from cgraph_function_node
7893 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
7894 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
7895 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
7896 created from cgraph_create_clone
7897 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
7898 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
7899 created from cgraph_create_virtual_clone
7900 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
7901 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
7902 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
7903 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
7904 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
7905 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
7906 created from cgraph_function_version_info
7907 (struct cgraph_function_version_info *insert_new_function_version (void)):
7908 created from insert_new_cgraph_node_version
7909 (struct cgraph_function_version_info *function_version (void)): created from
7910 get_cgraph_node_version
7911 (void analyze (void)): created from analyze_function
7912 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
7913 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
7914 tree real_alias) cgraph_add_thunk
7915 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
7916 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
7917 created from cgraph_function_or_thunk_node
7918 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
7919 created from expand_thunk
7920 (void reset (void)): created from cgraph_reset_node
7921 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
7922 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
7923 (void remove (void)): created from cgraph_remove_node
7924 (void dump (FILE *f)): created from dump_cgraph_node
7925 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
7926 (bool get_body (void)): created from cgraph_get_body
7927 (void release_body (void)): created from cgraph_release_function_body
7928 (void unnest (void)): created from cgraph_unnest_node
7929 (void make_local (void)): created from cgraph_make_node_local
7930 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
7931 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
7932 gcov_type count, int freq)): created from cgraph_create_edge
7933 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
7934 gcov_type count, int freq)): created from cgraph_create_indirect_edge
7935 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
7936 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
7937 created from cgraph_create_edge_including_clones
7938 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
7939 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
7940 (void remove_callers (void)): created from cgraph_node_remove_callers
7941 (void remove_callees (void)): created from cgraph_node_remove_callees
7942 (enum availability get_availability (void)): created from cgraph_function_body_availability
7943 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
7944 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
7945 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
7946 (void call_duplication_hooks (cgraph_node *node2)): created from
7947 cgraph_call_node_duplication_hooks
7948 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
7949 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
7950 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
7951 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
7952 (void call_function_insertion_hooks (void)):
7953 created from cgraph_call_function_insertion_hooks
7954 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
7955 (bool local_p (void)): created from cgraph_local_node
7956 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
7957 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
7958 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
7959 (inline bool only_called_directly_or_aliased_p (void)):
7960 created from cgraph_only_called_directly_or_aliased_p
7961 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
7962 created from cgraph_will_be_removed_from_program_if_no_direct_calls
7963 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
7964 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
7965 (bool can_remove_if_no_direct_calls_p (void)):
7966 created from cgraph_can_remove_if_no_direct_calls_p
7967 (inline bool has_gimple_body_p (void)):
7968 created from cgraph_function_with_gimple_body_p
7969 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
7970 (static void dump_cgraph (FILE *f)): created from dump_cgraph
7971 (static inline void debug_cgraph (void)): created from debug_cgraph
7972 (static void record_function_versions (tree decl1, tree decl2)):
7973 created from record_function_versions
7974 (static void delete_function_version (tree decl)):
7975 created from delete_function_version
7976 (static void add_new_function (tree fndecl, bool lowered)):
7977 created from cgraph_add_new_function
7978 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
7979 (static cgraph_node * create (tree decl)): created from cgraph_create_node
7980 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
7981 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
7982 (static cgraph_node *get_for_asmname (tree asmname)):
7983 created from cgraph_node_for_asm
7984 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
7985 created from cgraph_same_body_alias
7986 (static bool used_from_object_file_p_worker (cgraph_node *node,
7987 void *): new function
7988 (static bool non_local_p (cgraph_node *node, void *)):
7989 created from cgraph_non_local_node_p_1
7990 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
7991 created from verify_cgraph
7992 (static bool make_local (cgraph_node *node, void *)):
7993 created from cgraph_make_node_local
7994 (static cgraph_node *create_alias (tree alias, tree target)):
7995 created from cgraph_create_function_alias
7996 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
7997 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
7998 created from cgraph_create_edge_1
7999 * cgraph.h (varpool_node):
8000 (void remove (void)): created from varpool_remove_node
8001 (void dump (FILE *f)): created from dump_varpool_node
8003 2014-07-24 Richard Biener <rguenther@suse.de>
8006 * tree-ssa-structalias.c (create_variable_info_for_1):
8007 Use varpool_get_constructor.
8008 (create_variable_info_for): Likewise.
8010 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8012 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8013 subtract outgoing area size when restoring stack_pointer_rtx.
8015 2014-07-24 Nick Clifton <nickc@redhat.com>
8017 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8018 that operations are taking place in parallel.
8019 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8021 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8023 * omp-low.c (extract_omp_for_data): Add missing break statement.
8025 2014-07-24 Richard Biener <rguenther@suse.de>
8027 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8028 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8029 and adjust MOVE_RATIO query accordingly.
8030 (estimate_num_insns): Adjust callers.
8031 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8032 * ipa-cp.c (gather_context_independent_values,
8033 estimate_local_effects): Likewise.
8034 * ipa-split.c (consider_split): Likewise.
8036 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8038 * config/i386/driver-i386.c: Remove names of unused arguments and
8039 unnecessary unused attributes.
8040 * config/i386/host-mingw32.c: Likewise.
8041 * config/i386/i386.c: Likewise.
8042 * config/i386/winnt-stubs.c: Likewise.
8043 * config/i386/winnt.c: Likewise.
8045 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8047 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8048 (aarch64_gen_loadwb_pair): New helper function.
8049 (aarch64_expand_epilogue): Simplify code using new helper functions.
8050 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8052 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8054 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8055 (aarch64_gen_storewb_pair): New helper function.
8056 (aarch64_expand_prologue): Simplify code using new helper functions.
8057 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8059 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8061 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8062 Rename to aarch64_save_callee_saves, remove restore code.
8063 (aarch64_restore_callee_saves): New function.
8065 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8067 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8068 (aarch64_save_callee_saves): New function to handle reg save
8069 for both core and vectore regs.
8071 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8073 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8074 (aarch64_gen_store_pair): New helper function.
8075 (aarch64_save_or_restore_callee_save_registers)
8076 (aarch64_save_or_restore_fprs): Use new helper functions.
8078 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8080 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8081 (aarch64_save_or_restore_callee_save_registers)
8082 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8084 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8086 * config/aarch64/aarch64.c
8087 (aarch64_save_or_restore_callee_save_registers)
8088 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8090 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8092 * config/aarch64/aarch64.c
8093 (aarch64_save_or_restore_callee_save_registers)
8094 (aarch64_save_or_restore_fprs): Remove 'increment'.
8096 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8098 * config/aarch64/aarch64.c
8099 (aarch64_save_or_restore_callee_save_registers)
8100 (aarch64_save_or_restore_fprs): Use register offset in
8101 cfun->machine->frame.reg_offset.
8103 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8105 * config/aarch64/aarch64.c
8106 (aarch64_save_or_restore_callee_save_registers)
8107 (aarch64_save_or_restore_fprs): Remove base_rtx.
8109 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8111 * config/aarch64/aarch64.c
8112 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8113 to 'start_offset'. Remove local variable 'start_offset'.
8115 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8117 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8118 type to HOST_WIDE_INT.
8120 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8122 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8123 (aarch64_save_or_restore_fprs)
8124 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8126 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8128 * config/arm/t-rtems-eabi: Add
8129 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8130 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8131 mbig-endian/mthumb/march=armv7-r, and
8132 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8135 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8136 Chris Johns <chrisj@rtems.org>
8137 Joel Sherrill <joel.sherrill@oarcorp.com>
8139 * config.gcc: Add nios2-*-rtems*.
8140 * config/nios2/rtems.h: New file.
8141 * gcc/config/nios2/t-rtems: New file.
8143 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
8146 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8147 constant numbers, not general constants.
8148 (rs6000_expand_vector_init): Ditto.
8150 2014-07-23 Nathan Sidwell <nathan@acm.org>
8152 * gcov-tool.c (gcov_list): Declare here.
8153 (set_gcov_list): Remove.
8154 (gcov_output_files): Set gcov_list directly.
8156 2014-07-23 Host Schirmeier <horst@schirmeier.com>
8158 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
8160 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8162 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
8163 callee-saved registers are available for padding purpose
8164 and r3 is not mandatory, then prefer use those callee-saved
8167 2014-07-23 Richard Biener <rguenther@suse.de>
8169 * params.def (PARAM_MAX_COMBINE_INSNS): New.
8170 * combine.c: Include statistics.h and params.h.
8171 (combine_instructions): Guard three and four insn combines
8172 with max-combine-insns value. Record statistics for combines
8174 * doc/invoke.texi (max-combine-insns): Document new param.
8176 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8178 * graphite-isl-ast-to-gimple.c:
8179 (translate_isl_ast_node_block): New function.
8180 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
8182 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
8183 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
8185 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8187 * graphite-isl-ast-to-gimple.c:
8188 (get_max_schedule_dimensions): New function.
8189 (extend_schedule): Likewise.
8190 (generate_isl_schedule): Add calling of extend_schedule and
8191 get_max_schedule_dimensions.
8193 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8195 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
8196 (case UNSPEC): Handle UNSPEC_RBIT.
8198 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8200 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
8201 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
8203 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8205 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
8207 2014-07-22 Roman Gareev <gareevroman@gmail.com>
8209 * graphite-isl-ast-to-gimple.c:
8210 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
8212 (build_iv_mapping): New function.
8213 (translate_isl_ast_node_user): Likewise.
8214 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
8216 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
8217 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
8218 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
8220 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8223 * config/arm/arm.md (setmem): New pattern.
8224 * config/arm/arm-protos.h (struct tune_params): New fields.
8225 (arm_gen_setmem): New prototype.
8226 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
8227 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8228 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8229 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
8230 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
8231 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
8232 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
8233 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8234 (arm_const_inline_cost): New function.
8235 (arm_block_set_max_insns): New function.
8236 (arm_block_set_non_vect_profit_p): New function.
8237 (arm_block_set_vect_profit_p): New function.
8238 (arm_block_set_unaligned_vect): New function.
8239 (arm_block_set_aligned_vect): New function.
8240 (arm_block_set_unaligned_non_vect): New function.
8241 (arm_block_set_aligned_non_vect): New function.
8242 (arm_block_set_vect, arm_gen_setmem): New functions.
8244 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8246 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
8248 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
8251 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
8252 out of #ifdef __OPTIMIZE__.
8254 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8256 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
8257 different trapping status if -fnon-call-exceptions is enabled.
8259 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8261 * expr.c (store_field): Handle VOIDmode for calls that return values
8262 in multiple locations.
8264 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8266 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
8267 (altivec_vsldoi_<mode>): Likewise.
8269 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8271 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
8272 to the number of characters in the line.
8274 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8276 * graphite-isl-ast-to-gimple.c: Add using of
8277 build_nonstandard_integer_type instead of int128_integer_type_node.
8279 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
8281 * toplev.c (output_stack_usage): Adjust the location of the warning.
8283 2014-07-19 Daniel Cederman <cederman@gaisler.com>
8285 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
8286 (*membar_storeload): Disable for LEON3.
8288 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8290 PR rtl-optimization/61461
8291 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
8293 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
8296 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
8297 Fix instruction constraint.
8298 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8300 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
8302 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
8304 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
8306 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
8307 GNU coding standards.
8308 (nds32_register_move_cost): Likewise.
8309 (nds32_memory_move_cost): Likewise.
8310 (nds32_address_cost): Likewise.
8312 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8314 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
8316 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
8318 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
8319 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
8320 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
8321 (HAVE_sync_compare_and_swapqi): Define.
8322 (HAVE_sync_compare_and_swaphi): Likewise.
8323 (HAVE_sync_compare_and_swapsi): Likewise.
8325 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
8327 * config/mips/p5600.md: Add missing cpu tests.
8329 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8331 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
8332 (vmla_f64): Likewise.
8333 (vfms_f64): Likewise.
8334 (vmls_f64): Likewise.
8336 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8338 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
8339 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
8341 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8343 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
8344 (vmlal_high_lane_s32): Likewise.
8345 (vmlal_high_lane_u16): Likewise.
8346 (vmlal_high_lane_u32): Likewise.
8347 (vmlsl_high_lane_s16): Likewise.
8348 (vmlsl_high_lane_s32): Likewise.
8349 (vmlsl_high_lane_u16): Likewise.
8350 (vmlsl_high_lane_u32): Likewise.
8352 2014-07-17 Terry Guo <terry.guo@arm.com>
8354 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
8355 (alus_reg): Renamed to alus_sreg.
8356 * config/arm/arm-fixed.md: Change type of non-dsp instructions
8357 from alu_reg to alu_sreg. Change type of dsp instructions from
8358 alu_reg to alu_dsp_reg.
8359 * config/arm/thumb1.md: Likewise.
8360 * config/arm/thumb2.md: Likewise.
8361 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
8362 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
8363 with alu_sreg and alus_sreg.
8364 * config/arm/arm1026ejs.md (alu_op): Likewise.
8365 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
8366 * config/arm/arm926ejs.md (9_alu_op): Likewise.
8367 * config/arm/fa526.md (526_alu_op): Likewise.
8368 * config/arm/fa606te.md (606te_alu_op): Likewise.
8369 * config/arm/fa626te.md (626te_alu_op): Likewise.
8370 * config/arm/fa726te.md (726te_alu_op): Likewise.
8371 * config/arm/fmp626.md (mp626_alu_op): Likewise.
8372 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
8373 alu_sreg, alu_dsp_reg and alus_sreg.
8374 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
8375 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8376 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8377 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
8378 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
8379 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8380 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8381 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8382 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
8383 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
8384 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
8385 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
8386 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
8387 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
8388 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
8389 alus_reg to alus_sreg.
8391 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
8393 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
8396 2014-07-17 Richard Biener <rguenther@suse.de>
8398 PR rtl-optimization/61801
8399 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
8400 don't set reg_pending_barrier if it appears in a debug-insn.
8402 2014-07-16 DJ Delorie <dj@redhat.com>
8404 * config/rx/rx.c (rx_option_override): Fix alignment values.
8405 (rx_align_for_label): Likewise.
8407 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
8410 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
8411 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8412 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
8414 (cris_print_index, cris_print_operand, cris_constant_index_p)
8415 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
8416 (cris_address_cost): Ditto last CONSTANT_P.
8417 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
8418 callers changed. Yield cris_offsettable_symbol for non-PIC
8419 constant symbolic expressions including labels. Yield cris_unspec
8421 (cris_expand_pic_call_address): New parameter MARKERP. Set its
8422 target to pic_offset_table_rtx for calls that will likely go
8423 through PLT, const0_rtx when they can't. All callers changed.
8424 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
8425 symbolic expressions to be PICified. Remove second, redundant,
8426 assert on can_create_pseudo_p returning non-zero. Use
8427 replace_equiv_address_nv, not replace_equiv_address, for final
8429 * config/cris/cris.md ("movsi"): Move variable t to pattern
8430 toplevel. Adjust assert for new cris_symbol_type member. Use
8431 CONSTANT_P instead of CONSTANT_ADDRESS_P.
8432 ("*movsi_internal") <case 9>: Make check for valid unspec operands
8434 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
8435 ("call", "call_value"): Use second incoming operand as a marker
8436 for pic-offset-table-register being used.
8437 ("*expanded_call_non_v32", "*expanded_call_v32")
8438 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
8439 second incoming operand to CALL, match cris_call_type_marker.
8440 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
8441 ("*expanded_call_side"): Ditto. Fix typo in comment.
8442 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
8444 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
8445 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
8446 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
8447 users changed. Add members cris_offsettable_symbol and cris_unspec.
8448 (cris_symbol_type): Rename from cris_pic_symbol_type.
8449 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
8451 * config/cris/cris-protos.h (cris_symbol_type_of,
8452 cris_expand_pic_call_address): Adjust prototypes.
8453 (cris_legitimate_constant_p): New prototype.
8455 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
8456 an existing tmake_file. Don't add t-slibgcc and t-linux.
8458 2014-07-17 Jason Merrill <jason@redhat.com>
8461 * symtab.c (symtab_remove_from_same_comdat_group): Also
8462 set_comdat_group to NULL_TREE.
8463 (verify_symtab): Fix diagnostic.
8465 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
8468 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
8470 2014-07-16 Dodji Seketeli <dodji@redhat.com>
8472 Support location tracking for built-in macro tokens
8473 * input.h (is_location_from_builtin_token): New function declaration.
8474 * input.c (is_location_from_builtin_token): New function definition.
8475 * toplev.c (general_init): Tell libcpp what the pre-defined
8476 spelling location for built-in tokens is.
8478 2014-07-16 Jakub Jelinek <jakub@redhat.com>
8480 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
8481 on the FUNCTION_DECL.
8483 2014-07-16 Richard Biener <rguenther@suse.de>
8486 * doc/extend.texi (always_inline): Clarify.
8488 2014-07-15 Eric Christopher <echristo@gmail.com>
8490 * doc/invoke.texi (Link Options): Document -z option.
8492 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
8494 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
8495 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
8497 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
8499 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
8501 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
8503 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
8504 varpool_assemble_decl.
8505 * varpool.c (varpool_assemble_decl): Assert that node->definition is
8508 2014-07-15 Michael Matz <matz@suse.de>
8510 PR rtl-optimization/61772
8511 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
8513 2014-07-15 Richard Biener <rguenther@suse.de>
8515 * opts.c (default_options_table): Disable bit-ccp at -Og.
8517 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
8519 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
8521 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
8523 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
8524 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
8525 call langhook for unknown declaration.
8526 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
8527 * tree.h (DECL_ARGUMENTS): Update.
8528 * print-tree.c (print_node): Update.
8529 * tree-core.h (tree_decl_non_common): Remove arguments.
8530 (tree_function_decl): Add arguments.
8532 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
8534 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
8536 2014-07-14 Richard Biener <rguenther@suse.de>
8538 PR tree-optimization/61779
8539 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
8540 simplifying a condition.
8542 2014-07-14 Richard Biener <rguenther@suse.de>
8544 * builtins.c (c_strlen): Make only_value == 2 really only
8545 affect warning generation.
8547 2014-07-14 Richard Biener <rguenther@suse.de>
8549 PR tree-optimization/61757
8550 PR tree-optimization/61783
8551 PR tree-optimization/61787
8552 * tree-ssa-dom.c (record_equality): Revert canonicalization
8553 change and add comment.
8554 (propagate_rhs_into_lhs): Revert previous fix, removing
8555 loop depth restriction again.
8557 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8559 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
8560 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8561 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8562 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
8563 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8564 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8565 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8567 2014-07-14 Richard Biener <rguenther@suse.de>
8569 * cgraph.h (decl_in_symtab_p): Make inline.
8571 2014-07-14 Jakub Jelinek <jakub@redhat.com>
8574 * doc/invoke.texi (-Wmemset-transposed-args): Document.
8577 * config/i386/i386.c (classify_argument): Don't merge classes above
8580 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
8582 * cgraph.h (symtab_node): Add nonzero_address.
8583 (decl_in_symtab_p): Break out from ...
8584 (symtab_get_node): ... here.
8585 * fold-const.c: Include cgraph.h
8586 (tree_single_nonzero_warnv_p): Use symtab to determine
8587 if symbol is non-zero.
8588 * symtab.c (symtab_node::nonzero_address): New method.
8590 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8592 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
8593 forgotten in previous commit.
8595 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8597 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
8599 * ipa-devirt.c: Include stor-layout.h and intl.h
8600 (odr_subtypes_equivalent_p): New function.
8601 (warn_odr): New function.
8602 (warn_type_mismatch): New function.
8603 (odr_types_equivalent_p): New function.
8604 (add_type_duplicate): Use it.
8605 * common.opt (Wodr): New flag.
8606 * doc/invoke.texi (Wodr): Document new warning.
8608 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8610 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
8611 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
8612 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
8613 (varpool_get_constructor): Push CTORS_IN timevar.
8614 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
8616 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
8618 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
8619 Remove VOID_FTYPE_PUSHORT.
8620 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
8621 Change code to USHORT_FTYPE_VOID.
8622 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
8623 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
8624 (ix86_atomic_assign_expand_fenv): Update for
8625 __builtin_ia32_fnstsw changes.
8626 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
8627 (fnstsw): Change operand 0 to nonimmediate operand.
8629 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
8631 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
8632 (varpool_get_constructor): New function.
8633 (varpool_ctor_useable_for_folding_p): Break out from ...
8634 (ctor_for_folding): ... here; use varpool_get_constructor.
8635 (varpool_assemble_decl): Likewise.
8636 * lto-streamer.h (struct output_block): Turn cgraph_node
8638 (lto_input_variable_constructor): Declare.
8639 * ipa-visibility.c (function_and_variable_visibility): Use
8640 varpool_get_constructor.
8641 * cgraph.h (varpool_get_constructor): Declare.
8642 (varpool_ctor_useable_for_folding_p): New function.
8643 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
8644 parameter; return error_mark_node for non-trivial constructors.
8645 (lto_write_tree_1, DFS_write_tree): Update use of
8646 get_symbol_initial_value.
8647 (output_function): Update initialization of symbol.
8648 (output_constructor): New function.
8649 (copy_function): Rename to ..
8650 (copy_function_or_variable): ... this one; handle vars too.
8651 (lto_output): Output variable sections.
8652 * lto-streamer-in.c (input_constructor): New function.
8653 (lto_read_body): Rename from ...
8654 (lto_read_body_or_constructor): ... this one; handle vars too.
8655 (lto_input_variable_constructor): New function.
8656 * ipa-prop.c (ipa_prop_write_jump_functions,
8657 ipa_prop_write_all_agg_replacement): Update.
8658 * lto-cgraph.c (compute_ltrans_boundary): Use it.
8659 (output_cgraph_opt_summary): Set symbol to NULL.
8661 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
8663 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
8664 non-polymorphic types.
8665 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
8666 * ipa-devirt.c (types_same_for_odr): Do not explode when one
8667 of types is not polymorphic.
8669 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
8671 * lra-constraints.c (remove_inheritance_pseudos): Process
8672 destination pseudo too.
8674 2014-07-11 Rong Xu <xur@google.com>
8676 * gcov-tool.c (gcov_output_files): Fix build error introduced in
8679 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8681 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
8682 * config/avr/avr-devices.c (AVR_MCU): Same.
8683 (avr_mcu_types): add text start value to end of device list.
8684 * config/avr/avr-mcus.def: Add text section start for all devices.
8685 (ata5782): Add new avr5 device.
8687 * config/avr/avr-tables.opt: Regenerate.
8688 * config/avr/avr.h: Add declaration for text section start handler.
8689 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
8691 (LINK_SPEC): Include text section start handler to linker spec.
8692 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
8693 pass -Ttext option to linker if the text section start for the device
8695 * config/avr/t-multilib: Regenerate.
8696 * doc/avr-mmcu.texi: Regenerate.
8698 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
8700 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
8701 * config/rs6000/aix52.h (LINK_SPEC): Same.
8702 * config/rs6000/aix53.h (LINK_SPEC): Same.
8703 * config/rs6000/aix61.h (LINK_SPEC): Same.
8704 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
8706 2014-07-11 Roman Gareev <gareevroman@gmail.com>
8708 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
8709 (graphite_verify): New function.
8710 (ivs_params_clear): New function.
8711 (gcc_expression_from_isl_ast_expr_id): New function.
8712 (gcc_expression_from_isl_expr_int): New function.
8713 (binary_op_to_tree): New function.
8714 (ternary_op_to_tree): New function.
8715 (unary_op_to_tree): New function.
8716 (nary_op_to_tree): New function.
8717 (gcc_expression_from_isl_expr_op): New function.
8718 (gcc_expression_from_isl_expression): New function.
8719 (graphite_create_new_loop): New function.
8720 (translate_isl_ast_for_loop): New function.
8721 (get_upper_bound): New function.
8722 (graphite_create_new_loop_guard): New function.
8723 (translate_isl_ast_node_for): New function.
8724 (translate_isl_ast): New function.
8725 (add_parameters_to_ivs_params): New function.
8726 (scop_to_isl_ast): New parameter ip.
8727 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
8729 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
8731 * config/xtensa/predicates.md (call expander): Update for
8732 DECL_SECTION_NAME being string.
8734 2014-07-11 Richard Biener <rguenther@suse.de>
8737 * builtins.c (fold_builtin_memory_op): Inline memory moves that
8738 can be implemented with a single load followed by a single store.
8739 (c_strlen): Only warn when only_value is not 2.
8741 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
8743 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
8745 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
8748 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
8749 (*movhi_bytes): Likewise.
8750 (*arm_movqi_insn): Likewise.
8752 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
8755 * config/alpha/alpha.c: Include tree-pass.h, context.h
8757 (pass_data_handle_trap_shadows): New pass.
8758 (pass_handle_trap_shadows::gate): New pass gate function.
8759 (make_pass_handle_trap_shadows): New function.
8760 (rest_of_handle_trap_shadows): Ditto.
8762 (alpha_align_insns_1): Rename from alpha_align_insns.
8763 (pass_data_align_insns): New pass.
8764 (pass_align_insns::gate): New pass gate function.
8765 (make_pass_aling_insns): New function.
8766 (rest_of_align_insns): Ditto.
8767 (alpha_align_insns): Ditto.
8769 (alpha_option_override): Declare handle_trap_shadows info
8770 and align_insns_info. Register handle_trap_shadows and align_insns
8772 (alpha_reorg): Do not call alpha_trap_shadows and
8773 alpha_align_insn from here.
8775 (alpha_pad_function_end): Do not skip BARRIERs.
8777 2014-07-10 Rong Xu <xur@google.com>
8779 Add gcov-tool: an offline gcda profile processing tool support.
8780 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
8781 (gcov_is_error): Ditto.
8782 (gcov_read_string): Ditto.
8783 (gcov_read_sync): Ditto.
8784 * gcov-io.h: Move counter defines to gcov-counter.def.
8785 * gcov-dump.c (tag_counters): Use gcov-counter.def.
8786 * coverage.c: Ditto.
8787 * gcov-tool.c: Offline gcda profile processing tool.
8788 (unlink_gcda_file): Remove one gcda file.
8789 (unlink_profile_dir): Remove gcda files from the profile path.
8790 (gcov_output_files): Output gcda files to an output dir.
8791 (profile_merge): Merge two profiles in directory.
8792 (print_merge_usage_message): Print merge usage.
8793 (merge_usage): Print merge usage and exit.
8794 (do_merge): Driver for profile merge sub-command.
8795 (profile_rewrite): Rewrite profile.
8796 (print_rewrite_usage_message): Print rewrite usage.
8797 (rewrite_usage): Print rewrite usage and exit.
8798 (do_rewrite): Driver for profile rewrite sub-command.
8799 (print_usage): Print gcov-info usage and exit.
8800 (print_version): Print gcov-info version.
8801 (process_args): Process arguments.
8802 (main): Main routine for gcov-tool.
8803 * Makefile.in: Build and install gcov-tool.
8804 * gcov-counter.def: New file split from gcov-io.h.
8805 * doc/gcc.texi: Include gcov-tool.texi.
8806 * doc/gcov-tool.texi: Document for gcov-tool.
8808 2014-07-10 Richard Biener <rguenther@suse.de>
8810 PR tree-optimization/61757
8811 * tree-ssa-dom.c (loop_depth_of_name): Restore.
8812 (propagate_rhs_into_lhs): Revert part of last change.
8814 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
8816 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
8819 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
8822 * function.c (allocate_struct_function): Revert r188667 change.
8824 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
8826 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
8828 * doc/install.texi: Remove links to defunct package providers for
8831 2014-07-09 Tom de Vries <tom@codesourcery.com>
8833 * final.c (get_call_fndecl): Declare.
8834 (self_recursive_call_p): New function.
8835 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
8837 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8839 * ipa-devirt.c (record_node): Walk through aliases.
8841 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8843 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
8845 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8848 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
8850 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8852 * ipa-visibility.c (function_and_variable_visibility): Remove
8853 temporary hack disabling local aliases on AIX.
8855 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8857 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
8858 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
8860 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8862 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
8863 * rs6000/rs6000.c: Inline output of .set instruction.
8864 (declare_alias_data): New struct.
8865 (rs6000_declare_alias): New function.
8866 (rs6000_xcoff_declare_function_name): Use it.
8867 (rs6000_xcoff_declare_object_name): New function.
8868 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
8869 (ASM_OUTPUT_DEF): Turn to empty definition.
8871 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
8874 * hash-table.h: use hash_table::value_type instead of
8875 Descriptor::value_type in the return types of several methods.
8877 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
8879 * tree-pass.h (pass_data): Remove has_execute member.
8880 * passes.c (execute_one_pass): Don't check pass->has_execute.
8881 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
8882 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
8883 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
8884 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
8885 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
8886 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
8887 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
8888 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
8889 gimple-low.c, gimple-ssa-isolate-paths.c,
8890 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
8891 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
8892 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
8893 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
8894 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
8895 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
8896 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
8897 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
8898 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
8899 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
8900 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
8901 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
8902 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
8903 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8904 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
8905 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
8906 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
8907 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
8908 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
8909 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
8910 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
8911 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
8912 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
8913 web.c: Remove initializer for pass_data::has_execute.
8915 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
8917 * graphite-htab.h: Use hash_map instead of hash_table.
8918 * graphite-clast-to-gimple.c: Adjust.
8919 * passes.c: Use hash_map instead of hash_table.
8921 * sese.h: Remove now unused code.
8923 2014-07-08 Sriraman Tallam <tmsriram@google.com>
8926 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
8929 2014-07-08 Jakub Jelinek <jakub@redhat.com>
8931 PR rtl-optimization/61673
8932 * combine.c (simplify_comparison): Test just mode's sign bit
8933 in tmode rather than the sign bit and any bits above it.
8935 2014-07-08 Roman Gareev <gareevroman@gmail.com>
8937 * graphite-isl-ast-to-gimple.c (generate_isl_context):
8938 Add __isl_give to the declaration.
8939 (generate_isl_schedule): Likewise.
8940 (scop_to_isl_ast): Likewise.
8942 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8944 * config/arm/arm.c (cortexa5_extra_costs): New table.
8945 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
8947 2014-07-08 Jakub Jelinek <jakub@redhat.com>
8949 PR tree-optimization/61725
8950 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
8951 range, use range_includes_zerop_p instead of integer_zerop on
8952 vr0->min, only use log2 of max if min is not negative.
8954 2014-07-08 Richard Biener <rguenther@suse.de>
8956 * tree-ssa-dom.h (loop_depth_of_name): Remove.
8957 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
8958 restriction on loop depth difference.
8959 (record_equality): Likewise.
8960 (propagate_rhs_into_lhs): Likewise. Simplify condition.
8961 (loop_depth_of_name): Remove.
8962 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
8963 restriction on loop depth difference.
8964 (init_copy_prop): Likewise.
8966 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8968 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
8970 (walk_aliased_vdefs): Likewise.
8971 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
8972 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
8973 (detect_type_change_from_memory_writes): Check if entry was reached.
8975 2014-07-08 Richard Biener <rguenther@suse.de>
8977 PR tree-optimization/61681
8978 * tree-ssa-structalias.c (find_what_var_points_to): Expand
8979 NONLOCAL inside ESCAPED.
8981 2014-07-08 Richard Biener <rguenther@suse.de>
8983 PR tree-optimization/61680
8984 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8985 Handle properly all read-write dependences with group accesses.
8987 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
8989 PR tree-optimization/61576
8990 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
8991 block containing reduction statement is predecessor of phi basi block.
8993 2014-07-08 Marek Polacek <polacek@redhat.com>
8996 * fold-const.c (round_up_loc): Change the parameter type.
8998 * fold-const.h (round_up_loc): Adjust declaration.
8999 * stor-layout.c (finalize_record_size): Check for too large types.
9001 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9003 * symtab.c: Include calls.h.
9004 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9006 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9008 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9009 little-endian code generation.
9010 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9011 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9012 (spe_evmergehilo): Rename to...
9013 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9014 (spe_evmergelo): Rename to...
9015 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9016 (spe_evmergelohi): Rename to...
9017 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9018 (spe_evmergehi, spe_evmergehilo): New expanders.
9019 (spe_evmergelo, spe_evmergelohi): Likewise.
9020 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9021 (*frob_tf_ti): Likewise.
9022 (*frob_<mode>_di_2): Likewise.
9023 (*frob_tf_di_8_2): Likewise.
9024 (*frob_di_<mode>): Likewise.
9025 (*frob_ti_tf): Likewise.
9026 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9027 (*frob_ti_<mode>_8_2): Likewise.
9028 (*frob_ti_tf_2): Likewise.
9029 (mov_si<mode>_e500_subreg0): Rename to...
9030 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9032 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9033 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9034 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9035 the big endianness only.
9036 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9037 (*mov_si<mode>_e500_subreg0_2): Rename to...
9038 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9039 big big endianness only.
9040 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9041 (*mov_si<mode>_e500_subreg4): Rename to...
9042 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9044 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9045 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9046 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9047 the big endianness only.
9048 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9050 (*mov_si<mode>_e500_subreg4_2): Rename to...
9051 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9053 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9054 (*mov_sitf_e500_subreg8): Rename to...
9055 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9057 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9058 (*mov_sitf_e500_subreg8_2): Rename to...
9059 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9061 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9062 (*mov_sitf_e500_subreg12): Rename to...
9063 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9065 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9066 (*mov_sitf_e500_subreg12_2): Rename to...
9067 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9069 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9071 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9073 * asan.c (instrument_strlen_call): Do not instrument first byte
9074 in strlen if already instrumented.
9076 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9078 * config/arm/arm.opt (mwords-little-endian): Delete.
9079 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9080 of TARGET_LITTLE_WORDS.
9081 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9082 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9084 * doc/invoke.texi: Remove references to -mwords-little-endian.
9086 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9088 * expmed.c (struct init_expmed_rtl): Change all fields but
9089 pow2 and cint from struct rtx_def to rtx.
9090 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9091 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9094 2014-07-06 Marek Polacek <polacek@redhat.com>
9097 * doc/invoke.texi: Document -Wsizeof-array-argument.
9099 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9101 * wide-int.h (wide_int_storage): Change declaration from struct
9104 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9106 * cgraph.c (cgraph_create_indirect_edge): Update call of
9107 get_polymorphic_call_info.
9108 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9109 (possible_polymorphic_call_targets): Add parameter call.
9110 (decl_maybe_in_construction_p): New predicate.
9111 (get_polymorphic_call_info): Add parameter call;
9112 use decl_maybe_in_construction_p.
9113 * gimple-fold.c (fold_gimple_assign): Update use of
9114 possible_polymorphic_call_targets.
9115 (gimple_fold_call): Likewise.
9116 * ipa-prop.c: Inlcude calls.h
9117 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9118 (param_type_may_change_p): New predicate.
9119 (detect_type_change_from_memory_writes): Break out from ...
9120 (detect_type_change): ... this one; use param_type_may_change_p.
9121 (detect_type_change_ssa): Use param_type_may_change_p.
9122 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9124 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9127 * config/arm/arm-protos.h (arm_legitimate_address_p,
9128 arm_is_constant_pool_ref): Add prototypes.
9129 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9130 (arm_is_constant_pool_ref) New function.
9131 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9132 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9133 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9134 operand. Remove pool_range and neg_pool_range attributes.
9135 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9136 pool_range and neg_pool_range attributes.
9137 * config/arm/constraints.md (Uh): New constraint.
9138 (Uq): Don't allow constant pool references.
9140 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
9142 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9143 (move_lo_quad_internal_be_<mode>): Likewise.
9144 (move_lo_quad_<mode>): Convert to define_expand.
9145 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9146 (aarch64_simd_move_hi_quad_be_<mode>): New.
9147 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9148 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9149 (aarch64_combinez_be<mode>): New.
9150 (aarch64_combine<mode>): Convert to define_expand.
9151 (aarch64_combine_internal<mode>): New.
9152 (aarch64_simd_combine<mode>): Remove bogus RTL description.
9154 2014-07-04 Tom de Vries <tom@codesourcery.com>
9156 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
9157 combination of earlyclobber and read/write modifiers.
9159 2014-07-04 Tom de Vries <tom@codesourcery.com>
9161 * config/aarch64/aarch64-simd.md
9162 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
9164 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
9167 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
9169 2014-07-04 Jakub Jelinek <jakub@redhat.com>
9172 * cgraphunit.c (expand_thunk): Call free_dominance_info.
9174 PR tree-optimization/61684
9175 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
9176 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
9178 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9179 Kito Cheng <kito@0xlab.org>
9180 Monk Chiang <sh.chiang04@gmail.com>
9182 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
9183 (nds32_symbol_load_store_p): Move to ...
9184 (nds32_fp_as_gp_check_available): Move to ...
9185 * config/nds32/nds32-fp-as-gp.c: ... here.
9186 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
9189 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9190 Kito Cheng <kito@0xlab.org>
9191 Monk Chiang <sh.chiang04@gmail.com>
9193 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
9194 (nds32_expand_store_multiple): Move to ...
9195 (nds32_expand_movmemqi): Move to ...
9196 * config/nds32/nds32-memory-manipulation.c: ... here.
9198 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9199 Kito Cheng <kito@0xlab.org>
9200 Monk Chiang <sh.chiang04@gmail.com>
9202 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
9203 (nds32_output_casesi_pc_relative): Move to ...
9204 (nds32_output_casesi): Move to ...
9205 (nds32_mem_format): Move to ...
9206 (nds32_output_16bit_store): Move to ...
9207 (nds32_output_16bit_load): Move to ...
9208 (nds32_output_32bit_store): Move to ...
9209 (nds32_output_32bit_load): Move to ...
9210 (nds32_output_32bit_load_s): Move to ...
9211 (nds32_output_stack_push): Move to ...
9212 (nds32_output_stack_pop): Move to ...
9213 * config/nds32/nds32-md-auxiliary.c: ... here.
9215 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9216 Ling-Hua Tseng <uranus@tinlans.org>
9218 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
9219 the purpose of this file.
9221 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9222 Kito Cheng <kito@0xlab.org>
9223 Monk Chiang <sh.chiang04@gmail.com>
9225 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
9226 (nds32_address_cost): Move implementation to ...
9227 * config/nds32/nds32-cost.c: ... here.
9228 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
9229 (nds32_address_cost_impl): Declare.
9231 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9232 Kito Cheng <kito@0xlab.org>
9233 Monk Chiang <sh.chiang04@gmail.com>
9235 * config/nds32/nds32.c
9236 (nds32_consecutive_registers_load_store_p): Move to ...
9237 (nds32_valid_multiple_load_store): Move to ...
9238 (nds32_valid_stack_push_pop): Move to ...
9239 (nds32_can_use_bclr_p): Move to ...
9240 (nds32_can_use_bset_p): Move to ...
9241 (nds32_can_use_btgl_p): Move to ...
9242 (nds32_can_use_bitci_p): Move to ...
9243 * config/nds32/nds32-predicates.c: ... here.
9245 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9246 Kito Cheng <kito@0xlab.org>
9247 Monk Chiang <sh.chiang04@gmail.com>
9249 * config/nds32/nds32.c
9250 (nds32_expand_builtin_null_ftype_reg): Move to ...
9251 (nds32_expand_builtin_reg_ftype_imm): Move to ...
9252 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
9253 (nds32_init_builtins): Move implementation to ...
9254 (nds32_expand_builtin): Move implementation to ...
9255 * config/nds32/nds32-intrinsic.c: ... here.
9256 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
9257 (nds32_expand_builtin_impl): Declare.
9259 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9260 Kito Cheng <kito@0xlab.org>
9261 Monk Chiang <sh.chiang04@gmail.com>
9263 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
9264 (nds32_emit_section_tail_template): Move to ...
9265 (nds32_emit_isr_jmptbl_section): Move to ...
9266 (nds32_emit_isr_vector_section): Move to ...
9267 (nds32_emit_isr_reset_conten): Move to ...
9268 (nds32_check_isr_attrs_conflict): Move to ...
9269 (nds32_construct_isr_vectors_information): Move to ...
9270 (nds32_asm_file_start): Move implementation to ...
9271 (nds32_asm_file_end): Move implementation to ...
9272 * config/nds32/nds32-isr.c: ... here.
9273 * config/nds32/nds32-protos.h
9274 (nds32_check_isr_attrs_conflict): Declare.
9275 (nds32_construct_isr_vectors_information): Declare.
9276 (nds32_asm_file_start_for_isr): Declare.
9277 (nds32_asm_file_end_for_isr): Declare.
9279 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9280 Kito Cheng <kito@0xlab.org>
9281 Monk Chiang <sh.chiang04@gmail.com>
9283 * config.gcc (nds32*): Add new modules to extra_objs.
9284 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
9285 (nds32be-*-*): Likewise.
9286 * config/nds32/nds32-cost.c: New file.
9287 * config/nds32/nds32-fp-as-gp.c: New file.
9288 * config/nds32/nds32-intrinsic.c: New file.
9289 * config/nds32/nds32-isr.c: New file.
9290 * config/nds32/nds32-md-auxiliary.c: New file.
9291 * config/nds32/nds32-memory-manipulation.c: New file.
9292 * config/nds32/nds32-pipelines-auxiliary.c: New file.
9293 * config/nds32/nds32-predicates.c: New file.
9294 * config/nds32/t-nds32: New file.
9296 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9298 PR tree-optimization/61682
9299 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
9300 using cases and when one of the operands is equal to 1.
9302 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
9304 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
9305 ashr<mode>3): Correct mode of operands[2].
9306 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
9307 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
9308 Correct mode of operands[2]. Fix split condition.
9310 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
9312 * arm.md (arch): Add armv6_or_vfpv3.
9313 (arch_enabled): Add test for the above.
9314 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
9316 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
9318 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9320 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
9321 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
9322 HWI 1 and negate the unsigned value.
9323 * expmed.c (expand_sdiv_pow2): For modes wider than word always
9324 use AND instead of shift.
9325 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
9327 2014-07-03 Marek Polacek <polacek@redhat.com>
9329 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
9330 (-fsanitize=float-divide-by-zero): Move to the table with
9331 -fsanitize=undefined suboptions.
9332 (-fsanitize=float-cast-overflow): Likewise.
9334 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
9336 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
9337 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
9340 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9342 * loop-invariant.c (struct invariant): Add a new member: eqno;
9343 (find_identical_invariants): Update eqno;
9344 (create_new_invariant): Init eqno;
9345 (get_inv_cost): Compute comp_cost with eqno;
9347 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
9349 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
9350 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
9351 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
9352 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
9353 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
9355 2014-07-02 Christian Bruel <christian.bruel@st.com>
9359 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
9360 (make_preds_opaque): Delete.
9361 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
9362 (commit_mode_sets): New function.
9363 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
9364 Process all modes at once.
9365 * basic-block.h (pre_edge_lcm_avs): Declare.
9366 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
9367 Call clear_aux_for_edges. Fix comments.
9368 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
9369 (pre_edge_rev_lcm): Idem.
9370 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
9372 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
9373 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
9375 * config/i386/i386.c (x96_emit_mode_set): Idem.
9376 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
9377 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
9378 (fpscr_toggle) Disallow from delay slot.
9379 * target.def (emit_mode_set): Add prev_mode parameter.
9380 * doc/tm.texi: Regenerate.
9382 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9384 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
9387 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9389 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
9390 vtable_pointer_value_to_vtable): Constify.
9391 (contains_polymorphic_type_p): Declare.
9392 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
9393 vtable_pointer_value_to_vtable): Constify.
9394 (contains_polymorphic_type_p): New predicate.
9395 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
9397 (ipa_set_ancestor_jf): Likewise.
9398 (detect_type_change): Return false in easy cases.
9399 (compute_complex_assign_jump_func): Require type to contain
9401 (compute_known_type_jump_func): Likewise.
9403 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9405 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
9407 (type_in_anonymous_namespace_p): Constify argument.
9408 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
9409 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
9410 (main_odr_variant): New function.
9411 (hash_type_name): Make static; update assert; do not ICE on
9413 (types_same_for_odr): Bring here from tree.c; simplify and remove
9414 old structural comparing code that doesn't work for templates.
9415 (odr_hasher::equal): Update assert.
9416 (add_type_duplicate): Return true when bases should be computed;
9417 replace incomplete loader by complete; do not output duplicated
9418 warnings; do not ICE on non-records; set odr_violated flag.
9419 (get_odr_type): Be ready to replace incomplete type by complete
9420 one; work on ODR variants instead of main variants; reorder item
9421 in array so bases have still smaller indexes.
9422 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
9423 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
9425 2014-07-01 Cary Coutant <ccoutant@google.com>
9427 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
9429 (resolve_addr_in_expr): When replacing the rtx in a location list
9430 entry, get a new address table entry.
9431 (dwarf2out_finish): Call index_location_lists even if there are no
9432 addr_index_table entries yet.
9434 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9436 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
9437 change for not being obvious.
9439 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9441 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
9444 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9446 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
9447 (vcagt_f64): Likewise.
9448 (vcale_f64): Likewise.
9449 (vcaled_f64): Likewise.
9450 (vcales_f32): Likewise.
9451 (vcalt_f64): Likewise.
9452 (vcaltd_f64): Likewise.
9453 (vcalts_f32): Likewise.
9455 2014-07-01 Marek Polacek <polacek@redhat.com>
9457 * doc/invoke.texi: Document -Wint-conversion.
9459 2014-07-01 Marek Polacek <polacek@redhat.com>
9462 * doc/invoke.texi: Document -Wincompatible-pointer-types.
9464 2014-07-01 Martin Liska <mliska@suse.cz>
9466 IPA REF alias refactoring
9467 * cgraph.h (iterate_direct_aliases): New function.
9468 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
9469 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
9470 FOR_EACH_ALIAS added.
9471 (cgraph_for_node_and_aliases): Likewise.
9472 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
9473 * ipa-inline.c (reset_edge_caches): Likewise.
9474 (update_caller_keys): Likewise.
9475 * trans-mem.c (ipa_tm_execute): Likewise.
9476 *varpool.c (varpool_analyze_node): Likewise.
9477 (varpool_for_node_and_aliases): Likewise.
9478 * ipa-ref.h (first_alias): New function.
9479 (last_alias): Likewise.
9480 (has_aliases_p): Likewise.
9481 * ipa-ref.c (ipa_ref::remove_reference): Removal function
9482 is sensitive to IPA_REF_ALIASes.
9483 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
9484 are put at the beginning of the list.
9485 (symtab_node::iterate_direct_aliases): New function.
9487 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9490 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
9492 (write_ts_type_common_tree_pointers): Do not stream fields not set
9493 for incomplete types; do not stream duplicated fields for variants;
9494 sanity check that variant and type match.
9495 (write_ts_type_non_common_tree_pointers): Likewise.
9496 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
9497 TYPE_SIZE whether type is complete.
9498 (lto_input_ts_type_common_tree_pointers): Do same changes as in
9499 write_ts_type_common_tree_pointers
9500 (lto_input_ts_type_non_common_tree_pointers): Likewise.
9502 2014-06-30 Joseph Myers <joseph@codesourcery.com>
9504 * var-tracking.c (add_stores): Return instead of asserting if old
9505 and new values for conditional store are the same.
9507 2014-06-30 Richard Henderson <rth@redhat.com>
9511 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
9512 the cfg if there were any changes.
9513 * passes.def: Revert move of peephole2 after reorder_blocks;
9514 move duplicate_computed_gotos before peephole2.
9516 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
9518 * except.c (emit_note_eh_region_end): New helper function.
9519 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
9520 emit EH_REGION_END note.
9521 * jump.c (cleanup_barriers): Do not split a call and its
9522 corresponding CALL_ARG_LOCATION note.
9524 2014-06-30 Jeff Law <law@redhat.com>
9526 PR tree-optimization/61607
9527 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
9528 deeper into the SSA_NAME_VALUE chain.
9530 2014-06-30 Marek Polacek <polacek@redhat.com>
9532 * convert.c (convert_to_integer): Don't instrument conversions if the
9533 function has no_sanitize_undefined attribute.
9534 * ubsan.c: Don't run the ubsan pass if the function has
9535 no_sanitize_undefined attribute.
9537 2014-06-30 Jakub Jelinek <jakub@redhat.com>
9539 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
9540 -fsanitize=undefined suboptions.
9542 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
9544 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
9545 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
9546 against bigendian and adjust indices.
9548 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
9550 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
9552 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
9555 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
9556 Add alternative; make early clobber. Adjust both split patterns
9557 to use operand 0 as the working register.
9559 2014-06-30 Jakub Jelinek <jakub@redhat.com>
9561 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
9562 as ira_object_id_map might be NULL, or 1.
9564 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9566 * loop-invariant.c (get_inv_cost): Handle register class.
9567 (gain_for_invariant): Check the register pressure of the inv
9568 and its overlapped register class, other than all.
9570 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
9572 * doc/invoke.texi (Optimize Options): Fix descriptions of
9573 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
9575 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
9577 * doc/extend.texi (Function Attributes): Update 'naked' attribute
9580 2014-06-29 Tobias Grosser <tobias@grosser.es>
9583 * graphite-isl-ast-to-gimple.c: Add missing guards.
9585 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9587 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
9588 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
9589 * flag-types.h: Add new enum fgraphite_generator.
9590 * graphite-isl-ast-to-gimple.c: New.
9591 * graphite-isl-ast-to-gimple.h: New.
9592 * graphite.c (graphite_transform_loops): Add choice of Graphite
9593 code generator, which depends on flag_graphite_code_gen.
9595 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9597 * graphite-dependences.c (subtract_commutative_associative_deps):
9598 Add NULL checking of the following variables: must_raw_no_source,
9599 may_raw_no_source, must_war_no_source, may_war_no_source,
9600 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
9601 must_war, may_war, must_waw, may_waw.
9603 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9605 * graphite-clast-to-gimple.c: gloog is renamed to
9606 graphite_regenerate_ast_cloog. gloog_error is renamed to
9607 graphite_regenerate_error.
9608 * graphite-clast-to-gimple.h: The definition of the struct
9609 bb_pbb_def is moved to graphite-htab.h.
9610 Add inclusion of the hash-table.h.
9611 * graphite-htab.h: The declaration of the function gloog is moved
9612 to graphite-clast-to-gimple.h and renamed to
9613 graphite_regenerate_ast_cloog.
9614 * graphite.c (graphite_transform_loops): gloog is renamed
9615 to graphite_regenerate_ast_cloog.
9617 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9619 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
9621 (write_ts_type_common_tree_pointers): Do not stream fields not set
9622 for incomplete types; do not stream duplicated fields for variants;
9623 sanity check that variant and type match.
9624 (write_ts_type_non_common_tree_pointers): Likewise.
9625 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
9626 TYPE_SIZE whether type is complete.
9627 (lto_input_ts_type_common_tree_pointers): Do same changes as in
9628 write_ts_type_common_tree_pointers
9629 (lto_input_ts_type_non_common_tree_pointers): Likewise.
9631 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9633 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
9635 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9637 * tree-inline.c (remap_type_1): Do not duplicate fields
9638 that are shared in between type and its main variant.
9640 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9642 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
9644 (ipa_set_ancestor_jf) Likewise.
9645 (check_stmt_for_type_change): Check that we work on main variant.
9646 (detect_type_change): Look into main variant.
9647 (compute_known_type_jump_func): Check that main variant has BINFO.
9649 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9651 * ipa-devirt.c (set_type_binfo): New function.
9652 (add_type_duplicate): Use it.
9653 (get_odr_type): Sanity check that binfos points to main variants.
9654 (get_class_context): Be sure the context's outer_type is main variant.
9655 (contains_type_p): Walk main variant.
9656 (get_polymorphic_call_info_for_decl): Set outer_type to be
9658 (get_polymorphic_call_info): Likewise.
9659 (possible_polymorphic_call_targets): Sanity check that we operate
9662 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9664 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9666 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9668 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
9669 accidental change due to wide-int branch merge.
9671 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9673 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
9674 compressed debug support.
9675 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
9676 * configure: Regenerate.
9677 * config.in: Regenerate.
9678 * common.opt (compressed_debug_sections): New enum.
9679 (gz, gz=): New options.
9680 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
9681 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
9682 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
9683 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
9684 LINK_COMPRESS_DEBUG_SPEC.
9685 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
9686 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
9687 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
9688 (Debugging Options): Document -gz[=type].
9690 2014-06-27 Martin Jambor <mjambor@suse.cz>
9693 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
9694 args_to_skip, use those from node instead. Copy args_to_skip and
9695 combined_args_to_skip from node to the new thunk.
9696 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
9697 (cgraph_create_virtual_clone): Moved computation of
9698 combined_args_to_skip...
9699 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
9701 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
9703 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
9704 redundant diagnostic machinary.
9706 2014-06-27 Richard Biener <rguenther@suse.de>
9708 * tree-ssa-math-opts.c (bswap_replace): Fix
9709 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
9711 2014-06-27 Martin Liska <mliska@suse.cz>
9713 * gimple.h (gimple_location_safe): New function introduced.
9714 * cgraphunit.c (walk_polymorphic_call_targets): Usage
9715 of gimple_location_safe replaces gimple_location.
9716 (gimple_fold_call): Likewise.
9717 * ipa-devirt.c (ipa_devirt): Likewise.
9718 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9719 * ipa.c (walk_polymorphic_call_targets): Likewise.
9720 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
9722 2014-06-27 Jakub Jelinek <jakub@redhat.com>
9724 PR tree-optimization/57233
9725 PR tree-optimization/61299
9726 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
9728 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
9729 would be lowered to scalar shifts, check if corresponding
9730 shifts and vector BIT_IOR_EXPR are supported and don't lower
9731 or lower just to narrower vector type in that case.
9732 * expmed.c (expand_shift_1): Fix up handling of vector
9735 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
9738 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
9740 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
9742 * doc/invoke.texi (-fsemantic-interposition): Document.
9743 * common.opt (fsemantic-interposition): New flag.
9744 * varasm.c (decl_replaceable_p): Use it.
9746 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9749 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
9750 extraction other than index 3.
9752 2014-06-26 Teresa Johnson <tejohnson@google.com>
9754 * doc/invoke.texi: Fix typo.
9755 * dumpfile.c: Add support for documented -fdump-* options
9756 optimized/missed/note/optall.
9758 2014-06-26 Martin Jambor <mjambor@suse.cz>
9760 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
9761 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
9762 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
9763 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
9764 * opts.c (default_options_optimization): Set
9765 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
9766 * doc/invoke.texi (allow-load-data-races)
9767 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
9768 (allow-store-data-races): Document the new default.
9770 2014-06-26 Martin Jambor <mjambor@suse.cz>
9772 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
9773 renamed to ipa_impossible_devirt_target. Fix typo.
9774 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
9775 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
9776 ipa_impossible_devirt_target.
9778 2014-06-26 Richard Biener <rguenther@suse.de>
9780 PR tree-optimization/61607
9781 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
9782 explaining why we restrict copies on loop depth.
9783 * tree-ssa-dom.c (cprop_operand): Remove restriction on
9785 (record_equivalences_from_phis): Instead add it here.
9787 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
9789 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
9790 (LTO_WRAPPER_OBJS): New variable.
9791 (lto-wrapper$(exeext)): Use it.
9792 * collect2.c: Include "collect-utils.h".
9793 (verbose, debug): Remove variables.
9794 (at_file_supplied): No longer static.
9795 (tool_name): New variable.
9796 (do_wait, fork_execute, maybe_unlink): Don't declare.
9797 (tool_cleanup): No longer static.
9798 (notice): Remove function.
9799 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
9801 (collect_wait, do_wait, collect_execute): Remove functions.
9802 (maybe_unlink): No longer static.
9803 * collect2.h (verbose, debug): Don't declare.
9804 (at_file_supplied): Declare.
9805 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
9807 (collect_execute): Replace with implementation from collect2, plus a
9808 new arg use_atfile. All callers changed.
9809 (collect_wait): Replace with implementation from collect2.
9810 (maybe_unlink_file): Remove function.
9811 (fork_execute): Replace with implementation from collect2, plus a
9812 new arg use_atfile. All callers changed.
9813 (do_wait): Add call to utils_cleanup to the error path.
9814 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
9815 (tool_cleanup): Adjust declarations.
9816 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
9817 * tlink.c: Include "collect-utils.h".
9818 (tlink_execute): New arg use_atfile. All callers changed.
9819 (tlink_init, tlink_execute): Remove declarations.
9821 * collect-utils.c (save_temps): New variable.
9822 (do_wait): Use it instead of debug. Use fatal_error.
9823 * collect-utils.h (save_temps): Declare.
9824 * collect2.c (verbose): Rename from vflag. All uses changed.
9825 (tool_cleanup): New function, copied from collect_atexit.
9826 (collect_atexit, handler): Just call it.
9827 * collect2.h (verbose): Declaration renamed from vflag.
9828 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
9831 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
9832 (lto-wrapper$(exeext)): Link with collect-utils.o.
9833 * collect-utils.c: New file.
9834 * collect-utils.h: New file.
9835 * lto-wrapper.c: Include "collect-utils.h".
9836 (args_name): Delete variable.
9837 (tool_name): New variable.
9838 (tool_cleanup): New function.
9839 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
9840 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
9841 (fork_execute): Remove functions.
9843 2014-06-26 Nick Clifton <nickc@redhat.com>
9845 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
9847 * doc/extend.texi (Function Attributes): Fix typo in description
9848 of RX vector attribute.
9850 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
9852 * config.gcc (supported_defaults): Error when passing either
9853 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
9855 2014-06-26 Richard Biener <rguenther@suse.de>
9857 * tree-ssa-dom.c (cprop_operand): Remove restriction on
9858 propagating volatile pointers.
9860 2014-06-26 Richard Biener <rguenther@suse.de>
9862 PR tree-optimization/61607
9863 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
9864 loop if we redirected its latch edge.
9865 (thread_block_1): Do not cancel loops prematurely.
9867 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
9869 * toplev.c (backend_init_target): Move init_emit_regs and
9871 (backend_init) ... here; skip ira_init_once and backend_init_target.
9872 (target_reinit) ... and here; clear
9873 this_target_rtl->lang_dependent_initialized.
9874 (lang_dependent_init_target): Clear
9875 this_target_rtl->lang_dependent_initialized;
9876 break out rtl initialization to ...
9877 (initialize_rtl): ... here; call also backend_init_target
9879 * toplev.h (initialize_rtl): New function.
9880 * function.c: Include toplev.h
9881 (init_function_start): Call initialize_rtl.
9882 * rtl.h (target_rtl): Add target_specific_initialized,
9883 lang_dependent_initialized.
9885 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
9886 Jakub Jelinek <jakub@redhat.com>
9888 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
9890 2014-06-25 Tom de Vries <tom@codesourcery.com>
9892 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
9894 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
9896 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
9897 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
9898 Issue a strict overflow warning if appropriate.
9900 2014-06-25 Martin Liska <mliska@suse.cz>
9903 * Makefile.in: Removed header file (ipa-ref-inline.h).
9904 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
9906 (cgraph_speculative_call_info): Likewise.
9907 (cgraph_for_node_thunks_and_aliases): Likewise.
9908 (cgraph_for_node_and_aliases): Likewise.
9909 (verify_cgraph_node): Likewise.
9910 * cgraph.h: Batch of IPA REF functions become member functions of
9911 symtab_node: add_reference, maybe_add_reference, clone_references,
9912 clone_referring, clone_reference, find_reference,
9913 remove_stmt_references, remove_all_references,
9914 remove_all_referring, dump_references, dump_referring,
9915 has_alias_p, iterate_reference, iterate_referring.
9916 * cgraphbuild.c (record_reference): New IPA REF function used.
9917 (record_type_list): Likewise.
9918 (record_eh_tables): Likewise.
9919 (mark_address): Likewise.
9920 (mark_load): Likewise.
9921 (mark_store): Likewise.
9922 (pass_build_cgraph_edges): Likewise.
9923 (rebuild_cgraph_edge): Likewise.
9924 (cgraph_rebuild_references): Likewise.
9925 (pass_remove_cgraph_callee_edges): Likewise.
9926 * cgraphclones.c (cgraph_clone_node): Likewise.
9927 (cgraph_create_virtual_clone): Likewise.
9928 (cgraph_materialize_clone): Likewise.
9929 (cgraph_materialize_all_clones): Likewise.
9930 * cgraphunit.c (cgraph_reset_node): Likewise.
9931 (cgraph_reset_node): Likewise.
9932 (analyze_function): Likewise.
9933 (assemble_thunks_and_aliases): Likewise.
9934 (expand_function): Likewise.
9935 * ipa-comdats.c (propagate_comdat_group): Likewise.
9936 (enqueue_references): Likewise.
9937 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
9938 (create_specialized_node): Likewise.
9939 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
9940 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
9941 * ipa-inline.c (reset_edge_caches): Likewise.
9942 (update_caller_keys): Likewise.
9943 (execute): Likewise.
9944 * ipa-prop.c (remove_described_reference): Likewise.
9945 (propagate_controlled_uses): Likewise.
9946 (ipa_edge_duplication_hook): Likewise.
9947 (ipa_modify_call_arguments): Likewise.
9948 * ipa-pure-const.c (propagate_pure_const): Likewise.
9949 * ipa-ref-inline.h: Header file removed, functions moved
9950 to symtab_node class.
9951 * ipa-ref.c (remove_reference): New class member function.
9952 (cannot_lead_to_return): New class member function.
9953 (referring_ref_list): Likewise.
9954 (referred_ref_list): Likewise.
9955 Rest of functions moved to symtab_node class.
9956 * ipa-ref.h: New member functions remove_reference,
9957 cannot_lead_to_return, referring_ref_list, referred_ref_list added
9959 ipa_ref_list class has new member functions: first_reference,
9960 first_referring, clear, nreferences.
9961 * ipa-reference.c (analyze_function): New IPA REF function used.
9962 (write_node_summary_p): Likewise.
9963 (ipa_reference_write_optimization_summary): Likewise.
9964 * ipa-split.c (split_function): Likewise.
9965 * ipa-utils.c (ipa_reverse_postorder): Likewise.
9966 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
9967 (function_and_variable_visibility): Likewise.
9968 * ipa.c (has_addr_references_p): Likewise.
9969 (process_references): Argument type changed.
9970 (symtab_remove_unreachable_nodes): New IPA REF function used.
9971 (process_references): Likewise.
9972 (set_writeonly_bit): Likewise.
9973 * lto-cgraph.c: Implementation of new symtab_node member functions
9974 that uses new IPA REF functions.
9975 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
9977 * lto-streamer-out.c (output_symbol_p): Likewise.
9978 * lto-streamer.h (referenced_from_this_partition_p): Argument type
9980 * symtab.c: Implementation of new IPA REF API.
9981 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
9982 (ipa_tm_create_version): Likewise.
9983 (ipa_tm_execute): Likewise.
9984 * tree-emutls.c (gen_emutls_addr): Likewise.
9985 * tree-inline.c (copy_bb): Likewise.
9986 (delete_unreachable_blocks_update_callgraph): Likewise.
9987 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
9988 (varpool_for_node_and_aliases): Likewise.
9990 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
9992 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
9994 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
9997 * fold-const.c (fold_checksum_tree): Use a hash_table of const
9998 tree_node * instead of tree_node *.
10000 (print_fold_checksum): Likewise.
10001 (fold_check_failed): Likewise.
10002 (debug_fold_checksum): Likewise.
10003 (fold_build1_stat_loc): Likewise.
10004 (fold_build2_stat_loc): Likewise.
10005 (fold_build3_stat_loc): Likewise.
10006 (fold_build_call_array_loc): Likewise.
10008 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10010 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10011 implementation with call to...
10012 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10014 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10017 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10019 PR tree-optimization/57742
10020 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10021 after replacing the statement.
10023 2014-06-25 Nick Clifton <nickc@redhat.com>
10025 * config/v850/v850.c (GHS_default_section_names): Change to const
10027 (GHS_current_section_names): Likewise.
10028 (v850_insert_attributes): Do not build strings, just assign the
10029 names directly. Change the type of 'chosen_section' to const
10031 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10032 directly to the array entry.
10033 * config/v850/v850.h (GHS_default_section_names): Change to const
10035 (GHS_current_section_names): Likewise.
10037 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10039 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10040 (LANG_HOOKS_DECLS): Add it.
10041 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10043 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10044 * langhooks.h (struct lang_hooks_for_decls): Add
10045 omp_clause_linear_ctor hook.
10046 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10047 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10048 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10049 combined simd loop use omp_clause_linear_ctor hook.
10051 2014-06-24 Cong Hou <congh@google.com>
10053 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10054 pattern recognition.
10055 (type_conversion_p): PROMOTION is true if it's a type promotion
10056 conversion, and false otherwise. Return true if the given expression
10057 is a type conversion one.
10058 * tree-vectorizer.h: Adjust the number of patterns.
10059 * tree.def: Add SAD_EXPR.
10060 * optabs.def: Add sad_optab.
10061 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10062 * expr.c (expand_expr_real_2): Likewise.
10063 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10064 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10065 * optabs.c (optab_for_tree_code): Likewise.
10066 * tree-cfg.c (estimate_operator_cost): Likewise.
10067 * tree-ssa-operands.c (get_expr_operands): Likewise.
10068 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10069 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10070 * doc/generic.texi: Add document for SAD_EXPR.
10071 * doc/md.texi: Add document for ssad and usad.
10073 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10075 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10076 qualification in cast.
10078 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10080 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10081 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10082 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10083 (tree_function_decl): ... here.
10084 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10085 streaming of vindex to ...
10086 (write_ts_function_decl_tree_pointers): ... here.
10087 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10088 Do not stream DECL_VINDEX.
10089 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10091 2014-06-24 Catherine Moore <clm@codesourcery.com>
10092 Sandra Loosemore <sandra@codesourcery.com>
10094 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10095 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10096 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10098 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10100 * doc/invoke.texi (Warning Options): Remove duplicated
10101 -Wmaybe-uninitialized.
10103 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10105 PR tree-optimization/57742
10106 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10107 (handle_builtin_malloc, handle_builtin_memset): New functions.
10108 (strlen_optimize_stmt): Call them.
10109 * passes.def: Move strlen after loop+dom but before vrp.
10111 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10114 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10115 model family 6 CPU with has_longmode never use a CPU without
10118 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10121 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10124 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10126 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10127 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10129 * hash-map.h: New file.
10130 * ipa-comdats.c: Use hash_map instead of pointer_map.
10132 * lto-section-out.c: Adjust.
10133 * lto-streamer.h: Replace pointer_map with hash_map.
10134 * symtab.c (verify_symtab): Likewise.
10135 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10136 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10137 * tree-streamer.h: Likewise.
10138 * tree-streamer.c: Adjust.
10139 * pointer-set.h: Remove pointer_map.
10141 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10143 * hash-table.h: Add a template arg to choose between storing values
10144 and storing pointers to values, and then provide partial
10145 specializations for both.
10146 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10147 should store, not the type values should point to.
10148 * tree-into-ssa.c (var_info_hasher): Likewise.
10149 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10150 * tree-complex.c: Adjust.
10151 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10152 table instead of int_tree_map *.
10153 * tree-parloops.c: Adjust.
10154 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10155 type is being stored.
10156 * tree-vectorizer.c: Adjust.
10158 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10160 * hash-table.h: Remove a layer of indirection from hash_table so that
10161 it contains the hash table's data instead of a pointer to the data.
10162 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
10163 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
10164 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
10165 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
10166 fold-const.c, gcse.c, ggc-common.c,
10167 gimple-ssa-strength-reduction.c, gimplify.c,
10168 graphite-clast-to-gimple.c, graphite-dependences.c,
10169 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
10170 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10171 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
10172 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
10173 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
10174 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
10175 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
10176 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
10177 tree-ssa-live.c, tree-ssa-loop-im.c,
10178 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
10179 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
10180 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10181 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
10182 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
10183 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
10184 vtable-verify.c, vtable-verify.h: Adjust.
10186 2014-06-24 Richard Biener <rguenther@suse.de>
10188 PR tree-optimization/61572
10189 * tree-ssa-sink.c (statement_sink_location): Do not sink
10190 loads from hard registers.
10192 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10194 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
10195 not mentioned in clauses use private clause if the iterator is
10196 declared in #pragma omp for simd, and when adding lastprivate
10197 instead, add it to the outer #pragma omp for too. Diagnose
10198 if the variable is private in outer context. For simd collapse > 1
10199 loops, replace all iterators with temporaries.
10200 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
10201 same even in collapse > 1 loops.
10203 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
10204 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
10206 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
10207 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
10209 (gimplify_adjust_omp_clauses): Likewise.
10210 * omp-low.c (lower_rec_simd_input_clauses,
10211 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
10212 safelen the same as safelen(1).
10213 * tree-nested.c (convert_nonlocal_omp_clauses,
10214 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
10215 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
10216 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
10217 Fixup handling of GIMPLE_OMP_TARGET.
10218 (convert_tramp_reference_stmt, convert_gimple_call): Handle
10221 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
10223 PR tree-optimization/61554
10224 * tree-ssa-propagate.c: Include "bitmap.h".
10225 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
10226 properly update constructor/destructor.
10227 (substitute_and_fold_dom_walker::before_dom_children):
10228 Remove call to gimple_purge_dead_eh_edges, add bb->index to
10229 need_eh_cleaup instead.
10230 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
10233 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10235 * varpool.c (dump_varpool_node): Dump used_by_single_function.
10236 * tree-pass.h (make_pass_ipa_single_use): New pass.
10237 * cgraph.h (used_by_single_function): New flag.
10238 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
10240 * passes.def (pass_ipa_single_use): Scedule.
10241 * ipa.c (BOTTOM): New macro.
10242 (meet): New function
10243 (propagate_single_user): New function.
10244 (ipa_single_use): New function.
10245 (pass_data_ipa_single_use): New pass.
10246 (pass_ipa_single_use): New pass.
10247 (pass_ipa_single_use::gate): New gate.
10248 (make_pass_ipa_single_use): New function.
10250 2014-06-23 Kai Tietz <ktietz@redhat.com>
10253 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
10254 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
10256 2014-06-23 Richard Biener <rguenther@suse.de>
10258 * tree-ssa-loop.c (gate_loop): New function.
10259 (pass_tree_loop::gate): Call it.
10260 (pass_data_tree_no_loop, pass_tree_no_loop,
10261 make_pass_tree_no_loop): New.
10262 * tree-vectorizer.c: Include tree-scalar-evolution.c
10263 (pass_slp_vectorize::execute): Initialize loops and SCEV if
10265 (pass_slp_vectorize::clone): New method.
10266 * timevar.def (TV_TREE_NOLOOP): New.
10267 * tree-pass.h (make_pass_tree_no_loop): Declare.
10268 * passes.def (pass_tree_no_loop): New pass group with
10271 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
10274 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
10275 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
10277 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10279 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
10280 "yes" where needed.
10282 2014-06-23 Alan Modra <amodra@gmail.com>
10285 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
10286 to zero on debug statements.
10288 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10291 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
10292 Ignore third operand if present by marking qualifier_internal.
10294 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
10296 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
10298 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
10299 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
10300 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
10301 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
10302 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
10303 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
10304 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
10305 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
10306 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
10307 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
10308 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
10309 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
10310 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
10311 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
10312 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
10313 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
10314 logic in GCC vector extensions
10316 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
10317 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
10318 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
10319 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
10320 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
10321 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
10322 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
10323 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
10324 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
10325 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
10327 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
10329 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
10332 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
10333 (vget_low_s64): Use __GET_LOW macro.
10334 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
10335 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
10336 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
10337 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
10338 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
10340 (vcombine_s64): Use GCC vector extensions; remove cast.
10341 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
10342 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
10343 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
10344 Fix type signature; remove cast.
10346 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10349 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
10351 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
10353 (BUILTIN_VD1): New.
10354 (BUILTIN_VD_RE): Remove.
10355 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
10356 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
10357 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
10358 variant but not df.
10359 (vreinterpretv1df*, vreinterpret*v1df): New.
10360 (vreinterpretdf*, vreinterpret*df): Remove.
10361 * config/aarch64/aarch64-simd.md (aarch64_create,
10362 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
10363 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
10365 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
10366 (vcreate_f64): Remove cast, use v1df builtin.
10367 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
10368 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
10369 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
10370 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
10371 vmov_n_f64, vst1_f64): Use gcc vector extensions.
10372 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
10373 add range check using __builtin_aarch64_im_lane_boundsi.
10374 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
10375 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
10376 type signature, use gcc vector extensions.
10377 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
10378 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
10379 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
10380 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
10381 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
10382 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
10383 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
10384 vreinterpret_u64_f64): Use v1df builtin not df.
10386 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10388 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
10391 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10393 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
10396 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10398 * loop-invariant.c (pre_check_invariant_p): New function.
10399 (find_invariant_insn): Call pre_check_invariant_p.
10401 2014-06-22 Richard Henderson <rth@redhat.com>
10404 * compare-elim.c (struct comparison): Add eh_note.
10405 (find_comparison_dom_walker::before_dom_children): Don't eliminate
10406 a redundant comparison in a different EH region. Purge EH edges if
10409 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10411 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
10412 (var_shift): Use it.
10413 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
10414 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
10415 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
10416 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
10417 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
10418 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
10419 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
10420 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
10421 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
10422 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
10423 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
10424 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
10425 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
10426 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
10427 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
10428 *rotldi3_internal15be): Use the new attribute. Merge register and
10429 integer alternatives.
10431 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10433 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
10434 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
10435 split, *ashrdi3_internal3 and split): Delete, merge into...
10436 (ashr<mode>3): New expander.
10437 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
10438 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
10440 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10442 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
10443 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
10444 *rotldi3_internal3 and split): Delete, merge into...
10445 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
10446 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
10447 Use "rotlw" extended mnemonic.
10449 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10451 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
10452 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
10453 and split, *ashldi3_internal3 and split): Delete, merge into...
10454 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
10455 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
10457 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10459 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
10460 (lshrsi3, two anonymous define_insns and define_splits,
10461 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
10462 *lshrdi3_internal3 and split): Delete, merge into...
10463 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
10464 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
10466 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10468 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
10469 Remove "O" alternative.
10471 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
10473 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
10474 (mips_move_from_gpr_cost): Likewise.
10475 (mips_register_move_cost): Update accordingly.
10476 (mips_secondary_reload_class): Remove name of in_p.
10478 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
10481 * config/i386/i386.md (x86_64_shrd, x86_shrd,
10482 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
10484 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10486 * config/nios2/nios2.c: Include "builtins.h".
10488 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10490 * cgraph.h (tls_model_names): New variable.
10491 * print-tree.c (print_node): Simplify.
10492 * varpool.c (tls_model_names): New variable.
10493 (dump_varpool_node): Output tls model.
10495 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10497 * ipa-visibility.c (function_and_variable_visibility): Disable
10498 temporarily local aliases for some targets.
10500 2014-06-20 Marek Polacek <polacek@redhat.com>
10502 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
10503 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
10504 into SANITIZE_UNDEFINED.
10505 * doc/invoke.texi: Describe -fsanitize=bounds.
10506 * gimplify.c (gimplify_call_expr): Add gimplification of internal
10507 functions created in the FEs.
10508 * internal-fn.c: Move "internal-fn.h" after "tree.h".
10509 (expand_UBSAN_BOUNDS): New function.
10510 * internal-fn.def (UBSAN_BOUNDS): New internal function.
10511 * internal-fn.h: Don't define internal functions here.
10512 * opts.c (common_handle_option): Add -fsanitize=bounds.
10513 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
10514 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
10515 * tree-core.h: Define internal functions here.
10516 (struct tree_base): Add ifn field.
10517 * tree-pretty-print.c: Include "internal-fn.h".
10518 (dump_generic_node): Handle functions without CALL_EXPR_FN.
10519 * tree.c (get_callee_fndecl): Likewise.
10520 (build_call_expr_internal_loc): New function.
10521 * tree.def (CALL_EXPR): Update description.
10522 * tree.h (CALL_EXPR_IFN): Define.
10523 (build_call_expr_internal_loc): Declare.
10524 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
10526 (ubsan_type_descriptor): Change bool parameter to enum
10527 ubsan_print_style. Adjust the code. Add handling of
10529 (ubsan_expand_bounds_ifn): New function.
10530 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
10531 (ubsan_build_overflow_builtin): Likewise.
10532 (instrument_bool_enum_load): Likewise.
10533 (ubsan_instrument_float_cast): Likewise.
10534 * ubsan.h (enum ubsan_print_style): New enum.
10535 (ubsan_expand_bounds_ifn): Declare.
10536 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
10538 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
10540 * config/rs6000/rs6000.md: Append `DONE' to preparation
10541 statements of `bswap' pattern splitters.
10543 2014-06-20 Tom de Vries <tom@codesourcery.com>
10545 * target.def (call_fusage_contains_non_callee_clobbers): Update
10547 * doc/tm.texi: Regenerate.
10549 2014-06-20 Yury Gribov <y.gribov@samsung.com>
10550 Max Ostapenko <m.ostapenko@partner.samsung.com>
10553 * asan.c (instrument_strlen_call): Fixed instrumentation of
10556 2014-06-20 Martin Jambor <mjambor@suse.cz>
10559 * ipa-prop.c (impossible_devirt_target): New function.
10560 (try_make_edge_direct_virtual_call): Use it, also instead of
10563 2014-06-20 Yury Gribov <y.gribov@samsung.com>
10564 Max Ostapenko <m.ostapenko@partner.samsung.com>
10567 * asan.c (build_check_stmt): Add condition.
10569 2014-06-20 Martin Jambor <mjambor@suse.cz>
10572 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
10575 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10577 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
10579 (VCONQ): Make comment more helpful.
10581 * config/aarch64/aarch64-simd.md
10582 (aarch64_sqdmulh_lane<mode>):
10583 Use VCOND for operands 2. Update lane checking and flipping logic.
10584 (aarch64_sqrdmulh_lane<mode>): Likewise.
10585 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
10586 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
10587 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
10588 attribute of operand 3 to VCOND.
10589 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
10590 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10591 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
10592 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
10593 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10594 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
10596 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
10597 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
10598 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
10599 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
10600 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
10601 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
10602 operand to VCOND. Update lane flipping and bounds checking logic.
10603 (aarch64_sqdmlal2_lane<mode>): Likewise.
10604 (aarch64_sqdmlsl_lane<mode>): Likewise.
10605 (aarch64_sqdmull_lane<mode>): Likewise.
10606 (aarch64_sqdmull2_lane<mode>): Likewise.
10607 (aarch64_sqdmlal_laneq<mode>):
10608 Replace VCON usage with VCONQ.
10609 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
10610 (aarch64_sqdmlal2_laneq<mode>): Emit
10611 aarch64_sqdmlal2_laneq<mode>_internal insn.
10612 Replace VCON with VCONQ.
10613 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
10614 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
10615 (aarch64_sqdmull_laneq<mode>): Emit
10616 aarch64_sqdmull_laneq<mode>_internal insn.
10617 Replace VCON with VCONQ.
10618 (aarch64_sqdmull2_laneq<mode>): Emit
10619 aarch64_sqdmull2_laneq<mode>_internal insn.
10620 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
10621 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
10622 of 3rd argument to int16x4_t.
10623 (vqdmlalh_lane_s16): Likewise.
10624 (vqdmlslh_lane_s16): Likewise.
10625 (vqdmull_high_lane_s16): Likewise.
10626 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
10627 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
10628 (vqdmlsl_lane_s16): Likewise.
10629 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
10630 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
10631 (vqdmlals_lane_s32): Likewise.
10632 (vqdmlsls_lane_s32): Likewise.
10633 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
10634 (vqdmulls_lane_s32): Likewise.
10635 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
10636 (vqdmlsl_lane_s32): Likewise.
10637 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
10638 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
10639 (vqrdmulhh_lane_s16): Likewise.
10640 (vqdmlsl_high_lane_s16): Likewise.
10641 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
10642 (vqdmlsl_high_lane_s32): Likewise.
10643 (vqrdmulhs_lane_s32): Likewise.
10645 2014-06-20 Tom de Vries <tom@codesourcery.com>
10647 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
10648 get_call_reg_set_usage.
10650 2014-06-20 Tom de Vries <tom@codesourcery.com>
10652 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
10653 it contains all call_used_regs.
10655 2014-06-20 Tom de Vries <tom@codesourcery.com>
10657 * final.c (collect_fn_hard_reg_usage): Add and use variable
10658 function_used_regs.
10660 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10662 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
10663 (set_init_priority, get_init_priority, set_fini_priority,
10664 get_fini_priority): New methods.
10665 * tree.c (init_priority_for_decl): Remove.
10666 (init_ttree): Do not initialize init priority.
10667 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
10668 (decl_priority_info): Remove.
10669 (decl_init_priority_insert): Rewrite.
10670 (decl_fini_priority_insert): Rewrite.
10671 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
10672 tree_priority_map_marked_p): Remove.
10673 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
10674 * lto-streamer-out.c (hash_tree): Do not hash priorities.
10675 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
10676 not output priorities.
10677 (pack_ts_function_decl_value_fields): Likewise.
10678 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
10679 not input priorities.
10680 (unpack_ts_function_decl_value_fields): Likewise.
10681 * symtab.c (symbol_priority_map): Declare.
10682 (init_priority_hash): Declare.
10683 (symtab_unregister_node): Unregister from priority hash, too.
10684 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
10686 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
10687 (symbol_priority_info): New function.
10688 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
10690 * tree-core.h (tree_priority_map): Remove.
10692 2014-06-20 Jakub Jelinek <jakub@redhat.com>
10694 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
10695 0xff to uint64_t before shifting it up.
10697 2014-06-20 Julian Brown <julian@codesourcery.com>
10698 Chung-Lin Tang <cltang@codesourcery.com>
10700 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
10701 TARGET_THUMB1_ONLY. Add comments.
10703 2014-06-19 Tom de Vries <tom@codesourcery.com>
10705 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
10706 return type to void.
10707 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
10709 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10711 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
10712 as "move", from depends_on.
10714 2014-06-19 Terry Guo <terry.guo@arm.com>
10716 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
10719 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
10721 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
10723 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
10725 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
10728 * config/sh/sh.c (prepare_move_operands): Don't process TLS
10729 addresses here if reload in progress or completed.
10731 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
10733 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
10734 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
10735 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
10736 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
10737 (mips_register_priority): New function that implements the target
10738 hook TARGET_REGISTER_PRIORITY.
10739 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
10740 (mips_lra_p): Likewise for TARGET_LRA_P.
10741 (TARGET_REGISTER_PRIORITY): Define macro.
10742 (TARGET_SPILL_CLASS): Likewise.
10743 (TARGET_LRA_P): Likewise.
10744 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
10746 (REG_CLASS_NAMES): Likewise.
10747 (REG_CLASS_CONTENTS): Likewise.
10748 (BASE_REG_CLASS): Use M16_SP_REGS.
10749 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
10750 New set attribute to enable alternatives depending on the register
10752 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
10753 (*lea64): Disable pattern for MIPS16.
10754 * config/mips/mips.opt (mlra): New option.
10756 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
10758 * lra-constraints.c (base_to_reg): New function.
10759 (process_address): Use new function.
10761 2014-06-18 Tom de Vries <tom@codesourcery.com>
10763 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
10764 * config/aarch64/aarch64.c
10765 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
10766 (aarch64_emit_call_insn): New function.
10767 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
10769 * config/aarch64/aarch64.md (define_expand "call_internal")
10770 (define_expand "call_value_internal", define_expand "sibcall_internal")
10771 (define_expand "sibcall_value_internal"): New.
10772 (define_expand "call", define_expand "call_value")
10773 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
10774 expand variant and aarch64_emit_call_insn.
10776 2014-06-18 Radovan Obradovic <robradovic@mips.com>
10777 Tom de Vries <tom@codesourcery.com>
10779 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
10780 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
10782 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
10783 clobbers to CALL_INSN_FUNCTION_USAGE.
10784 (define_expand "sibcall_internal")
10785 (define_expand "sibcall_value_internal"): New.
10786 (define_expand "call", define_expand "call_value"): Add argument to
10787 arm_emit_call_insn.
10788 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
10789 (define_expand "sibcall_value"): Use sibcall_value_internal and
10790 arm_emit_call_insn.
10792 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10794 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
10796 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10798 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
10801 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10803 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
10804 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
10805 annotations. Fix DWARF information.
10807 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10809 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
10810 __udivmoddi4, and fixups for negative operands.
10812 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10814 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
10816 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10818 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
10821 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10823 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
10826 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10828 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
10829 describing register usage on function entry and exit.
10831 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10833 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
10834 (__aeabi_ldivmod): Fix whitespace.
10836 2014-06-18 Andreas Schwab <schwab@suse.de>
10838 * doc/md.texi (Standard Names): Use @itemx for grouped items.
10839 Remove blank line after @item.
10841 2014-06-18 Richard Henderson <rth@redhat.com>
10844 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
10846 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10848 * config/arm/arm.c (neon_vector_mem_operand): Allow register
10849 POST_MODIFY for neon loads and stores.
10850 (arm_print_operand): Output post-index register for neon loads and
10853 2014-06-18 Richard Biener <rguenther@suse.de>
10855 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
10857 2014-06-18 Richard Biener <rguenther@suse.de>
10859 * tree-pass.h (make_pass_dce_loop): Remove.
10860 * passes.def: Replace pass_dce_loop with pass_dce.
10861 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
10862 changed free niter estimates and reset the scev cache.
10863 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
10864 make_pass_dce_loop): Remove.
10865 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
10866 (fini_copy_prop): Return whether something changed. Always
10867 let substitute_and_fold perform DCE and free niter estimates
10868 and reset the scev cache if so.
10869 (execute_copy_prop): If sth changed schedule cleanup-cfg.
10870 (pass_data_copy_prop): Do not unconditionally schedule
10871 cleanup-cfg or update-ssa.
10873 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
10875 PR tree-optimization/61518
10876 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
10877 reduction var is used in reduction stmt or phi-function only.
10879 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10881 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
10883 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
10885 PR tree-optimization/61517
10886 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
10887 whose rhs's first tree is the source expression instead of the
10889 (find_bswap_or_nop): Likewise.
10890 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
10891 gimple stmt whose rhs's first tree is the source. In the memory source
10892 case, move the stmt to be replaced close to one of the original load to
10893 avoid the problem of a store between the load and the stmt's original
10895 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
10898 2014-06-18 Andreas Schwab <schwab@suse.de>
10900 PR rtl-optimization/54555
10901 * postreload.c (move2add_use_add2_insn): Substitute
10902 STRICT_LOW_PART only if it is cheaper.
10904 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
10906 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
10907 Do not use unspec as call operand. Use memory_operand instead of
10908 memory_nox32_operand and add "m" operand constraint. Disable
10909 pattern for TARGET_X32.
10910 (*sibcall_pop_memory): Ditto.
10911 (*sibcall_value_memory): Ditto.
10912 (*sibcall_value_pop_memory): Ditto.
10913 (sibcall peepholes): Merge SImode and DImode patterns using
10914 W mode iterator. Use memory_operand instead of memory_nox32_operand.
10915 Disable pattern for TARGET_X32. Check if eliminated register is
10916 really dead after call insn. Generate call RTX without unspec operand.
10917 (sibcall_value peepholes): Ditto.
10918 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
10919 instead of memory_nox32_operand. Check if eliminated register is
10920 really dead after call insn. Generate call RTX without unspec operand.
10921 (sibcall_value_pop peepholes): Ditto.
10922 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
10924 2014-06-18 Terry Guo <terry.guo@arm.com>
10927 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
10930 2014-06-18 Olivier Hainque <hainque@adacore.com>
10932 * tree-core.h (tree_block): Add an "end_locus" field, allowing
10933 memorization of the end of block source location.
10934 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
10935 * gimplify.c (gimplify_bind_expr): Propagate the block start and
10936 end source location info we have on the block entry/exit code we
10939 2014-06-18 Richard Biener <rguenther@suse.de>
10941 * common.opt (fssa-phiopt): New option.
10942 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
10944 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
10945 * doc/invoke.texi (-fssa-phiopt): Document.
10947 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10949 * genattrtab.c (n_bypassed): New variable.
10950 (process_bypasses): Initialise n_bypassed.
10951 Count number of bypassed reservations.
10952 (make_automaton_attrs): Allocate space for bypassed reservations
10953 rather than number of bypasses.
10955 2014-06-18 Richard Biener <rguenther@suse.de>
10957 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
10958 we propagated anything.
10959 (substitute_and_fold_dom_walker::before_dom_children): Something
10960 changed if we propagated into PHI arguments.
10961 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
10964 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
10966 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
10968 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
10969 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
10970 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
10971 Introduces alternative way of loads group permutaions.
10972 (vect_transform_grouped_load): Try alternative way of permutations.
10974 2014-06-18 Jakub Jelinek <jakub@redhat.com>
10976 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
10977 changed in ORT_TARGET region, don't jump to do_outer.
10978 (struct gimplify_adjust_omp_clauses_data): New type.
10979 (gimplify_adjust_omp_clauses_1): Adjust for data being
10980 a struct gimplify_adjust_omp_clauses_data pointer instead
10981 of tree *. Pass pre_p as a new argument to
10982 lang_hooks.decls.omp_finish_clause hook.
10983 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
10984 splay_tree_foreach to pass both list_p and pre_p.
10985 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
10986 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
10987 gimplify_adjust_omp_clauses callers.
10988 * langhooks.c (lhd_omp_finish_clause): New function.
10989 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
10990 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
10991 * langhooks.h (struct lang_hooks_for_decls): Add a new
10992 gimple_seq * argument to omp_finish_clause hook.
10993 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
10994 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
10995 (scan_omp_parallel, lower_omp_for): When adding
10996 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
10997 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
10998 * tree-nested.c (convert_nonlocal_omp_clauses,
10999 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11000 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11002 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11004 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11005 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11007 2014-06-17 Xinliang David Li <davidxl@google.com>
11009 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11010 * passes.c (pass_init_dump_file): Do not set initialize
11011 flag to false unconditionally.
11013 2014-06-17 Richard Biener <rguenther@suse.de>
11015 * genopinit.c (main): Use vec<>::qsort method.
11016 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11018 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11020 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11022 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11023 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11024 (mips_move_to_gpr_cost): Remove ST_REGS case.
11025 (mips_move_from_gpr_cost): Likewise.
11026 (mips_register_move_cost): Likewise.
11027 (mips_secondary_reload_class): Likewise.
11029 2014-06-17 Richard Biener <rguenther@suse.de>
11031 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11032 (pass_all_optimizations): Move 3rd copy-prop pass from after
11033 fre to before ifcombine/phiopt.
11035 2014-06-17 Richard Biener <rguenther@suse.de>
11037 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11038 and allow all blocks to be forwarders.
11040 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11043 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11044 variable 'size'; calculate 'size' right in the front; use
11045 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11046 pcum->aapcs_stack_words.
11048 2014-06-17 Nick Clifton <nickc@redhat.com>
11050 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11051 (umulhi3, mulsidi3, umulsidi3): Likewise.
11053 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11055 PR middle-end/61508
11056 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11057 check for section name.
11059 2014-06-17 Richard Biener <rguenther@suse.de>
11061 * tree-ssa-propagate.c: Include domwalk.h.
11062 (substitute_and_fold): Outline main worker into a domwalker ...
11063 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11064 Schedule stmts we can fully propagate for removal. Remove
11066 (substitute_and_fold): Apply a dominator walk to perform
11067 substitution. Process stmts scheduled for removal here.
11069 2014-06-17 Richard Biener <rguenther@suse.de>
11071 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11072 of PHI node moving.
11074 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11076 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11077 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11078 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11079 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11080 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11082 (get_fpscr) : Likewise.
11084 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11086 PR rtl-optimization/61325
11087 * lra-constraints.c (valid_address_p): Add forward declaration.
11088 (simplify_operand_subreg): Check address validity before and after
11089 alter_reg of memory subreg.
11091 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11093 * config/i386/i386.c (decide_alg): Correctly handle
11094 maximum size of stringop algorithm.
11096 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11098 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11100 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11102 PR rtl-optimization/61522
11103 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11105 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11108 * symtab.c (symtab_node::reset_section): New method.
11109 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11111 * cgraph.h (reset_section): Declare.
11112 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11113 do not consider comdat locals.
11114 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11116 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11117 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11118 reset sections of symbols dragged out of the comdats.
11119 (function_and_variable_visibility): Reset sections of
11122 2014-06-16 Richard Biener <rguenther@suse.de>
11124 PR tree-optimization/61482
11125 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11126 [-INF(OVF), +INF(OVF)] range.
11128 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11130 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11131 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11132 handling 32-bit multiplication.
11134 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
11136 PR middle-end/61430
11137 * lra-lives.c (process_bb_lives): Skip creating copy during
11138 insn scan when src/dest has constrained to same regno.
11140 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11142 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11143 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11145 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11147 * asan.c (check_func): New function.
11148 (maybe_create_ssa_name): Likewise.
11149 (build_check_stmt_with_calls): Likewise.
11150 (use_calls_p): Likewise.
11151 (report_error_func): Change interface.
11152 (build_check_stmt): Allow non-integer lengths; add support
11154 (asan_instrument): Likewise.
11155 (instrument_mem_region_access): Moved code to build_check_stmt.
11156 (instrument_derefs): Likewise.
11157 (instrument_strlen_call): Likewise.
11158 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
11159 * doc/invoke.texi: Describe new parameter.
11160 * params.def: Define new parameter.
11161 * params.h: Likewise.
11162 * sanitizer.def: Describe new builtins.
11164 2014-06-16 Richard Biener <rguenther@suse.de>
11166 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11167 Make all defs available at the end.
11168 (eliminate): If we remove a PHI node schedule cfg-cleanup.
11170 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11173 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
11175 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11178 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
11179 initialization. Replace remaining use of uid.
11181 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11183 * c-family/c-common.c (handle_tls_model_attribute): Use
11184 set_decl_tls_model.
11185 * c-family/c-common.c (handle_tls_model_attribute): Use
11186 set_decl_tls_model.
11187 * cgraph.h (struct varpool_node): Add tls_model.
11188 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
11189 * tree.h (DECL_TLS_MODEL): Update.
11190 (DECL_THREAD_LOCAL_P): Check that variable is static.
11191 (decl_tls_model): Declare.
11192 (set_decl_tls_model): Declare.
11193 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
11194 set symbol prorperties.
11195 (get_emutls_init_templ_addr): Cleanup.
11196 (new_emutls_decl): Update.
11197 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
11198 (lto_input_varpool_node): Likewise.
11199 * lto-streamer-out.c (hash_tree): Likewise.
11200 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11201 not stream DECL_TLS_MODEL.
11202 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
11203 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
11205 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11207 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
11209 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11211 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
11212 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
11214 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
11215 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
11216 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
11217 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
11218 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
11219 (df_get_artificial_defs, df_get_artificial_uses)
11220 (df_single_def, df_single_use): Update accordingly.
11221 (df_refs_chain_dump): Take the first element in a linked list as
11222 parameter, rather than a pointer to an array of pointers.
11223 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
11224 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
11225 (df_chain_create_bb_process_use): Likewise.
11226 (df_md_bb_local_compute_process_def): Likewise.
11227 * fwprop.c (process_defs, process_uses): Likewise.
11228 (register_active_defs, update_uses): Likewise.
11229 (forward_propagate_asm): Update for new df_ref linking.
11230 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
11231 (df_null_ref_rec, df_null_mw_rec): Likewise.
11232 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
11234 (df_scan_free_bb_info): Remove check for null artificial_defs.
11235 (df_install_ref_incremental): Adjust for new df_ref linking.
11236 Use a single-element insertion rather than a full sort.
11237 (df_ref_chain_delete_du_chain): Take the first element
11238 in a linked list as parameter, rather than a pointer to an array of
11240 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
11241 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
11242 (df_insn_info_delete): Remove check for null defs and call to
11243 df_scan_free_mws_vec.
11244 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
11245 null rather than df_null_*_rec.
11246 (df_insn_rescan_debug_internal): Likewise, and update null
11247 checks in the same way. Remove check for null defs.
11248 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
11249 Move a single element rather doing a full sort.
11250 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
11252 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
11253 Initialize df_ref and df_mw_hardreg lists to null rather than
11255 (df_ref_compare): Take df_refs as parameter, transferring the
11256 old interface to...
11257 (df_ref_ptr_compare): ...this new function.
11258 (df_sort_and_compress_refs): Update accordingly.
11259 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
11260 old interface to...
11261 (df_mw_ptr_compare): ...this new function.
11262 (df_sort_and_compress_mws): Update accordingly.
11263 (df_install_refs, df_install_mws): Return a linked list rather than
11264 an array of pointers.
11265 (df_refs_add_to_chains): Assert that old lists are empty rather
11267 (df_insn_refs_verify): Don't handle null defs speciailly.
11268 * web.c (union_match_dups): Update for new df_ref linking.
11270 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11272 * df.h (df_ref_create, df_ref_remove): Delete.
11273 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
11274 (df_ref_remove): Likewise.
11276 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11278 * df.h (df_single_def, df_single_use): New functions.
11279 * ira.c (find_moveable_pseudos): Use them.
11281 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11283 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
11284 * df-problems.c (df_note_bb_compute): Use it.
11285 * regstat.c (regstat_bb_compute_ri): Likewise.
11287 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11289 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
11290 * cse.c (cse_extended_basic_block): Use them.
11291 * dce.c (mark_artificial_use): Likewise.
11292 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
11293 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11294 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
11295 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
11296 (df_simulate_initialize_backwards): Likewise.
11297 (df_simulate_finalize_backwards): Likewise.
11298 (df_simulate_initialize_forwards): Likewise.
11299 (df_md_simulate_artificial_defs_at_top): Likewise.
11300 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11301 * regrename.c (init_rename_info): Likewise.
11302 * regstat.c (regstat_bb_compute_ri): Likewise.
11303 (regstat_bb_compute_calls_crossed): Likewise.
11305 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11307 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
11308 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
11309 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
11310 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
11311 * combine.c (create_log_links): Likewise.
11312 * compare-elim.c (find_flags_uses_in_insn): Likewise.
11313 (try_eliminate_compare): Likewise.
11314 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
11315 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
11316 (remove_reg_equal_equiv_notes_for_defs): Likewise.
11317 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
11318 (word_dce_process_block, dce_process_block): Likewise.
11319 * ddg.c (def_has_ccmode_p): Likewise.
11320 * df-core.c (df_bb_regno_first_def_find): Likewise.
11321 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
11322 * df-problems.c (df_rd_simulate_one_insn): Likewise.
11323 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11324 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
11325 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
11326 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
11327 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
11328 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
11329 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
11330 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
11331 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11332 * fwprop.c (local_ref_killed_between_p): Likewise.
11333 (all_uses_available_at, free_load_extend): Likewise.
11334 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
11335 * hw-doloop.c (scan_loop): Likewise.
11336 * ifcvt.c (dead_or_predicable): Likewise.
11337 * init-regs.c (initialize_uninitialized_regs): Likewise.
11338 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
11339 (process_bb_node_lives): Likewise.
11340 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
11341 (find_moveable_pseudos): Likewise.
11342 * loop-invariant.c (check_dependencies, record_uses): Likewise.
11343 * recog.c (peep2_find_free_register): Likewise.
11344 * ree.c (get_defs): Likewise.
11345 * regstat.c (regstat_bb_compute_ri): Likewise.
11346 (regstat_bb_compute_calls_crossed): Likewise.
11347 * sched-deps.c (find_inc, find_mem): Likewise.
11348 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
11349 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
11350 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11351 (prepare_shrink_wrap): Likewise.
11352 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
11353 * web.c (union_defs, pass_web::execute): Likewise.
11354 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
11355 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
11357 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
11359 * lra-assign.c (assign_by_spills): Add code to assign vector regs
11360 to inheritance pseudos.
11361 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
11363 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
11366 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
11367 (BU_MISC_2): Rename to ...
11368 (BU_LDBL128_2): ... this.
11369 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
11370 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
11371 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
11372 RS6000_BTM_LDBL128.
11373 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
11374 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
11375 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
11376 (unpacktf_1): Likewise.
11377 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
11378 (__builtin_longdouble_dw1): Likewise.
11379 * doc/sourcebuild.texi (longdouble128): Document.
11381 2014-06-13 Jeff Law <law@redhat.com>
11383 PR rtl-optimization/61094
11384 PR rtl-optimization/61446
11385 * ree.c (combine_reaching_defs): Get the mode for the copy from
11386 the extension insn rather than the defining insn.
11388 2014-06-13 Dehao Chen <dehao@google.com>
11390 * dwarf2out.c (add_linkage_name): Emit more linkage name.
11392 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
11394 * doc/install.texi (--enable-linker-plugin-configure-flags)
11395 (--enable-linker-plugin-flags): Document new flags.
11397 2014-06-13 Martin Jambor <mjambor@suse.cz>
11400 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
11401 cache_token if returning early.
11403 2014-06-13 Nick Clifton <nickc@redhat.com>
11405 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
11406 requested alignment is active.
11407 (LABEL_ALIGN): Likewise.
11408 (LOOP_ALIGN): Likewise.
11410 2014-06-13 Richard Biener <rguenther@suse.de>
11412 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11413 Rewrite to propagate the VN result into all uses where
11414 possible and to remove stmts becoming dead because of that.
11415 (eliminate): Generalize stmt removal handling, remove in
11416 reverse dominator order to support proper debug stmt
11417 generation. Update stmts before removing stmts.
11418 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
11420 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11422 PR tree-optimization/61375
11423 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
11424 symbolic number cannot be represented in an uint64_t.
11425 (find_bswap_or_nop_1): Likewise.
11427 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11429 * symtab.c (symtab_node::reset_section): New method.
11430 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11432 * cgraph.h (reset_section): Declare.
11433 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11434 do not consider comdat locals.
11435 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11437 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11438 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11439 reset sections of symbols dragged out of the comdats.
11440 (function_and_variable_visibility): Reset sections of
11443 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11445 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
11446 to use symtab and decl_binds_to_current_def_p
11447 * tree-vectorizer.c (increase_alignment): Increase alignment
11448 of alias target, too.
11450 2014-06-12 Jakub Jelinek <jakub@redhat.com>
11452 PR middle-end/61486
11453 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
11454 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
11455 if outer combined construct is distribute.
11456 (gimplify_omp_for): For OMP_DISTRIBUTE set
11457 gimplify_omp_ctxp->distribute.
11458 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
11459 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
11460 mapping into decl map.
11462 2014-06-12 Jason Merrill <jason@redhat.com>
11464 * common.opt (fabi-version): Change default to 0.
11466 2014-06-12 Jason Merrill <jason@redhat.com>
11468 * toplev.c (process_options): Reject -fabi-version=1.
11470 2014-06-12 Jeff Law <law@redhat.com>
11472 PR tree-optimization/61009
11473 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
11474 value when we stop processing a block due to problematic PHIs.
11476 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
11478 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
11479 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
11480 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
11481 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
11482 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
11483 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
11484 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
11485 are not in the spec.
11487 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
11490 * config/aarch64/aarch64-modes.def: Add V1DFmode.
11491 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
11494 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
11496 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
11498 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
11501 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
11502 loading from address spaces.
11504 2014-06-12 Martin Liska <mliska@suse.cz>
11507 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
11508 statement is reachable.
11510 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
11512 * symtab.c (section_hash): New hash.
11513 (symtab_unregister_node): Clear section before freeing.
11514 (hash_section_hash_entry): New haser.
11515 (eq_sections): New function.
11516 (symtab_node::set_section_for_node): New method.
11517 (set_section_1): Update.
11518 (symtab_node::set_section): Take string instead of tree as parameter.
11519 (symtab_resolve_alias): Update.
11520 * cgraph.h (section_hash_entry_d): New structure.
11521 (section_hash_entry): New typedef.
11522 (cgraph_node): Change comdat_group_ to x_comdat_group,
11523 change section_ to x_section and turn into section_hash_entry;
11524 update accestors; put set_section_for_node offline.
11525 * tree.c (decl_section_name): Turn into string.
11526 (set_decl_section_name): Change parameter to be string.
11527 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
11528 * sdbout.c (sdbout_one_type): Update.
11529 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
11530 * varasm.c (IN_NAMED_SECTION, get_named_section,
11531 resolve_unique_section, hot_function_section, get_named_text_section,
11532 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
11533 make_decl_rtl, default_unique_section): Update.
11534 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
11535 (c6x_elf_unique_section): Update.
11536 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
11537 * config/pa/pa.c (pa_function_section): Update.
11538 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
11539 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
11540 * config/arc/arc.c (arc_in_small_data_p): Update.
11541 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
11542 * config/mcore/mcore.c (mcore_unique_section): Update.
11543 * config/mips/mips.c (mips16_build_function_stub): Update.
11544 (mips16_build_call_stub): Update.
11545 (mips_function_rodata_section): Update.
11546 (mips_in_small_data_p): Update.
11547 * config/score/score.c (score_in_small_data_p): Update.
11548 * config/rx/rx.c (rx_in_small_data): Update.
11549 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
11550 (rs6000_xcoff_asm_named_section): Update.
11551 (rs6000_xcoff_unique_section): Update.
11552 * config/frv/frv.c (frv_string_begins_with): Update.
11553 (frv_in_small_data_p): Update.
11554 * config/v850/v850.c (v850_encode_data_area): Update.
11555 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
11556 (bfin_handle_l1_data_attribute): Update.
11557 (bfin_handle_l2_attribute): Update.
11558 * config/mep/mep.c (mep_unique_section): Update.
11559 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
11561 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
11562 (h8300_handle_tiny_data_attribute): Update.
11563 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
11564 (m32r_in_small_data_p): Update.
11565 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
11566 * config/i386/i386.c (ix86_in_large_data_p): Update.
11567 * config/i386/winnt.c (i386_pe_unique_section): Update.
11568 * config/darwin.c (darwin_function_section): Update.
11569 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
11570 * tree-emutls.c (get_emutls_init_templ_addr): Update.
11571 (new_emutls_decl): Update.
11572 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
11573 input_varpool_node): Update.
11574 (ead_string_cst): Turn to ...
11575 (read_string): ... this one.
11576 * dwarf2out.c (secname_for_decl): Update.
11577 * asan.c (asan_protect_global): Update.
11579 2014-06-11 DJ Delorie <dj@redhat.com>
11581 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
11583 * config/rx/rx.c (rx_option_override): Likewise.
11584 (rx_align_for_label): Likewise.
11586 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
11588 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
11590 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
11593 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11595 * common.md: New file.
11596 * doc/md.texi: Update description of generic, machine-independent
11598 * config/s390/constraints.md (e): Delete.
11599 * Makefile.in (md_file): Include common.md.
11600 * config/m32c/t-m32c (md_file): Likewise.
11601 * genpreds.c (general_mem): New array.
11602 (generic_constraint_letters): Remove constraints now defined by
11604 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
11605 Allow the first character to be '<' or '>' as well.
11606 * genoutput.c (general_mem): New array.
11607 (indep_constraints): Remove constraints now defined by common.md.
11608 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
11609 Remove special handling of 'm'.
11610 * ira-costs.c (record_reg_classes): Remove special handling of
11611 constraints now defined by common.md.
11612 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
11613 * ira-lives.c (single_reg_class): Likewise.
11614 (ira_implicitly_set_insn_hard_regs): Likewise.
11615 * lra-constraints.c (reg_class_from_constraints): Likewise.
11616 (process_alt_operands, process_address, curr_insn_transform): Likewise.
11617 * postreload.c (reload_cse_simplify_operands): Likewise.
11618 * reload.c (push_secondary_reload, scratch_reload_class)
11619 (find_reloads, alternative_allows_const_pool_ref): Likewise.
11620 * reload1.c (maybe_fix_stack_asms): Likewise.
11621 * targhooks.c (default_secondary_reload): Likewise.
11622 * stmt.c (parse_output_constraint): Likewise.
11623 * recog.c (preprocess_constraints): Likewise.
11624 (constrain_operands, peep2_find_free_register): Likewise.
11625 (asm_operand_ok): Likewise, but add a comment saying why 'o'
11626 must be handled specially.
11628 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11630 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
11631 * genpreds.c (have_const_dbl_constraints): Delete.
11632 (add_constraint): Don't set it.
11633 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
11634 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
11635 constraints using the lookup_constraint logic.
11636 * ira-lives.c (single_reg_class): Likewise.
11637 * ira.c (ira_setup_alts): Likewise.
11638 * lra-constraints.c (process_alt_operands): Likewise.
11639 * recog.c (asm_operand_ok, constrain_operands): Likewise.
11640 * reload.c (find_reloads): Likewise.
11642 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11644 * genpreds.c (const_int_start, const_int_end): New variables.
11645 (choose_enum_order): Output CONST_INT constraints before memory
11647 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
11649 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
11650 * ira.c (ira_setup_alts): Likewise.
11651 * lra-constraints.c (process_alt_operands): Likewise.
11652 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
11653 * reload.c (find_reloads): Likewise.
11655 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11657 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
11658 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
11659 * recog.c (preprocess_constraints): Update accordingly.
11661 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11663 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
11664 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
11665 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
11666 * genpreds.c (print_type_tree): New function.
11667 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
11668 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
11669 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
11670 Write out enum constraint_type and get_constraint_type.
11671 * lra-constraints.c (satisfies_memory_constraint_p): Take a
11672 constraint_num rather than a constraint string.
11673 (satisfies_address_constraint_p): Likewise.
11674 (reg_class_from_constraints): Avoid old constraint macros.
11675 (process_alt_operands, process_address_1): Likewise.
11676 (curr_insn_transform): Likewise.
11677 * ira-costs.c (record_reg_classes): Likewise.
11678 (record_operand_costs): Likewise.
11679 * ira-lives.c (single_reg_class): Likewise.
11680 (ira_implicitly_set_insn_hard_regs): Likewise.
11681 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
11682 * postreload.c (reload_cse_simplify_operands): Likewise.
11683 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
11684 (constrain_operands, peep2_find_free_register): Likewise.
11685 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
11686 (find_reloads, alternative_allows_const_pool_ref): Likewise.
11687 * reload1.c (maybe_fix_stack_asms): Likewise.
11688 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
11689 * targhooks.c (default_secondary_reload): Likewise.
11690 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
11691 to EXTRA_CONSTRAINT_STR.
11692 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
11694 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11696 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
11697 (write_constraint_satisfied_p_array): ...this new function.
11698 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
11700 (write_insn_preds_c): Update accordingly.
11702 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11704 * genpreds.c (write_lookup_constraint): Rename to...
11705 (write_lookup_constraint_1): ...this.
11706 (write_lookup_constraint_array): New function.
11707 (write_tm_preds_h): Define lookup_constraint as an inline function
11708 that uses write_lookup_constraint_array where possible.
11709 (write_insn_preds_c): Update for the changes above.
11711 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11713 * doc/md.texi (regclass_for_constraint): Rename to...
11714 (reg_class_for_constraint): ...this.
11715 * genpreds.c (num_constraints, enum_order, register_start)
11716 (register_end, satisfied_start, memory_start, memory_end)
11717 (address_start, address_end): New variables.
11718 (add_constraint): Count the number of constraints.
11719 (choose_enum_order): New function.
11720 (write_enum_constraint_num): Iterate over enum_order.
11721 (write_regclass_for_constraint): Rename to...
11722 (write_reg_class_for_constraint_1): ...this and update output
11724 (write_constraint_satisfied_p): Rename to...
11725 (write_constraint_satisfied_p_1): ...this and update output
11726 accordingly. Do nothing if all extra constraints are register
11728 (write_insn_extra_memory_constraint): Delete.
11729 (write_insn_extra_address_constraint): Delete.
11730 (write_range_function): New function.
11731 (write_tm_preds_h): Define constraint_satisfied_p and
11732 reg_class_for_constraint as inline functions that do a range check
11733 before calling the out-of-line function. Use write_range_function
11734 to implement insn_extra_{register,memory,address}_constraint,
11735 the first of which is new.
11736 (write_insn_preds_c): Update after above changes to write_* functions.
11737 (main): Call choose_enum_order.
11739 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
11741 PR tree-optimization/61306
11742 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
11743 expression instead of its size.
11744 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
11745 false to prevent optimization when the result is unpredictable due to
11746 arithmetic right shift of signed type with highest byte is set.
11747 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
11748 (init_symbolic_number): Likewise.
11749 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
11750 when the result is unpredictable due to sign extension.
11752 2014-06-11 Terry Guo <terry.guo@arm.com>
11754 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
11755 (*thumb1_addsi3): Ditto.
11756 (*thumb_subdi3): Ditto.
11757 (thumb1_subsi3_insn): Ditto.
11758 (*thumb_mulsi3): Ditto.
11759 (*thumb_mulsi3_v6): Ditto.
11760 (*thumb1_andsi3_insn): Ditto.
11761 (thumb1_bicsi3): Ditto.
11762 (*thumb1_iorsi3_insn): Ditto.
11763 (*thumb1_xorsi3_insn): Ditto.
11764 (*thumb1_ashlsi3): Ditto.
11765 (*thumb1_ashrsi3): Ditto.
11766 (*thumb1_lshrsi3): Ditto.
11767 (*thumb1_rotrsi3): Ditto.
11768 (*thumb1_negdi2): Ditto.
11769 (*thumb1_negsi2): Ditto.
11770 (*thumb1_abssi2): Ditto.
11771 (*thumb1_neg_abssi2): Ditto.
11772 (*thumb1_one_cmplsi2): Ditto.
11773 (*thumb1_zero_extendhisi2): Ditto.
11774 (*thumb1_zero_extendqisi2): Ditto.
11775 (*thumb1_zero_extendqisi2_v6): Ditto.
11776 (thumb1_extendhisi2): Ditto.
11777 (thumb1_extendqisi2): Ditto.
11778 (*thumb1_movdi_insn): Ditto.
11779 (*thumb1_movsi_insn): Ditto.
11780 (*thumb1_movhi_insn): Ditto.
11781 (thumb_movhi_clobber): Ditto.
11782 (*thumb1_movqi_insn): Ditto.
11783 (*thumb1_movhf): Ditto.
11784 (*thumb1_movsf_insn): Ditto.
11785 (*thumb_movdf_insn): Ditto.
11786 (movmem12b): Ditto.
11788 (cbranchqi4): Ditto.
11789 (cbranchsi4_insn): Ditto.
11790 (cbranchsi4_scratch): Ditto.
11791 (*negated_cbranchsi4): Ditto.
11792 (*tbit_cbranch): Ditto.
11793 (*tlobits_cbranch): Ditto.
11794 (*tstsi3_cbranch): Ditto.
11795 (*cbranchne_decr1): Ditto.
11796 (*addsi3_cbranch): Ditto.
11797 (*addsi3_cbranch_scratch): Ditto.
11798 (*thumb_cmpdi_zero): Ditto.
11799 (cstoresi_eq0_thumb1): Ditto.
11800 (cstoresi_ne0_thumb1): Ditto.
11801 (*cstoresi_eq0_thumb1_insn): Ditto.
11802 (*cstoresi_ne0_thumb1_insn): Ditto.
11803 (cstoresi_nltu_thumb1): Ditto.
11804 (cstoresi_ltu_thumb1): Ditto.
11805 (thumb1_addsi3_addgeu): Ditto.
11806 (*thumb_jump): Ditto.
11807 (*call_reg_thumb1_v5): Ditto.
11808 (*call_reg_thumb1): Ditto.
11809 (*call_value_reg_thumb1_v5): Ditto.
11810 (*call_value_reg_thumb1): Ditto.
11811 (*call_insn): Ditto.
11812 (*call_value_insn): Ditto.
11813 (thumb1_casesi_internal_pic): Ditto.
11814 (thumb1_casesi_dispatch): Ditto.
11815 (*thumb1_indirect_jump): Ditto.
11816 (prologue_thumb1_interwork): Ditto.
11817 (*epilogue_insns): Ditto.
11818 (consttable_1): Ditto.
11819 (consttable_2): Ditto.
11820 (tablejump): Ditto.
11821 (*thumb1_tablejump): Ditto.
11822 (thumb_eh_return): Ditto.
11823 (define_peephole2): Two of them are thumb1 only and got moved into
11824 new file thumb1.md.
11825 (define_split): Six of them are thumb1 only and got moved into new
11827 * config/arm/thumb1.md: New file comprised of above thumb1 only
11830 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11832 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
11833 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
11835 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
11836 (aarch64_crc_builtin_datum): New struct.
11837 (aarch64_crc_builtin_data): New.
11838 (aarch64_init_crc32_builtins): New function.
11839 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
11840 (aarch64_crc32_expand_builtin): New.
11841 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
11842 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11843 __ARM_FEATURE_CRC32 when appropriate.
11844 (TARGET_CRC32): Define.
11845 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
11846 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
11847 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
11848 (aarch64_<crc_variant>): New pattern.
11849 * config/aarch64/arm_acle.h: New file.
11850 * config/aarch64/iterators.md (CRC): New int iterator.
11851 (crc_variant, crc_mode): New int attributes.
11852 * doc/aarch64-acle-intrinsics.texi: New file.
11853 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
11854 Include aarch64-acle-intrinsics.texi.
11856 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
11858 * tree-vect-data-refs.c (vect_grouped_store_supported): New
11859 check for stores group of length 3.
11860 (vect_permute_store_chain): New permutations for stores group of
11862 * tree-vect-stmts.c (vect_model_store_cost): Change cost
11863 of vec_perm_shuffle for the new permutations.
11865 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
11867 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
11868 table rewriting temporarily on targets not supporting ONE_ONLY.
11870 2014-06-11 Richard Biener <rguenther@suse.de>
11872 PR middle-end/61437
11874 2014-06-04 Richard Biener <rguenther@suse.de>
11876 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
11877 TREE_PUBLIC and DECL_EXTERNAL decls.
11879 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
11881 * varasm.c (set_implicit_section): New function.
11882 (resolve_unique_section): Use it to set implicit section
11884 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
11885 (default_function_section): Likewise.
11886 (decl_binds_to_current_def_p): Constify argument.
11887 * varasm.h (decl_binds_to_current_def_p): Update prototype.
11888 * asan.c (asan_protect_global): Use
11889 symtab_get_node (decl)->implicit_section.
11890 * symtab.c (dump_symtab_base): Dump implicit sections.
11891 (verify_symtab_base): Verify sanity of sectoins and comdats.
11892 (symtab_resolve_alias): Alias share the section of its target.
11893 (set_section_1): New function.
11894 (symtab_node::set_section): Move here, recurse to aliases.
11895 (verify_symtab): Check for duplicated symtab lists.
11896 * tree-core.h (implicit_section_name_p): Remove.
11897 * tree-vect-data-refs.c: Include varasm.h.
11898 (vect_can_force_dr_alignment_p): Fix conditional on when
11899 decl bints to current definition; use
11900 symtab_get_node (decl)->implicit_section.
11901 * cgraph.c (cgraph_make_node_local_1): Fix section set.
11902 * cgraph.h (struct symtab_node): Add implicit_section.
11903 (set_section): Rename to ...
11904 (set_section_for_node): ... this one.
11905 (set_section): Declare.
11906 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
11907 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
11908 input_overwrite_node, input_varpool_node): Stream implicit_section.
11909 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
11910 removal; it will fail in LTO.
11912 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11914 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
11915 Change second alternative type to f_mcr.
11916 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
11917 and 12th alternatives' types to f_mcr and f_mrc.
11918 (*movdi_aarch64): Same for 12th and 13th alternatives.
11919 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
11920 (aarch64_movtilow_tilow): Change type to fmov.
11922 2014-06-10 Jiong Wang <jiong.wang@arm.com>
11924 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
11925 (aarch64_save_or_restore_callee_save_registers): Fix layout.
11927 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11929 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
11931 (aarch64_sqrdmulh_lane<mode>): Likewise.
11932 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
11933 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
11934 (aarch64_sqdmulh_laneq<mode>): New expander.
11935 (aarch64_sqrdmulh_laneq<mode>): Likewise.
11936 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
11937 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
11938 (aarch64_sqdmulh_lane<mode>): New expander.
11939 (aarch64_sqrdmulh_lane<mode>): Likewise.
11940 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
11941 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
11942 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
11943 (aarch64_sqdmlal_laneq<mode>): Likewise.
11944 (aarch64_sqdmlsl_lane<mode>): Likewise.
11945 (aarch64_sqdmlsl_laneq<mode>): Likewise.
11946 (aarch64_sqdmlal2_lane<mode>): Likewise.
11947 (aarch64_sqdmlal2_laneq<mode>): Likewise.
11948 (aarch64_sqdmlsl2_lane<mode>): Likewise.
11949 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11950 (aarch64_sqdmull_lane<mode>): Likewise.
11951 (aarch64_sqdmull_laneq<mode>): Likewise.
11952 (aarch64_sqdmull2_lane<mode>): Likewise.
11953 (aarch64_sqdmull2_laneq<mode>): Likewise.
11955 2014-06-10 Richard Biener <rguenther@suse.de>
11957 PR tree-optimization/61438
11958 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
11959 (eliminate_dom_walker::before_dom_children): Only try to inhibit
11960 insertion of IVs if running PRE.
11961 (eliminate): Adjust.
11962 (pass_pre::execute): Likewise.
11963 (pass_fre::execute): Likewise.
11965 2014-06-10 Richard Biener <rguenther@suse.de>
11967 PR middle-end/61456
11968 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
11969 Do not use the main variant for the type comparison.
11970 (ncr_compar): Likewise.
11971 (nonoverlapping_component_refs_p): Likewise.
11973 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
11975 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
11976 REG_CFA_RESTORE mode.
11978 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
11980 * config/i386/i386.c (expand_vec_perm_pblendv): New.
11981 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
11982 expand_vec_perm_pblendv.
11984 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11986 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
11988 Simplify description of __crc32d and __crc32cd intrinsics.
11989 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
11992 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
11995 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
11996 * config.in: Regenerate.
11997 * configure: Likewise.
11999 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12001 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12003 (intersect_static_var_sets): Remove.
12004 (propagate): Do not prune local statics.
12006 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12009 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12010 Set lastprivate_firstprivate even if omp_private_outer_ref
12011 langhook returns true.
12012 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12013 langhook, call unshare_expr on new_var and call
12014 build_outer_var_ref to get the last argument.
12016 2014-06-10 Marek Polacek <polacek@redhat.com>
12019 * doc/extend.texi: Add cindex for transparent_union.
12021 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12023 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12024 init_symbolic_number ().
12026 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12028 PR middle-end/61141
12029 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12030 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12031 (verify_rtl_sharing): Likewise.
12033 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12036 * tree.c (build_qualified_type): Use a canonical type for
12039 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12041 * config/arm/arm-modes.def: Remove XFmode.
12043 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12046 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12047 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12048 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12049 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12050 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12051 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12052 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12053 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12054 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12056 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12058 * tree-core.h (tree_decl_with_vis): Remove section_name.
12060 2014-06-09 Kito Cheng <kito@0xlab.org>
12062 * ira.c (ira): Don't call init_caller_save if LRA enabled
12063 since LRA use its own infrastructure to handle that.
12065 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12067 * symtab.c (dump_symtab_base): Update dumping.
12068 (symtab_make_decl_local): Clear only DECL_COMDAT.
12069 * tree-vect-data-refs.c (Check that variable is static before
12070 tampering with sections.
12071 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12072 (cgraph_create_virtual_clone): Likewise.
12073 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12074 (decl_section_name, set_decl_section_name): New accessors.
12075 (find_decls_types_r): Do not walk section name
12076 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12077 (decl_comdat_group, decl_comdat_group_id): Constify.
12078 (decl_section_name, set_decl_section_name): Update.
12079 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12080 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12081 (cgraph_make_node_local_1): Clear section and comdat group.
12082 * cgraph.h (set_comdat_group): Sanity check.
12083 (get_section, set_section): New.
12084 * ipa-comdats.c (ipa_comdats): Use get_section.
12085 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12086 * lto-streamer-out.c: Do not follow section names.
12087 * c-family/c-common.c (handle_section_attribute): Update.
12088 * lto-cgraph.c (lto_output_node): Output section.
12089 (lto_output_varpool_node): Likewise.
12090 (read_comdat_group): Rename to ...
12091 (read_identifier): ... this one.
12092 (read_string_cst): New function.
12093 (input_node, input_varpool_node): Input section names.
12094 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12095 (new_emutls_decl): Update.
12096 (secname_for_decl): Check section names only of static vars.
12097 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12098 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12099 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12100 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12101 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12102 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12103 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12104 * config/v850/v850.c (v850_insert_attributes): Likewise.
12105 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12107 (h8300_handle_tiny_data_attribute): Likewise.
12108 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12109 (bfin_handle_l2_attribute): Likewise.
12111 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12113 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12114 remove static initializer.
12116 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12118 * varasm.c (use_blocks_for_decl_p): Check symbol table
12119 instead of alias attribute.
12120 (place_block_symbol): Recurse on aliases.
12122 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12124 * ipa-visibility.c: Include varasm.h
12125 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12127 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12129 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12130 outputting aliases.
12132 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
12134 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12135 from test_insn into GGC space escape via SET_SRC.
12137 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
12139 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12140 call statement, if any.
12141 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12142 statements, if any. Tidy up.
12144 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12147 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12148 iterators, VSX_D that handles 64-bit types, and VSX_LE that
12149 handles swapping the two 64-bit double words on little endian
12150 systems. Include V1TImode and optionally TImode in VSX_LE so that
12151 these types are properly swapped. Change all of the insns and
12152 splits that do the 64-bit swaps to use VSX_LE.
12153 (vsx_le_perm_load_<mode>): Likewise.
12154 (vsx_le_perm_store_<mode>): Likewise.
12155 (splitters for little endian memory operations): Likewise.
12156 (vsx_xxpermdi2_le_<mode>): Likewise.
12157 (vsx_lxvd2x2_le_<mode>): Likewise.
12158 (vsx_stxvd2x2_le_<mode>): Likewise.
12160 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
12163 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
12164 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
12165 and corresponding splitters. Zero extend general register
12166 or memory input operand to XMM temporary. Enable for
12167 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
12168 (floatunssi<mode>2): Update expander predicate.
12170 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
12172 PR rtl-optimization/61325
12173 * lra-constraints.c (process_address_1): Check scale equal to one
12174 to prevent transformation: base + scale * index => base + new_reg.
12176 2014-06-06 Richard Biener <rguenther@suse.de>
12178 PR tree-optimization/59299
12179 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
12181 (nearest_common_dominator_of_uses): Likewise.
12182 (statement_sink_location): Adjust. Support sinking loads.
12184 2014-06-06 Martin Jambor <mjambor@suse.cz>
12186 * ipa-prop.c (get_place_in_agg_contents_list): New function.
12187 (build_agg_jump_func_from_list): Likewise.
12188 (determine_known_aggregate_parts): Renamed to
12189 determine_locally_known_aggregate_parts. Moved some functionality
12190 to the two functions above, removed bound checks.
12192 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
12194 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
12195 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
12196 (aarch64_progress_pointer): Likewise.
12197 (aarch64_copy_one_part_and_move_pointers): Likewise.
12198 (aarch64_expand_movmen): Likewise.
12199 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
12200 * config/aarch64/aarch64.md (movmem<mode>): New.
12202 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
12204 * targhooks.c (default_add_stmt_cost): Call target specific
12205 hook instead of default one.
12207 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
12209 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
12210 endianness instead of host endianness.
12211 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
12214 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12217 * function.c (instantiate_decls): Process the saved static chain.
12218 (expand_function_start): If not optimizing, save the static chain
12220 * tree-nested.c (convert_all_function_calls): Always create the static
12221 chain for nested functions if not optimizing.
12223 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12225 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
12227 2014-06-06 Richard Biener <rguenther@suse.de>
12229 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
12230 (construct_init_block): Likewise.
12231 (construct_exit_block): Likewise.
12232 (pass_expand::execute): Likewise.
12233 * graphite.c (graphite_transforms): Replace check for current_loops
12234 with a check for > 1 loops.
12235 (pass_graphite_transforms::execute): Adjust.
12236 * ipa-split.c (split_function): Remove check for current_loops.
12237 * omp-low.c (expand_parallel_call): Likewise.
12238 (expand_omp_for_init_counts): Likewise.
12239 (extract_omp_for_update_vars): Likewise.
12240 (expand_omp_for_generic): Likewise.
12241 (expand_omp_sections): Likewise.
12242 (expand_omp_target): Likewise.
12243 * tracer.c (tail_duplicate): Likewise.
12244 (pass_tracer::execute): Likewise.
12245 * trans-mem.c (expand_transaction): Likewise.
12246 * tree-complex.c (expand_complex_div_wide): Likewise.
12247 * tree-eh.c (lower_resx): Likewise.
12248 (cleanup_empty_eh_merge_phis): Likewise.
12249 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
12250 current_loops with a check for > 1 loops.
12251 (pass_predcom::execute): Adjust.
12252 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
12253 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
12254 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
12255 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
12256 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12257 * tree-switch-conversion.c (process_switch): Likewise.
12258 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
12259 * tree-vrp.c (vrp_visit_phi_node): Likewise.
12260 (execute_vrp): Likewise.
12261 * ubsan.c (ubsan_expand_null_ifn): Likewise.
12263 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12265 * rtl.h (insn_location): Declare.
12266 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
12267 with UNKNOWN_LOCATION.
12268 * emit-rtl.c (insn_location): New function.
12269 * final.c (notice_source_line): Check that the instruction has a
12270 location before retrieving it and use insn_location.
12271 * modulo-sched.c (loop_single_full_bb_p): Likewise.
12272 * print-rtl.c (print_rtx): Likewise.
12274 2014-06-06 Richard Biener <rguenther@suse.de>
12276 * passes.def: Move 2nd VRP pass before phi-only-cprop.
12278 2014-06-06 Christian Bruel <christian.bruel@st.com>
12280 PR tree-optimization/43934
12281 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
12284 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
12286 * ira-lives.c (single_reg_class): Add missing break. Explicitly
12287 return NO_REGS for extra address and memory constraints. Handle
12288 operands that match (or are equivalent to something that matches)
12289 extra constant constraints. Ignore other non-register operands.
12291 2014-06-06 Alan Modra <amodra@gmail.com>
12294 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
12295 * doc/tm.texi: Regenerate.
12296 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
12297 Use throughout in place of REG_PARM_STACK_SPACE.
12298 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
12299 "incoming" param. Pass to rs6000_function_parms_need_stack.
12300 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
12301 prototype_p when incoming. Use function decl when incoming
12302 to handle K&R style functions.
12303 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
12304 (INCOMING_REG_PARM_STACK_SPACE): Define.
12306 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12309 * cfgexpand.c (expand_debug_expr): Use address space of nested
12310 TREE_TYPE for ADDR_EXPR and MEM_REF.
12312 2014-06-05 Jeff Law <law@redhat.com>
12314 PR tree-optimization/61289
12315 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
12316 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
12317 looking for those which match LHS. All callers changed.
12318 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
12319 parameters and code which manipulated them. All callers changed.
12320 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
12321 and DST_MAP parameters. Simplify invalidation code by just calling
12322 invalidate_equivalences. All callers changed.
12323 (thread_across_edge): Simplify now that we don't need to maintain
12324 the map of equivalences to invalidate.
12326 2014-06-05 Kai Tietz <ktietz@redhat.com>
12327 Richard Henderson <rth@redhat.com>
12330 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
12331 checking for !TARGET_X32.
12332 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
12333 (sibcall_intern): New define_insn, plus required peepholes.
12334 (sibcall_pop_intern): Likewise.
12335 (sibcall_value_intern): Likewise.
12336 (sibcall_value_pop_intern): Likewise.
12338 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
12340 * tree-inline.c (tree_function_versioning): Check DF info existence
12341 before accessing it.
12343 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12345 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
12347 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
12348 aarch64_frame hard_fp_offset and frame_size.
12349 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
12350 frame_size; remove original_frame_size.
12351 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
12352 (aarch64_initial_elimination_offset): Remove frame_size and
12353 offset. Use aarch64_frame frame_size.
12355 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12356 Jiong Wang <jiong.wang@arm.com>
12357 Renlin <renlin.li@arm.com>
12359 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
12360 initialization of R30 offset. Update offset. Iterate core
12361 regisers upto X30. Remove X29, X30 specific code.
12363 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12364 Jiong Wang <jiong.wang@arm.com>
12366 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
12367 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
12368 (aarch64_register_saved_on_entry): Adjust test.
12370 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12372 * config/aarch64/aarch64.h (machine_function): Move
12373 saved_varargs_size from here...
12374 (aarch64_frame): ... to here.
12376 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12377 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
12378 (aarch64_initial_elimination_offset)
12379 (aarch64_setup_incoming_varargs): Adjust location of
12380 saved_varargs_size.
12382 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12384 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
12387 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
12388 Prachi Godbole <Prachi.Godbole@imgtec.com>
12390 * config/mips/mips-cpus.def: Add definition for p5600. Updated
12391 mips32r5 entry to use PROCESSOR_P5600.
12392 * config/mips/mips-tables.opt: Regenerate.
12393 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
12394 * config/mips/mips.c (mips_fmadd_bypass): New function.
12395 (mips_rtx_cost_data): Add costs for p5600.
12396 (mips_issue_rate): Add support for p5600.
12397 (mips_multipass_dfa_lookahead): Likewise.
12398 * config/mips/mips.h (TUNE_P5600): New define.
12399 (TUNE_MACC_CHAINS): Add TUNE_P5600.
12400 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
12401 * config/mips/mips.md: Include p5600.md.
12402 (processor): Add p5600.
12403 * config/mips/p5600.md: New file.
12405 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
12407 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
12408 * config/i386/predicates.md (palignr_operand): New.
12409 Indicates if permutation is suitable for palignr instruction.
12411 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
12413 PR tree-optimization/61319
12414 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
12415 stmt belongs to loop.
12417 2014-06-05 Richard Biener <rguenther@suse.de>
12419 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
12420 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
12421 (lookup_tmp_var): Adjust.
12422 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
12424 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12426 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
12428 2014-06-05 Marek Polacek <polacek@redhat.com>
12431 * doc/invoke.texi: Document -Wlogical-not-parentheses.
12433 2014-06-04 Tom de Vries <tom@codesourcery.com>
12435 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
12438 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
12440 PR tree-optimization/61385
12441 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
12443 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
12445 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
12446 changed to use fatal_error.
12447 (main): Ensure lto_wrapper_cleanup is run atexit.
12449 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12451 * lra-constraints.c (valid_address_p): Move earlier in file.
12452 (address_eliminator): New structure.
12453 (satisfies_memory_constraint_p): New function.
12454 (satisfies_address_constraint_p): Likewise.
12455 (process_alt_operands, process_address, curr_insn_transform): Use them.
12457 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12459 * lra-int.h (lra_static_insn_data): Make operand_alternative a
12461 (target_lra_int, default_target_lra_int, this_target_lra_int)
12462 (op_alt_data): Delete.
12463 * lra.h (lra_init): Delete.
12464 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
12465 (init_insn_code_data_once): Remove op_alt_data handling.
12466 (finish_insn_code_data_once): Likewise.
12467 (init_op_alt_data): Delete.
12468 (get_static_insn_data): Initialize operand_alternative to null.
12469 (free_insn_recog_data): Cast operand_alternative before freeing it.
12470 (setup_operand_alternative): Take the operand_alternative as
12471 parameter and assume it isn't already cached in the static
12473 (lra_set_insn_recog_data): Update accordingly.
12474 (lra_init): Delete.
12475 * ira.c (ira_init): Don't call lra_init.
12476 * target-globals.h (this_target_lra_int): Declare.
12477 (target_globals): Remove lra_int.
12478 (restore_target_globals): Update accordingly.
12479 * target-globals.c: Don't include lra-int.h.
12480 (default_target_globals, save_target_globals): Remove lra_int.
12482 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12484 * recog.h (operand_alternative): Convert reg_class, reject,
12485 matched and matches into bitfields.
12486 (preprocess_constraints): New overload.
12487 (preprocess_insn_constraints): New function.
12488 (preprocess_constraints): Take the insn as parameter.
12489 (recog_op_alt): Change into a pointer.
12490 (target_recog): Add x_op_alt.
12491 * recog.c (asm_op_alt): New variable.
12492 (recog_op_alt): Change into a pointer.
12493 (preprocess_constraints): New overload, replacing the old function
12494 definition with one that doesn't use global state.
12495 (preprocess_insn_constraints): New function.
12496 (preprocess_constraints): Use them. Take the insn as parameter.
12497 Use asm_op_alt for asms.
12498 (recog_init): Free existing x_op_alt entries.
12499 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
12501 (make_early_clobber_and_input_conflicts): Likewise.
12502 (process_bb_node_lives): Pass the insn to process_constraints.
12503 * reg-stack.c (check_asm_stack_operands): Likewise.
12504 (subst_asm_stack_regs): Likewise.
12505 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
12506 * regrename.c (build_def_use): Likewise.
12507 * sched-deps.c (sched_analyze_insn): Likewise.
12508 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
12509 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
12510 (note_invalid_constants): Likewise.
12511 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12512 (ix86_legitimate_combined_insn): Make operand_alternative pointer
12515 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12517 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
12518 * ira-lives.c (check_and_make_def_conflict): Check for disabled
12520 (make_early_clobber_and_input_conflicts): Likewise.
12521 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12523 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12525 * recog.h (alternative_class): New function.
12526 (which_op_alt): Return a const recog_op_alt.
12527 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
12528 (subst_asm_stack_regs): Likewise.
12529 * config/arm/arm.c (note_invalid_constants): Likewise.
12530 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
12531 the operand_alternative; use alternative class instead.
12532 * sel-sched.c (get_reg_class): Likewise.
12533 * regrename.c (build_def_use): Likewise.
12534 (hide_operands, restore_operands, record_out_operands): Update type
12537 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12539 * recog.h (recog_op_alt): Convert to a flat array.
12540 (which_op_alt): New function.
12541 * recog.c (recog_op_alt): Convert to a flat array.
12542 (preprocess_constraints): Update accordingly, grouping all
12543 operands of the same alternative together, rather than the
12545 * ira-lives.c (check_and_make_def_conflict): Likewise.
12546 (make_early_clobber_and_input_conflicts): Likewise.
12547 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12548 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
12549 (subst_asm_stack_regs): Likewise.
12550 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
12551 * regrename.c (hide_operands, record_out_operands): Likewise.
12552 (build_def_use): Likewise.
12553 * sel-sched.c (get_reg_class): Likewise.
12554 * config/arm/arm.c (note_invalid_constants): Likewise.
12556 2014-06-04 Jason Merrill <jason@redhat.com>
12560 * gimplify.c (gimplify_arg): Non-static.
12561 * gimplify.h: Declare it.
12563 2014-06-04 Richard Biener <rguenther@suse.de>
12565 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12566 TREE_PUBLIC and DECL_EXTERNAL decls.
12568 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
12570 * regcprop.c (copyprop_hardreg_forward_1): Account for
12571 HARD_REGNO_CALL_PART_CLOBBERED.
12573 2014-06-04 Richard Biener <rguenther@suse.de>
12575 * configure.ac: Check whether the underlying type of int64_t
12576 is long or long long.
12577 * configure: Regenerate.
12578 * config.in: Likewise.
12579 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
12580 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
12582 2014-06-04 Richard Biener <rguenther@suse.de>
12584 PR tree-optimization/60098
12585 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
12587 (dse_optimize_stmt): Simplify, now that we found a kill
12590 2014-06-04 Richard Biener <rguenther@suse.de>
12592 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
12593 of accesses with non-invariant address.
12595 2014-06-04 Martin Liska <mliska@suse.cz>
12597 * cgraph.h (cgraph_make_wrapper): New function introduced.
12598 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
12599 * ipa-inline.h (inline_analyze_function): The function is global.
12600 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
12602 2014-06-04 Martin Liska <mliska@suse.cz>
12604 * tree.h (private_lookup_attribute_starting): New function.
12605 (lookup_attribute_starting): Likewise.
12606 * tree.c (private_lookup_attribute_starting): Likewise.
12608 2014-06-04 Martin Liska <mliska@suse.cz>
12610 * cgraph.h (expand_thunk): New argument added.
12611 (address_taken_from_non_vtable_p): New global function.
12612 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
12613 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
12614 * cgraphunit.c (analyze_function): Likewise.
12615 (assemble_thunks_and_aliases): Argument added to call.
12616 (expand_thunk): New argument forces to produce GIMPLE thunk.
12618 2014-06-04 Martin Liska <mliska@suse.cz>
12620 * coverage.h (coverage_compute_cfg_checksum): Argument added.
12621 * coverage.c (coverage_compute_cfg_checksum): Likewise.
12622 * profile.c (branch_prob): Likewise.
12624 2014-06-04 Martin Jambor <mjambor@suse.cz>
12627 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
12628 handler for switch on an ipa_ref_use enum.
12629 * ipa-reference.c (analyze_function): Likewise.
12631 2014-06-04 Kai Tietz <ktietz@redhat.com>
12633 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
12634 from old call-instruction.
12636 2014-06-04 Bin Cheng <bin.cheng@arm.com>
12638 * config/aarch64/aarch64.c (aarch64_classify_address)
12639 (aarch64_legitimize_reload_address): Support full addressing modes
12641 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
12642 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
12644 2014-06-03 Andrew Pinski <apinski@cavium.com>
12646 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
12649 2014-06-03 Andrew Pinski <apinski@cavium.com>
12651 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
12652 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
12654 2014-06-03 Kai Tietz <ktietz@redhat.com>
12656 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
12659 2014-06-03 Dehao Chen <dehao@google.com>
12661 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
12664 2014-06-03 Marek Polacek <polacek@redhat.com>
12667 * doc/invoke.texi: Document -Wswitch-bool.
12668 * function.c (stack_protect_epilogue): Cast controlling expression of
12670 * gengtype.c (walk_type): Generate switch expression with its
12671 controlling expression cast to int.
12673 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
12675 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
12677 * config/avr/avr-tables.opt: Regenerate.
12678 * config/avr/t-multilib: Regenerate.
12679 * doc/avr-mmcu.texi: Regenerate.
12681 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
12682 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12684 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
12685 (ata6617c, ata664251): Add new avr35 devices.
12686 (ata6612c): Add new avr4 device.
12687 (ata6613c, ata6614q): Add new avr5 devices.
12688 * config/avr/avr-tables.opt: Regenerate.
12689 * config/avr/t-multilib: Regenerate.
12690 * doc/avr-mmcu.texi: Regenerate.
12692 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12694 * gcc/config/aarch64/aarch64-builtins.c
12695 (aarch64_types_binop_ssu_qualifiers): New static data.
12696 (TYPES_BINOP_SSU): Define.
12697 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
12698 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
12699 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
12700 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
12701 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
12702 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
12703 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
12704 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
12705 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
12706 suffix to builtin function name, remove cast.
12707 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
12708 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
12709 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
12711 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12713 * gcc/config/aarch64/aarch64-builtins.c
12714 (aarch64_types_binop_uus_qualifiers,
12715 aarch64_types_shift_to_unsigned_qualifiers,
12716 aarch64_types_unsigned_shiftacc_qualifiers): Define.
12717 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
12718 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
12719 sqshlu_n, uqshl_n): Update qualifiers.
12720 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
12721 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
12722 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
12723 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
12724 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
12725 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
12726 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
12727 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
12728 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
12729 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
12730 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
12731 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
12732 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
12733 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
12734 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
12735 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
12736 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
12737 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
12738 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
12739 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
12740 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
12741 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
12742 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
12743 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
12744 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
12745 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
12746 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
12748 2014-06-03 Teresa Johnson <tejohnson@google.com>
12750 * tree-sra.c (modify_function): Record caller nodes after rebuild.
12752 2014-06-02 Jason Merrill <jason@redhat.com>
12755 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
12757 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12759 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
12762 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12764 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
12766 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
12767 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
12768 * config/aarch64/iterators.md (REVERSE): New iterator.
12769 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
12770 (rev_op): New int_attribute.
12771 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
12772 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
12773 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
12774 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
12775 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
12776 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
12777 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
12778 Replace temporary __asm__ with __builtin_shuffle.
12780 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
12782 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
12784 * config/mips/mips-tables.opt: Regenerate.
12785 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
12786 to use mips_isa_rev rather than ISA_MIPS32R2.
12787 * config/mips/mips.h (ISA_MIPS32R3): New define.
12788 (ISA_MIPS32R5): New define.
12789 (ISA_MIPS64R3): New define.
12790 (ISA_MIPS64R5): New define.
12791 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
12792 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
12793 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
12795 (MIPS_ISA_SYNCI_SPEC): Likewise.
12796 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
12797 (LINK_SPEC): Added mips32r3 and mips32r5.
12798 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
12799 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
12800 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
12801 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
12802 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
12803 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
12804 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
12806 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
12808 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
12810 * config/mips/mips.opt (mxpa): New option.
12811 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
12814 2014-06-03 Martin Jambor <mjambor@suse.cz>
12817 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
12820 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
12822 PR tree-optimization/61328
12823 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
12824 initialization from find_bswap_or_nop_1.
12825 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
12826 in source_expr2 before using the size value the function sets. Also
12827 make use of init_symbolic_number () in both the old place and
12828 find_bswap_or_nop_load () to avoid reading uninitialized memory when
12829 doing recursion in the GIMPLE_BINARY_RHS case.
12831 2014-06-03 Richard Biener <rguenther@suse.de>
12833 PR tree-optimization/61383
12834 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
12837 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
12839 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
12840 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
12841 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
12842 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
12844 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
12845 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
12846 * system.h: ...here and make it unconditional.
12847 * target.def (conditional_register_usage): Mention
12848 define_register_constraint instead of old-style constraint macros.
12849 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
12850 * doc/tm.texi: Regenerate.
12851 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
12852 protected by !USE_MD_CONSTRAINTS.
12853 * config/frv/frv.md: Remove quote from old version of documentation.
12854 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
12855 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
12856 CONST_DOUBLE_OK_FOR_LETTER.
12857 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
12859 2014-06-02 Andrew Pinski <apinski@cavium.com>
12861 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
12862 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
12863 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
12864 file whose name depends on -mabi= and -mbig-endian.
12865 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
12866 Handle LP64 better and handle ilp32 too.
12867 (MULTILIB_OPTIONS): Delete.
12868 (MULTILIB_DIRNAMES): Delete.
12870 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
12872 * expr.h: Remove prototypes of functions defined in builtins.c.
12873 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
12874 Remove prototypes of functions defined in builtins.c.
12875 * builtins.h: Update prototype list to include all exported functions.
12876 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
12877 no_c99_libc_has_function): Move to targhooks.c
12878 (build_string_literal, build_call_expr_loc_array,
12879 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
12881 (expand_builtin_object_size, fold_builtin_object_size): Make static.
12882 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
12883 no_c99_libc_has_function): Relocate from builtins.c.
12884 * tree.c: Include builtins.h.
12885 (build_call_expr_loc_array, build_call_expr_loc_vec,
12886 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
12888 * fold-const.h (fold_fma): Move prototype to builtins.h.
12889 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
12890 * asan.c: Include builtins.h.
12891 * cfgexpand.c: Likewise.
12892 * convert.c: Likewise.
12893 * emit-rtl.c: Likewise.
12894 * except.c: Likewise.
12895 * expr.c: Likewise.
12896 * fold-const.c: Likewise.
12897 * gimple-fold.c: Likewise.
12898 * gimple-ssa-strength-reduction.c: Likewise.
12899 * gimplify.c: Likewise.
12900 * ipa-inline.c: Likewise.
12901 * ipa-prop.c: Likewise.
12902 * lto-streamer-out.c: Likewise.
12903 * stmt.c: Likewise.
12904 * tree-inline.c: Likewise.
12905 * tree-object-size.c: Likewise.
12906 * tree-sra.c: Likewise.
12907 * tree-ssa-ccp.c: Likewise.
12908 * tree-ssa-forwprop.c: Likewise.
12909 * tree-ssa-loop-ivcanon.c: Likewise.
12910 * tree-ssa-loop-ivopts.c: Likewise.
12911 * tree-ssa-math-opts.c: Likewise.
12912 * tree-ssa-reassoc.c: Likewise.
12913 * tree-ssa-threadedge.c: Likewise.
12914 * tree-streamer-in.c: Likewise.
12915 * tree-vect-data-refs.c: Likewise.
12916 * tree-vect-patterns.c: Likewise.
12917 * tree-vect-stmts.c: Likewise.
12918 * config/aarch64/aarch64.c: Likewise.
12919 * config/alpha/alpha.c: Likewise.
12920 * config/arc/arc.c: Likewise.
12921 * config/arm/arm.c: Likewise.
12922 * config/avr/avr.c: Likewise.
12923 * config/bfin/bfin.c: Likewise.
12924 * config/c6x/c6x.c: Likewise.
12925 * config/cr16/cr16.c: Likewise.
12926 * config/cris/cris.c: Likewise.
12927 * config/epiphany/epiphany.c: Likewise.
12928 * config/fr30/fr30.c: Likewise.
12929 * config/frv/frv.c: Likewise.
12930 * config/h8300/h8300.c: Likewise.
12931 * config/i386/i386.c: Likewise.
12932 * config/i386/winnt.c: Likewise.
12933 * config/ia64/ia64.c: Likewise.
12934 * config/iq2000/iq2000.c: Likewise.
12935 * config/lm32/lm32.c: Likewise.
12936 * config/m32c/m32c.c: Likewise.
12937 * config/m32r/m32r.c: Likewise.
12938 * config/m68k/m68k.c: Likewise.
12939 * config/mcore/mcore.c: Likewise.
12940 * config/mep/mep.c: Likewise.
12941 * config/microblaze/microblaze.c: Likewise.
12942 * config/mips/mips.c: Likewise.
12943 * config/mmix/mmix.c: Likewise.
12944 * config/mn10300/mn10300.c: Likewise.
12945 * config/moxie/moxie.c: Likewise.
12946 * config/msp430/msp430.c: Likewise.
12947 * config/nds32/nds32.c: Likewise.
12948 * config/pa/pa.c: Likewise.
12949 * config/pdp11/pdp11.c: Likewise.
12950 * config/picochip/picochip.c: Likewise.
12951 * config/rl78/rl78.c: Likewise.
12952 * config/rs6000/rs6000.c: Likewise.
12953 * config/rx/rx.c: Likewise.
12954 * config/s390/s390.c: Likewise.
12955 * config/score/score.c: Likewise.
12956 * config/sh/sh.c: Likewise.
12957 * config/sparc/sparc.c: Likewise.
12958 * config/spu/spu.c: Likewise.
12959 * config/stormy16/stormy16.c: Likewise.
12960 * config/tilegx/tilegx.c: Likewise.
12961 * config/tilepro/tilepro.c: Likewise.
12962 * config/v850/v850.c: Likewise.
12963 * config/vax/vax.c: Likewise.
12964 * config/xtensa/xtensa.c: Likewise.
12966 2014-06-02 Jeff Law <law@redhat.com>
12968 PR rtl-optimization/61094
12969 * ree.c (combine_reaching_defs): Do not reextend an insn if it
12970 was marked as do_no_reextend. If a copy is needed to eliminate
12971 an extension, then mark it as do_not_reextend.
12973 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
12975 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
12977 2014-06-02 Richard Henderson <rth@redhat.com>
12980 * config/alpha/alpha.c (print_operand_address): Allow symbolic
12981 addresses inside asms. Use output_operand_lossage instead of
12984 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
12987 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
12988 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
12990 2014-06-02 Tom de Vries <tom@codesourcery.com>
12992 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
12993 case that x has VOIDmode.
12995 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
12997 * varasm.c (copy_constant): Delete function.
12998 (build_constant_desc): Don't call it.
13000 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13003 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13004 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13005 with immediate_operand.
13007 2014-06-02 Andreas Schwab <schwab@suse.de>
13009 * config/ia64/ia64.c
13010 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13011 pending_data_specs first.
13013 2014-06-02 Richard Biener <rguenther@suse.de>
13015 PR tree-optimization/61378
13016 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13017 valueized_anything.
13019 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13021 * config/i386/constraints.md (Bw): Rename from 'w'.
13022 (Bz): Rename from 'z'.
13023 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13025 2014-06-01 Kai Tietz <ktietz@redhat.com>
13028 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13029 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13030 instead of m constraint.
13032 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13034 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13035 a separate alternative where the scratch operand 2 is marked as
13038 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13040 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13041 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13042 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13043 and __builtins_arm_get_fpscr.
13044 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13045 __builtins_arm_get_fpscr.
13046 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13047 __builtins_arm_ldfpscr.
13048 (arm_atomic_assign_expand_fenv): New function.
13049 * config/arm/vfp.md (set_fpscr): New pattern.
13050 (get_fpscr) : Likewise.
13051 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13053 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13054 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13056 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13058 * asan.c (report_error_func): Add SLOW_P argument, use
13059 BUILT_IN_ASAN_*_N if set.
13060 (build_check_stmt): Likewise.
13061 (instrument_derefs): If T has insufficient alignment,
13062 force same handling as for odd sizes.
13064 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13065 BUILT_IN_ASAN_REPORT_STORE_N): New.
13066 * asan.c (struct asan_mem_ref): Change access_size type to
13068 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13069 update_mem_ref_hash_table): Likewise.
13070 (asan_mem_ref_hasher::hash): Hash in a HWI.
13071 (report_error_func): Change size_in_bytes argument to HWI.
13072 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13074 (build_shadow_mem_access): New function.
13075 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13076 Handle size_in_bytes not power of two or larger than 16.
13077 (instrument_derefs): Don't give up if size_in_bytes is not
13078 power of two or is larger than 16.
13080 2014-05-30 Kai Tietz <ktietz@redhat.com>
13083 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13084 for sibling-tail-calls.
13085 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13087 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13088 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13090 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13092 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13093 * config/avr/avr-tables.opt: Regenerate.
13094 * config/avr/t-multilib: Regenerate.
13095 * doc/avr-mmcu.texi: Regenerate.
13097 2014-05-30 Ian Lance Taylor <iant@google.com>
13099 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13102 2014-05-30 Tom de Vries <tom@codesourcery.com>
13104 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13107 2014-05-30 Tom de Vries <tom@codesourcery.com>
13109 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13110 * lra.c (initialize_lra_reg_info_element): Add init of
13111 actual_call_used_reg_set field.
13112 (lra): Call lra_create_live_ranges before lra_inheritance for
13114 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13116 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13117 instead of call_used_reg_set for -fuse-caller-save.
13118 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13120 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13122 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13124 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13126 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13128 * ira.c (ira_get_dup_out_num): Check for output operands at
13129 the start of the loop. Handle cases where an included alternative
13130 follows an excluded one.
13132 2014-05-29 Mike Stump <mikestump@comcast.net>
13135 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13136 post ld passes when lto is used.
13138 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
13140 PR rtl-optimization/61325
13141 * lra-constraints.c (process_address): Rename to process_address_1.
13142 (process_address): New function.
13144 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
13146 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13147 TYPES_BINOPV): New static data.
13148 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13150 * config/aarch64/aarch64-simd.md (aarch64_ext,
13151 aarch64_im_lane_boundsi): New patterns.
13152 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13154 (aarch64_evpc_ext): New function.
13156 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
13158 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
13159 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
13160 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
13161 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
13162 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
13164 2014-05-29 Tom de Vries <tom@codesourcery.com>
13166 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
13168 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
13169 Richard Sandiford <rdsandiford@googlemail.com>
13171 * arm/iterators.md (shiftable_ops): New code iterator.
13172 (t2_binop0, arith_shift_insn): New code attributes.
13173 * arm/predicates.md (shift_nomul_operator): New predicate.
13174 * arm/arm.md (insn_enabled): Delete.
13175 (enabled): Remove insn_enabled test.
13176 (*arith_shiftsi): Delete. Replace with ...
13177 (*<arith_shift_insn>_multsi): ... new pattern.
13178 (*<arith_shift_insn>_shiftsi): ... new pattern.
13179 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
13181 2014-05-29 Radovan Obradovic <robradovic@mips.com>
13182 Tom de Vries <tom@codesourcery.com>
13184 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
13185 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
13187 (mips_split_call): Use POST_CALL_TMP_REG.
13188 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
13190 2014-05-29 Tom de Vries <tom@codesourcery.com>
13192 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
13193 with #ifdef STACK_REGS.
13195 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
13197 * varasm.c (get_variable_section): Walk aliases.
13198 (place_block_symbol): Walk aliases.
13200 2014-05-28 Tom de Vries <tom@codesourcery.com>
13203 2014-05-28 Tom de Vries <tom@codesourcery.com>
13205 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13206 * lra.c (initialize_lra_reg_info_element): Add init of
13207 actual_call_used_reg_set field.
13208 (lra): Call lra_create_live_ranges before lra_inheritance for
13210 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13212 * lra-constraints.c (need_for_call_save_p): Use
13213 actual_call_used_reg_set instead of call_used_reg_set for
13215 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13217 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13219 * doc/md.texi: Document that the % constraint character must
13220 be at the beginning of the string.
13221 * genoutput.c (validate_insn_alternatives): Check that '=',
13222 '+' and '%' only appear at the beginning of a constraint.
13223 * ira.c (commutative_constraint_p): Delete.
13224 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
13225 at the start of the string.
13226 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
13228 * config/arm/neon.md (bicdi3_neon): Likewise.
13229 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
13230 (slt_si, sltu_si): Likewise.
13231 * config/vax/vax.md (sbcdi3): Likewise.
13232 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
13233 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
13234 (mul64): Move '%' to beginning of constraint.
13235 * config/arm/arm.md (*xordi3_insn): Likewise.
13236 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
13237 (xorsi3): Likewise.
13239 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13241 * doc/md.texi: Document the restrictions on the "enabled" attribute.
13243 2014-05-28 Jason Merrill <jason@redhat.com>
13246 * cgraph.h (symtab_node::get_comdat_group_id): New.
13247 * cgraphunit.c (analyze_functions): Call it.
13248 * symtab.c (dump_symtab_node): Likewise.
13249 * tree.c (decl_comdat_group_id): New.
13250 * tree.h: Declare it.
13251 * lto-streamer-out.c (write_symbol): Use it.
13252 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
13254 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13256 PR bootstrap/PR61146
13257 * wide-int.cc: Do not include longlong.h when compiling with clang.
13259 2014-05-28 Richard Biener <rguenther@suse.de>
13261 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
13262 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
13263 (vrp_visit_assignment_or_call): Print less vertical space.
13264 (vrp_visit_stmt): Likewise.
13265 (vrp_visit_phi_node): Likewise. For a PHI argument with
13266 VR_VARYING range consider recording it as copy.
13268 2014-05-28 Richard Biener <rguenther@suse.de>
13271 2014-05-28 Richard Biener <rguenther@suse.de>
13273 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13275 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13277 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
13278 sufficiently aligned and an offset is used at the same time.
13279 (expand_expr_real_1): Likewise.
13281 2014-05-28 Richard Biener <rguenther@suse.de>
13283 PR middle-end/61045
13284 * fold-const.c (fold_comparison): When folding
13285 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
13286 the sign of the remaining constant operand stays the same.
13288 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
13290 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13291 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
13292 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
13294 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
13295 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
13296 (m32bit-doubles) Likewise.
13297 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
13298 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
13301 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13303 * configure.ac ($gcc_cv_ld_clearcap): New test.
13304 * configure: Regenerate.
13305 * config.in: Regenerate.
13306 * config/sol2.opt (mclear-hwcap): New option.
13307 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
13308 * config/sol2-clearcap.map: Moved here from
13309 testsuite/gcc.target/i386/clearcap.map.
13310 * config/sol2-clearcapv2.map: Move here from
13311 gcc.target/i386/clearcapv2.map.
13312 * config/t-sol2 (install): Depend on install-clearcap-map.
13313 (install-clearcap-map): New target.
13314 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
13317 2014-05-28 Richard Biener <rguenther@suse.de>
13319 * hwint.h (*_HALF_WIDE_INT*): Move to ...
13320 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
13321 ... here and remove the rest.
13322 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13324 2014-05-28 Richard Biener <rguenther@suse.de>
13326 PR tree-optimization/61335
13327 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
13328 new range fails, drop to varying.
13330 2014-05-28 Olivier Hainque <hainque@adacore.com>
13332 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
13333 (CPP_SPEC): Add entry for -mcpu=8548.
13334 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
13335 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
13337 2014-05-28 Tom de Vries <tom@codesourcery.com>
13339 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13340 * lra.c (initialize_lra_reg_info_element): Add init of
13341 actual_call_used_reg_set field.
13342 (lra): Call lra_create_live_ranges before lra_inheritance for
13344 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13346 * lra-constraints.c (need_for_call_save_p): Use
13347 actual_call_used_reg_set instead of call_used_reg_set for
13349 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13351 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13352 Tom de Vries <tom@codesourcery.com>
13354 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
13356 (@item -fuse-caller-save): New item.
13358 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13359 Tom de Vries <tom@codesourcery.com>
13361 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
13362 OPT_fuse_caller_save.
13364 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13365 Tom de Vries <tom@codesourcery.com>
13367 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
13368 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
13369 get_call_reg_set_usage.
13370 * resource.c (mark_set_resources, mark_target_live_regs): Use
13371 get_call_reg_set_usage.
13372 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
13374 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
13375 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
13376 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13377 * ira-build.c (ira_create_allocno): Init
13378 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13379 (create_cap_allocno, propagate_allocno_info)
13380 (propagate_some_info_from_allocno)
13381 (copy_info_to_removed_store_destinations): Handle
13382 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13383 * ira-costs.c (ira_tune_allocno_costs): Use
13384 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
13386 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13387 Tom de Vries <tom@codesourcery.com>
13389 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
13390 and function_used_regs_valid fields.
13391 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
13392 find_all_hard_reg_sets.
13393 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
13394 (get_call_reg_set_usage): New function.
13395 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
13396 * regs.h (get_call_reg_set_usage): Declare.
13398 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13401 * config/dbx.h (License): Add Runtime Library Exception.
13402 * config/newlib-stdint.h (License): Same.
13403 * config/rtems.h (License): Same
13404 * config/initfini-array.h (License): Same
13405 * config/v850/v850.h (License): Same.
13406 * config/v850/v850-opts.h (License): Same
13407 * config/v850/rtems.h (License): Same.
13409 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13412 * doc/extend.texi (Local Labels): Note that label differences are
13413 not supported for AVR.
13415 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13416 Olivier Hainque <hainque@adacore.com>
13418 * rtl.h (set_for_reg_notes): Declare.
13419 * emit-rtl.c (set_for_reg_notes): New function.
13420 (set_unique_reg_note): Use it.
13421 * optabs.c (add_equal_note): Likewise
13423 2014-05-27 Andrew Pinski <apinski@cavium.com>
13425 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
13426 Use <w> for the register in assembly template.
13427 (stack_protect_test): Use the mode of operands[0] for the result.
13428 (stack_protect_test_<mode>): Use <w> for the register
13429 in assembly template.
13431 2014-05-27 DJ Delorie <dj@redhat.com>
13433 * config/rx/rx.c (add_vector_labels): New.
13434 (rx_output_function_prologue): Call it.
13435 (rx_handle_func_attribute): Don't require empty arguments.
13436 (rx_handle_vector_attribute): New.
13437 (rx_attribute_table): Add "vector" attribute.
13438 * doc/extend.texi (interrupt, vector): Document new/changed
13439 RX-specific attributes.
13441 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
13443 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13445 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
13446 predicate to detect a negative quotient.
13448 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13450 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
13451 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
13452 Add X - Y CMP 0 to X CMP Y transformation.
13453 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
13455 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
13457 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
13460 2014-05-27 Steve Ellcey <sellcey@mips.com>
13462 * config/mips/mips.c: Add include of cgraph.h.
13464 2014-05-27 Richard Biener <rguenther@suse.de>
13466 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
13468 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
13471 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
13472 * config/arm/arm-cores.def (License): Same.
13473 * config/arm/arm-opts.h (License): Same.
13474 * config/arm/aout.h (License): Same.
13475 * config/arm/bpabi.h (License): Same.
13476 * config/arm/elf.h (License): Same.
13477 * config/arm/linux-elf.h (License): Same.
13478 * config/arm/linux-gas.h (License): Same.
13479 * config/arm/netbsd-elf.h (License): Same.
13480 * config/arm/uclinux-eabi.h (License): Same.
13481 * config/arm/uclinux-elf.h (License): Same.
13482 * config/arm/vxworks.h (License): Same.
13484 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13486 * config/arm/neon.md (neon_bswap<mode>): New pattern.
13487 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
13488 (arm_init_neon_builtins): Handle NEON_BSWAP.
13489 Define required type nodes.
13490 (arm_expand_neon_builtin): Handle NEON_BSWAP.
13491 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
13492 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
13493 * config/arm/iterators.md (VDQHSD): New mode iterator.
13495 2014-05-27 Richard Biener <rguenther@suse.de>
13497 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
13498 Try using literal operands when comparing value-ranges failed.
13500 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13502 * ira.c (commutative_operand): Adjust for change to recog_data.
13503 [Missing from previous commit.]
13505 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13507 * system.h (TEST_BIT): New macro.
13508 * recog.h (alternative_mask): New type.
13509 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
13510 (recog_data_d): Replace alternative_enabled_p array with
13511 enabled_alternatives.
13512 (target_recog): New structure.
13513 (default_target_recog, this_target_recog): Declare.
13514 (get_enabled_alternatives, recog_init): Likewise.
13515 * recog.c (default_target_recog, this_target_recog): New variables.
13516 (get_enabled_alternatives): New function.
13517 (extract_insn): Use it.
13518 (recog_init): New function.
13519 (preprocess_constraints, constrain_operands): Adjust for change to
13521 * postreload.c (reload_cse_simplify_operands): Likewise.
13522 * reload.c (find_reloads): Likewise.
13523 * ira-costs.c (record_reg_classes): Likewise.
13524 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
13525 all alternatives after a disabled one would be skipped.
13526 (ira_implicitly_set_insn_hard_regs): Likewise.
13527 * ira.c (ira_setup_alts): Adjust for change to recog_data.
13528 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
13529 with enabled_alternatives.
13530 * lra.c (free_insn_recog_data): Update accordingly.
13531 (lra_update_insn_recog_data): Likewise.
13532 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
13533 * lra-constraints.c (process_alt_operands): Likewise. Handle
13534 only_alternative as part of the enabled mask.
13535 * target-globals.h (this_target_recog): Declare.
13536 (target_globals): Add a recog field.
13537 (restore_target_globals): Restore this_target_recog.
13538 * target-globals.c: Include recog.h.
13539 (default_target_globals): Initialize recog field.
13540 (save_target_globals): Likewise.
13541 * reginfo.c (reinit_regs): Call recog_init.
13542 * toplev.c (backend_init_target): Likewise.
13544 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13546 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
13547 rather than any named insn's code.
13549 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
13552 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
13553 * config/arm/arm-cores.def (License): Same.
13555 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
13557 * tree.h (decl_comdat_group): Declare.
13558 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
13559 * tree.c (decl_comdat_group): Here.
13561 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
13563 PR rtl-optimization/61222
13564 * combine.c (simplify_shift_const_1): When moving a PLUS outside
13565 the shift, truncate the PLUS operand to the result mode.
13567 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
13570 * config/i386/i386.c (ix86_rtx_costs)
13571 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
13574 2014-05-26 Martin Jambor <mjambor@suse.cz>
13576 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
13579 2014-05-26 Richard Biener <rguenther@suse.de>
13581 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
13582 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
13583 Provide specializations.
13584 (wi::int_traits <HOST_WIDE_INT>,
13585 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
13587 2014-05-26 Alan Modra <amodra@gmail.com>
13590 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
13591 params and return a bool. Remove dead code. Update comment.
13592 Assert we have a const_int source. Remove bogus code from
13593 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
13594 handling of constants > 2G and reg_equal note, from..
13595 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
13596 return value. Update comment. If we can, use a new pseudo
13597 for intermediate calculations.
13598 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
13600 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
13601 call to rs6000_emit_set_const in splitter.
13602 (movdi_internal64+2, +3): Likewise.
13604 2014-05-26 Richard Biener <rguenther@suse.de>
13606 * system.h: Define __STDC_FORMAT_MACROS before
13607 including inttypes.h.
13608 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
13609 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
13610 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
13611 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
13612 HOST_WIDEST_INT_C): Remove.
13613 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
13614 if C99 inttypes.h is not available.
13615 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
13616 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
13617 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
13618 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
13619 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
13620 (struct output_info): Likewise.
13621 (print_statistics): Adjust.
13622 (dump_bitmap_statistics): Likewise.
13623 * bt-load.c (migrate_btr_defs): Print with PRId64.
13624 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
13625 (MAX_SAFE_MULTIPLIER): Adjust.
13626 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
13627 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
13628 dump_cgraph_node): Likewise.
13629 * final.c (dump_basic_block_info): Likewise.
13630 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
13631 * gcov.c (format_gcov): Likewise.
13632 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
13634 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
13635 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
13636 (inline_small_functions, dump_overall_stats, dump_inline_stats):
13637 Use PRId64 for dumping.
13638 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
13639 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
13640 (add_allocno_hard_regs): Adjust.
13641 * loop-doloop.c (doloop_modify): Print using PRId64.
13642 * loop-iv.c (inverse): Compute in uint64_t.
13643 (determine_max_iter, iv_number_of_iterations): Likewise.
13644 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
13645 Print using PRId64.
13646 * lto-streamer-out.c (write_symbol): Use uint64_t.
13647 * mcf.c (CAP_INFINITY): Use int64_t maximum.
13648 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
13649 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
13650 * modulo-sched.c (const_iteration_count): Use int64_t.
13651 (sms_schedule): Dump using PRId64.
13652 * predict.c (dump_prediction): Likewise.
13653 * pretty-print.h (pp_widest_integer): Remove.
13654 * profile.c (get_working_sets, is_edge_inconsistent,
13655 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
13656 * tree-pretty-print.c (pp_double_int): Remove case handling
13657 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
13658 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
13660 (pass_optimize_bswap::execute): Remove restriction on hosts.
13661 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
13662 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
13663 * tree.c (widest_int_cst_value): Remove.
13664 * tree.h (widest_int_cst_value): Likewise.
13665 * value-prof.c (dump_histogram_value): Print using PRId64.
13666 * gengtype.c (main): Also inject int64_t.
13667 * ggc-page.c (struct max_alignment): Use int64_t.
13668 * alloc-pool.c (struct allocation_object_def): Likewise.
13669 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
13671 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
13672 * doc/tm.texi: Regenerated.
13673 * gengtype-lex.l (IWORD): Handle [u]int64_t.
13674 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
13675 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
13676 mmix_output_register_setting): Use [u]int64_t in prototypes.
13677 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
13678 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
13679 mmix_output_octa, mmix_output_shifted_value): Adjust.
13680 (mmix_intval): Adjust. Remove unreachable case.
13681 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
13683 2014-05-26 Richard Biener <rguenther@suse.de>
13685 * configure.ac: Drop __int64 type check. Insist that we
13686 found uint64_t and int64_t.
13687 * hwint.h (HOST_BITS_PER___INT64): Remove.
13688 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
13689 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
13690 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
13691 (HOST_WIDEST_FAST_INT): Remove __int64 case.
13692 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
13693 for dst_q_src_df_rms_cdt.
13694 * configure: Regenerate.
13695 * config.in: Likewise.
13697 2014-05-26 Michael Tautschnig <mt@debian.org>
13700 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
13701 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
13703 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13705 PR rtl-optimization/61278
13706 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
13708 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13710 PR rtl-optimization/61220
13711 Part of PR rtl-optimization/61225
13712 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
13713 insn; skip split_edge for a block with only one successor.
13715 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13717 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
13720 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13722 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
13723 (update_vtable_references): New function.
13724 (function_and_variable_visibility): Rewrite also vtable initializers.
13725 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
13727 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13729 * ggc.h (ggc_grow): New function.
13730 * ggc-none.c (ggc_grow): New function.
13731 * ggc-page.c (ggc_grow): Likewise.
13733 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13735 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
13736 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
13737 comdat_can_be_unshared_p, cgraph_externally_visible_p,
13738 varpool_externally_visible_p, can_replace_by_local_alias,
13739 update_visibility_by_resolution_info, function_and_variable_visibility,
13740 pass_data_ipa_function_and_variable_visibility,
13741 make_pass_ipa_function_and_variable_visibility,
13742 whole_program_function_and_variable_visibility,
13743 pass_data_ipa_whole_program_visibility,
13744 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
13745 * cgraph.h (cgraph_local_node_p): Declare.
13746 * ipa-visibility.c: New file.
13747 * Makefile.in (OBJS): Add ipa-visiblity.o
13749 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13751 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
13752 that var decl is available.
13754 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13756 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
13757 symtab_node pointer.
13758 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
13759 (find_decls_types_r): Do not walk COMDAT_GROUP.
13760 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
13761 * varasm.c (make_decl_one_only): Use set_comdat_group;
13762 create node if needed.
13763 * ipa-inline-transform.c (save_inline_function_body): Update
13764 way we decl->symtab mapping.
13765 * symtab.c (symtab_hash, hash_node, eq_node
13766 symtab_insert_node_to_hashtable): Remove.
13767 (symtab_register_node): Update.
13768 (symtab_unregister_node): Update.
13769 (symtab_get_node): Reimplement as inline function.
13770 (symtab_add_to_same_comdat_group): Update.
13771 (symtab_dissolve_same_comdat_group_list): Update.
13772 (dump_symtab_base): Update.
13773 (verify_symtab_base): Update.
13774 (symtab_make_decl_local): Update.
13775 (fixup_same_cpp_alias_visibility): Update.
13776 (symtab_nonoverwritable_alias): Update.
13777 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
13778 * ipa.c (update_visibility_by_resolution_info): UPdate.
13779 * bb-reorder.c: Include cgraph.h
13780 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
13781 with comdat groups.
13782 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
13783 * cgraph.c (cgraph_get_create_node): Update.
13784 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
13786 (symtab_get_node): Make inline.
13787 (symtab_insert_node_to_hashtable): Remove.
13788 (symtab_can_be_discarded): Update.
13789 (decl_comdat_group): New function.
13790 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
13792 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
13794 (read_comdat_group): New function.
13795 (input_node, input_varpool_node): Use it.
13796 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
13798 * mips.c (mips_start_unique_function): Likewise.
13799 (ix86_code_end): Likewise.
13800 (rs6000_code_end): Likweise.
13801 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
13803 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13805 * gengtype-state.c (fatal_reading_state): Bring offline.
13806 * optabs.c (widening_optab_handler): Bring offline.
13807 * optabs.h (widening_optab_handler): Likewise.
13808 * final.c (get_attr_length_1): Likewise.
13810 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13812 * sched-int.h (sd_iterator_cond): Manually tail recurse.
13814 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13816 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
13817 (ppc440-compare): Include shift with dot.
13818 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
13819 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
13821 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
13823 (e6500_sfx2): Include it.
13824 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
13825 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
13826 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
13827 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
13828 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
13829 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
13830 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
13831 *lshiftrt_internal1le, *lshiftrt_internal1be,
13832 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
13833 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
13834 *rotldi3_internal10le, *rotldi3_internal10be,
13835 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
13836 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
13837 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
13838 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
13839 define_insns): Use type "shift" in the appropriate alternatives.
13841 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13843 * config/rs6000/rs6000.md (type): Add "logical". Delete
13845 (dot): Adjust comment.
13846 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
13847 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
13848 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
13849 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
13850 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
13851 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
13852 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
13853 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
13855 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
13856 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
13857 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
13858 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
13859 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
13860 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
13861 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
13862 * config/rs6000/8540.md (ppc8540_su): Adjust.
13863 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
13864 cell-cmp-microcoded): Adjust.
13865 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
13866 * config/rs6000/e500mc.md (e500mc_su): Adjust.
13867 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
13868 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
13869 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
13870 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
13871 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
13872 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
13873 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
13875 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
13876 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
13877 Adjust. Adjust comment.
13878 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
13879 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
13881 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13883 * config/rs6000/rs6000.md (type): Add "add".
13884 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
13885 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
13886 define_insns): Use it.
13887 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
13889 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
13890 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
13891 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
13892 * config/rs6000/601.md (ppc601-integer): Adjust.
13893 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
13894 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
13895 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
13896 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
13897 * config/rs6000/8540.md (ppc8540_su): Adjust.
13898 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
13899 cell-cmp-microcoded): Adjust.
13900 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
13901 * config/rs6000/e500mc.md (e500mc_su): Adjust.
13902 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
13903 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
13904 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
13905 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
13906 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
13907 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
13908 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
13910 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
13911 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
13912 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
13913 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
13915 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13917 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
13918 "delayed_compare", "var_delayed_compare".
13919 (var_shift): New attribute.
13920 (cell_micro): Adjust.
13921 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
13922 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
13923 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
13924 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
13925 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
13926 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
13927 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
13928 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
13929 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
13930 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
13931 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
13932 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
13933 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
13934 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
13935 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
13936 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
13937 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
13938 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
13939 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
13940 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
13941 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
13942 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
13943 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
13944 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
13945 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
13947 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
13948 * config/rs6000/440.md (ppc440-integer): Adjust.
13949 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
13950 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
13951 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
13952 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
13953 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
13954 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
13955 * config/rs6000/8540.md (ppc8540_su): Adjust.
13956 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
13957 cell-cmp-microcoded): Adjust.
13958 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
13959 * config/rs6000/e500mc.md (e500mc_su): Adjust.
13960 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
13961 e500mc64_delayed): Adjust.
13962 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
13963 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
13964 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
13965 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
13966 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
13967 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
13968 power6-delayed-compare, power6-var-delayed-compare): Adjust.
13969 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
13970 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
13972 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
13973 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
13975 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13977 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
13978 (bits): New mode_attr.
13979 (idiv_ldiv): Delete mode_attr.
13980 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
13981 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
13982 rs6000_adjust_priority, is_nonpipeline_insn,
13983 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
13985 * config/rs6000/40x.md (ppc403-idiv): Adjust.
13986 * config/rs6000/440.md (ppc440-idiv): Adjust.
13987 * config/rs6000/476.md (ppc476-idiv): Adjust.
13988 * config/rs6000/601.md (ppc601-idiv): Adjust.
13989 * config/rs6000/603.md (ppc603-idiv): Adjust.
13990 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
13991 ppc620-ldiv): Adjust.
13992 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
13993 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
13994 * config/rs6000/8540.md (ppc8540_divide): Adjust.
13995 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
13996 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
13997 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
13998 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
13999 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14000 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14001 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14002 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14003 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14004 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14005 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14006 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14007 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14008 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14009 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14011 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14013 * config/rs6000/rs6000.md (type): Delete "insert_word",
14014 "insert_dword". Add "insert".
14015 (size): Update comment.
14016 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14017 insn_must_be_first_in_group): Adjust.
14018 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14019 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14020 *insvsi_internal6, insvdi_internal): Adjust.
14022 * config/rs6000/40x.md (ppc403-integer): Adjust.
14023 * config/rs6000/440.md (ppc440-integer): Adjust.
14024 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14025 * config/rs6000/601.md (ppc601-integer): Adjust.
14026 * config/rs6000/603.md (ppc603-integer): Adjust.
14027 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14028 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14029 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14030 * config/rs6000/8540.md (ppc8540_su): Adjust.
14031 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14032 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14033 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14034 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14035 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14036 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14037 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14038 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14039 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14040 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14041 * config/rs6000/power7.md (power7-integer): Adjust.
14042 * config/rs6000/power8.md (power8-1cyc): Adjust.
14043 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14044 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14046 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14048 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14049 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14050 (size): New attribute.
14051 (dot): New attribute.
14052 (cell_micro): Adjust.
14053 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14054 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14055 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14056 umuldi3_highpart): Adjust.
14057 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14058 rs6000_adjust_priority, is_nonpipeline_insn,
14059 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14061 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14062 ppc405-imul3): Adjust.
14063 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14064 * config/rs6000/476.md (ppc476-imul): Adjust.
14065 * config/rs6000/601.md (ppc601-imul): Adjust.
14066 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14067 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14068 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14069 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14070 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14072 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14073 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14074 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14075 cell-imul): Adjust.
14076 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14077 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14078 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14079 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14080 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14081 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14082 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14083 power4-lmul, power4-imul, power4-imul3): Adjust.
14084 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14085 power5-lmul, power5-imul, power5-imul3): Adjust.
14086 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14087 power6-lmul, power6-imul, power6-imul3): Adjust.
14088 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14089 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14091 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14092 rs64a-lmul): Adjust.
14093 * config/rs6000/titan.md (titan_imul): Adjust.
14095 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14097 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14098 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14099 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14100 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14101 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14102 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14103 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14104 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14105 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14106 * config/rs6000/titan.md: Delete nonsensical comment.
14107 (titan_imul): Add type imul3.
14108 (titan_mulhw): Remove type imul3; add type halfmul.
14110 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14112 * config/rs6000/rs6000.md (type): Reorder, reformat.
14114 2014-05-23 Martin Jambor <mjambor@suse.cz>
14116 PR tree-optimization/53787
14117 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14118 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14119 analysis_done, update all uses.
14120 * ipa-prop.c: Include domwalk.h
14121 (param_analysis_info): Removed.
14122 (param_aa_status): New type.
14123 (ipa_bb_info): Likewise.
14124 (func_body_info): Likewise.
14125 (ipa_get_bb_info): New function.
14126 (aa_overwalked): Likewise.
14127 (find_dominating_aa_status): Likewise.
14128 (parm_bb_aa_status_for_bb): Likewise.
14129 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14130 (load_from_unmodified_param): Accept func_body_info as a parameter
14131 instead of parms_ainfo.
14132 (parm_ref_data_preserved_p): Changed to use new param AA info.
14133 (parm_ref_data_pass_through_p): Likewise.
14134 (ipa_load_from_parm_agg_1): Likewise. Update callers.
14135 (compute_complex_assign_jump_func): Changed to use new param AA info.
14136 (compute_complex_ancestor_jump_func): Likewise.
14137 (ipa_compute_jump_functions_for_edge): Likewise.
14138 (ipa_compute_jump_functions): Removed.
14139 (ipa_compute_jump_functions_for_bb): New function.
14140 (ipa_analyze_indirect_call_uses): Likewise, moved variable
14142 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14143 and info, moved variable declarations down.
14144 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14146 (ipa_analyze_stmt_uses): Likewise.
14147 (ipa_analyze_params_uses): Removed.
14148 (ipa_analyze_params_uses_in_bb): New function.
14149 (ipa_analyze_controlled_uses): Likewise.
14150 (free_ipa_bb_info): Likewise.
14151 (analysis_dom_walker): New class.
14152 (ipa_analyze_node): Handle node-specific forbidden analysis,
14153 initialize and free func_body_info, use dominator walker.
14154 (ipcp_modif_dom_walker): New class.
14155 (ipcp_transform_function): Create and free func_body_info, use
14156 ipcp_modif_dom_walker, moved a lot of functionality there.
14158 2014-05-23 Marek Polacek <polacek@redhat.com>
14159 Jakub Jelinek <jakub@redhat.com>
14161 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
14162 * gcc.c (sanitize_spec_function): Likewise.
14163 * convert.c (convert_to_integer): Include "ubsan.h". Add
14164 floating-point to integer instrumentation.
14165 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
14166 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
14167 SANITIZE_NONDEFAULT.
14168 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
14169 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
14170 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
14171 * ubsan.c: Include "realmpfr.h" and "dfp.h".
14172 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
14173 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
14174 float/double/long double.
14175 (ubsan_instrument_float_cast): New function.
14176 * ubsan.h (ubsan_instrument_float_cast): Declare.
14178 2014-05-23 Jiong Wang <jiong.wang@arm.com>
14180 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
14182 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
14183 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
14184 Adjust for tailcalling through registers.
14185 * config/aarch64/aarch64.h (enum reg_class): New caller save
14187 (REG_CLASS_NAMES): Likewise.
14188 (REG_CLASS_CONTENTS): Likewise.
14189 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
14190 Allow tailcalling without decls.
14192 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14194 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14195 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
14197 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
14198 gsi, and variables v_* to v*.
14200 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
14202 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
14204 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14206 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
14207 * omp-low.c: Update accordingly.
14209 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
14210 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
14211 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
14212 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
14213 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
14214 GF_OMP_TARGET_KIND_UPDATE.
14216 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14217 Explicitly enumerate the expected region types.
14219 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
14222 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
14223 documentation; the old documentation didn't clearly state the
14224 constraints on the contents of the pointed-to storage.
14226 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14228 Fix bootstrap error on ia64
14229 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
14230 Return default value.
14232 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
14234 PR tree-optimization/54733
14235 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
14237 (find_bswap_or_nop_load): New.
14238 (find_bswap_1): Renamed to ...
14239 (find_bswap_or_nop_1): This. Also add support for memory source.
14240 (find_bswap): Renamed to ...
14241 (find_bswap_or_nop): This. Also add support for memory source and
14242 detection of bitwise operations equivalent to load in target
14244 (execute_optimize_bswap): Likewise. Also move its leading comment back
14245 in place and split statement transformation into ...
14246 (bswap_replace): This.
14248 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14250 PR rtl-optimization/61215
14251 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
14252 simplify_gen_subreg until final substitution.
14254 2014-05-23 Alan Modra <amodra@gmail.com>
14257 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
14258 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
14259 Use "Y" constraint rather than "m".
14261 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14263 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
14265 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
14266 New function declaration.
14267 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
14268 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
14269 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
14270 (aarch64_init_builtins) : Initialize builtins
14271 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14272 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14273 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
14274 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
14275 and __builtins_aarch64_set_fpsr.
14276 (aarch64_atomic_assign_expand_fenv): New function.
14277 * config/aarch64/aarch64.md (set_fpcr): New pattern.
14278 (get_fpcr) : Likewise.
14279 (set_fpsr) : Likewise.
14280 (get_fpsr) : Likewise.
14281 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
14282 and UNSPECV_SET_FPSR.
14283 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14284 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14285 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14287 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14289 PR rtl-optimization/60969
14290 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
14291 constraints. Set up mem cost for NO_REGS case.
14293 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
14295 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
14297 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
14299 * config/darwin.c: Include "lto-section-names.h".
14300 (LTO_SEGMENT_NAME): Don't define.
14301 * config/i386/winnt.c: Include "lto-section-names.h".
14302 * lto-streamer.c: Include "lto-section-names.h".
14303 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
14304 * lto-wrapper.c: Include "lto-section-names.h".
14305 (LTO_SECTION_NAME_PREFIX): Don't define.
14306 * lto-section-names.h: New file.
14307 * cgraphunit.c: Include "lto-section-names.h".
14309 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
14311 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
14313 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
14316 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
14318 2014-05-22 Nick Clifton <nickc@redhat.com>
14320 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
14322 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
14324 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
14325 -> (T)A transformation to integer types.
14327 2014-05-22 Teresa Johnson <tejohnson@google.com>
14329 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
14330 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
14331 (gcov_rewrite): Use gcov_nonruntime_assert.
14332 (gcov_open): Ditto.
14333 (gcov_write_words): Ditto.
14334 (gcov_write_length): Ditto.
14335 (gcov_read_words): Use gcov_nonruntime_assert, and remove
14336 gcc_assert from IN_LIBGCOV code.
14337 (gcov_read_summary): Use gcov_error to flag profile corruption.
14338 (gcov_sync): Use gcov_nonruntime_assert.
14339 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
14340 (gcov_histo_index): Use gcov_nonruntime_assert.
14341 (static void gcov_histogram_merge): Ditto.
14342 (compute_working_sets): Ditto.
14343 * gcov-io.h (gcov_nonruntime_assert): Define.
14344 (gcov_error): Define for !IN_LIBGCOV
14346 2014-05-22 Richard Biener <rguenther@suse.de>
14348 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14349 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
14350 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
14351 and deallocation site.
14352 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14353 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
14354 passing through the incoming points-to set.
14355 (handle_lhs_call): Use flags argument instead of recomputing it.
14356 (find_func_aliases_for_call): Call handle_lhs_call with proper
14359 2014-05-22 Jakub Jelinek <jakub@redhat.com>
14361 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
14362 all padding bits in REAL_VALUE_TYPE are cleared.
14364 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14366 Cleanup and improve multipass_dfa_lookahead_guard
14367 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
14368 (core2i7_first_cycle_multipass_begin,)
14369 (core2i7_first_cycle_multipass_issue,)
14370 (core2i7_first_cycle_multipass_backtrack): Update signature.
14371 * config/ia64/ia64.c
14372 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
14373 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
14374 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
14376 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
14377 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
14379 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
14381 * doc/tm.texi: Regenerate.
14383 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
14384 * haifa-sched.c (ready_try): Make signed to allow negative values.
14385 (rebug_ready_list_1): Update.
14386 (choose_ready): Simplify.
14387 (sched_extend_ready_list): Update.
14389 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14391 Remove IA64 speculation tweaking flags
14392 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
14393 speculation tuning flags.
14394 (msched-prefer-non-data-spec-insns,)
14395 (msched-prefer-non-control-spec-insns): Obsolete options.
14396 * haifa-sched.c (choose_ready): Remove handling of
14397 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14398 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
14399 and PREFER_NON_DATA_SPEC.
14400 * sel-sched.c (process_spec_exprs): Remove handling of
14401 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14403 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14405 Improve scheduling debug output
14406 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
14407 (advance_one_cycle): Update.
14408 (schedule_insn, queue_to_ready): Add debug printouts.
14409 (debug_ready_list_1): New static function.
14410 (debug_ready_list): Update.
14411 (max_issue): Add debug printouts.
14412 (dump_insn_stream): New static function.
14413 (schedule_block): Use it. Also better indent printouts.
14415 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14417 Fix sched_insn debug counter
14418 * haifa-sched.c (schedule_insn): Update.
14419 (struct haifa_saved_data): Add nonscheduled_insns_begin.
14420 (save_backtrack_point, restore_backtrack_point): Update.
14421 (first_nonscheduled_insn): New static function.
14422 (queue_to_ready, choose_ready): Use it.
14423 (schedule_block): Init nonscheduled_insns_begin.
14424 (sched_emit_insn): Update.
14427 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
14429 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
14431 (aarch64_secondary_reload) : LikeWise.
14432 (aarch64_class_max_nregs) : Remove CORE_REGS.
14433 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
14434 (REG_CLASS_NAMES) : Likewise.
14435 (REG_CLASS_CONTENTS) : LikeWise.
14436 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
14438 2014-05-21 Guozhi Wei <carrot@google.com>
14441 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
14443 (vqdmulhq_n_s16): Likewise.
14445 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
14447 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
14449 2014-05-21 Marek Polacek <polacek@redhat.com>
14452 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
14454 2014-05-21 Martin Jambor <mjambor@suse.cz>
14456 * doc/invoke.texi (Optimize Options): Document parameters
14457 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
14458 ipa-cp-array-index-hint-bonus.
14460 2014-05-21 Mark Wielaard <mjw@redhat.com>
14463 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
14464 version >= 3 or not strict DWARF.
14465 * langhooks.h (struct lang_hooks_for_types): Add
14466 enum_underlying_base_type.
14467 * langhooks.c (lhd_enum_underlying_base_type): New function.
14468 * gcc/langhooks.h (struct lang_hooks_for_types): Add
14469 enum_underlying_base_type.
14470 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
14471 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
14472 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
14474 2014-05-21 Richard Biener <rguenther@suse.de>
14476 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
14478 2014-05-21 John Marino <gnugcc@marino.st>
14480 * config.gcc (*-*-dragonfly*): New target.
14481 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
14482 * configure: Regenerate.
14483 * config/dragonfly-stdint.h: New.
14484 * config/dragonfly.h: New.
14485 * config/dragonfly.opt: New.
14486 * config/i386/dragonfly.h: New.
14487 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
14489 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
14491 * tree.def (VOID_CST): New.
14492 * tree-core.h (TI_VOID): New.
14493 * tree.h (void_node): New.
14494 * tree.c (tree_node_structure_for_code, tree_code_size)
14495 (iterative_hash_expr): Handle VOID_CST.
14496 (build_common_tree_nodes): Initialize void_node.
14498 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
14500 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
14502 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
14504 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
14507 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
14508 flag_reorder_blocks_and_partition.
14509 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
14511 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
14514 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
14516 (*addc_r_t): Add new insn_and_split.
14518 2014-05-21 Jakub Jelinek <jakub@redhat.com>
14520 PR middle-end/61252
14521 * omp-low.c (handle_simd_reference): New function.
14522 (lower_rec_input_clauses): Use it. Defer adding reference
14523 initialization even for reduction without placeholder if in simd,
14524 handle it properly later on.
14526 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14528 PR tree-optimization/60899
14529 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
14530 assume all static symbols will have definition wile parsing and
14531 check the do have definition later in compilation; check that
14532 variable referring symbol will be output before concluding that
14533 reference is safe; be conservative for referring local statics;
14534 be more precise about when comdat is output in other partition.
14536 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14539 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
14541 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
14542 (ipa_inline): Loop inline_to_all_callers until no more aliases
14545 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14547 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
14548 set writeonly flag only for vars actually written to.
14550 2014-05-20 Dehao Chen <dehao@google.com>
14552 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
14553 and callee count to get clone count.
14554 * tree-inline.c (expand_call_inline): Use callee count instead of bb
14555 count in copy_body.
14557 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
14559 PR rtl-optimization/61243
14560 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
14562 2014-05-20 Xinliang David Li <davidxl@google.com>
14564 * cgraphunit.c (walk_polymorphic_call_targets): Add
14565 dbgcnt and fopt-info support.
14566 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
14567 * ipa-devirt.c (ipa_devirt): Ditto.
14568 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
14569 * ipa.c (walk_polymorphic_call_targets): Ditto.
14570 * gimple-fold.c (fold_gimple_assign): Ditto.
14571 (gimple_fold_call): Ditto.
14572 * dbgcnt.def: New counter.
14574 2014-05-20 DJ Delorie <dj@redhat.com>
14576 * config/msp430/msp430.md (split): Don't allow subregs when
14577 splitting SImode adds.
14578 (andneghi): Fix subtraction logic.
14579 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
14581 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14583 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
14585 * except.c (switch_to_exception_section, resolve_unique_section,
14586 get_named_text_section, default_function_rodata_section,
14587 align_variable, get_block_for_decl, default_section_type_flags):
14588 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
14589 * symtab.c (symtab_add_to_same_comdat_group,
14590 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
14591 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
14593 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
14594 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
14595 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
14596 (c6x_function_in_section_p): Likewise.
14597 * config/darwin.c (machopic_select_section): Likewise.
14598 * config/arm/arm.c (arm_function_in_section_p): Likewise.
14599 * config/mips/mips.c (mips_function_rodata_section): Likewise.
14600 * config/mep/mep.c (mep_select_section): LIkewise.
14601 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
14603 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
14605 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
14606 EH region of calls to pure functions that can throw an exception.
14607 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
14608 (copy_reference_ops_from_call): Also copy the EH region of the call if
14609 it can throw an exception.
14611 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14613 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
14614 nested VEC_SELECTs that are inverses of each other.
14616 2014-05-20 Richard Biener <rguenther@suse.de>
14618 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
14619 (extract_and_process_scc_for_name): not here.
14620 (cond_dom_walker::before_dom_children): Only process
14621 stmts that end the BB in interesting ways.
14622 (run_scc_vn): Mark param uses as visited.
14624 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14626 * config/arm/arm.md (arith_shiftsi): Do not predicate for
14629 2014-05-20 Nick Clifton <nickc@redhat.com>
14631 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
14632 (msp430_gimplify_va_arg_expr): New function.
14633 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
14635 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
14636 operand 0 in order to prevent confusion about the number of
14637 registers involved.
14639 2014-05-20 Richard Biener <rguenther@suse.de>
14641 PR tree-optimization/61221
14642 * tree-ssa-pre.c (el_to_update): Remove.
14643 (eliminate_dom_walker::before_dom_children): Handle released
14644 VDEFs by value-numbering them to the associated VUSE. Update
14645 stmt immediately for substituted call address.
14646 (eliminate): Remove delayed stmt updating code.
14647 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
14648 possibly late re-numbered vuses.
14649 (vn_reference_lookup_2): Adjust.
14650 (vn_reference_lookup_pieces): Likewise.
14651 (vn_reference_lookup): Likewise.
14653 2014-05-20 Richard Biener <rguenther@suse.de>
14655 * config.gcc: Remove need_64bit_hwint.
14656 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
14657 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
14659 * config.in: Regenerate.
14660 * configure: Likewise.
14662 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
14664 * doc/extend.texi: Create Label Attributes section,
14665 move all label attributes into it and reference it.
14667 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
14669 * arm.c (thumb1_reorg): When scanning backwards skip anything
14670 that's not a proper insn.
14672 2014-05-19 Richard Biener <rguenther@suse.de>
14674 PR tree-optimization/61221
14675 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14676 Do nothing for unreachable blocks.
14677 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
14678 Improve unreachability detection.
14680 2014-05-19 Richard Biener <rguenther@suse.de>
14682 PR tree-optimization/61209
14683 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
14685 2014-05-19 Nick Clifton <nickc@redhat.com>
14687 * except.c (init_eh): Fix computation of builtin setjmp buffer
14688 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
14690 2014-05-19 Richard Biener <rguenther@suse.de>
14692 PR tree-optimization/61184
14693 * tree-vrp.c (is_negative_overflow_infinity): Use
14694 TREE_OVERFLOW_P and do that check first.
14695 (is_positive_overflow_infinity): Likewise.
14696 (is_overflow_infinity): Likewise.
14697 (vrp_operand_equal_p): Properly treat operands with
14698 differing overflow as not equal.
14700 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
14702 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
14703 shift simplification where it was intended.
14705 2014-05-19 Christian Bruel <christian.bruel@st.com>
14708 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
14710 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
14713 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
14716 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
14718 * reg-notes.def (CROSSING_JUMP): Likewise.
14719 * rtl.h (rtx_def): Update comment for jump flag.
14720 (CROSSING_JUMP_P): Define.
14721 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
14722 of a REG_CROSSING_JUMP note.
14723 * cfghooks.c (tidy_fallthru_edges): Likewise.
14724 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
14725 * emit-rtl.c (try_split): Likewise.
14726 * haifa-sched.c (sched_create_recovery_edges): Likewise.
14727 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
14728 * jump.c (redirect_jump_2): Likewise.
14729 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
14730 (relax_delay_slots): Likewise.
14731 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
14732 (bbit_di): Likewise.
14733 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
14734 * config/sh/sh.md (jump_compact): Likewise.
14735 * bb-reorder.c (rotate_loop): Likewise.
14736 (pass_duplicate_computed_gotos::execute): Likewise.
14737 (add_reg_crossing_jump_notes): Rename to...
14738 (update_crossing_jump_flags): ...this.
14739 (pass_partition_blocks::execute): Update accordingly.
14741 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
14743 * tree.h: Remove extraneous template <>.
14745 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14747 * ipa.c (symtab_remove_unreachable_nodes): Remove
14748 symbol from comdat group if its body was eliminated.
14749 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
14750 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
14751 (symtab_unregister_node): ... this one.
14752 (verify_symtab_base): More strict checking of comdats.
14753 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
14755 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14757 * tree-pass.h (make_pass_ipa_comdats): New pass.
14758 * timevar.def (TV_IPA_COMDATS): New timevar.
14759 * passes.def (pass_ipa_comdats): Add.
14760 * Makefile.in (OBJS): Add ipa-comdats.o
14761 * ipa-comdats.c: New file.
14763 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14765 * ipa.c (update_visibility_by_resolution_info): New function.
14766 (function_and_variable_visibility): Use it.
14768 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14770 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
14772 (FOR_EACH_DEFINED_SYMBOL): New macro.
14773 (varpool_first_static_initializer, varpool_next_static_initializer,
14774 varpool_first_defined_variable, varpool_next_defined_variable):
14776 (symtab_in_same_comdat_p): Correctly deal with inline functions.
14778 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14780 * ggc-page.c (ggc_handle_finalizers): Add comment.
14782 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14784 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
14785 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
14786 (ggc_internal_cleared_alloc): Likewise.
14787 * ggc-page.c (finalizer): New class.
14788 (vec_finalizer): Likewise.
14789 (globals::finalizers): New member.
14790 (globals::vec_finalizers): Likewise.
14791 (ggc_internal_alloc): Record the finalizer if any for the block being
14793 (ggc_handle_finalizers): New function.
14794 (ggc_collect): Call ggc_handle_finalizers.
14795 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
14797 (ggc_internal_cleared_alloc): Likewise.
14798 (finalize): New function.
14799 (need_finalization_p): Likewise.
14800 (ggc_alloc): Install the type's destructor as the finalizer if it
14801 might do something.
14802 (ggc_cleared_alloc): Likewise.
14803 (ggc_vec_alloc): Likewise.
14804 (ggc_cleared_vec_alloc): Likewise.
14806 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14808 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
14810 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14812 * alias.c (record_alias_subset): Adjust.
14813 * bitmap.c (bitmap_element_allocate): Likewise.
14814 (bitmap_gc_alloc_stat): Likewise.
14815 * cfg.c (init_flow): Likewise.
14816 (alloc_block): Likewise.
14817 (unchecked_make_edge): Likewise.
14818 * cfgloop.c (alloc_loop): Likewise.
14819 (flow_loops_find): Likewise.
14820 (rescan_loop_exit): Likewise.
14821 * cfgrtl.c (init_rtl_bb_info): Likewise.
14822 * cgraph.c (insert_new_cgraph_node_version): Likewise.
14823 (cgraph_allocate_node): Likewise.
14824 (cgraph_create_edge_1): Likewise.
14825 (cgraph_allocate_init_indirect_info): Likewise.
14826 * cgraphclones.c (cgraph_clone_edge): Likewise.
14827 * cgraphunit.c (add_asm_node): Likewise.
14828 (init_lowered_empty_function): Likewise.
14829 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
14830 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
14831 (alpha_use_linkage): Likewise.
14832 * config/arc/arc.c (arc_init_machine_status): Likewise.
14833 * config/arm/arm.c (arm_init_machine_status): Likewise.
14834 * config/avr/avr.c (avr_init_machine_status): Likewise.
14835 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
14836 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
14837 * config/cris/cris.c (cris_init_machine_status): Likewise.
14838 * config/darwin.c (machopic_indirection_name): Likewise.
14839 (darwin_build_constant_cfstring): Likewise.
14840 (darwin_enter_string_into_cfstring_table): Likewise.
14841 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
14842 * config/frv/frv.c (frv_init_machine_status): Likewise.
14843 * config/i386/i386.c (get_dllimport_decl): Likewise.
14844 (ix86_init_machine_status): Likewise.
14845 (assign_386_stack_local): Likewise.
14846 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
14847 (i386_pe_maybe_record_exported_symbol): Likewise.
14848 (i386_pe_record_stub): Likewise.
14849 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
14850 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
14851 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
14852 (m32c_note_pragma_address): Likewise.
14853 * config/mep/mep.c (mep_init_machine_status): Likewise.
14854 (mep_note_pragma_flag): Likewise.
14855 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
14856 (mips16_local_alias): Likewise.
14857 (mips_init_machine_status): Likewise.
14858 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
14859 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
14860 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
14861 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
14862 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
14863 * config/pa/pa.c (pa_init_machine_status): Likewise.
14864 (pa_get_deferred_plabel): Likewise.
14865 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
14866 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
14867 (rs6000_init_machine_status): Likewise.
14868 (output_toc): Likewise.
14869 * config/s390/s390.c (s390_init_machine_status): Likewise.
14870 * config/score/score.c (score_output_external): Likewise.
14871 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
14872 * config/spu/spu.c (spu_init_machine_status): Likewise.
14873 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
14874 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
14875 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
14876 * coverage.c (coverage_end_function): Likewise.
14877 * dbxout.c (dbxout_init): Likewise.
14878 * doc/gty.texi: Don't mention variable_size attribute.
14879 * dwarf2cfi.c (new_cfi): Adjust.
14880 (new_cfi_row): Likewise.
14881 (copy_cfi_row): Likewise.
14882 (create_cie_data): Likewise.
14883 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
14884 (new_loc_descr): Likewise.
14885 (find_AT_string_in_table): Likewise.
14886 (add_addr_table_entry): Likewise.
14887 (new_die): Likewise.
14888 (add_var_loc_to_decl): Likewise.
14889 (clone_die): Likewise.
14890 (clone_as_declaration): Likewise.
14891 (break_out_comdat_types): Likewise.
14892 (new_loc_list): Likewise.
14893 (add_loc_descr_to_each): Likewise.
14894 (add_location_or_const_value_attribute): Likewise.
14895 (add_linkage_name): Likewise.
14896 (lookup_filename): Likewise.
14897 (dwarf2out_var_location): Likewise.
14898 (new_line_info_table): Likewise.
14899 (dwarf2out_init): Likewise.
14900 (mem_loc_descriptor): Likewise.
14901 (loc_descriptor): Likewise.
14902 (add_const_value_attribute): Likewise.
14903 (tree_add_const_value_attribute): Likewise.
14904 (comp_dir_string): Likewise.
14905 (dwarf2out_vms_debug_main_pointer): Likewise.
14906 (string_cst_pool_decl): Likewise.
14907 * emit-rtl.c (set_mem_attrs): Likewise.
14908 (get_reg_attrs): Likewise.
14909 (start_sequence): Likewise.
14910 (init_emit): Likewise.
14911 (init_emit_regs): Likewise.
14912 * except.c (init_eh_for_function): Likewise.
14913 (gen_eh_region): Likewise.
14914 (gen_eh_region_catch): Likewise.
14915 (gen_eh_landing_pad): Likewise.
14916 (add_call_site): Likewise.
14917 * function.c (add_frame_space): Likewise.
14918 (insert_temp_slot_address): Likewise.
14919 (assign_stack_temp_for_type): Likewise.
14920 (get_hard_reg_initial_val): Likewise.
14921 (allocate_struct_function): Likewise.
14922 (prepare_function_start): Likewise.
14923 (types_used_by_var_decl_insert): Likewise.
14924 * gengtype.c (variable_size_p): Remove function.
14925 (enum alloc_quantity): Remove enum.
14926 (write_typed_alloc_def): Remove function.
14927 (write_typed_struct_alloc_def): Likewise.
14928 (write_typed_typedef_alloc_def): Likewise.
14929 (write_typed_alloc_defns): Likewise.
14931 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
14932 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
14933 * ggc.h (ggc_alloc): new function.
14934 (ggc_cleared_alloc): Likewise.
14935 (ggc_vec_alloc): Template on type of vector element, and remove
14936 element size argument.
14937 (ggc_cleared_vec_alloc): Likewise.
14938 * gimple.c (gimple_build_omp_for): Adjust.
14939 (gimple_copy): Likewise.
14940 * ipa-cp.c (get_replacement_map): Likewise.
14941 (find_aggregate_values_for_callers_subset): Likewise.
14942 (known_aggs_to_agg_replacement_list): Likewise.
14943 * ipa-devirt.c (get_odr_type): Likewise.
14944 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
14945 (read_agg_replacement_chain): Likewise.
14946 * loop-iv.c (get_simple_loop_desc): Likewise.
14947 * lto-cgraph.c (input_node_opt_summary): Likewise.
14948 * lto-section-in.c (lto_new_in_decl_state): Likewise.
14949 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
14950 (input_eh_region): Likewise.
14951 (input_eh_lp): Likewise.
14952 (input_cfg): Likewise.
14953 * optabs.c (set_optab_libfunc): Likewise.
14954 (init_tree_optimization_optabs): Likewise.
14955 (set_conv_libfunc): Likewise.
14956 * passes.c (do_per_function_toporder): Likewise.
14957 * rtl.h: Don't use variable_size gty attribute.
14958 * sese.c (if_region_set_false_region): Adjust.
14959 * stringpool.c (gt_pch_save_stringpool): Likewise.
14960 * target-globals.c (save_target_globals): Likewise.
14961 * toplev.c (general_init): Likewise.
14962 * trans-mem.c (record_tm_replacement): Likewise.
14963 (split_bb_make_tm_edge): Likewise.
14964 * tree-cfg.c (move_sese_region_to_fn): Likewise.
14965 * tree-data-ref.h (lambda_vector_new): Likewise.
14966 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
14967 * tree-iterator.c (tsi_link_before): Likewise.
14968 (tsi_link_after): Likewise.
14969 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
14970 * tree-ssa-loop-niter.c (record_estimate): Likewise.
14971 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
14972 * tree-ssa-operands.h: Don't use variable_size gty attribute.
14973 * tree-ssa.c (init_tree_ssa): Adjust.
14974 * tree-ssanames.c (set_range_info): Likewise.
14975 (get_ptr_info): Likewise.
14976 (duplicate_ssa_name_ptr_info): Likewise.
14977 (duplicate_ssa_name_range_info): Likewise.
14978 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
14979 (unpack_ts_fixed_cst_value_fields): Likewise.
14980 * tree.c (build_fixed): Likewise.
14981 (build_real): Likewise.
14982 (build_string): Likewise.
14983 (decl_priority_info): Likewise.
14984 (decl_debug_expr_insert): Likewise.
14985 (decl_value_expr_insert): Likewise.
14986 (decl_debug_args_insert): Likewise.
14987 (type_hash_add): Likewise.
14988 (build_omp_clause): Likewise.
14989 * ubsan.c (decl_for_type_insert): Likewise.
14990 * varasm.c (get_unnamed_section): Likewise.
14991 (get_noswitch_section): Likewise.
14992 (get_section): Likewise.
14993 (get_block_for_section): Likewise.
14994 (create_block_symbol): Likewise.
14995 (build_constant_desc): Likewise.
14996 (create_constant_pool): Likewise.
14997 (force_const_mem): Likewise.
14998 (record_tm_clone_pair): Likewise.
14999 * varpool.c (varpool_create_empty_node): Likewise.
15001 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15003 * dwarf2out.c (tree_add_const_value_attribute): Call
15004 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15005 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15006 instead of ggc_internal_<x>alloc_stat.
15007 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15008 (ggc_realloc): Likewise.
15009 * ggc-none.c (ggc_internal_alloc): Likewise.
15010 (ggc_internal_cleared_alloc): Likewise.
15011 * ggc-page.c: Likewise.
15012 * ggc.h (ggc_internal_alloc_stat): Likewise.
15013 (ggc_internal_alloc): Remove macro.
15014 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15015 (ggc_internal_cleared_alloc): Remove macro.
15016 (GGC_RESIZEVEC): Adjust.
15017 (ggc_resizevar): Remove macro.
15018 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15019 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15020 (ggc_internal_vec_cleared_alloc): Remove macro.
15021 (ggc_alloc_atomic_stat): Drop _stat suffix.
15022 (ggc_alloc_atomic): Remove macro.
15023 (ggc_alloc_cleared_atomic): Remove macro.
15024 (ggc_alloc_string_stat): Drop _stat suffix.
15025 (ggc_alloc_string): Remove macro.
15026 (ggc_alloc_rtx_def_stat): Adjust.
15027 (ggc_alloc_tree_node_stat): Likewise.
15028 (ggc_alloc_cleared_tree_node_stat): Likewise.
15029 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15030 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15031 * gimple.c (gimple_build_omp_for): Likewise.
15032 (gimple_copy): Likewise.
15033 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15034 * toplev.c (realloc_for_line_map): Adjust.
15035 * tree-data-ref.h (lambda_vector_new): Likewise.
15036 * tree-phinodes.c (allocate_phi_node): Likewise.
15037 * tree.c (grow_tree_vec_stat): Likewise.
15038 * vec.h (va_gc::reserve): Adjust.
15040 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15042 * config/microblaze/microblaze.c (break_handler): New Declaration.
15043 (microblaze_break_function_p,microblaze_is_break_handler): New.
15044 (compute_frame_size): Use microblaze_break_function_p.
15045 Add the test of break_handler.
15046 (microblaze_function_prologue) : Add the test of variable
15047 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15048 (microblaze_function_epilogue) : Add the test of break_handler.
15049 (microblaze_globalize_label) : Add the test of break_handler.
15050 Check the name by BREAK_HANDLER_NAME.
15052 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15054 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15055 microblaze_is_break_handler test.
15056 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15057 Use SYMBOL_REF_DECL.
15059 * config/microblaze/microblaze-protos.h
15060 (microblaze_break_function_p,microblaze_is_break_handler):
15063 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15064 new MicroBlaze break_handler functions.
15066 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15068 * doc/extend.texi (Size of an asm): Move node text according
15069 to its @menu entry position.
15071 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15073 PR tree-optimization/61140
15074 PR tree-optimization/61150
15075 PR tree-optimization/61197
15076 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15078 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15080 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15082 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15084 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15085 __SIZEOF_INT128__ is defined.
15087 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15089 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15090 (rs6000_delegitimize_address): Use it.
15092 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15094 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15095 inplace argument. Store the new address in the original MEM when true.
15096 * emit-rtl.c (change_address_1): Likewise.
15097 (adjust_address_1, adjust_automodify_address_1, offset_address):
15098 Update accordingly.
15099 * rtl.h (plus_constant): Add an inplace argument.
15100 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15101 when true. Avoid generating (plus X (const_int 0)).
15102 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15103 in-place. Pass true to plus_constant.
15104 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15106 2014-05-16 Dehao Chen <dehao@google.com>
15108 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15110 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15113 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15115 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15117 2014-05-16 Dehao Chen <dehao@google.com>
15119 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15120 optimize_function_for_size_p.
15121 * regs.h (REG_FREQ_FROM_BB): Likewise.
15123 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15126 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15127 negt_reg_operand cases.
15128 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15130 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15132 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15134 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15137 2014-05-16 David Malcolm <dmalcolm@redhat.com>
15140 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15142 * tree-cfg.c (dump_function_to_file): Dump the return type of
15143 functions, in a line to itself before the function body, mimicking
15144 the layout of a C function.
15146 2014-05-16 Dehao Chen <dehao@google.com>
15148 * cfghooks.c (make_forwarder_block): Use direct computation to
15149 get fall-through edge's count and frequency.
15151 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
15153 * config/arc/arc.c (arc_init): Fix typo in error message.
15154 * config/i386/i386.c (ix86_expand_builtin): Likewise.
15155 (split_stack_prologue_scratch_regno): Likewise.
15156 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
15157 word from error message.
15159 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15161 * ira-costs.c: Fix typo in comment.
15163 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
15165 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
15167 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
15169 * varpool.c (dump_varpool_node): Dump write-only flag.
15170 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
15172 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
15173 write-only variables.
15174 * ipa.c (process_references): New function.
15175 (set_readonly_bit): New function.
15176 (set_writeonly_bit): New function.
15177 (clear_addressable_bit): New function.
15178 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
15179 fix handling of aliases.
15180 * cgraph.h (struct varpool_node): Add writeonly flag.
15182 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
15184 PR rtl-optimization/60969
15185 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
15186 Calculate costs for this case.
15188 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
15190 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
15191 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
15193 2014-05-16 Richard Biener <rguenther@suse.de>
15195 PR tree-optimization/61194
15196 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
15197 bool patterns ending in a COND_EXPR.
15199 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15201 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
15203 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15205 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
15206 where we were unable to cost an RTX.
15208 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15210 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
15213 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15214 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15216 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
15218 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15219 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15221 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
15222 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
15224 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15225 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15227 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
15230 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15231 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15233 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15236 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15237 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15239 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
15240 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
15242 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15243 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15245 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15246 rotates and shifts.
15248 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15249 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15251 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
15252 ZERO_EXTEND and SIGN_EXTEND better.
15254 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15255 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15257 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
15258 logical operations.
15260 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15261 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15263 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
15264 costs when costing loads and stores to memory.
15266 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15267 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
15269 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
15272 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15274 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
15276 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15277 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15279 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
15281 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
15283 (aarch64_rtx_mult_cost): New.
15284 (aarch64_rtx_costs): Use it, refactor as appropriate.
15286 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15287 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15289 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
15290 emit instructions, return number of instructions which would
15292 (aarch64_add_constant): Update call to aarch64_build_constant.
15293 (aarch64_output_mi_thunk): Likewise.
15294 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
15297 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15299 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
15300 (TARGET_RTX_COSTS): Call it.
15302 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15304 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
15305 (cortexa57_vector_cost): Likewise.
15306 (cortexa57_tunings): Use them.
15308 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15310 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
15311 (cpu_addrcost_table): Use it.
15312 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
15313 (aarch64_address_cost): Rewrite using aarch64_classify_address,
15316 2014-05-16 Richard Biener <rguenther@suse.de>
15318 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
15319 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
15320 (visit_phi): Ignore edges marked as not executable.
15321 (class cond_dom_walker): New.
15322 (cond_dom_walker::before_dom_children): Value-number
15323 control statements and mark successor edges as not
15324 executable if possible.
15325 (run_scc_vn): First walk all control statements in
15326 dominator order, marking edges as not executable.
15327 * tree-inline.c (copy_edges_for_bb): Be not confused
15328 about random edge flags.
15330 2014-05-16 Richard Biener <rguenther@suse.de>
15332 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
15334 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
15337 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
15338 (__TM_simple_begin): Use it.
15339 (__TM_begin): Likewise.
15341 2014-05-15 Martin Jambor <mjambor@suse.cz>
15344 * ipa-prop.c (update_indirect_edges_after_inlining): Check
15345 type_preserved flag when the indirect edge is polymorphic.
15347 2014-05-15 Martin Jambor <mjambor@suse.cz>
15349 PR tree-optimization/61090
15350 * tree-sra.c (sra_modify_expr): Pass the current gsi to
15351 build_ref_for_model.
15353 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15355 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
15356 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
15358 2014-05-15 Jakub Jelinek <jakub@redhat.com>
15360 PR tree-optimization/61158
15361 * fold-const.c (fold_binary_loc): If X is zero-extended and
15362 shiftc >= prec, make sure zerobits is all ones instead of
15363 invoking undefined behavior.
15365 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15367 * regcprop.h: New file.
15368 * regcprop.c (skip_debug_insn_p): New decl.
15369 (replace_oldest_value_reg): Check skip_debug_insn_p.
15370 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
15371 * shrink-wrap.c: Include regcprop.h.
15372 (prepare_shrink_wrap): Call
15373 copyprop_hardreg_forward_bb_without_debug_insn.
15375 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15377 * shrink-wrap.h: Update comment.
15378 * shrink-wrap.c: Update comment.
15379 (next_block_for_reg): Rename to live_edge_for_reg.
15380 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
15381 (move_insn_for_shrink_wrap): Split live_edge.
15382 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
15384 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
15386 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
15388 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
15389 * config/sparc/sparc.md (fptype_ut699): New attribute.
15390 (in_branch_delay): Return false if -mfix-ut699 is specified and
15391 fptype_ut699 is set to single.
15392 (truncdfsf2): Add fptype_ut699 attribute.
15393 (fix_truncdfsi2): Likewise.
15394 (floatsisf2): Change fptype attribute.
15395 (fix_truncsfsi2): Likewise.
15396 (negtf2_notv9): Delete.
15397 (negtf2_v9): Likewise.
15398 (negtf2_hq): New instruction.
15399 (negtf2): New instruction and splitter.
15400 (negdf2_notv9): Rewrite.
15401 (abstf2_notv9): Delete.
15402 (abstf2_hq_v9): Likewise.
15403 (abstf2_v9): Likewise.
15404 (abstf2_hq): New instruction.
15405 (abstf2): New instruction and splitter.
15406 (absdf2_notv9): Rewrite.
15408 2014-05-14 Cary Coutant <ccoutant@google.com>
15411 * opts.c (common_handle_option): Don't special-case "-g".
15412 (set_debug_level): Default to at least level 2 with "-g".
15414 2014-05-14 DJ Delorie <dj@redhat.com>
15416 * config/msp430/msp430.c (msp430_builtin): Add
15417 MSP430_BUILTIN_DELAY_CYCLES.
15418 (msp430_init_builtins): Register void __delay_cycles(long long).
15419 (msp430_builtin_decl): Add it.
15420 (cg_magic_constant): New.
15421 (msp430_expand_delay_cycles): New.
15422 (msp430_expand_builtin): Call it.
15423 (msp430_print_operand_raw): Change integer printing from "int" to
15425 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
15426 (delay_cycles_start): New.
15427 (delay_cycles_end): New.
15428 (delay_cycles_32): New.
15429 (delay_cycles_32x): New.
15430 (delay_cycles_16): New.
15431 (delay_cycles_16x): New.
15432 (delay_cycles_2): New.
15433 (delay_cycles_1): New.
15434 * doc/extend.texi: Document __delay_cycles().
15436 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
15438 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
15439 length attribute computation.
15441 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
15444 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
15446 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
15449 * config/sparc/sparc.md: Fix types of low and high in DI constant
15450 splitter. Use gen_int_mode in some other splitters.
15452 2014-05-14 Martin Jambor <mjambor@suse.cz>
15455 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
15457 2014-05-14 James Norris <jnorris@codesourcery.com>
15459 * omp-low.c (expand_parallel_call): Remove shadow variable.
15460 (expand_omp_taskreg): Likewise.
15462 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
15464 * common/config/i386/i386-common.c
15465 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
15466 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
15467 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
15468 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
15469 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
15470 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
15471 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
15472 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
15473 xsavecintrin.h, xsavesintrin.h.
15474 (x86_64-*-*): Ditto.
15475 * config/i386/clflushoptintrin.h: New.
15476 * config/i386/xsavecintrin.h: Ditto.
15477 * config/i386/xsavesintrin.h: Ditto.
15478 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
15479 (bit_XSAVES): Ditto.
15480 (bit_XSAVES): Ditto.
15481 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
15482 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
15484 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15485 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
15486 OPTION_MASK_ISA_XSAVES.
15487 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
15488 -mxsavec, -mxsaves.
15489 (PTA_CLFLUSHOPT) Define.
15490 (PTA_XSAVEC): Ditto.
15491 (PTA_XSAVES): Ditto.
15492 (ix86_option_override_internal): Handle new options.
15493 (ix86_valid_target_attribute_inner_p): Ditto.
15494 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
15495 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
15496 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
15497 (bdesc_special_args): Add __builtin_ia32_xsaves,
15498 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
15499 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
15500 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
15501 (ix86_expand_builtin): Handle new builtins.
15502 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
15503 (TARGET_CLFLUSHOPT_P): Ditto.
15504 (TARGET_XSAVEC): Ditto.
15505 (TARGET_XSAVEC_P): Ditto.
15506 (TARGET_XSAVES): Ditto.
15507 (TARGET_XSAVES_P): Ditto.
15508 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
15509 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
15510 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
15512 (ANY_XRSTOR64): Ditto.
15514 (xrstor): Change into <xrstor>.
15515 (xrstor_rex64): Change into <xrstor>_rex64.
15516 (xrstor64): Change into <xrstor>64
15518 * config/i386/i386.opt (mclflushopt): New.
15521 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
15523 * doc/invoke.texi: Document new options.
15525 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
15527 PR rtl-optimization/60866
15528 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
15529 Default it to -1. Pass it down to init_simplejump_data.
15530 (init_simplejump_data): New parameter old_seqno. Pass it down
15531 to get_seqno_for_a_jump.
15532 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
15533 initializing new jump seqno as a last resort. Add comment.
15534 (sel_redirect_edge_and_branch): Save old seqno of the conditional
15535 jump and pass it down to sel_init_new_insn.
15536 (sel_redirect_edge_and_branch_force): Likewise.
15538 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
15540 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
15541 shifted values to avoid build warning.
15543 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
15545 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
15546 * cfgrtl.c (rtl_merge_blocks): Fix comment.
15547 (cfg_layout_merge_blocks): Likewise.
15548 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
15550 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
15552 PR rtl-optimization/60901
15553 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
15554 bb predecessor belongs to the same scheduling region. Adjust comment.
15556 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
15558 * doc/sourcebuild.texi: (dfp_hw): Document.
15559 (p8vector_hw): Likewise.
15560 (powerpc_eabi_ok): Likewise.
15561 (powerpc_elfv2): Likewise.
15562 (powerpc_htm_ok): Likewise.
15563 (ppc_recip_hw): Likewise.
15564 (vsx_hw): Likewise.
15566 2014-05-13 Cary Coutant <ccoutant@google.com>
15568 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
15570 2014-05-13 David Malcolm <dmalcolm@redhat.com>
15572 * gengtype-parse.c (require3): Eliminate in favor of...
15574 (require_template_declaration): Update to support optional single *
15577 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
15578 (create_user_defined_type): Handle a single level of explicit
15579 pointerness within template arguments.
15580 (struct write_types_data): Add field "kind".
15581 (filter_type_name): Handle "*" character.
15582 (write_user_func_for_structure_ptr): Require a write_types_data
15583 rather than just a prefix string, so that we can look up the kind
15584 of the wtd and use it as an index into wrote_user_func_for_ptr,
15585 ensuring that such functions are written at most once. Support
15586 subclasses by invoking the marking function of the ultimate base class.
15587 (write_user_func_for_structure_body): Require a write_types_data
15588 rather than just a prefix string, so that we can pass this to
15589 write_user_func_for_structure_ptr.
15590 (write_func_for_structure): Likewise.
15591 (ggc_wtd): Add initializer of new "kind" field.
15592 (pch_wtd): Likewise.
15594 * gengtype.h (enum write_types_kinds): New.
15595 (struct type): Add field wrote_user_func_for_ptr to the "s"
15598 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
15600 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
15601 instead of const_binop.
15602 (fold_binary_loc): Likewise.
15604 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
15606 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
15607 calculation to match get_ref_base_and_extent.
15609 2014-05-13 Catherine Moore <clm@codesourcery.com>
15610 Sandra Loosemore <sandra@codesourcery.com>
15612 * configure.ac: Fix assembly for explicit JALR relocation check.
15613 * configure: Regenerate.
15615 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15617 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
15618 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
15619 Remove associated type declarations and initialisations.
15620 (arm_expand_neon_builtin): Likewise.
15621 (neon_emit_pair_result_insn): Delete.
15622 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
15623 * config/arm/neon.md (neon_vtrn<mode>): Delete.
15624 (neon_vzip<mode>): Likewise.
15625 (neon_vuzp<mode>): Likewise.
15627 2014-05-13 Richard Biener <rguenther@suse.de>
15630 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
15631 it needs revisiting whether the call still may be tail-called.
15633 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15635 * rtl.def (SYMBOL_REF): Remove middle "0" field.
15636 * rtl.h (block_symbol): Reduce number of fields to 2.
15637 (rtx_def): Add u2.symbol_ref_flags.
15638 (SYMBOL_REF_FLAGS): Use it.
15639 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
15640 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
15641 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
15642 Lower index of SYMBOL_REF_DATA.
15643 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
15644 Print SYMBOL_REF_FLAGS at the same time.
15645 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
15647 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15649 * rtl.def (VAR_LOCATION): Remove "i" field.
15650 * rtl.h (rtx_def): Add u2.var_location_status.
15651 (PAT_VAR_LOCATION_STATUS): Use it.
15652 (gen_rtx_VAR_LOCATION): Declare.
15653 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
15654 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
15655 * var-tracking.c (emit_note_insn_var_location): Remove casts.
15657 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15659 * rtl.def (scratch): Fix outdated comment and remove "0" field.
15660 * gengtype.c (adjust_field_rtx_def): Update accordingly.
15662 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15664 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
15665 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
15666 * rtl.h (rtx_def): Add insn_uid to u2 field.
15667 (RTX_FLAG_CHECK8): Delete in favor of...
15668 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
15669 (INSN_DELETED_P): Update accordingly.
15670 (INSN_UID): Use u2.insn_uid.
15671 (INSN_CHAIN_CODE_P): Define.
15672 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
15673 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
15674 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
15675 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
15676 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
15677 indices accordingly.
15678 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
15679 Update indices for insn-chain rtxes.
15680 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
15681 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
15682 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
15683 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
15684 * combine.c (try_combine): Likewise.
15685 * ira.c (setup_prohibited_mode_move_regs): Likewise.
15687 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15689 * rtl.def (REG): Remove middle field.
15690 * rtl.h (rtx_def): Add orignal_regno to u2.
15691 (ORIGINAL_REGNO): Use it instead of field 1.
15692 (REG_ATTRS): Lower field index accordingly.
15693 * gengtype.c (adjust_field_rtx_def): Remove handling of
15694 ORIGINAL_REGNO. Move REG_ATTRS index down.
15695 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
15696 code that prints the REGNO.
15698 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15700 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
15703 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15705 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
15707 2014-05-13 Bin Cheng <bin.cheng@arm.com>
15709 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
15710 (alloc_iv): Lower base expressions containing ADDR_EXPR.
15712 2014-05-13 Ian Bolton <ian.bolton@arm.com>
15714 * config/aarch64/aarch64-protos.h
15715 (aarch64_hard_regno_caller_save_mode): New prototype.
15716 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
15718 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
15720 2014-05-13 Christian Bruel <christian.bruel@st.com>
15722 * target.def (mode_switching): New hook vector.
15723 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
15724 (mode_exit, modepriority_to_mode): Likewise.
15725 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
15726 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15727 * target.h: Include tm.h and hard-reg-set.h.
15728 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
15729 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
15730 * doc/tm.texi Regenerate.
15731 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
15732 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15733 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
15734 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
15735 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
15736 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15737 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
15738 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
15739 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
15740 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
15741 (ix86_emit_mode_set): Hookify.
15742 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
15744 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15745 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
15746 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
15747 (epiphany_mode_priority_to_mode): Remove declaration.
15748 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
15749 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
15750 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
15752 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
15753 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
15754 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
15756 2014-05-13 Jakub Jelinek <jakub@redhat.com>
15759 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
15760 is const0_rtx, return immediately. Don't test count == 0 when
15763 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15765 * Makefile.in: add shrink-wrap.o.
15766 * config/i386/i386.c: include "shrink-wrap.h"
15767 * function.c: Likewise.
15768 (requires_stack_frame_p, next_block_for_reg,
15769 move_insn_for_shrink_wrap, prepare_shrink_wrap,
15770 dup_block_and_redirect): Move to shrink-wrap.c
15771 (thread_prologue_and_epilogue_insns): Extract three code segments
15772 as functions in shrink-wrap.c
15773 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
15775 * shrink-wrap.c: New file.
15776 * shrink-wrap.h: New file.
15778 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
15780 * doc/extend.texi: Reflect current numbers of pragmas. Remove
15781 reference to Solaris.
15783 2014-05-12 Mike Stump <mikestump@comcast.net>
15786 * genattrtab.c (filename): Add.
15787 (convert_set_attr_alternative): Improve error message.
15788 (check_defs): Restore read_md_filename for error messages.
15789 (gen_insn): Save filename.
15791 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
15793 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
15794 -fno-local-ivars and -fivar-visibility.
15795 * c-family/c.opt: Make -Wshadow also implicitly enable
15798 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
15800 * doc/tm.texi: Remove reference to deleted macro.
15801 * doc/tm.texi.in: Likewise.
15803 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15806 * config/avr/avr.c (avr_out_store_psi): Use correct constant
15809 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
15812 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
15813 * config/arm/aout.h (License): Same.
15814 * config/arm/bpabi.h (License): Same.
15815 * config/arm/elf.h (License): Same.
15816 * config/arm/linux-elf.h (License): Same.
15817 * config/arm/linux-gas.h (License): Same.
15818 * config/arm/netbsd-elf.h (License): Same.
15819 * config/arm/uclinux-eabi.h (License): Same.
15820 * config/arm/uclinux-elf.h (License): Same.
15821 * config/arm/vxworks.h (License): Same.
15823 2014-05-11 Jakub Jelinek <jakub@redhat.com>
15825 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
15826 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
15827 number of operands to 3.
15828 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
15829 * tree-nested.c (convert_nonlocal_omp_clauses,
15830 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
15831 * gimplify.c (gimplify_scan_omp_clauses): Handle
15832 OMP_CLAUSE_LINEAR_STMT.
15833 * omp-low.c (lower_rec_input_clauses): Fix typo.
15834 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
15835 cast between Fortran boolean_type_node and C _Bool if
15838 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
15840 PR tree-optimization/61136
15841 * wide-int.h (multiple_of_p): Define a version that doesn't return
15843 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
15844 integer_zerop/const_binop pair.
15845 (multiple_of_p): Likewise, converting both operands to widest_int
15848 2014-05-09 Teresa Johnson <tejohnson@google.com>
15850 * cgraphunit.c (analyze_functions): Use correct dump file.
15852 2014-05-09 Florian Weimer <fweimer@redhat.com>
15854 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
15856 (stack_protect_return_slot_p): New function.
15857 (expand_used_vars): Call stack_protect_decl_p and
15858 stack_protect_return_slot_p for -fstack-protector-strong.
15860 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
15861 Andrew Haley <aph@redhat.com>
15862 Richard Sandiford <rdsandiford@googlemail.com>
15864 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
15867 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
15869 PR middle-end/61111
15870 * fold-const.c (fold_binary_loc): Changed width of mask.
15872 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
15874 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
15875 unsigned int initializers for regno_in, regno_out.
15877 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
15880 * config/avr/avr.md (cc): Add new attribute set_vzn.
15881 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
15882 Set cc insn attribute to set_vzn instead of set_zn for alternatives
15883 with INC, DEC or NEG.
15884 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
15885 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
15886 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
15888 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15891 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15893 * wide-int.cc (UTItype): Define.
15894 (UDWtype): Define for appropriate W_TYPE_SIZE.
15896 2014-05-09 Richard Biener <rguenther@suse.de>
15898 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
15899 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
15900 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
15901 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
15902 ssa_propagate): Adjust.
15904 2014-05-08 Jeff Law <law@redhat.com>
15906 PR tree-optimization/61009
15907 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
15908 tri-state rather than a boolean. When a block is too big to
15909 thread through, inform caller via negative return value.
15910 (thread_across_edge): If a block was too big for normal threading,
15911 then it's too big for a joiner too, so remove temporary equivalences
15912 and return immediately.
15914 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
15915 Matthias Klose <doko@ubuntu.com>
15918 * optc-gen.awk: Fix option handling for -Wunused-parameter.
15920 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
15923 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
15925 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
15928 * config/alpha/alpha.c: Include gimple-iterator.h.
15929 (alpha_gimple_fold_builtin): New function. Move
15930 ALPHA_BUILTIN_UMULH folding from ...
15931 (alpha_fold_builtin): ... here.
15932 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
15934 2014-05-08 Wei Mi <wmi@google.com>
15937 * config/i386/i386.c (ix86_compute_frame_layout): Update
15938 preferred_stack_boundary for call, expanded from tls descriptor.
15939 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
15940 to depend on SP register.
15941 (*tls_local_dynamic_base_32_gnu): Ditto.
15942 (*tls_local_dynamic_32_once): Ditto.
15943 (tls_global_dynamic_64_<mode>): Set
15944 ix86_tls_descriptor_calls_expanded_in_cfun.
15945 (tls_local_dynamic_base_64_<mode>): Ditto.
15946 (tls_global_dynamic_32): Set
15947 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
15948 to depend on SP register.
15949 (tls_local_dynamic_base_32): Ditto.
15951 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15953 * config/arm/arm_neon.h: Update comment.
15954 * config/arm/neon-docgen.ml: Delete.
15955 * config/arm/neon-gen.ml: Delete.
15956 * doc/arm-neon-intrinsics.texi: Update comment.
15958 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15960 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
15962 (vand, vorr, veor, vorn, vbic): Remove.
15963 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
15965 (neon_vsub_unspec): Likewise.
15966 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
15968 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15970 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
15971 (vadd_s16): Likewise.
15972 (vadd_s32): Likewise.
15973 (vadd_f32): Likewise.
15974 (vadd_u8): Likewise.
15975 (vadd_u16): Likewise.
15976 (vadd_u32): Likewise.
15977 (vadd_s64): Likewise.
15978 (vadd_u64): Likewise.
15979 (vaddq_s8): Likewise.
15980 (vaddq_s16): Likewise.
15981 (vaddq_s32): Likewise.
15982 (vaddq_s64): Likewise.
15983 (vaddq_f32): Likewise.
15984 (vaddq_u8): Likewise.
15985 (vaddq_u16): Likewise.
15986 (vaddq_u32): Likewise.
15987 (vaddq_u64): Likewise.
15988 (vmul_s8): Likewise.
15989 (vmul_s16): Likewise.
15990 (vmul_s32): Likewise.
15991 (vmul_f32): Likewise.
15992 (vmul_u8): Likewise.
15993 (vmul_u16): Likewise.
15994 (vmul_u32): Likewise.
15995 (vmul_p8): Likewise.
15996 (vmulq_s8): Likewise.
15997 (vmulq_s16): Likewise.
15998 (vmulq_s32): Likewise.
15999 (vmulq_f32): Likewise.
16000 (vmulq_u8): Likewise.
16001 (vmulq_u16): Likewise.
16002 (vmulq_u32): Likewise.
16003 (vsub_s8): Likewise.
16004 (vsub_s16): Likewise.
16005 (vsub_s32): Likewise.
16006 (vsub_f32): Likewise.
16007 (vsub_u8): Likewise.
16008 (vsub_u16): Likewise.
16009 (vsub_u32): Likewise.
16010 (vsub_s64): Likewise.
16011 (vsub_u64): Likewise.
16012 (vsubq_s8): Likewise.
16013 (vsubq_s16): Likewise.
16014 (vsubq_s32): Likewise.
16015 (vsubq_s64): Likewise.
16016 (vsubq_f32): Likewise.
16017 (vsubq_u8): Likewise.
16018 (vsubq_u16): Likewise.
16019 (vsubq_u32): Likewise.
16020 (vsubq_u64): Likewise.
16021 (vand_s8): Likewise.
16022 (vand_s16): Likewise.
16023 (vand_s32): Likewise.
16024 (vand_u8): Likewise.
16025 (vand_u16): Likewise.
16026 (vand_u32): Likewise.
16027 (vand_s64): Likewise.
16028 (vand_u64): Likewise.
16029 (vandq_s8): Likewise.
16030 (vandq_s16): Likewise.
16031 (vandq_s32): Likewise.
16032 (vandq_s64): Likewise.
16033 (vandq_u8): Likewise.
16034 (vandq_u16): Likewise.
16035 (vandq_u32): Likewise.
16036 (vandq_u64): Likewise.
16037 (vorr_s8): Likewise.
16038 (vorr_s16): Likewise.
16039 (vorr_s32): Likewise.
16040 (vorr_u8): Likewise.
16041 (vorr_u16): Likewise.
16042 (vorr_u32): Likewise.
16043 (vorr_s64): Likewise.
16044 (vorr_u64): Likewise.
16045 (vorrq_s8): Likewise.
16046 (vorrq_s16): Likewise.
16047 (vorrq_s32): Likewise.
16048 (vorrq_s64): Likewise.
16049 (vorrq_u8): Likewise.
16050 (vorrq_u16): Likewise.
16051 (vorrq_u32): Likewise.
16052 (vorrq_u64): Likewise.
16053 (veor_s8): Likewise.
16054 (veor_s16): Likewise.
16055 (veor_s32): Likewise.
16056 (veor_u8): Likewise.
16057 (veor_u16): Likewise.
16058 (veor_u32): Likewise.
16059 (veor_s64): Likewise.
16060 (veor_u64): Likewise.
16061 (veorq_s8): Likewise.
16062 (veorq_s16): Likewise.
16063 (veorq_s32): Likewise.
16064 (veorq_s64): Likewise.
16065 (veorq_u8): Likewise.
16066 (veorq_u16): Likewise.
16067 (veorq_u32): Likewise.
16068 (veorq_u64): Likewise.
16069 (vbic_s8): Likewise.
16070 (vbic_s16): Likewise.
16071 (vbic_s32): Likewise.
16072 (vbic_u8): Likewise.
16073 (vbic_u16): Likewise.
16074 (vbic_u32): Likewise.
16075 (vbic_s64): Likewise.
16076 (vbic_u64): Likewise.
16077 (vbicq_s8): Likewise.
16078 (vbicq_s16): Likewise.
16079 (vbicq_s32): Likewise.
16080 (vbicq_s64): Likewise.
16081 (vbicq_u8): Likewise.
16082 (vbicq_u16): Likewise.
16083 (vbicq_u32): Likewise.
16084 (vbicq_u64): Likewise.
16085 (vorn_s8): Likewise.
16086 (vorn_s16): Likewise.
16087 (vorn_s32): Likewise.
16088 (vorn_u8): Likewise.
16089 (vorn_u16): Likewise.
16090 (vorn_u32): Likewise.
16091 (vorn_s64): Likewise.
16092 (vorn_u64): Likewise.
16093 (vornq_s8): Likewise.
16094 (vornq_s16): Likewise.
16095 (vornq_s32): Likewise.
16096 (vornq_s64): Likewise.
16097 (vornq_u8): Likewise.
16098 (vornq_u16): Likewise.
16099 (vornq_u32): Likewise.
16100 (vornq_u64): Likewise.
16102 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16104 * wide-int.cc (UTItype): Define.
16105 (UDWtype): Define for appropriate W_TYPE_SIZE.
16107 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16109 PR tree-optimization/59100
16110 * tree-ssa-phiopt.c: Include tree-inline.h.
16111 (neutral_element_p, absorbing_element_p): New functions.
16112 (value_replacement): Handle conditional binary operations with a
16113 neutral or absorbing element.
16115 2014-05-08 Richard Biener <rguenther@suse.de>
16117 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16118 folding the expression.
16119 (valueize_expr): Remove.
16120 (visit_reference_op_load): Do not valueize the result of
16122 (simplify_binary_expression): Likewise.
16123 (simplify_unary_expression): Likewise.
16125 2014-05-08 Richard Biener <rguenther@suse.de>
16127 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16128 looking at TYPE_ARG_TYPES.
16130 2014-05-08 Richard Biener <rguenther@suse.de>
16132 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16133 pointer propagation special-case.
16135 2014-05-08 Bin Cheng <bin.cheng@arm.com>
16137 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16138 core part of address expressions.
16140 2014-05-08 Alan Modra <amodra@gmail.com>
16143 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16144 loads and stores when -mno-strict-align at any alignment.
16145 (expand_block_clear): Similarly. Also correct calculation of
16148 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16150 PR middle-end/39246
16151 * tree-complex.c (expand_complex_move): Keep line info when expanding
16153 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16154 of complex expression. Use new argument to display correct location
16155 for values coming from phi statement.
16156 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
16157 (warn_uninitialized_phi): Pass location of phi argument to
16159 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
16160 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
16162 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16164 * config/rs6000/predicates.md (indexed_address_mem): New.
16165 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
16166 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
16167 fpstore_ux, fpstore_u.
16168 (sign_extend, indexed, update): New.
16169 (cell_micro): Adjust.
16170 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
16171 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
16172 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
16173 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
16174 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
16175 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
16176 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
16177 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
16178 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
16179 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
16180 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
16181 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
16182 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
16183 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
16184 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
16186 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
16187 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
16188 *vsx_extract_<mode>_store): Adjust.
16189 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
16190 is_cracked_insn, insn_must_be_first_in_group,
16191 insn_must_be_last_in_group): Adjust.
16193 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
16195 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
16196 ppc440-fpstore): Adjust.
16197 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
16198 ppc476-fpstore): Adjust.
16199 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
16200 ppc601-fpstore): Adjust.
16201 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
16203 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
16205 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
16206 ppc7450-fpstore): Adjust.
16207 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
16208 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
16209 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
16211 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
16212 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
16213 cell-fpstore, cell-fpstore-update): Adjust.
16214 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
16215 ppce300c3_store, ppce300c3_fpstore): Adjust.
16216 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
16217 e500mc_fpstore): Adjust.
16218 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
16219 e500mc64_store, e500mc64_fpstore): Adjust.
16220 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
16221 e5500_fpstore): Adjust.
16222 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
16223 e6500_fpstore): Adjust.
16224 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
16226 * config/rs6000/power4.md (power4-load, power4-load-ext,
16227 power4-load-ext-update, power4-load-ext-update-indexed,
16228 power4-load-update-indexed, power4-load-update, power4-fpload,
16229 power4-fpload-update, power4-store, power4-store-update,
16230 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
16232 * config/rs6000/power5.md (power5-load, power5-load-ext,
16233 power5-load-ext-update, power5-load-ext-update-indexed,
16234 power5-load-update-indexed, power5-load-update, power5-fpload,
16235 power5-fpload-update, power5-store, power5-store-update,
16236 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
16238 * config/rs6000/power6.md (power6-load, power6-load-ext,
16239 power6-load-update, power6-load-update-indexed,
16240 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
16241 power6-fpload-update, power6-store, power6-store-update,
16242 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
16244 * config/rs6000/power7.md (power7-load, power7-load-ext,
16245 power7-load-update, power7-load-update-indexed,
16246 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
16247 power7-fpload-update, power7-store, power7-store-update,
16248 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
16250 * config/rs6000/power8.md (power8-load, power8-load-update,
16251 power8-load-ext, power8-load-ext-update, power8-fpload,
16252 power8-fpload-update, power8-store, power8-store-update-indexed,
16253 power8-fpstore, power8-fpstore-update): Adjust.
16254 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
16256 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
16257 titan_lsu_store, titan_lsu_fpstore): Adjust.
16258 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
16260 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16263 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
16264 unrolled byte insns. Emit address increments after move insns.
16266 2014-05-07 David Malcolm <dmalcolm@redhat.com>
16268 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
16269 const_gimple, rather than a gimple.
16270 (gimple_call_builtin_p): Likewise, for the three variants.
16272 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
16273 (gimple_call_builtin_p): Likewise, for the three variants.
16275 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16277 PR tree-optimization/61095
16278 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
16280 2014-05-07 Richard Biener <rguenther@suse.de>
16282 PR tree-optimization/61034
16283 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
16284 (maybe_skip_until): Use translate to take into account
16285 lattices when trying to do disambiguations.
16286 (get_continuation_for_phi_1): Likewise.
16287 (get_continuation_for_phi): Adjust for added translate arguments.
16288 (walk_non_aliased_vuses): Likewise.
16289 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
16290 (walk_non_aliased_vuses): Likewise.
16291 (call_may_clobber_ref_p_1): Declare.
16292 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
16293 calls. Stop early if we are only supposed to disambiguate.
16294 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
16296 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
16298 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
16299 Emit an error when the function has arguments.
16301 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16303 * cfgloop.h (unswitch_loops): Remove.
16304 * doc/passes.texi: Remove references to loop-unswitch.c
16305 * timevar.def (TV_LOOP_UNSWITCH): Remove.
16307 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
16309 * tree-vect-data-refs.c (vect_grouped_load_supported): New
16310 check for loads group of length 3.
16311 (vect_permute_load_chain): New permutations for loads group of
16313 * tree-vect-stmts.c (vect_model_load_cost): Change cost
16314 of vec_perm_shuffle for the new permutations.
16316 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
16318 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
16319 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
16320 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
16321 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
16322 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
16323 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
16324 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
16325 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
16327 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16329 * loop-unswitch.c: Delete.
16331 2014-05-07 Richard Biener <rguenther@suse.de>
16333 * config.gcc: Always set need_64bit_hwint to yes.
16335 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
16337 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
16338 of using optimize_size.
16340 2014-05-06 Mike Stump <mikestump@comcast.net>
16342 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
16344 2014-05-06 Joseph Myers <joseph@codesourcery.com>
16346 * config/i386/sse.md (*mov<mode>_internal)
16347 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
16348 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
16349 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
16350 (*<code><mode>3, *andnot<mode>3<mask_name>)
16351 (<mask_codefor><code><mode>3<mask_name>): Only consider
16352 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
16354 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16357 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
16359 * lra-constraints.c (valid_address_p): Move earlier in file.
16360 Add a constraint argument to the address_info version.
16361 (satisfies_memory_constraint_p): New function.
16362 (satisfies_address_constraint_p): Likewise.
16363 (process_alt_operands, curr_insn_transform): Use them.
16364 (process_address): Pass the constraint to valid_address_p when
16365 checking address operands.
16367 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
16369 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
16370 to their respective blocks. Fix inadvertent use of "node".
16372 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16374 * emit-rtl.c (init_derived_machine_modes): New functionm, split
16376 (init_emit_once): ...here.
16377 * rtl.h (init_derived_machine_modes): Declare.
16378 * toplev.c (do_compile): Call it even if no_backend.
16380 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
16381 Mike Stump <mikestump@comcast.net>
16382 Richard Sandiford <rdsandiford@googlemail.com>
16383 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16385 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
16386 (rtx_equal_for_memref_p): Update comment.
16387 (adjust_offset_for_component_ref): Use wide-int interfaces.
16388 * builtins.c (get_object_alignment_2): Likewise.
16389 (c_readstr): Likewise.
16390 (target_char_cast): Add comment.
16391 (determine_block_size): Use wide-int interfaces.
16392 (expand_builtin_signbit): Likewise.
16393 (fold_builtin_int_roundingfn): Likewise.
16394 (fold_builtin_bitop): Likewise.
16395 (fold_builtin_bswap): Likewise.
16396 (fold_builtin_logarithm): Use signop.
16397 (fold_builtin_pow): Likewise.
16398 (fold_builtin_memory_op): Use wide-int interfaces.
16399 (fold_builtin_object_size): Likewise.
16400 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
16401 nb_iterations_estimate.
16402 (record_niter_bound): Use wide-int interfaces.
16403 (get_estimated_loop_iterations_int): Likewise.
16404 (get_estimated_loop_iterations): Likewise.
16405 (get_max_loop_iterations): Likewise.
16406 * cfgloop.h: Include wide-int.h.
16407 (struct nb_iter_bound): Change bound to widest_int.
16408 (struct loop): Change nb_iterations_upper_bound and
16409 nb_iterations_estimate to widest_int.
16410 (record_niter_bound): Switch to use widest_int.
16411 (get_estimated_loop_iterations): Likewise.
16412 (get_max_loop_iterations): Likewise.
16413 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
16414 update for wide-int.
16415 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
16416 * combine.c (try_combine): Likewise.
16417 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
16418 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
16420 (aarch64_float_const_representable_p): Likewise.
16421 * config/arc/arc.c: Include wide-int.h.
16422 (arc_can_use_doloop_p): Use wide-int interfaces.
16423 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
16424 (vfp3_const_double_index): Likewise.
16425 * config/avr/avr.c (avr_out_round): Likewise.
16426 (avr_fold_builtin): Likewise.
16427 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
16428 (bfin_can_use_doloop_p): Likewise.
16429 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
16430 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
16431 * config/i386/i386.c: Include wide-int.h.
16432 (ix86_data_alignment): Use wide-int interfaces.
16433 (ix86_local_alignment): Likewise.
16434 (ix86_emit_swsqrtsf): Update real_from_integer.
16435 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
16436 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
16437 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
16438 (zero_constant): Likewise.
16439 (input_operand): Likewise.
16440 (splat_input_operand): Likewise.
16441 (non_logical_cint_operand): Change const_double to const_wide_int.
16442 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
16443 (easy_altivec_constant): Remove comment.
16444 (paired_expand_vector_init): Use CONSTANT_P.
16445 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
16446 (rs6000_emit_move): Update checks.
16447 (rs6000_aggregate_candidate): Use wide-int interfaces.
16448 (rs6000_expand_ternop_builtin): Likewise.
16449 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
16450 (rs6000_assemble_integer): Likewise.
16451 (rs6000_hash_constant): Likewise.
16452 (output_toc): Likewise.
16453 (rs6000_rtx_costs): Likewise.
16454 (rs6000_emit_swrsqrt); Update call to real_from_integer.
16455 * config/rs6000/rs6000-c.c: Include wide-int.h.
16456 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
16457 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
16458 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
16459 Handle CONST_WIDE_INT.
16460 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
16461 Use tree_fits_uhwi_p.
16462 * config/sparc/sparc.c: Include wide-int.h.
16463 (sparc_fold_builtin): Use wide-int interfaces.
16464 * config/vax/vax.c: Include wide-int.h.
16465 (vax_float_literal): Use real_from_integer.
16466 * coretypes.h (struct hwivec_def): New.
16468 (const_hwivec): New.
16469 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
16470 (equiv_constant): Handle CONST_WIDE_INT.
16471 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
16472 (cselib_hash_rtx): Handle CONST_WIDE_INT.
16473 * dbxout.c (stabstr_U): Use wide-int interfaces.
16474 (dbxout_type): Update to use cst_fits_shwi_p.
16475 * defaults.h (LOG2_BITS_PER_UNIT): Define.
16476 (TARGET_SUPPORTS_WIDE_INT): Add default.
16477 * dfp.c: Include wide-int.h.
16478 (decimal_real_to_integer2): Use wide-int interfaces and rename to
16479 decimal_real_to_integer.
16480 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
16481 decimal_real_to_integer.
16482 * doc/generic.texi (Constant expressions): Update for wide_int.
16483 * doc/rtl.texi (const_double): Likewise.
16484 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
16485 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
16486 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
16487 (REAL_VALUE_FROM_INT): Remove.
16488 (TARGET_SUPPORTS_WIDE_INT): New.
16489 * doc/tm.texi: Regenerate.
16490 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
16491 * double-int.h: Include wide-int.h.
16492 (struct wi::int_traits): New.
16493 * dwarf2out.c (get_full_len): New.
16494 (dw_val_equal_p): Add case dw_val_class_wide_int.
16495 (size_of_loc_descr): Likewise.
16496 (output_loc_operands): Likewise.
16497 (insert_double): Remove.
16498 (insert_wide_int): New.
16499 (add_AT_wide): New.
16500 (print_die): Add case dw_val_class_wide_int.
16501 (attr_checksum): Likewise.
16502 (attr_checksum_ordered): Likewise.
16503 (same_dw_val_p): Likewise.
16504 (size_of_die): Likewise.
16505 (value_format): Likewise.
16506 (output_die): Likewise.
16507 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
16509 (clz_loc_descriptor): Use wide-int interfaces.
16510 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
16511 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
16512 (round_up_to_align): Use wide-int interfaces.
16513 (field_byte_offset): Likewise.
16514 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
16515 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
16516 CONST_DOUBLE handling. Use wide-int interfaces.
16517 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
16518 (gen_enumeration_type_die): Use add_AT_wide.
16519 (hash_loc_operands): Add case dw_val_class_wide_int.
16520 (compare_loc_operands): Likewise.
16521 * dwarf2out.h: Include wide-int.h.
16522 (wide_int_ptr): New.
16523 (enum dw_val_class): Add dw_val_class_wide_int.
16524 (struct dw_val_struct): Add val_wide.
16525 * emit-rtl.c (const_wide_int_htab): New.
16526 (const_wide_int_htab_hash): New.
16527 (const_wide_int_htab_eq): New.
16528 (lookup_const_wide_int): New.
16529 (const_double_htab_hash): Use wide-int interfaces.
16530 (const_double_htab_eq): Likewise.
16531 (rtx_to_double_int): Conditionally compile for wide-int.
16532 (immed_double_int_const): Rename to immed_wide_int_const and
16533 update for wide-int.
16534 (immed_double_const): Conditionally compile for wide-int.
16535 (init_emit_once): Use wide-int interfaces.
16536 * explow.c (plus_constant): Likewise.
16537 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
16538 (lshift_value): Use wide-int interfaces.
16539 (expand_mult): Likewise.
16540 (choose_multiplier): Likewise.
16541 (expand_smod_pow2): Likewise.
16542 (make_tree): Likewise.
16543 * expr.c (convert_modes): Consolidate handling of constants.
16544 Use wide-int interfaces.
16545 (emit_group_load_1): Add note.
16546 (store_expr): Update comment.
16547 (get_inner_reference): Use wide-int interfaces.
16548 (expand_constructor): Update comment.
16549 (expand_expr_real_2): Use wide-int interfaces.
16550 (expand_expr_real_1): Likewise.
16551 (reduce_to_bit_field_precision): Likewise.
16552 (const_vector_from_tree): Likewise.
16553 * final.c: Include wide-int-print.h.
16554 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
16555 * fixed-value.c: Include wide-int.h.
16556 (fixed_from_string): Use wide-int interfaces.
16557 (fixed_to_decimal): Likewise.
16558 (fixed_convert_from_real): Likewise.
16559 (real_convert_from_fixed): Likewise.
16560 * fold-const.h (mem_ref_offset): Return an offset_int.
16561 (div_if_zero_remainder): Remove code parameter.
16562 * fold-const.c (div_if_zero_remainder): Remove code parameter.
16563 Use wide-int interfaces.
16564 (may_negate_without_overflow_p): Use wide-int interfaces.
16565 (negate_expr_p): Likewise.
16566 (fold_negate_expr): Likewise.
16567 (int_const_binop_1): Likewise.
16568 (const_binop): Likewise.
16569 (fold_convert_const_int_from_int): Likewise.
16570 (fold_convert_const_int_from_real): Likewise.
16571 (fold_convert_const_int_from_fixed): Likewise.
16572 (fold_convert_const_fixed_from_int): Likewise.
16573 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
16574 (sign_bit_p): Use wide-int interfaces.
16575 (make_range_step): Likewise.
16576 (build_range_check): Likewise. Pass an integer of the correct type
16577 instead of using integer_one_node.
16578 (range_predecessor): Pass an integer of the correct type instead
16579 of using integer_one_node.
16580 (range_successor): Likewise.
16581 (merge_ranges): Likewise.
16582 (unextend): Use wide-int interfaces.
16583 (extract_muldiv_1): Likewise.
16584 (fold_div_compare): Likewise.
16585 (fold_single_bit_test): Likewise.
16586 (fold_sign_changed_comparison): Likewise.
16587 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
16588 (fold_plusminus_mult_expr): Use wide-int interfaces.
16589 (native_encode_int): Likewise.
16590 (native_interpret_int): Likewise.
16591 (fold_unary_loc): Likewise.
16592 (pointer_may_wrap_p): Likewise.
16593 (size_low_cst): Likewise.
16594 (mask_with_tz): Likewise.
16595 (fold_binary_loc): Likewise.
16596 (fold_ternary_loc): Likewise.
16597 (multiple_of_p): Likewise.
16598 (tree_call_nonnegative_warnv_p): Update calls to
16599 tree_int_cst_min_precision and real_from_integer.
16600 (fold_negate_const): Use wide-int interfaces.
16601 (fold_abs_const): Likewise.
16602 (fold_relational_const): Use tree_int_cst_lt.
16603 (round_up_loc): Use wide-int interfaces.
16604 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
16605 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
16606 * gengtype.c: Remove include of double-int.h.
16607 (do_typedef): Use wide-int interfaces.
16608 (open_base_files): Add wide-int.h.
16609 (main): Add offset_int and widest_int typedefs.
16610 * gengtype-lex.l: Handle "^".
16611 (CXX_KEYWORD): Add "static".
16612 * gengtype-parse.c (require3): New.
16613 (require_template_declaration): Handle constant template arguments
16614 and nested templates.
16615 * gengtype-state.c: Don't include "double-int.h".
16616 * genpreds.c (write_one_predicate_function): Update comment.
16617 (write_tm_constrs_h): Add check for hval and lval use in
16619 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
16620 (add_to_sequence): Likewise.
16621 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
16622 and const_double_operand.
16623 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
16625 * gimple-fold.c (get_base_constructor): Likewise.
16626 (fold_array_ctor_reference): Likewise.
16627 (fold_nonarray_ctor_reference): Likewise.
16628 (fold_const_aggregate_ref_1): Likewise.
16629 (gimple_val_nonnegative_real_p): Likewise.
16630 (gimple_fold_indirect_ref): Likewise.
16631 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
16632 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
16633 (struct slsr_cand_d): Change index to be widest_int.
16634 (struct incr_info_d): Change incr to be widest_int.
16635 (alloc_cand_and_find_basis): Use wide-int interfaces.
16636 (slsr_process_phi): Likewise.
16637 (backtrace_base_for_ref): Likewise. Return a widest_int.
16638 (restructure_reference): Take a widest_int instead of a double_int.
16639 (slsr_process_ref): Use wide-int interfaces.
16640 (create_mul_ssa_cand): Likewise.
16641 (create_mul_imm_cand): Likewise.
16642 (create_add_ssa_cand): Likewise.
16643 (create_add_imm_cand): Take a widest_int instead of a double_int.
16644 (slsr_process_add): Use wide-int interfaces.
16645 (slsr_process_cast): Likewise.
16646 (slsr_process_copy): Likewise.
16647 (dump_candidate): Likewise.
16648 (dump_incr_vec): Likewise.
16649 (replace_ref): Likewise.
16650 (cand_increment): Likewise. Return a widest_int.
16651 (cand_abs_increment): Likewise.
16652 (replace_mult_candidate): Take a widest_int instead of a double_int.
16653 (replace_unconditional_candidate): Use wide-int interfaces.
16654 (incr_vec_index): Take a widest_int instead of a double_int.
16655 (create_add_on_incoming_edge): Likewise.
16656 (create_phi_basis): Use wide-int interfaces.
16657 (replace_conditional_candidate): Likewise.
16658 (record_increment): Take a widest_int instead of a double_int.
16659 (record_phi_increments): Use wide-int interfaces.
16660 (phi_incr_cost): Take a widest_int instead of a double_int.
16661 (lowest_cost_path): Likewise.
16662 (total_savings): Likewise.
16663 (analyze_increments): Use wide-int interfaces.
16664 (ncd_with_phi): Take a widest_int instead of a double_int.
16665 (ncd_of_cand_and_phis): Likewise.
16666 (nearest_common_dominator_for_cands): Likewise.
16667 (insert_initializers): Use wide-int interfaces.
16668 (all_phi_incrs_profitable): Likewise.
16669 (replace_one_candidate): Likewise.
16670 (replace_profitable_candidates): Likewise.
16671 * godump.c: Include wide-int-print.h.
16672 (go_output_typedef): Use wide-int interfaces.
16673 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
16674 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
16675 (build_loop_iteration_domains): Likewise.
16676 * hooks.h: Include wide-int.h rather than double-int.h.
16677 (hook_bool_dint_dint_uint_bool_true): Delete.
16678 (hook_bool_wint_wint_uint_bool_true): Declare.
16679 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
16680 (hook_bool_wint_wint_uint_bool_true): New.
16681 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
16683 (ubsan_expand_si_overflow_mul_check): Likewise.
16684 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
16685 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
16686 (get_ancestor_addr_info): Likewise.
16687 (ipa_modify_call_arguments): Likewise.
16688 * loop-doloop.c (doloop_modify): Likewise.
16689 (doloop_optimize): Likewise.
16690 * loop-iv.c (iv_number_of_iterations): Likewise.
16691 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
16692 (unroll_loop_constant_iterations): Likewise.
16693 (decide_unroll_runtime_iterations): Likewise.
16694 (unroll_loop_runtime_iterations): Likewise.
16695 (decide_peel_simple): Likewise.
16696 (decide_unroll_stupid): Likewise.
16697 * lto-streamer-in.c (streamer_read_wi): Add.
16698 (input_cfg): Use wide-int interfaces.
16699 (lto_input_tree_1): Likewise.
16700 * lto-streamer-out.c (streamer_write_wi): Add.
16701 (hash_tree): Use wide-int interfaces.
16702 (output_cfg): Likewise.
16703 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
16704 (GTFILES): Add wide-int.h and signop.h.
16705 (TAGS): Look for .cc files too.
16706 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
16707 * optabs.c (expand_subword_shift): Likewise.
16708 (expand_doubleword_shift): Likewise.
16709 (expand_absneg_bit): Likewise.
16710 (expand_copysign_absneg): Likewise.
16711 (expand_copysign_bit): Likewise.
16712 * postreload.c (reload_cse_simplify_set): Likewise.
16713 * predict.c (predict_iv_comparison): Likewise.
16714 * pretty-print.h: Include wide-int-print.h.
16716 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
16717 * print-tree.c: Include wide-int-print.h.
16718 (print_node_brief): Use wide-int interfaces.
16719 (print_node): Likewise.
16720 * read-rtl.c (validate_const_wide_int): New.
16721 (read_rtx_code): Add CONST_WIDE_INT case.
16722 * real.c: Include wide-int.h.
16723 (real_to_integer2): Delete.
16724 (real_to_integer): New function, returning a wide_int.
16725 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
16726 (ten_to_ptwo): Update call to real_from_integer.
16727 (real_digit): Likewise.
16728 * real.h: Include signop.h, wide-int.h and insn-modes.h.
16729 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
16730 (REAL_VALUE_TO_INT): Delete.
16731 (real_to_integer): Declare a wide-int form.
16732 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
16733 * recog.c (const_int_operand): Improve comment.
16734 (const_scalar_int_operand): New.
16735 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
16736 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
16737 (split_double): Likewise.
16738 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
16739 (rtx_size): Likewise.
16740 (rtx_alloc_stat_v): New.
16741 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
16742 (cwi_output_hex): New.
16743 (iterative_hash_rtx): Handle CONST_WIDE_INT.
16744 (cwi_check_failed_bounds): New.
16745 * rtl.def (CONST_WIDE_INT): New.
16746 * rtl.h: Include <utility> and wide-int.h.
16747 (struct hwivec_def): New.
16748 (CWI_GET_NUM_ELEM): New.
16749 (CWI_PUT_NUM_ELEM): New.
16750 (struct rtx_def): Add num_elem and hwiv.
16751 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
16752 (CASE_CONST_UNIQUE): Likewise.
16753 (CASE_CONST_ANY): Likewise.
16754 (CONST_SCALAR_INT_P): Likewise.
16755 (CONST_WIDE_INT_P): New.
16757 (HWIVEC_CHECK): New.
16758 (cwi_check_failed_bounds): New.
16760 (HWIVEC_CHECK): New.
16761 (CONST_WIDE_INT_VEC) New.
16762 (CONST_WIDE_INT_NUNITS) New.
16763 (CONST_WIDE_INT_ELT) New.
16764 (rtx_mode_t): New type.
16765 (wi::int_traits <rtx_mode_t>): New.
16767 (wi::min_value): New.
16768 (wi::max_value): New.
16770 (const_wide_int_alloc): New.
16771 (immed_wide_int_const): New.
16772 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
16773 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
16774 * signop.h: New file.
16775 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
16776 (simplify_const_unary_operation): Use wide-int interfaces.
16777 (simplify_binary_operation_1): Likewise.
16778 (simplify_const_binary_operation): Likewise.
16779 (simplify_const_relational_operation): Likewise.
16780 (simplify_immed_subreg): Likewise.
16781 * stmt.c (expand_case): Likewise.
16782 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
16783 signop rather than a bool.
16784 * stor-layout.c (layout_type): Use wide-int interfaces.
16785 (initialize_sizetypes): Update calls to
16786 set_min_and_max_values_for_integral_type.
16787 (set_min_and_max_values_for_integral_type): Take a signop rather
16788 than a bool. Use wide-int interfaces.
16789 (fixup_signed_type): Update accordingly. Remove
16790 HOST_BITS_PER_DOUBLE_INT limit.
16791 (fixup_unsigned_type): Likewise.
16792 * system.h (STATIC_CONSTANT_P): New.
16793 (STATIC_ASSERT): New.
16794 * target.def (can_use_doloop_p): Take widest_ints rather than
16796 * target.h: Include wide-int.h rather than double-int.h.
16797 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
16799 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
16800 rather than INT_CST_LT_UNSIGNED.
16801 (can_use_doloop_if_innermost): Take widest_ints rather than
16803 * tree-affine.c: Include wide-int-print.h.
16804 (double_int_ext_for_comb): Delete.
16805 (wide_int_ext_for_comb): New.
16806 (aff_combination_zero): Use wide-int interfaces.
16807 (aff_combination_const): Take a widest_int instead of a double_int.
16808 (aff_combination_elt): Use wide-int interfaces.
16809 (aff_combination_scale): Take a widest_int instead of a double_int.
16810 (aff_combination_add_elt): Likewise.
16811 (aff_combination_add_cst): Likewise.
16812 (aff_combination_add): Use wide-int interfaces.
16813 (aff_combination_convert): Likewise.
16814 (tree_to_aff_combination): Likewise.
16815 (add_elt_to_tree): Take a widest_int instead of a double_int.
16816 (aff_combination_to_tree): Use wide-int interfaces.
16817 (aff_combination_remove_elt): Likewise.
16818 (aff_combination_add_product): Take a widest_int instead of
16820 (aff_combination_mult): Use wide-int interfaces.
16821 (aff_combination_expand): Likewise.
16822 (double_int_constant_multiple_p): Delete.
16823 (wide_int_constant_multiple_p): New.
16824 (aff_combination_constant_multiple_p): Take a widest_int pointer
16825 instead of a double_int pointer.
16826 (print_aff): Use wide-int interfaces.
16827 (get_inner_reference_aff): Take a widest_int pointer
16828 instead of a double_int pointer.
16829 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
16830 * tree-affine.h: Include wide-int.h.
16831 (struct aff_comb_elt): Change type of coef to widest_int.
16832 (struct affine_tree_combination): Change type of offset to widest_int.
16833 (double_int_ext_for_comb): Delete.
16834 (wide_int_ext_for_comb): New.
16835 (aff_combination_const): Use widest_int instead of double_int.
16836 (aff_combination_scale): Likewise.
16837 (aff_combination_add_elt): Likewise.
16838 (aff_combination_constant_multiple_p): Likewise.
16839 (get_inner_reference_aff): Likewise.
16840 (aff_comb_cannot_overlap_p): Likewise.
16841 (aff_combination_zero_p): Use wide-int interfaces.
16842 * tree.c: Include tree.h.
16843 (init_ttree): Use make_int_cst.
16844 (tree_code_size): Removed code for INTEGER_CST case.
16845 (tree_size): Add INTEGER_CST case.
16846 (make_node_stat): Update comment.
16847 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
16848 (build_int_cst_type): Use wide-int interfaces.
16849 (double_int_to_tree): Likewise.
16850 (double_int_fits_to_tree_p): Delete.
16851 (force_fit_type_double): Delete.
16852 (force_fit_type): New.
16853 (int_cst_hash_hash): Use wide-int interfaces.
16854 (int_cst_hash_eq): Likewise.
16855 (build_int_cst_wide): Delete.
16856 (wide_int_to_tree): New.
16857 (cache_integer_cst): Use wide-int interfaces.
16858 (build_low_bits_mask): Likewise.
16859 (cst_and_fits_in_hwi): Likewise.
16860 (real_value_from_int_cst): Likewise.
16861 (make_int_cst_stat): New.
16862 (integer_zerop): Use wide_int interfaces.
16863 (integer_onep): Likewise.
16864 (integer_all_onesp): Likewise.
16865 (integer_pow2p): Likewise.
16866 (integer_nonzerop): Likewise.
16867 (tree_log2): Likewise.
16868 (tree_floor_log2): Likewise.
16869 (tree_ctz): Likewise.
16870 (int_size_in_bytes): Likewise.
16871 (mem_ref_offset): Return an offset_int rather than a double_int.
16872 (build_type_attribute_qual_variant): Use wide_int interfaces.
16873 (type_hash_eq): Likewise
16874 (tree_int_cst_equal): Likewise.
16875 (tree_int_cst_lt): Delete.
16876 (tree_int_cst_compare): Likewise.
16877 (tree_fits_shwi_p): Use wide_int interfaces.
16878 (tree_fits_uhwi_p): Likewise.
16879 (tree_int_cst_sign_bit): Likewise.
16880 (tree_int_cst_sgn): Likewise.
16881 (tree_int_cst_min_precision): Take a signop rather than a bool.
16882 (simple_cst_equal): Use wide_int interfaces.
16883 (compare_tree_int): Likewise.
16884 (iterative_hash_expr): Likewise.
16885 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
16887 (get_type_static_bounds): Use wide_int interfaces.
16888 (tree_int_cst_elt_check_failed): New.
16889 (build_common_tree_nodes): Reordered to set prec before filling in
16891 (int_cst_value): Check cst_and_fits_in_hwi.
16892 (widest_int_cst_value): Use wide_int interfaces.
16893 (upper_bound_in_type): Likewise.
16894 (lower_bound_in_type): Likewise.
16895 (num_ending_zeros): Likewise.
16896 (drop_tree_overflow): Likewise.
16897 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
16898 (gen_conditions_for_pow_cst_base): Likewise.
16899 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
16900 (group_case_labels_stmt): Use wide-int interfaces.
16901 (verify_gimple_assign_binary): Likewise.
16902 (print_loop): Likewise.
16903 * tree-chrec.c (tree_fold_binomial): Likewise.
16904 * tree-core.h (struct tree_base): Add int_length.
16905 (struct tree_int_cst): Change rep of value.
16906 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
16907 (dr_may_alias_p): Likewise.
16908 (max_stmt_executions_tree): Likewise.
16909 * tree.def (INTEGER_CST): Update comment.
16910 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
16911 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
16912 * tree-dump.c: Include wide-int.h and wide-int-print.h.
16913 (dequeue_and_dump): Use wide-int interfaces.
16914 * tree.h: Include wide-int.h.
16915 (NULL_TREE): Moved to earlier loc in file.
16916 (TREE_INT_CST_ELT_CHECK): New.
16917 (tree_int_cst_elt_check_failed): New.
16919 (TREE_INT_CST): Delete.
16920 (TREE_INT_CST_LOW): Use wide-int interfaces.
16921 (TREE_INT_CST_HIGH): Delete.
16922 (TREE_INT_CST_NUNITS): New.
16923 (TREE_INT_CST_EXT_NUNITS): Likewise.
16924 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
16925 (TREE_INT_CST_ELT): Likewise.
16926 (INT_CST_LT): Delete.
16927 (tree_int_cst_elt_check): New (two forms).
16928 (type_code_size): Update comment.
16929 (make_int_cst_stat, make_int_cst): New.
16930 (tree_to_double_int): Delete.
16931 (double_int_fits_to_tree_p): Delete.
16932 (force_fit_type_double): Delete.
16933 (build_int_cstu): Replace with out-of-line function.
16934 (build_int_cst_wide): Delete.
16935 (tree_int_cst_lt): Define inline.
16936 (tree_int_cst_le): New.
16937 (tree_int_cst_compare): Define inline.
16938 (tree_int_cst_min_precision): Take a signop rather than a bool.
16939 (wi::int_traits <const_tree>): New.
16940 (wi::int_traits <tree>): New.
16941 (wi::extended_tree): New.
16942 (wi::int_traits <wi::extended_tree>): New.
16943 (wi::to_widest): New.
16944 (wi::to_offset): New.
16945 (wi::fits_to_tree_p): New.
16946 (wi::min_value): New.
16947 (wi::max_value): New.
16948 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
16949 (copy_tree_body_r): Likewise.
16950 * tree-object-size.c (compute_object_offset): Likewise.
16951 (addr_object_size): Likewise.
16952 * tree-predcom.c: Include wide-int-print.h.
16953 (struct dref_d): Change type of offset to widest_int.
16954 (dump_dref): Call wide-int printer.
16955 (aff_combination_dr_offset): Use wide-int interfaces.
16956 (determine_offset): Take a widest_int pointer rather than a
16957 double_int pointer.
16958 (split_data_refs_to_components): Use wide-int interfaces.
16959 (suitable_component_p): Likewise.
16960 (order_drefs): Likewise.
16961 (add_ref_to_chain): Likewise.
16962 (valid_initializer_p): Likewise.
16963 (determine_roots_comp): Likewise.
16964 * tree-pretty-print.c: Include wide-int-print.h.
16965 (dump_generic_node): Use wide-int interfaces.
16966 * tree-sra.c (sra_ipa_modify_expr): Likewise.
16967 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
16968 (move_fixed_address_to_symbol): Likewise.
16969 (move_hint_to_base): Likewise.
16970 (move_pointer_to_base): Likewise.
16971 (move_variant_to_index): Likewise.
16972 (most_expensive_mult_to_index): Likewise.
16973 (addr_to_parts): Likewise.
16974 (copy_ref_info): Likewise.
16975 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
16976 (indirect_refs_may_alias_p): Likewise.
16977 (stmt_kills_ref_p_1): Likewise.
16978 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
16979 * tree-ssa-ccp.c: Update comment at top of file. Include
16981 (struct prop_value_d): Change type of mask to widest_int.
16982 (extend_mask): New function.
16983 (dump_lattice_value): Use wide-int interfaces.
16984 (get_default_value): Likewise.
16985 (set_constant_value): Likewise.
16986 (set_value_varying): Likewise.
16987 (valid_lattice_transition): Likewise.
16988 (set_lattice_value): Likewise.
16989 (value_to_double_int): Delete.
16990 (value_to_wide_int): New.
16991 (get_value_from_alignment): Use wide-int interfaces.
16992 (get_value_for_expr): Likewise.
16993 (do_dbg_cnt): Likewise.
16994 (ccp_finalize): Likewise.
16995 (ccp_lattice_meet): Likewise.
16996 (bit_value_unop_1): Use widest_ints rather than double_ints.
16997 (bit_value_binop_1): Likewise.
16998 (bit_value_unop): Use wide-int interfaces.
16999 (bit_value_binop): Likewise.
17000 (bit_value_assume_aligned): Likewise.
17001 (evaluate_stmt): Likewise.
17002 (ccp_fold_stmt): Likewise.
17003 (visit_cond_stmt): Likewise.
17004 (ccp_visit_stmt): Likewise.
17005 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17006 (constant_pointer_difference): Likewise.
17007 (associate_pointerplus): Likewise.
17008 (combine_conversions): Likewise.
17009 * tree-ssa-loop.h: Include wide-int.h.
17010 (struct tree_niter_desc): Change type of max to widest_int.
17011 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17012 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17013 (remove_redundant_iv_tests): Likewise.
17014 (canonicalize_loop_induction_variables): Likewise.
17015 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17016 (constant_multiple_of): Take a widest_int pointer instead of
17017 a double_int pointer.
17018 (get_computation_aff): Use wide-int interfaces.
17019 (ptr_difference_cost): Likewise.
17020 (difference_cost): Likewise.
17021 (get_loop_invariant_expr_id): Likewise.
17022 (get_computation_cost_at): Likewise.
17023 (iv_elimination_compare_lt): Likewise.
17024 (may_eliminate_iv): Likewise.
17025 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17026 instead of double_int.
17027 (max_loop_iterations): Likewise.
17028 (max_stmt_executions): Likewise.
17029 (estimated_stmt_executions): Likewise.
17030 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17031 (split_to_var_and_offset): Use wide-int interfaces.
17032 (determine_value_range): Likewise.
17033 (bound_difference_of_offsetted_base): Likewise.
17034 (bounds_add): Take a widest_int instead of a double_int.
17035 (number_of_iterations_ne_max): Use wide-int interfaces.
17036 (number_of_iterations_ne): Likewise.
17037 (number_of_iterations_lt_to_ne): Likewise.
17038 (assert_loop_rolls_lt): Likewise.
17039 (number_of_iterations_lt): Likewise.
17040 (number_of_iterations_le): Likewise.
17041 (number_of_iterations_cond): Likewise.
17042 (number_of_iterations_exit): Likewise.
17043 (finite_loop_p): Likewise.
17044 (derive_constant_upper_bound_assign): Likewise.
17045 (derive_constant_upper_bound): Return a widest_int.
17046 (derive_constant_upper_bound_ops): Likewise.
17047 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17048 (record_estimate): Take a widest_int rather than a double_int.
17049 (record_nonwrapping_iv): Use wide-int interfaces.
17050 (double_int_cmp): Delete.
17051 (wide_int_cmp): New.
17052 (bound_index): Take a widest_int rather than a double_int.
17053 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17054 (maybe_lower_iteration_bound): Likewise.
17055 (estimate_numbers_of_iterations_loop): Likewise.
17056 (estimated_loop_iterations): Take a widest_int pointer than than
17057 a double_int pointer.
17058 (estimated_loop_iterations_int): Use wide-int interfaces.
17059 (max_loop_iterations): Take a widest_int pointer than than
17060 a double_int pointer.
17061 (max_loop_iterations_int): Use wide-int interfaces.
17062 (max_stmt_executions): Take a widest_int pointer than than
17063 a double_int pointer.
17064 (estimated_stmt_executions): Likewise.
17065 (n_of_executions_at_most): Use wide-int interfaces.
17066 (scev_probably_wraps_p): Likewise.
17067 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17068 to real_to_integer.
17069 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17071 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17072 double_ints. Adjust for trailing_wide_ints <3> representation.
17073 (set_nonzero_bits): Likewise.
17074 (get_range_info): Return wide_ints rather than double_ints.
17075 Adjust for trailing_wide_ints <3> representation.
17076 (get_nonzero_bits): Likewise.
17077 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17079 * tree-ssanames.h (struct range_info_def): Replace min, max and
17080 nonzero_bits with a trailing_wide_ints <3>.
17081 (set_range_info): Use wide_int_refs rather than double_ints.
17082 (set_nonzero_bits): Likewise.
17083 (get_range_info): Return wide_ints rather than double_ints.
17084 (get_nonzero_bits): Likewise.
17085 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17086 * tree-ssa-pre.c (phi_translate_1): Likewise.
17087 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17088 (acceptable_pow_call): Likewise.
17089 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17091 (vn_reference_fold_indirect): Likewise.
17092 (vn_reference_maybe_forwprop_address): Likewise.
17093 (valueize_refs_1): Likewise.
17094 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17095 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17096 tree_int_cst_lt and tree_int_cst_le.
17097 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17099 (streamer_alloc_tree): Likewise.
17100 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17101 (streamer_write_tree_header): Likewise.
17102 (streamer_write_integer_cst): Likewise.
17103 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17104 (build_constructors): Likewise.
17105 (array_value_type): Likewise.
17106 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17107 (vect_check_gather): Likewise.
17108 * tree-vect-generic.c (build_replicated_const): Likewise.
17109 (expand_vector_divmod): Likewise.
17110 * tree-vect-loop.c (vect_transform_loop): Likewise.
17111 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17112 (vect_do_peeling_for_alignment): Likewise.
17113 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17114 * tree-vrp.c: Include wide-int.h.
17115 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17116 (extract_range_from_assert): Use wide-int interfaces.
17117 (vrp_int_const_binop): Likewise.
17118 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17119 double_int pointers.
17120 (ranges_from_anti_range): Use wide-int interfaces.
17121 (quad_int_cmp): Delete.
17122 (quad_int_pair_sort): Likewise.
17123 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17124 (extract_range_from_unary_expr_1): Likewise.
17125 (adjust_range_with_scev): Likewise.
17126 (masked_increment): Take and return wide_ints rather than double_ints.
17127 (register_edge_assert_for_2): Use wide-int interfaces.
17128 (check_array_ref): Likewise.
17129 (search_for_addr_array): Likewise.
17130 (maybe_set_nonzero_bits): Likewise.
17131 (union_ranges): Pass an integer of the correct type instead of
17132 using integer_one_node.
17133 (intersect_ranges): Likewise.
17134 (simplify_truth_ops_using_ranges): Likewise.
17135 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17136 (range_fits_type_p): Likewise.
17137 (simplify_cond_using_ranges): Likewise. Take a signop rather than
17139 (simplify_conversion_using_ranges): Use wide-int interfaces.
17140 (simplify_float_conversion_using_ranges): Likewise.
17141 (vrp_finalize): Likewise.
17142 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17143 (gimple_stringops_transform): Likewise.
17144 * varasm.c (decode_addr_const): Likewise.
17145 (const_hash_1): Likewise.
17146 (const_rtx_hash_1): Likewise
17147 (output_constant): Likewise.
17148 (array_size_for_constructor): Likewise.
17149 (output_constructor_regular_field): Likewise.
17150 (output_constructor_bitfield): Likewise.
17151 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17152 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17154 * gencheck.c: Define BITS_PER_UNIT.
17155 * wide-int.cc: New.
17157 * wide-int-print.cc: New.
17158 * wide-int-print.h: New.
17160 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17162 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
17164 2014-05-06 Richard Biener <rguenther@suse.de>
17166 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
17167 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
17168 (TODO_verify_all): Adjust.
17169 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
17170 TODO_verify_stmts and TODO_verify_rtl_sharing.
17171 * bb-reorder.c: Likewise.
17172 * cfgexpand.c: Likewise.
17173 * cprop.c: Likewise.
17175 * function.c: Likewise.
17176 * fwprop.c: Likewise.
17177 * gcse.c: Likewise.
17178 * gimple-ssa-isolate-paths.c: Likewise.
17179 * gimple-ssa-strength-reduction.c: Likewise.
17180 * ipa-split.c: Likewise.
17181 * loop-init.c: Likewise.
17182 * loop-unroll.c: Likewise.
17183 * lower-subreg.c: Likewise.
17184 * modulo-sched.c: Likewise.
17185 * postreload-gcse.c: Likewise.
17186 * predict.c: Likewise.
17187 * recog.c: Likewise.
17188 * sched-rgn.c: Likewise.
17189 * store-motion.c: Likewise.
17190 * tracer.c: Likewise.
17191 * trans-mem.c: Likewise.
17192 * tree-call-cdce.c: Likewise.
17193 * tree-cfg.c: Likewise.
17194 * tree-cfgcleanup.c: Likewise.
17195 * tree-complex.c: Likewise.
17196 * tree-eh.c: Likewise.
17197 * tree-emutls.c: Likewise.
17198 * tree-if-conv.c: Likewise.
17199 * tree-into-ssa.c: Likewise.
17200 * tree-loop-distribution.c: Likewise.
17201 * tree-object-size.c: Likewise.
17202 * tree-parloops.c: Likewise.
17203 * tree-pass.h: Likewise.
17204 * tree-sra.c: Likewise.
17205 * tree-ssa-ccp.c: Likewise.
17206 * tree-ssa-copy.c: Likewise.
17207 * tree-ssa-copyrename.c: Likewise.
17208 * tree-ssa-dce.c: Likewise.
17209 * tree-ssa-dom.c: Likewise.
17210 * tree-ssa-dse.c: Likewise.
17211 * tree-ssa-forwprop.c: Likewise.
17212 * tree-ssa-ifcombine.c: Likewise.
17213 * tree-ssa-loop-ch.c: Likewise.
17214 * tree-ssa-loop-ivcanon.c: Likewise.
17215 * tree-ssa-loop.c: Likewise.
17216 * tree-ssa-math-opts.c: Likewise.
17217 * tree-ssa-phiopt.c: Likewise.
17218 * tree-ssa-phiprop.c: Likewise.
17219 * tree-ssa-pre.c: Likewise.
17220 * tree-ssa-reassoc.c: Likewise.
17221 * tree-ssa-sink.c: Likewise.
17222 * tree-ssa-strlen.c: Likewise.
17223 * tree-ssa-tail-merge.c: Likewise.
17224 * tree-ssa-uncprop.c: Likewise.
17225 * tree-switch-conversion.c: Likewise.
17226 * tree-tailcall.c: Likewise.
17227 * tree-vect-generic.c: Likewise.
17228 * tree-vectorizer.c: Likewise.
17229 * tree-vrp.c: Likewise.
17230 * tsan.c: Likewise.
17231 * var-tracking.c: Likewise.
17232 * bt-load.c: Likewise.
17233 * cfgcleanup.c: Likewise.
17234 * combine-stack-adj.c: Likewise.
17235 * combine.c: Likewise.
17236 * compare-elim.c: Likewise.
17237 * config/epiphany/resolve-sw-modes.c: Likewise.
17238 * config/i386/i386.c: Likewise.
17239 * config/mips/mips.c: Likewise.
17240 * config/s390/s390.c: Likewise.
17241 * config/sh/sh_treg_combine.cc: Likewise.
17242 * config/sparc/sparc.c: Likewise.
17245 * final.c: Likewise.
17246 * ifcvt.c: Likewise.
17247 * mode-switching.c: Likewise.
17248 * passes.c: Likewise.
17249 * postreload.c: Likewise.
17251 * reg-stack.c: Likewise.
17252 * regcprop.c: Likewise.
17253 * regrename.c: Likewise.
17256 2014-05-06 Richard Biener <rguenther@suse.de>
17258 PR middle-end/61070
17259 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
17260 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
17262 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
17265 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
17267 2014-05-05 Radovan Obradovic <robradovic@mips.com>
17268 Tom de Vries <tom@codesourcery.com>
17270 * target.def (call_fusage_contains_non_callee_clobbers): New
17272 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
17274 (@node Miscellaneous Register Hooks): New node.
17275 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
17276 * doc/tm.texi: Regenerate.
17278 2014-05-05 Marek Polacek <polacek@redhat.com>
17281 * opts.c (common_handle_option): Call error_at instead of warning_at.
17283 2014-05-05 Richard Biener <rguenther@suse.de>
17285 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
17286 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
17287 under the TODO_verify_il umbrella.
17289 2014-05-05 Richard Biener <rguenther@suse.de>
17291 * passes.c (execute_function_todo): Move TODO_verify_flow under
17292 the TODO_verify_ul umbrella.
17294 2014-05-05 Richard Biener <rguenther@suse.de>
17296 PR middle-end/61010
17297 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
17298 X & CST away from a CST that is the mask of a mode.
17300 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17302 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
17303 int argument to enum machine_mode.
17304 (picochip_class_max_nregs): Ditto.
17305 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
17306 (picochip_class_max_nregs): Ditto.
17308 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17310 * target.def: Add new target hook.
17311 * doc/tm.texi: Regenerate.
17312 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
17313 * targhooks.c (default_keep_leaf_when_profiled): New function.
17315 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
17316 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
17318 2014-05-05 Bin Cheng <bin.cheng@arm.com>
17320 PR tree-optimization/60363
17321 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
17322 (copy_phi_args): New parameters. Call get_value_locus_in_path.
17323 (update_destination_phis): New parameter.
17324 (create_edge_and_update_destination_phis): Ditto.
17325 (ssa_fix_duplicate_block_edges): Pass new arguments.
17326 (thread_single_edge): Ditto.
17328 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
17330 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
17331 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
17332 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
17333 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
17334 Use RS6000_BTM_HARD_FLOAT.
17335 (BU_MISC_2): Likewise.
17336 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
17337 RS6000_BTM_HARD_FLOAT.
17338 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
17339 is explicitly used.
17340 (rs6000_invalid_builtin): Add hard floating builtin support.
17341 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
17342 hard float builtins.
17343 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
17345 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17347 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
17348 Add missing function* argument.
17350 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17352 * lra-constraints.c (valid_address_p): Move earlier in file.
17353 Add a constraint argument to the address_info version.
17354 (satisfies_memory_constraint_p): New function.
17355 (satisfies_address_constraint_p): Likewise.
17356 (process_alt_operands, curr_insn_transform): Use them.
17357 (process_address): Pass the constraint to valid_address_p when
17358 checking address operands.
17360 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17362 * config/mips/mips.c (mips_isa_rev): New variable.
17363 (mips_set_architecture): Set it.
17364 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
17366 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
17367 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
17368 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
17369 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
17370 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
17371 conditions in terms of mips_isa_rev.
17372 (mips_isa_rev): Declare.
17374 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17376 * config/sh/sh-mem.cc: Use tabs instead of spaces.
17377 (prob_unlikely, prob_likely): Make variables const.
17379 2014-05-03 Denis Chertykov <chertykov@gmail.com>
17381 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
17383 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17385 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
17387 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17389 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
17390 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
17391 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
17393 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
17394 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
17396 Replace usage of ROUND_REG with sh_round_reg.
17397 Use CEIL instead of ROUND_ADVANCE.
17399 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17402 * config/sh/sh.c: Include stdlib headers before everything else.
17404 2014-05-02 Jakub Jelinek <jakub@redhat.com>
17406 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
17407 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
17408 (gimplify_adjust_omp_clauses): Simd region is never
17409 directly nested in combined parallel. Instead, for linear
17410 with copyin/copyout, if in combined for simd loop, make decl
17411 firstprivate/lastprivate on OMP_FOR.
17412 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
17413 expand_omp_for_static_chunk): When setting endvar, also set
17414 fd->loop.v to the same value.
17416 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17418 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
17420 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
17422 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
17425 2014-05-02 Marek Polacek <polacek@redhat.com>
17427 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
17429 2014-05-02 Kito Cheng <kito@0xlab.org>
17431 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
17432 to a C expression marco.
17433 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
17434 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
17435 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
17436 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
17437 HONOR_REG_ALLOC_ORDER.
17438 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
17440 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17442 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
17444 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17446 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
17448 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
17450 * tree-if-conv.c (is_cond_scalar_reduction): New function.
17451 (convert_scalar_cond_reduction): Likewise.
17452 (predicate_scalar_phi): Add recognition and transformation
17453 of simple conditioanl reduction to be vectorizable.
17455 2014-05-01 Marek Polacek <polacek@redhat.com>
17458 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
17460 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
17462 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
17463 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
17464 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
17465 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
17466 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
17467 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
17468 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
17469 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
17471 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
17473 * config/arc/arc.opt (mlra): Move comment above option name
17474 to avoid mis-parsing as language options.
17476 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17478 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
17479 * config/sol2.h: ... here.
17480 * config/sol2-10.h: Remove.
17482 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
17483 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
17484 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
17485 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
17486 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
17487 * config/sol2.h: ... here.
17488 (SECTION_NAME_FORMAT): Don't redefine.
17489 (STARTFILE_ARCH32_SPEC): Rename to ...
17490 (STARTFILE_ARCH_SPEC): ... this.
17491 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
17492 * config/sparc/sol2.h: ... here.
17493 (SECTION_NAME_FORMAT): Don't undef.
17494 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
17495 (SUBTARGET_EXTRA_SPECS): Remove.
17496 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
17498 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
17499 (MD_STARTFILE_PREFIX): Remove.
17500 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
17501 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
17502 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
17503 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
17504 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
17505 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
17506 * config/i386/sol2.h: ... here.
17507 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
17508 * config/i386/sol2-bi.h: Remove.
17509 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
17510 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
17512 * config/i386/t-sol2-64: Rename to ...
17513 * config/i386/t-sol2: ... this.
17514 * config/sparc/t-sol2-64: Rename to ...
17515 * config/sparc/t-sol2: ... this.
17517 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
17518 sol2_tm_file_head, sol2_tm_file_tail.
17519 Include ${cpu_type}/sol2.h before sol2.h.
17521 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
17522 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
17523 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
17524 Reflect i386/t-sol2-64 renaming.
17525 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
17526 Reflect sparc/t-sol2-64 renaming.
17528 2014-04-30 Richard Biener <rguenther@suse.de>
17530 * passes.c (execute_function_todo): Move TODO_verify_stmts
17531 and TODO_verify_ssa under the TODO_verify_il umbrella.
17532 * tree-ssa.h (verify_ssa): Adjust prototype.
17533 * tree-ssa.c (verify_ssa): Add parameter to tell whether
17534 we should verify SSA operands.
17535 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
17536 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
17537 whether we should verify whether not throwing stmts have EH info.
17538 * graphite-scop-detection.c (create_sese_edges): Adjust.
17539 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
17540 * tree-eh.c (lower_try_finally_switch): Do not add the
17541 default case label twice.
17543 2014-04-30 Marek Polacek <polacek@redhat.com>
17545 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
17546 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
17547 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
17548 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
17550 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
17552 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
17553 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
17554 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
17555 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
17556 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
17557 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
17558 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
17559 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
17561 2014-04-29 David Malcolm <dmalcolm@redhat.com>
17563 * tree-cfg.c (dump_function_to_file): Dump the return type of
17564 functions, in a line to itself before the function body, mimicking
17565 the layout of a C function.
17567 2014-04-29 Jakub Jelinek <jakub@redhat.com>
17569 PR tree-optimization/60971
17570 * tree-tailcall.c (process_assignment): Reject conversions which
17573 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
17575 * calls.c (initialize_argument_information): Always treat
17576 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
17577 (expand_call): Likewise.
17578 (emit_library_call_calue_1): Likewise.
17579 * expr.c (PUSH_ARGS_REVERSED): Do not define.
17580 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
17583 2014-04-29 Nick Clifton <nickc@redhat.com>
17585 * config/msp430/msp430.md (umulsidi): Fix typo.
17586 (mulhisi3): Enable even inside interrupt handlers.
17587 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
17588 bigger return address pushed in large mode.
17590 2014-04-29 Nick Clifton <nickc@redhat.com>
17592 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
17593 (arc_init_reg_tables): Use a machine_mode enum to iterate over
17595 * config/m32r/m32r.c (init_reg_tables): Likewise.
17596 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
17597 enum to hold the modes.
17599 2014-04-29 Richard Biener <rguenther@suse.de>
17601 * dominance.c (free_dominance_info): Add overload with
17602 function parameter.
17603 (dom_info_state): Likewise.
17604 (dom_info_available_p): Likewise.
17605 * basic-block.h (free_dominance_info, dom_info_state,
17606 dom_info_available_p): Declare overloads.
17607 * passes.c (execute_function_todo): Verify that verifiers
17608 don't change dominator info state. Drop dominator info
17609 for IPA pass invocations.
17610 * cgraph.c (release_function_body): Restore asserts that
17611 dominator information is released.
17613 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
17615 * doc/invoke.texi: Fix typo.
17616 * tree-vrp.c: Fix typos.
17617 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
17619 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17621 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
17623 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
17625 * config/aarch64/aarch64-builtins.c
17626 (aarch64_types_storestruct_lane_qualifiers): New.
17627 (TYPES_STORESTRUCT_LANE): Likewise.
17628 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
17629 (st3_lane): Likewise.
17630 (st4_lane): Likewise.
17631 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
17632 (vec_store_lanesci_lane<mode>): Likewise.
17633 (vec_store_lanesxi_lane<mode>): Likewise.
17634 (aarch64_st2_lane<VQ:mode>): Likewise.
17635 (aarch64_st3_lane<VQ:mode>): Likewise.
17636 (aarch64_st4_lane<VQ:mode>): Likewise.
17637 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
17638 * config/aarch64/arm_neon.h
17639 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
17640 use new macro arguments.
17641 (__ST3_LANE_FUNC): Likewise.
17642 (__ST4_LANE_FUNC): Likewise.
17643 * config/aarch64/iterators.md (V_TWO_ELEM): New.
17644 (V_THREE_ELEM): Likewise.
17645 (V_FOUR_ELEM): Likewise.
17647 2014-04-28 David Malcolm <dmalcolm@redhat.com>
17649 * doc/gimple.texi: Replace the description of the now-defunct
17650 union gimple_statement_d with a diagram showing the
17651 gimple_statement_base class hierarchy and its relationships to
17652 the GSS_ and GIMPLE_ enums.
17654 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
17656 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
17657 * config/aarch64/aarch64.c
17658 (aarch64_cannot_change_mode_class): Weaken conditions.
17659 (aarch64_modes_tieable_p): New.
17660 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
17662 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
17664 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
17665 (loadsync_<mode>): Change mode.
17666 (load_quadpti, store_quadpti): New.
17667 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
17668 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
17670 2014-04-28 Martin Jambor <mjambor@suse.cz>
17672 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
17673 same alias type as the original statement.
17674 (subreplacement_assignment_data): New type.
17675 (handle_unscalarized_data_in_subtree): New type of parameter,
17676 generate new memory accesses with same alias type as the original
17678 (load_assign_lhs_subreplacements): Likewise.
17679 (sra_modify_constructor_assign): Generate new memory accesses with
17680 same alias type as the original statement.
17682 2014-04-28 Richard Biener <rguenther@suse.de>
17684 * tree-pass.h (TODO_verify_il): Define.
17685 (TODO_verify_all): Complete properly.
17686 * passes.c (execute_function_todo): Move existing loop-closed
17687 SSA verification under TODO_verify_il.
17688 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
17689 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
17690 Fix tree sharing issue.
17692 2014-04-28 Richard Biener <rguenther@suse.de>
17694 PR middle-end/60092
17695 * builtins.def (DEF_C11_BUILTIN): Add.
17696 (BUILT_IN_ALIGNED_ALLOC): Likewise.
17697 * coretypes.h (enum function_class): Add function_c11_misc.
17698 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17699 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
17700 (call_may_clobber_ref_p_1): Likewise.
17701 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
17702 (mark_all_reaching_defs_necessary_1): Likewise.
17703 (propagate_necessity): Likewise.
17704 (eliminate_unnecessary_stmts): Likewise.
17705 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
17707 2014-04-28 Richard Biener <rguenther@suse.de>
17709 * tree-vrp.c (vrp_var_may_overflow): Remove.
17710 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
17711 with overflow immediately bump to one before that value and
17712 let iteration figure out overflow status.
17714 2014-04-28 Richard Biener <rguenther@suse.de>
17716 * configure.ac: Do valgrind header checks unconditionally.
17717 Add --enable-valgrind-annotations.
17718 * system.h: Guard valgrind header inclusion with
17719 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
17720 * alloc-pool.c (pool_alloc, pool_free): Use
17721 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
17722 to guard possibly dead code.
17723 * config.in: Regenerated.
17724 * configure: Likewise.
17726 2014-04-28 Jeff Law <law@redhat.com>
17728 PR tree-optimization/60902
17729 * tree-ssa-threadedge.c
17730 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
17731 over real defs when invalidating outputs from statements that do not
17732 produce useful outputs for threading.
17734 2014-04-28 Richard Biener <rguenther@suse.de>
17736 PR tree-optimization/60979
17737 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
17738 SCOPs that end in a block with a successor with abnormal
17741 2014-04-28 Richard Biener <rguenther@suse.de>
17743 * tree-pass.h (execute_pass_list): Adjust prototype.
17744 * passes.c (pass_manager::execute_early_local_passes): Adjust.
17745 (do_per_function): Change callback signature, push all actual
17746 work to the callbals.
17747 (do_per_function_toporder): Likewise.
17748 (execute_function_dump): Adjust.
17749 (execute_function_todo): Likewise.
17750 (clear_last_verified): Likewise.
17751 (verify_curr_properties): Likewise.
17752 (update_properties_after_pass): Likewise.
17753 (execute_pass_list_1): Split out from ...
17754 (execute_pass_list): ... here. Adjust.
17755 (execute_ipa_pass_list): Likewise.
17756 * cgraphunit.c (cgraph_add_new_function): Adjust.
17757 (analyze_function): Likewise.
17758 (expand_function): Likewise.
17759 * cgraph.c (release_function_body): Free dominance info
17760 here instead of asserting it was magically freed elsewhere.
17762 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
17764 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
17765 * configure: Regenerate.
17766 * config/sparc/sparc.opt (muser-mode): New option.
17767 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
17769 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
17770 * doc/invoke.texi (SPARC options): Document -muser-mode.
17772 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
17774 * cselib.c (find_slot_memmode): Delete.
17775 (cselib_hasher): Change compare_type to a struct.
17776 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
17778 (preserve_constants_and_equivs): Adjust for new compare_type.
17779 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
17780 (wrap_constant): Delete.
17781 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
17783 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
17785 * doc/install.texi (Building with profile feedback): Remove
17788 2014-04-26 Tom de Vries <tom@codesourcery.com>
17790 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
17793 2014-04-25 Cary Coutant <ccoutant@google.com>
17796 * dwarf2out.c (should_move_die_to_comdat): A type definition
17797 can contain a subprogram definition, but don't move it to a
17799 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
17800 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
17802 (clone_tree_hash): Rename to...
17803 (clone_tree_partial): ...this; change callers. Copy
17804 DW_TAG_subprogram DIEs as declarations.
17805 (copy_decls_walk): Don't copy children of a declaration into a
17808 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
17811 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
17814 2014-04-25 Jiong Wang <jiong.wang@arm.com>
17816 * config/arm/predicates.md (call_insn_operand): Add long_call check.
17817 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
17819 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
17822 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17824 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
17826 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17828 PR tree-optimization/60930
17829 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
17830 creating a multiply candidate by folding two constant
17831 multiplicands when the result overflows.
17833 2014-04-25 Jakub Jelinek <jakub@redhat.com>
17835 PR tree-optimization/60960
17836 * tree-vect-generic.c (expand_vector_operation): Only call
17837 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
17839 2014-04-25 Tom de Vries <tom@codesourcery.com>
17841 * expr.c (clobber_reg_mode): New function.
17842 * expr.h (clobber_reg): New function.
17844 2014-04-25 Tom de Vries <tom@codesourcery.com>
17846 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
17849 2014-04-25 Radovan Obradovic <robradovic@mips.com>
17850 Tom de Vries <tom@codesourcery.com>
17852 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
17854 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
17855 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
17856 new argument to find_all_hard_reg_sets call.
17858 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17860 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
17861 Use HOST_WIDE_INT_C for mask literal.
17862 (aarch_rev16_shleft_mask_imm_p): Likewise.
17864 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
17867 * config/sparc/sparc.md (ashlsi3_extend): Delete.
17869 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
17871 PR preprocessor/56540
17872 * config/i386/i386-c.c (ix86_target_macros): Define
17873 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
17875 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17877 * configure.ac (tga_func): Remove.
17878 (LIB_TLS_SPEC): Remove.
17879 * configure: Regenerate.
17880 * config.in: Regenerate.
17881 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
17883 2014-04-25 Richard Biener <rguenther@suse.de>
17886 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
17887 call stmt use/clobber sets during stmt walk instead of
17888 walking the possibly incomplete set of caller edges.
17890 2014-04-25 Richard Biener <rguenther@suse.de>
17893 * passes.c (apply_ipa_transforms): Inline into only caller ...
17894 (execute_one_pass): ... here. Properly bring in function
17895 bodies for nodes we want to apply IPA transforms to.
17897 2014-04-24 Cong Hou <congh@google.com>
17899 PR tree-optimization/60896
17900 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
17901 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
17902 (vect_mark_pattern_stmts): Set the def type of all statements in
17903 PATTERN_DEF_SEQ as vect_internal_def.
17905 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17907 * doc/extend.texi (PowerPC Built-in Functions): Document new
17908 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
17909 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
17911 * config/rs6000/predicates.md (const_0_to_3_operand): New
17912 predicate to match 0..3 integer constants.
17914 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
17915 to support adding miscellaneous builtin functions.
17916 (BU_DFP_MISC_2): Likewise.
17917 (BU_P7_MISC_1): Likewise.
17918 (BU_P7_MISC_2): Likewise.
17919 (BU_P8V_MISC_3): Likewise.
17920 (BU_MISC_1): Likewise.
17921 (BU_MISC_2): Likewise.
17922 (DIVWE): Add extended divide builtin functions.
17923 (DIVWEO): Likewise.
17924 (DIVWEU): Likewise.
17925 (DIVWEUO): Likewise.
17927 (DIVDEO): Likewise.
17928 (DIVDEU): Likewise.
17929 (DIVDEUO): Likewise.
17930 (DXEX): Add decimal floating-point builtin functions.
17932 (DDEDPD): Likewise.
17933 (DDEDPDQ): Likewise.
17934 (DENBCD): Likewise.
17935 (DENBCDQ): Likewise.
17939 (DSCLIQ): Likewise.
17941 (DSCRIQ): Likewise.
17942 (CDTBCD): Add new BCD builtin functions.
17943 (CBCDTD): Likewise.
17944 (ADDG6S): Likewise.
17945 (BCDADD): Likewise.
17946 (BCDADD_LT): Likewise.
17947 (BCDADD_EQ): Likewise.
17948 (BCDADD_GT): Likewise.
17949 (BCDADD_OV): Likewise.
17950 (BCDSUB): Likewise.
17951 (BCDSUB_LT): Likewise.
17952 (BCDSUB_EQ): Likewise.
17953 (BCDSUB_GT): Likewise.
17954 (BCDSUB_OV): Likewise.
17955 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
17956 (UNPACK_TD): Likewise.
17957 (PACK_TF): Likewise.
17958 (UNPACK_TF): Likewise.
17959 (UNPACK_TF_0): Likewise.
17960 (UNPACK_TF_1): Likewise.
17961 (PACK_V1TI): Likewise.
17962 (UNPACK_V1TI): Likewise.
17964 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
17965 support for decimal floating point builtin functions.
17966 (rs6000_expand_ternop_builtin): Add checks for the new builtin
17967 functions that take constant arguments.
17968 (rs6000_invalid_builtin): Add decimal floating point builtin support.
17969 (rs6000_init_builtins): Setup long double, _Decimal64, and
17970 _Decimal128 types for new builtin functions.
17971 (builtin_function_type): Set the unsigned flags appropriately for
17972 the new builtin functions.
17973 (rs6000_opt_masks): Add support for decimal floating point builtin
17976 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
17977 floating point builtin functions.
17978 (RS6000_BTM_COMMON): Likewise.
17979 (RS6000_BTI_long_double): Likewise.
17980 (RS6000_BTI_dfloat64): Likewise.
17981 (RS6000_BTI_dfloat128): Likewise.
17982 (long_double_type_internal_node): Likewise.
17983 (dfloat64_type_internal_node): Likewise.
17984 (dfloat128_type_internal_node): Likewise.
17986 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
17987 2.07 bcd arithmetic instructions.
17988 (UNSPEC_BCDSUB): Likewise.
17989 (UNSPEC_BCD_OVERFLOW): Likewise.
17990 (UNSPEC_BCD_ADD_SUB): Likewise.
17991 (bcd_add_sub): Likewise.
17992 (BCD_TEST): Likewise.
17993 (bcd<bcd_add_sub>): Likewise.
17994 (bcd<bcd_add_sub>_test): Likewise.
17995 (bcd<bcd_add_sub>_test2): Likewise.
17996 (bcd<bcd_add_sub>_<code>): Likewise.
17997 (peephole2 for combined bcd ops): Likewise.
17999 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18000 decimal floating point builtin functions.
18001 (UNSPEC_DENBCD): Likewise.
18002 (UNSPEC_DXEX): Likewise.
18003 (UNSPEC_DIEX): Likewise.
18004 (UNSPEC_DSCLI): Likewise.
18005 (UNSPEC_DSCRI): Likewise.
18006 (D64_D128): Likewise.
18007 (dfp_suffix): Likewise.
18008 (dfp_ddedpd_<mode>): Likewise.
18009 (dfp_denbcd_<mode>): Likewise.
18010 (dfp_dxex_<mode>): Likewise.
18011 (dfp_diex_<mode>): Likewise.
18012 (dfp_dscli_<mode>): Likewise.
18013 (dfp_dscri_<mode>): Likewise.
18015 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18017 (UNSPEC_CDTBCD): Likewise.
18018 (UNSPEC_CBCDTD): Likewise.
18019 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18020 (UNSPEC_DIVEO): Likewise.
18021 (UNSPEC_DIVEU): Likewise.
18022 (UNSPEC_DIVEUO): Likewise.
18023 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18024 pack/unpack 128-bit types.
18025 (UNSPEC_PACK_128BIT): Likewise.
18026 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18027 (udiv<mode>3): Use idiv_ldiv mode attribute.
18028 (div<mode>3): Likewise.
18029 (addg6s): Add new BCD builtin functions.
18030 (cdtbcd): Likewise.
18031 (cbcdtd): Likewise.
18032 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18033 (div_extend): Likewise.
18034 (div<div_extend>_<mode>"): Likewise.
18035 (FP128_64): Add support for new builtin functions to pack/unpack
18037 (unpack<mode>): Likewise.
18038 (unpacktf_0): Likewise.
18039 (unpacktf_1): Likewise.
18040 (unpack<mode>_dm): Likewise.
18041 (unpack<mode>_nodm): Likewise.
18042 (pack<mode>): Likewise.
18043 (unpackv1ti): Likewise.
18044 (packv1ti): Likewise.
18046 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18048 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18051 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18053 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18054 * gimplify.c (omp_is_private): Change last argument's type to int.
18055 Only diagnose lastprivate if the simd argument is 1, only diagnose
18056 linear if the simd argument is 2.
18057 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18058 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18059 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18060 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18061 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18062 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18063 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18064 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18065 * tree-nested.c (convert_nonlocal_omp_clauses,
18066 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18068 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18071 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18074 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18076 * flag-types.h (enum ivar_visibility): Add.
18078 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18080 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18081 function * argument.
18083 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18085 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18087 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18088 Tom de Vries <tom@codesourcery.com>
18090 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18091 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18093 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18094 * emit-rtl.c (try_split): Same.
18096 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18097 Tom de Vries <tom@codesourcery.com>
18099 * common.opt (fuse-caller-save): New option.
18101 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18103 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18104 elements for big-endian.
18106 2014-04-24 Richard Biener <rguenther@suse.de>
18108 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18109 during TER and instead use the sepops interface for expanding
18110 non-GIMPLE_SINGLE_RHS.
18112 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18114 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18115 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18117 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18119 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18120 assembler 64-bit option.
18121 * configure: Regenerate.
18123 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18125 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18126 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18127 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18128 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18129 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18131 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18133 * config/aarch64/aarch64-builtins.c
18134 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18135 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18136 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18137 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18139 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18140 (Vrevsuff): New mode attribute.
18142 2014-04-24 Terry Guo <terry.guo@arm.com>
18144 * config/arm/arm.h (machine_function): Define variable
18145 after_arm_reorg here.
18146 * config/arm/arm.c (after_arm_reorg): Remove the definition.
18147 (arm_split_constant): Update the way to access variable
18149 (arm_reorg): Ditto.
18150 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18152 2014-04-23 Tom de Vries <tom@codesourcery.com>
18154 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18156 2014-04-23 David Malcolm <dmalcolm@redhat.com>
18158 * is-a.h: Update comments to reflect the following changes to the
18159 "pointerness" of the API, making the template parameter match the
18160 return type, allowing use of is-a.h with typedefs of pointers.
18161 (is_a_helper::cast): Return a T rather then a pointer to a T, so
18162 that the return type matches the parameter to the is_a_helper.
18164 (dyn_cast): Likewise.
18166 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
18167 pointer from the is-a.h API.
18169 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
18170 (is_a_helper <cgraph_node *>::test): ...this, matching change to
18172 (is_a_helper <varpool_node>::test): Likewise, convert to...
18173 (is_a_helper <varpool_node *>::test): ...this.
18175 (varpool_first_variable): Update for removal of implicit pointer
18176 from the is-a.h API.
18177 (varpool_next_variable): Likewise.
18178 (varpool_first_static_initializer): Likewise.
18179 (varpool_next_static_initializer): Likewise.
18180 (varpool_first_defined_variable): Likewise.
18181 (varpool_next_defined_variable): Likewise.
18182 (cgraph_first_defined_function): Likewise.
18183 (cgraph_next_defined_function): Likewise.
18184 (cgraph_first_function): Likewise.
18185 (cgraph_next_function): Likewise.
18186 (cgraph_first_function_with_gimple_body): Likewise.
18187 (cgraph_next_function_with_gimple_body): Likewise.
18188 (cgraph_alias_target): Likewise.
18189 (varpool_alias_target): Likewise.
18190 (cgraph_function_or_thunk_node): Likewise.
18191 (varpool_variable_node): Likewise.
18192 (symtab_real_symbol_p): Likewise.
18193 * cgraphunit.c (referred_to_p): Likewise.
18194 (analyze_functions): Likewise.
18195 (handle_alias_pairs): Likewise.
18196 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
18197 * gimple-ssa.h (gimple_vuse_op): Likewise.
18198 (gimple_vdef_op): Likewise.
18199 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
18200 * gimple.c (gimple_build_asm_1): Likewise.
18201 (gimple_build_try): Likewise.
18202 (gimple_build_resx): Likewise.
18203 (gimple_build_eh_dispatch): Likewise.
18204 (gimple_build_omp_for): Likewise.
18205 (gimple_omp_for_set_clauses): Likewise.
18207 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
18208 (is_a_helper <gimple_statement_asm *>::test): ...this.
18209 (is_a_helper <gimple_statement_bind>::test): Convert to...
18210 (is_a_helper <gimple_statement_bind *>::test): ...this.
18211 (is_a_helper <gimple_statement_call>::test): Convert to...
18212 (is_a_helper <gimple_statement_call *>::test): ...this.
18213 (is_a_helper <gimple_statement_catch>::test): Convert to...
18214 (is_a_helper <gimple_statement_catch *>::test): ...this.
18215 (is_a_helper <gimple_statement_resx>::test): Convert to...
18216 (is_a_helper <gimple_statement_resx *>::test): ...this.
18217 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
18218 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
18219 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
18220 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
18221 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
18222 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
18223 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
18224 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
18225 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
18226 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
18227 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
18228 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
18229 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
18230 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
18231 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
18232 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
18233 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
18234 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
18235 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
18236 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
18237 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
18238 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
18239 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
18240 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
18241 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
18242 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
18243 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
18244 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
18245 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
18246 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
18247 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
18248 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
18249 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
18250 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
18251 (is_a_helper <gimple_statement_phi>::test): Convert to...
18252 (is_a_helper <gimple_statement_phi *>::test): ...this.
18253 (is_a_helper <gimple_statement_transaction>::test): Convert to...
18254 (is_a_helper <gimple_statement_transaction *>::test): ...this.
18255 (is_a_helper <gimple_statement_try>::test): Convert to...
18256 (is_a_helper <gimple_statement_try *>::test): ...this.
18257 (is_a_helper <gimple_statement_wce>::test): Convert to...
18258 (is_a_helper <gimple_statement_wce *>::test): ...this.
18259 (is_a_helper <const gimple_statement_asm>::test): Convert to...
18260 (is_a_helper <const gimple_statement_asm *>::test): ...this.
18261 (is_a_helper <const gimple_statement_bind>::test): Convert to...
18262 (is_a_helper <const gimple_statement_bind *>::test): ...this.
18263 (is_a_helper <const gimple_statement_call>::test): Convert to...
18264 (is_a_helper <const gimple_statement_call *>::test): ...this.
18265 (is_a_helper <const gimple_statement_catch>::test): Convert to...
18266 (is_a_helper <const gimple_statement_catch *>::test): ...this.
18267 (is_a_helper <const gimple_statement_resx>::test): Convert to...
18268 (is_a_helper <const gimple_statement_resx *>::test): ...this.
18269 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
18270 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
18271 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
18272 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
18273 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
18275 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
18277 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
18279 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
18281 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
18282 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
18283 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
18285 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
18286 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
18288 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
18289 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
18290 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
18291 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
18292 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
18293 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
18295 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
18296 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
18297 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
18298 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
18300 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
18301 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
18302 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
18303 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
18304 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
18305 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
18306 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
18307 (is_a_helper <const gimple_statement_phi>::test): Convert to...
18308 (is_a_helper <const gimple_statement_phi *>::test): ...this.
18309 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
18310 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
18311 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
18312 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
18313 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
18314 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
18315 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
18317 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
18319 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
18320 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
18322 (gimple_use_ops): Update for removal of implicit pointer from the
18324 (gimple_set_use_ops): Likewise.
18325 (gimple_vuse): Likewise.
18326 (gimple_vdef): Likewise.
18327 (gimple_vuse_ptr): Likewise.
18328 (gimple_vdef_ptr): Likewise.
18329 (gimple_set_vuse): Likewise.
18330 (gimple_set_vdef): Likewise.
18331 (gimple_omp_return_set_lhs): Likewise.
18332 (gimple_omp_return_lhs): Likewise.
18333 (gimple_omp_return_lhs_ptr): Likewise.
18334 (gimple_call_fntype): Likewise.
18335 (gimple_call_set_fntype): Likewise.
18336 (gimple_call_set_internal_fn): Likewise.
18337 (gimple_call_use_set): Likewise.
18338 (gimple_call_clobber_set): Likewise.
18339 (gimple_bind_vars): Likewise.
18340 (gimple_bind_set_vars): Likewise.
18341 (gimple_bind_body_ptr): Likewise.
18342 (gimple_bind_set_body): Likewise.
18343 (gimple_bind_add_stmt): Likewise.
18344 (gimple_bind_block): Likewise.
18345 (gimple_bind_set_block): Likewise.
18346 (gimple_asm_ninputs): Likewise.
18347 (gimple_asm_noutputs): Likewise.
18348 (gimple_asm_nclobbers): Likewise.
18349 (gimple_asm_nlabels): Likewise.
18350 (gimple_asm_input_op): Likewise.
18351 (gimple_asm_input_op_ptr): Likewise.
18352 (gimple_asm_output_op): Likewise.
18353 (gimple_asm_output_op_ptr): Likewise.
18354 (gimple_asm_set_output_op): Likewise.
18355 (gimple_asm_clobber_op): Likewise.
18356 (gimple_asm_set_clobber_op): Likewise.
18357 (gimple_asm_label_op): Likewise.
18358 (gimple_asm_set_label_op): Likewise.
18359 (gimple_asm_string): Likewise.
18360 (gimple_catch_types): Likewise.
18361 (gimple_catch_types_ptr): Likewise.
18362 (gimple_catch_handler_ptr): Likewise.
18363 (gimple_catch_set_types): Likewise.
18364 (gimple_catch_set_handler): Likewise.
18365 (gimple_eh_filter_types): Likewise.
18366 (gimple_eh_filter_types_ptr): Likewise.
18367 (gimple_eh_filter_failure_ptr): Likewise.
18368 (gimple_eh_filter_set_types): Likewise.
18369 (gimple_eh_filter_set_failure): Likewise.
18370 (gimple_eh_must_not_throw_fndecl): Likewise.
18371 (gimple_eh_must_not_throw_set_fndecl): Likewise.
18372 (gimple_eh_else_n_body_ptr): Likewise.
18373 (gimple_eh_else_e_body_ptr): Likewise.
18374 (gimple_eh_else_set_n_body): Likewise.
18375 (gimple_eh_else_set_e_body): Likewise.
18376 (gimple_try_eval_ptr): Likewise.
18377 (gimple_try_cleanup_ptr): Likewise.
18378 (gimple_try_set_eval): Likewise.
18379 (gimple_try_set_cleanup): Likewise.
18380 (gimple_wce_cleanup_ptr): Likewise.
18381 (gimple_wce_set_cleanup): Likewise.
18382 (gimple_phi_capacity): Likewise.
18383 (gimple_phi_num_args): Likewise.
18384 (gimple_phi_result): Likewise.
18385 (gimple_phi_result_ptr): Likewise.
18386 (gimple_phi_set_result): Likewise.
18387 (gimple_phi_arg): Likewise.
18388 (gimple_phi_set_arg): Likewise.
18389 (gimple_resx_region): Likewise.
18390 (gimple_resx_set_region): Likewise.
18391 (gimple_eh_dispatch_region): Likewise.
18392 (gimple_eh_dispatch_set_region): Likewise.
18393 (gimple_omp_critical_name): Likewise.
18394 (gimple_omp_critical_name_ptr): Likewise.
18395 (gimple_omp_critical_set_name): Likewise.
18396 (gimple_omp_for_clauses): Likewise.
18397 (gimple_omp_for_clauses_ptr): Likewise.
18398 (gimple_omp_for_set_clauses): Likewise.
18399 (gimple_omp_for_collapse): Likewise.
18400 (gimple_omp_for_index): Likewise.
18401 (gimple_omp_for_index_ptr): Likewise.
18402 (gimple_omp_for_set_index): Likewise.
18403 (gimple_omp_for_initial): Likewise.
18404 (gimple_omp_for_initial_ptr): Likewise.
18405 (gimple_omp_for_set_initial): Likewise.
18406 (gimple_omp_for_final): Likewise.
18407 (gimple_omp_for_final_ptr): Likewise.
18408 (gimple_omp_for_set_final): Likewise.
18409 (gimple_omp_for_incr): Likewise.
18410 (gimple_omp_for_incr_ptr): Likewise.
18411 (gimple_omp_for_set_incr): Likewise.
18412 (gimple_omp_for_pre_body_ptr): Likewise.
18413 (gimple_omp_for_set_pre_body): Likewise.
18414 (gimple_omp_parallel_clauses): Likewise.
18415 (gimple_omp_parallel_clauses_ptr): Likewise.
18416 (gimple_omp_parallel_set_clauses): Likewise.
18417 (gimple_omp_parallel_child_fn): Likewise.
18418 (gimple_omp_parallel_child_fn_ptr): Likewise.
18419 (gimple_omp_parallel_set_child_fn): Likewise.
18420 (gimple_omp_parallel_data_arg): Likewise.
18421 (gimple_omp_parallel_data_arg_ptr): Likewise.
18422 (gimple_omp_parallel_set_data_arg): Likewise.
18423 (gimple_omp_task_clauses): Likewise.
18424 (gimple_omp_task_clauses_ptr): Likewise.
18425 (gimple_omp_task_set_clauses): Likewise.
18426 (gimple_omp_task_child_fn): Likewise.
18427 (gimple_omp_task_child_fn_ptr): Likewise.
18428 (gimple_omp_task_set_child_fn): Likewise.
18429 (gimple_omp_task_data_arg): Likewise.
18430 (gimple_omp_task_data_arg_ptr): Likewise.
18431 (gimple_omp_task_set_data_arg): Likewise.
18432 (gimple_omp_taskreg_clauses): Likewise.
18433 (gimple_omp_taskreg_clauses_ptr): Likewise.
18434 (gimple_omp_taskreg_set_clauses): Likewise.
18435 (gimple_omp_taskreg_child_fn): Likewise.
18436 (gimple_omp_taskreg_child_fn_ptr): Likewise.
18437 (gimple_omp_taskreg_set_child_fn): Likewise.
18438 (gimple_omp_taskreg_data_arg): Likewise.
18439 (gimple_omp_taskreg_data_arg_ptr): Likewise.
18440 (gimple_omp_taskreg_set_data_arg): Likewise.
18441 (gimple_omp_task_copy_fn): Likewise.
18442 (gimple_omp_task_copy_fn_ptr): Likewise.
18443 (gimple_omp_task_set_copy_fn): Likewise.
18444 (gimple_omp_task_arg_size): Likewise.
18445 (gimple_omp_task_arg_size_ptr): Likewise.
18446 (gimple_omp_task_set_arg_size): Likewise.
18447 (gimple_omp_task_arg_align): Likewise.
18448 (gimple_omp_task_arg_align_ptr): Likewise.
18449 (gimple_omp_task_set_arg_align): Likewise.
18450 (gimple_omp_single_clauses): Likewise.
18451 (gimple_omp_single_clauses_ptr): Likewise.
18452 (gimple_omp_single_set_clauses): Likewise.
18453 (gimple_omp_target_clauses): Likewise.
18454 (gimple_omp_target_clauses_ptr): Likewise.
18455 (gimple_omp_target_set_clauses): Likewise.
18456 (gimple_omp_target_child_fn): Likewise.
18457 (gimple_omp_target_child_fn_ptr): Likewise.
18458 (gimple_omp_target_set_child_fn): Likewise.
18459 (gimple_omp_target_data_arg): Likewise.
18460 (gimple_omp_target_data_arg_ptr): Likewise.
18461 (gimple_omp_target_set_data_arg): Likewise.
18462 (gimple_omp_teams_clauses): Likewise.
18463 (gimple_omp_teams_clauses_ptr): Likewise.
18464 (gimple_omp_teams_set_clauses): Likewise.
18465 (gimple_omp_sections_clauses): Likewise.
18466 (gimple_omp_sections_clauses_ptr): Likewise.
18467 (gimple_omp_sections_set_clauses): Likewise.
18468 (gimple_omp_sections_control): Likewise.
18469 (gimple_omp_sections_control_ptr): Likewise.
18470 (gimple_omp_sections_set_control): Likewise.
18471 (gimple_omp_for_set_cond): Likewise.
18472 (gimple_omp_for_cond): Likewise.
18473 (gimple_omp_atomic_store_set_val): Likewise.
18474 (gimple_omp_atomic_store_val): Likewise.
18475 (gimple_omp_atomic_store_val_ptr): Likewise.
18476 (gimple_omp_atomic_load_set_lhs): Likewise.
18477 (gimple_omp_atomic_load_lhs): Likewise.
18478 (gimple_omp_atomic_load_lhs_ptr): Likewise.
18479 (gimple_omp_atomic_load_set_rhs): Likewise.
18480 (gimple_omp_atomic_load_rhs): Likewise.
18481 (gimple_omp_atomic_load_rhs_ptr): Likewise.
18482 (gimple_omp_continue_control_def): Likewise.
18483 (gimple_omp_continue_control_def_ptr): Likewise.
18484 (gimple_omp_continue_set_control_def): Likewise.
18485 (gimple_omp_continue_control_use): Likewise.
18486 (gimple_omp_continue_control_use_ptr): Likewise.
18487 (gimple_omp_continue_set_control_use): Likewise.
18488 (gimple_transaction_body_ptr): Likewise.
18489 (gimple_transaction_label): Likewise.
18490 (gimple_transaction_label_ptr): Likewise.
18491 (gimple_transaction_set_body): Likewise.
18492 (gimple_transaction_set_label): Likewise.
18494 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
18495 * ipa-inline-analysis.c (inline_write_summary): Likewise.
18496 * ipa-ref.c (ipa_record_reference): Likewise.
18497 * ipa-reference.c (analyze_function): Likewise.
18498 (ipa_reference_write_optimization_summary): Likewise.
18499 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
18500 (address_taken_from_non_vtable_p): Likewise.
18501 (comdat_can_be_unshared_p_1): Likewise.
18502 * lto-cgraph.c (lto_output_ref): Likewise.
18503 (add_references): Likewise.
18504 (compute_ltrans_boundary): Likewise.
18505 (output_symtab): Likewise.
18506 (input_ref): Likewise.
18507 (input_cgraph_1): Likewise.
18508 (output_cgraph_opt_summary): Likewise.
18509 * lto-streamer-out.c (lto_output): Likewise.
18510 (output_symbol_p): Likewise.
18511 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
18512 (lsei_start_function_in_partition): Likewise.
18513 (lsei_next_variable_in_partition): Likewise.
18514 (lsei_start_variable_in_partition): Likewise.
18515 * symtab.c (insert_to_assembler_name_hash): Likewise.
18516 (unlink_from_assembler_name_hash): Likewise.
18517 (symtab_unregister_node): Likewise.
18518 (symtab_remove_node): Likewise.
18519 (dump_symtab_node): Likewise.
18520 (verify_symtab_base): Likewise.
18521 (verify_symtab_node): Likewise.
18522 (symtab_make_decl_local): Likewise.
18523 (symtab_alias_ultimate_target): Likewise.
18524 (symtab_resolve_alias): Likewise.
18525 (symtab_get_symbol_partitioning_class): Likewise.
18526 * tree-phinodes.c (allocate_phi_node): Likewise.
18527 (reserve_phi_args_for_new_edge): Likewise.
18528 (remove_phi_args): Likewise.
18529 * varpool.c (varpool_node_for_asm): Likewise.
18530 (varpool_remove_unreferenced_decls): Likewise.
18532 2014-04-23 Jeff Law <law@redhat.com>
18534 PR tree-optimization/60902
18535 * tree-ssa-threadedge.c
18536 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
18537 invalidate outputs from statements that do not produce useful
18538 outputs for threading.
18540 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
18542 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
18543 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
18544 machine descriptions for Stack Smashing Protector.
18546 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
18548 * aarch64.md (<optab>_rol<mode>3): New pattern.
18549 (<optab>_rolsi3_uxtw): Likewise.
18550 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
18552 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
18554 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
18555 (arm_cortex_a12_tune): Likewise.
18557 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18559 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
18561 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18563 * config/arm/arm.md (arm_rev16si2): New pattern.
18564 (arm_rev16si2_alt): Likewise.
18565 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
18567 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18569 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
18570 (rev16<mode>2_alt): Likewise.
18571 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
18572 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
18573 (aarch_rev16_shleft_mask_imm_p): Likewise.
18574 (aarch_rev16_p_1): Likewise.
18575 (aarch_rev16_p): Likewise.
18576 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
18577 (aarch_rev16_shright_mask_imm_p): Likewise.
18578 (aarch_rev16_shleft_mask_imm_p): Likewise.
18580 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18582 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
18583 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
18585 (cortex_a53_extra_costs): Likewise.
18586 (cortex_a57_extra_costs): Likewise.
18587 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
18588 (cortexa7_extra_costs): Likewise.
18589 (cortexa8_extra_costs): Likewise.
18590 (cortexa12_extra_costs): Likewise.
18591 (cortexa15_extra_costs): Likewise.
18592 (v7m_extra_costs): Likewise.
18593 (arm_new_rtx_costs): Handle BSWAP.
18595 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18597 * config/arm/arm.c (cortexa8_extra_costs): New table.
18598 (arm_cortex_a8_tune): New tuning struct.
18599 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
18601 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18603 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
18605 2014-04-23 Richard Biener <rguenther@suse.de>
18607 * Makefile.in (OBJS): Remove loop-unswitch.o.
18608 * tree-pass.h (make_pass_rtl_unswitch): Remove.
18609 * passes.def (pass_rtl_unswitch): Likewise.
18610 * loop-init.c (gate_rtl_unswitch): Likewise.
18611 (rtl_unswitch): Likewise.
18612 (pass_data_rtl_unswitch): Likewise.
18613 (pass_rtl_unswitch): Likewise.
18614 (make_pass_rtl_unswitch): Likewise.
18615 * rtl.h (reversed_condition): Likewise.
18616 (compare_and_jump_seq): Likewise.
18617 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
18619 * loop-unroll.c (compare_and_jump_seq): Likewise.
18621 2014-04-23 Richard Biener <rguenther@suse.de>
18623 PR tree-optimization/60903
18624 * tree-ssa-loop-im.c (analyze_memory_references): Remove
18625 commented code block.
18626 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
18627 loop flags to newly created BBs and edges.
18629 2014-04-23 Nick Clifton <nickc@redhat.com>
18631 * config/msp430/msp430.c (msp430_handle_option): Move function
18633 (msp430_option_override): Simplify mcu and mcpu option handling.
18634 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
18635 support for -mhwmult command line option.
18636 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
18637 -mhwmult command line option.
18638 (msp430_hwmult_enabled): Delete.
18639 (msp43o_output_labelref): Add support for -mhwmult command line option.
18640 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
18641 (umulsidi3): Likewise.
18642 * config/msp430/msp430.opt (mmcu): Add Report attribute.
18643 (mcpu, mlarge, msmall): Likewise.
18644 (mhwmult): New option.
18645 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
18647 (msp430_is_f5_mcu): Remove prototype.
18648 (msp430_use_f5_series_hwmult): Add prototype.
18649 * config/msp430/msp430-opts.h: New file.
18650 * common/config/msp430: New directory.
18651 * common/config/msp430/msp430-common.c: New file.
18652 * config.gcc (msp430): Remove target_has_targetm_common.
18653 * doc/invoke.texi: Document -mhwmult command line option.
18655 2014-04-23 Nick Clifton <nickc@redhat.com>
18657 * config/i386/cygwin.h (ENDFILE_SPEC): Include
18658 default-manifest.o if it can be found in the search path.
18659 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
18661 2014-04-23 Terry Guo <terry.guo@arm.com>
18663 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
18665 2014-04-23 Richard Biener <rguenther@suse.de>
18667 PR middle-end/60895
18668 * tree-inline.c (declare_return_variable): Use mark_addressable.
18670 2014-04-23 Richard Biener <rguenther@suse.de>
18672 PR middle-end/60891
18673 * loop-init.c (loop_optimizer_init): Make sure to apply
18674 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
18676 2014-04-22 Jakub Jelinek <jakub@redhat.com>
18679 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
18681 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
18682 if flag_sanitize_undefined_trap_on_error.
18683 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
18684 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
18685 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
18686 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
18687 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
18688 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
18689 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
18690 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
18691 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
18692 * ubsan.c (ubsan_instrument_unreachable): Return
18693 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
18694 (ubsan_expand_null_ifn): Emit __builtin_trap ()
18695 if flag_sanitize_undefined_trap_on_error and
18696 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
18697 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
18698 instrument_bool_enum_load): Emit __builtin_trap () if
18699 flag_sanitize_undefined_trap_on_error and
18700 __builtin_handle_*_abort () if !flag_sanitize_recover.
18701 * doc/invoke.texi (-fsanitize-recover,
18702 -fsanitize-undefined-trap-on-error): Document.
18704 2014-04-22 Christian Bruel <christian.bruel@st.com>
18706 * config/sh/sh.md (mov<mode>): Replace movQIHI.
18707 Force immediates to SImode.
18709 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
18711 * config/nios2/nios2.md (UNSPEC_ROUND): New.
18712 (lroundsfsi2): New.
18713 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
18714 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
18715 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
18716 (nios2_fpu_insn): Add entry for round.
18717 (N2FPU_NO_ERRNO_P): Define.
18718 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
18720 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
18722 2014-04-22 Richard Henderson <rth@redhat.com>
18724 * config/aarch64/aarch64 (addti3, subti3): New expanders.
18725 (add<GPI>3_compare0): Remove leading * from name.
18726 (add<GPI>3_carryin): Likewise.
18727 (sub<GPI>3_compare0): Likewise.
18728 (sub<GPI>3_carryin): Likewise.
18729 (<su_optab>mulditi3): New expander.
18730 (multi3): New expander.
18731 (madd<GPI>): Remove leading * from name.
18733 2014-04-22 Martin Jambor <mjambor@suse.cz>
18735 * cgraphclones.c (cgraph_function_versioning): Copy
18736 ipa_transforms_to_apply instead of asserting it is empty.
18738 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
18741 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
18742 on count_exp to get mode.
18744 2014-04-22 Andrew Pinski <apinski@cavium.com>
18746 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
18747 Handle TLS for ILP32.
18748 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
18749 (tlsie_small_<mode>): this and handle PTR.
18750 (tlsie_small_sidi): New pattern.
18751 (tlsle_small): Change to an expand to handle ILP32.
18752 (tlsle_small_<mode>): New pattern.
18753 (tlsdesc_small): Rename to ...
18754 (tlsdesc_small_<mode>): this and handle PTR.
18756 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18758 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
18760 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
18762 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
18763 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
18764 (aarch64_types_signed_poly_qualifiers): Likewise.
18765 (aarch64_types_unsigned_signed_qualifiers): Likewise.
18766 (aarch64_types_poly_signed_qualifiers): Likewise.
18767 (TYPES_REINTERP_SS): Type macro added.
18768 (TYPES_REINTERP_SU): Likewise.
18769 (TYPES_REINTERP_SP): Likewise.
18770 (TYPES_REINTERP_US): Likewise.
18771 (TYPES_REINTERP_PS): Likewise.
18772 (aarch64_fold_builtin): New expression folding added.
18773 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
18774 Declarations removed.
18775 (REINTERP_SS): Declarations added.
18776 (REINTERP_US): Likewise.
18777 (REINTERP_PS): Likewise.
18778 (REINTERP_SU): Likewise.
18779 (REINTERP_SP): Likewise.
18780 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
18781 (vreinterpretq_p8_f64): Likewise.
18782 (vreinterpret_p16_f64): Likewise.
18783 (vreinterpretq_p16_f64): Likewise.
18784 (vreinterpret_f32_f64): Likewise.
18785 (vreinterpretq_f32_f64): Likewise.
18786 (vreinterpret_f64_f32): Likewise.
18787 (vreinterpret_f64_p8): Likewise.
18788 (vreinterpret_f64_p16): Likewise.
18789 (vreinterpret_f64_s8): Likewise.
18790 (vreinterpret_f64_s16): Likewise.
18791 (vreinterpret_f64_s32): Likewise.
18792 (vreinterpret_f64_s64): Likewise.
18793 (vreinterpret_f64_u8): Likewise.
18794 (vreinterpret_f64_u16): Likewise.
18795 (vreinterpret_f64_u32): Likewise.
18796 (vreinterpret_f64_u64): Likewise.
18797 (vreinterpretq_f64_f32): Likewise.
18798 (vreinterpretq_f64_p8): Likewise.
18799 (vreinterpretq_f64_p16): Likewise.
18800 (vreinterpretq_f64_s8): Likewise.
18801 (vreinterpretq_f64_s16): Likewise.
18802 (vreinterpretq_f64_s32): Likewise.
18803 (vreinterpretq_f64_s64): Likewise.
18804 (vreinterpretq_f64_u8): Likewise.
18805 (vreinterpretq_f64_u16): Likewise.
18806 (vreinterpretq_f64_u32): Likewise.
18807 (vreinterpretq_f64_u64): Likewise.
18808 (vreinterpret_s64_f64): Likewise.
18809 (vreinterpretq_s64_f64): Likewise.
18810 (vreinterpret_u64_f64): Likewise.
18811 (vreinterpretq_u64_f64): Likewise.
18812 (vreinterpret_s8_f64): Likewise.
18813 (vreinterpretq_s8_f64): Likewise.
18814 (vreinterpret_s16_f64): Likewise.
18815 (vreinterpretq_s16_f64): Likewise.
18816 (vreinterpret_s32_f64): Likewise.
18817 (vreinterpretq_s32_f64): Likewise.
18818 (vreinterpret_u8_f64): Likewise.
18819 (vreinterpretq_u8_f64): Likewise.
18820 (vreinterpret_u16_f64): Likewise.
18821 (vreinterpretq_u16_f64): Likewise.
18822 (vreinterpret_u32_f64): Likewise.
18823 (vreinterpretq_u32_f64): Likewise.
18825 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
18827 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
18828 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
18829 (vreinterpret_p8_s8): Likewise.
18830 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
18831 (vreinterpret_p8_s16): Likewise.
18832 (vreinterpret_p8_s32): Likewise.
18833 (vreinterpret_p8_s64): Likewise.
18834 (vreinterpret_p8_f32): Likewise.
18835 (vreinterpret_p8_u8): Likewise.
18836 (vreinterpret_p8_u16): Likewise.
18837 (vreinterpret_p8_u32): Likewise.
18838 (vreinterpret_p8_u64): Likewise.
18839 (vreinterpret_p8_p16): Likewise.
18840 (vreinterpretq_p8_s8): Likewise.
18841 (vreinterpretq_p8_s16): Likewise.
18842 (vreinterpretq_p8_s32): Likewise.
18843 (vreinterpretq_p8_s64): Likewise.
18844 (vreinterpretq_p8_f32): Likewise.
18845 (vreinterpretq_p8_u8): Likewise.
18846 (vreinterpretq_p8_u16): Likewise.
18847 (vreinterpretq_p8_u32): Likewise.
18848 (vreinterpretq_p8_u64): Likewise.
18849 (vreinterpretq_p8_p16): Likewise.
18850 (vreinterpret_p16_s8): Likewise.
18851 (vreinterpret_p16_s16): Likewise.
18852 (vreinterpret_p16_s32): Likewise.
18853 (vreinterpret_p16_s64): Likewise.
18854 (vreinterpret_p16_f32): Likewise.
18855 (vreinterpret_p16_u8): Likewise.
18856 (vreinterpret_p16_u16): Likewise.
18857 (vreinterpret_p16_u32): Likewise.
18858 (vreinterpret_p16_u64): Likewise.
18859 (vreinterpret_p16_p8): Likewise.
18860 (vreinterpretq_p16_s8): Likewise.
18861 (vreinterpretq_p16_s16): Likewise.
18862 (vreinterpretq_p16_s32): Likewise.
18863 (vreinterpretq_p16_s64): Likewise.
18864 (vreinterpretq_p16_f32): Likewise.
18865 (vreinterpretq_p16_u8): Likewise.
18866 (vreinterpretq_p16_u16): Likewise.
18867 (vreinterpretq_p16_u32): Likewise.
18868 (vreinterpretq_p16_u64): Likewise.
18869 (vreinterpretq_p16_p8): Likewise.
18870 (vreinterpret_f32_s8): Likewise.
18871 (vreinterpret_f32_s16): Likewise.
18872 (vreinterpret_f32_s32): Likewise.
18873 (vreinterpret_f32_s64): Likewise.
18874 (vreinterpret_f32_u8): Likewise.
18875 (vreinterpret_f32_u16): Likewise.
18876 (vreinterpret_f32_u32): Likewise.
18877 (vreinterpret_f32_u64): Likewise.
18878 (vreinterpret_f32_p8): Likewise.
18879 (vreinterpret_f32_p16): Likewise.
18880 (vreinterpretq_f32_s8): Likewise.
18881 (vreinterpretq_f32_s16): Likewise.
18882 (vreinterpretq_f32_s32): Likewise.
18883 (vreinterpretq_f32_s64): Likewise.
18884 (vreinterpretq_f32_u8): Likewise.
18885 (vreinterpretq_f32_u16): Likewise.
18886 (vreinterpretq_f32_u32): Likewise.
18887 (vreinterpretq_f32_u64): Likewise.
18888 (vreinterpretq_f32_p8): Likewise.
18889 (vreinterpretq_f32_p16): Likewise.
18890 (vreinterpret_s64_s8): Likewise.
18891 (vreinterpret_s64_s16): Likewise.
18892 (vreinterpret_s64_s32): Likewise.
18893 (vreinterpret_s64_f32): Likewise.
18894 (vreinterpret_s64_u8): Likewise.
18895 (vreinterpret_s64_u16): Likewise.
18896 (vreinterpret_s64_u32): Likewise.
18897 (vreinterpret_s64_u64): Likewise.
18898 (vreinterpret_s64_p8): Likewise.
18899 (vreinterpret_s64_p16): Likewise.
18900 (vreinterpretq_s64_s8): Likewise.
18901 (vreinterpretq_s64_s16): Likewise.
18902 (vreinterpretq_s64_s32): Likewise.
18903 (vreinterpretq_s64_f32): Likewise.
18904 (vreinterpretq_s64_u8): Likewise.
18905 (vreinterpretq_s64_u16): Likewise.
18906 (vreinterpretq_s64_u32): Likewise.
18907 (vreinterpretq_s64_u64): Likewise.
18908 (vreinterpretq_s64_p8): Likewise.
18909 (vreinterpretq_s64_p16): Likewise.
18910 (vreinterpret_u64_s8): Likewise.
18911 (vreinterpret_u64_s16): Likewise.
18912 (vreinterpret_u64_s32): Likewise.
18913 (vreinterpret_u64_s64): Likewise.
18914 (vreinterpret_u64_f32): Likewise.
18915 (vreinterpret_u64_u8): Likewise.
18916 (vreinterpret_u64_u16): Likewise.
18917 (vreinterpret_u64_u32): Likewise.
18918 (vreinterpret_u64_p8): Likewise.
18919 (vreinterpret_u64_p16): Likewise.
18920 (vreinterpretq_u64_s8): Likewise.
18921 (vreinterpretq_u64_s16): Likewise.
18922 (vreinterpretq_u64_s32): Likewise.
18923 (vreinterpretq_u64_s64): Likewise.
18924 (vreinterpretq_u64_f32): Likewise.
18925 (vreinterpretq_u64_u8): Likewise.
18926 (vreinterpretq_u64_u16): Likewise.
18927 (vreinterpretq_u64_u32): Likewise.
18928 (vreinterpretq_u64_p8): Likewise.
18929 (vreinterpretq_u64_p16): Likewise.
18930 (vreinterpret_s8_s16): Likewise.
18931 (vreinterpret_s8_s32): Likewise.
18932 (vreinterpret_s8_s64): Likewise.
18933 (vreinterpret_s8_f32): Likewise.
18934 (vreinterpret_s8_u8): Likewise.
18935 (vreinterpret_s8_u16): Likewise.
18936 (vreinterpret_s8_u32): Likewise.
18937 (vreinterpret_s8_u64): Likewise.
18938 (vreinterpret_s8_p8): Likewise.
18939 (vreinterpret_s8_p16): Likewise.
18940 (vreinterpretq_s8_s16): Likewise.
18941 (vreinterpretq_s8_s32): Likewise.
18942 (vreinterpretq_s8_s64): Likewise.
18943 (vreinterpretq_s8_f32): Likewise.
18944 (vreinterpretq_s8_u8): Likewise.
18945 (vreinterpretq_s8_u16): Likewise.
18946 (vreinterpretq_s8_u32): Likewise.
18947 (vreinterpretq_s8_u64): Likewise.
18948 (vreinterpretq_s8_p8): Likewise.
18949 (vreinterpretq_s8_p16): Likewise.
18950 (vreinterpret_s16_s8): Likewise.
18951 (vreinterpret_s16_s32): Likewise.
18952 (vreinterpret_s16_s64): Likewise.
18953 (vreinterpret_s16_f32): Likewise.
18954 (vreinterpret_s16_u8): Likewise.
18955 (vreinterpret_s16_u16): Likewise.
18956 (vreinterpret_s16_u32): Likewise.
18957 (vreinterpret_s16_u64): Likewise.
18958 (vreinterpret_s16_p8): Likewise.
18959 (vreinterpret_s16_p16): Likewise.
18960 (vreinterpretq_s16_s8): Likewise.
18961 (vreinterpretq_s16_s32): Likewise.
18962 (vreinterpretq_s16_s64): Likewise.
18963 (vreinterpretq_s16_f32): Likewise.
18964 (vreinterpretq_s16_u8): Likewise.
18965 (vreinterpretq_s16_u16): Likewise.
18966 (vreinterpretq_s16_u32): Likewise.
18967 (vreinterpretq_s16_u64): Likewise.
18968 (vreinterpretq_s16_p8): Likewise.
18969 (vreinterpretq_s16_p16): Likewise.
18970 (vreinterpret_s32_s8): Likewise.
18971 (vreinterpret_s32_s16): Likewise.
18972 (vreinterpret_s32_s64): Likewise.
18973 (vreinterpret_s32_f32): Likewise.
18974 (vreinterpret_s32_u8): Likewise.
18975 (vreinterpret_s32_u16): Likewise.
18976 (vreinterpret_s32_u32): Likewise.
18977 (vreinterpret_s32_u64): Likewise.
18978 (vreinterpret_s32_p8): Likewise.
18979 (vreinterpret_s32_p16): Likewise.
18980 (vreinterpretq_s32_s8): Likewise.
18981 (vreinterpretq_s32_s16): Likewise.
18982 (vreinterpretq_s32_s64): Likewise.
18983 (vreinterpretq_s32_f32): Likewise.
18984 (vreinterpretq_s32_u8): Likewise.
18985 (vreinterpretq_s32_u16): Likewise.
18986 (vreinterpretq_s32_u32): Likewise.
18987 (vreinterpretq_s32_u64): Likewise.
18988 (vreinterpretq_s32_p8): Likewise.
18989 (vreinterpretq_s32_p16): Likewise.
18990 (vreinterpret_u8_s8): Likewise.
18991 (vreinterpret_u8_s16): Likewise.
18992 (vreinterpret_u8_s32): Likewise.
18993 (vreinterpret_u8_s64): Likewise.
18994 (vreinterpret_u8_f32): Likewise.
18995 (vreinterpret_u8_u16): Likewise.
18996 (vreinterpret_u8_u32): Likewise.
18997 (vreinterpret_u8_u64): Likewise.
18998 (vreinterpret_u8_p8): Likewise.
18999 (vreinterpret_u8_p16): Likewise.
19000 (vreinterpretq_u8_s8): Likewise.
19001 (vreinterpretq_u8_s16): Likewise.
19002 (vreinterpretq_u8_s32): Likewise.
19003 (vreinterpretq_u8_s64): Likewise.
19004 (vreinterpretq_u8_f32): Likewise.
19005 (vreinterpretq_u8_u16): Likewise.
19006 (vreinterpretq_u8_u32): Likewise.
19007 (vreinterpretq_u8_u64): Likewise.
19008 (vreinterpretq_u8_p8): Likewise.
19009 (vreinterpretq_u8_p16): Likewise.
19010 (vreinterpret_u16_s8): Likewise.
19011 (vreinterpret_u16_s16): Likewise.
19012 (vreinterpret_u16_s32): Likewise.
19013 (vreinterpret_u16_s64): Likewise.
19014 (vreinterpret_u16_f32): Likewise.
19015 (vreinterpret_u16_u8): Likewise.
19016 (vreinterpret_u16_u32): Likewise.
19017 (vreinterpret_u16_u64): Likewise.
19018 (vreinterpret_u16_p8): Likewise.
19019 (vreinterpret_u16_p16): Likewise.
19020 (vreinterpretq_u16_s8): Likewise.
19021 (vreinterpretq_u16_s16): Likewise.
19022 (vreinterpretq_u16_s32): Likewise.
19023 (vreinterpretq_u16_s64): Likewise.
19024 (vreinterpretq_u16_f32): Likewise.
19025 (vreinterpretq_u16_u8): Likewise.
19026 (vreinterpretq_u16_u32): Likewise.
19027 (vreinterpretq_u16_u64): Likewise.
19028 (vreinterpretq_u16_p8): Likewise.
19029 (vreinterpretq_u16_p16): Likewise.
19030 (vreinterpret_u32_s8): Likewise.
19031 (vreinterpret_u32_s16): Likewise.
19032 (vreinterpret_u32_s32): Likewise.
19033 (vreinterpret_u32_s64): Likewise.
19034 (vreinterpret_u32_f32): Likewise.
19035 (vreinterpret_u32_u8): Likewise.
19036 (vreinterpret_u32_u16): Likewise.
19037 (vreinterpret_u32_u64): Likewise.
19038 (vreinterpret_u32_p8): Likewise.
19039 (vreinterpret_u32_p16): Likewise.
19040 (vreinterpretq_u32_s8): Likewise.
19041 (vreinterpretq_u32_s16): Likewise.
19042 (vreinterpretq_u32_s32): Likewise.
19043 (vreinterpretq_u32_s64): Likewise.
19044 (vreinterpretq_u32_f32): Likewise.
19045 (vreinterpretq_u32_u8): Likewise.
19046 (vreinterpretq_u32_u16): Likewise.
19047 (vreinterpretq_u32_u64): Likewise.
19048 (vreinterpretq_u32_p8): Likewise.
19049 (vreinterpretq_u32_p16): Likewise.
19051 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19053 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19055 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19057 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19058 (vqnegd_s64): Likewise.
19059 (vqabs_s64): Likewise.
19060 (vqabsd_s64): Likewise.
19062 2014-04-22 Richard Henderson <rth@redhat.com>
19064 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19065 computation to the top of the loop.
19067 2014-04-22 Renlin <renlin.li@arm.com>
19068 Jiong Wang <jiong.wang@arm.com>
19070 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19071 * config/aarch64/aarch64.c (aarch64_layout_frame)
19072 (aarch64_initial_elimination_offset): Likewise.
19074 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19076 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19079 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19081 * machmode.h (bitwise_mode_for_mode): Declare.
19082 * stor-layout.h (bitwise_type_for_mode): Likewise.
19083 * stor-layout.c (bitwise_mode_for_mode): New function.
19084 (bitwise_type_for_mode): Likewise.
19085 * builtins.c (fold_builtin_memory_op): Use it instead of
19086 int_mode_for_mode and build_nonstandard_integer_type.
19088 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19090 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19091 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19092 (*-*-solaris2*): Simplify.
19093 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19094 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19095 *-*-solaris2.9* handling.
19097 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19099 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19100 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19101 handling, simplify.
19102 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19103 * configure: Regenerate.
19105 * config/i386/sol2-9.h: Remove.
19107 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19108 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19109 Remove Solaris 9 references.
19111 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19113 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19114 (floatuns<GPI:mode><GPF:mode>2): Remove.
19115 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19116 and floatuns conversions.
19117 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19118 and floatuns conversions.
19119 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19120 (w1,w2): New mode attributes for inequal width conversions.
19122 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19124 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19125 the output asm format.
19127 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19129 * config/aarch64/aarch64-simd.md
19130 (aarch64_cm<optab>di): Always split.
19131 (*aarch64_cm<optab>di): New.
19132 (aarch64_cmtstdi): Always split.
19133 (*aarch64_cmtstdi): New.
19135 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19137 PR tree-optimization/60823
19138 * omp-low.c (ipa_simd_modify_function_body): Go through
19139 all SSA_NAMEs and for those refering to vector arguments
19140 which are going to be replaced adjust SSA_NAME_VAR and,
19141 if it is a default definition, change it into a non-default
19142 definition assigned at the beginning of function from new_decl.
19143 (ipa_simd_modify_stmt_ops): Rewritten.
19144 * tree-dfa.c (set_ssa_default_def): When removing default def,
19145 check for NULL loc instead of NULL *loc.
19147 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19149 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19150 restrictions on core registers for DImode values in Thumb2.
19152 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19154 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19155 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19157 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19159 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
19160 (*iordi_notzesidi_di): Likewise.
19161 (*iordi_notsesidi_di): Likewise.
19163 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19165 * config/arm/arm-protos.h (tune_params): New struct members.
19166 * config/arm/arm.c: Initialise tune_params per processor.
19167 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
19168 for speed, based on new tune_params.
19170 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19172 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
19173 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
19174 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
19175 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
19176 * config/aarch64/arm_neon.h (vrnd_f64): Added.
19177 (vrnda_f64): Likewise.
19178 (vrndi_f64): Likewise.
19179 (vrndm_f64): Likewise.
19180 (vrndn_f64): Likewise.
19181 (vrndp_f64): Likewise.
19182 (vrndx_f64): Likewise.
19184 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19186 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
19187 GET_MODE_SIZE argument is enum machine_mode.
19189 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19192 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
19193 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
19195 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
19197 PR middle-end/60281
19198 * asan.c (asan_emit_stack_protection): Force the base to align to
19199 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
19200 appropriate bits if STRICT_ALIGNMENT.
19201 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
19203 (expand_used_vars): Leave a space in the stack frame for alignment
19204 if STRICT_ALIGNMENT.
19206 2014-04-21 David Malcolm <dmalcolm@redhat.com>
19208 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
19210 (gimple_store_p): Likewise.
19211 (gimple_assign_load_p): Likewise.
19212 (gimple_assign_cast_p): Likewise.
19213 (gimple_clobber_p): Likewise.
19215 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
19216 rather than a gimple.
19217 (gimple_assign_cast_p): Likewise.
19219 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19222 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
19223 If mode is DDmode and TARGET_E500_DOUBLE allow move.
19225 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
19226 more debug information for E500 if -mdebug=reg.
19228 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
19231 * config/i386/i386.c (ix86_expand_builtin)
19232 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
19233 register for target RTX.
19234 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
19236 2014-04-18 Cong Hou <congh@google.com>
19238 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
19239 the widen-mult pattern by handling two operands with different sizes,
19240 and operands whose size is smaller than half of the result type.
19242 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19244 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
19245 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
19246 (do_estimate_edge_time): Compute it.
19247 * ipa-inline.c (want_inline_small_function_p): Bypass
19248 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
19250 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19252 * ipa-inline.c (spec_rem): New static variable.
19253 (dump_overall_stats): New function.
19254 (dump_inline_stats): New function.
19256 2014-04-18 Richard Henderson <rth@redhat.com>
19258 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
19259 to GET_MODE_SIZE, not a reg_class_t.
19261 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19263 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
19264 (vsx_xxmrglw_<mode>): Likewise.
19266 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
19269 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
19270 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
19271 (rs6000_init_hard_regno_mode_ok): Likewise.
19273 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
19275 * ipa-inline.c (inline_small_functions): Account only non-cold
19277 * doc/invoke.texi (inline-unit-growth): Update documentation.
19279 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
19281 * config/rs6000/rs6000.md (addti3, subti3): New.
19283 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
19286 * config/i386/i386.c (ix86_expand_clear): Remove outdated
19287 comment. Check optimize_insn_for_size_p instead of
19288 optimize_insn_for_speed_p.
19290 2014-04-17 Martin Jambor <mjambor@suse.cz>
19292 * gimple-iterator.c (gsi_start_edge): New function.
19293 * gimple-iterator.h (gsi_start_edge): Declare.
19294 * tree-sra.c (single_non_eh_succ): New function.
19295 (disqualify_ops_if_throwing_stmt): Renamed to
19296 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
19297 having one non-EH successor BB.
19298 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
19299 generate loads into replacements.
19300 (sra_modify_assign): Likewise and and also use the simple path for
19302 (sra_modify_function_body): Commit statements on edges.
19304 2014-04-17 Richard Biener <rguenther@suse.de>
19306 PR middle-end/60849
19307 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
19308 comparison results and add clarifying comment.
19310 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19312 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
19313 (blank_mode): Initialize it.
19314 (emit_mode_size_inline, emit_mode_nunits_inline,
19315 emit_mode_inner_inline): New functions.
19316 (emit_insn_modes_h): Call them and surround their output with
19317 #if GCC_VERSION >= 4001 ... #endif.
19318 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
19319 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
19320 mode_* arrays if the argument is __builtin_constant_p.
19321 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
19322 is enum machine_mode.
19324 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19326 * passes.c (opt_pass::execute): Adjust.
19327 (pass_manager::execute_pass_mode_switching): Likewise.
19328 (early_local_passes::execute): Likewise.
19329 (execute_one_pass): Pass cfun to the pass's execute method.
19330 * tree-pass.h (opt_pass::execute): Add function * argument.
19331 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19332 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19333 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19334 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19335 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19336 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
19337 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
19338 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19339 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19340 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
19341 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
19342 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
19343 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
19344 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
19345 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19346 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19347 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19348 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
19349 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19350 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19351 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19352 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19353 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19354 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19355 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19356 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19357 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19358 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19359 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19362 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19364 * passes.c (opt_pass::gate): Take function * argument.
19365 (gate_all_early_local_passes): Merge into
19366 (early_local_passes::gate): this.
19367 (gate_all_early_optimizations): Merge into
19368 (all_early_optimizations::gate): this.
19369 (gate_all_optimizations): Mege into
19370 (all_optimizations::gate): this.
19371 (gate_all_optimizations_g): Merge into
19372 (all_optimizations_g::gate): this.
19373 (gate_rest_of_compilation): Mege into
19374 (rest_of_compilation::gate): this.
19375 (gate_postreload): Merge into
19376 (postreload::gate): this.
19377 (dump_one_pass): Pass cfun to the pass's gate method.
19378 (execute_ipa_summary_passes): Likewise.
19379 (execute_one_pass): Likewise.
19380 (ipa_write_summaries_2): Likewise.
19381 (ipa_write_optimization_summaries_1): Likewise.
19382 (ipa_read_summaries_1): Likewise.
19383 (ipa_read_optimization_summaries_1): Likewise.
19384 (execute_ipa_stmt_fixups): Likewise.
19385 * tree-pass.h (opt_pass::gate): Add function * argument.
19386 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
19387 combine-stack-adj.c, combine.c, compare-elim.c,
19388 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19389 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
19390 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
19391 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
19392 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19393 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19394 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19395 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
19396 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
19397 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
19398 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19399 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19400 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
19401 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19402 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19403 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19404 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19405 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19406 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19407 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19408 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19409 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19410 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
19411 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
19412 var-tracking.c, vtable-verify.c, web.c: Adjust.
19414 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19416 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
19417 * configure: Regenerate.
19419 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19421 * passes.c (dump_one_pass): don't check pass->has_gate.
19422 (execute_ipa_summary_passes): Likewise.
19423 (execute_one_pass): Likewise.
19424 (ipa_write_summaries_2): Likewise.
19425 (ipa_write_optimization_summaries_1): Likewise.
19426 (ipa_read_optimization_summaries_1): Likewise.
19427 (execute_ipa_stmt_fixups): Likewise.
19428 * tree-pass.h (pass_data::has_gate): Remove.
19429 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19430 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19431 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19432 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19433 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19434 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
19435 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
19436 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
19437 gimple-low.c, gimple-ssa-isolate-paths.c,
19438 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
19439 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
19440 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19441 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
19442 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
19443 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
19444 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
19445 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
19446 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
19447 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19448 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19449 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19450 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19451 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19452 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19453 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19454 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19455 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19456 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19457 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19458 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19459 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19462 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19464 * pass_manager.h (pass_manager::register_dump_files_1): Remove
19466 * passes.c (pass_manager::register_dump_files_1): Merge into
19467 (pass_manager::register_dump_files): this, and remove its handling of
19468 properties since the pass always has the properties anyway.
19469 (pass_manager::pass_manager): Adjust.
19471 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19473 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
19474 * passes.c (pass_manager::register_dump_files_1): Remove dead code
19475 dealing with properties.
19476 (pass_manager::register_dump_files): Adjust.
19478 2014-03-20 Mark Wielaard <mjw@redhat.com>
19480 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
19481 then represent the bound as normal constant value.
19483 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19486 Forward port from 4.8 branch
19487 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
19489 * config/i386/bmiintrin.h (_blsi_u32): New.
19490 (_blsi_u64): Ditto.
19491 (_blsr_u32): Ditto.
19492 (_blsr_u64): Ditto.
19493 (_blsmsk_u32): Ditto.
19494 (_blsmsk_u64): Ditto.
19495 (_tzcnt_u32): Ditto.
19496 (_tzcnt_u64): Ditto.
19498 2014-04-17 Kito Cheng <kito@0xlab.org>
19500 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
19502 2014-04-17 Richard Biener <rguenther@suse.de>
19504 PR middle-end/60849
19505 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
19506 boolean results for comparisons.
19508 2014-04-17 Richard Biener <rguenther@suse.de>
19510 PR tree-optimization/60836
19511 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
19512 initial PHI args to be gimple values.
19514 2014-04-17 Richard Biener <rguenther@suse.de>
19516 PR tree-optimization/60841
19517 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
19518 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
19519 of stmts to SLP build.
19520 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
19521 (vect_analyze_slp): Likewise.
19522 (vect_analyze_slp_instance): Likewise.
19523 (vect_build_slp_tree): Limit overall SLP tree growth.
19524 * tree-vectorizer.h (vect_analyze_data_refs,
19525 vect_analyze_slp): Adjust prototypes.
19527 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19529 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
19532 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19534 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
19535 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
19536 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
19537 for TARGET_SLOW_PSHUFB
19539 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19541 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
19542 * config/i386/i386.c (intel_cost): Ditto.
19544 2014-04-17 Joey Ye <joey.ye@arm.com>
19546 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
19548 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19550 * opts.c (common_handle_option): Disable -fipa-reference coorectly
19551 with -fuse-profile.
19553 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19555 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
19556 (type_all_derivations_known_p): New predicate.
19557 (type_all_ctors_visible_p): New predicate.
19558 (type_possibly_instantiated_p): New predicate.
19559 (get_odr_type): Compute all_derivations_known.
19560 (dump_odr_type): Dump the flag.
19561 (maybe_record_type): Cleanup.
19562 (record_target_from_binfo): Add bases_to_consider array;
19563 record bases for types w/o instances and skip CXX destructor.
19564 (possible_polymorphic_call_targets_1): Add bases_to_consider
19565 and consider_construction parameters; check if type may have instance.
19566 (get_polymorphic_call_info): Set maybe_in_construction to true
19567 when we know nothing.
19568 (record_targets_from_bases): Skip CXX destructors; they are
19569 never called for types in construction.
19570 (possible_polymorphic_call_targets): Do not record target when
19571 type may not have instance.
19573 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19576 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
19577 external aliases alive, too.
19579 2014-04-16 Andrew Pinski <apinski@cavium.com>
19581 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
19584 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
19586 * final.c (compute_alignments): Do not apply loop alignment to a block
19587 falling through to the exit.
19589 2014-04-16 Catherine Moore <clm@codesourcery.com>
19591 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
19592 Adjust constraints for microMIPS store patterns.
19594 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
19596 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
19598 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
19600 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
19601 (append_use): Run at -O0.
19602 (append_vdef): Likewise.
19603 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
19604 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
19606 2014-04-16 Jakub Jelinek <jakub@redhat.com>
19608 PR tree-optimization/60844
19609 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
19610 (propagate_op_to_single_use, remove_visited_stmt_chain,
19611 linearize_expr, repropagate_negates, reassociate_bb): Use it
19612 instead of gsi_remove.
19614 2014-04-16 Martin Jambor <mjambor@suse.cz>
19616 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
19617 ipa_transforms_to_apply.
19618 (cgraph_function_versioning): Assert that old_node has empty
19619 ipa_transforms_to_apply.
19620 * trans-mem.c (ipa_tm_create_version): Likewise.
19621 * tree-inline.c (tree_function_versioning): Do not duplicate
19622 ipa_transforms_to_apply.
19624 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19627 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
19629 Pass necessary as flags on 64-bit Solaris/x86.
19630 Use lowercase relocs for x86_64-*-*.
19631 * configure: Regenerate.
19633 2014-04-15 Jan Hubicka <jh@suse.cz>
19635 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
19636 (maybe_record_node, likely_target_p): Use it.
19638 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19641 Revert following patch
19643 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19646 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
19647 software floating point or no floating point registers, do not
19648 allow any type in the FPRs. Eliminate a test for SPE SIMD types
19649 in GPRs that occurs after we tested for GPRs that would never be
19652 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
19653 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
19654 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
19655 specifically allow DDmode, since that does not use the SPE SIMD
19658 2014-03-21 Mark Wielaard <mjw@redhat.com>
19660 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
19661 as unsigned or int depending on type and value used.
19663 2014-04-15 Richard Biener <rguenther@suse.de>
19665 PR rtl-optimization/56965
19666 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
19667 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
19669 * alias.c (true_dependence_1): Do not call
19670 nonoverlapping_component_refs_p.
19671 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
19672 nonoverlapping_component_refs_p.
19673 (indirect_refs_may_alias_p): Likewise.
19675 2014-04-15 Teresa Johnson <tejohnson@google.com>
19677 * cfg.c (dump_bb_info): Fix flags check.
19678 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
19680 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19682 PR rtl-optimization/60663
19683 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
19686 2014-04-15 Richard Biener <rguenther@suse.de>
19688 * lto-streamer.h (LTO_major_version): Bump to 4.
19690 2014-04-15 Richard Biener <rguenther@suse.de>
19692 * common.opt (lto_partition_model): New enum.
19693 (flto-partition=): Merge separate options with a single with argument,
19694 add -flto-partition=one support.
19695 * flag-types.h (enum lto_partition_model): Declare.
19696 * opts.c (finish_options): Remove duplicate -flto-partition=
19698 * lto-wrapper.c (run_gcc): Adjust.
19700 2014-04-15 Richard Biener <rguenther@suse.de>
19702 * alias.c (ncr_compar): New function.
19703 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
19705 2014-04-15 Richard Biener <rguenther@suse.de>
19707 * alias.c (record_component_aliases): Do not walk BINFOs.
19709 2014-04-15 Richard Biener <rguenther@suse.de>
19711 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19712 Add struct function argument and adjust.
19713 (find_func_aliases_for_call): Likewise.
19714 (find_func_aliases): Likewise.
19715 (find_func_clobbers): Likewise.
19716 (intra_create_variable_infos): Likewise.
19717 (compute_points_to_sets): Likewise.
19718 (ipa_pta_execute): Adjust. Do not push/pop cfun.
19720 2014-04-15 Richard Biener <rguenther@suse.de>
19722 * tree.c (iterative_hash_expr): Use enum tree_code_class
19723 to store TREE_CODE_CLASS.
19724 (tree_block): Likewise.
19725 (tree_set_block): Likewise.
19726 * tree.h (fold_build_pointer_plus_loc): Use
19727 convert_to_ptrofftype_loc.
19729 2014-04-15 Jakub Jelinek <jakub@redhat.com>
19732 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
19735 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
19737 * cfgloop.h (struct loop): Move force_vectorize down.
19738 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
19739 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
19740 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
19741 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
19742 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
19743 * tree-core.h (enum annot_expr_kind): Add new kind values.
19744 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
19745 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
19747 * tree.def (ANNOTATE_EXPR): Tweak comment.
19749 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
19751 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
19754 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
19756 * tree.h (TYPE_IDENTIFIER): Declare.
19757 * tree.c (subrange_type_for_debug_p): Use it.
19758 * godump.c (go_format_type): Likewise.
19759 * dwarf2out.c (is_cxx_auto, modified_type_die,
19760 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
19761 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
19763 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
19766 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
19768 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
19770 * config/i386/i386.c (examine_argument): Return bool. Return true if
19771 parameter should be passed in memory.
19772 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
19773 (construct_container): Update calls to examine_argument.
19774 (function_arg_advance_64): Ditto.
19775 (return_in_memory_32): Merge with ix86_return_in_memory.
19776 (return_in_memory_64): Ditto.
19777 (return_in_memory_ms_64): Ditto.
19779 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
19781 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
19782 * coverage.c (coverage_compute_profile_id): Handle externally visible
19785 2014-04-14 Martin Jambor <mjambor@suse.cz>
19787 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
19788 DECL_DISREGARD_INLINE_LIMITS functions.
19790 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
19793 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
19795 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
19798 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
19799 optimize_insn_for_speed_p instead of
19800 optimize_function_for_speed_p.
19802 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
19804 * doc/invoke.texi (free): Document AArch64.
19806 2014-04-14 Richard Biener <rguenther@suse.de>
19808 PR tree-optimization/60042
19809 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
19810 (insert_into_preds_of_block): Do not prevent PHI insertion
19811 for REFERENCE exprs here ...
19812 (eliminate_dom_walker::before_dom_children): ... but prevent
19813 their use here under similar conditions when applied to the
19814 IL after PRE optimizations.
19816 2014-04-14 Richard Biener <rguenther@suse.de>
19818 * passes.def: Move early points-to after early SRA.
19820 2014-04-14 Richard Biener <rguenther@suse.de>
19822 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
19823 check for which sign-changes we allow when forwarding
19824 a converted value into a switch.
19826 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
19828 * stor-layout.c (place_field): Finalize non-constant offset for the
19831 2014-04-14 Richard Biener <rguenther@suse.de>
19833 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
19835 (expand_switch_using_bit_tests_p): Likewise.
19836 (process_switch): Compute and pass on speed_p based on the
19838 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
19839 optimize_bb_for_speed_p.
19841 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
19843 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
19844 * function.h (struct function): Rename has_force_vect_loops into
19845 has_force_vectorize_loops.
19846 * lto-streamer-in.c (input_cfg): Adjust for renaming.
19847 (input_struct_function_base): Likewise.
19848 * lto-streamer-out.c (output_cfg): Likewise.
19849 (output_struct_function_base): Likewise.
19850 * omp-low.c (expand_omp_simd): Likewise.
19851 * tree-cfg.c (move_sese_region_to_fn): Likewise.
19852 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
19853 (version_loop_for_if_conversion): Likewise.
19854 (tree_if_conversion): Likewise.
19855 (main_tree_if_conversion): Likewise.
19856 (gate_tree_if_conversion): Likewise.
19857 * tree-inline.c (copy_loops): Likewise.
19858 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
19859 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
19860 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
19861 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
19862 * tree-vectorizer.c (vectorize_loops): Likewise.
19863 * tree-vectorizer.h (unlimited_cost_model): Likewise.
19865 2014-04-14 Richard Biener <rguenther@suse.de>
19868 * lto-streamer-out.c (wrap_refs): New function.
19869 (lto_output): Wrap symbol references in global initializes in
19870 type-preserving MEM_REFs.
19872 2014-04-14 Christian Bruel <christian.bruel@st.com>
19874 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
19876 2014-04-14 Christian Bruel <christian.bruel@st.com>
19878 * config/sh/sh.md (setmemqi): New expand pattern.
19879 * config/sh/sh.h (CLEAR_RATIO): Define.
19880 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
19881 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
19883 2014-04-14 Richard Biener <rguenther@suse.de>
19885 PR middle-end/55022
19886 * fold-const.c (negate_expr_p): Don't negate directional rounding
19888 (fold_negate_expr): Likewise.
19890 2014-04-14 Richard Biener <rguenther@suse.de>
19892 PR tree-optimization/59817
19893 PR tree-optimization/60453
19894 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
19895 recursion to catch all CHRECs in the scalar evolution and restrict
19896 the predicate for the remains appropriately.
19898 2014-04-12 Catherine Moore <clm@codesourcery.com>
19900 * config/mips/constraints.md: Add new register constraint "kb".
19901 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
19902 (*movhi_internal): Likewise.
19903 (*movqi_internal): Likewise.
19904 * config/mips/mips.h (M16_STORE_REGS): New register class.
19905 (REG_CLASS_NAMES): Add M16_STORE_REGS.
19906 (REG_CLASS_CONTENTS): Likewise.
19907 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
19909 2014-04-11 Tobias Burnus <burnus@net-b.de>
19912 * doc/invoke.texi (-Wformat-signedness): Document it.
19913 (Wformat=2): Mention that this enables -Wformat-signedness.
19915 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
19917 * common/config/epiphany/epiphany-common.c
19918 (epiphany_option_optimization_table): Enable section anchors by
19919 default at -O1 or higher.
19920 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
19921 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
19922 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
19923 carries no extra cost.
19924 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
19925 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
19926 * config/epiphany/predicates.md (memclob_operand): New predicate.
19927 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
19928 Use memclob_operand predicate and X constraint for operand 3.
19930 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
19932 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
19933 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
19936 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
19938 PR rtl-optimization/60651
19939 * mode-switching.c (optimize_mode_switching): Make sure to emit
19940 sets of a lower numbered entity before sets of a higher numbered
19941 entity to a mode of the same or lower priority.
19942 When creating a seginfo for a basic block that starts with a code
19943 label, move the insertion point past the code label.
19944 (new_seginfo): Document and enforce requirement that
19945 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
19946 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
19947 * doc/tm.texi: Regenerate.
19949 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
19952 * config/arc/arc.c (arc_save_restore): Fix assert typo.
19954 2013-04-11 Jakub Jelinek <jakub@redhat.com>
19956 * BASE-VER: Set to 4.10.0.
19958 2014-04-11 Tobias Burnus <burnus@net-b.de>
19961 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
19962 * doc/gcc.texi (Service): Update description in the @menu
19963 * doc/invoke.texi (Option Summary): Remove misplaced and
19966 2014-04-11 Steve Ellcey <sellcey@mips.com>
19967 Jakub Jelinek <jakub@redhat.com>
19969 PR middle-end/60556
19970 * expr.c (convert_move): Use emit_store_flag_force instead of
19971 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
19974 2014-04-11 Richard Biener <rguenther@suse.de>
19976 PR middle-end/60797
19977 * varasm.c (assemble_alias): Avoid endless error reporting
19978 recursion by setting TREE_ASM_WRITTEN.
19980 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19982 * config/s390/s390.md: Add a splitter for NOT rtx.
19984 2014-04-11 Jakub Jelinek <jakub@redhat.com>
19986 PR rtl-optimization/60663
19987 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
19989 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
19990 Jakub Jelinek <jakub@redhat.com>
19993 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
19994 flag from decl_node to node.
19996 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19999 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20000 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20001 ameliorating the cases where it can be.
20003 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20006 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20008 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20009 (loadsync_<mode>): Change mode.
20010 (load_quadpti, store_quadpti): New.
20011 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20012 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20013 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20015 2014-04-09 Cong Hou <congh@google.com>
20018 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20021 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20023 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20024 instead of vnor to exploit possible fusion opportunity in the
20026 (altivec_expand_vec_perm_const_le): Likewise.
20028 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20030 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20031 (loadsync_<mode>): Change mode.
20032 (load_quadpti, store_quadpti): New.
20033 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20034 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20036 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20039 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20040 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20041 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20043 2014-04-08 Richard Biener <rguenther@suse.de>
20045 PR middle-end/60706
20046 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20047 a 64bit widest int print double-int similar to on HWI64 hosts.
20049 2014-04-08 Richard Biener <rguenther@suse.de>
20051 PR tree-optimization/60785
20052 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20053 default defs properly.
20055 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20057 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20058 (Weffc++): Likewise.
20060 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20062 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20063 set completep to false rather than true.
20065 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20068 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20069 ARM_TARGET2_DWARF_FORMAT.
20071 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20074 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20075 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20078 2014-04-07 Richard Biener <rguenther@suse.de>
20080 PR tree-optimization/60766
20081 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20082 (may_eliminate_iv): Convert cand_value_at result to desired type.
20084 2014-04-07 Jason Merrill <jason@redhat.com>
20087 * common.opt (-fno-gnu-unique): Add.
20088 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20090 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20092 * haifa-sched.c: Fix outdated function reference and minor
20093 grammar errors in introductory comment.
20095 2014-04-07 Richard Biener <rguenther@suse.de>
20097 PR middle-end/60750
20098 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20099 for noreturn calls.
20100 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20102 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20105 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20106 size accounting for thunks.
20107 (pa_asm_output_mi_thunk): Use final_start_function() and
20108 final_end_function() to output function start and end directives.
20110 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20112 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20113 device specific ISA/ feature information. Remove short_sp and
20114 errata_skip ds. Add avr_device_specific_features enum to have device
20116 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20117 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20118 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20119 updated device specific info.
20120 * config/avr/avr-mcus.def: Merge device specific details to
20121 dev_attribute field.
20122 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20124 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20125 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20126 assembler if RMW isa supported by current device.
20127 * config/avr/genmultilib.awk: Update as device info structure changed.
20128 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20130 2014-04-04 Cong Hou <congh@google.com>
20132 PR tree-optimization/60656
20133 * tree-vect-stmts.c (supportable_widening_operation):
20134 Fix a bug that elements in a vector with vect_used_by_reduction
20135 property are incorrectly reordered when the operation on it is not
20136 consistant with the one in reduction operation.
20138 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
20140 PR rtl-optimization/60155
20141 * gcse.c (record_set_data): New function.
20142 (single_set_gcse): New function.
20143 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20144 (hoist_code): Likewise.
20145 (get_pressure_class_and_nregs): Likewise.
20147 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
20149 * explow.c (probe_stack_range): Emit a final optimization blockage.
20151 2014-04-04 Anthony Green <green@moxielogic.com>
20153 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20156 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
20159 * lto-cgraph.c (input_overwrite_node): Check that partitioning
20160 flags are set only during streaming.
20161 * ipa.c (process_references, walk_polymorphic_call_targets,
20162 symtab_remove_unreachable_nodes): Drop bodies of always inline
20163 after early inlining.
20164 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
20166 2014-04-04 Jakub Jelinek <jakub@redhat.com>
20167 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20170 * dwarf2out.c (const_ok_for_output_1): Reject expressions
20173 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20176 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
20178 (cortex_a53_fdivd): Likewise.
20180 2014-04-04 Martin Jambor <mjambor@suse.cz>
20183 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
20184 Adjust all callers.
20185 * cgraph.c (clone_of_p): Also return true if thunks match.
20186 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
20187 cgraph_function_or_thunk_node and an obsolete comment.
20188 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
20190 (build_function_decl_skip_args): Likewise.
20191 (set_new_clone_decl_and_node_flags): New function.
20192 (duplicate_thunk_for_node): Likewise.
20193 (redirect_edge_duplicating_thunks): Likewise.
20194 (cgraph_clone_node): New parameter args_to_skip, pass it to
20195 redirect_edge_duplicating_thunks which is called instead of
20196 cgraph_redirect_edge_callee.
20197 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
20198 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
20200 2014-04-04 Jeff Law <law@redhat.com>
20203 * config/arm/predicates.md (const_int_I_operand): New predicate.
20204 (const_int_M_operand): Similarly.
20205 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
20207 (insv_t2, extv_reg, extzv_t2): Likewise.
20208 (load_multiple_with_writeback): Similarly for const_int_I_operand.
20209 (pop_multiple_with_writeback_and_return): Likewise.
20210 (vfp_pop_multiple_with_writeback): Likewise
20212 2014-04-04 Richard Biener <rguenther@suse.de>
20215 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
20216 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
20218 * gimplify.h (gimple_add_tmp_var_fn): Declare.
20219 * gimplify.c (gimple_add_tmp_var_fn): New function.
20220 * gimple-expr.h (create_tmp_reg_fn): Declare.
20221 * gimple-expr.c (create_tmp_reg_fn): New function.
20222 * gimple-low.c (record_vars_into): Don't change cfun.
20223 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
20224 code generation without cfun.
20226 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
20229 * Makefile.in (install-driver): Fix shell scripting.
20231 2014-04-03 Cong Hou <congh@google.com>
20233 PR tree-optimization/60505
20234 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
20235 threshold of number of iterations below which no vectorization
20237 * tree-vect-loop.c (new_loop_vec_info):
20238 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
20239 * tree-vect-loop.c (vect_analyze_loop_operations):
20240 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
20241 * tree-vect-loop.c (vect_transform_loop):
20242 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
20243 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
20244 of iterations of the loop and see if we should build the epilogue.
20246 2014-04-03 Richard Biener <rguenther@suse.de>
20248 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
20249 (streamer_tree_cache_create): Adjust.
20250 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
20251 to allow optional nodes array.
20252 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
20253 (streamer_tree_cache_append): Likewise.
20254 (streamer_tree_cache_create): Create nodes array optionally
20255 as specified by parameter.
20256 * lto-streamer-out.c (create_output_block): Avoid maintaining
20257 the node array in the writer cache.
20258 (DFS_write_tree): Remove assertion.
20259 (produce_asm_for_decls): Free the out decl state hash table early.
20260 * lto-streamer-in.c (lto_data_in_create): Adjust for
20261 streamer_tree_cache_create prototype change.
20263 2014-04-03 Richard Biener <rguenther@suse.de>
20265 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
20266 set TREE_CHAIN to NULL_TREE.
20268 2014-04-03 Richard Biener <rguenther@suse.de>
20270 PR tree-optimization/60740
20271 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
20272 over all GIMPLE_COND operands.
20274 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
20276 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
20277 (Weffc++): Remove Scott's numbering, merge lists and reference
20280 2014-04-03 Nick Clifton <nickc@redhat.com>
20282 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
20285 2014-04-03 Martin Jambor <mjambor@suse.cz>
20287 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
20288 mention gcc_unreachable before failing.
20289 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
20292 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
20295 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
20296 inconsistent code and instead mark the context inconsistent.
20297 (possible_polymorphic_call_targets): For inconsistent contexts
20298 return empty complete list.
20300 2014-04-02 Anthony Green <green@moxielogic.com>
20302 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
20303 (extendqisi2, extendhisi2): Define.
20304 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
20305 (WCHAR_TYPE): Change to unsigned int.
20307 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20309 PR tree-optimization/60733
20310 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
20311 insertion point for PHI candidates to be the end of the feeding
20312 block for the PHI argument.
20314 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
20316 PR rtl-optimization/60650
20317 * lra-constraints.c (process_alt_operands): Decrease reject for
20318 earlyclobber matching.
20320 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20322 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
20324 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20326 * config/spu/spu.c (pad_bb): Do not crash when the last
20327 insn is CODE_FOR_blockage.
20329 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20331 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
20332 lies outside the target mode.
20334 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20337 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20338 software floating point or no floating point registers, do not
20339 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20340 in GPRs that occurs after we tested for GPRs that would never be
20343 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20344 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20345 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20346 specifically allow DDmode, since that does not use the SPE SIMD
20349 2014-04-02 Richard Biener <rguenther@suse.de>
20351 PR middle-end/60729
20352 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
20353 MODE_INTs. Properly use negv_optab.
20354 (expand_abs): Likewise.
20356 2014-04-02 Richard Biener <rguenther@suse.de>
20359 * Makefile.in (install-driver): Guard extra installs with special
20362 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
20364 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20365 Document vec_vgbbd.
20367 2014-04-01 Richard Henderson <rth@redhat.com>
20370 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
20371 alternative enabled before register allocation.
20373 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
20375 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
20376 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
20378 (nios2_large_got_address): Remove unneeded 'sym' parameter.
20379 (nios2_got_address): Update nios2_large_got_address call site.
20380 (nios2_delegitimize_address): New function.
20381 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
20382 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
20383 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
20385 2014-04-01 Martin Husemann <martin@duskware.de>
20387 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
20390 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
20392 PR rtl-optimization/60604
20393 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
20394 check from register_operand.
20395 (register_operand): Redefine in terms of general_operand.
20396 (nonmemory_operand): Use register_operand for the non-constant cases.
20398 2014-04-01 Richard Biener <rguenther@suse.de>
20400 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
20402 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
20404 * doc/invoke.texi (mapp-regs): Clarify.
20406 2014-03-31 Ulrich Drepper <drepper@gmail.com>
20408 * config/i386/avx512fintrin.h (__v32hi): Define type.
20409 (__v64qi): Likewise.
20410 (_mm512_set1_epi8): Define.
20411 (_mm512_set1_epi16): Define.
20412 (_mm512_set4_epi32): Define.
20413 (_mm512_set4_epi64): Define.
20414 (_mm512_set4_pd): Define.
20415 (_mm512_set4_ps): Define.
20416 (_mm512_setr4_epi64): Define.
20417 (_mm512_setr4_epi32): Define.
20418 (_mm512_setr4_pd): Define.
20419 (_mm512_setr4_ps): Define.
20420 (_mm512_setzero_epi32): Define.
20422 2014-03-31 Martin Jambor <mjambor@suse.cz>
20424 PR middle-end/60647
20425 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
20426 callsite_arguments_match_p. Updated all callers. Also check types of
20427 corresponding formal parameters and actual arguments.
20428 (not_all_callers_have_enough_arguments_p) Renamed to
20429 some_callers_have_mismatched_arguments_p.
20431 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
20433 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
20435 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
20438 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
20441 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
20443 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
20444 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
20446 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
20447 Use FMAMODE_NOVF512 mode iterator.
20448 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
20449 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
20450 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
20451 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
20453 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
20454 Use VF_128_256 mode iterator.
20455 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
20458 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20460 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
20461 static chain if needed.
20463 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
20466 * lra-constraints.c (index_part_to_reg): New.
20467 (process_address): Use it.
20469 2014-03-27 Jeff Law <law@redhat.com>
20470 Jakub Jelinek <jakub@redhat.com>
20473 * expr.c (do_tablejump): Use simplify_gen_binary rather than
20474 gen_rtx_{PLUS,MULT} to build up the address expression.
20476 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
20477 creating non-canonical RTL.
20479 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20482 * ipa-inline.c (want_inline_small_function_p): Short circuit large
20483 functions; reorganize to make cheap checks first.
20484 (inline_small_functions): Do not estimate growth when dumping;
20486 * ipa-inline.h (inline_summary): Add min_size.
20487 (growth_likely_positive): New function.
20488 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
20489 (set_cond_stmt_execution_predicate): Cleanup.
20490 (estimate_edge_size_and_time): Compute min_size.
20491 (estimate_calls_size_and_time): Likewise.
20492 (estimate_node_size_and_time): Likewise.
20493 (inline_update_overall_summary): Update min_size.
20494 (do_estimate_edge_time): Likewise.
20495 (do_estimate_edge_size): Update.
20496 (do_estimate_edge_hints): Update.
20497 (growth_likely_positive): New function.
20499 2014-03-28 Jakub Jelinek <jakub@redhat.com>
20502 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
20503 also if addr has VOIDmode.
20505 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20507 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
20508 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
20510 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
20511 instructions as well as AdvancedSIMD loads.
20513 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20515 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
20516 Use crypto_aese type.
20517 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
20518 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
20519 crypto_aese, crypto_aesmc. Move to types.md.
20520 * config/arm/types.md (crypto_aes): Split into crypto_aese,
20522 * config/arm/iterators.md (crypto_type): Likewise.
20524 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20526 * cgraph.c: Include expr.h and tree-dfa.h.
20527 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
20530 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
20533 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
20534 regs from checking multi-reg pseudos.
20536 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20538 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
20540 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20542 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
20543 if it would clobber the stack pointer, even temporarily.
20545 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
20547 * mode-switching.c: Make small adjustments to the top comment.
20549 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
20551 * config/rs6000/constraints.md (wD constraint): New constraint to
20552 match the constant integer to get the top DImode/DFmode out of a
20553 vector in a VSX register.
20555 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
20556 match the constant integer to get the top DImode/DFmode out of a
20557 vector in a VSX register.
20559 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
20562 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20565 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
20566 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
20568 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
20569 Optimize vec_extract of 64-bit values, where the value being
20570 extracted is in the top word, where we can use scalar
20571 instructions. Add direct move and store support. Combine the big
20572 endian/little endian vector select load support into a single insn.
20573 (vsx_extract_<mode>_internal1): Likewise.
20574 (vsx_extract_<mode>_internal2): Likewise.
20575 (vsx_extract_<mode>_load): Likewise.
20576 (vsx_extract_<mode>_store): Likewise.
20577 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
20578 combined into vsx_extract_<mode>_load.
20579 (vsx_extract_<mode>_one_le): Likewise.
20581 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
20582 define the top 64-bit vector element.
20584 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
20587 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20588 Document vec_vbpermq builtin.
20591 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
20592 enable use of xxsldwi and xxpermdi builtin functions.
20593 (vec_xxpermdi): Likewise.
20595 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20596 Document use of vec_xxsldwi and vec_xxpermdi builtins.
20598 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
20600 PR rtl-optimization/60650
20601 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
20603 (find_spills_for): New.
20604 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
20605 Spill all pseudos on the second iteration.
20607 2014-03-27 Marek Polacek <polacek@redhat.com>
20610 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
20613 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20615 * config/s390/s390.c (s390_can_use_return_insn): Check for
20616 call-saved FPRs on 31 bit.
20618 2014-03-27 Jakub Jelinek <jakub@redhat.com>
20620 PR middle-end/60682
20621 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
20622 if they need regimplification, just drop them instead of
20623 calling gimple_regimplify_operands on them.
20625 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
20628 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
20629 (aarch64_frame_pointer_required): Adjust logic.
20630 (aarch64_can_eliminate): Adjust logic.
20631 (aarch64_override_options_after_change): Adjust logic.
20633 2014-03-27 Dehao Chen <dehao@google.com>
20635 * ipa-inline.c (early_inliner): Update node's inline info.
20637 2014-03-26 Dehao Chen <dehao@google.com>
20639 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
20640 compiler inserted conditional jumps for NAN float check.
20642 2014-03-26 Jakub Jelinek <jakub@redhat.com>
20644 * ubsan.h (ubsan_create_data): Change second argument's type
20645 to const location_t *.
20646 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
20648 (ubsan_create_data): Change second argument to const location_t *PLOC.
20649 Create Loc field whenever PLOC is non-NULL.
20650 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
20651 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
20655 * real.c (real_to_integer2): Change type of low to UHWI.
20657 2014-03-26 Tobias Burnus <burnus@net-b.de>
20659 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
20660 (CILK_SELF_SPECS): New define.
20661 (driver_self_specs): Use it.
20663 2014-03-26 Richard Biener <rguenther@suse.de>
20665 * tree-pretty-print.c (percent_K_format): Implement special
20666 case for LTO and its stripped down BLOCK tree.
20668 2014-03-26 Jakub Jelinek <jakub@redhat.com>
20671 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
20673 * tree-vrp.c (simplify_internal_call_using_ranges): If only
20674 one range is range_int_cst_p, but not both, at least optimize
20675 addition/subtraction of 0 and multiplication by 0 or 1.
20676 * gimple-fold.c (gimple_fold_call): Fold
20677 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
20678 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
20679 INTEGER_CSTs, try to fold at least x * 0 and y - y.
20681 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
20683 PR rtl-optimization/60452
20684 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
20685 <case REG>: Return 1 for invalid offsets from the frame pointer.
20687 2014-03-26 Marek Polacek <polacek@redhat.com>
20690 * doc/extend.texi (C Extensions): Mention variable-length arrays in
20693 2014-03-26 Marek Polacek <polacek@redhat.com>
20696 * doc/extend.texi (Designated Inits): Describe what happens to omitted
20699 2014-03-26 Marek Polacek <polacek@redhat.com>
20702 * ira-color.c (update_conflict_hard_regno_costs): Perform the
20703 multiplication in unsigned type.
20705 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
20707 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
20709 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
20711 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
20713 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
20716 * cif-code.def (UNREACHABLE) New code.
20717 * ipa-inline.c (inline_small_functions): Skip edges to
20718 __builtlin_unreachable.
20719 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
20720 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
20721 predicate to __bulitin_unreachable.
20722 (set_cond_stmt_execution_predicate): Fix issue when
20723 invert_tree_comparison returns ERROR_MARK.
20724 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
20725 propagate to inline clones.
20726 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
20728 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
20729 * cgraphclones.c (cgraph_clone_node): If call destination is already
20730 ureachable, do not redirect it back.
20731 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
20734 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
20736 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
20737 Do not modify inline clones.
20739 2014-03-25 Jakub Jelinek <jakub@redhat.com>
20741 * config/i386/i386.md (general_sext_operand): New mode attr.
20742 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
20743 don't generate (sign_extend (const_int)).
20744 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
20745 operands[2]. Use We constraint instead of <i> and
20746 <general_sext_operand> predicate instead of <general_operand>.
20747 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
20748 * config/i386/constraints.md (We): New constraint.
20749 * config/i386/predicates.md (x86_64_sext_operand,
20750 sext_operand): New predicates.
20752 2014-03-25 Martin Jambor <mjambor@suse.cz>
20755 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
20756 inconsistent devirtualizations to __builtin_unreachable.
20758 2014-03-25 Marek Polacek <polacek@redhat.com>
20761 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
20763 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
20765 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
20766 order of elements for big-endian.
20768 2014-03-25 Richard Biener <rguenther@suse.de>
20770 PR middle-end/60635
20771 * gimplify-me.c (gimple_regimplify_operands): Update the
20774 2014-03-25 Martin Jambor <mjambor@suse.cz>
20777 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
20778 (lto_output_varpool_node): Likewise.
20779 (input_overwrite_node): Likewise.
20780 (input_varpool_node): Likewise.
20782 2014-03-25 Richard Biener <rguenther@suse.de>
20784 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
20785 (run_gcc): Likewise.
20787 2014-03-25 Jakub Jelinek <jakub@redhat.com>
20789 * combine.c (simplify_compare_const): Add MODE argument.
20790 Handle mode_width 0 as very large mode_width.
20791 (try_combine, simplify_comparison): Adjust callers.
20793 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
20794 type to avoid signed integer overflow.
20795 * explow.c (plus_constant): Likewise.
20797 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
20799 * doc/generic.texi: Correct typos.
20801 2014-03-24 Tobias Burnus <burnus@net-b.de>
20803 * doc/invoke.texi (-flto): Expand section about
20804 using static libraries with LTO.
20806 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20808 PR rtl-optimization/60501
20809 * optabs.def (addptr3_optab): New optab.
20810 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
20811 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
20812 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
20814 * lra.c (emit_add3_insn): Use the addptr pattern if available.
20816 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
20818 2014-03-24 Ulrich Drepper <drepper@gmail.com>
20820 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
20823 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
20824 (_mm256_undefined_ps): Define.
20825 (_mm256_undefined_pd): Define.
20826 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
20827 (_mm_undefined_pd): Define.
20828 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
20829 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
20830 (_mm512_undefined_ps): Define.
20831 (_mm512_undefined_pd): Define.
20832 Use _mm*_undefined_*.
20833 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
20835 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
20837 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
20838 (lshr_simd): DI mode added.
20839 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
20840 (aarch64_ushr_simddi): Likewise.
20841 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
20842 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
20843 (vshrd_n_u64): Likewise.
20845 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20847 * Makefile.in (s-macro_list): Depend on cc1.
20849 2014-03-23 Teresa Johnson <tejohnson@google.com>
20851 * ipa-utils.c (ipa_print_order): Use specified dump file.
20853 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
20855 PR rtl-optimization/60601
20856 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
20858 * gcc.c (eval_spec_function): Initialize save_growing_value.
20860 2014-03-22 Jakub Jelinek <jakub@redhat.com>
20863 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
20864 code == MINUS_EXPR, never swap op0 with op1.
20866 * toplev.c (init_local_tick): Avoid signed integer multiplication
20868 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
20869 shift by first operand's bitsize.
20871 2014-03-21 Jakub Jelinek <jakub@redhat.com>
20874 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
20875 redefine to 1 or 0.
20876 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
20877 TARGET_ISA_64BIT_P(x).
20879 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20881 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
20882 pattern for vector nor instead of subtract from splat(-1).
20883 (altivec_expand_vec_perm_const_le): Likewise.
20885 2014-03-21 Richard Henderson <rth@twiddle.net>
20888 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
20889 related insns after epilogue_completed.
20891 2014-03-21 Martin Jambor <mjambor@suse.cz>
20894 * cgraph.h (symtab_node): New flag body_removed.
20895 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
20896 when removing bodies.
20897 * symtab.c (dump_symtab_base): Dump body_removed flag.
20898 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
20899 had their bodies removed.
20901 2014-03-21 Martin Jambor <mjambor@suse.cz>
20904 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
20907 2014-03-21 Richard Biener <rguenther@suse.de>
20909 PR tree-optimization/60577
20910 * tree-core.h (struct tree_base): Document nothrow_flag use
20911 in DECL_NONALIASED.
20912 * tree.h (DECL_NONALIASED): New.
20913 (may_be_aliased): Adjust.
20914 * coverage.c (build_var): Set DECL_NONALIASED.
20916 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
20918 * expr.c (expand_expr_real_1): Remove outdated comment.
20920 2014-03-20 Jakub Jelinek <jakub@redhat.com>
20922 PR middle-end/60597
20923 * ira.c (adjust_cleared_regs): Call copy_rtx on
20924 *reg_equiv[REGNO (loc)].src_p before passing it to
20925 simplify_replace_fn_rtx.
20928 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
20929 into CONST, put pic register as first operand of PLUS. Use
20930 gen_const_mem for both 32-bit and 64-bit PIC got loads.
20932 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20934 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
20936 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
20938 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
20939 around for store forwarding issue in the FPU on the UT699.
20940 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
20941 loads and operations if -mfix-ut699 is specified.
20942 (divtf3_hq): Tweak attribute.
20943 (sqrttf2_hq): Likewise.
20945 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
20947 * calls.c (store_one_arg): Remove incorrect const qualification on the
20948 type of the temporary.
20949 * cfgexpand.c (expand_return): Likewise.
20950 * expr.c (expand_constructor): Likewise.
20951 (expand_expr_real_1): Likewise.
20953 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20955 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
20958 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
20961 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
20963 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
20965 * config/arm/aarch-common-protos.h
20966 (alu_cost_table): Fix spelling of "extend".
20967 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
20969 2014-03-19 Richard Biener <rguenther@suse.de>
20971 PR middle-end/60553
20972 * tree-core.h (tree_type_common): Re-order pointer members
20973 to reduce recursion depth during GC walks.
20975 2014-03-19 Marek Polacek <polacek@redhat.com>
20978 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
20979 before accessing it.
20981 2014-03-19 Richard Biener <rguenther@suse.de>
20984 * lto-streamer-in.c (input_function): In WPA stage do not drop
20987 2014-03-19 Jakub Jelinek <jakub@redhat.com>
20989 PR tree-optimization/60559
20990 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
20991 with build_zero_cst assignment.
20993 2014-03-18 Kai Tietz <ktietz@redhat.com>
20995 PR rtl-optimization/56356
20996 * sdbout.c (sdbout_parms): Verify that parms'
20997 incoming argument is valid.
20998 (sdbout_reg_parms): Likewise.
21000 2014-03-18 Richard Henderson <rth@redhat.com>
21003 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21004 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21005 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21007 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21009 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21010 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21011 Italicize plugin event names in description. Explain that
21012 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21013 Remind that no GCC functions should be called after PLUGIN_FINISH.
21014 Explain what pragmas with expansion are.
21016 2014-03-18 Martin Liska <mliska@suse.cz>
21018 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21019 gimple call statement is update.
21020 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21021 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21023 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21026 * ubsan.c (ubsan_instrument_unreachable): Call
21027 initialize_sanitizer_builtins.
21028 (ubsan_pass): Likewise.
21031 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21032 varpool_finalize_decl instead of rest_of_decl_compilation.
21034 2014-03-18 Richard Biener <rguenther@suse.de>
21036 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21037 by using bitmap_and_compl instead of bitmap_and_compl_into.
21038 (df_rd_transfer_function): Likewise.
21040 2014-03-18 Richard Biener <rguenther@suse.de>
21042 * doc/lto.texi (fresolution): Fix typo.
21044 2014-03-18 Richard Biener <rguenther@suse.de>
21046 * doc/invoke.texi (flto): Update for changes in 4.9.
21048 2014-03-18 Richard Biener <rguenther@suse.de>
21050 * doc/loop.texi: Remove section on the removed lambda framework.
21051 Update loop docs with recent changes in preserving loop structure.
21053 2014-03-18 Richard Biener <rguenther@suse.de>
21055 * doc/lto.texi (-fresolution): Document.
21057 2014-03-18 Richard Biener <rguenther@suse.de>
21059 * doc/contrib.texi: Adjust my name.
21061 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21064 * internal-fn.c: Include diagnostic-core.h.
21065 (expand_BUILTIN_EXPECT): New function.
21066 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21067 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21068 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21069 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21070 IFN_BUILTIN_EXPECT.
21071 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21072 Revert 3 argument __builtin_expect code.
21073 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21074 * gimple-fold.c (gimple_fold_call): Likewise.
21075 * tree.h (fold_builtin_expect): New prototype.
21076 * builtins.c (build_builtin_expect_predicate): Add predictor
21077 argument, if non-NULL, create 3 argument __builtin_expect.
21078 (fold_builtin_expect): No longer static. Add ARG2 argument,
21079 pass it through to build_builtin_expect_predicate.
21080 (fold_builtin_2): Adjust caller.
21081 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21082 * internal-fn.def (BUILTIN_EXPECT): New.
21084 2014-03-18 Tobias Burnus <burnus@net-b.de>
21087 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21088 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21089 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21091 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21094 * predict.c (combine_predictions_for_bb): Fix up formatting.
21095 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21096 fill what it points to if non-NULL.
21097 (tree_predict_by_opcode): Adjust caller, use the predictor.
21098 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21100 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21102 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21103 proper constant for the store mode.
21105 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21107 * symtab.c (change_decl_assembler_name): Fix transparent alias
21108 chain construction.
21110 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21112 * config/aarch64/aarch64.c: Correct the comments about the
21113 aarch64 stack layout.
21115 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21117 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21118 check for GF_OMP_FOR_KIND_FOR.
21120 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21122 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21123 ymm and zmm register names.
21125 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21128 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21129 note creation for the 2010-08-31 changes.
21131 2014-03-17 Marek Polacek <polacek@redhat.com>
21133 PR middle-end/60534
21134 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21135 as -fno-tree-loop-vectorize.
21136 (expand_omp_simd): Likewise.
21138 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
21140 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21141 (eligible_for_call_delay): New prototype.
21142 * config/sparc/sparc.c (tls_call_delay): Rename into...
21143 (eligible_for_call_delay): ...this. Return false if the instruction
21144 cannot be put in the delay slot of a branch.
21145 (eligible_for_restore_insn): Simplify.
21146 (eligible_for_return_delay): Return false if the instruction cannot be
21147 put in the delay slot of a branch and simplify.
21148 (eligible_for_sibcall_delay): Return false if the instruction cannot be
21149 put in the delay slot of a branch.
21150 * config/sparc/sparc.md (fix_ut699): New attribute.
21151 (tls_call_delay): Delete.
21152 (in_call_delay): Reimplement.
21153 (eligible_for_sibcall_delay): Rename into...
21154 (in_sibcall_delay): ...this.
21155 (eligible_for_return_delay): Rename into...
21156 (in_return_delay): ...this.
21157 (in_branch_delay): Reimplement.
21158 (in_uncond_branch_delay): Delete.
21159 (in_annul_branch_delay): Delete.
21161 2014-03-14 Richard Henderson <rth@redhat.com>
21164 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
21165 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
21166 (*floathi<X87MODEF>2_i387_with_temp): Remove.
21167 (floathi splitters): Remove.
21168 (float<SWI48x>xf2): New pattern.
21169 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
21170 code that tried to handle DImode for 32-bit, but which was excluded
21171 by the pattern's condition. Drop allocation of stack temporary.
21172 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
21173 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
21174 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
21175 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
21176 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
21177 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
21178 (*float<SWI48><MODEF>2_sse_interunit): Remove.
21179 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
21180 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
21181 (*float<SWI48x><X87MODEF>2_i387): Remove.
21182 (all float _with_temp splitters): Remove.
21183 (*float<SWI48x><MODEF>2_i387): New pattern.
21184 (*float<SWI48><MODEF>2_sse): New pattern.
21185 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
21186 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
21188 2014-03-14 Jakub Jelinek <jakub@redhat.com>
21189 Marek Polacek <polacek@redhat.com>
21191 PR middle-end/60484
21192 * common.opt (dump_base_name_prefixed): New Variable.
21193 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
21194 if x_dump_base_name_prefixed is already set, set it at the end.
21196 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
21198 PR rtl-optimization/60508
21199 * lra-constraints.c (get_reload_reg): Add new parameter
21201 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
21202 Pass the new parameter values.
21204 2014-03-14 Richard Biener <rguenther@suse.de>
21206 * common.opt: Revert unintented changes from r205065.
21207 * opts.c: Likewise.
21209 2014-03-14 Richard Biener <rguenther@suse.de>
21211 PR middle-end/60518
21212 * cfghooks.c (split_block): Properly adjust all loops the
21213 block was a latch of.
21215 2014-03-14 Martin Jambor <mjambor@suse.cz>
21218 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
21221 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
21224 * config/avr/avr.c (avr_set_current_function): Pass function name
21225 through default_strip_name_encoding before sanity checking instead
21226 of skipping the first char of the assembler name.
21228 2014-03-13 Richard Henderson <rth@redhat.com>
21231 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
21232 (ix86_force_to_memory, ix86_free_from_memory): Remove.
21233 * config/i386/i386-protos.h: Likewise.
21234 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
21235 in the expander instead of a splitter.
21236 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
21237 any possibility of requiring a memory.
21238 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
21239 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
21240 (fp branch splitters): Update for ix86_split_fp_branch.
21241 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
21242 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
21243 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
21244 (*fop_<MODEF>_2_i387): Remove f/r alternative.
21245 (*fop_<MODEF>_3_i387): Likewise.
21246 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
21247 (splitters for the fop_* register patterns): Remove.
21248 (fscalexf4_i387): Rename from *fscalexf4_i387.
21249 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
21251 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21253 PR tree-optimization/59779
21254 * tree-dfa.c (get_ref_base_and_extent): Use double_int
21255 type for bitsize and maxsize instead of HOST_WIDE_INT.
21257 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
21259 PR rtl-optimization/57320
21260 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
21261 the CFG after thread_prologue_and_epilogue_insns.
21263 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
21265 PR rtl-optimization/57189
21266 * lra-constraints.c (process_alt_operands): Disfavor spilling
21269 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
21271 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
21273 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21275 PR tree-optimization/59025
21276 PR middle-end/60418
21277 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
21278 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
21280 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
21283 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
21284 calls of avr_out_plus_1.
21286 2014-03-13 Bin Cheng <bin.cheng@arm.com>
21288 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
21289 BB's single pred and update the father loop's latch info later.
21291 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21293 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
21297 (VEC_base): Likewise.
21298 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
21299 registers, we need to swap double words in little endian mode.
21301 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
21302 to be a container mode for 128-bit integer operations added in ISA
21303 2.07. Unlike TImode and PTImode, the preferred register set is
21304 the Altivec/VMX registers for the 128-bit operations.
21306 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
21308 (rs6000_split_128bit_ok_p): Likewise.
21310 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
21311 macros for creating ISA 2.07 normal and overloaded builtin
21312 functions with 3 arguments.
21313 (BU_P8V_OVERLOAD_3): Likewise.
21314 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
21315 for use as overloaded functions.
21316 (VPERM_1TI_UNS): Likewise.
21317 (VSEL_1TI): Likewise.
21318 (VSEL_1TI_UNS): Likewise.
21319 (ST_INTERNAL_1ti): Likewise.
21320 (LD_INTERNAL_1ti): Likewise.
21321 (XXSEL_1TI): Likewise.
21322 (XXSEL_1TI_UNS): Likewise.
21323 (VPERM_1TI): Likewise.
21324 (VPERM_1TI_UNS): Likewise.
21325 (XXPERMDI_1TI): Likewise.
21326 (SET_1TI): Likewise.
21327 (LXVD2X_V1TI): Likewise.
21328 (STXVD2X_V1TI): Likewise.
21329 (VEC_INIT_V1TI): Likewise.
21330 (VEC_SET_V1TI): Likewise.
21331 (VEC_EXT_V1TI): Likewise.
21332 (EQV_V1TI): Likewise.
21333 (NAND_V1TI): Likewise.
21334 (ORC_V1TI): Likewise.
21335 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
21336 added in ISA 2.07. Add both normal 'altivec' builtins, and the
21337 overloaded builtin.
21338 (VADDUQM): Likewise.
21339 (VSUBCUQ): Likewise.
21340 (VADDEUQM): Likewise.
21341 (VADDECUQ): Likewise.
21342 (VSUBEUQM): Likewise.
21343 (VSUBECUQ): Likewise.
21345 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
21346 __int128_t and __uint128_t types.
21347 (__uint128_type): Likewise.
21348 (altivec_categorize_keyword): Add support for vector __int128_t,
21349 vector __uint128_t, vector __int128, and vector unsigned __int128
21350 as a container type for TImode operations that need to be done in
21351 VSX/Altivec registers.
21352 (rs6000_macro_to_expand): Likewise.
21353 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
21354 to support 128-bit integer instructions vaddcuq, vadduqm,
21355 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
21356 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
21358 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
21359 for V1TImode, and set up preferences to use VSX/Altivec registers.
21360 Setup VSX reload handlers.
21361 (rs6000_debug_reg_global): Likewise.
21362 (rs6000_init_hard_regno_mode_ok): Likewise.
21363 (rs6000_preferred_simd_mode): Likewise.
21364 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
21365 (easy_altivec_constant): Likewise.
21366 (output_vec_const_move): Likewise.
21367 (rs6000_expand_vector_set): Convert V1TImode set and extract to
21369 (rs6000_expand_vector_extract): Likewise.
21370 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
21372 (rs6000_const_vec): Add support for V1TImode.
21373 (rs6000_emit_le_vsx_load): Swap double words when loading or
21374 storing TImode/V1TImode.
21375 (rs6000_emit_le_vsx_store): Likewise.
21376 (rs6000_emit_le_vsx_move): Likewise.
21377 (rs6000_emit_move): Add support for V1TImode.
21378 (altivec_expand_ld_builtin): Likewise.
21379 (altivec_expand_st_builtin): Likewise.
21380 (altivec_expand_vec_init_builtin): Likewise.
21381 (altivec_expand_builtin): Likewise.
21382 (rs6000_init_builtins): Add support for V1TImode type. Add
21383 support for ISA 2.07 128-bit integer builtins. Define type names
21384 for the VSX/Altivec vector types.
21385 (altivec_init_builtins): Add support for overloaded vector
21386 functions with V1TImode type.
21387 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
21388 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
21390 (rs6000_split_128bit_ok_p): Likewise.
21391 (rs6000_handle_altivec_attribute): Create V1TImode from vector
21392 __int128_t and vector __uint128_t.
21394 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
21395 and mode attributes.
21397 (VSX_M2): Likewise.
21402 (VS_scalar): Likewise.
21403 (VS_double): Likewise.
21404 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
21406 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
21407 we support the ISA 2.07 128-bit integer arithmetic instructions.
21408 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
21409 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
21410 and TImode types for use with the builtin functions.
21411 (V1TI_type_node): Likewise.
21412 (unsigned_V1TI_type_node): Likewise.
21413 (intTI_type_internal_node): Likewise.
21414 (uintTI_type_internal_node): Likewise.
21416 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
21417 128-bit builtin functions.
21418 (UNSPEC_VADDEUQM): Likewise.
21419 (UNSPEC_VADDECUQ): Likewise.
21420 (UNSPEC_VSUBCUQ): Likewise.
21421 (UNSPEC_VSUBEUQM): Likewise.
21422 (UNSPEC_VSUBECUQ): Likewise.
21423 (VM): Add V1TImode to vector mode iterators.
21425 (VI_unit): Likewise.
21426 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
21427 (altivec_vaddcuq): Likewise.
21428 (altivec_vsubuqm): Likewise.
21429 (altivec_vsubcuq): Likewise.
21430 (altivec_vaddeuqm): Likewise.
21431 (altivec_vaddecuq): Likewise.
21432 (altivec_vsubeuqm): Likewise.
21433 (altivec_vsubecuq): Likewise.
21435 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
21437 (BOOL_128): Likewise.
21438 (BOOL_REGS_OUTPUT): Likewise.
21439 (BOOL_REGS_OP1): Likewise.
21440 (BOOL_REGS_OP2): Likewise.
21441 (BOOL_REGS_UNARY): Likewise.
21442 (BOOL_REGS_AND_CR0): Likewise.
21444 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
21445 128-bit integer builtin support.
21446 (vec_vadduqm): Likewise.
21447 (vec_vaddecuq): Likewise.
21448 (vec_vaddeuqm): Likewise.
21449 (vec_vsubecuq): Likewise.
21450 (vec_vsubeuqm): Likewise.
21451 (vec_vsubcuq): Likewise.
21452 (vec_vsubuqm): Likewise.
21454 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21455 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
21456 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
21457 128-bit integer add/subtract to ISA 2.07.
21459 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
21461 * config/arc/arc.c (arc_predicate_delay_insns):
21462 Fix third argument passed to conditionalize_nonjump.
21464 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
21466 * config/aarch64/aarch64-builtins.c
21467 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
21468 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
21469 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
21470 instead of __builtin_lfloor.
21471 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
21473 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21475 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
21476 (tree_ssa_ifcombine_bb_1): New function.
21477 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
21478 is an empty forwarder block to then_bb or vice versa and then_bb
21479 and else_bb are effectively swapped.
21481 2014-03-12 Christian Bruel <christian.bruel@st.com>
21484 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
21485 REG_CFA_DEF_CFA note.
21486 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
21487 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
21489 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
21491 PR tree-optimization/60454
21492 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
21494 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21496 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
21497 Do not define target_cpu_default2 to generic.
21498 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
21499 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
21500 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
21502 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21503 Marc Glisse <marc.glisse@inria.fr>
21505 PR tree-optimization/60502
21506 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
21507 instead of build_low_bits_mask.
21509 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21511 PR middle-end/60482
21512 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
21513 if there are multiple uses, but op doesn't live on E edge.
21514 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
21515 clobber stmts before __builtin_unreachable.
21517 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
21519 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
21520 hard_frame_pointer_rtx.
21521 * cse.c (cse_insn): Remove volatile check.
21522 * cselib.c (cselib_process_insn): Likewise.
21523 * dse.c (scan_insn): Likewise.
21525 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
21527 * config/arc/arc.c (conditionalize_nonjump): New function,
21529 (arc_ifcvt): ... this.
21530 (arc_predicate_delay_insns): Use it.
21532 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
21534 * config/arc/predicates.md (extend_operand): During/after reload,
21535 allow const_int_operand.
21536 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
21537 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
21538 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
21540 (umulsi3_highpart_i): Likewise.
21542 2014-03-11 Richard Biener <rguenther@suse.de>
21544 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
21545 Add asserts to guard possible wrong-code bugs.
21547 2014-03-11 Richard Biener <rguenther@suse.de>
21549 PR tree-optimization/60429
21550 PR tree-optimization/60485
21551 * tree-ssa-structalias.c (set_union_with_increment): Properly
21552 take into account all fields that overlap the shifted vars.
21553 (do_sd_constraint): Likewise.
21554 (do_ds_constraint): Likewise.
21555 (get_constraint_for_ptr_offset): Likewise.
21557 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
21559 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
21560 (nios2_compute_frame_layout):
21561 Add calculation of cfun->machine->fp_save_offset.
21562 (nios2_expand_prologue): Correct setting of frame pointer register
21564 (nios2_expand_epilogue): Update recovery of stack pointer from
21565 frame pointer accordingly.
21566 (nios2_initial_elimination_offset): Update calculation of offset
21567 for eliminating to HARD_FRAME_POINTER_REGNUM.
21569 2014-03-10 Jakub Jelinek <jakub@redhat.com>
21572 * ipa.c (symtab_remove_unreachable_nodes): Don't call
21573 cgraph_get_create_node on VAR_DECLs.
21575 2014-03-10 Richard Biener <rguenther@suse.de>
21577 PR middle-end/60474
21578 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
21580 2014-03-08 Douglas B Rupp <rupp@gnat.com>
21582 * config/vms/vms.opt (vms_float_format): New variable.
21584 2014-03-08 Tobias Burnus <burnus@net-b.de>
21586 * doc/invoke.texi (-fcilkplus): Update implementation status.
21588 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
21589 Richard Biener <rguenther@suse.de>
21591 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
21592 consistently accross all TUs.
21593 (run_gcc): Enable -fshort-double automatically at link at link-time
21594 and disallow override.
21596 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
21599 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
21600 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
21601 if they can't be used.
21603 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21605 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
21606 for Solaris 11/x86 ld.
21607 * configure: Regenerate.
21609 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21611 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
21612 (LIB_TLS_SPEC): Save as ld_tls_libs.
21613 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
21614 (HAVE_AS_IX86_TLSLDM): New test.
21615 * configure, config.in: Regenerate.
21616 * config/i386/i386.c (legitimize_tls_address): Fall back to
21617 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
21618 cannot support TLS_MODEL_LOCAL_DYNAMIC.
21619 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
21620 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
21622 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
21624 * common.opt (fira-loop-pressure): Mark as optimization.
21626 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
21628 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
21629 an OpenMP mappable type.
21631 2014-03-06 Matthias Klose <doko@ubuntu.com>
21633 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
21634 MULTILIB_OSDIRNAMES is not defined.
21636 2014-03-06 Jakub Jelinek <jakub@redhat.com>
21637 Meador Inge <meadori@codesourcery.com>
21640 * config/arm/arm.c (arm_tls_symbol_p): Remove.
21641 (arm_legitimize_address): Call legitimize_tls_address for any
21642 arm_tls_referenced_p expression, handle constant addend. Call it
21643 before testing for !TARGET_ARM.
21644 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
21646 2014-03-06 Richard Biener <rguenther@suse.de>
21648 PR middle-end/60445
21652 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
21654 * tree-streamer.c (record_common_node): Assert we don't record
21655 nodes with type double.
21656 (preload_common_node): Skip type double, complex double and double
21657 pointer since it is now frontend dependent due to fshort-double option.
21659 2014-03-06 Richard Biener <rguenther@suse.de>
21661 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
21662 or -fno-lto is specified and the linker has full plugin support.
21663 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
21664 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
21665 * lto-wrapper.c (merge_and_complain): Merge compile-time
21666 optimization levels.
21667 (run_gcc): And pass it through to the link options.
21669 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
21673 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
21675 * cselib.c (remove_useless_values): Skip to avoid quadratic
21676 behavior if the condition moved from...
21677 (cselib_process_insn): ... here holds.
21679 2014-03-05 Jakub Jelinek <jakub@redhat.com>
21682 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
21683 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
21686 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
21687 (TM_H): Add x86-tune.def.
21689 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21691 * config/aarch64/aarch64.c (generic_tunings):
21692 Use cortexa57_extra_costs.
21694 2014-03-05 Jakub Jelinek <jakub@redhat.com>
21697 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
21698 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
21699 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
21702 2014-03-04 Heiher <r@hev.cc>
21704 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
21705 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
21707 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
21709 * config/i386/predicates.md (const2356_operand): Change to ...
21710 (const2367_operand): ... this.
21711 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
21713 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
21714 (*avx512pf_scatterpf<mode>sf): Ditto.
21715 (avx512pf_scatterpf<mode>df): Ditto.
21716 (*avx512pf_scatterpf<mode>df_mask): Ditto.
21717 (*avx512pf_scatterpf<mode>df): Ditto.
21718 * config/i386/i386.c (ix86_expand_builtin): Update
21719 incorrect hint operand error message.
21721 2014-03-04 Richard Biener <rguenther@suse.de>
21723 * lto-section-in.c (lto_get_section_data): Fix const cast.
21725 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
21727 * tree-streamer.c (record_common_node): Assert we don't record
21728 nodes with type double.
21729 (preload_common_node): Skip type double, complex double and double
21730 pointer since it is now frontend dependent due to fshort-double option.
21732 2014-03-04 Richard Biener <rguenther@suse.de>
21735 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
21736 (lto_input_toplevel_asms): Likewise.
21737 * lto-section-in.c (lto_get_section_data): Instead do it here
21740 2014-03-04 Richard Biener <rguenther@suse.de>
21742 PR tree-optimization/60382
21743 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
21744 dead PHIs a reduction.
21746 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
21748 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
21750 (_mm_prefetch): Move out of GCC target("sse") pragma.
21751 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
21752 GCC target("prfchw") pragma.
21753 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
21755 * config/i386/i386.c (ix86_option_override_internal): Enable
21756 -mprfchw with -mprefetchwt1.
21758 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
21760 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
21763 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
21765 * opts.h (CL_PCH_IGNORE): Define.
21766 * targhooks.c (option_affects_pch_p):
21767 Return false for options that have CL_PCH_IGNORE set.
21768 * opt-functions.awk: Process PchIgnore.
21769 * doc/options.texi: Document PchIgnore.
21771 * config/arc/arc.opt (misize): Add PchIgnore property.
21773 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21775 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
21776 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
21777 constraint on constants to permit them being loaded into
21778 GENERAL_REGS or BASE_REGS.
21780 2014-03-03 Nick Clifton <nickc@redhat.com>
21782 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
21783 anti-cacnonical alternatives.
21784 (negandhi3_real): New pattern.
21785 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
21787 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21789 * config/avr/avr-mcus.def: Remove atxmega16x1.
21790 * config/avr/avr-tables.opt: Regenerate.
21791 * config/avr/t-multilib: Regenerate.
21792 * doc/avr-mmcu.texi: Regenerate.
21794 2014-03-03 Tobias Grosser <tobias@grosser.es>
21795 Mircea Namolaru <mircea.namolaru@inria.fr>
21797 PR tree-optimization/58028
21798 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
21801 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21803 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
21804 not handled by recognizers.
21806 2014-03-03 Jakub Jelinek <jakub@redhat.com>
21808 PR middle-end/60175
21809 * function.c (expand_function_end): Don't emit
21810 clobber_return_register sequence if clobber_after is a BARRIER.
21811 * cfgexpand.c (construct_exit_block): Append instructions before
21812 return_label to prev_bb.
21814 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21816 * config/rs6000/constraints.md: Document reserved use of "wc".
21818 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
21821 * ipa.c (function_and_variable_visibility): When dissolving comdat
21822 group, also set all symbols to local.
21824 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
21829 2013-12-14 Jan Hubicka <jh@suse.cz>
21830 PR middle-end/58477
21831 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
21833 2014-03-02 Jon Beniston <jon@beniston.com>
21839 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
21840 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
21841 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
21842 (simple_return, *simple_return): New patterns
21843 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
21844 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
21846 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
21848 * dwarf2out.c (gen_subprogram_die): Tidy.
21850 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
21853 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
21854 (*mov_t_msb_neg_negc): ... this new insn.
21856 2014-02-28 Jason Merrill <jason@redhat.com>
21859 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
21862 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
21865 * dwarf2out.c (decltype_auto_die): New static.
21866 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
21867 (gen_type_die_with_usage): Handle 'decltype(auto)'.
21868 (is_cxx_auto): Likewise.
21870 2014-02-28 Ian Bolton <ian.bolton@arm.com>
21872 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
21873 we are not using general regs only.
21875 2014-02-28 Richard Biener <rguenther@suse.de>
21878 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
21879 previous fix and only allow to remove trivial pre-headers
21880 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
21881 (remove_forwarder_block): Properly update the latch of a loop.
21883 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
21886 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
21887 (cselib_preserved_hash_table): New.
21888 (preserve_constants_and_equivs): Move preserved vals to it.
21889 (cselib_find_slot): Look it up first.
21890 (cselib_init): Initialize it.
21891 (cselib_finish): Release it.
21892 (dump_cselib_table): Dump it.
21894 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
21897 * cselib.c (remove_useless_values): Skip to avoid quadratic
21898 behavior if the condition moved from...
21899 (cselib_process_insn): ... here holds.
21901 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
21904 * var-tracking.c (vt_initialize): Apply the same condition to
21905 preserve the CFA base value.
21907 2014-02-28 Joey Ye <joey.ye@arm.com>
21910 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
21911 if reload in progress or completed.
21913 2014-02-28 Tobias Burnus <burnus@net-b.de>
21915 PR middle-end/60147
21916 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
21919 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
21921 * doc/tm.texi.in (Condition Code Status): Update documention for
21922 relative locations of cc0-setter and cc0-user.
21924 2014-02-27 Jeff Law <law@redhat.com>
21926 PR rtl-optimization/52714
21927 * combine.c (try_combine): When splitting an unrecognized PARALLEL
21928 into two independent simple sets, if I3 is a jump, ensure the
21929 pattern we place into I3 is a (set (pc) ...).
21931 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
21932 Jeff Law <law@redhat.com>
21934 PR rtl-optimization/49847
21935 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
21936 are in different blocks.
21937 * doc/tm.texi (Condition Code Status): Update documention for
21938 relative locations of cc0-setter and cc0-user.
21940 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
21943 * lra.c (lra_emit_add): Check SUBREG too.
21945 2014-02-27 Andreas Schwab <schwab@suse.de>
21947 * config/m68k/m68k.c (m68k_option_override): Disable
21948 -flive-range-shrinkage for classic m68k.
21949 (m68k_override_options_after_change): Likewise.
21951 2014-02-27 Marek Polacek <polacek@redhat.com>
21953 PR middle-end/59223
21954 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
21955 -Wmaybe-uninitialized.
21957 2014-02-27 Alan Modra <amodra@gmail.com>
21960 * reload1.c (emit_input_reload_insns): When reload_override_in,
21961 set old to rl->in_reg when rl->in_reg is a subreg.
21963 2014-02-26 Richard Biener <rguenther@suse.de>
21966 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
21968 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
21970 * common/config/i386/predicates.md (const1256_operand): Remove.
21971 (const2356_operand): New.
21972 (const_1_to_2_operand): Remove.
21973 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
21974 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
21975 (*avx512pf_gatherpf<mode>sf): Ditto.
21976 (avx512pf_gatherpf<mode>df): Ditto.
21977 (*avx512pf_gatherpf<mode>df_mask): Ditto.
21978 (*avx512pf_gatherpf<mode>df): Ditto.
21979 (avx512pf_scatterpf<mode>sf): Ditto.
21980 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
21981 (*avx512pf_scatterpf<mode>sf): Ditto.
21982 (avx512pf_scatterpf<mode>df): Ditto.
21983 (*avx512pf_scatterpf<mode>df_mask): Ditto.
21984 (*avx512pf_scatterpf<mode>df): Ditto.
21985 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
21987 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
21989 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
21990 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
21991 (_mm512_mask_testn_epi64_mask): Move to ...
21992 * config/i386/avx512cdintrin.h: Here.
21993 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
21994 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
21995 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
21996 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
21997 TARGET_AVX512F from TARGET_AVX512CD.
21999 2014-02-26 Richard Biener <rguenther@suse.de>
22002 * ipa.c (walk_polymorphic_call_targets): Properly guard
22003 call to inline_update_overall_summary.
22005 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22008 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22009 and latches only if requested. Fix latch if it is removed.
22010 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22011 LOOPS_HAVE_PREHEADERS.
22013 2014-02-25 Andrew Pinski <apinski@cavium.com>
22015 * builtins.c (expand_builtin_thread_pointer): Create a new target
22016 when the target is NULL.
22018 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22020 PR rtl-optimization/60317
22021 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22022 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22023 * lra-assigns.c: Include params.h.
22024 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22025 other reload pseudos considerations.
22027 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22029 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22030 to use canonical form for nor<mode>3.
22032 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22035 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22038 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22040 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22041 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22042 (ix86_handle_option): Handle OPT_mprefetchwt1.
22043 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22044 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22046 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22047 OPTION_MASK_ISA_PREFETCHWT1.
22048 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22049 (PTA_PREFETCHWT1): New.
22050 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22051 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22052 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22053 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22054 (*prefetch_avx512pf_<mode>_: Change into ...
22055 (*prefetch_prefetchwt1_<mode>: This.
22056 * config/i386/i386.opt (mprefetchwt1): New.
22057 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22058 (_mm_prefetch): Handle intent to write.
22059 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22061 2014-02-25 Richard Biener <rguenther@suse.de>
22063 PR middle-end/60291
22064 * emit-rtl.c (mem_attrs_htab): Remove.
22065 (mem_attrs_htab_hash): Likewise.
22066 (mem_attrs_htab_eq): Likewise.
22067 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22068 (init_emit_once): Do not allocate mem_attrs_htab.
22070 2014-02-25 Richard Biener <rguenther@suse.de>
22073 * lto-opts.c (lto_write_options): Output non-explicit conservative
22074 -fwrapv, -fno-trapv and -fno-strict-overflow.
22075 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22076 (run_gcc): And pass them through.
22078 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22080 * sel-sched.c (calculate_new_fences): New parameter ptime.
22081 Calculate it as a maximum over all fence cycles.
22082 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22083 Print the final schedule timing when sched_verbose.
22085 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22087 PR rtl-optimization/60292
22088 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22089 bit fot the fence instruction.
22091 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22093 * calls.h: Fix typo in comment.
22095 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22097 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22098 adjusting offsetable addresses.
22100 2014-02-24 Guozhi Wei <carrot@google.com>
22102 * sparseset.h (sparseset_pop): Fix the wrong index.
22104 2014-02-24 Walter Lee <walt@tilera.com>
22106 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22107 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22109 * common/config/tilegx/tilegx-common.c
22110 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22111 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22112 (LINK_SPEC): Ditto.
22113 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22114 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22115 (tilegx_gimplify_va_arg_expr): Handle big endian.
22116 (tilegx_expand_unaligned_load): Ditto.
22117 (tilegx_expand_unaligned_store): Ditto.
22118 (TARGET_RETURN_IN_MSB): New.
22119 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22120 (TARGET_ENDIAN_DEFAULT): New.
22121 (TARGET_BIG_ENDIAN): Handle big endian.
22122 (BYTES_BIG_ENDIAN): Ditto.
22123 (WORDS_BIG_ENDIAN): Ditto.
22124 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22125 (ENDIAN_SPEC): New.
22126 (EXTRA_SPECS): New.
22127 * config/tilegx/tilegx.md (extv): Handle big endian.
22129 (insn_st<n>): Ditto.
22130 (insn_st<n>_add<bitsuffix>): Ditto.
22131 (insn_stnt<n>): Ditto.
22132 (insn_stnt<n>_add<bitsuffix>):Ditto.
22133 (vec_interleave_highv8qi): Handle big endian.
22134 (vec_interleave_highv8qi_be): New.
22135 (vec_interleave_highv8qi_le): New.
22136 (insn_v1int_h): Handle big endian.
22137 (vec_interleave_lowv8qi): Handle big endian.
22138 (vec_interleave_lowv8qi_be): New.
22139 (vec_interleave_lowv8qi_le): New.
22140 (insn_v1int_l): Handle big endian.
22141 (vec_interleave_highv4hi): Handle big endian.
22142 (vec_interleave_highv4hi_be): New.
22143 (vec_interleave_highv4hi_le): New.
22144 (insn_v2int_h): Handle big endian.
22145 (vec_interleave_lowv4hi): Handle big endian.
22146 (vec_interleave_lowv4hi_be): New.
22147 (vec_interleave_lowv4hi_le): New.
22148 (insn_v2int_l): Handle big endian.
22149 (vec_interleave_highv2si): Handle big endian.
22150 (vec_interleave_highv2si_be): New.
22151 (vec_interleave_highv2si_le): New.
22152 (insn_v4int_h): Handle big endian.
22153 (vec_interleave_lowv2si): Handle big endian.
22154 (vec_interleave_lowv2si_be): New.
22155 (vec_interleave_lowv2si_le): New.
22156 (insn_v4int_l): Handle big endian.
22157 * config/tilegx/tilegx.opt (mbig-endian): New option.
22158 (mlittle-endian): New option.
22159 * doc/install.texi: Document tilegxbe-linux.
22160 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
22162 2014-02-24 Martin Jambor <mjambor@suse.cz>
22165 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
22166 there are no parameter descriptors.
22168 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
22170 PR rtl-optimization/60268
22171 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
22172 initialization to ...
22173 (sched_rgn_init): ... here.
22174 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
22176 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22178 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
22181 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
22183 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
22186 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22188 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
22189 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
22191 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22193 * config/microblaze/predicates.md: Add cmp_op predicate.
22194 * config/microblaze/microblaze.md: Add branch_compare instruction
22195 which uses cmp_op predicate and emits cmp insn before branch.
22196 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
22197 to microblaze_expand_conditional_branch and consolidate logic.
22198 (microblaze_expand_conditional_branch): emit branch_compare
22199 insn instead of handling cmp op separate from branch insn.
22201 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22203 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
22206 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22208 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
22209 define_insn with define_expand and new define_insn
22210 *altivec_lve<VI_char>x_internal.
22211 (altivec_stve<VI_char>x): Replace define_insn with define_expand
22212 and new define_insn *altivec_stve<VI_char>x_internal.
22213 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
22215 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
22217 (altivec_expand_stvex_be): New function.
22219 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
22221 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
22222 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
22223 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
22224 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
22226 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
22229 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
22230 instead of emit_move_insn.
22232 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22234 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
22235 vspltw with vsldoi.
22236 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
22237 gen_altivec_vsumsws.
22239 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22241 * config/rs6000/altivec.md (altivec_lvxl): Rename as
22242 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
22243 (altivec_lvxl_<mode>): New define_expand incorporating
22244 -maltivec=be semantics where needed.
22245 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
22246 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
22247 semantics where needed.
22248 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
22249 (altivec_stvx_<mode>): New define_expand incorporating
22250 -maltivec=be semantics where needed.
22251 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
22252 VM2 iterator instead of V4SI.
22253 (altivec_stvxl_<mode>): New define_expand incorporating
22254 -maltivec=be semantics where needed.
22255 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
22256 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
22257 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
22258 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
22259 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
22260 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
22261 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
22262 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
22263 ALTIVEC_BUILTIN_STVXL.
22264 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
22265 (altivec_expand_stvx_be): Likewise.
22266 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
22267 (altivec_expand_lvx_be): Likewise.
22268 (altivec_expand_stvx_be): Likewise.
22269 (altivec_expand_builtin): Add cases for
22270 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
22271 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
22272 (altivec_init_builtins): Add definitions for
22273 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
22274 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
22276 2014-02-21 Catherine Moore <clm@codesourcery.com>
22278 * doc/invoke.texi (mvirt, mno-virt): Document.
22279 * config/mips/mips.opt (mvirt): New option.
22280 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
22282 2014-02-21 Richard Biener <rguenther@suse.de>
22284 PR tree-optimization/60276
22285 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
22286 (STMT_VINFO_MIN_NEG_DIST): New macro.
22287 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
22288 STMT_VINFO_MIN_NEG_DIST.
22289 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
22290 made for negative dependence distances still hold.
22292 2014-02-21 Richard Biener <rguenther@suse.de>
22294 PR middle-end/60291
22295 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
22296 DECL_INITIAL for globals not in the current function context.
22298 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22300 PR tree-optimization/56490
22301 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
22302 * tree-ssa-uninit.c: Include params.h.
22303 (compute_control_dep_chain): Add num_calls argument, return false
22304 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
22305 num_calls to recursive call.
22306 (find_predicates): Change dep_chain into normal array,
22307 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
22308 variable and adjust compute_control_dep_chain caller.
22309 (find_def_preds): Likewise.
22311 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
22313 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
22314 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
22316 2014-02-21 Nick Clifton <nickc@redhat.com>
22318 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
22319 (pushhi1): Likewise.
22320 (popqi1): Add mode to pre_dec.
22321 (pophi1): Likewise.
22323 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22325 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
22326 mode for mask of V8SFmode permutation.
22328 2014-02-20 Richard Henderson <rth@redhat.com>
22331 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
22332 a new pseudo for OLDVAL.
22334 2014-02-20 Jakub Jelinek <jakub@redhat.com>
22337 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
22338 gen_reg_rtx if d->testing_p.
22339 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
22340 if d->testing_p and we will certainly return true.
22341 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
22344 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
22346 * emit-rtl.c (gen_reg_rtx): Assert that
22347 crtl->emit.regno_pointer_align_length is non-zero.
22349 2014-02-20 Richard Henderson <rth@redhat.com>
22352 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
22353 on failure the store back into EXPECT.
22355 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
22356 Sandra Loosemore <sandra@codesourcery.com>
22358 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
22359 * config/nios2/nios2.c (nios2_function_profiler): Add
22360 -fPIC (flag_pic == 2) support.
22361 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
22362 (nios2_large_offset_p): New function.
22363 (nios2_unspec_reloc_p): Move up position, update to use
22364 nios2_large_offset_p.
22365 (nios2_unspec_address): Remove function.
22366 (nios2_unspec_offset): New function.
22367 (nios2_large_got_address): New function.
22368 (nios2_got_address): Add large offset support.
22369 (nios2_legitimize_tls_address): Update usage of removed and new
22371 (nios2_symbol_binds_local_p): New function.
22372 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
22373 (nios2_legitimize_address): Update to use nios2_large_offset_p.
22374 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
22375 (nios2_print_operand): Merge H/L processing, add hiadj/lo
22376 processing for (const (unspec ...)).
22377 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
22379 2014-02-20 Richard Biener <rguenther@suse.de>
22381 * tree-cfg.c (replace_uses_by): Mark altered BBs before
22382 doing the substitution.
22383 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
22385 2014-02-20 Martin Jambor <mjambor@suse.cz>
22388 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
22389 info when checking whether lattices are bottom.
22391 2014-02-20 Richard Biener <rguenther@suse.de>
22393 PR middle-end/60221
22394 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
22397 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
22400 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
22401 parameter specifying the scaling.
22402 (inline_call): Update.
22403 (want_inline_recursively): Guard division by zero.
22404 (recursive_inlining): Update.
22405 * ipa-inline.h (clone_inlined_nodes): Update.
22407 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22410 * config/i386/i386.c (classify_argument): Pass structures of size
22411 64 bytes or less in register.
22413 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22414 Kirill Yukhin <kirill.yukhin@intel.com>
22416 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
22417 (_mm_rcp28_round_ss): Ditto.
22418 (_mm_rsqrt28_round_sd): Ditto.
22419 (_mm_rsqrt28_round_ss): Ditto.
22420 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
22421 (_mm_rcp14_round_ss): Ditto.
22422 (_mm_rsqrt14_round_sd): Ditto.
22423 (_mm_rsqrt14_round_ss): Ditto.
22424 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
22425 the first input operand, get rid of match_dup.
22426 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
22428 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
22430 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
22431 operand as the first input operand, set type attribute.
22432 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
22433 Set type attribute.
22434 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
22435 operand as the first input operand, set type attribute.
22437 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22439 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
22442 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
22445 * config/i386/i386.c (construct_container): Remove TFmode check
22446 for X86_64_INTEGER_CLASS.
22448 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
22451 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
22452 only when -Wpsabi is enabled.
22454 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
22457 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
22458 passing arrays in registers are the same as for structs, so remove the
22459 special case for them.
22461 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
22463 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
22464 destination type, extract only the valid bits if the source type is not
22465 integral and has a different mode.
22467 2014-02-19 Richard Biener <rguenther@suse.de>
22470 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
22473 2014-02-19 Richard Biener <rguenther@suse.de>
22476 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
22477 (ipa_modify_call_arguments): Emit an argument load explicitely and
22478 preserve virtual SSA form there and for the replacement call.
22479 Do not update SSA form nor free dominance info.
22481 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22483 * ipa.c (function_and_variable_visibility): Also clear WEAK
22484 flag when disolving COMDAT_GROUP.
22486 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22488 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
22489 * ipa-prop.c (ipa_set_jf_known_type): Return early when
22490 not devirtualizing.
22491 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
22492 do more sanity checks.
22493 (detect_type_change): Return true when giving up early.
22494 (compute_complex_assign_jump_func): Fix type parameter of
22495 ipa_set_ancestor_jf.
22496 (compute_complex_ancestor_jump_func): Likewise.
22497 (update_jump_functions_after_inlining): Fix updating of
22499 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
22501 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22503 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
22504 inline clones when edge disappears.
22506 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
22509 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
22510 Split 64-bit moves into 2 patterns. Do not allow the use of
22511 direct move for TDmode in little endian, since the decimal value
22512 has little endian bytes within a word, but the 64-bit pieces are
22513 ordered in a big endian fashion, and normal subreg's of TDmode are
22515 (mov<mode>_64bit_dm): Likewise.
22516 (movtd_64bit_nodm): Likewise.
22518 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
22520 PR tree-optimization/60174
22521 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
22522 statement of an SSA_NAME that occurs in an abnormal PHI node.
22524 2014-02-18 Jakub Jelinek <jakub@redhat.com>
22527 * final.c (SEEN_BB): Remove.
22528 (SEEN_NOTE, SEEN_EMITTED): Renumber.
22529 (final_scan_insn): Don't force_source_line on second
22530 NOTE_INSN_BASIC_BLOCK.
22532 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
22535 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
22536 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
22537 (type_natural_mode): Warn ABI change when %zmm register is not
22538 available for AVX512F vector value passing.
22540 2014-02-18 Kai Tietz <ktietz@redhat.com>
22543 * config/i386/i386.c (ix86_expand_prologue): Use value in
22544 rax register as displacement when restoring %r10 or %rax.
22545 Fix wrong offset when restoring both registers.
22547 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
22549 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
22550 assertion with conditional return.
22552 2014-02-18 Jakub Jelinek <jakub@redhat.com>
22553 Uros Bizjak <ubizjak@gmail.com>
22556 * config/i386/driver-i386.c (host_detect_local_cpu): If
22557 YMM state is not saved by the OS, also clear has_f16c. Move
22558 CPUID 0x80000001 handling before YMM state saving checking.
22560 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
22562 PR rtl-optimization/58960
22563 * haifa-sched.c (alloc_global_sched_pressure_data): New,
22564 factored out from ...
22565 (sched_init): ... here.
22566 (free_global_sched_pressure_data): New, factored out from ...
22567 (sched_finish): ... here.
22568 * sched-int.h (free_global_sched_pressure_data): Declare.
22569 * sched-rgn.c (nr_regions_initial): New static global.
22570 (haifa_find_rgns): Initialize it.
22571 (schedule_region): Disable sched-pressure for the newly
22574 2014-02-17 Richard Biener <rguenther@suse.de>
22576 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
22577 release SSA defs of pattern stmts.
22579 2014-02-17 Richard Biener <rguenther@suse.de>
22581 * tree-inline.c (expand_call_inline): Release the virtual
22582 operand defined by the call we are about to inline.
22584 2014-02-17 Richard Biener <rguenther@suse.de>
22586 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
22588 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
22589 Ilya Tocar <ilya.tocar@intel.com>
22591 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
22592 arguments order in builtin.
22593 (_mm512_permutexvar_epi64): Ditto.
22594 (_mm512_mask_permutexvar_epi64): Ditto
22595 (_mm512_maskz_permutexvar_epi32): Ditto
22596 (_mm512_permutexvar_epi32): Ditto
22597 (_mm512_mask_permutexvar_epi32): Ditto
22599 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22601 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
22602 (p8_vmrgow): Likewise.
22604 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22606 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
22609 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
22612 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
22613 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
22614 into 64-bit and 32-bit moves. On 64-bit moves, add support for
22615 using direct move instructions on ISA 2.07. Also adjust
22616 instruction length for 64-bit.
22617 (mov<mode>_64bit, TFmode/TDmode): Likewise.
22618 (mov<mode>_32bit, TFmode/TDmode): Likewise.
22620 2014-02-15 Alan Modra <amodra@gmail.com>
22624 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
22625 find_replacement on parts of insn rtl that might be reloaded.
22627 2014-02-15 Richard Biener <rguenther@suse.de>
22629 PR tree-optimization/60183
22630 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
22631 (tree_ssa_phiprop): Calculate and free post-dominators.
22633 2014-02-14 Jeff Law <law@redhat.com>
22635 PR rtl-optimization/60131
22636 * ree.c (get_extended_src_reg): New function.
22637 (combine_reaching_defs): Use it rather than assuming location of REG.
22638 (find_and_remove_re): Verify first operand of extension is
22639 a REG before adding the insns to the copy list.
22641 2014-02-14 Roland McGrath <mcgrathr@google.com>
22643 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
22644 * configure: Regenerated.
22645 * config.in: Regenerated.
22646 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
22647 instead of ASM_SHORT.
22649 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
22650 Richard Earnshaw <rearnsha@arm.com>
22652 PR rtl-optimization/59535
22653 * lra-constraints.c (process_alt_operands): Encourage alternative
22654 when unassigned pseudo class is superset of the alternative class.
22655 (inherit_reload_reg): Don't inherit when optimizing for code size.
22656 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
22657 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
22658 modes not less than 4 for Thumb1.
22660 2014-02-14 Kyle McMartin <kyle@redhat.com>
22663 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
22665 2014-02-14 Richard Biener <rguenther@suse.de>
22667 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
22668 (get_frame_arg): Drop the assert with langhook types_compatible_p.
22669 Do not strip INDIRECT_REFs.
22671 2014-02-14 Richard Biener <rguenther@suse.de>
22674 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
22675 DECL_FUNCTION_SPECIFIC_TARGET.
22676 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
22677 * tree-streamer-out.c (pack_ts_target_option): Remove.
22678 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
22679 (write_ts_function_decl_tree_pointers): Do not stream
22680 DECL_FUNCTION_SPECIFIC_TARGET.
22681 * tree-streamer-in.c (unpack_ts_target_option): Remove.
22682 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
22683 (lto_input_ts_function_decl_tree_pointers): Do not stream
22684 DECL_FUNCTION_SPECIFIC_TARGET.
22686 2014-02-14 Jakub Jelinek <jakub@redhat.com>
22688 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
22689 (get_initial_def_for_induction, vectorizable_induction): Ignore
22690 debug stmts when looking for exit_phi.
22691 (vectorizable_live_operation): Fix up condition.
22693 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
22695 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
22696 nreverse() because it changes the content of original tree list.
22698 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
22700 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
22701 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
22703 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
22705 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
22706 GNU coding standards.
22708 2014-02-13 Jakub Jelinek <jakub@redhat.com>
22711 * dwarf2out.c (gen_subprogram_die): Don't call
22712 add_calling_convention_attribute if subr_die is old_die.
22714 2014-02-13 Sharad Singhai <singhai@google.com>
22716 * doc/optinfo.texi: Fix order of nodes.
22718 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
22720 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
22721 operands[2], not operands[3].
22723 2014-02-13 Richard Biener <rguenther@suse.de>
22726 * doc/install.texi (ISL): Update recommended version to 0.12.2,
22727 mention the possibility of an in-tree build.
22728 (CLooG): Update recommended version to 0.18.1, mention the
22729 possibility of an in-tree build and clarify that the ISL
22730 bundled with CLooG does not work.
22732 2014-02-13 Jakub Jelinek <jakub@redhat.com>
22735 * expr.c (compress_float_constant): If x is a hard register,
22736 extend into a pseudo and then move to x.
22738 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
22740 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
22741 caused by bad second argument to warning_at() with -mhotpatch and
22742 nested functions (e.g. with gfortran).
22744 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
22746 * opts.c (option_name): Remove "enabled by default" rider.
22748 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
22750 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
22752 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
22753 Uros Bizjak <ubizjak@gmail.com>
22756 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
22757 * configure: Regenerated.
22759 2014-02-12 Richard Biener <rguenther@suse.de>
22761 * vec.c (vec_prefix::calculate_allocation): Move as
22762 inline variant to vec.h.
22763 (vec_prefix::calculate_allocation_1): New out-of-line version.
22764 * vec.h (vec_prefix::calculate_allocation_1): Declare.
22765 (vec_prefix::m_has_auto_buf): Rename to ...
22766 (vec_prefix::m_using_auto_storage): ... this.
22767 (vec_prefix::calculate_allocation): Inline the easy cases
22768 and dispatch to calculate_allocation_1 which doesn't need the
22770 (va_heap::reserve): Use gcc_checking_assert.
22771 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
22772 m_using_auto_storage.
22773 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
22775 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
22776 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
22777 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
22779 2014-02-12 Richard Biener <rguenther@suse.de>
22781 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
22782 when we found a dependence.
22784 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
22786 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
22788 (maybe_fold_stmt): ... into this new function.
22789 * omp-low.c (lower_omp): Update comment.
22791 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
22794 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
22797 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
22799 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
22800 identifiers in comments.
22801 (cortexa53_extra_costs): Likewise.
22802 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
22803 (cortexa7_extra_costs): Likewise.
22804 (cortexa12_extra_costs): Likewise.
22805 (cortexa15_extra_costs): Likewise.
22806 (v7m_extra_costs): Likewise.
22808 2014-02-12 Richard Biener <rguenther@suse.de>
22810 PR middle-end/60092
22811 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
22812 of posix_memalign being successful.
22813 (lower_stmt): Restrict lowering of posix_memalign to when
22814 -ftree-bit-ccp is enabled.
22816 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22818 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
22820 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
22822 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
22824 PR rtl-optimization/60116
22825 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
22826 other_insn once the combination has been validated.
22828 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
22831 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
22833 * ipa-devirt.c: Include demangle.h
22834 (odr_violation_reported): New static variable.
22835 (add_type_duplicate): Update odr_violations.
22836 (maybe_record_node): Add completep parameter; update it.
22837 (record_target_from_binfo): Add COMPLETEP parameter;
22838 update it as needed.
22839 (possible_polymorphic_call_targets_1): Likewise.
22840 (struct polymorphic_call_target_d): Add nonconstruction_targets;
22841 rename FINAL to COMPLETE.
22842 (record_targets_from_bases): Sanity check we found the binfo;
22843 fix COMPLETEP updating.
22844 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
22845 parameter, fix computing of COMPLETEP.
22846 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
22847 at LTO time do demangling.
22848 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
22849 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
22851 (gimple_get_virt_method_for_binfo): Likewise.
22852 * gimple-fold.h (gimple_get_virt_method_for_binfo,
22853 gimple_get_virt_method_for_vtable): Update prototypes.
22855 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
22858 * genautomata.c (add_presence_absence): Fix typo with
22859 {final_}presence_list.
22861 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
22864 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
22865 for VSX/Altivec vectors that land in GPR registers.
22867 2014-02-11 Richard Henderson <rth@redhat.com>
22868 Jakub Jelinek <jakub@redhat.com>
22871 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
22872 around drhs if type conversion to lacc->type is not useless.
22874 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22876 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
22878 (cortex-a57.cortex-a53): Likewise.
22879 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
22881 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22883 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
22886 2014-02-11 Renlin Li <Renlin.Li@arm.com>
22888 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
22889 add_options_for_arm_vfp3.
22891 2014-02-11 Jeff Law <law@redhat.com>
22893 PR middle-end/54041
22894 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
22895 object with an undesirable mode.
22897 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22900 * config/i386/sol2-9.h: New file.
22901 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
22902 *-*-solaris2.9*): Use it.
22904 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
22906 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
22907 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
22909 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
22911 * config/microblaze/microblaze.c: Extend mcpu version format
22913 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
22915 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
22917 2014-02-10 Richard Henderson <rth@redhat.com>
22920 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
22921 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
22922 ms-abi vs -mno-accumulate-outgoing-args.
22923 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
22924 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
22927 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
22929 PR middle-end/60080
22930 * cfgexpand.c (expand_asm_operands): Attach source location to
22931 ASM_INPUT rtx objects.
22932 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
22934 2014-02-10 Nick Clifton <nickc@redhat.com>
22936 * config/mn10300/mn10300.c (popcount): New function.
22937 (mn10300_expand_prologue): Include saved registers in stack usage
22940 2014-02-10 Jeff Law <law@redhat.com>
22942 PR middle-end/52306
22943 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
22944 when changing the SET_DEST of a prior insn to avoid an input reload.
22946 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22948 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
22949 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
22950 -mcall-openbsd, or -mcall-linux.
22951 (CC1_ENDIAN_BIG_SPEC): Remove.
22952 (CC1_ENDIAN_LITTLE_SPEC): Remove.
22953 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
22954 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
22955 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
22956 and %cc1_endian_default.
22957 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
22959 2014-02-10 Richard Biener <rguenther@suse.de>
22961 PR tree-optimization/60115
22962 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
22963 MEM_REF handling. Properly verify that the accesses are not
22964 out of the objects bound.
22966 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22968 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
22971 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
22973 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
22974 proper constants and fix formatting.
22975 (possible_polymorphic_call_targets): Fix formatting.
22977 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
22978 Ilya Tocar <ilya.tocar@intel.com>
22980 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
22981 (_mm512_loadu_epi32): Renamed into...
22982 (_mm512_loadu_si512): This.
22983 (_mm512_storeu_epi32): Renamed into...
22984 (_mm512_storeu_si512): This.
22985 (_mm512_maskz_ceil_ps): Removed.
22986 (_mm512_maskz_ceil_pd): Ditto.
22987 (_mm512_maskz_floor_ps): Ditto.
22988 (_mm512_maskz_floor_pd): Ditto.
22989 (_mm512_floor_round_ps): Ditto.
22990 (_mm512_floor_round_pd): Ditto.
22991 (_mm512_ceil_round_ps): Ditto.
22992 (_mm512_ceil_round_pd): Ditto.
22993 (_mm512_mask_floor_round_ps): Ditto.
22994 (_mm512_mask_floor_round_pd): Ditto.
22995 (_mm512_mask_ceil_round_ps): Ditto.
22996 (_mm512_mask_ceil_round_pd): Ditto.
22997 (_mm512_maskz_floor_round_ps): Ditto.
22998 (_mm512_maskz_floor_round_pd): Ditto.
22999 (_mm512_maskz_ceil_round_ps): Ditto.
23000 (_mm512_maskz_ceil_round_pd): Ditto.
23001 (_mm512_expand_pd): Ditto.
23002 (_mm512_expand_ps): Ditto.
23003 * config/i386/i386.c (ix86_builtins): Remove
23004 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23005 (bdesc_args): Ditto.
23006 * config/i386/predicates.md (const1256_operand): New.
23007 (const_1_to_2_operand): Ditto.
23008 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23009 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23010 (*avx512pf_gatherpf<mode>sf): Ditto.
23011 (avx512pf_gatherpf<mode>df): Ditto.
23012 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23013 (*avx512pf_gatherpf<mode>df): Ditto.
23014 (avx512pf_scatterpf<mode>sf): Ditto.
23015 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23016 (*avx512pf_scatterpf<mode>sf): Ditto.
23017 (avx512pf_scatterpf<mode>df): Ditto.
23018 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23019 (*avx512pf_scatterpf<mode>df): Ditto.
23020 (avx512f_expand<mode>): Removed.
23021 (<shift_insn><mode>3<mask_name>): Change predicate type.
23023 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23025 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23026 not at the end of datarefs vector use ordered_remove to avoid
23027 reordering datarefs vector.
23030 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23031 mark local addressable non-static vars as GOVD_PRIVATE
23032 instead of GOVD_LOCAL.
23033 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23034 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23037 PR middle-end/60092
23038 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23039 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23040 assume_aligned or alloc_align attributes.
23041 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23042 arguments. Handle also assume_aligned and alloc_align attributes.
23043 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23044 calls to functions with assume_aligned or alloc_align attributes.
23045 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23047 2014-02-08 Terry Guo <terry.guo@arm.com>
23049 * doc/invoke.texi: Document ARM -march=armv7e-m.
23051 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23053 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23054 flag on __cilkrts_rethrow builtin.
23057 * ipa-cp.c (determine_versionability): Fail at -O0
23058 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23059 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23062 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23065 * tree-inline.c (copy_forbidden): Fail for
23066 __attribute__((optimize (0))) functions.
23068 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23070 * varpool.c: Include pointer-set.h.
23071 (varpool_remove_unreferenced_decls): Variables in other partitions
23072 will not be output; be however careful to not lose information
23073 about partitioning.
23075 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23077 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23078 lookup in the vtable constructor.
23080 2014-02-07 Jeff Law <law@redhat.com>
23083 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23084 define_insn_and_split.
23086 * ipa-inline.c (inline_small_functions): Fix typos.
23088 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23090 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23091 (s390_can_use_return_insn): Declare.
23092 * config/s390/s390.h (EPILOGUE_USES): Define.
23093 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23095 (s390_chunkify_start): Handle return JUMP_LABELs.
23096 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23097 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23098 (s390_can_use_return_insn): New functions.
23099 (s390_fix_long_loop_prediction): Handle conditional returns.
23100 (TARGET_SET_UP_BY_PROLOGUE): Define.
23101 * config/s390/s390.md (ANY_RETURN): New code iterator.
23102 (*creturn, *csimple_return, return, simple_return): New patterns.
23104 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23106 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23107 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23108 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23109 REG_CFA_RESTORE list when deciding not to restore a register.
23111 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23113 * config/s390/s390.c: Include tree-pass.h and context.h.
23114 (s390_early_mach): New function, split out from...
23115 (s390_emit_prologue): ...here.
23116 (pass_data_s390_early_mach): New pass structure.
23117 (pass_s390_early_mach): New class.
23118 (s390_option_override): Create and register early_mach pass.
23119 Move to end of file.
23121 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23123 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23124 to match for the exit block.
23126 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23128 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23129 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23130 Reject misaligned operands.
23132 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23134 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23136 2014-02-07 Richard Biener <rguenther@suse.de>
23138 PR middle-end/60092
23139 * gimple-low.c (lower_builtin_posix_memalign): New function.
23140 (lower_stmt): Call it to lower posix_memalign in a way
23141 to make alignment info accessible.
23143 2014-02-07 Jakub Jelinek <jakub@redhat.com>
23146 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23147 __builtin_setjmp_receiver.
23149 2014-02-07 Richard Biener <rguenther@suse.de>
23151 PR middle-end/60092
23152 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23153 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23154 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23155 Handle BUILT_IN_POSIX_MEMALIGN.
23156 (find_func_clobbers): Likewise.
23157 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23158 (call_may_clobber_ref_p_1): Likewise.
23160 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23163 * ipa-devirt.c (record_target_from_binfo): Remove overactive
23166 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23169 * lto-cgraph.c (lto_output_node): Use
23170 symtab_get_symbol_partitioning_class.
23171 (lto_output_varpool_node): likewise.
23172 (symtab_get_symbol_partitioning_class): Move here from
23173 lto/lto-partition.c
23174 * cgraph.h (symbol_partitioning_class): Likewise.
23175 (symtab_get_symbol_partitioning_class): Declare.
23177 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23179 * ggc.h (ggc_internal_cleared_alloc): New macro.
23180 * vec.h (vec_safe_copy): Handle memory stats.
23181 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
23182 * target-globals.c (save_target_globals): Likewise.
23184 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23187 * expr.c (emit_move_resolve_push): Export; be bit more selective
23188 on when to clear alias set.
23189 * expr.h (emit_move_resolve_push): Declare.
23190 * function.h (struct function): Add tail_call_marked.
23191 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
23192 * config/i386/i386-protos.h (ix86_expand_push): Remove.
23193 * config/i386/i386.md (TImode move expander): De not call
23195 (FP push expanders): Preserve memory attributes.
23196 * config/i386/sse.md (push<mode>1): Remove.
23197 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
23198 (ix86_expand_push): Remove.
23199 * config/i386/mmx.md (push<mode>1): Remove.
23201 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23203 PR rtl-optimization/60030
23204 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
23205 lopart with paradoxical subreg before shifting it up by hprec.
23207 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23209 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
23210 Remove extra newline at end of file.
23211 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
23212 (arm_issue_rate): Handle cortexa57.
23213 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
23214 (cortex-a57.cortex-a53): Likewise.
23216 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23219 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
23220 don't record in REG_FRAME_RELATED_EXPR registers not set in that
23222 (arm_expand_prologue): Adjust all callers.
23223 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
23224 info, registers also at the lowest numbered registers side. Use
23225 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
23229 * var-tracking.c (adjust_mems): Before adding a SET to
23230 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
23232 2014-02-06 Alan Modra <amodra@gmail.com>
23235 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
23236 change SDmode to DDmode when lra_in_progress.
23238 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23240 PR middle-end/59150
23241 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
23242 free_data_ref on the dr first, and before goto again also set dr
23243 to the next dr. For simd_lane_access, free old datarefs[i] before
23244 overwriting it. For get_vectype_for_scalar_type failure, don't
23245 free_data_ref if simd_lane_access.
23247 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
23250 * tree.h (opts_for_fn): New inline function.
23251 (opt_for_fn): Define.
23252 * config/i386/i386.c (ix86_function_regparm): Use
23253 opt_for_fn (decl, optimize) instead of optimize.
23255 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
23257 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
23258 for SYMBOL_REF in large memory model.
23260 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23262 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
23263 and crypto support.
23264 (cortex-a57): Likewise.
23265 (cortex-a57.cortex-a53): Likewise.
23267 2014-02-06 Yury Gribov <y.gribov@samsung.com>
23268 Kugan Vivekanandarajah <kuganv@linaro.org>
23270 * config/arm/arm.c (arm_vector_alignment_reachable): Check
23272 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
23274 2014-02-06 Richard Biener <rguenther@suse.de>
23276 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
23277 set_loop_copy and initialize_original_copy_tables.
23279 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
23281 * config/aarch64/aarch64-simd.md
23282 (aarch64_ashr_simddi): Change QI to SI.
23284 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23285 Jakub Jelinek <jakub@redhat.com>
23287 PR middle-end/60013
23288 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
23291 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23293 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
23294 CODE_FOR_altivec_vpku[hw]um to
23295 CODE_FOR_altivec_vpku[hw]um_direct.
23296 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
23297 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
23298 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
23299 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
23301 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23303 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
23304 generation for -maltivec=be.
23305 (altivec_vsumsws): Simplify redundant test.
23307 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23309 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
23310 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
23311 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
23312 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
23313 gen_altivec_vpkuwum.
23314 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
23316 (altivec_vpks<VI_char>ss): Likewise.
23317 (altivec_vpks<VI_char>us): Likewise.
23318 (altivec_vpku<VI_char>us): Likewise.
23319 (altivec_vpku<VI_char>um): Likewise.
23320 (altivec_vpku<VI_char>um_direct): New (copy of
23321 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
23323 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
23324 target is little endian and -maltivec=be is not specified.
23325 (*altivec_vupkhs<VU_char>_direct): New (copy of
23326 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
23327 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
23328 target is little endian and -maltivec=be is not specified.
23329 (*altivec_vupkls<VU_char>_direct): New (copy of
23330 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
23331 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
23332 little endian and -maltivec=be is not specified.
23333 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
23334 little endian and -maltivec=be is not specified.
23336 2014-02-05 Richard Henderson <rth@redhat.com>
23339 * combine-stack-adj.c: Revert r206943.
23340 * sched-int.h (struct deps_desc): Add last_args_size.
23341 * sched-deps.c (init_deps): Initialize it.
23342 (sched_analyze_insn): Add OUTPUT dependencies between insns that
23343 contain REG_ARGS_SIZE notes.
23345 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23347 * lto-cgraph.c (asm_nodes_output): Make global.
23348 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
23349 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
23350 (driver_handle_option): Handle OPT_fwpa.
23352 2014-02-05 Jakub Jelinek <jakub@redhat.com>
23355 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
23356 a comment typo and formatting issue. If odr_hash hasn't been
23357 created, return vNULL and set *completep to false.
23359 PR middle-end/57499
23360 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
23361 bb with no successors.
23363 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
23366 * doc/invoke.texi (-march): Clarify documentation for ARM.
23367 (-mtune): Likewise.
23370 2014-02-05 Richard Biener <rguenther@suse.de>
23372 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
23373 when not vectorizing because of too many alias checks.
23374 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23375 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
23377 2014-02-05 Nick Clifton <nickc@redhat.com>
23379 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
23380 accept extended registers in any mode when compiling for the MN10300.
23382 2014-02-05 Yury Gribov <y.gribov@samsung.com>
23384 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
23385 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
23386 sanitization attributes.
23387 (can_inline_edge_p): Likewise.
23388 (sanitize_attrs_match_for_inline_p): New function.
23390 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23392 * ipa-prop.c (detect_type_change): Shor circuit testing of
23393 type changes on THIS pointer.
23395 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
23398 * config/pa/pa.c (legitimize_tls_address): Return original address
23399 if not passed a SYMBOL_REF rtx.
23400 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
23402 (pa_emit_move_sequence): Simplify TLS source operands.
23403 (pa_legitimate_constant_p): Reject all TLS constants.
23404 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
23405 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
23407 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23409 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
23410 groups when we know they are controlled by LTO.
23411 * varasm.c (default_binds_local_p_1): If object is in other partition,
23412 it will be resolved locally.
23414 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23416 * config/host-linux.c (linux_gt_pch_use_address): Don't
23417 use SSIZE_MAX because it is not always defined.
23419 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
23422 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
23423 threshold for pseudo splitting.
23424 (update_ebb_live_info): Process call argument hard registers and
23425 hard registers from insn definition too.
23426 (max_small_class_regs_num): New constant.
23427 (inherit_in_ebb): Update live hard regs through EBBs. Update
23428 reloads_num only for small register classes. Don't split for
23431 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
23434 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
23437 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23439 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
23440 visibility is safe.
23442 2014-02-04 Marek Polacek <polacek@redhat.com>
23444 * gdbinit.in (pel): Define.
23446 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23448 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
23451 2014-02-04 Richard Biener <rguenther@suse.de>
23454 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
23455 in function context local.
23456 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
23457 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
23458 similar to LTO_imported_decl_ref.
23460 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23462 PR tree-optimization/60002
23463 * cgraphclones.c (build_function_decl_skip_args): Clear
23464 DECL_LANG_SPECIFIC.
23466 PR tree-optimization/60023
23467 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
23468 false to gsi_replace.
23469 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
23470 has been in some EH region and vec_stmt could throw, add
23471 vec_stmt into the same EH region.
23472 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
23473 has no lhs, ignore it.
23474 * internal-fn.c (expand_MASK_LOAD): Likewise.
23477 * tree-inline.c (copy_forbidden): Fail for
23478 __attribute__((optimize (0))) functions.
23481 * omp-low.c (simd_clone_struct_copy): If from->inbranch
23482 is set, copy one less argument.
23483 (expand_simd_clones): Don't subtract clone_info->inbranch
23484 from simd_clone_struct_alloc argument.
23486 PR rtl-optimization/57915
23487 * recog.c (simplify_while_replacing): If all unary/binary/relational
23488 operation arguments are constant, attempt to simplify those.
23490 PR middle-end/59261
23491 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
23492 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
23494 2014-02-04 Richard Biener <rguenther@suse.de>
23496 PR tree-optimization/60012
23497 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
23498 TBAA disambiguation to all DDRs.
23500 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23503 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
23504 (LINK_SPEC): Use it for -shared, -shared-libgcc.
23506 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23509 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
23511 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23513 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
23514 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
23516 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23519 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
23520 to figure out targets of polymorphic calls with known decl.
23521 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23522 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
23523 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
23524 (get_polymorphic_call_info): ... here.
23525 (get_polymorphic_call_info_from_invariant): New function.
23527 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23529 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
23530 lookup via vtable pointer; check for type consistency
23531 and turn inconsitent facts into UNREACHABLE.
23532 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23533 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
23534 type inconsistent querries; return UNREACHABLE instead.
23536 2014-02-03 Richard Henderson <rth@twiddle.net>
23539 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
23540 already processed this node.
23541 (normalize_one_pred_1): Pass along mark_set.
23542 (normalize_one_pred): Create and destroy a pointer_set_t.
23543 (normalize_one_pred_chain): Likewise.
23545 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
23547 PR gcov-profile/58602
23548 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
23550 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23553 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
23554 -fno-devirtualize; try to devirtualize by the knowledge of
23555 virtual table pointer given by aggregate propagation.
23556 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23557 (ipa_print_node_jump_functions): Dump also offset that
23558 is relevant for polymorphic calls.
23559 (determine_known_aggregate_parts): Add arg_type parameter; use it
23560 instead of determining the type from pointer type.
23561 (ipa_compute_jump_functions_for_edge): Update call of
23562 determine_known_aggregate_parts.
23563 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
23564 (gimple_get_virt_method_for_binfo): ... here; simplify using
23565 vtable_pointer_value_to_vtable.
23566 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
23567 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
23568 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
23569 (vtable_pointer_value_to_vtable): Break out from ...; handle also
23571 (vtable_pointer_value_to_binfo): ... here.
23572 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
23574 2014-02-03 Teresa Johnson <tejohnson@google.com>
23576 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
23577 redef of outer loop index variable.
23579 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
23583 * doc/extend.texi (Function Attributes): Typo.
23585 2014-02-03 Cong Hou <congh@google.com>
23587 PR tree-optimization/60000
23588 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
23589 if the vectorized statement is a store. A store statement can only
23590 appear at the end of pattern statements.
23592 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
23594 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
23595 (ix86_option_override_internal): Default long double to 64-bit for
23596 32-bit Bionic and to 128-bit for 64-bit Bionic.
23598 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
23599 TARGET_LONG_DOUBLE_128 is true.
23600 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
23602 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
23603 (mlong-double-64): Negate -mlong-double-128.
23604 (mlong-double-128): New option.
23606 * config/i386/i386-c.c (ix86_target_macros): Define
23607 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
23609 * doc/invoke.texi: Document -mlong-double-128.
23611 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
23613 PR rtl-optimization/60024
23614 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
23616 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
23618 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
23620 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
23622 PR rtl-optimization/57662
23623 * sel-sched.c (code_motion_path_driver): Do not mark already not
23624 existing blocks in the visiting bitmap.
23626 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
23628 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
23629 on the insn being emitted.
23631 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
23632 Will Deacon <will.deacon@arm.com>
23634 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
23636 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23638 * config/arm/arm-tables.opt: Regenerate.
23640 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23642 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
23643 for vector types other than V16QImode.
23644 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
23645 define_expand, and call altivec_expand_vec_perm_le when producing
23646 code with little endian element order.
23647 (*altivec_vperm_<mode>_internal): New insn having previous
23648 behavior of altivec_vperm_<mode>.
23649 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
23650 altivec_expand_vec_perm_le when producing code with little endian
23652 (*altivec_vperm_<mode>_uns_internal): New insn having previous
23653 behavior of altivec_vperm_<mode>_uns.
23655 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23657 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
23658 (altivec_vsumsws): Add handling for -maltivec=be with a little
23660 (altivec_vsumsws_direct): New.
23661 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
23662 gen_altivec_vsumsws.
23664 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
23666 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
23667 vtable_pointer_value_to_binfo): New functions.
23668 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
23669 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
23671 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
23673 * config/nios2/nios2.md (load_got_register): Initialize GOT
23674 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
23675 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
23677 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
23679 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
23680 preserverd by passthrough, do not propagate the type.
23682 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
23684 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
23685 (mips_atomic_assign_expand_fenv): New function.
23686 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
23688 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
23690 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
23691 (__builtin_mips_set_fcsr): Likewise.
23692 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
23693 MIPS_USI_FTYPE_VOID.
23694 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
23695 (mips16_expand_set_fcsr): Likewise.
23696 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
23697 (mips16_set_fcsr_stub): Likewise.
23698 (mips16_get_fcsr_one_only_stub): New class.
23699 (mips16_set_fcsr_one_only_stub): Likewise.
23700 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
23701 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
23702 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
23703 (hard_float): New availability predicate.
23704 (mips_builtins): Add get_fcsr and set_fcsr.
23705 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
23706 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
23707 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
23708 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
23709 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
23712 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
23714 * config/mips/mips.c (mips_one_only_stub): New class.
23715 (mips_need_mips16_rdhwr_p): Replace with...
23716 (mips16_rdhwr_stub): ...this new variable.
23717 (mips16_stub_call_address): New function.
23718 (mips16_rdhwr_one_only_stub): New class.
23719 (mips_expand_thread_pointer): Use mips16_stub_call_address.
23720 (mips_output_mips16_rdhwr): Delete.
23721 (mips_finish_stub): New function.
23722 (mips_code_end): Use it to handle rdhwr stubs.
23724 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
23727 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
23728 when calculating size of integer atomic types.
23730 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
23732 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
23734 2014-02-01 Jakub Jelinek <jakub@redhat.com>
23736 PR tree-optimization/60003
23737 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
23738 * profile.c (branch_prob): Use gimple_call_builtin_p
23739 to check for BUILT_IN_SETJMP_RECEIVER.
23740 * tree-inline.c (copy_bb): Call notice_special_calls.
23742 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
23745 * lra-constraints.c (process_alt_operands): Update reload_sum only
23748 2014-01-31 Richard Henderson <rth@redhat.com>
23750 PR middle-end/60004
23751 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
23752 until after else_eh is processed.
23754 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
23756 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
23757 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
23758 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
23759 in smmintrin.h, remove them.
23760 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
23761 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
23762 * config/i386/i386.md (ROUND_SAE): Fix value.
23763 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
23764 (const48_operand): New.
23765 * config/i386/subst.md (round), (round_expand): Use
23766 const_4_or_8_to_11_operand.
23767 (round_saeonly), (round_saeonly_expand): Use const48_operand.
23769 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
23771 * config/i386/constraints.md (Yk): Swap meaning with k.
23772 * config/i386/i386.md (movhi_internal): Change Yk to k.
23773 (movqi_internal): Ditto.
23774 (*k<logic><mode>): Ditto.
23777 (kandn<mode>): Ditto.
23778 (*<code>hi_1): Ditto.
23779 (*<code>qi_1): Ditto.
23780 (kxnor<mode>): Ditto.
23781 (kortestzhi): Ditto.
23782 (kortestchi): Ditto.
23784 (*one_cmplhi2_1): Ditto.
23785 (*one_cmplqi2_1): Ditto.
23786 * config/i386/sse.md (): Change k to Yk.
23787 (avx512f_load<mode>_mask): Ditto.
23788 (avx512f_blendm<mode>): Ditto.
23789 (avx512f_store<mode>_mask): Ditto.
23790 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
23791 (avx512f_storedqu<mode>_mask): Ditto.
23792 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
23794 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
23795 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
23796 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
23797 (avx512f_maskcmp<mode>3): Ditto.
23798 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
23799 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
23800 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
23801 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
23802 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
23803 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
23804 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
23805 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
23806 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
23807 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
23808 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
23809 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
23810 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
23811 (vec_extract_lo_<mode>_maskm): Ditto.
23812 (vec_extract_hi_<mode>_maskm): Ditto.
23813 (avx512f_vternlog<mode>_mask): Ditto.
23814 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
23815 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
23816 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
23817 (avx512f_<code>v8div16qi2_mask): Ditto.
23818 (avx512f_<code>v8div16qi2_mask_store): Ditto.
23819 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
23820 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
23821 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
23822 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
23823 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23824 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23825 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23826 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23827 (avx512cd_maskb_vec_dupv8di): Ditto.
23828 (avx512cd_maskw_vec_dupv16si): Ditto.
23829 (avx512f_vpermi2var<mode>3_maskz): Ditto.
23830 (avx512f_vpermi2var<mode>3_mask): Ditto.
23831 (avx512f_vpermi2var<mode>3_mask): Ditto.
23832 (avx512f_vpermt2var<mode>3_maskz): Ditto.
23833 (*avx512f_gathersi<mode>): Ditto.
23834 (*avx512f_gathersi<mode>_2): Ditto.
23835 (*avx512f_gatherdi<mode>): Ditto.
23836 (*avx512f_gatherdi<mode>_2): Ditto.
23837 (*avx512f_scattersi<mode>): Ditto.
23838 (*avx512f_scatterdi<mode>): Ditto.
23839 (avx512f_compress<mode>_mask): Ditto.
23840 (avx512f_compressstore<mode>_mask): Ditto.
23841 (avx512f_expand<mode>_mask): Ditto.
23842 * config/i386/subst.md (mask): Change k to Yk.
23843 (mask_scalar_merge): Ditto.
23846 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
23848 * doc/extend.texi (Vector Extensions): Document ?: in C++.
23850 2014-01-31 Richard Biener <rguenther@suse.de>
23852 PR middle-end/59990
23853 * builtins.c (fold_builtin_memory_op): Make sure to not
23854 use a floating-point mode or a boolean or enumeral type for
23855 the copy operation.
23857 2014-01-30 DJ Delorie <dj@redhat.com>
23859 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
23860 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
23861 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
23862 whenever main() has an epilogue.
23864 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23866 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
23867 unused variable "field".
23868 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
23869 (vsx_mergeh_<mode>): Likewise.
23870 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
23871 (altivec_vmrghh): Likewise.
23872 (altivec_vmrghw): Likewise.
23873 (altivec_vmrglb): Likewise.
23874 (altivec_vmrglh): Likewise.
23875 (altivec_vmrglw): Likewise.
23876 (altivec_vspltb): Add missing uses.
23877 (altivec_vsplth): Likewise.
23878 (altivec_vspltw): Likewise.
23879 (altivec_vspltsf): Likewise.
23881 2014-01-30 Jakub Jelinek <jakub@redhat.com>
23884 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
23885 frame related instructions.
23887 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
23889 PR rtl-optimization/59959
23890 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
23891 any reload of register whose subreg is invalid.
23893 2014-01-30 Jakub Jelinek <jakub@redhat.com>
23895 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
23896 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
23897 Add missing return type - void.
23899 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23901 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
23902 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
23903 remove element index adjustment for endian (now handled in vsx.md
23905 (altivec_expand_vec_perm_const): Use
23906 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
23907 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
23908 (vsx_xxspltw_<mode>): Adjust element index for little endian.
23909 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
23910 define_expand and a new define_insn *altivec_vspltb_internal;
23911 adjust for -maltivec=be on a little endian target.
23912 (altivec_vspltb_direct): New.
23913 (altivec_vsplth): Divide into a define_expand and a new
23914 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
23915 little endian target.
23916 (altivec_vsplth_direct): New.
23917 (altivec_vspltw): Divide into a define_expand and a new
23918 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
23919 little endian target.
23920 (altivec_vspltw_direct): New.
23921 (altivec_vspltsf): Divide into a define_expand and a new
23922 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
23923 a little endian target.
23925 2014-01-30 Richard Biener <rguenther@suse.de>
23927 PR tree-optimization/59993
23928 * tree-ssa-forwprop.c (associate_pointerplus): Check we
23929 can propagate form the earlier stmt and avoid the transform
23930 when the intermediate result is needed.
23932 2014-01-30 Alangi Derick <alangiderick@gmail.com>
23934 * README.Portability: Fix typo.
23936 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
23938 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
23939 comparison_operator with ordered_comparison_operator.
23941 2014-01-30 Nick Clifton <nickc@redhat.com>
23943 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
23944 Rename to mn10300_store_multiple_regs.
23945 * config/mn10300/mn10300.c: Likewise.
23946 * config/mn10300/mn10300.md (store_movm): Fix typo: call
23947 store_multiple_regs.
23948 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
23949 Call mn10300_store_multiple_regs.
23951 2014-01-30 Nick Clifton <nickc@redhat.com>
23952 DJ Delorie <dj@redhat.com>
23954 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
23955 %fp 2 to keep registers after it properly word-aligned.
23956 (rl78_alloc_physical_registers_umul): Handle the case where both
23957 input operands are the same.
23959 2014-01-30 Richard Biener <rguenther@suse.de>
23961 PR tree-optimization/59903
23962 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
23965 2014-01-30 Jason Merrill <jason@redhat.com>
23968 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
23971 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
23973 2014-01-30 Richard Biener <rguenther@suse.de>
23975 PR tree-optimization/59951
23976 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
23978 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
23981 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
23982 SFmode to DFmode case.
23984 2014-01-29 DJ Delorie <dj@redhat.com>
23986 * config/msp430/msp430.opt (-minrt): New.
23987 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
23989 (ENDFILE_SPEC): Likewise.
23991 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
23993 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
23994 (estimate_function_body_sizes): Use it.
23996 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
23999 * dwarf2out.c (is_cxx_auto): New.
24000 (is_base_type): Use it.
24001 (gen_type_die_with_usage): Likewise.
24003 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24005 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24006 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24007 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24008 -maltivec=be with LE targets.
24009 (vsx_mergeh_<mode>): Likewise.
24010 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24011 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24012 (altivec_vmrghb): Replace with define_expand and new
24013 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24014 (altivec_vmrghb_direct): New define_insn.
24015 (altivec_vmrghh): Replace with define_expand and new
24016 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24017 (altivec_vmrghh_direct): New define_insn.
24018 (altivec_vmrghw): Replace with define_expand and new
24019 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24020 (altivec_vmrghw_direct): New define_insn.
24021 (*altivec_vmrghsf): Adjust for endianness.
24022 (altivec_vmrglb): Replace with define_expand and new
24023 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24024 (altivec_vmrglb_direct): New define_insn.
24025 (altivec_vmrglh): Replace with define_expand and new
24026 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24027 (altivec_vmrglh_direct): New define_insn.
24028 (altivec_vmrglw): Replace with define_expand and new
24029 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24030 (altivec_vmrglw_direct): New define_insn.
24031 (*altivec_vmrglsf): Adjust for endianness.
24032 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24033 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24034 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24035 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24036 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24037 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24038 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24039 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24041 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24043 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24044 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24047 2014-01-29 Richard Biener <rguenther@suse.de>
24049 PR tree-optimization/58742
24050 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24051 associate_pointerplus_align.
24052 (associate_pointerplus_diff): New function.
24053 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24054 and associate_pointerplus_diff.
24056 2014-01-29 Richard Biener <rguenther@suse.de>
24058 * lto-streamer.h (LTO_major_version): Bump to 3.
24059 (LTO_minor_version): Reset to 0.
24061 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24063 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24064 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24065 (arm_file_start): Generate correct asm header for armv7ve.
24066 * config/arm/bpabi.h: Add multilib support for armv7ve.
24067 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24068 and cortex-a15 to armv7ve.
24069 * config/arm/t-aprofile: Add multilib support for armv7ve.
24070 * doc/invoke.texi: Document -march=armv7ve.
24072 2014-01-29 Richard Biener <rguenther@suse.de>
24074 PR tree-optimization/58742
24075 * tree-ssa-forwprop.c (associate_plusminus): Return true
24076 if we changed sth, defer EH cleanup to ...
24077 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24078 (simplify_mult): New function.
24080 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24082 PR middle-end/59917
24083 PR tree-optimization/59920
24084 * tree.c (build_common_builtin_nodes): Remove
24085 __builtin_setjmp_dispatcher initialization.
24086 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24087 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24088 instead of gsi_after_labels + manually skipping debug stmts.
24089 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24090 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24091 * tree-inline.c (copy_edges_for_bb): Remove
24092 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24093 argument. Ignore computed_goto_p stmts. Don't call
24094 make_abnormal_goto_edges. If a call might need abnormal edges
24095 for non-local gotos, see if it already has an edge to
24096 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24097 with true argument, don't do anything then, otherwise add
24098 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24099 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24101 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24102 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24103 (lower_stmt): Don't set data->calls_builtin_setjmp.
24104 (lower_builtin_setjmp): Adjust comment.
24105 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24106 * tree-cfg.c (found_computed_goto): Remove.
24107 (factor_computed_gotos): Remove.
24108 (make_goto_expr_edges): Return bool, true for computed gotos.
24109 Don't call make_abnormal_goto_edges.
24110 (build_gimple_cfg): Don't set found_computed_goto, don't call
24111 factor_computed_gotos.
24112 (computed_goto_p): No longer static.
24113 (make_blocks): Don't set found_computed_goto.
24114 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24115 (make_edges): If make_goto_expr_edges returns true, push bb
24116 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24117 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24118 vector. Record mapping between bbs and OpenMP regions if there
24119 are any, adjust make_gimple_omp_edges caller. Call
24120 handle_abnormal_edges.
24121 (make_abnormal_goto_edges): Remove.
24122 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24123 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24124 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24125 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24126 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24127 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24128 filling *region also set *region_idx to (*region)->entry->index.
24131 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24132 For REGs set ORIGINAL_REGNO.
24134 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
24136 * doc/md.texi: Mention that a target shouldn't implement
24137 vec_widen_(s|u)mul_even/odd pair if it is less efficient
24140 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24142 PR tree-optimization/59594
24143 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24144 a copy of the datarefs vector rather than the vector itself.
24146 2014-01-28 Jason Merrill <jason@redhat.com>
24149 * dwarf2out.c (auto_die): New static.
24150 (gen_type_die_with_usage): Handle C++1y 'auto'.
24151 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24154 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
24157 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
24158 (SPEC_X32): Likewise.
24159 (SPEC_64): Likewise.
24160 * config/i386/i386.c (ix86_option_override_internal): Turn off
24161 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
24163 (x86_file_start): Output .code16gcc for TARGET_16BIT.
24164 * config/i386/i386.h (TARGET_16BIT): New macro.
24165 (TARGET_16BIT_P): Likewise.
24166 * config/i386/i386.opt: Add m16.
24167 * doc/invoke.texi: Document -m16.
24169 2014-01-28 Jakub Jelinek <jakub@redhat.com>
24171 PR preprocessor/59935
24172 * input.c (location_get_source_line): Bail out on when line number
24173 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
24175 2014-01-28 Richard Biener <rguenther@suse.de>
24177 PR tree-optimization/58742
24178 * tree-ssa-forwprop.c (associate_plusminus): Handle
24179 pointer subtraction of the form (T)(P + A) - (T)P.
24181 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24183 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
24186 2014-01-28 Richard Biener <rguenther@suse.de>
24189 2014-01-28 Richard Biener <rguenther@suse.de>
24191 PR rtl-optimization/45364
24192 PR rtl-optimization/59890
24193 * var-tracking.c (local_get_addr_clear_given_value): Handle
24194 already cleared slot.
24195 (val_reset): Handle not allocated local_get_addr_cache.
24196 (vt_find_locations): Use post-order on the inverted CFG.
24198 2014-01-28 Richard Biener <rguenther@suse.de>
24200 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
24202 2014-01-28 Richard Biener <rguenther@suse.de>
24204 PR rtl-optimization/45364
24205 PR rtl-optimization/59890
24206 * var-tracking.c (local_get_addr_clear_given_value): Handle
24207 already cleared slot.
24208 (val_reset): Handle not allocated local_get_addr_cache.
24209 (vt_find_locations): Use post-order on the inverted CFG.
24211 2014-01-28 Alan Modra <amodra@gmail.com>
24213 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
24214 * configure.ac <recursive call for build != host>: Define
24215 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
24216 and LD_FOR_BUILD too.
24217 * configure: Regenerate.
24219 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
24221 * config/i386/i386.c (get_builtin_code_for_version): Separate
24222 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
24223 Broadwell from Haswell.
24225 2014-01-27 Steve Ellcey <sellcey@mips.com>
24227 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24228 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
24229 * config/mips/mips.c (mips_option_override): Change setting
24231 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
24232 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
24233 Change from Mask to Var.
24235 2014-01-27 Jeff Law <law@redhat.com>
24237 * ipa-inline.c (inline_small_functions): Fix typo.
24239 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
24241 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
24242 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
24243 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
24244 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
24245 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
24246 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
24247 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
24248 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
24249 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
24250 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
24251 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
24252 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
24253 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
24254 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
24255 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
24256 (_mm512_storeu_epi64): Ditto.
24257 (_mm512_cmpge_epi32_mask): Ditto.
24258 (_mm512_cmpge_epu32_mask): Ditto.
24259 (_mm512_cmpge_epi64_mask): Ditto.
24260 (_mm512_cmpge_epu64_mask): Ditto.
24261 (_mm512_cmple_epi32_mask): Ditto.
24262 (_mm512_cmple_epu32_mask): Ditto.
24263 (_mm512_cmple_epi64_mask): Ditto.
24264 (_mm512_cmple_epu64_mask): Ditto.
24265 (_mm512_cmplt_epi32_mask): Ditto.
24266 (_mm512_cmplt_epu32_mask): Ditto.
24267 (_mm512_cmplt_epi64_mask): Ditto.
24268 (_mm512_cmplt_epu64_mask): Ditto.
24269 (_mm512_cmpneq_epi32_mask): Ditto.
24270 (_mm512_cmpneq_epu32_mask): Ditto.
24271 (_mm512_cmpneq_epi64_mask): Ditto.
24272 (_mm512_cmpneq_epu64_mask): Ditto.
24273 (_mm512_expand_pd): Ditto.
24274 (_mm512_expand_ps): Ditto.
24275 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
24276 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
24277 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
24278 * config/i386/i386.c (ix86_builtins): Add
24279 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
24280 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
24281 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
24282 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
24283 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
24284 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
24285 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
24286 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
24287 IX86_BUILTIN_PMOVUSQW512_MEM.
24288 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
24289 __builtin_ia32_pmovsqd512mem_mask,
24290 __builtin_ia32_pmovqd512mem_mask,
24291 __builtin_ia32_pmovusqw512mem_mask,
24292 __builtin_ia32_pmovsqw512mem_mask,
24293 __builtin_ia32_pmovqw512mem_mask,
24294 __builtin_ia32_pmovusdw512mem_mask,
24295 __builtin_ia32_pmovsdw512mem_mask,
24296 __builtin_ia32_pmovdw512mem_mask,
24297 __builtin_ia32_pmovqb512mem_mask,
24298 __builtin_ia32_pmovusqb512mem_mask,
24299 __builtin_ia32_pmovsqb512mem_mask,
24300 __builtin_ia32_pmovusdb512mem_mask,
24301 __builtin_ia32_pmovsdb512mem_mask,
24302 __builtin_ia32_pmovdb512mem_mask.
24303 (bdesc_args): Add __builtin_ia32_expanddf512,
24304 __builtin_ia32_expandsf512.
24305 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
24306 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
24307 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
24308 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
24309 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
24310 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
24311 (avx512f_<code>v8div16qi2_mask_store): This.
24312 (avx512f_expand<mode>): New.
24314 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
24316 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
24318 (_mm512_mask_prefetch_i64gather_pd): Ditto.
24319 (_mm512_prefetch_i32scatter_pd): Ditto.
24320 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
24321 (_mm512_prefetch_i64scatter_pd): Ditto.
24322 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
24323 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
24324 (_mm512_mask_prefetch_i64gather_ps): Ditto.
24325 (_mm512_prefetch_i32scatter_ps): Ditto.
24326 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
24327 (_mm512_prefetch_i64scatter_ps): Ditto.
24328 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
24329 * config/i386/i386-builtin-types.def: Define
24330 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
24331 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
24332 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
24333 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
24334 IX86_BUILTIN_SCATTERPFQPD.
24335 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
24336 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
24337 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
24338 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
24339 __builtin_ia32_scatterpfqps.
24340 (ix86_expand_builtin): Expand new built-ins.
24341 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
24342 fix memory access data type.
24343 (*avx512pf_gatherpf<mode>_mask): Ditto.
24344 (*avx512pf_gatherpf<mode>): Ditto.
24345 (avx512pf_scatterpf<mode>): Ditto.
24346 (*avx512pf_scatterpf<mode>_mask): Ditto.
24347 (*avx512pf_scatterpf<mode>): Ditto.
24348 (GATHER_SCATTER_SF_MEM_MODE): New.
24349 (avx512pf_gatherpf<mode>df): Ditto.
24350 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24351 (*avx512pf_scatterpf<mode>df): Ditto.
24353 2014-01-27 Jakub Jelinek <jakub@redhat.com>
24356 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
24357 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
24360 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24362 * common/config/arm/arm-common.c
24363 (arm_rewrite_mcpu): Handle multiple names.
24365 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24367 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24369 * gimple-builder.h (create_gimple_tmp): Delete.
24371 2014-01-27 Christian Bruel <christian.bruel@st.com>
24373 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
24376 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
24378 * config/pa/pa.md (call): Generate indirect long calls to non-local
24379 functions when outputing 32-bit code.
24380 (call_value): Likewise except for special call to buggy powf function.
24382 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
24383 portable runtime and PIC indirect calls.
24384 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
24385 and PIC call sequences. Use ldo instead of blr to set return register
24386 in PIC call sequence.
24388 2014-01-25 Walter Lee <walt@tilera.com>
24390 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
24391 avoid clobbering a live register.
24393 2014-01-25 Walter Lee <walt@tilera.com>
24395 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
24396 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
24397 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
24398 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
24400 2014-01-25 Walter Lee <walt@tilera.com>
24402 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
24403 arguments on even registers.
24404 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
24406 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
24407 (BIGGEST_ALIGNMENT): Ditto.
24408 (BIGGEST_FIELD_ALIGNMENT): Ditto.
24410 2014-01-25 Walter Lee <walt@tilera.com>
24412 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
24413 insns before bundling.
24414 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
24416 2014-01-25 Walter Lee <walt@tilera.com>
24418 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
24419 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
24420 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
24422 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24424 * config/mips/constraints.md (kl): Delete.
24425 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
24426 define expands, using...
24427 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
24428 instructions for MIPS16.
24429 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
24430 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
24432 2014-01-25 Walter Lee <walt@tilera.com>
24434 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
24438 2014-01-25 Walter Lee <walt@tilera.com>
24440 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
24441 (TARGET_EXPAND_TO_RTL_HOOK): Define.
24443 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24445 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
24448 2014-01-25 Jakub Jelinek <jakub@redhat.com>
24450 * print-rtl.c (in_call_function_usage): New var.
24451 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
24452 EXPR_LIST mode as mode and not as reg note name.
24454 PR middle-end/59561
24455 * cfgloopmanip.c (copy_loop_info): If
24456 loop->warned_aggressive_loop_optimizations, make sure
24457 the flag is set in target loop too.
24459 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
24461 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
24463 * builtins.def: Likewise.
24464 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
24465 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
24466 * ira.c (ira_setup_eliminable_regset): Likewise.
24467 * omp-low.c (gate_expand_omp): Likewise.
24468 (execute_lower_omp): Likewise.
24469 (diagnose_sb_0): Likewise.
24470 (gate_diagnose_omp_blocks): Likewise.
24471 (simd_clone_clauses_extract): Likewise.
24474 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24476 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
24477 correction for little endian...
24478 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
24481 2014-01-24 Jeff Law <law@redhat.com>
24483 PR tree-optimization/59919
24484 * tree-vrp.c (find_assert_locations_1): Do not register asserts
24485 for non-returning calls.
24487 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
24489 * common/config/aarch64/aarch64-common.c
24490 (aarch64_rewrite_mcpu): Handle multiple names.
24491 * config/aarch64/aarch64.h
24492 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24494 2014-01-24 Dodji Seketeli <dodji@redhat.com>
24496 * input.c (add_file_to_cache_tab): Handle the case where fopen
24499 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
24502 * config/i386/i386.md (pushsf splitter): Get stack adjustment
24503 from push operand if code of push isn't PRE_DEC.
24505 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
24508 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
24509 -mquad-memory-atomic. Update -mquad-memory documentation to say
24510 it is only used for non-atomic loads/stores.
24512 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
24513 -mquad-memory or -mquad-memory-atomic switches.
24515 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
24516 -mquad-memory-atomic to ISA 2.07 support.
24518 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
24519 to separate support of normal quad word memory operations (ldq, stq)
24520 from the atomic quad word memory operations.
24522 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
24523 support to separate non-atomic quad word operations from atomic
24524 quad word operations. Disable non-atomic quad word operations in
24525 little endian mode so that we don't have to swap words after the
24526 load and before the store.
24527 (quad_load_store_p): Add comment about atomic quad word support.
24528 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
24529 options printed with -mdebug=reg.
24531 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
24532 -mquad-memory-atomic as the test for whether we have quad word
24533 atomic instructions.
24534 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
24535 or -mp8-vector are used, allow byte/half-word atomic operations.
24537 * config/rs6000/sync.md (load_lockedti): Insure that the address
24538 is a proper indexed or indirect address for the lqarx instruction.
24539 On little endian systems, swap the hi/lo registers after the lqarx
24541 (load_lockedpti): Use indexed_or_indirect_operand predicate to
24542 insure the address is valid for the lqarx instruction.
24543 (store_conditionalti): Insure that the address is a proper indexed
24544 or indirect address for the stqcrx. instruction. On little endian
24545 systems, swap the hi/lo registers before doing the stqcrx.
24547 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
24548 insure the address is valid for the stqcrx. instruction.
24550 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
24551 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
24552 type of quad memory support is available.
24554 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
24556 PR regression/59915
24557 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
24558 there is a danger of looping.
24560 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
24562 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24563 force flag_ira_loop_pressure if set via command line.
24565 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
24567 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
24568 (ashr_simd): New builtin handling DI mode.
24569 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
24570 (aarch64_sshr_simddi): New match pattern.
24571 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
24572 (vshrd_n_s64): Likewise.
24573 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
24575 2014-01-23 Nick Clifton <nickc@redhat.com>
24577 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
24578 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
24579 favour of mcu specific scripts.
24580 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
24583 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
24584 Alex Velenko <Alex.Velenko@arm.com>
24586 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
24587 (vaddv_s16): Likewise.
24588 (vaddv_s32): Likewise.
24589 (vaddv_u8): Likewise.
24590 (vaddv_u16): Likewise.
24591 (vaddv_u32): Likewise.
24592 (vaddvq_s8): Likewise.
24593 (vaddvq_s16): Likewise.
24594 (vaddvq_s32): Likewise.
24595 (vaddvq_s64): Likewise.
24596 (vaddvq_u8): Likewise.
24597 (vaddvq_u16): Likewise.
24598 (vaddvq_u32): Likewise.
24599 (vaddvq_u64): Likewise.
24600 (vaddv_f32): Likewise.
24601 (vaddvq_f32): Likewise.
24602 (vaddvq_f64): Likewise.
24603 (vmaxv_f32): Likewise.
24604 (vmaxv_s8): Likewise.
24605 (vmaxv_s16): Likewise.
24606 (vmaxv_s32): Likewise.
24607 (vmaxv_u8): Likewise.
24608 (vmaxv_u16): Likewise.
24609 (vmaxv_u32): Likewise.
24610 (vmaxvq_f32): Likewise.
24611 (vmaxvq_f64): Likewise.
24612 (vmaxvq_s8): Likewise.
24613 (vmaxvq_s16): Likewise.
24614 (vmaxvq_s32): Likewise.
24615 (vmaxvq_u8): Likewise.
24616 (vmaxvq_u16): Likewise.
24617 (vmaxvq_u32): Likewise.
24618 (vmaxnmv_f32): Likewise.
24619 (vmaxnmvq_f32): Likewise.
24620 (vmaxnmvq_f64): Likewise.
24621 (vminv_f32): Likewise.
24622 (vminv_s8): Likewise.
24623 (vminv_s16): Likewise.
24624 (vminv_s32): Likewise.
24625 (vminv_u8): Likewise.
24626 (vminv_u16): Likewise.
24627 (vminv_u32): Likewise.
24628 (vminvq_f32): Likewise.
24629 (vminvq_f64): Likewise.
24630 (vminvq_s8): Likewise.
24631 (vminvq_s16): Likewise.
24632 (vminvq_s32): Likewise.
24633 (vminvq_u8): Likewise.
24634 (vminvq_u16): Likewise.
24635 (vminvq_u32): Likewise.
24636 (vminnmv_f32): Likewise.
24637 (vminnmvq_f32): Likewise.
24638 (vminnmvq_f64): Likewise.
24640 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
24642 * config/aarch64/aarch64-simd.md
24643 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
24644 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
24645 (*aarch64_mul3_elt<mode>): Likewise.
24646 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
24647 (*aarch64_mul3_elt_to_64v2df): Likewise.
24648 (*aarch64_mla_elt<mode>): Likewise.
24649 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
24650 (*aarch64_mls_elt<mode>): Likewise.
24651 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
24652 (*aarch64_fma4_elt<mode>): Likewise.
24653 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
24654 (*aarch64_fma4_elt_to_64v2df): Likewise.
24655 (*aarch64_fnma4_elt<mode>): Likewise.
24656 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
24657 (*aarch64_fnma4_elt_to_64v2df): Likewise.
24658 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
24659 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
24660 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
24661 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
24662 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
24663 (aarch64_sqdmull_lane<mode>_internal): Likewise.
24664 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
24666 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
24668 * config/aarch64/aarch64-simd.md
24669 (aarch64_be_checked_get_lane<mode>): New define_expand.
24670 * config/aarch64/aarch64-simd-builtins.def
24671 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
24672 New builtin definition.
24673 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
24674 Use new safe be builtin.
24676 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
24678 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
24680 (aarch64_be_st1<mode>): Likewise.
24681 (aarch_ld1<VALL:mode>): Define_expand modified.
24682 (aarch_st1<VALL:mode>): Likewise.
24683 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
24684 (UNSPEC_ST1): Likewise.
24686 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
24688 * config/microblaze/microblaze.md: Add trap insn and attribute
24690 2014-01-23 Dodji Seketeli <dodji@redhat.com>
24692 PR preprocessor/58580
24693 * input.h (location_get_source_line): Take an additional line_size
24695 (void diagnostics_file_cache_fini): Declare new function.
24696 * input.c (struct fcache): New type.
24697 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
24698 New static constants.
24699 (diagnostic_file_cache_init, total_lines_num)
24700 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
24701 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
24702 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
24703 (get_next_line, read_next_line, goto_next_line, read_line_num):
24704 New static function definitions.
24705 (diagnostic_file_cache_fini): New function.
24706 (location_get_source_line): Take an additional output line_len
24707 parameter. Re-write using lookup_or_add_file_to_cache_tab and
24709 * diagnostic.c (diagnostic_finish): Call
24710 diagnostic_file_cache_fini.
24711 (adjust_line): Take an additional input parameter for the length
24712 of the line, rather than calculating it with strlen.
24713 (diagnostic_show_locus): Adjust the use of
24714 location_get_source_line and adjust_line with respect to their new
24715 signature. While displaying a line now, do not stop at the first
24716 null byte. Rather, display the zero byte as a space and keep
24717 going until we reach the size of the line.
24718 * Makefile.in: Add vec.o to OBJS-libcommon
24720 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
24721 Ilya Tocar <ilya.tocar@intel.com>
24723 * config/i386/avx512fintrin.h (_mm512_kmov): New.
24724 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
24725 (__builtin_ia32_kmov16): Ditto.
24726 * config/i386/i386.md (UNSPEC_KMOV): New.
24729 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
24731 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
24732 (_mm512_storeu_si512): Ditto.
24734 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
24737 * rtl.h (get_referenced_operands): Declare.
24738 * recog.c (get_referenced_operands): New function.
24739 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
24740 operands have been referenced when recording LO_SUM references.
24742 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
24744 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
24746 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
24748 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
24749 Enable for generic and recent AMD targets.
24751 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
24753 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
24754 ARG_SIZE note when adjustment was eliminated.
24756 2014-01-22 Jeff Law <law@redhat.com>
24758 PR tree-optimization/59597
24759 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
24760 in file. Accept new argument REGISTERING and use it to modify
24761 dump output appropriately.
24762 (register_jump_thread): Corresponding changes.
24763 (mark_threaded_blocks): Reinstate code to cancel unprofitable
24764 thread paths involving joiner blocks. Add code to dump cancelled
24765 jump threading paths.
24767 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
24769 PR rtl-optimization/59477
24770 * lra-constraints.c (inherit_in_ebb): Process call for living hard
24771 regs. Update reloads_num and potential_reload_hard_regs for all insns.
24773 2014-01-22 Tom Tromey <tromey@redhat.com>
24775 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
24777 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
24779 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
24781 PR rtl-optimization/59896
24782 * lra-constraints.c (process_alt_operands): Check unused note for
24783 matched operands of insn with no output reloads.
24785 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
24787 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
24788 (mips_move_from_gpr_cost): Likewise.
24790 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
24792 PR rtl-optimization/59858
24793 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
24794 ira_class_hard_regs_num.
24795 (process_alt_operands): Increase reject for dying matched operand.
24797 2014-01-21 Jakub Jelinek <jakub@redhat.com>
24800 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
24801 smaller than size, perform several stores or loads and stores
24802 at dst + count - size to store or copy all of size bytes, rather
24803 than just last modesize bytes.
24805 2014-01-20 DJ Delorie <dj@redhat.com>
24807 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
24808 that CLOBBERs are REGs before propogating their values.
24810 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
24812 PR middle-end/59789
24813 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
24814 (cgraph_inline_failed_type): New function.
24815 * cgraph.h (DEFCIFCODE): Add type.
24816 (cgraph_inline_failed_type_t): New enum.
24817 (cgraph_inline_failed_type): New prototype.
24818 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
24819 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
24820 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
24821 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
24822 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
24823 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
24824 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
24825 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
24826 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
24827 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
24828 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
24829 OPTIMIZATION_MISMATCH.
24830 * tree-inline.c (expand_call_inline): Emit errors during
24831 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
24833 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
24836 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
24837 mode attribute in insn output.
24839 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
24841 * output.h (output_constant): Delete.
24842 * varasm.c (output_constant): Make private.
24844 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
24846 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
24848 2014-01-20 Jakub Jelinek <jakub@redhat.com>
24850 PR middle-end/59860
24851 * tree.h (fold_builtin_strcat): New prototype.
24852 * builtins.c (fold_builtin_strcat): No longer static. Add len
24853 argument, if non-NULL, don't call c_strlen. Optimize
24854 directly into __builtin_memcpy instead of __builtin_strcpy.
24855 (fold_builtin_2): Adjust fold_builtin_strcat caller.
24856 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
24858 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
24860 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
24861 for SImode_address_operand operands, having only a REG argument.
24863 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
24865 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
24866 loader name using mbig-endian.
24867 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
24869 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
24871 * doc/invoke.texi (-march): Clarify documentation for AArch64.
24872 (-mtune): Likewise.
24875 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
24877 * config/aarch64/aarch64-protos.h
24878 (aarch64_cannot_change_mode_class_ptr): Declare.
24879 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
24880 aarch64_cannot_change_mode_class_ptr): New.
24881 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
24882 backend hook aarch64_cannot_change_mode_class.
24884 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
24886 * common/config/aarch64/aarch64-common.c
24887 (aarch64_handle_option): Don't handle any option order logic here.
24888 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
24889 selected_cpu, warn on architecture version mismatch.
24890 (aarch64_override_options): Fix parsing order for option strings.
24892 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24893 Iain Sandoe <iain@codesourcery.com>
24896 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
24897 warning. Amend comment to reflect current functionality.
24899 2014-01-20 Richard Biener <rguenther@suse.de>
24901 PR middle-end/59860
24902 * builtins.c (fold_builtin_strcat): Remove case better handled
24903 by tree-ssa-strlen.c.
24905 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
24907 * config/aarch64/aarch64.opt
24908 (mcpu, march, mtune): Make case-insensitive.
24910 2014-01-20 Jakub Jelinek <jakub@redhat.com>
24913 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
24914 if operands[1] is a REG or ZERO_EXTEND of a REG.
24916 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
24918 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
24920 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
24922 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
24923 long non-pic millicode calls.
24925 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24927 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
24929 2014-01-19 Kito Cheng <kito@0xlab.org>
24931 * builtins.c (expand_movstr): Check movstr expand done or fail.
24933 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
24934 H.J. Lu <hongjiu.lu@intel.com>
24937 * config/i386/i386.md (*lea<mode>): Zero-extend return register
24938 to DImode for zero-extended addresses.
24940 2014-01-19 Jakub Jelinek <jakub@redhat.com>
24942 PR rtl-optimization/57763
24943 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
24944 on the new indirect jump_insn and increment LABEL_NUSES (label).
24946 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
24950 * config.gcc (x86_archs): New variable.
24951 (x86_64_archs): Likewise.
24952 (x86_cpus): Likewise.
24953 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
24954 --with-arch/--with-cpu= options.
24955 Support --with-arch=/--with-cpu={nehalem,westmere,
24956 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
24958 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
24960 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
24961 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
24963 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
24965 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
24967 2014-01-18 Jakub Jelinek <jakub@redhat.com>
24970 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
24971 clear cpp_get_options (parse_in)->warn_unused_macros for
24972 ix86_target_macros_internal with cpp_define.
24974 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
24976 * jump.c (delete_related_insns): Keep (use (insn))s.
24977 * reorg.c (redundant_insn): Check for barriers too.
24979 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
24981 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
24983 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
24985 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
24986 call to $$dyncall when TARGET_LONG_CALLS is true.
24988 2014-01-17 Jeff Law <law@redhat.com>
24990 * ree.c (combine_set_extension): Temporarily disable test for
24991 changing number of hard registers.
24993 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
24995 PR middle-end/58125
24996 * ipa-inline-analysis.c (inline_free_summary):
24997 Do not free summary of aliases.
24999 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25001 PR middle-end/59706
25002 * gimplify.c (gimplify_expr): Use create_tmp_var
25003 instead of create_tmp_var_raw. If cond doesn't have
25004 integral type, don't add the IFN_ANNOTATE builtin at all.
25006 2014-01-17 Martin Jambor <mjambor@suse.cz>
25009 * ipa-cp.c (prev_edge_clone): New variable.
25010 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25011 Also resize prev_edge_clone vector.
25012 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25013 (ipcp_edge_removal_hook): New function.
25014 (ipcp_driver): Register ipcp_edge_removal_hook.
25016 2014-01-17 Andrew Pinski <apinski@cavium.com>
25017 Steve Ellcey <sellcey@mips.com>
25020 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25023 2014-01-17 Jeff Law <law@redhat.com>
25025 PR middle-end/57904
25026 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25027 so that pass_ccp runs first.
25029 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25031 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25032 (ix86_adjust_cost): Use !TARGET_XXX.
25033 (do_reorder_for_imul): Likewise.
25034 (swap_top_of_ready_list): Likewise.
25035 (ix86_sched_reorder): Likewise.
25037 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25039 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25040 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25041 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25042 (intel_memset): New. Duplicate slm_memset.
25043 (intel_cost): New. Duplicate slm_cost.
25044 (m_INTEL): New macro.
25045 (processor_target_table): Add "intel".
25046 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25047 with PROCESSOR_INTEL for "intel".
25048 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25049 PROCESSOR_SILVERMONT.
25050 (ix86_issue_rate): Likewise.
25051 (ix86_adjust_cost): Likewise.
25052 (ia32_multipass_dfa_lookahead): Likewise.
25053 (swap_top_of_ready_list): Likewise.
25054 (ix86_sched_reorder): Likewise.
25055 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25056 instead of TARGET_OPT_AGU.
25057 * config/i386/i386.h (TARGET_INTEL): New.
25058 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25059 (processor_type): Add PROCESSOR_INTEL.
25060 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25061 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25063 2014-01-17 Marek Polacek <polacek@redhat.com>
25066 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25069 2014-01-17 Richard Biener <rguenther@suse.de>
25071 PR tree-optimization/46590
25072 * opts.c (default_options_table): Add entries for
25073 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25074 all enabled at -O1 but not for -Og.
25075 * common.opt (fbranch-count-reg): Remove Init(1).
25076 (fmove-loop-invariants): Likewise.
25077 (ftree-pta): Likewise.
25079 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25081 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25082 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25083 decls to at least the GCC 4.8 used alignments.
25086 * tree-nested.c (convert_nonlocal_reference_stmt,
25087 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25088 of GIMPLE_BIND stmts, adjust associated decls.
25090 2014-01-17 Richard Biener <rguenther@suse.de>
25092 PR tree-optimization/46590
25093 * vec.h (vec<>::bseach): New member function implementing
25094 binary search according to C89 bsearch.
25095 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25096 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25097 bitmap pointer again. Make accesses_in_loop a flat array.
25098 (mem_ref_obstack): New global.
25099 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25100 (mark_ref_stored): Likewise.
25101 (ref_indep_loop_p_2): Likewise.
25102 (set_ref_stored_in_loop): New helper function.
25103 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25104 (memref_free): Adjust.
25105 (record_mem_ref_loc): Simplify.
25106 (gather_mem_refs_stmt): Adjust.
25107 (sort_locs_in_loop_postorder_cmp): New function.
25108 (analyze_memory_references): Sort accesses_in_loop after
25109 loop postorder number.
25110 (find_ref_loc_in_loop_cmp): New function.
25111 (for_all_locs_in_loop): Find relevant cluster of locs in
25112 accesses_in_loop and iterate without recursion.
25113 (execute_sm): Avoid uninit warning.
25114 (struct ref_always_accessed): Simplify.
25115 (ref_always_accessed::operator ()): Likewise.
25116 (ref_always_accessed_p): Likewise.
25117 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25118 loop postorder numbers here.
25119 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25122 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25125 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25126 on decls for which assemble_alias has been called.
25128 2014-01-17 Nick Clifton <nickc@redhat.com>
25130 * config/msp430/msp430.opt: (mcpu): New option.
25131 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25132 (msp430_option_override): Parse target_cpu. If the MCU name
25133 matches a generic string, clear target_mcu.
25134 (msp430_attr): Allow numeric interrupt values up to 63.
25135 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25136 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25138 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25140 * config/msp430/msp430.md (popm): Use %J rather than %I.
25141 (addsi3): Use msp430_nonimmediate_operand for operand 2.
25142 (addhi_cy_i): Use immediate_operand for operand 2.
25143 * doc/invoke.texi: Document -mcpu option.
25145 2014-01-17 Richard Biener <rguenther@suse.de>
25147 PR rtl-optimization/38518
25148 * df.h (df_analyze_loop): Declare.
25149 * df-core.c: Include cfgloop.h.
25150 (df_analyze_1): Split out main part of df_analyze.
25151 (df_analyze): Adjust.
25152 (loop_inverted_post_order_compute): New function.
25153 (loop_post_order_compute): Likewise.
25154 (df_analyze_loop): New function avoiding whole-function
25155 postorder computes.
25156 * loop-invariant.c (find_defs): Use df_analyze_loop.
25157 (find_invariants): Adjust.
25158 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
25160 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
25162 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
25163 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
25165 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25167 * ipa-ref.c (ipa_remove_stmt_references): Fix references
25168 traversal when removing references.
25170 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
25173 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
25175 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
25177 PR middle-end/56791
25178 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
25179 pushing a reload for an autoinc when we had previously reloaded an
25180 inner part of the address.
25182 2014-01-16 Jakub Jelinek <jakub@redhat.com>
25184 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
25186 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
25187 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
25188 when not giving up or versioning for alias only because of
25190 (vect_analyze_data_ref_dependences): Set to true.
25191 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
25193 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
25194 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
25197 PR middle-end/58344
25198 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
25201 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
25202 operand 0 predicate for gathers, use a new pseudo as subtarget.
25204 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25206 PR middle-end/59609
25207 * lra-constraints.c (process_alt_operands): Add printing debug info.
25208 Check absence of input/output reloads for matched operands too.
25210 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25212 PR rtl-optimization/59835
25213 * ira.c (ira_init_register_move_cost): Increase cost for
25216 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
25218 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
25220 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
25223 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
25224 non-register objects. Use gen_(high/low)part more consistently.
25227 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
25230 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
25231 endian support, remove tests for WORDS_BIG_ENDIAN.
25232 (p8_mfvsrd_3_<mode>): Likewise.
25233 (reload_gpr_from_vsx<mode>): Likewise.
25234 (reload_gpr_from_vsxsf): Likewise.
25235 (p8_mfvsrd_4_disf): Likewise.
25237 2014-01-16 Richard Biener <rguenther@suse.de>
25239 PR rtl-optimization/46590
25240 * lcm.c (compute_antinout_edge): Use postorder iteration.
25241 (compute_laterin): Use inverted postorder iteration.
25243 2014-01-16 Nick Clifton <nickc@redhat.com>
25245 PR middle-end/28865
25246 * varasm.c (output_constant): Return the number of bytes actually
25248 (output_constructor_array_range): Update the field size with the
25249 number of bytes emitted by output_constant.
25250 (output_constructor_regular_field): Likewise. Also do not
25251 complain if the total number of bytes emitted is now greater
25252 than the expected fieldpos.
25253 * output.h (output_constant): Update prototype and descriptive comment.
25255 2014-01-16 Marek Polacek <polacek@redhat.com>
25257 PR middle-end/59827
25258 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
25259 it is error_mark_node.
25261 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
25263 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
25264 VALID_AVX256_REG_OR_OI_MODE.
25266 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
25268 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
25269 current procedure should be profiled.
25271 2014-01-15 Andrew Pinski <apinski@cavium.com>
25273 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
25274 of moving from/to the STACK_REG register class.
25276 2014-01-15 Richard Henderson <rth@redhat.com>
25279 * reginfo.c (global_regs_decl): Globalize.
25280 * rtl.h (global_regs_decl): Declare.
25281 * ira.c (do_reload): Diagnose frame_pointer_needed and it
25282 reserved via global_regs.
25284 2014-01-15 Teresa Johnson <tejohnson@google.com>
25286 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
25288 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
25290 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
25291 and vmulosh rather than call gen_vec_widen_smult_*.
25292 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
25293 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
25294 (vec_widen_smult_even_v16qi): Likewise.
25295 (vec_widen_umult_even_v8hi): Likewise.
25296 (vec_widen_smult_even_v8hi): Likewise.
25297 (vec_widen_umult_odd_v16qi): Likewise.
25298 (vec_widen_smult_odd_v16qi): Likewise.
25299 (vec_widen_umult_odd_v8hi): Likewise.
25300 (vec_widen_smult_odd_v8hi): Likewise.
25301 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
25302 vmuloub rather than call gen_vec_widen_umult_*.
25303 (vec_widen_umult_lo_v16qi): Likewise.
25304 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
25305 vmulosb rather than call gen_vec_widen_smult_*.
25306 (vec_widen_smult_lo_v16qi): Likewise.
25307 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
25308 rather than call gen_vec_widen_umult_*.
25309 (vec_widen_umult_lo_v8hi): Likewise.
25310 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
25311 rather than call gen_vec_widen_smult_*.
25312 (vec_widen_smult_lo_v8hi): Likewise.
25314 2014-01-15 Jeff Law <law@redhat.com>
25316 PR tree-optimization/59747
25317 * ree.c (find_and_remove_re): Properly handle case where a second
25318 eliminated extension requires widening a copy created for elimination
25319 of a prior extension.
25320 (combine_set_extension): Ensure that the number of hard regs needed
25321 for a destination register does not change when we widen it.
25323 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
25325 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
25326 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
25327 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
25328 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
25329 (avr-*-rtems*): Likewise.
25330 (bfin*-rtems*): Likewise.
25331 (moxie-*-rtems*): Likewise.
25332 (h8300-*-rtems*): Likewise.
25333 (i[34567]86-*-rtems*): Likewise.
25334 (lm32-*-rtems*): Likewise.
25335 (m32r-*-rtems*): Likewise.
25336 (m68k-*-rtems*): Likewise.
25337 (microblaze*-*-rtems*): Likewise.
25338 (mips*-*-rtems*): Likewise.
25339 (powerpc-*-rtems*): Likewise.
25340 (sh-*-rtems*): Likewise.
25341 (sparc-*-rtems*): Likewise.
25342 (sparc64-*-rtems*): Likewise.
25343 (v850-*-rtems*): Likewise.
25344 (m32c-*-rtems*): Likewise.
25346 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
25348 PR rtl-optimization/59511
25349 * ira.c (ira_init_register_move_cost): Use memory costs for some
25350 cases of register move cost calculations.
25351 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
25352 instead of BB frequency.
25353 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
25354 * lra-assigns.c (find_hard_regno_for): Ditto.
25356 2014-01-15 Richard Biener <rguenther@suse.de>
25358 PR tree-optimization/59822
25359 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
25360 (vectorizable_load): Use it to hoist defs of uses of invariant
25361 loads out of the loop.
25363 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
25364 Kugan Vivekanandarajah <kuganv@linaro.org>
25367 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
25370 2014-01-15 Richard Biener <rguenther@suse.de>
25372 PR rtl-optimization/59802
25373 * lcm.c (compute_available): Use inverted postorder to seed
25374 the initial worklist.
25376 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25379 * config/s390/s390.c (s390_preferred_reload_class): Don't return
25380 ADDR_REGS for invalid symrefs in non-PIC code.
25382 2014-01-15 Jakub Jelinek <jakub@redhat.com>
25385 * builtins.c (determine_block_size): Initialize *probable_max_size
25386 even if len_rtx is CONST_INT.
25388 2014-01-14 Andrew Pinski <apinski@cavium.com>
25390 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
25391 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
25392 (cortexa53_tunings): Likewise.
25393 (aarch64_sched_issue_rate): New function.
25394 (TARGET_SCHED_ISSUE_RATE): Define.
25396 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25398 * ira-costs.c (find_costs_and_classes): Add missed
25399 ira_init_register_move_cost_if_necessary.
25401 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25404 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
25406 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
25409 * config/i386/i386.c (type_natural_mode): Add a bool parameter
25410 to indicate if type is used for function return value. Warn ABI
25411 change if the vector mode isn't available for function return value.
25412 (ix86_function_arg_advance): Pass false to type_natural_mode.
25413 (ix86_function_arg): Likewise.
25414 (ix86_gimplify_va_arg): Likewise.
25415 (function_arg_32): Don't warn ABI change.
25416 (ix86_function_value): Pass true to type_natural_mode.
25417 (ix86_return_in_memory): Likewise.
25418 (ix86_struct_value_rtx): Removed.
25419 (TARGET_STRUCT_VALUE_RTX): Likewise.
25421 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25423 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
25424 converting a conditional jump into a conditional return.
25426 2014-01-14 Richard Biener <rguenther@suse.de>
25428 PR tree-optimization/58921
25429 PR tree-optimization/59006
25430 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
25431 hoisting invariant stmts.
25432 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
25433 invariant loads on the preheader edge if possible.
25435 2014-01-14 Joey Ye <joey.ye@arm.com>
25437 * doc/plugin.texi (Building GCC plugins): Update to C++.
25439 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
25441 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
25442 (_mm_rcp28_round_ss): Ditto.
25443 (_mm_rsqrt28_round_sd): Ditto.
25444 (_mm_rsqrt28_round_ss): Ditto.
25445 (_mm_rcp28_sd): Ditto.
25446 (_mm_rcp28_ss): Ditto.
25447 (_mm_rsqrt28_sd): Ditto.
25448 (_mm_rsqrt28_ss): Ditto.
25449 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
25450 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
25451 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
25452 (IX86_BUILTIN_RCP28SD): Ditto.
25453 (IX86_BUILTIN_RCP28SS): Ditto.
25454 (IX86_BUILTIN_RSQRT28SD): Ditto.
25455 (IX86_BUILTIN_RSQRT28SS): Ditto.
25456 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
25457 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
25458 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
25459 (ix86_expand_special_args_builtin): Expand new FTYPE.
25460 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
25461 (srcp14<mode>): Make insn unary.
25462 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
25463 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
25464 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
25465 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
25466 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
25467 Fix rounding: make it SAE only.
25468 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
25470 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
25472 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
25473 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
25474 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
25475 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
25476 (round_saeonly_mask_scalar_operand4): Ditto.
25477 (round_saeonly_mask_scalar_op3): Ditto.
25478 (round_saeonly_mask_scalar_op4): Ditto.
25480 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25482 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25483 Implement -maltivec=be for vec_insert and vec_extract.
25485 2014-01-10 DJ Delorie <dj@redhat.com>
25487 * config/msp430/msp430.md (call_internal): Don't allow memory
25488 references with SP as the base register.
25489 (call_value_internal): Likewise.
25490 * config/msp430/constraints.md (Yc): New. For memory references
25491 that don't use SP as a base register.
25493 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
25494 "an integer without a # prefix"
25495 * config/msp430/msp430.md (epilogue_helper): Use it.
25497 2014-01-13 Jakub Jelinek <jakub@redhat.com>
25500 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
25501 AVX512F gather builtins.
25502 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
25503 on gather decls with INTEGER_TYPE masktype.
25504 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
25505 directly into the builtin rather than hoisting it before loop.
25507 PR tree-optimization/59387
25508 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
25509 (scev_const_prop): If folded_casts and type has undefined overflow,
25510 use force_gimple_operand instead of force_gimple_operand_gsi and
25511 for each added stmt if it is assign with
25512 arith_code_with_undefined_signed_overflow, call
25513 rewrite_to_defined_overflow.
25514 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
25515 gimple-fold.h instead.
25516 (arith_code_with_undefined_signed_overflow,
25517 rewrite_to_defined_overflow): Moved to ...
25518 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
25519 rewrite_to_defined_overflow): ... here. No longer static.
25520 Include gimplify-me.h.
25521 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
25522 rewrite_to_defined_overflow): New prototypes.
25524 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25526 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
25528 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
25530 * builtins.c (get_object_alignment_2): Minor tweak.
25531 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
25533 2014-01-13 Christian Bruel <christian.bruel@st.com>
25535 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
25536 optimized non constant lengths.
25538 2014-01-13 Jakub Jelinek <jakub@redhat.com>
25541 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
25542 load as __atomic_load_N if possible.
25544 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
25546 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
25548 (rs6000_expand_builtin): Adjust call.
25550 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
25553 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
25554 * config/rs6000/rs6000.c: Include target-globals.h.
25555 (rs6000_set_current_function): Instead of doing target_reinit
25556 unconditionally, use save_target_globals_default_opts and
25557 restore_target_globals.
25559 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
25561 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
25562 (rs6000_expand_builtin): Handle mffs and mtfsf.
25563 (rs6000_init_builtins): Define mffs and mtfsf.
25564 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
25565 (rs6000_mffs): New pattern.
25566 (rs6000_mtfsf): New pattern.
25568 2014-01-11 Bin Cheng <bin.cheng@arm.com>
25570 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
25571 Start narrowing with START. Apply candidate-use pair
25572 and check overall cost in narrowing.
25573 (iv_ca_prune): Pass new argument.
25575 2014-01-10 Jeff Law <law@redhat.com>
25577 PR middle-end/59743
25578 * ree.c (combine_reaching_defs): Ensure the defining statement
25579 occurs before the extension when optimizing extensions with
25580 different source and destination hard registers.
25582 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
25585 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
25586 vtables into the type inheritance graph.
25588 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25590 PR rtl-optimization/59754
25591 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
25592 modes in the REGNO != REGNO case.
25594 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25596 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
25598 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25600 PR tree-optimization/59745
25601 * tree-predcom.c (tree_predictive_commoning_loop): Call
25602 free_affine_expand_cache if giving up because components is NULL.
25604 * target-globals.c (save_target_globals): Allocate < 4KB structs using
25605 GC in payload of target_globals struct instead of allocating them on
25606 the heap and the larger structs separately using GC.
25607 * target-globals.h (struct target_globals): Make regs, hard_regs,
25608 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
25609 of GTY((skip)) and change type to void *.
25610 (reset_target_globals): Cast loads from those fields to corresponding
25613 2014-01-10 Steve Ellcey <sellcey@mips.com>
25616 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
25617 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
25618 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
25620 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
25623 * aarch64-modes.def (CC_Zmode): New flags mode.
25624 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
25625 represents an equality.
25626 (aarch64_get_condition_code): Handle CC_Zmode.
25627 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
25629 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25631 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
25632 extraction in good case.
25634 2014-01-10 Richard Biener <rguenther@suse.de>
25636 PR tree-optimization/59374
25637 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
25638 checking after SLP discovery. Mark stmts not participating
25639 in any SLP instance properly.
25641 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25643 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
25644 when handling a SET rtx.
25646 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25648 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
25649 (cortex-a57): Likewise.
25650 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
25652 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25654 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
25655 non-iwmmxt builtins.
25657 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
25661 * ipa-devirt.c record_target_from_binfo): Take as argument
25662 stack of binfos and lookup matching one for virtual inheritance.
25663 (possible_polymorphic_call_targets_1): Update.
25665 2014-01-10 Huacai Chen <chenhc@lemote.com>
25667 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
25668 kernel strings for Loongson-2E/2F/3A.
25670 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25672 PR middle-end/59670
25673 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
25674 is_gimple_call before calling gimple_call_internal_p.
25676 2014-01-09 Steve Ellcey <sellcey@mips.com>
25678 * Makefile.in (TREE_FLOW_H): Remove.
25679 (TREE_SSA_H): Add file names from tree-flow.h.
25680 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
25681 * tree.h: Remove tree-flow.h reference.
25682 * hash-table.h: Remove tree-flow.h reference.
25683 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
25684 reference with tree-ssa-loop.h.
25686 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25688 * doc/invoke.texi: Add -maltivec={be,le} options, and document
25689 default element-order behavior for -maltivec.
25690 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
25691 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
25692 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
25693 when targeting big endian, at least for now.
25694 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
25696 2014-01-09 Jakub Jelinek <jakub@redhat.com>
25698 PR middle-end/47735
25699 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
25700 var satisfies use_register_for_decl, just take into account type
25701 alignment, rather than decl alignment.
25703 PR tree-optimization/59622
25704 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
25705 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
25706 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
25707 Don't devirtualize for inplace at all. For targets.length () == 1,
25708 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
25710 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
25712 * config/i386/i386.md (cpu): Remove the unused btver1.
25714 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
25716 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
25718 2014-01-09 Jakub Jelinek <jakub@redhat.com>
25721 * tree-core.h (struct target_globals): New forward declaration.
25722 (struct tree_target_option): Add globals field.
25723 * tree.h (TREE_TARGET_GLOBALS): Define.
25724 (prepare_target_option_nodes_for_pch): New prototype.
25725 * target-globals.h (struct target_globals): Define even if
25726 !SWITCHABLE_TARGET.
25727 * tree.c (prepare_target_option_node_for_pch,
25728 prepare_target_option_nodes_for_pch): New functions.
25729 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
25730 * config/i386/i386.c: Include target-globals.h.
25731 (ix86_set_current_function): Instead of doing target_reinit
25732 unconditionally, use save_target_globals_default_opts and
25733 restore_target_globals.
25735 2014-01-09 Richard Biener <rguenther@suse.de>
25737 PR tree-optimization/59715
25738 * tree-cfg.h (split_critical_edges): Declare.
25739 * tree-cfg.c (split_critical_edges): Export.
25740 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
25742 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
25744 * cfgexpand.c (expand_stack_vars): Optionally disable
25745 asan stack protection.
25746 (expand_used_vars): Likewise.
25747 (partition_stack_vars): Likewise.
25748 * asan.c (asan_emit_stack_protection): Optionally disable
25749 after return stack usage.
25750 (instrument_derefs): Optionally disable memory access instrumentation.
25751 (instrument_builtin_call): Likewise.
25752 (instrument_strlen_call): Likewise.
25753 (asan_protect_global): Optionally disable global variables protection.
25754 * doc/invoke.texi: Added doc for new options.
25755 * params.def: Added new options.
25756 * params.h: Likewise.
25758 2014-01-09 Jakub Jelinek <jakub@redhat.com>
25760 PR rtl-optimization/59724
25761 * ifcvt.c (cond_exec_process_if_block): Don't call
25762 flow_find_head_matching_sequence with 0 longest_match.
25763 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
25764 non-active insns if !stop_after.
25765 (try_head_merge_bb): Revert 2014-01-07 changes.
25767 2014-01-08 Jeff Law <law@redhat.com>
25769 * ree.c (get_sub_rtx): New function, extracted from...
25770 (merge_def_and_ext): Here.
25771 (combine_reaching_defs): Use get_sub_rtx.
25773 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
25775 * cgraph.h (varpool_variable_node): Do not choke on null node.
25777 2014-01-08 Catherine Moore <clm@codesourcery.com>
25779 * config/mips/mips.md (simple_return): Attempt to use JRC
25781 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
25783 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
25785 PR rtl-optimization/59137
25786 * reorg.c (steal_delay_list_from_target): Call update_block for
25788 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
25790 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25792 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
25793 two duplicate entries.
25795 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
25798 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
25800 * config/mips/mips.c (mips_truncated_op_cost): New function.
25801 (mips_rtx_costs): Adjust test for BADDU.
25802 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
25804 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
25806 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
25807 (*baddu_si): ...this new pattern.
25809 2014-01-08 Jakub Jelinek <jakub@redhat.com>
25812 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
25814 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
25816 PR middle-end/57748
25817 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
25819 (expand_expr, expand_normal): Adjust.
25820 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
25821 inner_reference_p. Use inner_reference_p to expand inner references.
25822 (store_expr): Adjust.
25823 * cfgexpand.c (expand_call_stmt): Adjust.
25825 2014-01-08 Rong Xu <xur@google.com>
25827 * gcov-io.c (gcov_var): Move from gcov-io.h.
25828 (gcov_position): Ditto.
25829 (gcov_is_error): Ditto.
25830 (gcov_rewrite): Ditto.
25831 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
25832 only part to libgcc/libgcov.h.
25834 2014-01-08 Marek Polacek <polacek@redhat.com>
25836 PR middle-end/59669
25837 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
25839 2014-01-08 Marek Polacek <polacek@redhat.com>
25842 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
25844 2014-01-08 Jakub Jelinek <jakub@redhat.com>
25846 PR rtl-optimization/59649
25847 * stor-layout.c (get_mode_bounds): For BImode return
25848 0 and STORE_FLAG_VALUE.
25850 2014-01-08 Richard Biener <rguenther@suse.de>
25852 PR middle-end/59630
25853 * gimple.h (is_gimple_builtin_call): Remove.
25854 (gimple_builtin_call_types_compatible_p): New.
25855 (gimple_call_builtin_p): New overload.
25856 * gimple.c (is_gimple_builtin_call): Remove.
25857 (validate_call): Rename to ...
25858 (gimple_builtin_call_types_compatible_p): ... this and export. Also
25859 check return types.
25860 (validate_type): New static function.
25861 (gimple_call_builtin_p): New overload and adjust.
25862 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
25863 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
25864 (gimple_fold_stmt_to_constant_1): Likewise.
25865 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
25867 2014-01-08 Richard Biener <rguenther@suse.de>
25869 PR middle-end/59471
25870 * gimplify.c (gimplify_expr): Gimplify register-register type
25871 VIEW_CONVERT_EXPRs to separate stmts.
25873 2014-01-07 Jeff Law <law@redhat.com>
25875 PR middle-end/53623
25876 * ree.c (combine_set_extension): Handle case where source
25877 and destination registers in an extension insn are different.
25878 (combine_reaching_defs): Allow source and destination registers
25879 in extension to be different under limited circumstances.
25880 (add_removable_extension): Remove restriction that the
25881 source and destination registers in the extension are the same.
25882 (find_and_remove_re): Emit a copy from the extension's
25883 destination to its source after the defining insn if
25884 the source and destination registers are different.
25886 PR middle-end/59285
25887 * ifcvt.c (merge_if_block): If we are merging a block with more than
25888 one successor with a block with no successors, remove any BARRIER
25889 after the second block.
25891 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
25893 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
25895 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
25898 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
25899 for 14-bit register offsets when INT14_OK_STRICT is false.
25901 2014-01-07 Roland Stigge <stigge@antcom.de>
25902 Michael Meissner <meissner@linux.vnet.ibm.com>
25905 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
25906 Only check TFmode for SPE constants. Don't check TImode or TDmode.
25908 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
25910 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
25913 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
25915 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
25916 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
25917 rtx is const0_rtx or not.
25919 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
25922 * target-globals.c (save_target_globals): Remove this_fn_optab
25924 * toplev.c: Include optabs.h.
25925 (target_reinit): Temporarily restore the global options if another
25926 set of options are in force.
25928 2014-01-07 Jakub Jelinek <jakub@redhat.com>
25930 PR rtl-optimization/58668
25931 * cfgcleanup.c (flow_find_cross_jump): Don't count
25932 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
25933 to determine what is counted.
25934 (flow_find_head_matching_sequence): Use active_insn_p to determine
25936 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
25938 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
25939 determine what is counted.
25941 PR tree-optimization/59643
25942 * tree-predcom.c (split_data_refs_to_components): If one dr is
25943 read and one write, determine_offset fails and the write isn't
25944 in the bad component, just put the read into the bad component.
25946 2014-01-07 Mike Stump <mikestump@comcast.net>
25947 Jakub Jelinek <jakub@redhat.com>
25950 * tree-core.h (struct tree_optimization_option): Change optabs
25951 type from unsigned char * to void *.
25952 * optabs.c (init_tree_optimization_optabs): Adjust
25953 TREE_OPTIMIZATION_OPTABS initialization.
25955 2014-01-06 Jakub Jelinek <jakub@redhat.com>
25958 * config/i386/i386.h (struct machine_function): Add
25959 no_drap_save_restore field.
25960 * config/i386/i386.c (ix86_save_reg): Use
25961 !cfun->machine->no_drap_save_restore instead of
25962 crtl->stack_realign_needed.
25963 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
25964 this function clears frame_pointer_needed. Set
25965 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
25966 and DRAP reg is needed.
25968 2014-01-06 Marek Polacek <polacek@redhat.com>
25971 * doc/implement-c.texi: Mention that other integer types are
25972 permitted as bit-field types in strictly conforming mode.
25974 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
25976 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
25977 is newly allocated.
25979 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
25981 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
25983 2014-01-06 Martin Jambor <mjambor@suse.cz>
25986 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
25988 * ipa-prop.c (ipa_print_node_params): Fix indentation.
25990 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
25994 * var-tracking.c (add_stores): Preserve the value of the source even if
25995 we don't record the store.
25997 2014-01-06 Terry Guo <terry.guo@arm.com>
25999 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26001 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26004 * config/darwin.c (darwin_function_section): Adjust return values to
26005 correspond to optimisation changes made in r206070.
26007 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26009 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26010 from prefetch_block tune setting.
26011 (nocona_cost): Correct size of prefetch block to 64.
26013 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26015 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26016 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26017 used to save the static chain register in the computation of the offset
26018 from which the FP registers need to be restored.
26020 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26022 PR tree-optimization/59519
26023 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26024 ICE if get_current_def (current_new_name) is already non-NULL, as long
26025 as it is a phi result of some other phi in *new_exit_bb that has
26028 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26029 or vmovdqu* for misaligned_operand.
26030 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26031 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26032 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26033 aligned_mem for AVX512F masked aligned load and store builtins and for
26034 non-temporal moves.
26036 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26038 PR tree-optimization/59651
26039 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26040 Address range for negative step should be added by TYPE_SIZE_UNIT.
26042 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26044 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26045 overlapping registers also for registers other than the stack pointer.
26047 2014-01-03 Marek Polacek <polacek@redhat.com>
26050 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26053 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26056 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26059 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26060 (push splitter): Use <P:MODE_SIZE> instead of
26061 GET_MODE_SIZE (<P:MODE>mode).
26062 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26063 (mov -1, reg peephole2): Likewise.
26064 * config/i386/sse.md (*mov<mode>_internal,
26065 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26066 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26067 *<code><mode>3, *andnot<mode>3<mask_name>,
26068 <mask_codefor><code><mode>3<mask_name>): Likewise.
26069 * config/i386/subst.md (mask_mode512bit_condition,
26070 sd_mask_mode512bit_condition): Likewise.
26072 2014-01-02 Xinliang David Li <davidxl@google.com>
26074 PR tree-optimization/59303
26075 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26076 (dump_predicates): Better output format.
26077 (pred_equal_p): New function.
26078 (is_neq_relop_p): Ditto.
26079 (is_neq_zero_form_p): Ditto.
26080 (pred_expr_equal_p): Ditto.
26081 (pred_neg_p): Ditto.
26082 (simplify_pred): Ditto.
26083 (simplify_preds_2): Ditto.
26084 (simplify_preds_3): Ditto.
26085 (simplify_preds_4): Ditto.
26086 (simplify_preds): Ditto.
26087 (push_pred): Ditto.
26088 (push_to_worklist): Ditto.
26089 (get_pred_info_from_cmp): Ditto.
26090 (is_degenerated_phi): Ditto.
26091 (normalize_one_pred_1): Ditto.
26092 (normalize_one_pred): Ditto.
26093 (normalize_one_pred_chain): Ditto.
26094 (normalize_preds): Ditto.
26095 (normalize_cond_1): Remove function.
26096 (normalize_cond): Ditto.
26097 (is_gcond_subset_of): Ditto.
26098 (is_subset_of_any): Ditto.
26099 (is_or_set_subset_of): Ditto.
26100 (is_and_set_subset_of): Ditto.
26101 (is_norm_cond_subset_of): Ditto.
26102 (pred_chain_length_cmp): Ditto.
26103 (convert_control_dep_chain_into_preds): Type change.
26104 (find_predicates): Ditto.
26105 (find_def_preds): Ditto.
26106 (destroy_predicates_vecs): Ditto.
26107 (find_matching_predicates_in_rest_chains): Ditto.
26108 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26109 (is_pred_expr_subset): Ditto.
26110 (is_pred_chain_subset_of): Ditto.
26111 (is_included_in): Ditto.
26112 (is_superset_of): Ditto.
26114 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26116 Update copyright years.
26118 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26120 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26121 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26122 config/arc/arc.md, config/arc/arc.opt,
26123 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26124 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26125 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26126 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26127 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26128 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26129 vtable-verify.c, vtable-verify.h: Use the standard form for the
26132 2014-01-02 Tobias Burnus <burnus@net-b.de>
26134 * gcc.c (process_command): Update copyright notice dates.
26135 * gcov-dump.c: Ditto.
26137 * doc/cpp.texi: Bump @copying's copyright year.
26138 * doc/cppinternals.texi: Ditto.
26139 * doc/gcc.texi: Ditto.
26140 * doc/gccint.texi: Ditto.
26141 * doc/gcov.texi: Ditto.
26142 * doc/install.texi: Ditto.
26143 * doc/invoke.texi: Ditto.
26145 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26147 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26149 2014-01-01 Jakub Jelinek <jakub@redhat.com>
26151 * config/i386/sse.md (*mov<mode>_internal): Guard
26152 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26154 PR rtl-optimization/59647
26155 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26156 new_rtx into UNSIGNED_FLOAT rtxes.
26158 Copyright (C) 2014 Free Software Foundation, Inc.
26160 Copying and distribution of this file, with or without modification,
26161 are permitted in any medium without royalty provided the copyright
26162 notice and this notice are preserved.