1 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
4 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
6 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
7 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8 Anna Tikhonova <anna.tikhonova@intel.com>
9 Ilya Tocar <ilya.tocar@intel.com>
10 Andrey Turetskiy <andrey.turetskiy@intel.com>
11 Ilya Verbin <ilya.verbin@intel.com>
12 Kirill Yukhin <kirill.yukhin@intel.com>
13 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
17 Use `concat_tg_mode' attribute to determine asm register size.
19 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
20 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
21 Anna Tikhonova <anna.tikhonova@intel.com>
22 Ilya Tocar <ilya.tocar@intel.com>
23 Andrey Turetskiy <andrey.turetskiy@intel.com>
24 Ilya Verbin <ilya.verbin@intel.com>
25 Kirill Yukhin <kirill.yukhin@intel.com>
26 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
29 (define_mode_iterator VI48_AVX512VL): New.
30 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
31 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
32 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
33 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
34 with VI1): Change mode iterator.
35 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
36 with VI_ULOADSTORE_BW_AVX512VL): New.
37 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
38 with VI_ULOADSTORE_F_AVX512VL): Ditto.
39 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
40 with VI1): Change mode iterator.
41 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
42 with VI_ULOADSTORE_BW_AVX512VL): New.
43 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
44 with VI_ULOADSTORE_F_AVX512VL): Ditto.
45 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
46 with VI1): Change mode iterator.
47 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
48 with VI_ULOADSTORE_BW_AVX512VL): New.
49 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
50 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
51 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
52 (define_insn "<avx512>_storedqu<mode>_mask" with
54 (define_insn "<avx512>_storedqu<mode>_mask" with
55 VI12_AVX512VL): Ditto.
57 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
58 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
59 Anna Tikhonova <anna.tikhonova@intel.com>
60 Ilya Tocar <ilya.tocar@intel.com>
61 Andrey Turetskiy <andrey.turetskiy@intel.com>
62 Ilya Verbin <ilya.verbin@intel.com>
63 Kirill Yukhin <kirill.yukhin@intel.com>
64 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
67 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
68 (define_mode_iterator VI48_AVX512BW): New.
69 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
70 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
71 with VI48_AVX2_48_AVX512F): New.
72 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
73 with VI2_AVX512VL): Ditto.
75 2014-08-27 Richard Biener <rguenther@suse.de>
78 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
79 (fold_builtin_3): Do not fold strcat_chk here.
80 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
82 (gimple_fold_builtin): Fold strcat_chk here.
84 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
86 * dwarf2out.h (dwarf2out_decl): Remove prototype.
87 * dwarf2out.c (dwarf2out_decl): Make static.
89 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
91 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
93 2014-08-26 David Malcolm <dmalcolm@redhat.com>
95 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
96 from rtx to rtx_insn *.
97 (cselib_lookup_from_insn): Likewise for final param.
98 (cselib_subst_to_values_from_insn): Likewise.
99 (cselib_add_permanent_equiv): Likewise.
101 * cselib.c (cselib_current_insn): Likewise for this variable.
102 (cselib_subst_to_values_from_insn): Likewise for param "insn".
103 (cselib_lookup_from_insn): Likewise.
104 (cselib_add_permanent_equiv): Likewise for param "insn" and local
105 "save_cselib_current_insn".
106 (cselib_process_insn): Replace use of NULL_RTX with NULL.
108 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
109 from rtx to rtx_insn *.
111 2014-08-26 David Malcolm <dmalcolm@redhat.com>
113 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
116 2014-08-26 David Malcolm <dmalcolm@redhat.com>
118 * df.h (df_dump_insn_problem_function): Strengthen first param of
119 this callback from const_rtx to const rtx_insn *.
120 (struct df_insn_info): Strengthen field "insn" from rtx to
122 (DF_REF_INSN): Eliminate this function, reinstating the older
124 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
125 (df_reg_defined): Likewise.
126 (df_find_use): Likewise.
127 (df_reg_used): Likewise.
128 (df_dump_insn_top): Strengthen param 1 from const_rtx to
130 (df_dump_insn_bottom): Likewise.
131 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
132 (df_insn_debug_regno): Likewise.
133 (debug_df_insn): Likewise.
134 (df_rd_simulate_one_insn): Likewise for param 2.
135 (df_word_lr_simulate_defs): Likewise for param 1.
136 (df_word_lr_simulate_uses): Likewise.
137 (df_md_simulate_one_insn): Likewise for param 2.
138 (df_simulate_find_noclobber_defs): Likewise for param 1.
139 (df_simulate_find_defs): Likewise.
140 (df_simulate_defs): Likewise.
141 (df_simulate_uses): Likewise.
142 (df_simulate_one_insn_backwards): Likewise for param 2.
143 (df_simulate_one_insn_forwards): Likewise.
144 (df_uses_create): Likewise for param 2.
145 (df_insn_create_insn_record): Likewise for param 1.
146 (df_insn_delete): Likewise.
147 (df_insn_rescan): Likewise.
148 (df_insn_rescan_debug_internal): Likewise.
149 (df_insn_change_bb): Likewise.
150 (df_notes_rescan): Likewise.
151 * rtl.h (remove_death): Likewise for param 2.
152 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
154 * sched-int.h (reemit_notes): Strengthen param from rtx to
156 * valtrack.h (propagate_for_debug): Likewise for param 1.
158 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
159 local "tmp_rtx" from const_rtx to const rtx_insn *.
160 * combine.c (remove_death): Strengthen param "insn" from rtx to
162 (move_deaths): Likewise for local "where_dead".
163 * cse.c (delete_trivially_dead_insns): Introduce local
164 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
165 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
167 (df_reg_defined): Likewise.
168 (df_find_use): Likewise.
169 (df_reg_used): Likewise.
170 (df_dump_insn_problem_data): Strengthen param "insn" from
171 const_rtx to const rtx_insn *.
172 (df_dump_insn_top): Likewise.
173 (df_dump_insn_bottom): Likewise.
174 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
175 (df_insn_debug_regno): Likewise.
176 (debug_df_insn): Likewise.
177 (DF_REF_INSN): Delete.
178 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
179 from rtx to rtx_insn *.
180 (df_chain_insn_top_dump): Strengthen param "insn" from
181 const_rtx to const rtx_insn *.
182 (df_chain_insn_bottom_dump): Likewise.
183 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
185 (df_word_lr_simulate_uses): Likewise.
186 (df_print_note): Likewise.
187 (df_remove_dead_and_unused_notes): Likewise.
188 (df_set_unused_notes_for_mw): Likewise.
189 (df_set_dead_notes_for_mw): Likewise.
190 (df_create_unused_note): Likewise.
191 (df_simulate_find_defs): Likewise.
192 (df_simulate_find_uses): Likewise.
193 (df_simulate_find_noclobber_defs): Likewise.
194 (df_simulate_defs): Likewise.
195 (df_simulate_uses): Likewise.
196 (df_simulate_one_insn_backwards): Likewise.
197 (df_simulate_one_insn_forwards): Likewise.
198 (df_md_simulate_one_insn): Likewise.
199 * df-scan.c (df_uses_create): Likewise.
200 (df_insn_create_insn_record): Likewise.
201 (df_insn_delete): Likewise.
202 (df_insn_rescan): Likewise.
203 (df_insn_rescan_debug_internal): Likewise.
204 (df_insn_change_bb): Likewise.
205 (df_notes_rescan): Likewise.
206 (df_refs_add_to_chains): Likewise.
207 (df_insn_refs_verify): Likewise.
208 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
209 when invoking df_insn_delete.
210 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
211 (set_unique_reg_note): Add checked cast.
212 * final.c (cleanup_subreg_operands): Likewise.
213 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
214 "insn" from rtx to rtx_insn *.
215 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
216 "last" from rtx to rtx_insn *.
217 * ira-emit.c (change_regs_in_insn): New function.
218 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
219 Invoke change_regs_in_insn rather than change_regs.
220 * ira.c (update_equiv_regs): Strengthen locals "insn",
221 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
222 for_each_rtx_in_insn rather than for_each_rtx.
223 * recog.c (confirm_change_group): Add checked casts.
224 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
226 (peep2_fill_buffer): Add checked cast.
227 * rtlanal.c (remove_note): Likewise.
228 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
229 locals "next" "end" from rtx to rtx_insn *.
231 2014-08-26 David Malcolm <dmalcolm@redhat.com>
233 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
235 (struct reg_use_data): Likewise for field "insn".
236 (insn_cost): Likewise for param.
237 (real_insn_for_shadow): Likewise for return type and param.
238 (increase_insn_priority): Likewise for param 1.
239 (debug_dependencies): Likewise for both params.
241 * haifa-sched.c (insn_delay): Likewise for param "insn".
242 (real_insn_for_shadow): Likewise for return type and param "insn".
243 (update_insn_after_change): Likewise for param "insn".
244 (recompute_todo_spec): Likewise for param "next" and locals "pro",
246 (insn_cost): Likewise for param "insn".
247 (increase_insn_priority): Likewise.
248 (calculate_reg_deaths): Likewise.
249 (setup_insn_reg_pressure_info): Likewise.
250 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
251 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
252 (model_recompute): Likewise.
253 (must_restore_pattern_p): Likewise for param "next".
254 (model_excess_cost): Likewise for param "insn".
255 (queue_remove): Likewise.
256 (adjust_priority): Likewise for param "prev".
257 (update_register_pressure): Likewise for param "insn".
258 (setup_insn_max_reg_pressure): Likewise for local "insn".
259 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
260 (model_add_to_schedule): Likewise.
261 (model_reset_queue_indices): Likewise for local "insn".
262 (unschedule_insns_until): Strengthen local "recompute_vec" from
263 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
264 "con" from rtx to rtx_insn *.
265 (restore_last_backtrack_point): Likewise for both locals "x". Add
267 (estimate_insn_tick): Likewise for param "insn".
268 (commit_schedule): Likewise for params "prev_head", "tail" and
270 (verify_shadows): Likewise for locals "i1", "i2".
271 (dump_insn_stream): Likewise for params "head", "tail" and locals
273 (schedule_block): Likewise for locals "insn", "x". Add a checked
275 (fix_inter_tick): Likewise for params "head", "tail".
276 (create_check_block_twin): Likewise for local "jump".
277 (haifa_change_pattern): Likewise for param "insn".
278 (haifa_speculate_insn): Likewise.
279 (dump_new_block_header): Likewise for params "head", "tail".
280 (fix_jump_move): Likewise for param "jump".
281 (move_block_after_check): Likewise.
282 (sched_init_insn_luid): Likewise for param "insn".
283 (sched_init_luids): Likewise for local "insn".
284 (insn_luid): Likewise for param "insn".
285 (init_h_i_d): Likewise.
286 (haifa_init_h_i_d): Likewise for local "insn".
287 (haifa_init_insn): Likewise for param "insn".
288 * sched-deps.c (add_dependence): Likewise for local "real_pro",
290 (create_insn_reg_use): Likewise for param "insn".
291 (setup_insn_reg_uses): Likewise. Add a checked cast.
292 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
293 "tail" from rtx to rtx_insn *.
294 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
297 2014-08-26 David Malcolm <dmalcolm@redhat.com>
299 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
300 from rtx to rtx_insn *.
301 (model_add_to_schedule): Likewise for locals "start", "end",
304 2014-08-26 David Malcolm <dmalcolm@redhat.com>
306 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
308 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
309 "to" and locals "insn", "next", "copy". Remove now-redundant
312 2014-08-26 David Malcolm <dmalcolm@redhat.com>
314 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
315 rtx_insn * and param 4 from rtx * to rtx_insn **.
316 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
317 param 2 from rtx * to rtx_insn **.
319 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
320 rtx_insn * and final param from rtx * to rtx_insn **.
322 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
323 from rtx to rtx_insn *.
324 (try_head_merge_bb): Likewise for both locals named "move_upto".
325 * df-problems.c (can_move_insns_across): Likewise for params
326 "from", "to", "across_from", "across_to" and locals "insn",
327 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
329 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
330 from rtx to rtx_insn *.
331 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
332 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
333 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
335 (noce_try_abs): Likewise.
336 (noce_get_condition): Likewise for param "jump". Strengthen param
337 "earliest" from rtx * to rtx_insn **.
338 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
340 (find_cond_trap): Likewise.
341 (dead_or_predicable): Likewise for local "earliest".
342 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
344 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
345 and local "prev". Strengthen param "earliest" from rtx * to
347 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
348 Strengthen param "earliest" from rtx * to rtx_insn **.
350 2014-08-26 David Malcolm <dmalcolm@redhat.com>
352 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
353 "to" and local "insn" from rtx to rtx_insn *.
355 2014-08-26 David Malcolm <dmalcolm@redhat.com>
357 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
358 from rtx to rtx_insn *.
359 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
360 (code_motion_path_driver): Likewise for local "last_insn".
361 (simplify_changed_insns): Likewise for local "insn".
363 2014-08-26 David Malcolm <dmalcolm@redhat.com>
365 * rtl.h (push_to_sequence): Strengthen param from rtx to
367 (push_to_sequence2): Likewise for both params.
368 (delete_insns_since): Likewise for param.
369 (reorder_insns_nobb): Likewise for all three params.
370 (set_new_first_and_last_insn): Likewise for both params.
372 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
373 rtx_insn *. Remove now-redundant cast.
374 (set_last_insn): Likewise.
376 * builtins.c (expand_builtin_return): Strengthen local
377 "call_fusage" from rtx to rtx_insn *.
378 * cfgrtl.c (create_basic_block_structure): Likewise for local
380 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
381 "first", "last" and local "insn".
382 (delete_insns_since): Likewise for param "from".
383 (reorder_insns_nobb): Likewise for params "from", "to", "after"
385 (push_to_sequence): Likewise for param "first" and local "last".
386 (push_to_sequence2): Likewise for params "first" and "last".
387 * lra.c (emit_add3_insn): Likewise for local "last".
388 (lra_emit_add): Likewise.
389 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
391 (process_address_1): Likewise for locals "insn", last".
392 * modulo-sched.c (ps_first_note): Likewise for return type.
393 * optabs.c (expand_binop_directly): Likewise for param "last".
395 2014-08-26 David Malcolm <dmalcolm@redhat.com>
397 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
399 * emit-rtl.c (get_last_insn_anywhere): Likewise.
401 2014-08-26 David Malcolm <dmalcolm@redhat.com>
403 * function.h (struct sequence_stack): Strengthen fields "first"
404 and "last" from rtx to rtx_insn *.
405 (struct emit_status): Likewise for fields "x_first_insn" and
408 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
409 (set_first_insn): Add checked cast.
410 (get_last_insn): Remove now-redundant checked cast.
411 (set_last_insn): Add checked cast.
413 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
414 "saved_first" and "saved_last" from rtx to rtx_insn *.
416 2014-08-26 David Malcolm <dmalcolm@redhat.com>
418 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
419 (unlink_insn_chain): Strengthen both params from rtx to
422 * cfgrtl.c (cfg_layout_function_header): Likewise for this
424 (unlink_insn_chain): Likewise for params "first" and "last".
425 Remove now-redundant checked cast.
426 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
427 (fixup_reorder_chain): Strengthen local "insn" from rtx to
429 * emit-rtl.c (link_insn_into_chain): Likewise for all three
431 (add_insn): Likewise for param "insn" and local "prev".
432 (add_insn_after_nobb): Likewise for both params and local "next".
433 (add_insn_before_nobb): Likewise for both params and local "prev".
434 (add_insn_after): Rename param "after" to "uncast_after",
435 introducing local "after" with another checked cast.
436 (add_insn_before): Rename params "insn" and "before", giving them
437 "uncast_" prefixes, adding the old names back using checked casts.
438 (emit_note_after): Likewise for param "after".
439 (emit_note_before): Likewise for param "before".
440 (emit_label): Add a checked cast.
442 2014-08-26 David Malcolm <dmalcolm@redhat.com>
444 * cselib.h (cselib_record_sets_hook): Strengthen initial param
445 "insn" from rtx to rtx_insn *.
447 * cselib.c (cselib_record_sets_hook): Likewise.
449 * var-tracking.c (add_with_sets): Likewise, renaming back from
450 "uncast_insn" to "insn" and eliminating the checked cast from rtx
453 2014-08-26 David Malcolm <dmalcolm@redhat.com>
455 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
456 and "header_" from rtx to rtx_insn *.
457 (struct basic_block_d): Likewise for field "head_" within "x"
458 field of union basic_block_il_dependent.
459 (BB_HEAD): Drop function...
460 (SET_BB_HEAD): ...and this function in favor of...
461 (BB_HEAD): ...reinstate macro.
462 (BB_END): Drop function...
463 (SET_BB_END): ...and this function in favor of...
464 (BB_END): ...reinstate macro.
465 (BB_HEADER): Drop function...
466 (SET_BB_HEADER): ...and this function in favor of...
467 (BB_HEADER): ...reinstate macro.
469 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
470 (fix_crossing_unconditional_branches): Likewise.
471 * caller-save.c (save_call_clobbered_regs): Likewise.
472 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
473 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
474 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
475 (merge_blocks_move_successor_nojumps): Likewise.
476 (outgoing_edges_match): Update use of for_each_rtx to
477 for_each_rtx_in_insn.
478 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
479 (expand_gimple_cond): Likewise.
480 (expand_gimple_tailcall): Likewise.
481 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
483 (construct_exit_block): Drop use of SET_BB_END.
484 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
486 (delete_insn): Rename param "insn" to "uncast_insn", introducing
487 a new local "insn" with a checked cast to rtx_insn *. Drop use of
488 SET_BB_HEAD and SET_BB_END.
489 (create_basic_block_structure): Drop use of SET_BB_HEAD and
491 (rtl_delete_block): Drop use of SET_BB_HEAD.
492 (rtl_split_block): Drop use of SET_BB_END.
493 (emit_nop_for_unique_locus_between): Likewise.
494 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
495 (block_label): Drop use of SET_BB_HEAD.
496 (fixup_abnormal_edges): Drop use of SET_BB_END.
497 (record_effective_endpoints): Drop use of SET_BB_HEADER.
498 (relink_block_chain): Likewise.
499 (fixup_reorder_chain): Drop use of SET_BB_END.
500 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
501 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
502 rtx_insn **. Drop use of SET_BB_HEADER.
503 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
505 (BB_HEAD): Delete this function.
506 (SET_BB_HEAD): Likewise.
508 (SET_BB_END): Likewise.
509 (BB_HEADER): Likewise.
510 (SET_BB_HEADER): Likewise.
511 * emit-rtl.c (add_insn_after): Rename param "insn" to
512 "uncast_insn", adding a new local "insn" and a checked cast to
513 rtx_insn *. Drop use of SET_BB_END.
514 (remove_insn): Strengthen locals "next" and "prev" from rtx to
515 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
516 (reorder_insns): Drop use of SET_BB_END.
517 (emit_insn_after_1): Strengthen param "first" and locals "last",
518 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
519 (emit_pattern_after_noloc): Add checked cast.
520 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
521 (restore_other_notes): Likewise.
522 (move_insn): Likewise.
523 (sched_extend_bb): Likewise.
524 (fix_jump_move): Likewise.
525 * ifcvt.c (noce_process_if_block): Likewise.
526 (dead_or_predicable): Likewise.
527 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
528 * reg-stack.c (change_stack): Drop use of SET_BB_END.
529 * sel-sched-ir.c (sel_move_insn): Likewise.
530 * sel-sched.c (move_nop_to_previous_block): Likewise.
532 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
534 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
536 2014-08-26 David Malcolm <dmalcolm@redhat.com>
538 * basic-block.h (create_basic_block_structure): Strengthen params
539 1 "head" and 2 "end" from rtx to rtx_insn *.
540 * cfgrtl.c (create_basic_block_structure): Likewise.
541 (rtl_create_basic_block): Update casts from void * to rtx to
542 rtx_insn *, so that we can pass them as rtx_insn * to
543 create_basic_block_structure.
544 * sel-sched-ir.c (sel_create_basic_block): Likewise.
546 2014-08-26 David Malcolm <dmalcolm@redhat.com>
548 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
550 (check_for_inc_dec): Strengthen param "insn" from rtx to
553 * cselib.h (cselib_process_insn): Likewise.
555 * cselib.c (cselib_record_sets): Likewise.
556 (cselib_process_insn): Likewise.
558 * dse.c (struct insn_info): Likewise for field "insn".
559 (check_for_inc_dec_1): Likewise for local "insn".
560 (check_for_inc_dec): Likewise for param "insn".
561 (scan_insn): Likewise.
562 (dse_step1): Likewise for local "insn".
564 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
565 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
567 2014-08-26 David Malcolm <dmalcolm@redhat.com>
569 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
570 from rtx to rtx_insn *.
571 (DEP_PRO): Delete this function and...
572 (SET_DEP_PRO): ...this function in favor of...
573 (DEP_PRO): ...reinstate this macro.
574 (DEP_CON): Delete this function and...
575 (SET_DEP_CON): ...this function in favor of...
576 (DEP_CON): ...reinstate this old macro.
577 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
578 (init_dep): Likewise.
579 (set_priorities): Likewise for both params.
580 (sd_copy_back_deps): Likewise for params 1 and 2.
582 * haifa-sched.c (priority): Likewise for param "insn" and local
584 (set_priorities): Likewise for params "head" and "tail" and local
586 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
588 (add_to_speculative_block): Add a checked cast.
589 (create_check_block_twin): Drop use of SET_DEP_CON.
590 (add_jump_dependencies): Strengthen params "insn" and "jump" from
593 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
594 Drop use of SET_DEP_PRO
595 (init_dep): Strengthen params "pro" and "con" from rtx to
597 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
601 (SET_DEP_PRO): Delete.
602 (SET_DEP_CON): Delete.
604 2014-08-26 David Malcolm <dmalcolm@redhat.com>
606 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
607 from rtx to rtx_insn *.
608 (VINSN_INSN_RTX): Eliminate rvalue function and...
609 (SET_VINSN_INSN): ...lvalue function in favor of...
610 (VINSN_INSN_RTX): reinstate this old macro.
612 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
613 in favor of VINSN_INSN_RTX.
614 (VINSN_INSN_RTX): Delete this function.
615 (SET_VINSN_INSN_RTX): Likewise.
617 2014-08-26 David Malcolm <dmalcolm@redhat.com>
619 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
620 (BND_TO): Delete this function and...
621 (SET_BND_TO): ...this functions in favor of...
622 (BND_TO): ...reinstating this macro.
623 (struct _fence): Strengthen field "executing_insns" from
624 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
625 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
626 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
627 and param "insn" from rtx to insn_t.
628 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
631 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
633 (rtx_vec_t): Likewise.
634 (struct sched_deps_info_def): Strengthen param of "start_insn"
635 callback from rtx to rtx_insn *. Likewise for param "insn2" of
636 "note_mem_dep" callback and first param of "note_dep" callback.
638 * haifa-sched.c (add_to_speculative_block): Strengthen param
639 "insn" from rtx to rtx_insn *.
640 (clear_priorities): Likewise.
641 (calc_priorities): Likewise for local "insn".
643 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
644 Remove redundant checked cast.
645 (haifa_note_mem_dep): Likewise for param "pending_insn".
646 (haifa_note_dep): Likewise for param "elem".
647 (note_mem_dep): Likewise for param "e".
648 (sched_analyze_1): Add checked casts.
649 (sched_analyze_2): Likewise.
651 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
652 from rtx to rtx_insn *.
653 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
654 from vec<rtx> * to vec<rtx_insn *> *.
656 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
658 (flist_add): Strengthen param "executing_insns" from
659 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
660 (advance_deps_context): Remove now-redundant checked cast.
661 (init_fences): Replace uses of NULL_RTX with NULL.
662 (merge_fences): Strengthen params "last_scheduled_insn" and
663 "sched_next" from rtx to rtx_insn * and "executing_insns" from
664 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
665 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
666 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
667 an instruction, rather than doing double-duty as a pattern.
668 (return_nop_to_pool): Update for change of insn_t.
669 (deps_init_id): Remove now-redundant checked cast.
670 (struct sched_scan_info_def): Strengthen param of "init_insn"
671 callback from rtx to insn_t.
672 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
673 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
675 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
676 "end" from rtx to rtx_insn *.
677 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
678 (rtx insn_rtx, bool force_unique_p)
679 (BND_TO): Delete function.
680 (SET_BND_TO): Delete function.
682 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
684 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
685 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
687 (undo_transformations): Likewise for param "insn".
688 (update_liveness_on_insn): Likewise.
689 (compute_live_below_insn): Likewise for param "insn" and local
691 (update_data_sets): Likewise for param "insn".
692 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
693 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
694 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
696 (move_cond_jump): Likewise for param "insn".
697 (move_cond_jump): Drop use of SET_BND_TO.
698 (compute_av_set_on_boundaries): Likewise.
699 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
700 (update_and_record_unavailable_insns): Strengthen local "bb_end"
701 from rtx to rtx_insn *.
702 (maybe_emit_renaming_copy): Likewise for param "insn".
703 (maybe_emit_speculative_check): Likewise.
704 (handle_emitting_transformations): Likewise.
705 (remove_insn_from_stream): Likewise.
706 (code_motion_process_successors): Strengthen local "succ" from rtx
709 2014-08-26 David Malcolm <dmalcolm@redhat.com>
711 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
712 ilist_t, not _xlist_t;
713 (ILIST_INSN): Define in terms of new union field "insn".
714 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
716 (struct _list_node): Add new field "insn" to the union, of type
718 (ilist_add): Replace macro with an inline function, requiring an
720 (ilist_remove): Define this macro directly in terms of
721 _list_remove, rather than indirectly via _xlist_remove.
722 (ilist_clear): Likewise, in terms of _list_clear rather than
724 (ilist_is_in_p): Replace macro with an inline function, requiring
726 (_list_iter_cond_insn): New function.
727 (ilist_iter_remove): Define this macro directly in terms of
728 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
729 (ilist_iterator): Define directly in terms of _list_iterator
730 rather than indirectly through _xlist_iterator.
731 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
732 than in terms of _FOR_EACH_X.
733 (FOR_EACH_INSN_1): Likewise.
735 2014-08-26 Joseph Myers <joseph@codesourcery.com>
739 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
740 DECL_HARD_REGISTER and return for invalid register specifications.
741 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
742 DECL_HARD_REGISTER, call expand_one_error_var.
743 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
744 CC_REGNUM with non-MODE_CC modes.
745 (arm_regno_class): Return NO_REGS for PC_REGNUM.
747 2014-08-26 Marek Polacek <polacek@redhat.com>
750 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
752 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
754 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
755 qi cost; add di cost.
756 (cortexa57_addrcost_table): Likewise.
758 2014-08-26 Marek Polacek <polacek@redhat.com>
761 * expr.c (is_aligning_offset): Remove logical not.
763 2014-08-26 Marek Polacek <polacek@redhat.com>
766 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
767 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
769 2014-08-26 Richard Biener <rguenther@suse.de>
771 PR tree-optimization/62175
772 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
773 expand possibly trapping operations.
775 2014-08-26 David Malcolm <dmalcolm@redhat.com>
777 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
778 "insn" from rtx to rtx_insn *.
779 (permute_load): Likewise for param "insn".
780 (permute_store): Likewise.
781 (handle_special_swappables): Likewise for local "insn".
782 (replace_swap_with_copy): Likewise for locals "insn" and
784 (rs6000_analyze_swaps): Likewise for local "insn".
786 2014-08-25 David Malcolm <dmalcolm@redhat.com>
788 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
791 2014-08-25 David Malcolm <dmalcolm@redhat.com>
793 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
794 "note_list" from rtx to rtx_insn *.
795 (BB_NOTE_LIST): Replace this function and...
796 (SET_BB_NOTE_LIST): ...this function with...
797 (BB_NOTE_LIST): ...the former macro implementation.
799 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
800 local "from_start" from rtx to rtx_insn *. Strengthen param
801 "to_endp" from rtx * to rtx_insn **.
803 * haifa-sched.c (concat_note_lists): Likewise.
804 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
806 (sel_restore_notes): Likewise.
807 (move_bb_info): Likewise.
808 (BB_NOTE_LIST): Delete this function.
809 (SET_BB_NOTE_LIST): Delete this function.
810 * sel-sched.c (create_block_for_bookkeeping): Eliminate
811 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
813 2014-08-25 David Malcolm <dmalcolm@redhat.com>
815 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
816 from rtx * to rtx_insn **.
817 (reorder2): Likewise.
818 (dependencies_evaluation_hook): Strengthen params "head", "tail"
819 from rtx to rtx_insn *.
821 * doc/tm.texi: Update mechanically for above change to target.def.
823 * sched-int.h (note_list): Strengthen this variable from rtx to
825 (remove_notes): Likewise for both params.
826 (restore_other_notes): Likewise for return type and first param.
827 (struct ready_list): Strengthen field "vec" from rtx * to
829 (struct dep_replacement): Strenghten field "insn" from rtx to
831 (struct deps_desc): Likewise for fields "last_debug_insn",
833 (struct haifa_sched_info): Likewise for callback field
834 "can_schedule_ready_p"'s param, for first param of "new_ready"
835 callback field, for both params of "rank" callback field, for
836 first field of "print_insn" callback field (with a const), for
837 both params of "contributes_to_priority" callback, for param
838 of "insn_finishes_block_p" callback, for fields "prev_head",
839 "next_tail", "head", "tail", for first param of "add_remove_insn"
840 callback, for first param of "begin_schedule_ready" callback, for
841 both params of "begin_move_insn" callback, and for second param
842 of "advance_target_bb" callback.
843 (add_dependence): Likewise for params 1 and 2.
844 (sched_analyze): Likewise for params 2 and 3.
845 (deps_analyze_insn): Likewise for param 2.
846 (ready_element): Likewise for return type.
847 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
848 (try_ready): Strenghten param from rtx to rtx_insn *.
849 (sched_emit_insn): Likewise for return type.
850 (record_delay_slot_pair): Likewise for params 1 and 2.
851 (add_delay_dependencies): Likewise for param.
852 (contributes_to_priority): Likewise for both params.
853 (find_modifiable_mems): Likewise.
855 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
856 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
857 "first_older_only_insn" from rtx to rtx_insn *.
858 (arm_sched_reorder): Strengthen param "ready" from rtx * to
861 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
862 "last_scheduled_iter0" from rtx to rtx_insn *.
863 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
864 (c6x_sched_reorder_1): Strengthen param "ready" and locals
865 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
866 "insn" from rtx to rtx_insn *.
867 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
869 (c6x_sched_reorder2): Strengthen param "ready" and locals
870 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
871 "insn" from rtx to rtx_insn *.
872 (c6x_variable_issue): Add a checked cast when assigning from insn
873 to ss.last_scheduled_iter0.
874 (split_delayed_branch): Strengthen param "insn" and local "i1"
875 from rtx to rtx_insn *.
876 (split_delayed_nonbranch): Likewise.
877 (undo_split_delayed_nonbranch): Likewise for local "insn".
878 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
879 "entry_after", "end_packet", "head_insn", "tail_insn",
880 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
881 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
882 to rtx_insn **. Remove now-redundant checked cast on last_insn,
883 but add a checked cast on loop->start_label. Consolidate calls to
884 avoid assigning result of gen_spkernel to "insn", now an
887 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
888 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
890 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
891 rtx_insn **. Strengthen locals "top", "next" from rtx to
893 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
894 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
895 (add_parameter_dependencies): Strengthen params "call", "head" and
896 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
897 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
898 (add_dependee_for_func_arg): Likewise for param "arg" and local
900 (ix86_dependencies_evaluation_hook): Likewise for params "head",
901 "tail" and locals "insn", "first_arg".
903 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
904 for params "head", "tail" and locals "insn", "next", "next_tail".
905 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
906 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
907 "insn", "lowest", "highest" from rtx to rtx_insn *.
908 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
910 (ia64_sched_reorder2): Likewise.
912 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
913 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
914 from rtx * to rtx_insn **.
915 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
917 (mep_print_sched_insn): Strengthen param "insn" from rtx to
919 (mep_sched_reorder): Strengthen param "ready" from rtx * to
920 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
923 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
924 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
926 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
927 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
928 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
930 (vr4130_reorder): Likewise.
931 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
933 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
935 (mips_sched_reorder): Likewise.
936 (mips_sched_reorder2): Likewise.
938 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
940 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
941 Strengthen local "tmp" from rtx to rtx_insn *.
942 (rs6000_sched_reorder2): Likewise.
944 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
945 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
946 (s390_sched_reorder): Strengthen param "ready" from rtx * to
947 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
949 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
950 "tmp2" from rtx to rtx_insn *.
951 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
952 Strengthen local "insn" from rtx to rtx_insn *.
953 (ready_reorder): Strengthen param "ready" from rtx * to
954 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
955 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
956 (sh_reorder2): Likewise.
958 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
959 local "insn" from rtx to rtx_insn *.
961 * haifa-sched.c (note_list): Strengthen this variable from rtx to
963 (scheduled_insns): Strengthen this variable from vec<rtx> to
965 (set_modulo_params): Likewise for locals "i1", "i2".
966 (record_delay_slot_pair): Likewise for params "i1", "i2".
967 (add_delay_dependencies): Likewise for param "insn".
968 (cond_clobbered_p): Likewise.
969 (recompute_todo_spec): Likewise for local "prev".
970 (last_scheduled_insn): Likewise for this variable.
971 (nonscheduled_insns_begin): Likewise.
972 (model_set_excess_costs): Strengthen param "insns" from rtx * to
974 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
976 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
977 Strengthen local "insn" from rtx to rtx_insn *.
978 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
979 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
980 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
981 (ready_remove_first): Likewise for return type and local "t".
982 (ready_element): Likewise for return type.
983 (ready_remove): Likewise for return type and local "t".
984 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
985 (check_clobbered_conditions): Strengthen local "x" from rtx to
986 rtx_insn *, adding a checked cast.
987 (schedule_insn): Likewise for param "insn".
988 (remove_notes): Likewise for params "head", "tail" and locals
989 "next_tail", "insn", "next".
990 (struct haifa_saved_data): Likewise for fields
991 "last_scheduled_insn", "nonscheduled_insns_begin".
992 (save_backtrack_point): Update for change to field "vec" of
994 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
996 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
997 from rtx to rtx_insn *
998 (resolve_dependencies): Strengthen param "insn" from rtx to
1000 (restore_other_notes): Likewise for return type, for param "head"
1001 and local "note_head".
1002 (undo_all_replacements): Likewise for local "insn".
1003 (first_nonscheduled_insn): Likewise for return type and local "insn".
1004 (queue_to_ready): Likewise for local "insn", adding checked casts.
1005 (early_queue_to_ready): Likewise for local "insn".
1006 (debug_ready_list_1): Strengthen local "p" from rtx * to
1008 (move_insn): Strengthen param "insn" and local "note" from rtx to
1010 (insn_finishes_cycle_p): Likewise for param "insn".
1011 (max_issue): Likewise for local "insn".
1012 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1014 (commit_schedule): Strengthen param "prev_head" and local "insn"
1015 from rtx to rtx_insn *
1016 (prune_ready_list): Likewise for local "insn".
1017 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1018 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1019 (set_priorities): Likewise for local "prev_head".
1020 (try_ready): Likewise for param "next".
1021 (fix_tick_ready): Likewise.
1022 (change_queue_index): Likewise.
1023 (sched_extend_ready_list): Update for change to field "vec" of
1025 (generate_recovery_code): Strengthen param "insn" from rtx to
1027 (begin_speculative_block): Likewise.
1028 (create_check_block_twin): Likewise for param "insn" and locals
1029 "label", "check", "twin". Introduce local "check_pat" to avoid
1030 "check" being used as a plain rtx before being used as an insn.
1031 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1032 extracting elements from ready_list.
1033 (sched_remove_insn): Strengthen param "insn" from rtx to
1035 (sched_emit_insn): Likewise for return type.
1036 (ready_remove_first_dispatch): Likewise for return type and local
1039 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1041 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1044 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1045 from rtx to rtx_insn *.
1046 (add_dependence_list): Likewise for param "insn". Add a checked
1048 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1049 to rtx_insn *. Strengthen param "list_p" from rtx * to
1051 (chain_to_prev_insn): Strengthen param "insn" and locals
1052 "prec_nonnote", "i" from rtx to rtx_insn *.
1053 (flush_pending_lists): Likewise for param "insn".
1054 (cur_insn): Likewise for this variable.
1055 (haifa_start_insn): Add a checked cast.
1056 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1057 (sched_analyze_reg): Likewise for param "insn".
1058 (sched_analyze_1): Likewise.
1059 (sched_analyze_2): Likewise. Add checked casts.
1060 (sched_analyze_insn): Likewise. Also for local "prev".
1061 (deps_analyze_insn): Likewise for param "insn".
1062 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1063 (add_dependence_1): Likewise for params "insn", "elem".
1064 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1065 (parse_add_or_inc): Likewise for param "insn".
1066 (find_inc): Likewise for local "inc_cand".
1067 (find_modifiable_mems): Likewise for params "head", "tail" and
1068 locals "insn", "next_tail".
1070 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1071 (begin_schedule_ready): Likewise for param "insn".
1072 (begin_move_insn): Likewise for params "insn" and "last".
1073 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1075 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1076 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1077 (ebb_add_remove_insn): Likewise for param "insn".
1078 (advance_target_bb): Likewise.
1080 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1082 (check_live): Likewise for param "insn".
1083 (init_ready_list): Likewise for local "insn".
1084 (can_schedule_ready_p): Likewise for param "insn".
1085 (begin_schedule_ready): Likewise.
1086 (new_ready): Likewise for param "next".
1087 (rgn_print_insn): Likewise for param "insn".
1088 (rgn_rank): Likewise for params "insn1", "insn2".
1089 (contributes_to_priority): Likewise for params "next", "insn".
1090 (rgn_insn_finishes_block_p): Likewise for param "insn".
1091 (add_branch_dependences): Likewise for params "head", "tail" and
1092 locals "insn", "last".
1093 (rgn_add_remove_insn): Likewise for param "insn".
1094 (advance_target_bb): Likewise.
1096 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1097 const_rtx to const rtx_insn *.
1099 * sel-sched-dump.h (sel_print_insn): Likewise.
1101 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1102 (deps_init_id): Likewise.
1104 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1105 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1108 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1110 * output.h (final_start_function): Strengthen param 1 from rtx to
1113 * final.c (final_start_function): Likewise, renaming back from
1114 "uncast_first" to "first", and dropping the checked cast from rtx
1117 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1119 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1120 * final.c (final): Likewise. Rename param back from
1121 "uncast_first" to "first" and eliminate the checked cast from rtx
1124 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1126 * output.h (shorten_branches): Strengthen param from rtx to
1129 * final.c (shorten_branches): Likewise, renaming param back from
1130 "uncast_first" to "first", and dropping the checked cast from rtx
1133 * genattr.c (gen_attr): Likewise when writing out the prototype of
1136 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1138 * sched-int.h (struct haifa_sched_info): Strengthen fields
1139 "prev_head" and "next_tail" from rtx to rtx_insn *.
1141 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1143 * rtl.h (rtx_jump_table_data::get_labels): New method.
1144 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1145 with use of the new rtx_jump_table_data::get_labels method.
1146 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1147 to rtx_jump_table_data *. Simplify by using get_labels method.
1148 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1149 a dyn_cast, introducing local "table", using it to replace
1150 label-lookup logic with a get_labels method call.
1151 (patch_jump_insn): Simplify using get_labels method.
1152 * dwarf2cfi.c (create_trace_edges): Likewise.
1153 * rtlanal.c (label_is_jump_target_p): Likewise.
1155 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1157 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1160 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1161 (unshare_all_rtl_again): Likewise, also for local "p".
1163 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1165 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1167 * cfgrtl.c (delete_insn_and_edges): Likewise.
1169 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1171 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1172 from rtx to rtx_insn *.
1174 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1176 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1178 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1179 locals "returnjump", "epilogue_end", "insn", "next".
1181 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1182 "returnjump" from rtx * to rtx_insn **.
1183 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1185 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1187 * basic-block.h (struct edge_def). Strengthen "r" within
1188 union edge_def_insns from rtx to rtx_insn *.
1190 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1191 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1193 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1194 from rtx to rtx_insn *.
1195 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1197 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1198 (reg_used_on_edge): Likewise.
1199 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1200 (gt_pch_nx): New overload for rtx_insn *&.
1201 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1202 from rtx to rtx_insn *.
1204 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1206 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1207 from rtx to rtx_insn *.
1208 (BB_FOOTER): Replace function with access macro.
1209 (SET_BB_FOOTER): Delete.
1211 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1213 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1214 (emit_barrier_after_bb): Likewise.
1215 (record_effective_endpoints): Likewise.
1216 (relink_block_chain): Likewise.
1217 (fixup_fallthru_exit_predecessor): Likewise.
1218 (cfg_layout_duplicate_bb): Likewise.
1219 (cfg_layout_split_block): Likewise.
1220 (cfg_layout_delete_block): Likewise.
1221 (cfg_layout_merge_blocks): Likewise.
1222 (BB_FOOTER): Delete function.
1223 (SET_BB_FOOTER): Delete function.
1224 * combine.c (update_cfg_for_uncondjump): Replace uses of
1225 SET_BB_FOOTER with BB_FOOTER.
1227 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1229 * except.h (struct eh_landing_pad_d): Strengthen field
1230 "landing_pad" from rtx to rtx_code_label *.
1232 * except.c (sjlj_emit_dispatch_table): Likewise for param
1234 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1236 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1238 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1239 first param from rtx to rtx_insn *.
1240 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1241 field "set_frame_ptr_insn".
1242 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1243 "csend" from rtx to rtx_code_label *.
1244 (xtensa_expand_atomic): Likewise for local "csloop".
1245 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1247 (xtensa_call_tls_desc): Likewise for return type and locals
1248 "call_insn", "insns".
1249 (xtensa_legitimize_tls_address): Likewise for local "insns".
1250 (xtensa_expand_prologue): Likewise for locals "insn", "first".
1252 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1254 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1255 first param from rtx to rtx_insn *.
1256 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1259 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1261 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1262 Strengthen param 1 from rtx to rtx_insn *.
1263 (tilepro_output_cbranch): Likewise.
1264 (tilepro_adjust_insn_length): Likewise.
1265 (tilepro_final_prescan_insn): Likewise for sole param.
1267 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1268 Likewise for local "last".
1269 (cbranch_predicted_p): Likewise for param "insn".
1270 (tilepro_output_simple_cbranch_with_opcode): Likewise.
1271 (tilepro_output_cbranch_with_opcode): Likewise.
1272 (tilepro_output_cbranch): Likewise.
1273 (frame_emit_load): Likewise for return type and locals "seq",
1275 (emit_sp_adjust): Likewise for return type and local "insn".
1276 (tilepro_expand_epilogue): Likewise for locals "last_insn",
1278 (tilepro_adjust_insn_length): Likewise for param "insn".
1279 (next_insn_to_bundle): Likewise for return type and params
1281 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
1282 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
1284 (match_addli_pcrel): Likewise for param "insn".
1285 (replace_addli_pcrel): Likewise.
1286 (match_auli_pcrel): Likewise.
1287 (replace_auli_pcrel): Likewise.
1288 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
1290 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1291 "queue", "next_queue", "prev".
1292 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
1293 (tilepro_final_prescan_insn): Likewise for param "insn".
1295 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1297 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
1298 Strengthen param 1 from rtx to rtx_insn *.
1299 (tilegx_output_cbranch): Likewise.
1300 (tilegx_adjust_insn_length): Likewise.
1301 (tilegx_final_prescan_insn): Likewise for sole param.
1303 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
1305 (cbranch_predicted_p): Likewise for param "insn".
1306 (tilegx_output_simple_cbranch_with_opcode): Likewise.
1307 (tilegx_output_cbranch_with_opcode): Likewise.
1308 (tilegx_output_cbranch): Likewise.
1309 (frame_emit_load): Likewise for return type.
1310 (set_frame_related_p): Likewise for locals "seq", "insn".
1311 (emit_sp_adjust): Likewise for return type, and for local "insn".
1312 Introduce local "pat" for use in place of "insn" where the latter
1313 isn't an instruction.
1314 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
1315 from rtx to rtx_insn *.
1316 (tilegx_adjust_insn_length): Likewise for param "insn".
1317 (next_insn_to_bundle): Likewise for return type and params "r" and
1319 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
1321 (replace_insns): Likewise for params "old_insn", "new_insns".
1322 (replace_mov_pcrel_step1): Likewise for param "insn" and local
1324 (replace_mov_pcrel_step2): Likewise.
1325 (replace_mov_pcrel_step3): Likewise.
1326 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
1328 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1329 "queue", "next_queue", "prev".
1330 (tilegx_output_mi_thunk): Likewise for local "insn".
1331 (tilegx_final_prescan_insn): Likewise for param "insn".
1333 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1335 * config/spu/spu.c (frame_emit_store): Strengthen return type from
1337 (frame_emit_load): Likewise.
1338 (frame_emit_add_imm): Likewise, also for local "insn".
1339 (spu_expand_prologue): Likewise for local "insn".
1340 (struct spu_bb_info): Likewise for field "prop_jump".
1341 (emit_nop_for_insn): Likewise for param "insn" and local
1343 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
1345 (spu_emit_branch_hint): Likewise for params "before", "branch" and
1346 locals "hint", "insn".
1347 (get_branch_target): Likewise for param "branch".
1348 (insn_clobbers_hbr): Likewise for param "insn".
1349 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
1350 locals "insn", "before_4", "before_16".
1351 (insert_hbrp): Likewise for local "insn".
1352 (spu_machine_dependent_reorg): Likewise for locals "branch",
1353 "insn", "next", "bbend".
1354 (uses_ls_unit): Likewise for param "insn".
1355 (get_pipe): Likewise.
1356 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
1357 introducing a checked cast.
1358 (spu_sched_adjust_cost): Likewise for params "insn" and
1360 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
1361 (spu_sms_res_mii): Likewise.
1363 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1365 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
1366 from rtx to rtx_insn *.
1367 (output_cbranch): Likewise for param 6.
1368 (output_return): Likewise for param 1.
1369 (output_sibcall): Likewise.
1370 (output_v8plus_shift): Likewise.
1371 (output_v8plus_mult): Likewise.
1372 (output_v9branch): Likewise for param 7.
1373 (output_cbcond): Likewise for param 3.
1375 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
1377 (sparc_legitimize_pic_address): Likewise.
1378 (sparc_emit_call_insn): Likewise.
1379 (emit_save_or_restore_regs): Likewise.
1380 (emit_window_save): Likewise for return type and local "insn".
1381 (sparc_expand_prologue): Likewise for local "insn".
1382 (sparc_flat_expand_prologue): Likewise.
1383 (output_return): Likewise for param "insn".
1384 (output_sibcall): Likewise for param "insn" and local "delay".
1385 (output_ubranch): Likewise for param "insn".
1386 (output_cbranch): Likewise.
1387 (output_cbcond): Likewise.
1388 (output_v9branch): Likewise.
1389 (output_v8plus_shift): Likewise.
1390 (sparc_output_mi_thunk): Likewise for local "insn".
1391 (get_some_local_dynamic_name): Likewise.
1392 (output_v8plus_mult): Likewise for param "insn".
1394 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1396 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
1397 from rtx to rtx_insn *.
1398 (output_branchy_insn): Likewise for param 3.
1399 (output_far_jump): Likewise for param 1.
1400 (final_prescan_insn): Likewise.
1401 (sh_insn_length_adjustment): Likewise for sole param.
1403 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
1404 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
1406 (sh_emit_compare_and_set): Likewise for local "lab".
1407 (output_far_jump): Strengthen param "insn" and local "prev" from
1409 (output_branchy_insn): Likewise for param "insn" and local
1411 (output_ieee_ccmpeq): Likewise for param "insn".
1412 (struct label_ref_list_d): Strengthen field "label" from rtx to
1414 (pool_node): Likewise.
1415 (pool_window_label): Likewise for this global.
1416 (add_constant): Likewise for return type and locals "lab", "new_rtx".
1417 (dump_table): Strengthen params "start", "barrier" and local
1418 "scan" from rtx to rtx_insn *.
1419 (broken_move): Likewise for param "insn".
1420 (untangle_mova): Likewise for params "first_mova" and "new_mova".
1421 Strengthen param "first_mova" from rtx * to rtx_insn **.
1422 (mova_p): Likewise for param "insn".
1423 (fixup_mova): Likewise for param "mova".
1424 (find_barrier): Likewise for return type, params "mova" and
1425 "from", and locals "barrier_before_mova", "found_barrier",
1426 "good_barrier", "orig", "last_symoff", "next". Strengthen local
1427 "label" from rtx to rtx_code_label *.
1428 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
1430 (sh_reorg): Likewise for locals "link", "scan", "barrier".
1431 (split_branches): Likewise for param "first" and local "insn".
1432 (final_prescan_insn): Likewise for param "insn".
1433 (sequence_insn_p): Likewise for locals "prev", "next".
1434 (sh_insn_length_adjustment): Likewise for param "insn".
1435 (sh_can_redirect_branch): Likewise for local "insn".
1436 (find_r0_life_regions): Likewise for locals "end", "insn".
1437 (sh_output_mi_thunk): Likewise for local "insns".
1439 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1441 * config/score/score.c (score_output_mi_thunk): Strengthen local
1442 "insn" from rtx to rtx_insn *.
1443 (score_prologue): Likewise.
1445 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1447 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
1448 1 from rtx to rtx_insn *.
1449 (s390_emit_jump): Likewise for return type.
1450 (s390_emit_call): Likewise.
1451 (s390_load_got): Likewise.
1453 * config/s390/s390.c (last_scheduled_insn): Likewise for this
1455 (s390_match_ccmode): Likewise for param "insn".
1456 (s390_emit_jump): Likewise for return type.
1457 (s390_split_branches): Likewise for local "label".
1458 (struct constant): Strengthen field "label" from rtx to
1460 (struct constant_pool): Likewise for field "label". Strengthen
1461 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
1463 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
1465 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
1466 (s390_end_pool): Likewise.
1467 (s390_dump_pool): Likewise for local "insn".
1468 (s390_mainpool_start): Likewise.
1469 (s390_chunkify_start): Likewise.
1470 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
1471 with insns. Strengthen locals "label", "jump", "barrier", "next",
1472 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
1473 (s390_chunkify_finish): Strengthen local "insn" from rtx to
1475 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
1476 "jump", "label", "next_insn".
1477 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
1478 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
1480 (s390_load_got): Likewise for return type and local "insns".
1481 (s390_save_gprs_to_fprs): Likewise for local "insn".
1482 (s390_restore_gprs_from_fprs): Likewise.
1483 (pass_s390_early_mach::execute): Likewise.
1484 (s390_emit_prologue): Likewise for local "insns".
1485 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
1487 (s390_emit_call): Strengthen return type and local "insn" from
1489 (s390_emit_tpf_eh_return): Likewise for local "insn".
1490 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
1491 "next_insn", introducing locals "s_pat", "rpat" to allow this.
1492 (s390_fix_long_loop_prediction): Likewise for param "insn" and
1494 (s390_non_addr_reg_read_p): Likewise for param "insn".
1495 (find_cond_jump): Likewise for return type and param "insn".
1496 (s390_swap_cmp): Likewise for param "insn".
1497 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
1498 "prev_insn", "next_insn".
1499 (s390_reorg): Likewise for locals "insn", "target".
1500 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
1501 (s390_sched_variable_issue): For now, rename param "insn" to
1502 "uncast_insn", introducing a checked cast.
1503 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
1505 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
1506 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
1508 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1510 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
1511 param from rtx to rtx_insn *.
1512 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
1514 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1516 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
1517 4 from rtx to rtx_insn *.
1518 (rs6000_final_prescan_insn): Likewise for first param.
1519 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
1521 (rs6000_get_some_local_dynamic_name): Likewise.
1522 (output_cbranch): Likewise for param "insn".
1523 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
1524 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
1525 (rs6000_emit_allocate_stack): Likewise for local "insn".
1526 (load_cr_save): Likewise.
1527 (restore_saved_cr): Likewise.
1528 (restore_saved_lr): Likewise.
1529 (emit_cfa_restores): Likewise.
1530 (rs6000_output_function_epilogue): Likewise for locals "insn" and
1531 "deleted_debug_label".
1532 (rs6000_output_mi_thunk): Likewise for local "insn".
1533 (rs6000_final_prescan_insn): Likewise for param "insn".
1535 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1537 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
1538 Strengthen param "insn" from rtx to rtx_insn *.
1539 * config/picochip/picochip.c (picochip_current_prescan_insn):
1540 Likewise for this variable.
1541 (picochip_final_prescan_insn): Likewise for param "insn".
1543 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1545 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
1546 from rtx to rtx_insn *.
1547 (pa_output_indirect_call): Likewise.
1548 (pa_adjust_insn_length): Likewise.
1549 (pa_attr_length_millicode_call): Likewise.
1550 (pa_attr_length_call): Likewise.
1551 (pa_attr_length_indirect_call): Likewise.
1553 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
1555 (pa_attr_length_millicode_call): Likewise.
1556 (pa_attr_length_call): Likewise.
1557 (pa_output_call): Likewise.
1558 (pa_attr_length_indirect_call): Likewise.
1559 (pa_output_indirect_call): Likewise.
1561 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1563 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
1564 Strengthen first param from rtx to rtx_insn *.
1565 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
1568 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1570 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
1571 type from rtx to rtx_insn *.
1572 (mips_expand_call): Likewise.
1573 (mips_adjust_insn_length): Likewise for first param.
1574 (mips_output_conditional_branch): Likewise.
1575 (mips_output_order_conditional_branch): Likewise.
1576 (mips_final_prescan_insn): Likewise.
1578 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
1579 rtx_insn * for the SEQUENCE case.
1580 (SEQ_END): Likewise.
1581 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
1582 (mips_emit_call_insn): Likewise, also for local "insn".
1583 (mips16_gp_pseudo_reg): Likewise for local "scan".
1584 (mips16_build_call_stub): Likewise for return type and for local
1585 "insn". Introduce a new local "pattern" so that "insn" can indeed
1587 (mips_expand_call): Strengthen return type and local "insn" from
1589 (mips_block_move_loop): Strengthen local "label" from rtx to
1591 (mips_expand_synci_loop): Likewise for locals "label",
1593 (mips_set_frame_expr): Strengthen local "insn" from rtx to
1595 (mips16e_collect_argument_saves): Likewise for locals "insn",
1597 (mips_find_gp_ref): Likewise for param of callback for "pred"
1598 param, and for local "insn".
1599 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
1600 (mips_insn_has_flexible_gp_ref_p): Likewise.
1601 (mips_epilogue_emit_cfa_restores): Likewise for return type and
1603 (mips_epilogue_set_cfa): Likewise for local "insn".
1604 (mips_expand_epilogue): Likewise.
1605 (mips_adjust_insn_length): Likewise for param "insn".
1606 (mips_output_conditional_branch): Likewise.
1607 (mips_output_order_conditional_branch): Likewise.
1608 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
1609 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
1610 "falu2_turn_enabled_insn".
1611 (mips_builtin_branch_and_move): Strengthen locals "true_label",
1612 "done_label" from rtx to rtx_code_label *.
1613 (struct mips16_constant): Likewise for field "label".
1614 (mips16_add_constant): Likewise for return type.
1615 (mips16_emit_constants_1): Strengthen return type and param "insn"
1616 from rtx to rtx_insn *.
1617 (mips16_emit_constants): Likewise for param "insn".
1618 (mips16_insn_length): Likewise.
1619 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
1620 to rtx_code_label *.
1621 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
1622 from rtx to rtx_insn *.
1623 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
1624 "jump". Strengthen local "label" from rtx to rtx_code_label *.
1625 (r10k_simplify_address): Strengthen param "insn" and local
1626 "def_insn" from rtx to rtx_insn *.
1627 (r10k_safe_address_p): Strengthen param "insn" from rtx to
1629 (r10k_needs_protection_p_1): Update target type of cast of data
1630 from to rtx to rtx_insn *.
1631 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
1632 rtx * to rtx_insn **.
1633 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
1635 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
1636 (mips_call_expr_from_insn): Likewise for param "insn".
1637 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
1638 (mips_find_pic_call_symbol): Likewise for param "insn".
1639 (mips_annotate_pic_calls): Likewise for local "insn".
1640 (mips_sim_insn): Likewise for this variable.
1641 (struct mips_sim): Likewise for field "insn" within elements of
1643 (mips_sim_wait_reg): Likewise for param "insn".
1644 (mips_sim_wait_regs): Likewise.
1645 (mips_sim_wait_units): Likewise.
1646 (mips_sim_wait_insn): Likewise.
1647 (mips_sim_issue_insn): Likewise.
1648 (mips_sim_finish_insn): Likewise.
1649 (mips_seq_time): Likewise for param "seq" and local "insn".
1650 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
1651 locals "first", "second".
1652 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
1653 "last", "last2", "next".
1654 (mips_avoid_hazard): Likewise for params "after", "insn".
1655 (mips_reorg_process_insns): Likewise for locals "insn",
1656 "last_insn", "subinsn", "next_insn".
1657 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
1658 (mips16_split_long_branches): Likewise for locals "insn" "jump",
1660 (mips_output_mi_thunk): Likewise for local "insn".
1661 (mips_final_prescan_insn): Likewise for param "insn".
1663 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1665 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
1666 Strengthen return type and local "insns" from rtx to rtx_insn *.
1667 (microblaze_legitimize_tls_address): Likewise for local "insns".
1668 (microblaze_block_move_loop): Strengthen local "label" from rtx
1669 to rtx_code_label *.
1670 (microblaze_expand_prologue): Strengthen two locals named "insn"
1671 from rtx to rtx_insn *.
1672 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
1673 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
1674 "insn". Strengthen locals "div_label", "div_end_label" from rtx
1675 to rtx_code_label *.
1677 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1679 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
1680 param from rtx to rtx_insn *.
1681 (mep_reuse_lo): Likewise for third param.
1682 (mep_use_post_modify_p): Likewise for first param.
1683 (mep_core_address_length): Likewise.
1684 (mep_cop_address_length): Likewise.
1685 (mep_final_prescan_insn): Likewise.
1686 (mep_store_data_bypass_p): Likewise for both params.
1687 (mep_mul_hilo_bypass_p): Likewise.
1688 (mep_ipipe_ldc_p): Likewise for param.
1690 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
1691 (mep_rewrite_mult): Likewise.
1692 (mep_rewrite_mulsi3): Likewise.
1693 (mep_rewrite_maddsi3): Likewise.
1694 (mep_reuse_lo_p_1): Likewise.
1695 (mep_reuse_lo_p): Likewise.
1696 (mep_frame_expr): Likewise.
1697 (mep_make_parallel): Likewise for both params.
1698 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
1700 (mep_use_post_modify_p): Likewise for param "insn".
1701 (mep_core_address_length): Likewise.
1702 (mep_cop_address_length): Likewise.
1703 (mep_reg_set_in_function): Likewise for local "insn".
1704 (mep_asm_without_operands_p): Likewise.
1705 (F): Likewise for return type and param "x".
1706 (add_constant): Likewise for local "insn".
1707 (maybe_dead_move): Likewise for return type and local "insn".
1708 (mep_expand_prologue): Likewise for local "insn".
1709 (mep_final_prescan_insn): Likewise for param "insn".
1710 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
1711 "next", "follow", "x".
1712 (mep_insert_repeat_label_last): Likewise for return type, param
1713 "last_insn", and locals "next", "prev". Strengthen param "label"
1714 from rtx to rtx_code_label *.
1715 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
1717 (struct mep_doloop_end): Likewise for fields "insn" and
1719 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
1720 Strengthen local "repeat_label" from rtx to rtx_code_label *.
1721 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
1723 (mep_invert_branch): Likewise for params "insn" and "after".
1724 (mep_reorg_erepeat): Likewise for param "insns" and locals
1725 "insn", "prev", "new_last", "barrier", "user". Strengthen local
1726 "l" from rtx to rtx_code_label *.
1727 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
1728 from rtx to rtx_insn *.
1729 (mep_reorg_addcombine): Likewise for param "insns" and locals
1731 (add_sp_insn_p): Likewise for param "insn".
1732 (mep_reorg_noframe): Likewise for param "insns" and locals
1733 "start_frame_insn", "end_frame_insn", "next".
1734 (mep_reorg): Likewise for local "insns".
1735 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
1737 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
1738 (mep_mul_hilo_bypass_p): Likewise.
1739 (mep_ipipe_ldc_p): Likewise for param "insn".
1740 (mep_make_bundle): Likewise for return type, param "cop" and local
1741 "insn", splitting out the latter into a new local "seq" for when it
1742 is a SEQUENCE rather than an insn.
1743 (core_insn_p): Likewise for param "insn".
1744 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
1745 "last", "first", "note", "prev", "core_insn".
1747 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1749 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
1751 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
1752 (m68k_final_prescan_insn): Likewise for first param.
1754 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
1755 (m68k_set_frame_related): Likewise for param "insn".
1756 (output_btst): Likewise for param "insn".
1757 (m68k_final_prescan_insn): Likewise.
1758 (m68k_move_to_reg): Likewise for local "insn".
1759 (m68k_call_tls_get_addr): Likewise for local "insns".
1760 (m68k_call_m68k_read_tp): Likewise.
1761 (strict_low_part_peephole_ok): Likewise for param "first_insn".
1762 (m68k_output_mi_thunk): Likewise for local "insn".
1764 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1766 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
1767 first param from rtx to rtx_insn *.
1768 (iq2000_adjust_insn_length): Likewise.
1769 (iq2000_output_conditional_branch): Likewise.
1770 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
1771 "insn" and local "nop_insn".
1772 (iq2000_annotate_frame_insn): Likewise for param "insn".
1773 (iq2000_expand_prologue): Likewise for both locals "insn".
1774 (iq2000_adjust_insn_length): Likewise for param "insn".
1775 (iq2000_output_conditional_branch): Likewise.
1777 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1779 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
1780 "insns" from rtx to rtx_insn *.
1781 (ia64_emit_cond_move): Likewise for locals "insn", "first".
1782 (struct spill_fill_data): Likewise for field "init_after" and for
1783 elements of array field "prev_insn".
1784 (spill_restore_mem): Likewise for locals "insn", "first".
1785 (do_spill): Likewise for local "insn".
1786 (do_restore): Likewise.
1787 (ia64_expand_prologue): Likewise.
1788 (ia64_expand_epilogue): Likewise.
1789 (emit_insn_group_barriers): Likewise for locals "insn",
1791 (emit_all_insn_group_barriers): Likewise for locals "insn",
1793 (dfa_stop_insn): Likewise for this global.
1794 (dfa_pre_cycle_insn): Likewise.
1795 (ia64_nop): Likewise.
1796 (final_emit_insn_group_barriers): Likewise for locals "insn",
1798 (emit_predicate_relation_info): Likewise for locals "head", "n",
1800 (ia64_reorg): Likewise for local "insn".
1801 (ia64_output_mi_thunk): Likewise.
1802 (expand_vec_perm_interleave_2): Likewise for local "seq".
1804 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1806 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
1807 param 1 "insn" from rtx to rtx_insn *.
1808 (ix86_use_lea_for_mov): Likewise.
1809 (ix86_avoid_lea_for_addr): Likewise.
1810 (ix86_split_lea_for_addr): Likewise.
1811 (ix86_lea_for_add_ok): Likewise.
1812 (ix86_output_call_insn): Likewise.
1814 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
1815 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
1816 (ix86_output_function_epilogue): Likewise for locals "insn",
1817 "deleted_debug_label".
1818 (legitimize_tls_address): Likewise for local "insn".
1819 (get_some_local_dynamic_name): Likewise.
1820 (increase_distance): Likewise for params "prev", "next".
1821 (distance_non_agu_define_in_bb): Likewise for params "insn",
1822 "start" and locals "prev", "next".
1823 (distance_non_agu_define): Likewise for param "insn".
1824 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
1825 locals "next", "prev".
1826 (distance_agu_use): Likewise for param "insn".
1827 (ix86_lea_outperforms): Likewise.
1828 (ix86_ok_to_clobber_flags): Likewise.
1829 (ix86_avoid_lea_for_add): Likewise.
1830 (ix86_use_lea_for_mov): Likewise.
1831 (ix86_avoid_lea_for_addr): Likewise.
1832 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
1833 (ix86_split_lea_for_addr): Likewise for param "insn".
1834 (ix86_lea_for_add_ok): Likewise for param "insn".
1835 (ix86_expand_carry_flag_compare): Likewise for local
1837 (ix86_expand_int_movcc): Likewise.
1838 (ix86_output_call_insn): Likewise for param "insn".
1839 (ix86_output_call_insn): Likewise for local "i".
1840 (x86_output_mi_thunk): Introduce local "insn", using it in place
1841 of "tmp" when dealing with insns.
1842 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
1844 (ix86_pad_returns): Likewise for locals "ret", "prev".
1845 (ix86_count_insn_bb): Likewise for local "insn".
1846 (ix86_pad_short_function): Likewise for locals "ret", "insn".
1847 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
1848 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
1849 (expand_vec_perm_interleave2): Likewise for local "seq".
1850 (expand_vec_perm_vperm2f128_vblend): Likewise.
1851 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
1852 call to for_each_rtx with for_each_rtx_in_insn.
1854 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1856 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
1857 "label" from rtx to rtx_code_label *.
1858 (ix86_expand_prologue): Likewise.
1859 (ix86_expand_split_stack_prologue): Likewise for locals "label",
1861 (ix86_split_idivmod): Likewise for locals "end_label" and
1863 (ix86_expand_branch): Likewise for local "label2".
1864 (ix86_expand_aligntest): Likewise for return type and local "label".
1865 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
1867 (expand_movmem_epilogue): Likewise for the various locals named
1869 (expand_setmem_epilogue): Likewise.
1870 (expand_small_movmem_or_setmem): Likewise for local "label".
1871 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
1872 Strengthen param "done_label" from rtx * to rtx_code_label **.
1873 Strengthen locals "loop_label" and "label" from rtx to
1875 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
1876 Likewise for locals "loop_label", "label".
1877 (ix86_expand_set_or_movmem): Likewise for locals "label",
1878 "jump_around_label", "hot_label".
1879 (ix86_expand_strlensi_unroll_1): Likewise for locals
1880 "align_2_label", align_3_label", "align_4_label", "end_0_label",
1882 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
1883 (void ix86_emit_i387_log1p): Likewise for locals "label1",
1884 "label2", "jump_label".
1885 (ix86_expand_sse_compare_and_jump): Likewise for return type and
1887 (ix86_expand_lfloorceil): Likewise for local "label".
1888 (ix86_expand_rint): Likewise.
1889 (ix86_expand_floorceildf_32): Likewise.
1890 (ix86_expand_floorceil): Likewise.
1891 (ix86_expand_rounddf_32): Likewise.
1892 (ix86_expand_trunc): Likewise.
1893 (ix86_expand_truncdf_32): Likewise.
1894 (ix86_expand_round): Likewise.
1896 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1898 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
1899 first param from rtx to rtx_insn *.
1900 (h8300_insn_length_from_table): Likewise.
1901 * config/h8300/h8300.c (F): Likewise for return type and param
1903 (Fpa): Add a checked cast to rtx_insn *.
1904 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
1906 (final_prescan_insn): Likewise for param "insn".
1907 (h8300_binary_length): Likewise.
1908 (h8300_insn_length_from_table): Likewise.
1910 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1912 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
1913 Strengthen first param "insn" from rtx to rtx_insn *.
1915 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
1917 (frame_insn): Likewise for return type. Introduce local "insn"
1918 for use in place of local "x" for use as an rtx_insn *.
1919 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
1920 (epiphany_expand_prologue): Likewise for local "insn".
1921 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
1922 * config/epiphany/resolve-sw-modes.c
1923 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
1926 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1928 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
1929 param from rtx to rtx_insn *.
1930 (c6x_final_prescan_insn): Likewise for first param.
1932 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
1933 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
1934 (c6x_expand_compare): Strengthen local "insns" from rtx to
1936 (c6x_get_unit_specifier): Likewise for param "insn".
1937 (c6x_print_unit_specifier_field): Likewise.
1938 (c6x_final_prescan_insn): Likewise.
1939 (emit_add_sp_const): Likewise for local "insn".
1940 (c6x_expand_prologue): Likewise.
1942 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1944 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
1945 param 1 from rtx to rtx_insn *.
1946 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
1947 the various locals named "insn".
1948 (expand_epilogue_reg_restore): Likewise.
1949 (frame_related_constant_load): Likewise.
1950 (add_to_reg): Likewise.
1951 (emit_link_insn): Likewise.
1952 (do_link): Likewise.
1953 (expand_interrupt_handler_prologue): Likewise.
1954 (branch_dest): Likewise for param "branch".
1955 (asm_conditional_branch): Likewise for param "insn".
1956 (gen_one_bundle): Likewise for elements of param "slot" and local
1958 (bfin_gen_bundles): Likewise for locals "insn", "next" and
1959 elements of local "slot".
1960 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1961 "queue", "next_queue", "prev".
1962 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
1963 (add_sched_insns_for_speculation): Likewise for local "insn".
1965 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1967 * config/avr/avr-protos.h (output_movqi): Strengthen first param
1968 from rtx to rtx_insn *.
1969 (output_movhi): Likewise.
1970 (output_movsisf): Likewise.
1971 (avr_out_tstsi): Likewise.
1972 (avr_out_tsthi): Likewise.
1973 (avr_out_tstpsi): Likewise.
1974 (avr_out_compare): Likewise.
1975 (avr_out_compare64): Likewise.
1976 (avr_out_movpsi): Likewise.
1977 (ashlqi3_out): Likewise.
1978 (ashlhi3_out): Likewise.
1979 (ashlsi3_out): Likewise.
1980 (ashrqi3_out): Likewise.
1981 (ashrhi3_out): Likewise.
1982 (ashrsi3_out): Likewise.
1983 (lshrqi3_out): Likewise.
1984 (lshrhi3_out): Likewise.
1985 (lshrsi3_out): Likewise.
1986 (avr_out_ashlpsi3): Likewise.
1987 (avr_out_ashrpsi3): Likewise.
1988 (avr_out_lshrpsi3): Likewise.
1989 (avr_out_fract): Likewise.
1990 (avr_out_sbxx_branch): Likewise.
1991 (avr_out_round): Likewise.
1992 (avr_out_xload): Likewise.
1993 (avr_out_movmem): Likewise.
1994 (adjust_insn_length): Likewise.
1995 (avr_out_lpm): Likewise.
1996 (reg_unused_after): Likewise.
1997 (_reg_unused_after): Likewise.
1998 (avr_jump_mode): Likewise for second param.
1999 (jump_over_one_insn): Likewise for first param.
2000 (avr_final_prescan_insn): Likewise.
2001 (out_shift_with_cnt): Likewise for second param.
2003 * config/avr/avr.c (get_sequence_length): Likewise for param
2004 "insns" and local "insn".
2005 (emit_push_byte): Likewise for local "insn".
2006 (emit_push_sfr): Likewise.
2007 (avr_prologue_setup_frame): Likewise for locals "insn",
2008 "fp_plus_insns", "sp_plus_insns".
2009 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2011 (avr_jump_mode): Likewise for param "insn".
2012 (avr_final_prescan_insn): Likewise.
2013 (avr_find_unused_d_reg): Likewise.
2014 (avr_out_lpm_no_lpmx): Likewise.
2015 (avr_out_lpm): Likewise.
2016 (avr_out_xload): Likewise.
2017 (output_movqi): Likewise.
2018 (output_movhi): Likewise.
2019 (out_movqi_r_mr): Likewise.
2020 (out_movhi_r_mr): Likewise.
2021 (out_movsi_r_mr): Likewise.
2022 (out_movsi_mr_r): Likewise.
2023 (output_movsisf): Likewise.
2024 (avr_out_load_psi): Likewise.
2025 (avr_out_store_psi): Likewise.
2026 (avr_out_movpsi): Likewise.
2027 (out_movqi_mr_r): Likewise.
2028 (avr_out_movhi_mr_r_xmega): Likewise.
2029 (out_movhi_mr_r): Likewise.
2030 (compare_condition): Likewise for param "insn" and local "next".
2031 (compare_sign_p): Likewise for param "insn".
2032 (compare_diff_p): Likewise.
2033 (compare_eq_p): Likewise.
2034 (avr_out_compare): Likewise.
2035 (avr_out_compare64): Likewise.
2036 (avr_out_tsthi): Likewise.
2037 (avr_out_tstpsi): Likewise.
2038 (avr_out_tstsi): Likewise.
2039 (out_shift_with_cnt): Likewise.
2040 (ashlqi3_out): Likewise.
2041 (ashlhi3_out): Likewise.
2042 (avr_out_ashlpsi3): Likewise.
2043 (ashlsi3_out): Likewise.
2044 (ashrqi3_out): Likewise.
2045 (ashrhi3_out): Likewise.
2046 (avr_out_ashrpsi3): Likewise.
2047 (ashrsi3_out): Likewise.
2048 (lshrqi3_out): Likewise.
2049 (lshrhi3_out): Likewise.
2050 (avr_out_lshrpsi3): Likewise.
2051 (lshrsi3_out): Likewise.
2052 (avr_out_fract): Likewise.
2053 (avr_out_round): Likewise.
2054 (avr_adjust_insn_length): Likewise.
2055 (reg_unused_after): Likewise.
2056 (_reg_unused_after): Likewise.
2057 (avr_compare_pattern): Likewise.
2058 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2059 and locals "branch1", "branch2", "insn2", "jump".
2060 (avr_reorg): Likewise for local "insn".
2061 (avr_2word_insn_p): Likewise for param "insn".
2062 (jump_over_one_insn_p): Likewise.
2063 (avr_out_sbxx_branch): Likewise.
2064 (avr_out_movmem): Likewise.
2066 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2068 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2069 param from rtx to rtx_insn *.
2070 (thumb1_final_prescan_insn): Likewise.
2071 (thumb2_final_prescan_insn): Likewise.
2073 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2075 (struct minipool_node): Likewise for field "insn".
2076 (dump_minipool): Likewise for param "scan".
2077 (create_fix_barrier): Likewise for local "from". Strengthen local
2078 "label" from rtx to rtx_code_label *.
2079 (push_minipool_barrier): Strengthen param "insn" from rtx to
2081 (push_minipool_fix): Likewise.
2082 (note_invalid_constants): Likewise.
2083 (thumb2_reorg): Likewise for local "insn".
2084 (arm_reorg): Likewise.
2085 (thumb2_final_prescan_insn): Likewise for param
2086 "insn" and local "first_insn".
2087 (arm_final_prescan_insn): Likewise for param "insn" and locals
2088 "start_insn", "this_insn".
2089 (arm_debugger_arg_offset): Likewise for param "insn".
2090 (thumb1_emit_multi_reg_push): Likewise for return type and local
2092 (thumb1_final_prescan_insn): Likewise for param "insn".
2093 (thumb_far_jump_used_p): Likewise for local "insn".
2094 (thumb1_expand_prologue): Likewise.
2095 (arm_expand_epilogue_apcs_frame): Likewise.
2096 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2097 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2098 from rtx to rtx_code_label *.
2099 (arm_split_atomic_op): Likewise for local "label".
2100 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2102 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2104 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2105 first param from rtx to rtx_insn *.
2106 (arc_verify_short): Likewise.
2107 (arc_short_long): Likewise.
2108 (arc_need_delay): Likewise.
2110 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2112 (arc_ccfsm_advance): Likewise for param "insn" and locals
2113 "start_insn", "this_insn".
2114 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2115 (arc_ccfsm_post_advance): Likewise for param "insn".
2116 (arc_next_active_insn): Likewise for return type and param "insn".
2117 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2118 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2119 (output_short_suffix): Likewise for local "insn".
2120 (arc_final_prescan_insn): Likewise for param "insn". Remove
2121 now-redundant checked cast.
2122 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2123 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2124 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2125 for use where lc_set became an insn.
2126 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2128 (arc_get_insn_variants): Likewise for local "prev".
2129 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2131 (arc_predicate_delay_insns): Likewise for local "insn".
2132 (arc_pad_return): Likewise for local "prev". For now, add a
2133 checked cast when extracting the insn from "final_sequence".
2134 (arc_short_long): Likewise for param "insn".
2135 (arc_need_delay): Likewise for param "insn" and local "next".
2136 (arc_label_align): Likewise for locals "prev", "next".
2138 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2140 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2141 "insn" from rtx to rtx_insn *.
2142 (alpha_gp_save_rtx): Likewise for local "seq".
2143 (alpha_instantiate_decls): Likewise for local "top".
2144 (get_some_local_dynamic_name): Likewise for local "insn".
2145 (alpha_does_function_need_gp): Likewise.
2146 (set_frame_related_p): Likewise for return type and for locals
2148 (emit_frame_store_1): Likewise for local "insn".
2149 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2150 (alpha_end_function): Likewise for local "insn".
2151 (alpha_output_mi_thunk_osf): Likewise.
2152 (alphaev4_insn_pipe): Likewise for param "insn".
2153 (alphaev5_insn_pipe): Likewise.
2154 (alphaev4_next_group): Likewise for return type and param 1
2156 (alphaev5_next_group): Likewise.
2157 (alpha_align_insns_1): Likewise for return type and param 1 of
2158 callback param "next_group", and for locals "i", "next", "prev",
2159 "where", "where2", "insn".
2161 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2163 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2164 rather than modifying the stmt.
2166 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2168 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2169 cgraph_state conversion.
2171 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2173 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2174 Strengthen local "insns" from rtx to rtx_insn *.
2175 (aarch64_set_frame_expr): Likewise for local "insn".
2176 (aarch64_save_or_restore_fprs): Likewise.
2177 (aarch64_save_or_restore_callee_save_registers): Likewise.
2178 (aarch64_expand_prologue): Likewise.
2179 (aarch64_expand_epilogue): Likewise.
2180 (aarch64_output_mi_thunk): Likewise.
2181 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2182 "label2" from rtx to rtx_code_label *.
2183 (aarch64_split_atomic_op): Likewise for local "label".
2185 2014-08-25 Martin Liska <mliska@suse.cz>
2187 * cgraph.h (symtab_node):
2188 (bool needed_p (void)): created from decide_is_symbol_needed
2189 (bool referred_to_p (void)): created from referred_to_p
2190 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2191 * cgraph.h (cgraph_node):
2192 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2193 (void expand (void)): created from expand_function
2194 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2195 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2196 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2197 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2198 * cgraph.h (varpool_node):
2199 (static void add (tree decl): created from varpool_add_new_variable
2200 * cgraph.h (cgraph_edge):
2202 (void remove_caller (void)): created from cgraph_edge_remove_caller
2203 (void remove_callee (void)): created from cgraph_edge_remove_callee
2204 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2205 created from cgraph_set_call_stmt
2206 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2207 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2208 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2209 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2210 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2211 created from cgraph_speculative_call_info
2212 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2213 int freq_scale, bool update_original)): created from cgraph_clone_edge
2214 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2215 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2216 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2217 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2218 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2219 (static void rebuild_references (void)): created from cgraph_rebuild_references
2220 * cgraph.h (symbol_table):
2221 (create_reference): renamed from add_reference
2222 (maybe_create_reference): renamed from maybe_add_reference
2223 (void register_symbol (symtab_node *node)): new function
2224 (void clear_asm_symbols (void)): new function
2225 (void unregister (symtab_node *node)): new function
2226 (void release_symbol (cgraph_node *node, int uid)): new function
2227 (cgraph_node * allocate_cgraph_symbol (void)): new function
2228 (void initialize (void)): created from cgraph_init
2229 (symtab_node *first_symbol (void)):new function
2230 (asm_node *first_asm_symbol (void)):new function
2231 (symtab_node *first_defined_symbol (void)):new function
2232 (varpool_node *first_variable (void)):new function
2233 (varpool_node *next_variable (varpool_node *node)):new function
2234 (varpool_node *first_static_initializer (void)):new function
2235 (varpool_node *next_static_initializer (varpool_node *node)):new function
2236 (varpool_node *first_defined_variable (void)):new function
2237 (varpool_node *next_defined_variable (varpool_node *node)):new function
2238 (cgraph_node *first_defined_function (void)):new function
2239 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2240 (cgraph_node *first_function (void)):new function
2241 (cgraph_node *next_function (cgraph_node *node)):new function
2242 (cgraph_node *first_function_with_gimple_body (void)):new function
2243 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2244 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2245 created from symtab_remove_unreachable_nodes
2246 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2247 (void process_new_functions (void)): created from cgraph_process_new_functions
2248 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2249 (bool output_variables (void)): created from varpool_node::output_variables
2250 (void output_asm_statements (void)): created from output_asm_statements
2251 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2252 (void compile (void)): created from compile
2253 (void output_weakrefs (void)): created from output_weakrefs
2254 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2255 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2256 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2257 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2258 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2259 created from cgraph_next_function_with_gimple_body
2260 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2261 created from cgraph_remove_edge_removal_hook
2262 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2263 created from cgraph_add_node_removal_hook
2264 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2265 created from cgraph_remove_node_removal_hook
2266 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2267 created from varpool_add_node_removal_hook
2268 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2269 created from varpool_remove_node_removal_hook
2270 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2271 created from cgraph_add_function_insertion_hook
2272 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
2273 created from cgraph_remove_function_insertion_hook
2274 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
2275 created from varpool_add_variable_insertion_hook
2276 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
2277 created from varpool_remove_variable_insertion_hook
2278 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
2279 created from cgraph_add_edge_duplication_hook
2280 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
2281 created from cgraph_remove_edge_duplication_hook
2282 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
2283 created from cgraph_add_node_duplication_hook
2284 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
2285 created from cgraph_remove_node_duplication_hook
2286 (void call_edge_removal_hooks (cgraph_edge *e)):
2287 created from cgraph_call_edge_removal_hooks
2288 (void call_cgraph_insertion_hooks (cgraph_node *node)):
2289 created from call_function_insertion_hooks
2290 (void call_cgraph_removal_hooks (cgraph_node *node)):
2291 created from cgraph_call_node_removal_hooks
2292 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
2293 created from cgraph_node::call_duplication_hooks
2294 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
2295 created from cgraph_call_edge_duplication_hooks
2296 (void call_varpool_removal_hooks (varpool_node *node)):
2297 created from varpool_call_node_removal_hooks
2298 (void call_varpool_insertion_hooks (varpool_node *node)):
2299 created from varpool_call_variable_insertion_hooks
2300 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
2301 created from insert_to_assembler_name_hash
2302 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
2303 created from unlink_from_assembler_name_hash
2304 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
2305 created from symtab_prevail_in_asm_name_hash
2306 (void symtab_initialize_asm_name_hash (void)):
2307 created from symtab_initialize_asm_name_hash
2308 (void change_decl_assembler_name (tree decl, tree name)):
2309 created from change_decl_assembler_name
2310 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
2311 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
2312 created from decl_assembler_name_hash
2313 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
2314 created from decl_assembler_name_equal
2315 (static hashval_t hash_node_by_assembler_name (const void *p)):
2316 created from hash_node_by_assembler_name
2317 (static int eq_assembler_name (const void *p1, const void *p2)):
2318 created from eq_assembler_name
2320 2014-08-25 Marek Polacek <polacek@redhat.com>
2322 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
2324 2014-08-25 Petr Murzin <petr.murzin@intel.com>
2326 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
2327 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
2328 SWI1248_AVX512BW mode iterator.
2330 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
2333 * config/sh/predicates.md (general_extend_operand): Disable
2334 TRUNCATE before reload completes.
2336 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
2338 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
2340 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
2343 * config/sh/sh.opt (musermode): Allow negative form.
2344 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
2345 targets that don't support it.
2346 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
2347 Document -mno-usermode option.
2349 2014-08-24 Kito Cheng <kito@0xlab.org>
2351 * system.h (CALLER_SAVE_PROFITABLE): Poison.
2352 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
2353 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
2354 * doc/tm.texi: Regenerate.
2356 2014-08-24 Kito Cheng <kito@0xlab.org>
2358 * ira.c: Fix typo in comment.
2360 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2362 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
2363 Deprecate c++1y. Change language to reflect greater confidence in C++14.
2365 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
2368 * config/pa/pa.c (pa_output_function_epilogue): Don't set
2369 last_address when the current function is a thunk.
2370 (pa_asm_output_mi_thunk): When we don't have named sections or they
2371 are not being used, check that thunk can reach the stub table with a
2374 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2376 * web.c (union_match_dups): Strengthen param "insn" from rtx to
2378 (pass_web::execute): Likewise for local "insn".
2380 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2382 * var-tracking.c (struct micro_operation_def): Strengthen field
2383 "insn" from rtx to rtx_insn *.
2384 (struct emit_note_data_def): Likewise.
2385 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
2386 (vt_stack_adjustments): Likewise for local "insn".
2387 (adjust_insn): Likewise for param "insn".
2388 (val_store): Likewise.
2389 (val_resolve): Likewise.
2390 (struct count_use_info): Likewise for field "insn".
2391 (log_op_type): Likewise for param "insn".
2392 (reverse_op): Likewise.
2393 (prepare_call_arguments): Likewise.
2394 (add_with_sets): The initial param takes an insn, but we can't
2395 yet strengthen it from rtx to rtx_insn * since it's used as a
2396 cselib_record_sets_hook callback. For now rename initial param
2397 from "insn" to "uncast_insn", and introduce a local "insn" of
2398 the stronger rtx_insn * type, with a checked cast.
2399 (compute_bb_dataflow): Strengthen local "insn" from rtx to
2401 (emit_note_insn_var_location): Likewise.
2402 (emit_notes_for_changes): Likewise.
2403 (emit_notes_for_differences): Likewise.
2404 (next_non_note_insn_var_location): Likewise for return type and
2406 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
2407 (vt_initialize): Likewise for local "insn".
2408 (delete_debug_insns): Likewise for locals "insn" and "next".
2410 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2412 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
2414 (mark_constant_pool): Likewise for local "insn".
2416 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2418 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
2420 (dead_debug_promote_uses): Likewise.
2421 (dead_debug_insert_temp): Likewise.
2423 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2425 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
2426 from const_rtx to const rtx_insn *.
2427 (store_killed_after): Likewise. Strengthen locals "last", "act"
2428 from rtx to rtx_insn *.
2429 (store_killed_before): Strengthen param "insn" from const_rtx to
2430 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
2431 (find_moveable_store): Strengthen param "insn" from rtx to
2433 (compute_store_table): Likewise for local "insn".
2434 (insert_insn_start_basic_block): Likewise for param "insn" and
2435 locals "prev", "before", "insn".
2436 (insert_store): For now, add a checked cast to rtx_insn * on the
2437 result of gen_move_insn.
2438 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
2440 (replace_store_insn): Likewise. For now, add a checked cast to
2441 rtx_insn * on the result of gen_move_insn.
2443 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2445 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
2447 (expand_sjlj_dispatch_table): Likewise.
2449 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2451 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
2452 "insn" from rtx to rtx_insn *.
2454 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2456 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
2457 "insn" from rtx to rtx_insn *.
2458 (dup_block_and_redirect): Likewise for param 3 "before".
2460 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
2461 from rtx to rtx_insn *.
2462 (move_insn_for_shrink_wrap): Likewise.
2463 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
2464 (dup_block_and_redirect): Likewise for param "before" and local
2466 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
2468 (convert_to_simple_return): Likewise for local "start".
2470 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
2471 Strengthen local "insn" from rtx to rtx_insn *, for use when
2472 invoking requires_stack_frame_p.
2474 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2476 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
2478 (speculate_expr): Likewise for locals "orig_insn_rtx",
2480 (eq_transformed_insns): Likewise for locals "i1", "i2".
2481 (check_for_new_jump): Likewise for return type and local "end".
2482 (find_new_jump): Likewise for return type and local "jump".
2483 (sel_split_edge): Likewise for local "jump".
2484 (sel_create_recovery_block): Likewise.
2485 (sel_redirect_edge_and_branch_force): Likewise.
2486 (sel_redirect_edge_and_branch): Likewise.
2488 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2490 * sel-sched.c (substitute_reg_in_expr): Strengthen local
2491 "new_insn" from rtx to rtx_insn *.
2492 (create_insn_rtx_with_rhs): Likewise for return type and for local
2494 (create_insn_rtx_with_lhs): Likewise.
2495 (create_speculation_check): Likewise for local "insn_rtx".
2496 (implicit_clobber_conflict_p): Likewise for local "insn".
2497 (get_expr_cost): Likewise.
2498 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
2499 (move_cond_jump): Likewise for locals "next", "prev", "link",
2500 "head", "from", "to".
2502 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2504 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
2505 "next" from rtx to rtx_insn *.
2506 (find_conditional_protection): Likewise for local "next".
2507 (is_conditionally_protected): Likewise for local "insn1".
2508 (is_pfree): Likewise for locals "insn1", "insn2".
2510 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2512 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
2513 from rtx to rtx_insn *.
2515 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
2516 locals "insn1", "insn2" from rtx to rtx_insn *.
2517 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
2518 locals "insn", "prev", "last_jump", "next_tail".
2519 (schedule_ebb): Likewise for params "head", "tail".
2520 (schedule_ebbs): Likewise for locals "tail", "head".
2522 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
2523 to rtx_insn on "last_insn" in one of the invocations of
2526 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2528 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
2529 "elem", "insn" from rtx to rtx_insn *.
2530 (change_spec_dep_to_hard): Likewise.
2531 (get_back_and_forw_lists): Likewise for local "con".
2532 (sd_add_dep): Likewise for locals "elem", "insn".
2533 (sd_resolve_dep): Likewise for locals "pro", "con".
2534 (sd_unresolve_dep): Likewise.
2535 (sd_delete_dep): Likewise.
2536 (chain_to_prev_insn): Likewise for local "pro".
2537 (find_inc): Likewise for locals "pro", "con".
2539 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2541 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
2543 (reg_set_between_p): Strengthen local "insn" from const_rtx to
2545 (modified_between_p): Strengthen local "insn" from rtx to
2547 (remove_reg_equal_equiv_notes_for_regno): Likewise.
2548 (keep_with_call_p): Strengthen local "i2" from const_rtx to
2551 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2553 * resource.c (next_insn_no_annul): Strengthen local "next" from
2555 (mark_referenced_resources): Likewise for local "insn".
2557 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2559 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
2561 (find_reloads): Likewise for param 1.
2562 (subst_reloads): Likewise for sole param.
2563 (find_equiv_reg): Likwise for param 2.
2564 (regno_clobbered_p): Likwise for param 2.
2565 (reload): Likewise for param 1.
2567 * caller-save.c (save_call_clobbered_regs): Strengthen local
2568 "insn" from rtx to rtx_insn *.
2569 (insert_one_insn): Likewise for local "insn".
2571 * reload.c (this_insn): Likewise for this global.
2572 (find_reloads): Likewise for param "insn".
2573 (find_reloads_toplev): Likewise.
2574 (find_reloads_address): Likewise.
2575 (subst_reg_equivs): Likewise.
2576 (update_auto_inc_notes): Likewise.
2577 (find_reloads_address_1): Likewise.
2578 (find_reloads_subreg_address): Likewise.
2579 (subst_reloads): Likewise.
2580 (find_equiv_reg): Likewise, also for local "p".
2581 (regno_clobbered_p): Likewise for param "insn".
2583 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
2585 (spill_reg_store): Likewise for the elements of this array.
2586 (remove_init_insns): Likewise for local "equiv_insn".
2587 (will_delete_init_insn_p): Likewise for param "insn".
2588 (reload): Likewise for param ""first" and local "insn".
2589 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
2591 (calculate_elim_costs_all_insns): Likewise.
2592 (delete_caller_save_insns): Likewise.
2593 (spill_failure): Likewise for param "insn".
2594 (delete_dead_insn): Likewise.
2595 (set_label_offsets): Likewise.
2596 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
2598 (elimination_costs_in_insn): Likewise for param "insn".
2599 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
2600 when referring to an insn.
2601 (set_initial_label_offsets): Likewise.
2602 (set_offsets_for_label): Strengthen param "insn" from rtx to
2604 (init_eliminable_invariants): Likewise for param "first" and local
2606 (fixup_eh_region_note): Likewise for param "insn".
2607 (reload_as_needed): Likewise for locals "prev", "insn",
2608 "old_next", "old_prev", "next".
2609 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
2611 (reload_inheritance_insn): Strengthen elements of this array from
2613 (failed_reload): Likewise for param "insn".
2614 (choose_reload_regs): Likewise for local "insn". Replace use of
2615 NULL_RTX with NULL when referring to an insn.
2616 (input_reload_insns): Strengthen elements of this array from rtx
2618 (other_input_address_reload_insns): Likewise for this global.
2619 (other_input_reload_insns): Likewise for this global.
2620 (input_address_reload_insns): Likwise for the elements of this
2622 (inpaddr_address_reload_insns): Likwise for the elements of this
2624 (output_reload_insns): Likewise for the elements of this array.
2625 (output_address_reload_insns): Likewise for the elements of this
2627 (outaddr_address_reload_insns): Likewise for the elements of this
2629 (operand_reload_insns): Likewise for this global.
2630 (other_operand_reload_insns): Likewise for this global.
2631 (other_output_reload_insns): Likewise for the elements of this
2633 (new_spill_reg_store): Likewise for the elements of this
2635 (emit_input_reload_insns): Likewise for locals "insn", "temp".
2636 Strengthen local "where" from rtx * to rtx_insn **.
2637 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
2638 from rtx to rtx_insn *.
2639 (do_input_reload): Likewise for local "insn".
2640 (do_output_reload): Likewise for local "insn".
2641 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
2642 (emit_insn_if_valid_for_reload): Likewise for return type and local
2643 "last". Add checked cast to rtx_insn when returning "insn" since
2644 this has been through emit_insn.
2645 (gen_reload): Strengthen return type and locals "last", "insn", "set"
2646 from rtx to rtx_insn *. Add checked cast to rtx_insn when
2647 returning "insn" since it's been through
2648 emit_insn_if_valid_for_reload at this point.
2649 (delete_output_reload): Strengthen param "insn" and locals
2650 "output_reload_insn", "i2" from rtx to rtx_insn *.
2651 (delete_address_reloads): Likewise for params "dead_insn",
2652 "current_insn" and locals "prev", "next".
2653 (delete_address_reloads_1): Likewise for params "dead_insn",
2654 "current_insn" and locals "prev", "i2".
2655 (inc_for_reload): Likewise for locals "last", "add_insn".
2656 (add_auto_inc_notes): Strengthen param "insn" from rtx to
2659 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
2660 param of this duplicate of the prototype from reload.h
2662 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2664 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
2666 (regstat_bb_compute_calls_crossed): Likewise.
2668 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2670 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
2672 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
2674 (regrename_analyze): Strengthen local "insn" from rtx to
2676 (scan_rtx_reg): Likewise for param "insn".
2677 (scan_rtx_address): Likewise.
2678 (scan_rtx): Likewise.
2679 (restore_operands): Likewise.
2680 (record_out_operands): Likewise.
2681 (build_def_use): Likewise for local "insn". Replace use of
2682 NULL_RTX with NULL when dealing with an insn.
2684 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2686 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
2687 * reginfo.c (reg_scan): Likewise, also for local "insn".
2688 (reg_scan_mark_refs): Likewise for param "insn".
2689 (init_subregs_of_mode): Likewise for local "insn".
2691 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2693 * regcprop.c (struct queued_debug_insn_change): Strengthen field
2694 "insn" from rtx to rtx_insn *.
2695 (replace_oldest_value_reg): Likewise for param "insn".
2696 (replace_oldest_value_addr): Likewise.
2697 (replace_oldest_value_mem): Likewise.
2698 (apply_debug_insn_changes): Likewise for local "last_insn".
2699 (copyprop_hardreg_forward_1): Likewise for local "insn".
2701 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2703 * reg-stack.c (next_flags_user): Strengthen return type and param
2704 "insn" from rtx to rtx_insn *.
2705 (straighten_stack): Likewise for param "insn".
2706 (check_asm_stack_operands): Likewise.
2707 (remove_regno_note): Likewise.
2708 (emit_pop_insn): Likewise for return type, param "insn", local
2710 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
2711 "limit" from rtx to rtx_insn *.
2712 (swap_to_top): Likewise for param "insn".
2713 (move_for_stack_reg): Likewise.
2714 (move_nan_for_stack_reg): Likewise.
2715 (swap_rtx_condition): Likewise.
2716 (compare_for_stack_reg): Likewise.
2717 (subst_all_stack_regs_in_debug_insn): Likewise.
2718 (subst_stack_regs_pat): Likewise, and local "insn2".
2719 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
2721 (subst_stack_regs): Likewise.
2722 (change_stack): Likewise.
2723 (convert_regs_1): Likewise for locals "insn", "next".
2725 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2727 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
2729 (combine_set_extension): Likewise for param "curr_insn".
2730 (transform_ifelse): Likewise for param "def_insn".
2731 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
2732 from vec<rtx> * to vec<rtx_insn *> *.
2733 (is_cond_copy_insn): Likewise for param "insn".
2734 (struct ext_state): Strengthen the four vec fields from vec<rtx>
2736 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
2737 local "def_insn" from rtx to rtx_insn *.
2738 (get_sub_rtx): Likewise for param "def_insn".
2739 (merge_def_and_ext): Likewise.
2740 (combine_reaching_defs): Likewise.
2741 (add_removable_extension): Likewise for param "insn".
2742 (find_removable_extensions): Likewise for local "insn".
2743 (find_and_remove_re): Likewise for locals "curr_insn" and
2744 "def_insn". Strengthen locals "reinsn_del_list" and
2745 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
2747 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2749 * recog.c (split_insn): Strengthen param "insn" and locals
2750 "first", "last" from rtx to rtx_insn *.
2751 (split_all_insns): Likewise for locals "insn", "next".
2752 (split_all_insns_noflow): Likewise.
2754 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2756 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
2758 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
2759 (debug_rtx_find): Likewise for param 1 "x".
2761 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
2762 const_rtx to const rtx_insn *. Likewise for local "insn".
2763 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
2764 (debug_rtx_find): Likewise for param 1 "x".
2765 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
2766 from const_rtx to const rtx_insn * within the appropriate cases of
2767 the switch statement.
2769 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
2770 Strengthen local "insns" from rtx to rtx_insn * since this is
2771 passed to a call to debug_rtx_list.
2773 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2775 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
2778 * function.c (stack_protect_epilogue): Add checked cast to
2779 rtx_insn for now when invoking predict_insn_def.
2781 * predict.c (predict_insn): Strengthen param "insn" from rtx to
2783 (predict_insn_def): Likewise.
2784 (rtl_predict_edge): Likewise for local "last_insn".
2785 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
2787 (combine_predictions_for_insn): Strengthen param "insn" from rtx
2789 (bb_estimate_probability_locally): Likewise for local "last_insn".
2790 (expensive_function_p): Likewise for local "insn".
2792 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
2793 local "jmp", since this is used when invoking predict_insn_def.
2795 2014-08-22 Marek Polacek <polacek@redhat.com>
2798 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
2800 2014-08-22 Marek Polacek <polacek@redhat.com>
2803 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
2804 a comparison in parens.
2805 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
2808 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2810 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
2813 * cprop.c (fis_get_condition): Likewise.
2815 * postreload.c (reload_cse_regs): Likewise for param "first".
2816 (reload_cse_simplify): Likewise for param "insn".
2817 (reload_cse_regs_1): Likewise for local "insn".
2818 (reload_cse_simplify_set): Likewise for param "insn".
2819 (reload_cse_simplify_operands): Likewise.
2820 (struct reg_use): Likewise for field "insn".
2821 (reload_combine_purge_insn_uses): Likewise for param "insn".
2822 (fixup_debug_insns): Likewise for params "from", "to" and local
2824 (try_replace_in_use): Likewise for local "use_insn".
2825 (reload_combine_recognize_const_pattern): Likewise for param
2826 "insn" and locals "add_moved_after_insn", "use_insn".
2827 (reload_combine_recognize_pattern): Likewise for param "insn" and
2829 (reload_combine): Likewise for locals "insn", "prev".
2830 (reload_combine_note_use): Likewise for param "insn".
2831 (move2add_use_add2_insn): Likewise.
2832 (move2add_use_add3_insn): Likewise.
2833 (reload_cse_move2add): Likewise, also for local "next".
2834 (move2add_note_store): Likewise for local "insn".
2836 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2838 * postreload-gcse.c (struct occr): Strengthen field "insn" from
2840 (struct unoccr): Likewise.
2841 (struct modifies_mem): Likewise.
2842 (alloc_mem): Likewise for local "insn".
2843 (insert_expr_in_table): Likewise for param "insn".
2844 (dump_expr_hash_table_entry): Likewise for local "insn".
2845 (oprs_unchanged_p): Likewise for param "insn".
2846 (load_killed_in_block_p): Likewise for local "setter".
2847 (record_last_reg_set_info): Likewise for param "insn".
2848 (record_last_reg_set_info_regno): Likewise.
2849 (record_last_mem_set_info): Likewise.
2850 (record_last_set_info): Likewise for local "last_set_insn".
2851 (record_opr_changes): Likewise for param "insn".
2852 (hash_scan_set): Likewise.
2853 (compute_hash_table): Likewise for local "insn".
2854 (get_avail_load_store_reg): Likewise for param "insn".
2855 (eliminate_partially_redundant_load): Likewise, also for locals
2856 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
2858 (eliminate_partially_redundant_loads): Likewise for local "insn".
2860 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2862 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
2864 (expand_binop): Likewise for locals "entry_last", "last", "insns"
2865 (expand_twoval_unop): Likewise for locals entry_last", "last".
2866 (expand_twoval_binop): Likewise.
2867 (expand_twoval_binop_libfunc): Likewise for local "insns".
2868 (widen_leading): Likewise for local "last".
2869 (expand_doubleword_clz): Likewise for local "seq". Strengthen
2870 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
2871 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
2872 (expand_parity): Likewise for locals "last" and "seq".
2873 (expand_ffs): Likewise for local "seq". Strengthen local
2874 "nonzero_label" from rtx to rtx_code_label *.
2875 (expand_absneg_bit): Strengthen local "insns" from rtx to
2877 (expand_unop_direct): Likewise for local "last".
2878 (expand_unop): Likewise for locals "last", "insns".
2879 (expand_abs_nojump): Likewise for local "last".
2880 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
2881 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
2883 (expand_copysign_absneg): Strengthen local "label" from rtx to
2885 (expand_copysign_bit): Strengthen local "insns" from rtx to
2887 (struct no_conflict_data): Likewise for fields "first", "insn".
2888 (emit_libcall_block_1): Likewise for param "insns" and locals
2889 "next", "last", "insn".
2890 (emit_libcall_block): For now, add a checked cast to rtx_insn *
2891 on "insns" when invoking emit_libcall_block_1. Ultimately we
2892 want to strengthen insns itself.
2893 (prepare_cmp_insn): Strengthen local "last" from rtx to
2895 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
2896 (prepare_float_lib_cmp): Likewise for local "insns".
2897 (emit_conditional_move): Likewise for local "last".
2898 (emit_conditional_add): Likewise.
2899 (have_sub2_insn): Likewise for local "seq".
2900 (expand_float): Likewise for local "insns". Strengthen locals
2901 "label", "neglabel" from rtx to rtx_code_label *.
2902 (expand_fix): Likewise for locals "last", "insn", "insns" (to
2903 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
2904 (expand_fixed_convert): Likewise for local "insns" (to
2906 (expand_sfix_optab): Likewise for local "last".
2907 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
2908 to rtx_code_label *.
2909 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
2910 from rtx to rtx_insn *.
2911 (expand_atomic_fetch_op): Likewise for local "insn".
2912 (maybe_legitimize_operand_same_code): Likewise for local "last".
2913 (maybe_legitimize_operands): Likewise.
2915 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2917 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
2918 "insn" from rtx to rtx_insn *.
2919 (ps_rtl_insn): Likewise for return type.
2920 (doloop_register_get): Likewise for params "head", "tail" and
2921 locals "insn", "first_insn_not_to_check".
2922 (schedule_reg_move): Likewise for local "this_insn".
2923 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
2924 of gen_move_insn for now.
2925 (reset_sched_times): Strengthen local "insn" from rtx to
2927 (permute_partial_schedule): Likewise.
2928 (duplicate_insns_of_cycles): Likewise for local "u_insn".
2929 (dump_insn_location): Likewise for param "insn".
2930 (loop_canon_p): Likewise for local "insn".
2931 (sms_schedule): Likewise.
2932 (print_partial_schedule): Likewise.
2933 (ps_has_conflicts): Likewise.
2935 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2937 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
2938 "tailp" from rtx * to rtx_insn **.
2940 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
2941 from rtx to rtx_insn *.
2942 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
2943 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
2944 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
2946 * modulo-sched.c (const_iteration_count): Strengthen return type
2947 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
2948 use of NULL_RTX with NULL when working with insns.
2949 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
2951 (sms_schedule): Likewise.
2952 * sched-rgn.c (init_ready_list): Likewise, also for locals
2953 "src_head" and "src_next_tail".
2954 (compute_block_dependences): Likewise.
2955 (free_block_dependencies): Likewise.
2956 (debug_rgn_dependencies): Likewise.
2957 (free_rgn_deps): Likewise.
2958 (compute_priorities): Likewise.
2959 (schedule_region): Likewise.
2960 * sel-sched.c (find_ebb_boundaries): Likewise.
2962 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
2963 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
2965 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2967 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
2968 from rtx to rtx_insn *.
2969 (new_seginfo): Likewise for param "insn".
2970 (create_pre_exit): Likewise for locals "last_insn",
2971 "before_return_copy", "return_copy".
2972 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
2975 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2977 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
2978 from rtx to rtx_insn *.
2979 (lra_push_insn): Likewise for 1st param.
2980 (lra_push_insn_and_update_insn_regno_info): Likewise.
2981 (lra_pop_insn): Likewise for return type.
2982 (lra_invalidate_insn_data): Likewise for 1st param.
2983 (lra_set_insn_deleted): Likewise.
2984 (lra_delete_dead_insn): Likewise.
2985 (lra_process_new_insns): Likewise for first 3 params.
2986 (lra_set_insn_recog_data): Likewise for 1st param.
2987 (lra_update_insn_recog_data): Likewise.
2988 (lra_set_used_insn_alternative): Likewise.
2989 (lra_invalidate_insn_regno_info): Likewise.
2990 (lra_update_insn_regno_info): Likewise.
2991 (lra_former_scratch_operand_p): Likewise.
2992 (lra_eliminate_regs_1): Likewise.
2993 (lra_get_insn_recog_data): Likewise.
2995 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
2998 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3000 (substitute_within_insn): New.
3001 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3002 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3003 Replace call to "substitute" with call to substitute_within_insn.
3005 * lra-constraints.c (curr_insn): Strengthen from rtx to
3007 (get_equiv_with_elimination): Likewise for param "insn".
3008 (match_reload): Strengthen params "before" and "after" from rtx *
3010 (emit_spill_move): Likewise for return type. Add a checked cast
3011 to rtx_insn * on result of gen_move_insn for now.
3012 (check_and_process_move): Likewise for local "before". Replace
3013 NULL_RTX with NULL when referring to insns.
3014 (process_addr_reg): Strengthen params "before" and "after" from
3015 rtx * to rtx_insn **.
3016 (insert_move_for_subreg): Likewise.
3017 (simplify_operand_subreg): Strengthen locals "before" and "after"
3018 from rtx to rtx_insn *.
3019 (process_address_1): Strengthen params "before" and "after" from
3020 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3022 (process_address): Strengthen params "before" and "after" from
3023 rtx * to rtx_insn **.
3024 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3025 (curr_insn_transform): Strengthen locals "before" and "after"
3026 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3028 (loc_equivalence_callback): Update cast of "data", changing
3029 resulting type from rtx to rtx_insn *.
3030 (substitute_pseudo_within_insn): New.
3031 (inherit_reload_reg): Strengthen param "insn" from rtx to
3032 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3033 NULL when referring to insns. Add a checked cast to rtx_insn *
3034 when using usage_insn to invoke lra_update_insn_regno_info.
3035 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3036 likewise for locals "restore", "save". Add checked casts to
3037 rtx_insn * when using usage_insn to invoke
3038 lra_update_insn_regno_info and lra_process_new_insns. Replace
3039 NULL_RTX with NULL when referring to insns.
3040 (split_if_necessary): Strengthen param "insn" from rtx to
3042 (update_ebb_live_info): Likewise for params "head", "tail" and local
3044 (get_last_insertion_point): Likewise for return type and local "insn".
3045 (get_live_on_other_edges): Likewise for local "last".
3046 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3047 "prev_insn", "next_insn", "restore".
3048 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3049 (undo_optional_reloads): Likewise for local "insn".
3051 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3053 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3055 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3057 (spill_pseudos): Likewise for local "insn".
3058 (init_elimination): Likewise.
3059 (process_insn_for_elimination): Likewise for param "insn".
3061 * lra-lives.c (curr_insn): Likewise.;
3063 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3064 (remove_pseudos): Likewise for param "insn".
3065 (spill_pseudos): Likewise for local "insn".
3066 (lra_final_code_change): Likewise for locals "insn", "curr".
3068 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3069 (lra_set_insn_deleted): Likewise.
3070 (lra_delete_dead_insn): Likewise, and for local "prev".
3071 (new_insn_reg): Likewise for param "insn".
3072 (lra_set_insn_recog_data): Likewise.
3073 (lra_update_insn_recog_data): Likewise.
3074 (lra_set_used_insn_alternative): Likewise.
3075 (get_insn_freq): Likewise.
3076 (invalidate_insn_data_regno_info): Likewise.
3077 (lra_invalidate_insn_regno_info): Likewise.
3078 (lra_update_insn_regno_info): Likewise.
3079 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3081 (lra_push_insn_1): Strengthen param "insn" from rtx to
3083 (lra_push_insn): Likewise.
3084 (lra_push_insn_and_update_insn_regno_info): Likewise.
3085 (lra_pop_insn): Likewise for return type and local "insn".
3086 (push_insns): Likewise for params "from", "to", and local "insn".
3087 (setup_sp_offset): Likewise for params "from", "last" and locals
3089 (lra_process_new_insns): Likewise for params "insn", "before",
3090 "after" and local "last".
3091 (struct sloc): Likewise for field "insn".
3092 (lra_former_scratch_operand_p): Likewise for param "insn".
3093 (remove_scratches): Likewise for locals "insn", "last".
3094 (check_rtl): Likewise for local "insn".
3095 (add_auto_inc_notes): Likewise for param "insn".
3096 (update_inc_notes): Likewise for local "insn".
3097 (lra): Replace NULL_RTX with NULL when referring to insn.
3099 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3101 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3103 (resolve_reg_notes): Likewise.
3104 (resolve_simple_move): Likewise for return type, param "insn", and
3105 locals "insns", "minsn".
3106 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3107 (resolve_use): Likewise.
3108 (resolve_debug): Likewise.
3109 (find_decomposable_shift_zext): Likewise.
3110 (resolve_shift_zext): Likewise for return type, param "insn", and
3111 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3112 (decompose_multiword_subregs): Likewise for local "insn",
3113 "orig_insn", "decomposed_shift", "end".
3115 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3117 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3118 param "insns" from rtx to rtx_insn *.
3120 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3122 (struct iv_to_split): Likewise.
3123 (loop_exit_at_end_p): Likewise for local "insn".
3124 (split_edge_and_insert): Likewise for param "insns".
3125 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3126 and locals "seq", "jump".
3127 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3128 "branch_code"; update invocations of compare_and_jump_seq to
3129 eliminate NULL_RTX in favor of NULL.
3130 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3132 (reset_debug_uses_in_loop): Likewise.
3133 (analyze_insn_to_expand_var): Likewise for param "insn".
3134 (analyze_iv_to_split_insn): Likewise.
3135 (analyze_insns_in_loop): Likewise for local "insn".
3136 (insert_base_initialization): Likewise for param
3137 "insn" and local "seq".
3138 (split_iv): Likewise for param "insn" and local "seq".
3139 (expand_var_during_unrolling): Likewise for param "insn".
3140 (insert_var_expansion_initialization): Likewise for local "seq".
3141 (combine_var_copies_in_loop_exit): Likewise.
3142 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3144 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3145 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3148 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3150 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3152 (iv_analyze_result): Likewise.
3153 (iv_analyze_expr): Likewise.
3156 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3157 local "def_insn" from rtx to rtx_insn *.
3158 (get_biv_step_1): Likewise for local "insn".
3159 (iv_analyze_expr): Likewise for param "insn".
3160 (iv_analyze_def): Likewise for local "insn".
3161 (iv_analyze_op): Likewise for param "insn".
3162 (iv_analyze): Likewise.
3163 (iv_analyze_result): Likewise.
3165 (suitable_set_for_replacement): Likewise.
3166 (simplify_using_initial_values): Likewise for local "insn".
3167 (iv_number_of_iterations): Likewise for param "insn".
3168 (check_simple_exit): Add checked cast to rtx_insn when invoking
3169 iv_number_of_iterations for now (until get_condition is
3172 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3173 "insn" from rtx to rtx_insn *.
3174 (analyze_insns_in_loop): Likewise for local "insn".
3176 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3178 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3180 (struct invariant): Likewise.
3181 (hash_invariant_expr_1): Likewise for param "insn".
3182 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3183 (find_exits): Likewise for local "insn".
3184 (create_new_invariant): Likewise for param "insn".
3185 (check_dependencies): Likewise.
3186 (find_invariant_insn): Likewise.
3187 (record_uses): Likewise.
3188 (find_invariants_insn): Likewise.
3189 (find_invariants_bb): Likewise for local "insn".
3190 (get_pressure_class_and_nregs): Likewise for param "insn".
3191 (calculate_loop_reg_pressure): Likewise for local "insn".
3193 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3195 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3197 (add_test): Likewise for locals "seq", "jump".
3198 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3200 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3202 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3204 (rebuild_jump_labels_chain): Likewise for param "chain".
3206 * cfgexpand.c (pass_expand::execute): Add checked cast to
3207 rtx_insn * when calling rebuild_jump_labels_chain in region where
3208 we know e->insns.r is non-NULL.
3210 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3212 (rebuild_jump_labels): Likewise.
3213 (rebuild_jump_labels_chain): Likewise for param "chain".
3214 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3215 (init_label_info): Likewise for param "f".
3216 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3217 "prev_nonjump_insn".
3218 (mark_all_labels): Likewise for param "f" and locals "insn",
3219 "prev_nonjump_insn".
3221 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3223 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3224 from rtx to rtx_insn *insn.
3225 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3226 (ira_add_allocno_copy): Likewise.
3227 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3229 (ira_create_copy): Likewise.
3230 (ira_add_allocno_copy): Likewise.
3231 (create_bb_allocnos): Likewise for local "insn".
3232 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3233 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3234 process_regs_for_copy for rtx_insn * param.
3235 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3236 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3237 process_regs_for_copy for rtx_insn * param.
3238 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3239 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3240 (record_operand_costs): Likewise.
3241 (scan_one_insn): Likewise for return type, and for param "insn".
3242 (process_bb_for_costs): Likewise for local "insn".
3243 (process_bb_node_for_hard_reg_moves): Likewise.
3244 * ira-emit.c (struct move): Likewise for field "insn".
3245 (create_move): Eliminate use of NULL_RTX when dealing with an
3247 (emit_move_list): Strengthen return type and locals "result",
3248 "insn" from rtx to rtx_insn *insn.
3249 (emit_moves): Likewise for locals "insns", "tmp".
3250 (ira_emit): Likewise for local "insn".
3251 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3253 (find_call_crossed_cheap_reg): Likewise.
3254 (process_bb_node_lives): Likewise for local "insn".
3255 * ira.c (decrease_live_ranges_number): Likewise.
3256 (compute_regs_asm_clobbered): Likewise.
3257 (build_insn_chain): Likewise.
3258 (find_moveable_pseudos): Likewise, also locals "def_insn",
3259 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
3260 to rtx_insn **. Add a checked cast when assigning from
3261 "closest_use" into closest_uses array in a region where we know
3262 it's a non-NULL insn.
3263 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3265 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3266 "last_interesting_insn", "uin".
3267 (move_unallocated_pseudos): Likewise for locals "def_insn",
3268 "move_insn", "newinsn".
3270 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3272 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
3273 Strengthen locals "done_label", "do_error" from rtx to
3275 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
3276 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
3278 (ubsan_expand_si_overflow_neg_check): Likewise for locals
3279 "done_label", "do_error" to rtx_code_label * and local "last" to
3281 (ubsan_expand_si_overflow_mul_check): Likewise for locals
3282 "done_label", "do_error", "large_op0", "small_op0_large_op1",
3283 "one_small_one_large", "both_ops_large", "after_hipart_neg",
3284 "after_lopart_neg", "do_overflow", "hipart_different" to
3285 rtx_code_label * and local "last" to rtx_insn *.
3287 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3289 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
3290 "insn" and "move_insn" from rtx to rtx_insn *.
3292 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3294 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
3296 (cheap_bb_rtx_cost_p): Likewise.
3297 (first_active_insn): Likewise for return type and local "insn".
3298 (last_active_insn): Likewise for return type and locals "insn",
3300 (struct noce_if_info): Likewise for fields "jump", "insn_a",
3302 (end_ifcvt_sequence): Likewise for return type and locals "insn",
3304 (noce_try_move): Likewise for local "seq".
3305 (noce_try_store_flag): Likewise.
3306 (noce_try_store_flag_constants): Likewise.
3307 (noce_try_addcc): Likewise.
3308 (noce_try_store_flag_mask): Likewise.
3309 (noce_try_cmove): Likewise.
3310 (noce_try_minmax): Likewise.
3311 (noce_try_abs): Likewise.
3312 (noce_try_sign_mask): Likewise.
3313 (noce_try_bitop): Likewise.
3314 (noce_can_store_speculate_p): Likewise for local "insn".
3315 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
3317 (check_cond_move_block): Likewise for local "insn".
3318 (cond_move_convert_if_block): Likewise.
3319 (cond_move_process_if_block): Likewise for locals "seq",
3321 (noce_find_if_block): Likewise for local "jump".
3322 (merge_if_block): Likewise for local "last".
3323 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
3324 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
3325 (block_has_only_trap): Likewise for return type and local "trap".
3326 (find_if_case_1): Likewise for local "jump".
3327 (dead_or_predicable): Likewise for locals "head", "end", "jump",
3330 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3332 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
3333 "last_insn", "loop_end" from rtx to rtx_insn *.
3335 * hw-doloop.c (scan_loop): Likewise for local "insn".
3336 (discover_loop): Likewise for param "tail_insn".
3337 (discover_loops): Likewise for local "tail".
3339 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
3340 cast to rtx_insn * when assigning from an rtx local to a
3341 hwloop_info's "last_insn" field.
3343 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3345 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
3346 (add_delay_dependencies): Strengthen local "pro" from rtx to
3348 (recompute_todo_spec): Likewise.
3349 (dep_cost_1): Likewise for locals "insn", "used".
3350 (schedule_insn): Likewise for local "dbg".
3351 (schedule_insn): Likewise for locals "pro", "next".
3352 (unschedule_insns_until): Likewise for local "con".
3353 (restore_pattern): Likewise for local "next".
3354 (estimate_insn_tick): Likewise for local "pro".
3355 (resolve_dependencies): Likewise for local "next".
3356 (fix_inter_tick): Likewise.
3357 (fix_tick_ready): Likewise for local "pro".
3358 (add_to_speculative_block): Likewise for locals "check", "twin",
3360 (sched_extend_bb): Likewise for locals "end", "insn".
3361 (init_before_recovery): Likewise for local "x".
3362 (sched_create_recovery_block): Likewise for local "barrier".
3363 (create_check_block_twin): Likewise for local "pro".
3364 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
3366 (unlink_bb_notes): Update for change to type of bb_header.
3367 Strengthen locals "prev", "label", "note", "next" from rtx to
3369 (clear_priorities): Likewise for local "pro".
3371 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3373 * gcse.c (struct occr): Strengthen field "insn" from rtx to
3375 (test_insn): Likewise for this global.
3376 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
3378 (oprs_anticipatable_p): Likewise.
3379 (oprs_available_p): Likewise.
3380 (insert_expr_in_table): Strengthen param "insn" from rtx to
3382 (hash_scan_set): Likewise.
3383 (hash_scan_clobber): Likewise.
3384 (hash_scan_call): Likewise.
3385 (hash_scan_insn): Likewise.
3386 (compute_hash_table_work): Likewise for local "insn".
3387 (process_insert_insn): Likewise for return type and local "pat".
3388 (insert_insn_end_basic_block): Likewise for locals "new_insn",
3389 "pat", "pat_end", "maybe_cc0_setter".
3390 (pre_edge_insert): Likewise for local "insn".
3391 (pre_insert_copy_insn): Likewise for param "insn".
3392 (pre_insert_copies): Likewise for local "insn".
3393 (struct set_data): Likewise for field "insn".
3394 (single_set_gcse): Likewise for param "insn".
3395 (gcse_emit_move_after): Likewise.
3396 (pre_delete): Likewise for local "insn".
3397 (update_bb_reg_pressure): Likewise for param "from" and local
3399 (should_hoist_expr_to_dom): Likewise for param "from".
3400 (hoist_code): Likewise for local "insn".
3401 (get_pressure_class_and_nregs): Likewise for param "insn".
3402 (calculate_bb_reg_pressure): Likewise for local "insn".
3403 (compute_ld_motion_mems): Likewise.
3405 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3407 * genpeep.c (main): Rename param back from "uncast_ins1" to
3408 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
3411 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
3413 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3416 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
3417 documentation to state it is only for VSX operations.
3419 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
3420 constraint only active if VSX.
3422 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
3423 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
3426 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3428 * fwprop.c (single_def_use_dom_walker::before_dom_children):
3429 Strengthen local "insn" from rtx to rtx_insn *.
3430 (use_killed_between): Likewise for param "target_insn".
3431 (all_uses_available_at): Likewise for param "target_insn" and
3433 (update_df_init): Likewise for params "def_insn", "insn".
3434 (update_df): Likewise for param "insn".
3435 (try_fwprop_subst): Likewise for param "def_insn" and local
3437 (free_load_extend): Likewise for param "insn".
3438 (forward_propagate_subreg): Likewise for param "def_insn" and
3440 (forward_propagate_asm): Likewise for param "def_insn" and local
3442 (forward_propagate_and_simplify): Likewise for param "def_insn"
3443 and local "use_insn".
3444 (forward_propagate_into): Likewise for locals "def_insn" and
3447 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3449 * function.c (emit_initial_value_sets): Strengthen local "seq"
3450 from rtx to rtx_insn *.
3451 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
3453 (instantiate_virtual_regs): Likewise for local "insn".
3454 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
3455 (reorder_blocks_1): Likewise for param "insns" and local "insn".
3456 (expand_function_end): Likewise for locals "insn" and "seq".
3457 (epilogue_done): Likewise for local "insn".
3458 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
3460 (reposition_prologue_and_epilogue_notes): Likewise for locals
3461 "insn", "last", "note", "first".
3462 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
3463 (pass_match_asm_constraints::execute): Likewise for local "insn".
3465 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3467 * output.h (final_scan_insn): Strengthen return type from rtx to
3469 (final_forward_branch_p): Likewise for param.
3470 (current_output_insn): Likewise for this global.
3472 * final.c (rtx debug_insn): Likewise for this variable.
3473 (current_output_insn): Likewise.
3474 (get_attr_length_1): Rename param "insn" to "uncast_insn",
3475 adding "insn" back in as an rtx_insn * with a checked cast, so
3476 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
3478 (compute_alignments): Strengthen local "label" from rtx to
3480 (shorten_branches): Rename param from "first" to "uncast_first",
3481 introducing a new local rtx_insn * "first" using a checked cast to
3482 effectively strengthen "first" from rtx to rtx_insn * without
3483 affecting the type signature. Strengthen locals "insn", "seq",
3484 "next", "label" from rtx to rtx_insn *.
3485 (change_scope): Strengthen param "orig_insn" and local "insn" from
3487 (final_start_function): Rename param from "first" to "uncast_first",
3488 introducing a new local rtx_insn * "first" using a checked cast to
3489 effectively strengthen "first" from rtx to rtx_insn * without
3490 affecting the type signature. Strengthen local "insn" from rtx to
3492 (dump_basic_block_info): Strengthen param "insn" from rtx to
3494 (final): Rename param from "first" to "uncast_first",
3495 introducing a new local rtx_insn * "first" using a checked cast to
3496 effectively strengthen "first" from rtx to rtx_insn * without
3497 affecting the type signature. Strengthen locals "insn", "next"
3498 from rtx to rtx_insn *.
3499 (output_alternate_entry_point): Strengthen param "insn" from rtx to
3501 (call_from_call_insn): Strengthen param "insn" from rtx to
3503 (final_scan_insn): Rename param from "insn" to "uncast_insn",
3504 introducing a new local rtx_insn * "insn" using a checked cast to
3505 effectively strengthen "insn" from rtx to rtx_insn * without
3506 affecting the type signature. Strengthen return type and locals
3507 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
3508 now-redundant checked cast to rtx_insn * from both invocations of
3509 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
3510 introducing a local "call_insn" for use when invoking
3511 call_from_call_insn.
3512 (notice_source_line): Strengthen param "insn" from rtx to
3514 (leaf_function_p): Likewise for local "insn".
3515 (final_forward_branch_p): Likewise.
3516 (leaf_renumber_regs): Likewise for param "first".
3517 (rest_of_clean_state): Likewise for locals "insn" and "next".
3518 (self_recursive_call_p): Likewise for param "insn".
3519 (collect_fn_hard_reg_usage): Likewise for local "insn".
3520 (get_call_fndecl): Likewise for param "insn".
3521 (get_call_cgraph_rtl_info): Likewise.
3522 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
3523 introducing a new local rtx_insn * "insn" using a checked cast to
3524 effectively strengthen "insn" from rtx to rtx_insn * without
3525 affecting the type signature.
3527 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
3528 cast when assigning from param "insn" to current_output_insn.
3529 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
3530 so that we can assign it back to current_output_insn.
3532 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3534 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
3535 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
3536 atmxt540s and atmxt540sreva devices.
3537 * config/avr/avr-tables.opt: Regenerate.
3538 * config/avr/t-multilib: Regenerate.
3539 * doc/avr-mmcu.texi: Regenerate.
3541 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3543 * expr.c (convert_move): Strengthen local "insns" from rtx to
3545 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
3546 "top_label" from rtx to rtx_code_label *.
3547 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
3549 (emit_single_push_insn): Likewise for locals "prev", "last".
3550 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
3551 to rtx_code_label *.
3552 (store_constructor): Likewise for locals "loop_start", "loop_end".
3553 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
3555 (expand_expr_real_2): Likewise.
3556 (expand_expr_real_1): Strengthen local "label" from rtx to
3559 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3561 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
3562 from rtx to rtx_insn *.
3563 (store_bit_field_1): Likewise.
3564 (extract_bit_field_1): Likewise.
3565 (expand_mult_const): Likewise for local "insns".
3566 (expmed_mult_highpart): Strengthen local "label" from rtx to
3568 (expand_smod_pow2): Likewise.
3569 (expand_sdiv_pow2): Likewise.
3570 (expand_divmod): Strengthen locals "last", "insn" from rtx to
3571 rtx_insn *. Strengthen locals "label", "label1", "label2",
3572 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
3573 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
3574 (emit_store_flag): Likewise.
3575 (emit_store_flag_force): Strengthen local "label" from rtx to
3577 (do_cmp_and_jump): Likewise for param "label".
3579 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3581 * explow.c (force_reg): Strengthen local "insn" from rtx to
3583 (adjust_stack_1): Likewise.
3584 (allocate_dynamic_stack_space): Likewise. Strengthen locals
3585 "final_label", "available_label", "space_available" from rtx to
3587 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
3588 (anti_adjust_stack_and_probe): Likewise.
3590 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3592 * except.h (sjlj_emit_function_exit_after): Strengthen param
3593 "after" from rtx to rtx_insn *. This is only called with
3594 result of get_last_insn (in function.c) so type-change should be
3597 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
3598 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
3599 to rtx_insn *. These fields are only used from except.c so this
3600 type-change should be self-contained to this patch.
3602 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
3603 local "last" from rtx to rtx_insn *.
3604 (dw2_build_landing_pads): Likewise for local "seq".
3605 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
3606 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
3607 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
3609 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
3611 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
3612 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
3613 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
3614 referring to an insn. Strengthen local "dispatch_label" from
3615 rtx to rtx_code_label *.
3616 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
3618 (expand_eh_return): Strengthen local "around_label" from
3619 rtx to rtx_code_label *.
3620 (convert_to_eh_region_ranges): Strengthen locals "iter",
3621 "last_action_insn", "first_no_action_insn",
3622 "first_no_action_insn_before_switch",
3623 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
3625 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3627 * dwarf2out.c (last_var_location_insn): Strengthen this variable
3628 from rtx to rtx_insn *.
3629 (cached_next_real_insn): Likewise.
3630 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
3632 (dwarf2out_var_location): Strengthen locals "next_real",
3633 "next_note", "expected_next_loc_note", "last_start", "insn" from
3636 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3638 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
3639 from rtx to rtx_insn *.
3640 (create_pseudo_cfg): Likewise for local "insn".
3642 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3644 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
3645 from rtx to rtx_insn *.
3646 (df_bb_regno_last_def_find): Likewise.
3648 * df-problems.c (df_rd_bb_local_compute): Likewise.
3649 (df_lr_bb_local_compute): Likewise.
3650 (df_live_bb_local_compute): Likewise.
3651 (df_chain_remove_problem): Likewise.
3652 (df_chain_create_bb): Likewise.
3653 (df_word_lr_bb_local_compute): Likewise.
3654 (df_remove_dead_eq_notes): Likewise for param "insn".
3655 (df_note_bb_compute): Likewise for local "insn".
3656 (simulate_backwards_to_point): Likewise.
3657 (df_md_bb_local_compute): Likewise.
3659 * df-scan.c (df_scan_free_bb_info): Likewise.
3660 (df_scan_start_dump): Likewise.
3661 (df_scan_start_block): Likewise.
3662 (df_install_ref_incremental): Likewise for local "insn".
3663 (df_insn_rescan_all): Likewise.
3664 (df_reorganize_refs_by_reg_by_insn): Likewise.
3665 (df_reorganize_refs_by_insn_bb): Likewise.
3666 (df_recompute_luids): Likewise.
3667 (df_bb_refs_record): Likewise.
3668 (df_update_entry_exit_and_calls): Likewise.
3669 (df_bb_verify): Likewise.
3671 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3673 * ddg.h (struct ddg_node): Strengthen fields "insn" and
3674 "first_note" from rtx to rtx_insn *.
3675 (get_node_of_insn): Likewise for param 2 "insn".
3676 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
3678 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
3680 (mem_write_insn_p): Likewise.
3681 (mem_access_insn_p): Likewise.
3682 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
3683 (def_has_ccmode_p): Likewise for param "insn".
3684 (add_cross_iteration_register_deps): Likewise for locals
3685 "def_insn" and "use_insn".
3686 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
3687 (build_intra_loop_deps): Likewise for local "src_insn".
3688 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
3690 (get_node_of_insn): Likewise for param "insn".
3692 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3694 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
3695 (deletable_insn_p): Strengthen param "insn" from rtx to
3696 rtx_insn *. Add checked cast to rtx_call_insn when invoking
3697 find_call_stack_args, since this is guarded by CALL_P (insn).
3698 (marked_insn_p): Strengthen param "insn" from rtx to
3700 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
3701 invoking find_call_stack_args, since this is guarded by
3703 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
3704 rtx_insn *; we know this is an insn since this was called by
3706 (mark_nonreg_stores_2): Likewise.
3707 (mark_nonreg_stores): Strengthen param "insn" from rtx to
3709 (find_call_stack_args): Strengthen param "call_insn" from rtx to
3710 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
3712 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
3713 from rtx to rtx_insn *.
3714 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
3716 (delete_unmarked_insns): Likewise for locals "insn", "next".
3717 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
3718 (mark_reg_dependencies): Likewise for param "insn".
3719 (rest_of_handle_ud_dce): Likewise for local "insn".
3720 (word_dce_process_block): Likewise.
3721 (dce_process_block): Likewise.
3723 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3725 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
3726 from rtx to rtx_insn *.
3727 (struct change_cc_mode_args): Likewise for field "insn".
3728 (this_insn): Strengthen from rtx to rtx_insn *.
3729 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
3731 (validate_canon_reg): Strengthen param "insn" from rtx to
3733 (canon_reg): Likewise.
3734 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
3736 (record_jump_equiv): Strengthen param "insn" from rtx to
3738 (try_back_substitute_reg): Likewise, also for locals "prev",
3740 (find_sets_in_insn): Likewise for param "insn".
3741 (canonicalize_insn): Likewise.
3742 (cse_insn): Likewise. Add a checked cast.
3743 (invalidate_from_clobbers): Likewise for param "insn".
3744 (invalidate_from_sets_and_clobbers): Likewise.
3745 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
3747 (cse_prescan_path): Strengthen local "insn" from rtx to
3749 (cse_extended_basic_block): Likewise for locals "insn" and
3751 (cse_main): Likewise for param "f".
3752 (check_for_label_ref): Likewise for local "insn".
3753 (set_live_p): Likewise for second param ("insn").
3754 (insn_live_p): Likewise for first param ("insn") and for local
3756 (cse_change_cc_mode_insn): Likewise for first param "insn".
3757 (cse_change_cc_mode_insns): Likewise for first and second params
3759 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
3761 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
3764 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
3765 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3766 Anna Tikhonova <anna.tikhonova@intel.com>
3767 Ilya Tocar <ilya.tocar@intel.com>
3768 Andrey Turetskiy <andrey.turetskiy@intel.com>
3769 Ilya Verbin <ilya.verbin@intel.com>
3770 Kirill Yukhin <kirill.yukhin@intel.com>
3771 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3773 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
3775 * config/i386/sse.md
3776 (define_mode_iterator VI248_AVX2): Delete.
3777 (define_mode_iterator VI2_AVX2_AVX512BW): New.
3778 (define_mode_iterator VI48_AVX2): Ditto.
3779 (define_insn <shift_insn><mode>3): Delete.
3780 (define_insn "<shift_insn><mode>3<mask_name>" with
3781 VI2_AVX2_AVX512BW): New.
3782 (define_insn "<shift_insn><mode>3<mask_name>" with
3785 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
3786 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3787 Anna Tikhonova <anna.tikhonova@intel.com>
3788 Ilya Tocar <ilya.tocar@intel.com>
3789 Andrey Turetskiy <andrey.turetskiy@intel.com>
3790 Ilya Verbin <ilya.verbin@intel.com>
3791 Kirill Yukhin <kirill.yukhin@intel.com>
3792 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3794 * config/i386/sse.md
3795 (define_mode_iterator VI4F_BRCST32x2): New.
3796 (define_mode_attr 64x2_mode): Ditto.
3797 (define_mode_attr 32x2mode): Ditto.
3798 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
3799 with VI4F_BRCST32x2): Ditto.
3800 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
3801 with V16FI mode iterator): Ditto.
3802 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
3804 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
3805 with VI8F_BRCST64x2): Ditto.
3807 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
3808 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3809 Anna Tikhonova <anna.tikhonova@intel.com>
3810 Ilya Tocar <ilya.tocar@intel.com>
3811 Andrey Turetskiy <andrey.turetskiy@intel.com>
3812 Ilya Verbin <ilya.verbin@intel.com>
3813 Kirill Yukhin <kirill.yukhin@intel.com>
3814 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3816 * config/i386/sse.md
3817 (define_mode_iterator VI8_AVX512VL): New.
3818 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
3820 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
3822 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
3823 (define_mode_iterator V48_AVX512VL): New.
3824 (define_mode_iterator V12_AVX512VL): Ditto.
3825 (define_insn <avx512>_load<mode>_mask): Split into two similar
3826 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
3827 Refactor output template.
3828 (define_insn "<avx512>_store<mode>_mask"): Ditto.
3830 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3832 * cprop.c (struct occr): Strengthen field "insn" from rtx to
3834 (reg_available_p): Likewise for param "insn".
3835 (insert_set_in_table): Likewise.
3836 (hash_scan_set): Likewise.
3837 (hash_scan_insn): Likewise.
3838 (make_set_regs_unavailable): Likewise.
3839 (compute_hash_table_work): Likewise for local "insn".
3840 (reg_not_set_p): Strengthen param "insn" from const_rtx to
3842 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
3843 (try_replace_reg): Likewise.
3844 (find_avail_set): Likewise.
3845 (cprop_jump): Likewise for params "setcc", "jump".
3846 (constprop_register): Likewise for param "insn".
3847 (cprop_insn): Likewise.
3848 (do_local_cprop): Likewise.
3849 (local_cprop_pass): Likewise for local "insn".
3850 (bypass_block): Likewise for params "setcc" and "jump".
3851 (bypass_conditional_jumps): Likewise for locals "setcc" and
3853 (one_cprop_pass): Likewise for local "insn".
3855 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3857 * compare-elim.c (struct comparison_use): Strengthen field "insn"
3858 from rtx to rtx_insn *.
3859 (struct comparison): Likewise, also for field "prev_clobber".
3860 (conforming_compare): Likewise for param "insn".
3861 (arithmetic_flags_clobber_p): Likewise.
3862 (find_flags_uses_in_insn): Likewise.
3863 (find_comparison_dom_walker::before_dom_children): Likewise for
3864 locals "insn", "next", "last_clobber".
3865 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
3867 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3869 * combine-stack-adj.c (struct csa_reflist): Strengthen field
3870 "insn" from rtx to rtx_insn *.
3871 (single_set_for_csa): Likewise for param "insn".
3872 (record_one_stack_ref): Likewise.
3873 (try_apply_stack_adjustment): Likewise.
3874 (struct record_stack_refs_data): Likewise for field "insn".
3875 (maybe_move_args_size_note): Likewise for params "last" and "insn".
3876 (prev_active_insn_bb): Likewise for return type and param "insn".
3877 (next_active_insn_bb): Likewise.
3878 (force_move_args_size_note): Likewise for params "prev" and "last"
3879 and locals "test", "next_candidate", "prev_candidate".
3880 (combine_stack_adjustments_for_block): Strengthen locals
3881 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
3884 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3886 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
3887 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
3888 (subst_insn): Likewise for this variable.
3889 (added_links_insn): Likewise.
3890 (struct insn_link): Likewise for field "insn".
3891 (alloc_insn_link): Likewise for param "insn".
3892 (struct undobuf): Likewise for field "other_insn".
3893 (find_single_use): Likewise for param "insn" and local "next".
3894 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
3895 (delete_noop_moves): Likewise for locals "insn", "next".
3896 (create_log_links): Likewise for locals "insn", "use_insn".
3897 Strengthen local "next_use" from rtx * to rtx_insn **.
3898 (insn_a_feeds_b): Likewise for params "a", "b".
3899 (combine_instructions): Likewise for param "f" and locals "insn",
3900 "next", "prev", "first", "last_combined_insn", "link", "link1",
3901 "temp". Replace use of NULL_RTX with NULL when referring to
3903 (setup_incoming_promotions): Likewise for param "first"
3904 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
3905 (can_combine_p): Likewise for params "insn", "i3", "pred",
3906 "pred2", "succ", "succ2" and for local "p".
3907 (combinable_i3pat): Likewise for param "i3".
3908 (cant_combine_insn_p): Likewise for param "insn".
3909 (likely_spilled_retval_p): Likewise.
3910 (adjust_for_new_dest): Likewise.
3911 (update_cfg_for_uncondjump): Likewise, also for local "insn".
3912 (try_combine): Likewise for return type and for params "i3", "i2",
3913 "i1", "i0", "last_combined_insn", and for locals "insn",
3914 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
3915 "i0_insn". Eliminate local "tem" in favor of new locals
3916 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
3917 checked cast for now to rtx_insn * on the return type of
3918 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
3920 (find_split_point): Strengthen param "insn" from rtx to
3922 (simplify_set): Likewise for local "other_insn".
3923 (recog_for_combine): Likewise for param "insn".
3924 (record_value_for_reg): Likewise.
3925 (record_dead_and_set_regs_1): Likewise for local
3927 (record_dead_and_set_regs): Likewise for param "insn".
3928 (record_promoted_value): Likewise.
3929 (check_promoted_subreg): Likewise.
3930 (get_last_value_validate): Likewise.
3931 (reg_dead_at_p): Likewise.
3932 (move_deaths): Likewise for param "to_insn".
3933 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
3934 and locals "place", "place2", "cc0_setter". Eliminate local "tem
3935 in favor of new locals "tem_note" and "tem_insn", the latter being
3937 (distribute_links): Strengthen locals "place", "insn" from rtx to
3940 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3942 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
3944 (can_delete_label_p): Require a const rtx_code_label * rather than
3946 (delete_insn): Add checked cast to rtx_code_label * when we know
3947 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
3949 (delete_insn_chain): Strengthen locals "prev" and "current" from
3950 rtx to rtx_insn *. Add a checked cast when assigning from
3951 "finish" (strengthening the params will come later). Add a
3952 checked cast to rtx_note * in region where we know
3954 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
3956 (compute_bb_for_insn): Likewise.
3957 (free_bb_for_insn): Likewise for local "insn".
3958 (compute_bb_for_insn): Likewise.
3959 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
3960 local "insn" from rtx to rtx_insn *
3961 (flow_active_insn_p): Require a const rtx_insn * rather than a
3963 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
3965 (can_fallthru): Likewise for locals "insn" and "insn2".
3966 (bb_note): Likewise for local "note".
3967 (first_insn_after_basic_block_note): Likewise for local "note" and
3969 (rtl_split_block): Likewise for locals "insn" and "next".
3970 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
3972 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
3973 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
3975 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
3976 them), "kill_from", "barrier", "new_insn".
3977 (patch_jump_insn): Likewise for params "insn", "old_label".
3978 (redirect_branch_edge): Likewise for locals "old_label", "insn".
3979 (force_nonfallthru_and_redirect): Likewise for locals "insn",
3980 "old_label", "new_label".
3981 (rtl_tidy_fallthru_edge): Likewise for local "q".
3982 (rtl_split_edge): Likewise for locals "before", "last".
3983 (commit_one_edge_insertion): Likewise for locals "before",
3984 "after", "insns", "tmp", "last", adding a checked cast where
3985 currently necessary.
3986 (commit_edge_insertions): Likewise.
3987 (rtl_dump_bb): Likewise for locals "insn", "last".
3988 (print_rtl_with_bb): Likewise for local "x".
3989 (rtl_verify_bb_insns): Likewise for local "x".
3990 (rtl_verify_bb_pointers): Likewise for local "insn".
3991 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
3993 (rtl_verify_fallthru): Likewise for local "insn".
3994 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
3995 (purge_dead_edges): Likewise for local "insn".
3996 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
3997 (skip_insns_after_block): Likewise for return type and for locals
3998 "insn", "last_insn", "next_head", "prev".
3999 (record_effective_endpoints): Likewise for locals "next_insn",
4001 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4002 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4003 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4004 (duplicate_insn_chain): For now, add checked cast from rtx to
4005 rtx_insn * when returning insn.
4006 (cfg_layout_duplicate_bb): Likewise for local "insn".
4007 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4009 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4010 (rtl_block_empty_p): Likewise.
4011 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4012 "split_point", "last".
4013 (rtl_block_ends_with_call_p): Likewise for local "insn".
4014 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4016 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4017 "split_at_insn" from rtx to rtx_insn *.
4018 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4019 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4020 to const rtx_insn *.
4021 (rtl_account_profile_record): Likewise.
4023 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4025 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4027 (average_num_loop_insns): Likewise.
4028 (init_set_costs): Likewise for local "seq".
4029 (seq_cost): Likewise for param "seq", from const_rtx to const
4032 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4034 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4037 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4039 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4040 "f1" and "f2" from rtx * to rtx_insn **.
4041 (flow_find_head_matching_sequence): Likewise.
4043 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4044 "cbranch_insn" from rtx to rtx_insn *.
4045 (thread_jump): Likewise for local "insn".
4046 (try_forward_edges): Likewise for local "last".
4047 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4048 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4050 (can_replace_by): Likewise for params "i1", "i2".
4051 (old_insns_match_p): Likewise.
4052 (merge_notes): Likewise.
4053 (walk_to_nondebug_insn): Likewise for param "i1".
4054 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4055 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4056 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4057 (flow_find_head_matching_sequence): Strengthen params "f1" and
4058 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4059 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4061 (outgoing_edges_match): Likewise for locals "last1", "last2".
4062 (try_crossjump_to_edge): Likewise for local "insn".
4063 Replace call to for_each_rtx with for_each_rtx_in_insn.
4065 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4066 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4067 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4068 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4069 (try_optimize_cfg): Strengthen local "last" from rtx to
4071 (delete_dead_jumptables): Likewise for locals "insn", "next",
4074 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4075 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4076 "rtx else_first_tail", to reflect the basic-block.h changes above.
4078 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4080 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4082 (purge_dead_tablejump_edges): Likewise.
4083 (find_bb_boundaries): Likewise for locals "insn", "end",
4084 "flow_transfer_insn".
4086 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4088 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4089 "ins" and "prev" from rtx to rtx_insn *.
4091 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4093 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4095 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4096 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4098 (load_register_parameters): Likewise for local "before_arg".
4099 (check_sibcall_argument_overlap): Likewise for param "insn".
4100 (expand_call): Likewise for locals "normal_call_insns",
4101 "tail_call_insns", "insns", "before_call", "after_args",
4102 "before_arg", "last", "prev". Strengthen one of the "last" from
4103 rtx to rtx_call_insn *.
4104 (fixup_tail_calls): Strengthen local "insn" from rtx to
4106 (emit_library_call_value_1): Likewise for locals "before_call" and
4109 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4111 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4112 and "last" from rtx to rtx_insn *.
4113 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4114 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4116 (expand_errno_check): Strengthen local "lab" from rtx to
4118 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4120 (expand_builtin_mathfn_2): Likewise.
4121 (expand_builtin_mathfn_ternary): Likewise.
4122 (expand_builtin_mathfn_3): Likewise.
4123 (expand_builtin_interclass_mathfn): Likewise for local "last".
4124 (expand_builtin_int_roundingfn): Likewise for local "insns".
4125 (expand_builtin_int_roundingfn_2): Likewise.
4126 (expand_builtin_strlen): Likewise for local "before_strlen".
4127 (expand_builtin_strncmp): Likewise for local "seq".
4128 (expand_builtin_signbit): Likewise for local "last".
4129 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4130 from rtx to rtx_code_label *.
4131 (expand_stack_restore): Strengthen local "prev" from rtx to
4134 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4136 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4138 (struct btr_def_s): Likewise.
4139 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4141 (add_btr_def): Likewise.
4142 (new_btr_user): Likewise.
4143 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4145 (link_btr_uses): Likewise.
4146 (move_btr_def): Likewise for locals "insp", "old_insn",
4147 "new_insn". Add checked cast to rtx_insn * for now on result of
4149 (can_move_up): Strengthen param "insn" from const_rtx to
4152 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4154 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4156 (get_uncond_jump_length): Likewise for locals "label", "jump".
4157 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4159 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4160 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4161 (find_jump_block): Likewise for local "insn".
4162 (fix_crossing_conditional_branches): Likewise for locals
4163 "old_jump", "new_jump".
4164 (fix_crossing_unconditional_branches): Likewise for locals
4165 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4166 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4168 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4170 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4172 (struct mem_insn): Likewise for field "insn".
4173 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4174 (reg_next_inc_use): Likewise.
4175 (reg_next_def): Likewise.
4176 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4177 from rtx to rtx_insn *.
4178 (move_insn_before): Likewise for param "next_insn" and local "insns".
4179 (attempt_change): Likewise for local "mov_insn".
4180 (try_merge): Likewise for param "last_insn".
4181 (get_next_ref): Likewise for return type and local "insn".
4182 Strengthen param "next_array" from rtx * to rtx_insn **.
4183 (parse_add_or_inc): Strengthen param "insn" from rtx to
4185 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4187 (merge_in_block): Likewise for locals "insn", "curr",
4189 (pass_inc_dec::execute): Update allocations of the arrays to
4190 reflect the stronger types.
4192 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4194 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4195 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4196 from rtx to rtx_code_label *.
4198 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4200 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4203 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4205 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4206 generated a warning and prevented bootstrapping the compiler.
4208 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4210 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4213 * jump.c (delete_related_insns): Likewise, also for locals "next"
4216 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4218 * genautomata.c (output_internal_insn_latency_func): When writing
4219 the function "internal_insn_latency" to insn-automata.c,
4220 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4221 allowing the optional guard function of (define_bypass) clauses to
4222 expect a pair of rtx_insn *, rather than a pair of rtx.
4223 (output_insn_latency_func): When writing the function
4224 "insn_latency", add an "uncast_" prefix to params "insn" and
4225 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4226 using checked casts from the params, thus enabling the above
4227 change to the generated "internal_insn_latency" function.
4229 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4231 PR tree-optimization/62091
4232 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4233 handle correctly arrays.
4234 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4236 (record_known_type): Walk into inner type.
4237 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4238 condition on no type changes.
4240 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4242 * genattrtab.c (write_attr_get): Within the generated get_attr_
4243 functions, rename param "insn" to "uncast_insn" and reintroduce
4244 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4245 is an rtx_insn * within insn-attrtab.c
4247 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4249 * output.h (peephole): Strengthen return type from rtx to
4251 * rtl.h (delete_for_peephole): Likewise for both params.
4252 * genpeep.c (main): In generated "peephole" function, strengthen
4253 return type and local "insn" from rtx to rtx_insn *. For now,
4254 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4255 rtx_insn *, with a checked cast.
4256 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4257 locals "insn", "next", "prev" from rtx to rtx_insn *.
4259 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
4261 PR tree-optimization/62112
4262 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4263 * gimple-iterator.h (gsi_replace): Return bool.
4264 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4265 moved from ref_may_alias_global_p.
4266 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4268 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4269 (stmt_kills_ref_p_1): Rename...
4270 (stmt_kills_ref_p): ... to this.
4271 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
4272 stmt_kills_ref_p): Declare.
4273 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
4274 Move the self-assignment case...
4275 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
4277 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4279 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
4281 * emit-rtl.c (try_split): Likewise, also for locals "before" and
4282 "after". For now, don't strengthen param "trial", which requires
4283 adding checked casts when returning it.
4285 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4287 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4288 "label" from rtx to rtx_code_label *. Strengthen param 1 of
4289 "var_location" hook from rtx to rtx_insn *.
4290 (debug_nothing_rtx): Delete in favor of...
4291 (debug_nothing_rtx_code_label): New prototype.
4292 (debug_nothing_rtx_rtx): Delete unused prototype.
4293 (debug_nothing_rtx_insn): New prototype.
4295 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
4296 invoking debug_hooks->var_location (in two places, one in a NOTE
4297 case of a switch statement, the other guarded by a CALL_P
4298 conditional. Add checked cast to rtx_code_label * when invoking
4299 debug_hooks->label (within CODE_LABEL case of switch statement).
4301 * dbxout.c (dbx_debug_hooks): Update "label" hook from
4302 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4303 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
4304 (xcoff_debug_hooks): Likewise.
4305 * debug.c (do_nothing_debug_hooks): Likewise.
4306 (debug_nothing_rtx): Delete in favor of...
4307 (debug_nothing_rtx_insn): New function.
4308 (debug_nothing_rtx_rtx): Delete unused function.
4309 (debug_nothing_rtx_code_label): New function.
4310 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
4311 debug_nothing_rtx to debug_nothing_rtx_code_label.
4312 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
4314 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
4315 debug_nothing_rtx to debug_nothing_rtx_insn.
4316 (sdbout_label): Strengthen param "insn" from rtx to
4318 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
4319 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4320 "var_location" hook from debug_nothing_rtx to
4321 debug_nothing_rtx_insn.
4323 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4325 * recog.h (insn_output_fn): Update this function typedef to match
4326 the changes below to the generated output functions, strengthening
4327 the 2nd param from rtx to rtx_insn *.
4329 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
4330 insn when invoking an output function, to match the new signature
4331 of insn_output_fn with a stronger second param.
4333 * genconditions.c (write_header): In the generated code for
4334 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
4335 to match the other changes in this patch.
4337 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
4338 the generated "gen_" functions from rtx to rtx_insn * within their
4341 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
4342 the subfunctions within the generated "recog_", "split", "peephole2"
4343 function trees from rtx to rtx_insn *. For now, the top-level
4344 generated functions ("recog", "split", "peephole2") continue to
4345 take a plain rtx for "insn", to avoid introducing dependencies on
4346 other patches. Rename this 2nd param from "insn" to
4347 "uncast_insn", and reintroduce "insn" as a local variable of type
4348 rtx_insn *, initialized at the top of the generated function with
4349 a checked cast on "uncast_insn".
4350 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
4351 the generated "gen_" functions from rtx to rtx_insn * within their
4354 * genoutput.c (process_template): Strengthen the 2nd param within
4355 the generated "output_" functions "insn" from rtx to rtx_insn *.
4357 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4359 * tree-profile.c (tree_profiling): Skip external functions
4360 when doing coverage instrumentation.
4361 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
4363 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4365 * config/rs6000/altivec.h (vec_cpsgn): New #define.
4366 (vec_mergee): Likewise.
4367 (vec_mergeo): Likewise.
4368 (vec_cntlz): Likewise.
4369 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
4370 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
4371 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
4373 * doc/extend.texi: Document various forms of vec_cpsgn,
4374 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
4375 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
4376 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
4377 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
4378 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
4380 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4382 * config/rs6000/rs6000.c (context.h): New include.
4383 (tree-pass.h): Likewise.
4384 (make_pass_analyze_swaps): New decl.
4385 (rs6000_option_override): Register pass_analyze_swaps.
4386 (swap_web_entry): New subsclass of web_entry_base (df.h).
4387 (special_handling_values): New enum.
4388 (union_defs): New function.
4389 (union_uses): Likewise.
4390 (insn_is_load_p): Likewise.
4391 (insn_is_store_p): Likewise.
4392 (insn_is_swap_p): Likewise.
4393 (rtx_is_swappable_p): Likewise.
4394 (insn_is_swappable_p): Likewise.
4395 (chain_purpose): New enum.
4396 (chain_contains_only_swaps): New function.
4397 (mark_swaps_for_removal): Likewise.
4398 (swap_const_vector_halves): Likewise.
4399 (adjust_subreg_index): Likewise.
4400 (permute_load): Likewise.
4401 (permute_store): Likewise.
4402 (handle_special_swappables): Likewise.
4403 (replace_swap_with_copy): Likewise.
4404 (dump_swap_insn_table): Likewise.
4405 (rs6000_analyze_swaps): Likewise.
4406 (pass_data_analyze_swaps): New pass_data.
4407 (pass_analyze_swaps): New rtl_opt_pass.
4408 (make_pass_analyze_swaps): New function.
4409 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
4411 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4413 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
4414 type from rtx to rtx_insn *.
4415 (create_copy_of_insn_rtx): Likewise.
4416 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
4417 (create_copy_of_insn_rtx): Likewise, also for local "res".
4419 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4421 * rtl.h (find_first_parameter_load): Strengthen return type from
4423 * rtlanal.c (find_first_parameter_load): Strengthen return type
4424 from rtx to rtx_insn *. Add checked cast for now, to postpone
4425 strengthening the params.
4427 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4430 * diagnostic.c: Set default caret.
4431 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
4433 * diagnostic.h (struct diagnostic_context):
4435 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4437 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
4438 (sel_bb_head): Strengthen return type insn_t (currently just an
4440 (sel_bb_end): Likewise.
4442 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
4443 (sel_bb_head): Strengthen return type and local "head" from
4444 insn_t (currently just an rtx) to rtx_insn *.
4445 (sel_bb_end): Likewise for return type.
4446 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
4449 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4451 * basic-block.h (get_last_bb_insn): Strengthen return type from
4453 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
4456 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4459 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
4461 (diagnostic_report_diagnostic): ... from here.
4462 * toplev.c (general_init): Move code to c-family.
4464 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4466 * df.h (web_entry_base): Replace existing struct web_entry with a
4467 new class web_entry_base with only the predecessor member.
4468 (unionfind_root): Remove declaration and move to class member.
4469 (unionfind_union): Remove declaration and move to friend
4471 (union_defs): Remove declaration.
4472 * web.c (web_entry_base::unionfind_root): Modify to be member
4473 function and adjust accessors.
4474 (unionfind_union): Modify to be friend function and adjust
4476 (web_entry): New subclass of web_entry_base containing the reg
4478 (union_match_dups): Modify for struct -> class changes.
4479 (union_defs): Likewise.
4480 (entry_register): Likewise.
4481 (pass_web::execute): Likewise.
4483 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
4485 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
4486 builtin define __VEC_ELEMENT_REG_ORDER__.
4488 2014-08-20 Martin Jambor <mjambor@suse.cz>
4489 Wei Mi <wmi@google.com>
4493 * tree-ssa-operands.c (update_stmt_operands): Remove
4494 MODIFIED_NORETURN_CALLS.
4495 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
4496 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
4497 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
4498 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
4499 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
4500 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
4501 (gimple_call_set_ctrl_altering): New func.
4502 (gimple_call_ctrl_altering_p): Ditto.
4503 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
4504 (make_blocks): Use gimple_call_initialize_ctrl_altering.
4505 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
4506 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
4507 remove MODIFIED_NORETURN_CALLS.
4509 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4511 * coverage.c (coverage_compute_profile_id): Return non-0;
4512 also handle symbols with unique name.
4513 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
4515 2014-08-20 Steve Ellcey <sellcey@mips.com>
4518 * doc/sourcebuild.texi (non_strict_align): New.
4520 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4522 * cgraphunit.c (ipa_passes, compile): Reshedule
4523 symtab_remove_unreachable_nodes passes; update comments.
4524 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
4525 TODO_remove_functions before the pass; the functions ought to be
4527 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
4528 TODO_remove_functions.
4529 * passes.c (pass_data_early_local_passes): Do not schedule function
4531 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
4533 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4536 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
4537 before setting the option.
4538 * diagnostic.c (diagnostic_classify_diagnostic): Record
4539 command-line status.
4541 2014-08-20 Richard Biener <rguenther@suse.de>
4544 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
4545 to build uint{16,32,64}_type_node.
4547 2014-08-20 Terry Guo <terry.guo@arm.com>
4549 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
4550 with immediate_operand.
4552 2014-08-20 David Malcolm <dmalcolm@redhat.com>
4554 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
4555 "insn" from an as_a to a safe_as_a, for the case when "insn" is
4558 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4560 PR preprocessor/51303
4561 * incpath.c (remove_duplicates): Use cpp_warning.
4563 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4567 * doc/options.texi (CPP): Document it.
4568 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
4569 * optc-gen.awk: Handle CPP.
4570 * opth-gen.awk: Likewise.
4572 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4574 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
4576 (duplicate_insn_chain): Likewise.
4577 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
4578 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
4579 checked cast for now (until we can strengthen the params in the
4581 (duplicate_insn_chain): Likewise.
4583 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4585 * rtl.h (next_cc0_user): Strengthen return type from rtx to
4587 (prev_cc0_setter): Likewise.
4589 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
4590 rtx_insn *, adding checked casts for now as necessary.
4591 (prev_cc0_setter): Likewise.
4593 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4595 * expr.h (emit_move_insn): Strengthen return type from rtx to
4597 (emit_move_insn_1): Likewise.
4598 (emit_move_complex_push): Likewise.
4599 (emit_move_complex_parts): Likewise.
4601 * expr.c (emit_move_via_integer): Strengthen return type from rtx
4602 to rtx_insn *. Replace use of NULL_RTX with NULL when working
4604 (emit_move_complex_push): Strengthen return type from rtx to
4606 (emit_move_complex): Likewise, also for local "ret".
4607 (emit_move_ccmode): Likewise.
4608 (emit_move_multi_word): Likewise for return type and locals
4610 (emit_move_insn_1): Likewise for return type and locals "result",
4612 (emit_move_insn): Likewise for return type and local "last_insn".
4613 (compress_float_constant): Likewise.
4615 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4617 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
4618 from rtx to rtx_insn *.
4620 * rtl.h (emit_insn_before): Likewise.
4621 (emit_insn_before_noloc): Likewise.
4622 (emit_insn_before_setloc): Likewise.
4623 (emit_jump_insn_before): Likewise.
4624 (emit_jump_insn_before_noloc): Likewise.
4625 (emit_jump_insn_before_setloc): Likewise.
4626 (emit_call_insn_before): Likewise.
4627 (emit_call_insn_before_noloc): Likewise.
4628 (emit_call_insn_before_setloc): Likewise.
4629 (emit_debug_insn_before): Likewise.
4630 (emit_debug_insn_before_noloc): Likewise.
4631 (emit_debug_insn_before_setloc): Likewise.
4632 (emit_label_before): Likewise.
4633 (emit_insn_after): Likewise.
4634 (emit_insn_after_noloc): Likewise.
4635 (emit_insn_after_setloc): Likewise.
4636 (emit_jump_insn_after): Likewise.
4637 (emit_jump_insn_after_noloc): Likewise.
4638 (emit_jump_insn_after_setloc): Likewise.
4639 (emit_call_insn_after): Likewise.
4640 (emit_call_insn_after_noloc): Likewise.
4641 (emit_call_insn_after_setloc): Likewise.
4642 (emit_debug_insn_after): Likewise.
4643 (emit_debug_insn_after_noloc): Likewise.
4644 (emit_debug_insn_after_setloc): Likewise.
4645 (emit_label_after): Likewise.
4646 (emit_insn): Likewise.
4647 (emit_debug_insn): Likewise.
4648 (emit_jump_insn): Likewise.
4649 (emit_call_insn): Likewise.
4650 (emit_label): Likewise.
4651 (gen_clobber): Likewise.
4652 (emit_clobber): Likewise.
4653 (gen_use): Likewise.
4654 (emit_use): Likewise.
4657 (emit_barrier_before): Strengthen return type from rtx to
4659 (emit_barrier_after): Likewise.
4660 (emit_barrier): Likewise.
4662 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
4663 from rtx to rtx_insn *. Add checked casts for now when converting
4664 "last" from rtx to rtx_insn *.
4665 (emit_insn_before_noloc): Likewise for return type.
4666 (emit_jump_insn_before_noloc): Likewise.
4667 (emit_call_insn_before_noloc): Likewise.
4668 (emit_debug_insn_before_noloc): Likewise.
4669 (emit_barrier_before): Strengthen return type and local "insn"
4670 from rtx to rtx_barrier *.
4671 (emit_label_before): Strengthen return type from rtx to
4672 rtx_insn *. Add checked cast for now when returning param
4673 (emit_pattern_after_noloc): Strengthen return type from rtx to
4674 rtx_insn *. Add checked casts for now when converting "last" from
4676 (emit_insn_after_noloc): Strengthen return type from rtx to
4678 (emit_jump_insn_after_noloc): Likewise.
4679 (emit_call_insn_after_noloc): Likewise.
4680 (emit_debug_insn_after_noloc): Likewise.
4681 (emit_barrier_after): Strengthen return type from rtx to
4683 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
4684 Add checked cast for now when converting "label" from rtx to
4686 (emit_pattern_after_setloc): Strengthen return type from rtx to
4687 rtx_insn *. Add checked casts for now when converting "last" from
4689 (emit_pattern_after): Strengthen return type from rtx to
4691 (emit_insn_after_setloc): Likewise.
4692 (emit_insn_after): Likewise.
4693 (emit_jump_insn_after_setloc): Likewise.
4694 (emit_jump_insn_after): Likewise.
4695 (emit_call_insn_after_setloc): Likewise.
4696 (emit_call_insn_after): Likewise.
4697 (emit_debug_insn_after_setloc): Likewise.
4698 (emit_debug_insn_after): Likewise.
4699 (emit_pattern_before_setloc): Likewise. Add checked casts for now
4700 when converting "last" from rtx to rtx_insn *.
4701 (emit_pattern_before): Strengthen return type from rtx to
4703 (emit_insn_before_setloc): Likewise.
4704 (emit_insn_before): Likewise.
4705 (emit_jump_insn_before_setloc): Likewise.
4706 (emit_jump_insn_before): Likewise.
4707 (emit_call_insn_before_setloc): Likewise.
4708 (emit_call_insn_before): Likewise.
4709 (emit_debug_insn_before_setloc): Likewise.
4710 (emit_debug_insn_before): Likewise.
4711 (emit_insn): Strengthen return type and locals "last", "insn",
4712 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
4713 within cases where we know we have an insn.
4714 (emit_debug_insn): Likewise.
4715 (emit_jump_insn): Likewise.
4716 (emit_call_insn): Strengthen return type and local "insn" from rtx
4718 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
4719 a checked cast to rtx_insn * for now on "label".
4720 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
4721 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
4722 (emit_use): Likewise.
4723 (gen_use): Likewise, also for local "seq".
4724 (emit): Likewise for return type and local "insn".
4725 (rtx_insn): Likewise for return type and local "new_rtx".
4727 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
4728 from rtx to rtx_barrier *.
4730 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
4731 changed return type from rtx to rtx_insn *, we must update
4732 "emit_fn" type, and this in turn means updating...
4733 (frame_insn): ...this. Strengthen return type from rtx to
4734 rtx_insn *. Introduce a new local "insn" of the appropriate type.
4736 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4738 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
4739 rtx to rtx_jump_table_data *. Also for local.
4740 * rtl.h (emit_jump_table_data): Likewise.
4742 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4744 * basic-block.h (create_basic_block_structure): Strengthen third
4745 param "bb_note" from rtx to rtx_note *.
4746 * rtl.h (emit_note_before): Strengthen return type from rtx to
4748 (emit_note_after): Likewise.
4749 (emit_note): Likewise.
4750 (emit_note_copy): Likewise. Also, strengthen param similarly.
4751 * function.h (struct rtl_data): Strengthen field
4752 "x_stack_check_probe_note" from rtx to rtx_note *.
4754 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
4755 from rtx to rtx_note *.
4756 * cfgrtl.c (create_basic_block_structure): Strengthen third param
4757 "bb_note" from rtx to rtx_note *.
4758 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
4759 when calling emit_note_copy.
4760 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
4762 (emit_note_after): Likewise.
4763 (emit_note_before): Likewise.
4764 (emit_note_copy): Likewise. Also, strengthen param similarly.
4765 (emit_note): Likewise.
4766 * except.c (emit_note_eh_region_end): Likewise for return type.
4767 Strengthen local "next" from rtx to rtx_insn *.
4768 (convert_to_eh_region_ranges): Strengthen local "note"
4769 from rtx to rtx_note *.
4770 * final.c (change_scope): Likewise.
4771 (reemit_insn_block_notes): Likewise, for both locals named "note".
4772 Also, strengthen local "insn" from rtx to rtx_insn *.
4773 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
4775 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
4776 strengthen local "seq" from rtx to rtx_insn *.
4777 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
4779 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
4781 (get_bb_note_from_pool): Strengthen return type from rtx to
4783 (sel_create_basic_block): Strengthen local "new_bb_note" from
4784 insn_t to rtx_note *.
4785 * var-tracking.c (emit_note_insn_var_location): Strengthen local
4786 "note" from rtx to rtx_note *.
4787 (emit_notes_in_bb): Likewise.
4789 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4791 * function.h (struct rtl_data): Strengthen field
4792 "x_parm_birth_insn" from rtx to rtx_insn *.
4793 * function.c (struct assign_parm_data_all): Strengthen fields
4794 "first_conversion_insn" and "last_conversion_insn" from rtx to
4797 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4799 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
4800 to rtx_insn *; also for local "var_end_seq".
4801 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
4802 (maybe_cleanup_end_of_block): Likewise for param "last" and local
4804 (expand_gimple_cond): Likewise for locals "last2" and "last".
4805 (mark_transaction_restart_calls): Likewise for local "insn".
4806 (expand_gimple_stmt): Likewise for return type and locals "last"
4808 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
4809 (avoid_complex_debug_insns): Likewise for param "insn".
4810 (expand_debug_locations): Likewise for locals "insn", "last",
4811 "prev_insn" and "insn2".
4812 (expand_gimple_basic_block): Likewise for local "last".
4813 (construct_exit_block): Likewise for locals "head", "end",
4815 (pass_expand::execute): Likewise for locals "var_seq",
4816 "var_ret_seq", "next".
4818 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4820 * asan.h (asan_emit_stack_protection): Strengthen return type from
4822 * asan.c (asan_emit_stack_protection): Likewise. Add local
4823 "insns" to hold the return value.
4825 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4827 * basic-block.h (bb_note): Strengthen return type from rtx to
4829 * sched-int.h (bb_note): Likewise.
4830 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
4832 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4834 * rtl.h (make_insn_raw): Strengthen return type from rtx to
4837 * emit-rtl.c (make_insn_raw): Strengthen return type and local
4838 "insn" from rtx to rtx_insn *.
4839 (make_debug_insn_raw): Strengthen return type from rtx to
4840 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
4841 (make_jump_insn_raw): Strengthen return type from rtx to
4842 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
4843 (make_call_insn_raw): Strengthen return type from rtx to
4844 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
4845 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
4846 callback from rtx to rtx_insn *; likewise for local "insn" and
4847 "next", adding a checked cast to rtx_insn in the relevant cases of
4848 the switch statement.
4849 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
4850 callback from rtx to rtx_insn *.
4851 (emit_pattern_after_setloc): Likewise.
4852 (emit_pattern_after): Likewise.
4853 (emit_pattern_before_setloc): Likewise.
4854 (emit_pattern_before): Likewise.
4856 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4858 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
4860 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
4861 accepting an rtx_insn *.
4862 (last_call_insn): Strengthen return type from rtx to
4865 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4867 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
4868 "insns" from rtx to rtx_insn *.
4869 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
4870 locals "insn" and "prev".
4872 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4874 * rtl.h (tablejump_p): Strengthen third param from rtx * to
4875 rtx_jump_table_data **.
4877 * cfgbuild.c (make_edges): Introduce local "table", using it in
4878 place of "tmp" for jump table data.
4879 (find_bb_boundaries): Strengthen local "table" from rtx to
4880 rtx_jump_table_data *.
4881 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
4882 (outgoing_edges_match): Likewise for locals "table1" and "table2".
4883 (try_crossjump_to_edge): Likewise.
4884 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
4886 (patch_jump_insn): Introduce local "table", using it in place of
4887 "tmp" for jump table data.
4888 (force_nonfallthru_and_redirect): Introduce local "table", so that
4889 call to tablejump_p can receive an rtx_jump_table_data **. Update
4890 logic around the call to overwrite "note" appropriately if
4891 tablejump_p returns non-zero.
4892 (get_last_bb_insn): Introduce local "table", using it in place of
4893 "tmp" for jump table data.
4894 * dwarf2cfi.c (create_trace_edges): Likewise.
4896 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
4897 from rtx to rtx_jump_table_data *.
4898 (create_fix_barrier): Strengthen local "tmp" from rtx to
4899 rtx_jump_table_data *.
4900 (arm_reorg): Likewise for local "table".
4902 * config/s390/s390.c (s390_chunkify_start): Likewise.
4904 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
4906 * jump.c (delete_related_insns): Strengthen local "lab_next" from
4907 rtx to rtx_jump_table_data *.
4909 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
4910 rtx_jump_table_data **. Add a checked cast when writing through
4911 the pointer: we know there that local "table" is non-NULL and that
4912 JUMP_TABLE_DATA_P (table) holds.
4913 (label_is_jump_target_p): Introduce local "table", using it in
4914 place of "tmp" for jump table data.
4916 2014-08-19 Marek Polacek <polacek@redhat.com>
4919 * doc/invoke.texi: Document -Wbool-compare.
4921 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4923 * rtl.h (entry_of_function): Strengthen return type from rtx to
4925 * cfgrtl.c (entry_of_function): Likewise.
4927 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4929 * emit-rtl.h (get_insns): Strengthen return type from rtx to
4930 rtx_insn *, adding a checked cast for now.
4931 (get_last_insn): Likewise.
4933 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4935 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
4938 * emit-rtl.c (gen_label_rtx): Likewise.
4940 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4942 * rtl.h (previous_insn): Strengthen return type from rtx to
4944 (next_insn): Likewise.
4945 (prev_nonnote_insn): Likewise.
4946 (prev_nonnote_insn_bb): Likewise.
4947 (next_nonnote_insn): Likewise.
4948 (next_nonnote_insn_bb): Likewise.
4949 (prev_nondebug_insn): Likewise.
4950 (next_nondebug_insn): Likewise.
4951 (prev_nonnote_nondebug_insn): Likewise.
4952 (next_nonnote_nondebug_insn): Likewise.
4953 (prev_real_insn): Likewise.
4954 (next_real_insn): Likewise.
4955 (prev_active_insn): Likewise.
4956 (next_active_insn): Likewise.
4958 * emit-rtl.c (next_insn): Strengthen return type from rtx to
4959 rtx_insn *, adding a checked cast.
4960 (previous_insn): Likewise.
4961 (next_nonnote_insn): Likewise.
4962 (next_nonnote_insn_bb): Likewise.
4963 (prev_nonnote_insn): Likewise.
4964 (prev_nonnote_insn_bb): Likewise.
4965 (next_nondebug_insn): Likewise.
4966 (prev_nondebug_insn): Likewise.
4967 (next_nonnote_nondebug_insn): Likewise.
4968 (prev_nonnote_nondebug_insn): Likewise.
4969 (next_real_insn): Likewise.
4970 (prev_real_insn): Likewise.
4971 (next_active_insn): Likewise.
4972 (prev_active_insn): Likewise.
4974 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
4975 param "stepfunc" so that it returns an rtx_insn * rather than an
4976 rtx, to track the change to prev_nonnote_insn_bb, which is the
4977 only function this is called with.
4978 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
4980 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
4982 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
4985 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4987 * coretypes.h (class rtx_debug_insn): Add forward declaration.
4988 (class rtx_nonjump_insn): Likewise.
4989 (class rtx_jump_insn): Likewise.
4990 (class rtx_call_insn): Likewise.
4991 (class rtx_jump_table_data): Likewise.
4992 (class rtx_barrier): Likewise.
4993 (class rtx_code_label): Likewise.
4994 (class rtx_note): Likewise.
4996 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
4997 adding the invariant DEBUG_INSN_P (X).
4998 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
4999 the invariant NONJUMP_INSN_P (X).
5000 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5001 the invariant JUMP_P (X).
5002 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5003 the invariant CALL_P (X).
5004 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5005 invariant JUMP_TABLE_DATA_P (X).
5006 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5007 invariant BARRIER_P (X).
5008 (class rtx_code_label): New, a subclass of rtx_insn, adding
5009 the invariant LABEL_P (X).
5010 (class rtx_note): New, a subclass of rtx_insn, adding
5011 the invariant NOTE_P(X).
5012 (is_a_helper <rtx_debug_insn *>::test): New.
5013 (is_a_helper <rtx_nonjump_insn *>::test): New.
5014 (is_a_helper <rtx_jump_insn *>::test): New.
5015 (is_a_helper <rtx_call_insn *>::test): New.
5016 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5017 overloaded for both rtx and rtx_insn *.
5018 (is_a_helper <rtx_barrier *>::test): New.
5019 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5020 for both rtx and rtx_insn *.
5021 (is_a_helper <rtx_note *>::test): New.
5023 2014-08-19 Marek Polacek <polacek@redhat.com>
5025 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5026 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5027 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5028 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5030 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5032 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5033 rtx_insn *. To help with transition, for now, convert from an
5034 access macro into a pair of functions: BND_TO, returning an
5036 (SET_BND_TO): New function, for use where BND_TO is used as an
5039 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5041 (BND_TO): New function, adding a checked cast.
5042 (SET_BND_TO): New function.
5044 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5046 (compute_av_set_on_boundaries): Likewise.
5048 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5050 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5051 destination if it is used in source.
5052 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5053 (*popcount<mode>2_falsedep_1): Likewise.
5055 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5058 * configure.ac: Set install_gold_as_default to no first.
5059 * configure: Regenerated.
5061 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5063 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5064 "note_list" field will eventually be an rtx_insn *. To help with
5065 transition, for now, convert from an access macro into a pair of
5066 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5067 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5070 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5071 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5073 * sel-sched-ir.c (init_bb): Likewise.
5074 (sel_restore_notes): Likewise.
5075 (move_bb_info): Likewise.
5076 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5077 (SET_BB_NOTE_LIST): New function.
5079 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5081 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5082 field will eventually be an rtx_insn *. To help with transition,
5083 for now, convert from an access macro into a pair of functions:
5084 VINSN_INSN_RTX, returning an rtx_insn *, and...
5085 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5086 is used as an lvalue.
5088 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5089 SET_VINSN_INSN_RTX where it's used as an lvalue.
5090 (VINSN_INSN_RTX): New function.
5091 (SET_VINSN_INSN_RTX): New function.
5093 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5095 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5096 eventually be rtx_insn *, but to help with transition, for now,
5097 convert from an access macro into a pair of functions: DEP_PRO
5098 returning an rtx_insn * and...
5099 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5100 lvalue, returning an rtx&.
5101 (DEP_CON): Analogous changes to DEP_PRO above.
5102 (SET_DEP_CON): Likewise.
5104 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5105 an lvalue to SET_DEP_CON.
5106 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5107 (sd_copy_back_deps): Likewise for DEP_CON.
5108 (DEP_PRO): New function, adding a checked cast for now.
5109 (DEP_CON): Likewise.
5110 (SET_DEP_PRO): New function.
5111 (SET_DEP_CON): Likewise.
5113 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5115 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5116 (extra_options): Add i386/cygwin.opt.
5117 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5118 (CPP_SPEC): Accept -pthread.
5120 (GOMP_SELF_SPECS): Update comment.
5121 * config/i386/cygwin.opt: New file for -pthread flag.
5123 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5125 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5126 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5127 that we can return an rtx_insn *.
5129 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5131 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5132 when building executables, not DLLs. Add --large-address-aware
5133 under the same conditions.
5134 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5135 when building executables, not DLLs. Add --large-address-aware
5136 under the same conditions when using -m32.
5138 * config/i386/cygwin-stdint.h: Throughout, make type
5139 definitions dependent on target architecture, not host.
5141 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5143 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5144 the return type from rtx to rtx_insn *, which will enable various
5145 conversions in followup patches. For now this is is done by a
5147 (NEXT_INSN): Likewise.
5148 (SET_PREV_INSN): Convert to an inline function. This is intended
5149 for use as an lvalue, and so returns an rtx& to allow in-place
5151 (SET_NEXT_INSN): Likewise.
5153 2014-07-08 Mark Wielaard <mjw@redhat.com>
5156 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5158 2014-08-19 Marek Polacek <polacek@redhat.com>
5161 * cgraphunit.c (handle_alias_pairs): Fix condition.
5163 2014-08-19 Richard Biener <rguenther@suse.de>
5165 * gimple-fold.c (fold_gimple_assign): Properly build a
5166 null-pointer constant when devirtualizing addresses.
5168 2014-07-07 Mark Wielaard <mjw@redhat.com>
5170 * dwarf2out.c (decl_quals): New function.
5171 (modified_type_die): Take one cv_quals argument instead of two,
5172 one for const and one for volatile.
5173 (add_type_attribute): Likewise.
5174 (generic_parameter_die): Call add_type_attribute with one modifier
5176 (base_type_for_mode): Likewise.
5177 (add_bounds_info): Likewise.
5178 (add_subscript_info): Likewise.
5179 (gen_array_type_die): Likewise.
5180 (gen_descr_array_type_die): Likewise.
5181 (gen_entry_point_die): Likewise.
5182 (gen_enumeration_type_die): Likewise.
5183 (gen_formal_parameter_die): Likewise.
5184 (gen_subprogram_die): Likewise.
5185 (gen_variable_die): Likewise.
5186 (gen_const_die): Likewise.
5187 (gen_field_die): Likewise.
5188 (gen_pointer_type_die): Likewise.
5189 (gen_reference_type_die): Likewise.
5190 (gen_ptr_to_mbr_type_die): Likewise.
5191 (gen_inheritance_die): Likewise.
5192 (gen_subroutine_type_die): Likewise.
5193 (gen_typedef_die): Likewise.
5194 (force_type_die): Likewise.
5196 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5198 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5200 * configure: Regenerate.
5202 2014-08-19 Richard Biener <rguenther@suse.de>
5204 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5205 DECL_EXTERNALs in BLOCKs as non-references.
5206 * tree-streamer-out.c (streamer_write_chain): Likewise.
5208 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5209 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5210 Anna Tikhonova <anna.tikhonova@intel.com>
5211 Ilya Tocar <ilya.tocar@intel.com>
5212 Andrey Turetskiy <andrey.turetskiy@intel.com>
5213 Ilya Verbin <ilya.verbin@intel.com>
5214 Kirill Yukhin <kirill.yukhin@intel.com>
5215 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5217 * config/i386/sse.md
5218 (define_mode_iterator VI48_AVX512F): Delete.
5219 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5220 (define_mode_iterator VI2_AVX512VL): Ditto.
5221 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5224 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5226 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5227 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5228 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5229 with VI48_AVX512F_AVX512VL): New.
5230 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5231 with VI2_AVX512VL): Ditto.
5233 2014-08-19 Marek Polacek <polacek@redhat.com>
5235 * doc/invoke.texi: Document -Wc99-c11-compat.
5237 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5239 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5241 (SET_PREV_INSN): New macro, for use as an lvalue.
5242 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5244 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5245 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5246 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5247 (fixup_abnormal_edges): Likewise.
5248 (unlink_insn_chain): Likewise.
5249 (fixup_reorder_chain): Likewise.
5250 (cfg_layout_delete_block): Likewise.
5251 (cfg_layout_merge_blocks): Likewise.
5252 * combine.c (update_cfg_for_uncondjump): Likewise.
5253 * emit-rtl.c (link_insn_into_chain): Likewise.
5254 (remove_insn): Likewise.
5255 (delete_insns_since): Likewise.
5256 (reorder_insns_nobb): Likewise.
5257 (emit_insn_after_1): Likewise.
5258 * final.c (rest_of_clean_state): Likewise.
5259 (final_scan_insn): Likewise.
5260 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5261 * haifa-sched.c (concat_note_lists): Likewise.
5262 (remove_notes): Likewise.
5263 (restore_other_notes): Likewise.
5264 (move_insn): Likewise.
5265 (unlink_bb_notes): Likewise.
5266 (restore_bb_notes): Likewise.
5267 * jump.c (delete_for_peephole): Likewise.
5268 * optabs.c (emit_libcall_block_1): Likewise.
5269 * reorg.c (emit_delay_sequence): Likewise.
5270 (fill_simple_delay_slots): Likewise.
5271 * sel-sched-ir.c (sel_move_insn): Likewise.
5272 (sel_remove_insn): Likewise.
5273 (get_bb_note_from_pool): Likewise.
5274 * sel-sched.c (move_nop_to_previous_block): Likewise.
5276 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
5277 * config/c6x/c6x.c (gen_one_bundle): Likewise.
5278 (c6x_gen_bundles): Likewise.
5279 (hwloop_optimize): Likewise.
5280 * config/frv/frv.c (frv_function_prologue): Likewise.
5281 (frv_register_nop): Likewise.
5282 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
5283 (ia64_reorg): Likewise.
5284 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
5285 (mep_make_bundle): Likewise.
5286 (mep_bundle_insns): Likewise.
5287 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
5288 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
5289 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
5291 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5293 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
5294 return type from rtx to rtx_insn *.
5296 (BB_HEADER): Likewise.
5297 (BB_FOOTER): Likewise.
5298 (SET_BB_HEAD): Convert to a function.
5299 (SET_BB_END): Likewise.
5300 (SET_BB_HEADER): Likewise.
5301 (SET_BB_FOOTER): Likewise.
5303 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
5304 Strengthen the return type from rtx to rtx_insn *. For now, this
5305 is done by adding a checked cast, but this will eventually
5306 become a field lookup.
5308 (BB_HEADER): Likewise.
5309 (BB_FOOTER): Likewise.
5310 (SET_BB_HEAD): New function, from macro of same name. This is
5311 intended for use as an lvalue, and so returns an rtx& to allow
5312 in-place modification.
5313 (SET_BB_END): Likewise.
5314 (SET_BB_HEADER): Likewise.
5315 (SET_BB_FOOTER): Likewise.
5317 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5319 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
5321 (SET_BB_HEAD): New macro, for use as a lvalue.
5322 (BB_END, SET_BB_END): Likewise.
5323 (BB_HEADER, SET_BB_HEADER): Likewise.
5324 (BB_FOOTER, SET_BB_FOOTER): Likewise.
5326 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
5327 of BB_* macros into SET_BB_* macros.
5328 (fix_crossing_unconditional_branches): Likewise.
5329 * caller-save.c (save_call_clobbered_regs): Likewise.
5330 (insert_one_insn): Likewise.
5331 * cfgbuild.c (find_bb_boundaries): Likewise.
5332 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5333 (outgoing_edges_match): Likewise.
5334 (try_optimize_cfg): Likewise.
5335 * cfgexpand.c (expand_gimple_cond): Likewise.
5336 (expand_gimple_tailcall): Likewise.
5337 (expand_gimple_basic_block): Likewise.
5338 (construct_exit_block): Likewise.
5339 * cfgrtl.c (delete_insn): Likewise.
5340 (create_basic_block_structure): Likewise.
5341 (rtl_delete_block): Likewise.
5342 (rtl_split_block): Likewise.
5343 (emit_nop_for_unique_locus_between): Likewise.
5344 (rtl_merge_blocks): Likewise.
5345 (block_label): Likewise.
5346 (try_redirect_by_replacing_jump): Likewise.
5347 (emit_barrier_after_bb): Likewise.
5348 (fixup_abnormal_edges): Likewise.
5349 (record_effective_endpoints): Likewise.
5350 (relink_block_chain): Likewise.
5351 (fixup_reorder_chain): Likewise.
5352 (fixup_fallthru_exit_predecessor): Likewise.
5353 (cfg_layout_duplicate_bb): Likewise.
5354 (cfg_layout_split_block): Likewise.
5355 (cfg_layout_delete_block): Likewise.
5356 (cfg_layout_merge_blocks): Likewise.
5357 * combine.c (update_cfg_for_uncondjump): Likewise.
5358 * emit-rtl.c (add_insn_after): Likewise.
5359 (remove_insn): Likewise.
5360 (reorder_insns): Likewise.
5361 (emit_insn_after_1): Likewise.
5362 * haifa-sched.c (get_ebb_head_tail): Likewise.
5363 (restore_other_notes): Likewise.
5364 (move_insn): Likewise.
5365 (sched_extend_bb): Likewise.
5366 (fix_jump_move): Likewise.
5367 * ifcvt.c (noce_process_if_block): Likewise.
5368 (dead_or_predicable): Likewise.
5369 * ira.c (update_equiv_regs): Likewise.
5370 * reg-stack.c (change_stack): Likewise.
5371 * sel-sched-ir.c (sel_move_insn): Likewise.
5372 * sel-sched.c (move_nop_to_previous_block): Likewise.
5374 * config/c6x/c6x.c (hwloop_optimize): Likewise.
5375 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5377 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5379 * rtl.h (for_each_rtx_in_insn): New function.
5380 * rtlanal.c (for_each_rtx_in_insn): Likewise.
5382 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5384 * coretypes.h (class rtx_insn): Add forward declaration.
5386 * rtl.h: Include is-a.h.
5387 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
5388 workaround to ensure gengtype knows inheritance is occurring,
5389 whilst continuing to use the pre-existing special-casing for
5391 (class rtx_insn): New subclass of rtx_def, adding the
5392 invariant that we're dealing with something we can sanely use
5393 INSN_UID, NEXT_INSN, PREV_INSN on.
5394 (is_a_helper <rtx_insn *>::test): New.
5395 (is_a_helper <const rtx_insn *>::test): New.
5397 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5399 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
5401 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5403 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
5406 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5408 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
5409 to BUILT_IN_UNREACHABLE.
5411 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
5414 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
5416 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
5417 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
5418 (ffs<mode>2): Do not expand with tzcnt for
5419 TARGET_AVOID_FALSE_DEP_FOR_BMI.
5420 (ffssi2_no_cmove): Ditto.
5421 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
5422 (ctz<mode>2): New expander.
5423 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
5424 (*ctz<mode>2_falsedep): New insn.
5425 (*ctz<mode>2): Rename from ctz<mode>2.
5426 (clz<mode>2_lzcnt): New expander.
5427 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
5428 (*clz<mode>2_lzcnt_falsedep): New insn.
5429 (*clz<mode>2): Rename from ctz<mode>2.
5430 (popcount<mode>2): New expander.
5431 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
5432 (*popcount<mode>2_falsedep): New insn.
5433 (*popcount<mode>2): Rename from ctz<mode>2.
5434 (*popcount<mode>2_cmp): Remove.
5435 (*popcountsi2_cmp_zext): Ditto.
5437 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
5439 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
5440 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
5441 * config/microblaze/microblaze.h
5442 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
5444 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
5447 * configure.ac: Set install_gold_as_default to no for
5449 * configure: Regenerated.
5451 2014-08-18 Roman Gareev <gareevroman@gmail.com>
5453 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
5454 * config.in: Add undef of HAVE_isl.
5455 * configure: Regenerate.
5456 * configure.ac: Add definition of HAVE_isl.
5457 * graphite-blocking.c: Add checking of HAVE_isl.
5458 * graphite-dependences.c: Likewise.
5459 * graphite-interchange.c: Likewise.
5460 * graphite-isl-ast-to-gimple.c: Likewise.
5461 * graphite-optimize-isl.c: Likewise.
5462 * graphite-poly.c: Likewise.
5463 * graphite-scop-detection.c: Likewise.
5464 * graphite-sese-to-poly.c: Likewise.
5465 * graphite.c: Likewise.
5466 * toplev.c: Replace the checking of HAVE_cloog with the checking
5469 2014-08-18 Richard Biener <rguenther@suse.de>
5471 PR tree-optimization/62090
5472 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
5473 (fold_builtin_3): Do not fold snprintf.
5474 (fold_builtin_4): Likewise.
5475 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
5476 moved from builtins.c.
5477 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
5478 (gimple_fold_builtin): Do not fold sprintf here.
5480 2014-08-18 Richard Biener <rguenther@suse.de>
5482 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
5484 (maybe_canonicalize_mem_ref_addr): ... this function.
5485 (fold_stmt_1): Apply it here before all simplification.
5487 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
5490 * cgraph.h (cgraph_node::create_indirect_edge): Add
5491 compute_indirect_info param.
5492 * cgraph.c (cgraph_node::create_indirect_edge): Compute
5493 indirect_info only when it is required.
5494 * cgraphclones.c (cgraph_clone_edge): Do not recompute
5495 indirect_info fore cloned indirect edge.
5497 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5498 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5499 Anna Tikhonova <anna.tikhonova@intel.com>
5500 Ilya Tocar <ilya.tocar@intel.com>
5501 Andrey Turetskiy <andrey.turetskiy@intel.com>
5502 Ilya Verbin <ilya.verbin@intel.com>
5503 Kirill Yukhin <kirill.yukhin@intel.com>
5504 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5506 * config/i386/sse.md
5507 (define_mode_iterator VI8_AVX2_AVX512BW): New.
5508 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
5510 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5511 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5512 Anna Tikhonova <anna.tikhonova@intel.com>
5513 Ilya Tocar <ilya.tocar@intel.com>
5514 Andrey Turetskiy <andrey.turetskiy@intel.com>
5515 Ilya Verbin <ilya.verbin@intel.com>
5516 Kirill Yukhin <kirill.yukhin@intel.com>
5517 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5519 * config/i386/sse.md
5520 (define_mode_iterator VF1_AVX512VL): New.
5521 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
5522 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
5525 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5526 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5527 Anna Tikhonova <anna.tikhonova@intel.com>
5528 Ilya Tocar <ilya.tocar@intel.com>
5529 Andrey Turetskiy <andrey.turetskiy@intel.com>
5530 Ilya Verbin <ilya.verbin@intel.com>
5531 Kirill Yukhin <kirill.yukhin@intel.com>
5532 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5534 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
5535 * config/i386/i386.md
5536 (define_code_iterator any_float): New.
5537 (define_code_attr floatsuffix): New.
5538 * config/i386/sse.md
5539 (define_mode_iterator VF1_128_256VL): New.
5540 (define_mode_iterator VF2_512_256VL): New.
5541 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
5543 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
5544 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
5546 (define_mode_attr qq2pssuff): New.
5547 (define_mode_attr sselongvecmode): New.
5548 (define_mode_attr sselongvecmodelower): New.
5549 (define_mode_attr sseintvecmode3): New.
5550 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
5552 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
5553 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
5554 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
5555 (define_insn "ufloatv2siv2df2<mask_name>"): New.
5557 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5558 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5559 Anna Tikhonova <anna.tikhonova@intel.com>
5560 Ilya Tocar <ilya.tocar@intel.com>
5561 Andrey Turetskiy <andrey.turetskiy@intel.com>
5562 Ilya Verbin <ilya.verbin@intel.com>
5563 Kirill Yukhin <kirill.yukhin@intel.com>
5564 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5566 * config/i386/sse.md
5567 (define_mode_iterator VF2_AVX512VL): New.
5568 (define_mode_attr sseintvecmode2): New.
5569 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
5570 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
5571 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
5573 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
5575 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5577 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5580 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5581 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5582 Anna Tikhonova <anna.tikhonova@intel.com>
5583 Ilya Tocar <ilya.tocar@intel.com>
5584 Andrey Turetskiy <andrey.turetskiy@intel.com>
5585 Ilya Verbin <ilya.verbin@intel.com>
5586 Kirill Yukhin <kirill.yukhin@intel.com>
5587 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5589 * config/i386/i386.md
5590 (define_insn "*movoi_internal_avx"): Add evex version.
5591 (define_insn "*movti_internal"): Ditto.
5593 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5594 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5595 Anna Tikhonova <anna.tikhonova@intel.com>
5596 Ilya Tocar <ilya.tocar@intel.com>
5597 Andrey Turetskiy <andrey.turetskiy@intel.com>
5598 Ilya Verbin <ilya.verbin@intel.com>
5599 Kirill Yukhin <kirill.yukhin@intel.com>
5600 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5602 * config/i386/i386.md
5603 (define_attr "isa"): Add avx512dq, noavx512dq.
5604 (define_attr "enabled"): Ditto.
5605 * config/i386/sse.md
5606 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
5608 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5609 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5610 Anna Tikhonova <anna.tikhonova@intel.com>
5611 Ilya Tocar <ilya.tocar@intel.com>
5612 Andrey Turetskiy <andrey.turetskiy@intel.com>
5613 Ilya Verbin <ilya.verbin@intel.com>
5614 Kirill Yukhin <kirill.yukhin@intel.com>
5615 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5617 * config/i386/i386.c
5618 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
5619 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
5620 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
5621 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
5622 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
5623 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
5624 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
5625 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
5626 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
5627 * config/i386/sse.md
5628 (define_mode_iterator VMOVE): Allow V4TI mode.
5629 (define_mode_iterator V_AVX512VL): New.
5630 (define_mode_iterator V): New handling for AVX512VL.
5631 (define_insn "avx512f_load<mode>_mask"): Delete.
5632 (define_insn "<avx512>_load<mode>_mask"): New.
5633 (define_insn "avx512f_store<mode>_mask"): Delete.
5634 (define_insn "<avx512>_store<mode>_mask"): New.
5637 2014-08-18 Yury Gribov <y.gribov@samsung.com>
5640 * asan.c (instrument_derefs): Fix bitfield check.
5642 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5644 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
5645 * config/rs6000/htm.md (ttest): Remove clobber.
5646 * config/rs6000/predicates.md (any_mask_operand): New predicate.
5647 (and_operand): Reformat.
5648 (and_2rld_operand): New predicate.
5649 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
5651 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
5652 parameter. Handle AND directly.
5653 (rs6000_split_logical_di): Remove last parameter.
5654 (rs6000_split_logical): Remove last parameter. Remove obsolete
5656 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
5657 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
5658 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
5659 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
5660 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
5661 and 5 anonymous splitters): Delete.
5662 (and<mode>3): New expander.
5663 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
5664 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
5665 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
5666 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
5667 (floatdisf2_internal1): Remove clobbers.
5668 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
5669 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
5670 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
5671 (and<mode>3 for BOOL_128): Remove clobber.
5672 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
5673 rs6000_split_logical.
5674 (*bool<mode>3_internal for BOOL_128): Adjust call of
5675 rs6000_split_logical.
5676 (*boolc<mode>3_internal1 for BOOL_128,
5677 *boolc<mode>3_internal2 for BOOL_128,
5678 *boolcc<mode>3_internal1 for BOOL_128,
5679 *boolcc<mode>3_internal2 for BOOL_128,
5680 *eqv<mode>3_internal1 for BOOL_128,
5681 *eqv<mode>3_internal2 for BOOL_128,
5682 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
5683 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
5685 (*vec_reload_and_reg_<mptrsize>): Delete.
5687 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5689 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
5690 and split, *boolccsi3_internal3 and split): Delete.
5691 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
5692 *boolccdi3_internal3 and split): Delete.
5693 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
5694 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
5696 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5698 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
5699 and split, *boolcsi3_internal3 and split): Delete.
5700 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
5701 *boolcdi3_internal3 and split): Delete.
5702 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
5704 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5706 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
5707 <'u'>: Also support printing the low-order 16 bits.
5708 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
5709 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
5710 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
5711 *booldi3_internal3 and split): Delete.
5712 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
5713 *bool<mode>3_dot2): New.
5714 (two anonymous define_splits for non_logical_cint_operand): Merge.
5716 2014-08-17 Marek Polacek <polacek@redhat.com>
5717 Manuel López-Ibáñez <manu@gcc.gnu.org>
5720 * diagnostic.c (adjust_line): Add gcc_checking_assert.
5721 (diagnostic_show_locus): Don't print caret diagnostic
5722 if a column is larger than the line_width.
5724 2014-08-17 Roman Gareev <gareevroman@gmail.com>
5726 * common.opt: Make the ISL AST generator to be the main code generator
5729 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
5731 * wide-int.h (generic_wide_int): Declare as class instead of struct.
5733 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
5736 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
5738 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
5739 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
5740 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
5742 * config/pa/pa.md (begin_brtab): Delete insn.
5743 (end_brtab): Likewise.
5745 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
5747 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
5749 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
5751 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
5752 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
5753 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
5754 (get_dynamic_type): Remove.
5755 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
5756 (clear_speculation): Bring to ipa-deivrt.h
5757 (get_class_context): Rename to ...
5758 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
5759 (contains_type_p): Update.
5760 (get_dynamic_type): Rename to ...
5761 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
5762 (possible_polymorphic_call_targets): UPdate.
5763 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
5764 * ipa-prop.c (ipa_analyze_call_uses): Update.
5766 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
5768 * doc/invoke.texi (SH options): Document missing processor variant
5769 options. Remove references to Hitachi. Undocument deprecated mspace
5772 2014-08-15 Jason Merrill <jason@redhat.com>
5774 * tree.c (type_hash_canon): Uncomment assert.
5776 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5778 * input.h (in_system_header_at): Add comment.
5780 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5783 * diagnostic.c (build_message_string): Make it extern.
5784 * diagnostic.h (build_message_string): Make it extern.
5786 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
5788 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
5789 load/store from/to non-floating class pseudo.
5791 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5793 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
5795 2014-08-15 Richard Biener <rguenther@suse.de>
5797 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
5798 (get_constraint_for_ssa_var): Remove dead code.
5799 (get_constraint_for_1): Adjust.
5800 (find_what_var_points_to): Likewise.
5801 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
5803 2014-08-15 Ilya Tocar <tocarip@gmail.com>
5806 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
5807 (_mm512_mask_cmpge_epu32_mask): Ditto.
5808 (_mm512_cmpge_epu32_mask): Ditto.
5809 (_mm512_mask_cmpge_epi64_mask): Ditto.
5810 (_mm512_cmpge_epi64_mask): Ditto.
5811 (_mm512_mask_cmpge_epu64_mask): Ditto.
5812 (_mm512_cmpge_epu64_mask): Ditto.
5813 (_mm512_mask_cmple_epi32_mask): Ditto.
5814 (_mm512_cmple_epi32_mask): Ditto.
5815 (_mm512_mask_cmple_epu32_mask): Ditto.
5816 (_mm512_cmple_epu32_mask): Ditto.
5817 (_mm512_mask_cmple_epi64_mask): Ditto.
5818 (_mm512_cmple_epi64_mask): Ditto.
5819 (_mm512_mask_cmple_epu64_mask): Ditto.
5820 (_mm512_cmple_epu64_mask): Ditto.
5821 (_mm512_mask_cmplt_epi32_mask): Ditto.
5822 (_mm512_cmplt_epi32_mask): Ditto.
5823 (_mm512_mask_cmplt_epu32_mask): Ditto.
5824 (_mm512_cmplt_epu32_mask): Ditto.
5825 (_mm512_mask_cmplt_epi64_mask): Ditto.
5826 (_mm512_cmplt_epi64_mask): Ditto.
5827 (_mm512_mask_cmplt_epu64_mask): Ditto.
5828 (_mm512_cmplt_epu64_mask): Ditto.
5829 (_mm512_mask_cmpneq_epi32_mask): Ditto.
5830 (_mm512_mask_cmpneq_epu32_mask): Ditto.
5831 (_mm512_cmpneq_epu32_mask): Ditto.
5832 (_mm512_mask_cmpneq_epi64_mask): Ditto.
5833 (_mm512_cmpneq_epi64_mask): Ditto.
5834 (_mm512_mask_cmpneq_epu64_mask): Ditto.
5835 (_mm512_cmpneq_epu64_mask): Ditto.
5836 (_mm512_castpd_ps): Ditto.
5837 (_mm512_castpd_si512): Ditto.
5838 (_mm512_castps_pd): Ditto.
5839 (_mm512_castps_si512): Ditto.
5840 (_mm512_castsi512_ps): Ditto.
5841 (_mm512_castsi512_pd): Ditto.
5842 (_mm512_castpd512_pd128): Ditto.
5843 (_mm512_castps512_ps128): Ditto.
5844 (_mm512_castsi512_si128): Ditto.
5845 (_mm512_castpd512_pd256): Ditto.
5846 (_mm512_castps512_ps256): Ditto.
5847 (_mm512_castsi512_si256): Ditto.
5848 (_mm512_castpd128_pd512): Ditto.
5849 (_mm512_castps128_ps512): Ditto.
5850 (_mm512_castsi128_si512): Ditto.
5851 (_mm512_castpd256_pd512): Ditto.
5852 (_mm512_castps256_ps512): Ditto.
5853 (_mm512_castsi256_si512): Ditto.
5854 (_mm512_cmpeq_epu32_mask): Ditto.
5855 (_mm512_mask_cmpeq_epu32_mask): Ditto.
5856 (_mm512_mask_cmpeq_epu64_mask): Ditto.
5857 (_mm512_cmpeq_epu64_mask): Ditto.
5858 (_mm512_cmpgt_epu32_mask): Ditto.
5859 (_mm512_mask_cmpgt_epu32_mask): Ditto.
5860 (_mm512_mask_cmpgt_epu64_mask): Ditto.
5861 (_mm512_cmpgt_epu64_mask): Ditto.
5862 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
5863 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
5864 * config/i386/i386.c (enum ix86_builtins): Add
5865 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
5866 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
5867 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
5868 (bdesc_args): Add __builtin_ia32_si512_256si,
5869 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
5870 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
5871 __builtin_ia32_pd512_pd.
5872 (ix86_expand_args_builtin): Handle new FTYPEs.
5873 * config/i386/sse.md (castmode): Add 512-bit modes.
5874 (AVX512MODE2P): New.
5875 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
5876 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
5878 2014-08-15 Richard Biener <rguenther@suse.de>
5880 * fold-const.c (tree_swap_operands_p): Put all constants
5881 last, also strip sign-changing NOPs when considering further
5882 canonicalization. Canonicalize also when optimizing for size.
5884 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5886 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
5887 one_match > zero_match case to just before simple_sequence.
5889 2014-08-15 Richard Biener <rguenther@suse.de>
5891 * data-streamer.h (streamer_string_index, string_for_index):
5893 * data-streamer-out.c (streamer_string_index): Make static.
5894 * data-streamer-in.c (string_for_index): Likewise.
5895 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
5896 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
5898 2014-08-15 Richard Biener <rguenther@suse.de>
5900 PR tree-optimization/62031
5901 * tree-data-ref.c (dr_analyze_indices): Do not set
5902 DR_UNCONSTRAINED_BASE.
5903 (dr_may_alias_p): All indirect accesses have to go the
5904 formerly DR_UNCONSTRAINED_BASE path.
5905 * tree-data-ref.h (struct indices): Remove
5906 unconstrained_base member.
5907 (DR_UNCONSTRAINED_BASE): Remove.
5909 2014-08-15 Jakub Jelinek <jakub@redhat.com>
5912 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
5913 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
5914 in OMP_CLAUSE_MAP in some outer target region.
5916 2014-08-15 Bin Cheng <bin.cheng@arm.com>
5918 * tree-ssa-loop-ivopts.c (ivopts_data): New field
5919 name_expansion_cache.
5920 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
5921 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
5922 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
5923 (difference_cannot_overflow_p): New parameter. Use affine
5924 expansion for equality check.
5925 (iv_elimination_compare_lt): Pass new argument.
5927 2014-08-14 DJ Delorie <dj@redhat.com>
5929 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
5930 variables to the accumulator.
5932 * config/rl78/predicates.md (rl78_near_mem_operand): New.
5933 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
5934 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
5937 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
5938 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
5939 (umulqihi3_virt): Likewise.
5940 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
5941 (umulqihi3_real): Likewise.
5943 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
5945 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
5947 PR tree-optimization/62091
5948 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
5949 function_entry_reached.
5950 (walk_aliased_vdefs): Clear it here.
5951 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
5953 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
5955 * ipa-utils.h (compare_virtual_tables): Declare.
5956 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
5958 2014-08-14 Marek Polacek <polacek@redhat.com>
5961 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
5962 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
5964 2014-08-14 Tom de Vries <tom@codesourcery.com>
5966 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
5968 2014-08-14 Tom de Vries <tom@codesourcery.com>
5970 PR rtl-optimization/62004
5971 PR rtl-optimization/62030
5972 * ifcvt.c (rtx_interchangeable_p): New function.
5973 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
5974 * emit-rtl.h (mem_attrs_eq_p): Declare.
5976 2014-08-14 Roman Gareev <gareevroman@gmail.com>
5978 * graphite-scop-detection.c:
5979 Add inclusion of cp-tree.h.
5980 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
5981 in case they are pointers to object types
5983 2014-08-14 Richard Biener <rguenther@suse.de>
5985 * BASE-VER: Change to 5.0.0
5987 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
5988 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5989 Anna Tikhonova <anna.tikhonova@intel.com>
5990 Ilya Tocar <ilya.tocar@intel.com>
5991 Andrey Turetskiy <andrey.turetskiy@intel.com>
5992 Ilya Verbin <ilya.verbin@intel.com>
5993 Kirill Yukhin <kirill.yukhin@intel.com>
5994 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5996 * config/i386/sse.md (define_mode_attr avx512): New.
5997 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
5999 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6000 (define_mode_attr ssse3_avx2): Ditto.
6001 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6002 (define_mode_attr avx2_avx512bw): New.
6003 (define_mode_attr ssedoublemodelower): New.
6004 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6006 (define_mode_attr ssebytemode): Allow V8DI modes.
6007 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6008 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6009 (define_mode_attr ssePSmode2): New.
6010 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6012 (define_mode_attr dbpsadbwmode): New.
6013 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6014 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6015 (vi8_sse4_1_avx2_avx512): New.
6016 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6018 (define_mode_attr blendbits): Move before its immediate use.
6020 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6021 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6022 Anna Tikhonova <anna.tikhonova@intel.com>
6023 Ilya Tocar <ilya.tocar@intel.com>
6024 Andrey Turetskiy <andrey.turetskiy@intel.com>
6025 Ilya Verbin <ilya.verbin@intel.com>
6026 Kirill Yukhin <kirill.yukhin@intel.com>
6027 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6029 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6030 * config/i386/subst.md
6031 (define_mode_iterator SUBST_V): Update.
6032 (define_mode_iterator SUBST_A): Ditto.
6033 (define_subst_attr "mask_operand7"): New.
6034 (define_subst_attr "mask_operand10"): New.
6035 (define_subst_attr "mask_operand_arg34") : New.
6036 (define_subst_attr "mask_expand_op3"): New.
6037 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6038 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6039 (define_subst_attr "mask_avx512vl_condition"): New.
6040 (define_subst_attr "round_mask_operand4"): Ditto.
6041 (define_subst_attr "round_mask_scalar_op3"): Delete.
6042 (define_subst_attr "round_mask_op4"): New.
6043 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6045 (define_subst_attr "round_modev8sf_condition"): New.
6046 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6048 (define_subst_attr "round_saeonly_mask_operand4"): New.
6049 (define_subst_attr "round_saeonly_mask_op4"): New.
6050 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6051 V8DImode, V16SImode.
6052 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6053 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6054 (define_subst_attr "mask_expand4_args"): New.
6055 (define_subst "mask_expand4"): New.
6057 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6058 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6059 Anna Tikhonova <anna.tikhonova@intel.com>
6060 Ilya Tocar <ilya.tocar@intel.com>
6061 Andrey Turetskiy <andrey.turetskiy@intel.com>
6062 Ilya Verbin <ilya.verbin@intel.com>
6063 Kirill Yukhin <kirill.yukhin@intel.com>
6064 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6066 * config/i386/i386.md
6067 (define_attr "isa"): Add avx512bw,noavx512bw.
6068 (define_attr "enabled"): Ditto.
6069 (define_split): Add 32/64-bit mask logic.
6070 (define_insn "*k<logic>qi"): New.
6071 (define_insn "*k<logic>hi"): New.
6072 (define_insn "*anddi_1"): Add mask version.
6073 (define_insn "*andsi_1"): Ditto.
6074 (define_insn "*<code><mode>_1"): Ditto.
6075 (define_insn "*<code>hi_1"): Ditto.
6076 (define_insn "kxnor<mode>"): New.
6077 (define_insn "kunpcksi"): New.
6078 (define_insn "kunpckdi"): New.
6079 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6080 (define_insn "*one_cmplhi2_1"): Ditto.
6082 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6083 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6084 Anna Tikhonova <anna.tikhonova@intel.com>
6085 Ilya Tocar <ilya.tocar@intel.com>
6086 Andrey Turetskiy <andrey.turetskiy@intel.com>
6087 Ilya Verbin <ilya.verbin@intel.com>
6088 Kirill Yukhin <kirill.yukhin@intel.com>
6089 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6091 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6094 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6095 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6096 Anna Tikhonova <anna.tikhonova@intel.com>
6097 Ilya Tocar <ilya.tocar@intel.com>
6098 Andrey Turetskiy <andrey.turetskiy@intel.com>
6099 Ilya Verbin <ilya.verbin@intel.com>
6100 Kirill Yukhin <kirill.yukhin@intel.com>
6101 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6103 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6105 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6106 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6107 xmm/ymm16+ when availble.
6108 * config/i386/i386.h
6109 (HARD_REGNO_NREGS): Add mask regs.
6110 (VALID_AVX512F_REG_MODE): Ditto.
6111 (VALID_AVX512F_REG_MODE) : Define.
6112 (VALID_MASK_AVX512BW_MODE): Ditto.
6113 (reg_class) (MASK_REG_P(X)): Define.
6114 * config/i386/i386.md: Do not split long moves with mask register,
6115 use kmovb if avx512bw is availible.
6116 (movdi_internal): Handle mask registers.
6118 2014-08-14 Richard Biener <rguenther@suse.de>
6120 PR tree-optimization/62081
6121 * tree-ssa-loop.c (pass_fix_loops): New pass.
6122 (pass_tree_loop::gate): Do not fixup loops here.
6123 * tree-pass.h (make_pass_fix_loops): Declare.
6124 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6126 2014-08-14 Richard Biener <rguenther@suse.de>
6128 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6129 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6131 2014-08-14 Richard Biener <rguenther@suse.de>
6133 PR tree-optimization/62090
6134 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6135 (fold_builtin_2): Do not fold sprintf.
6136 (fold_builtin_3): Likewise.
6137 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6138 moved from builtins.c.
6139 (gimple_fold_builtin): Fold sprintf.
6141 2014-08-14 Richard Biener <rguenther@suse.de>
6143 PR rtl-optimization/62079
6144 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6147 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6149 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6150 current_function_decl.
6152 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6154 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6155 cgraph_function_node to cgraph_node::function_symbol
6158 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6160 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6161 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6163 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6165 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6168 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6170 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6173 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6176 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6177 any registers that are used in mem_insn.
6179 2014-08-12 Steve Ellcey <sellcey@mips.com>
6181 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6183 2014-08-12 Steve Ellcey <sellcey@mips.com>
6185 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6186 (MULTILIB_DIRNAMES): Ditto.
6187 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6188 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6189 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6190 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6191 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6192 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6194 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6197 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6198 of __ARM_SIZEOF_WCHAR_T.
6200 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6203 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6204 Remove unnecessary attributes.
6206 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6208 * internal-fn.c (init_internal_fns): Fix off-by-one.
6210 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6211 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6212 Anna Tikhonova <anna.tikhonova@intel.com>
6213 Ilya Tocar <ilya.tocar@intel.com>
6214 Andrey Turetskiy <andrey.turetskiy@intel.com>
6215 Ilya Verbin <ilya.verbin@intel.com>
6216 Kirill Yukhin <kirill.yukhin@intel.com>
6217 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6219 * config/i386/i386.c (standard_sse_constant_opcode): Use
6220 vpxord/vpternlog if avx512 is availible.
6222 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6225 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6226 bitfields, that is when size doesn't match the size of type or the
6227 size of the constructor.
6229 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6231 * config/rs6000/constraints.md (wh constraint): New constraint,
6232 for FP registers if direct move is available.
6233 (wi constraint): New constraint, for VSX/FP registers that can
6234 handle 64-bit integers.
6235 (wj constraint): New constraint for VSX/FP registers that can
6236 handle 64-bit integers for direct moves.
6237 (wk constraint): New constraint for VSX/FP registers that can
6238 handle 64-bit doubles for direct moves.
6239 (wy constraint): Make documentation match implementation.
6241 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6242 scalar_in_vmx_p field to simplify tests of whether SFmode or
6243 DFmode can go in the Altivec registers.
6244 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6245 (rs6000_setup_reg_addr_masks): Likewise.
6246 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6247 field, and wh/wi/wj/wk constraints.
6248 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6249 the wh/wi/wj/wk constraints.
6250 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6251 upper registers, prefer VSX registers unless the operation is a
6252 memory operation with REG+OFFSET addressing.
6254 * config/rs6000/vsx.md (VSr mode attribute): Add support for
6255 DImode. Change SFmode to use ww constraint instead of d to allow
6256 SF registers in the upper registers.
6259 (VSr5): Fix thinko in comment.
6260 (VSa): New mode attribute that is an alternative to wa, that
6261 returns the VSX register class that a mode can go in, but may not
6262 be the preferred register class.
6263 (VS_64dm): New mode attribute for appropriate register classes for
6264 referencing 64-bit elements of vectors for direct moves and normal
6266 (VS_64reg): Likewise.
6267 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6268 register allocator to only registers the data type can handle.
6269 (vsx_le_perm_load_<mode>): Likewise.
6270 (vsx_le_perm_store_<mode>): Likewise.
6271 (vsx_xxpermdi2_le_<mode>): Likewise.
6272 (vsx_xxpermdi4_le_<mode>): Likewise.
6273 (vsx_lxvd2x2_le_<mode>): Likewise.
6274 (vsx_lxvd2x4_le_<mode>): Likewise.
6275 (vsx_stxvd2x2_le_<mode>): Likewise.
6276 (vsx_add<mode>3): Likewise.
6277 (vsx_sub<mode>3): Likewise.
6278 (vsx_mul<mode>3): Likewise.
6279 (vsx_div<mode>3): Likewise.
6280 (vsx_tdiv<mode>3_internal): Likewise.
6281 (vsx_fre<mode>2): Likewise.
6282 (vsx_neg<mode>2): Likewise.
6283 (vsx_abs<mode>2): Likewise.
6284 (vsx_nabs<mode>2): Likewise.
6285 (vsx_smax<mode>3): Likewise.
6286 (vsx_smin<mode>3): Likewise.
6287 (vsx_sqrt<mode>2): Likewise.
6288 (vsx_rsqrte<mode>2): Likewise.
6289 (vsx_tsqrt<mode>2_internal): Likewise.
6290 (vsx_fms<mode>4): Likewise.
6291 (vsx_nfma<mode>4): Likewise.
6292 (vsx_eq<mode>): Likewise.
6293 (vsx_gt<mode>): Likewise.
6294 (vsx_ge<mode>): Likewise.
6295 (vsx_eq<mode>_p): Likewise.
6296 (vsx_gt<mode>_p): Likewise.
6297 (vsx_ge<mode>_p): Likewise.
6298 (vsx_xxsel<mode>): Likewise.
6299 (vsx_xxsel<mode>_uns): Likewise.
6300 (vsx_copysign<mode>3): Likewise.
6301 (vsx_float<VSi><mode>2): Likewise.
6302 (vsx_floatuns<VSi><mode>2): Likewise.
6303 (vsx_fix_trunc<mode><VSi>2): Likewise.
6304 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
6305 (vsx_x<VSv>r<VSs>i): Likewise.
6306 (vsx_x<VSv>r<VSs>ic): Likewise.
6307 (vsx_btrunc<mode>2): Likewise.
6308 (vsx_b2trunc<mode>2): Likewise.
6309 (vsx_floor<mode>2): Likewise.
6310 (vsx_ceil<mode>2): Likewise.
6311 (vsx_<VS_spdp_insn>): Likewise.
6312 (vsx_xscvspdp): Likewise.
6313 (vsx_xvcvspuxds): Likewise.
6314 (vsx_float_fix_<mode>2): Likewise.
6315 (vsx_set_<mode>): Likewise.
6316 (vsx_extract_<mode>_internal1): Likewise.
6317 (vsx_extract_<mode>_internal2): Likewise.
6318 (vsx_extract_<mode>_load): Likewise.
6319 (vsx_extract_<mode>_store): Likewise.
6320 (vsx_splat_<mode>): Likewise.
6321 (vsx_xxspltw_<mode>): Likewise.
6322 (vsx_xxspltw_<mode>_direct): Likewise.
6323 (vsx_xxmrghw_<mode>): Likewise.
6324 (vsx_xxmrglw_<mode>): Likewise.
6325 (vsx_xxsldwi_<mode>): Likewise.
6326 (vsx_xscvdpspn): Tighten constraints to only use register classes
6328 (vsx_xscvspdpn): Likewise.
6329 (vsx_xscvdpspn_scalar): Likewise.
6331 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
6332 wj, and wk constraints.
6333 (GPR_REG_CLASS_P): New helper macro for register classes targeting
6334 general purpose registers.
6336 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
6338 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
6339 DImode instead of wm. Use wk constraint for direct move of DFmode
6341 (extendsidi2_lfiwax): Likewise.
6344 (movdi_internal64): Likewise.
6346 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
6347 wk constraints. Make the wy constraint documentation match them
6350 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
6352 Replacement of isl_int by isl_val
6353 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
6354 (compute_bounds_for_param): use isl_val instead of isl_int
6355 (compute_bounds_for_loop): likewise
6356 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
6357 (build_linearized_memory_access): use isl_val instead of isl_int
6358 (pdr_stride_in_loop): likewise
6359 * graphite-optimize-isl.c:
6360 (getPrevectorMap): use isl_val instead of isl_int
6362 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
6363 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
6364 (extern the_isl_ctx): declare
6365 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
6366 (extract_affine_gmp): likewise
6368 (build_loop_iteration_domains): likewise
6369 (add_param_constraints): likewise
6371 2014-08-11 Richard Biener <rguenther@suse.de>
6373 PR tree-optimization/62075
6374 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
6375 handle uses in patterns.
6377 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6378 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6379 Anna Tikhonova <anna.tikhonova@intel.com>
6380 Ilya Tocar <ilya.tocar@intel.com>
6381 Andrey Turetskiy <andrey.turetskiy@intel.com>
6382 Ilya Verbin <ilya.verbin@intel.com>
6383 Kirill Yukhin <kirill.yukhin@intel.com>
6384 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6386 * common/config/i386/i386-common.c
6387 (OPTION_MASK_ISA_AVX512VL_SET): Define.
6388 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
6389 (ix86_handle_option): Handle OPT_mavx512vl.
6390 * config/i386/cpuid.h (bit_AVX512VL): Define.
6391 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
6392 set -mavx512vl accordingly.
6393 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6394 OPTION_MASK_ISA_AVX512VL.
6395 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
6396 (ix86_option_override_internal): Define PTA_AVX512VL, handle
6397 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
6398 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
6399 * config/i386/i386.h (TARGET_AVX512VL): Define.
6400 (TARGET_AVX512VL_P(x)): Ditto.
6401 * config/i386/i386.opt: Add mavx512vl.
6403 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
6405 PR tree-optimization/62073
6406 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
6409 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6410 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6411 Anna Tikhonova <anna.tikhonova@intel.com>
6412 Ilya Tocar <ilya.tocar@intel.com>
6413 Andrey Turetskiy <andrey.turetskiy@intel.com>
6414 Ilya Verbin <ilya.verbin@intel.com>
6415 Kirill Yukhin <kirill.yukhin@intel.com>
6416 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6418 * common/config/i386/i386-common.c
6419 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
6420 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
6421 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
6422 (ix86_handle_option): Handle OPT_mavx512bw.
6423 * config/i386/cpuid.h (bit_AVX512BW): Define.
6424 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
6425 set -mavx512bw accordingly.
6426 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6427 OPTION_MASK_ISA_AVX512BW.
6428 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
6429 (ix86_option_override_internal): Define PTA_AVX512BW, handle
6430 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
6431 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
6432 * config/i386/i386.h (TARGET_AVX512BW): Define.
6433 (TARGET_AVX512BW_P(x)): Ditto.
6434 * config/i386/i386.opt: Add mavx512bw.
6436 2014-08-11 Richard Biener <rguenther@suse.de>
6438 PR tree-optimization/62070
6439 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
6440 Remove SSA checking.
6442 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6444 * asan.c (asan_check_flags): New enum.
6445 (build_check_stmt_with_calls): Removed function.
6446 (build_check_stmt): Split inlining logic to
6447 asan_expand_check_ifn.
6448 (instrument_derefs): Rename parameter.
6449 (instrument_mem_region_access): Rename parameter.
6450 (instrument_strlen_call): Likewise.
6451 (asan_expand_check_ifn): New function.
6452 (asan_instrument): Remove old code.
6453 (pass_sanopt::execute): Change handling of
6454 asan-instrumentation-with-call-threshold.
6455 (asan_clear_shadow): Fix formatting.
6456 (asan_function_start): Likewise.
6457 (asan_emit_stack_protection): Likewise.
6458 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
6460 * internal-fn.c (expand_ASAN_CHECK): New function.
6461 * internal-fn.def (ASAN_CHECK): New internal function.
6462 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
6464 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
6465 * tree.c: Small comment fix.
6467 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6469 * gimple.c (gimple_call_fnspec): Support internal functions.
6470 (gimple_call_return_flags): Use const.
6471 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
6472 * internal-fn.def: Add fnspec information.
6473 * internal-fn.h (internal_fn_fnspec): New function.
6474 (init_internal_fns): Declare new function.
6475 * internal-fn.c (internal_fn_fnspec_array): New global variable.
6476 (init_internal_fns): New function.
6477 * tree-core.h: Update macro call.
6478 * tree.c (build_common_builtin_nodes): Initialize internal fns.
6480 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
6482 * lto-streamer.h (struct output_block::symbol): Change from
6483 struct symtab_node to plain symtab_node.
6484 (referenced_from_this_partition_p): Change first parameter
6485 from struct symtab_node to plain symtab_node.
6487 2014-08-10 Marek Polacek <polacek@redhat.com>
6490 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
6492 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
6494 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
6495 DECL correctly; do not give up on types in static storage.
6497 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
6499 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
6501 2014-08-09 Roman Gareev <gareevroman@gmail.com>
6503 * graphite-isl-ast-to-gimple.c:
6504 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
6506 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
6508 2014-08-08 Guozhi Wei <carrot@google.com>
6510 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
6512 2014-08-08 Cary Coutant <ccoutant@google.com>
6514 * dwarf2out.c (get_skeleton_type_unit): Remove.
6515 (output_skeleton_debug_sections): Remove skeleton type units.
6516 (output_comdat_type_unit): Likewise.
6517 (dwarf2out_finish): Likewise.
6519 2014-08-07 Yi Yang <ahyangyi@google.com>
6521 * predict.c (expr_expected_value_1): Remove the redundant assignment.
6523 2014-08-08 Richard Biener <rguenther@suse.de>
6525 * lto-streamer.h (struct lto_input_block): Make it a class
6527 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
6528 (struct lto_function_header, struct lto_simple_header,
6529 struct lto_simple_header_with_strings,
6530 struct lto_decl_header, struct lto_function_header): Make
6531 a simple inheritance hieararchy. Remove unused fields.
6532 (struct lto_asm_header): Remove.
6533 * lto-streamer-out.c (produce_asm): Adjust.
6534 (lto_output_toplevel_asms): Likewise.
6535 (produce_asm_for_decls): Likewise.
6536 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
6537 * data-streamer-in.c (string_for_index): Likewise.
6538 * ipa-inline-analysis.c (inline_read_section): Likewise.
6539 * ipa-prop.c (ipa_prop_read_section): Likewise.
6540 (read_replacements_section): Likewise.
6541 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
6542 * lto-section-in.c (lto_create_simple_input_block): Likewise.
6543 (lto_destroy_simple_input_block): Likewise.
6544 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
6545 (lto_input_toplevel_asms): Likewise.
6547 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
6548 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6549 Anna Tikhonova <anna.tikhonova@intel.com>
6550 Ilya Tocar <ilya.tocar@intel.com>
6551 Andrey Turetskiy <andrey.turetskiy@intel.com>
6552 Ilya Verbin <ilya.verbin@intel.com>
6553 Kirill Yukhin <kirill.yukhin@intel.com>
6554 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6556 * common/config/i386/i386-common.c
6557 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
6558 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
6559 (ix86_handle_option): Handle OPT_mavx512dq.
6560 * config/i386/cpuid.h (bit_AVX512DQ): Define.
6561 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
6562 set -mavx512dq accordingly.
6563 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6564 OPTION_MASK_ISA_AVX512DQ.
6565 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
6566 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
6567 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
6568 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
6569 * config/i386/i386.h (TARGET_AVX512DQ): Define.
6570 (TARGET_AVX512DQ_P(x)): Ditto.
6571 * config/i386/i386.opt: Add mavx512dq.
6573 2014-08-08 Richard Biener <rguenther@suse.de>
6575 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
6576 target_percent, target_percent_s): Export.
6577 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
6578 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
6579 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
6580 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
6581 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
6582 Move to gimple-fold.c.
6583 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
6585 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
6586 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
6587 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
6588 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
6589 (rewrite_call_expr_array): Remove.
6590 (fold_builtin_sprintf_chk): Likewise.
6591 (fold_builtin_snprintf_chk): Likewise.
6592 (fold_builtin_varargs): Remove handling of sprintf_chk,
6593 vsprintf_chk, snprintf_chk and vsnprintf_chk.
6594 (gimple_fold_builtin_sprintf_chk): Remove.
6595 (gimple_fold_builtin_snprintf_chk): Likewise.
6596 (gimple_fold_builtin_varargs): Likewise.
6597 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
6598 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
6599 * gimple.c (gimple_seq_add_seq_without_update): New function.
6600 * gimple.h (gimple_seq_add_seq_without_update): Declare.
6601 * gimple-fold.c: Include output.h.
6602 (gsi_replace_with_seq_vops): New function, split out from ...
6603 (gimplify_and_update_call_from_tree): ... here.
6604 (replace_call_with_value): New function.
6605 (replace_call_with_call_and_fold): Likewise.
6606 (var_decl_component_p): Moved from builtins.c.
6607 (gimple_fold_builtin_memory_op): Moved from builtins.c
6608 fold_builtin_memory_op and rewritten to GIMPLE.
6609 (gimple_fold_builtin_memset): Likewise.
6610 (gimple_fold_builtin_strcpy): Likewise.
6611 (gimple_fold_builtin_strncpy): Likewise.
6612 (gimple_fold_builtin_strcat): Likewise.
6613 (gimple_fold_builtin_fputs): Likewise.
6614 (gimple_fold_builtin_memory_chk): Likewise.
6615 (gimple_fold_builtin_stxcpy_chk): Likewise.
6616 (gimple_fold_builtin_stxncpy_chk): Likewise.
6617 (gimple_fold_builtin_snprintf_chk): Likewise.
6618 (gimple_fold_builtin_sprintf_chk): Likewise.
6619 (gimple_fold_builtin_strlen): New function.
6620 (gimple_fold_builtin_with_strlen): New function split out from
6621 gimple_fold_builtin.
6622 (gimple_fold_builtin): Change signature and handle
6623 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
6624 here. Call gimple_fold_builtin_with_strlen.
6625 (gimple_fold_call): Adjust.
6627 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
6629 * calls.c (precompute_arguments): Check
6630 promoted_for_signed_and_unsigned_p and set the promoted mode.
6631 (promoted_for_signed_and_unsigned_p): New function.
6632 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
6633 and set the promoted mode.
6634 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
6635 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
6636 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
6639 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
6641 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
6642 instead of SUBREG_PROMOTED_UNSIGNED_SET.
6643 (expand_call): Likewise.
6644 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
6645 to get promoted mode.
6646 * combine.c (record_promoted_value): Skip > 0 comparison with
6647 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
6648 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
6649 of SUBREG_PROMOTED_UNSIGNED_P.
6650 (convert_modes): Likewise.
6651 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
6652 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
6653 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
6654 SUBREG_PROMOTED_UNSIGNED_SET.
6655 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
6656 instead of SUBREG_PROMOTED_UNSIGNED_SET.
6657 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
6658 SUBREG_PROMOTED_SET.
6659 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
6660 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
6661 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
6662 of SUBREG_PROMOTED_UNSIGNED_P.
6663 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
6664 (SUBREG_PROMOTED_SET): New define.
6665 (SUBREG_PROMOTED_GET): Likewise.
6666 (SUBREG_PROMOTED_SIGN): Likewise.
6667 (SUBREG_PROMOTED_SIGNED_P): Likewise.
6668 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
6669 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
6670 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
6671 instead of SUBREG_PROMOTED_UNSIGNED_GET.
6672 (nonzero_bits1): Skip > 0 comparison with the results as
6673 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
6674 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
6675 of !SUBREG_PROMOTED_UNSIGNED_P.
6676 * simplify-rtx.c (simplify_unary_operation_1): Use new
6677 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
6678 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
6679 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
6680 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
6682 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
6684 * ipa-devirt.c: Include gimple-pretty-print.h
6685 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
6687 (decl_maybe_in_construction_p): Fix conditional on cdtor check
6688 (get_polymorphic_call_info): Fix return value
6689 (type_change_info): New sturcture based on ipa-prop
6691 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
6692 based on ipa-prop variant.
6693 (extr_type_from_vtbl_ptr_store): New function
6694 based on ipa-prop variant.
6695 (record_known_type): New function.
6696 (check_stmt_for_type_change): New function.
6697 (get_dynamic_type): New function.
6698 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
6699 * tree-ssa-pre.c: ipa-utils.h
6700 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
6701 machinery; sanity check with ipa-prop devirtualization.
6702 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
6705 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
6707 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
6708 * alias.c, cfgexpand.c, cgraphbuild.c,
6709 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
6710 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
6711 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
6712 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
6713 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
6714 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6715 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
6716 dse.c, except.c, gengtype.c, gimple-expr.c,
6717 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
6718 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
6719 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
6720 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
6721 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
6722 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
6724 * pointer-set.c: Remove file.
6725 * pointer-set.h: Remove file.
6727 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6729 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
6730 * config/arm/types.md (f_sels, f_seld): Delete.
6732 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6734 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
6735 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
6736 (aarch64_movdi_<mode>high): Likewise.
6737 (aarch64_mov<mode>high_di): Likewise.
6738 (aarch64_movdi_<mode>low): Likewise.
6739 (aarch64_mov<mode>low_di): Likewise.
6740 (aarch64_movtilow_tilow): Likewise.
6741 Add comment explaining usage of fp,simd attributes and of
6742 TARGET_FLOAT and TARGET_SIMD.
6744 2014-08-07 Ian Bolton <ian.bolton@arm.com>
6745 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6747 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
6748 Use MOVN when one of the half-words is 0xffff.
6750 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
6752 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
6754 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
6756 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
6757 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
6758 (rfs_str): String corresponding to RFS_* constants.
6759 (rank_for_schedule_stats_t): New typedef.
6760 (rank_for_schedule_stats): New static variable.
6761 (rfs_result): New static function.
6762 (rank_for_schedule): Track statistics for deciding heuristics.
6763 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
6765 (ready_sort): Use them for debug printouts.
6766 (schedule_block): Init statistics state. Print statistics on
6767 rank_for_schedule decisions.
6769 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
6771 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
6773 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
6775 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
6778 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
6780 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
6781 function to not conflict.
6782 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
6783 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
6784 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
6785 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
6786 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
6789 2014-08-07 Marek Polacek <polacek@redhat.com>
6791 * fold-const.c (fold_binary_loc): Add folding of
6792 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
6794 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
6796 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
6797 instead of type size.
6798 (ASM_FINISH_DECLARE_OBJECT): Likewise.
6800 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
6802 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
6803 (*thumb1_movqi_insn): Likewise.
6804 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
6806 2014-08-07 Tom de Vries <tom@codesourcery.com>
6808 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
6809 (glibc_2_11_or_earlier): Remove effective-target keywords.
6811 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
6813 * config/arm/arm.c (bdesc_2arg): Fix typo.
6814 (arm_atomic_assign_expand_fenv): Remove The default implementation.
6816 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
6818 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
6820 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
6823 * haifa-sched.c (advance_one_cycle): Fix dump.
6824 (schedule_block): Don't advance cycle if we are already at the
6825 beginning of the cycle.
6827 2014-08-06 Martin Jambor <mjambor@suse.cz>
6830 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
6832 2014-08-06 Richard Biener <rguenther@suse.de>
6835 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
6837 (lto_input_tree): Pop SCCs here.
6839 2014-08-06 Richard Biener <rguenther@suse.de>
6841 PR tree-optimization/61320
6842 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
6843 handle misaligned loads.
6845 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
6847 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
6848 (aarch64_expand_vec_perm_const): Check for dup before zip.
6850 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6852 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
6853 CONST_INT_P instead of GET_CODE and compare.
6854 (aarch64_select_cc_mode): Likewise.
6855 (aarch64_print_operand): Likewise.
6856 (aarch64_rtx_costs): Likewise.
6857 (aarch64_simd_valid_immediate): Likewise.
6858 (aarch64_simd_check_vect_par_cnst_half): Likewise.
6859 (aarch64_simd_emit_pair_result_insn): Likewise.
6861 2014-08-05 David Malcolm <dmalcolm@redhat.com>
6863 * gdbhooks.py (find_gcc_source_dir): New helper function.
6864 (class PassNames): New class, locating and parsing passes.def.
6865 (class BreakOnPass): New command "break-on-pass".
6867 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
6869 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
6872 2014-08-05 Richard Biener <rguenther@suse.de>
6874 PR rtl-optimization/61672
6875 * emit-rtl.h (mem_attrs_eq_p): Declare.
6876 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
6877 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
6878 * cfgcleanup.c (merge_memattrs): Likewise.
6881 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6883 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
6884 rather than singleton vectors.
6885 (vqdmlsls_lane_s32): Likewise.
6887 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6889 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
6890 Use VSDQ_HSI mode iterator.
6891 (aarch64_sqrdmulh_laneq<mode>): Likewise.
6892 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
6893 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
6894 Use BUILTIN_VDQHS macro.
6895 (sqrdmulh_laneq): Likewise.
6896 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
6897 (vqdmlals_laneq_s32): Likewise.
6898 (vqdmlslh_laneq_s16): Likewise.
6899 (vqdmlsls_laneq_s32): Likewise.
6900 (vqdmulhh_laneq_s16): Likewise.
6901 (vqdmulhs_laneq_s32): Likewise.
6902 (vqrdmulhh_laneq_s16): Likewise.
6903 (vqrdmulhs_laneq_s32): Likewise.
6905 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6907 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
6908 (vmuld_laneq_f64): Likewise.
6909 (vmuls_laneq_f32): Likewise.
6910 (vmul_n_f64): Likewise.
6911 (vmuld_lane_f64): Reimplement in C.
6912 (vmuls_lane_f32): Likewise.
6914 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6916 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
6918 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
6920 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6922 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
6923 (rbitsi2): Likewise.
6924 (*arm_rev): Set predicable and predicable_short_it attributes.
6926 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6928 * convert.c (convert_to_integer): Guard transformation to lrint by
6931 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
6933 * config/aarch64/aarch64-builtins.c
6934 (aarch64_simd_builtin_type_mode): Delete.
6935 (v8qi_UP): Remap to V8QImode.
6936 (v4hi_UP): Remap to V4HImode.
6937 (v2si_UP): Remap to V2SImode.
6938 (v2sf_UP): Remap to V2SFmode.
6939 (v1df_UP): Remap to V1DFmode.
6940 (di_UP): Remap to DImode.
6941 (df_UP): Remap to DFmode.
6942 (v16qi_UP):V16QImode.
6943 (v8hi_UP): Remap to V8HImode.
6944 (v4si_UP): Remap to V4SImode.
6945 (v4sf_UP): Remap to V4SFmode.
6946 (v2di_UP): Remap to V2DImode.
6947 (v2df_UP): Remap to V2DFmode.
6948 (ti_UP): Remap to TImode.
6949 (ei_UP): Remap to EImode.
6950 (oi_UP): Remap to OImode.
6951 (ci_UP): Map to CImode.
6952 (xi_UP): Remap to XImode.
6953 (si_UP): Remap to SImode.
6954 (sf_UP): Remap to SFmode.
6955 (hi_UP): Remap to HImode.
6956 (qi_UP): Remap to QImode.
6957 (aarch64_simd_builtin_datum): Make mode a machine_mode.
6958 (VAR1): Build builtin name.
6959 (aarch64_init_simd_builtins): Remove dead code.
6961 2014-08-05 Roman Gareev <gareevroman@gmail.com>
6963 * graphite-isl-ast-to-gimple.c:
6964 (set_options): New function.
6965 (scop_to_isl_ast): Add calling of set_options.
6967 2014-08-05 Jakub Jelinek <jakub@redhat.com>
6969 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
6970 (analyze_iv_to_split_insn): Don't initialize them.
6971 (get_ivts_expr): Removed.
6972 (allocate_basic_variable, insert_base_initialization): Use
6973 SET_SRC instead of *get_ivts_expr.
6974 (split_iv): Use &SET_SRC instead of get_ivts_expr.
6976 2014-08-05 Roman Gareev <gareevroman@gmail.com>
6978 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
6979 (translate_isl_ast_for_loop): Add checking of the
6980 flag_loop_parallelize_all.
6981 (ast_build_before_for): New function.
6982 (scop_to_isl_ast): Add checking of the
6983 flag_loop_parallelize_all.
6984 * graphite-dependences.c: Move the defenition of the
6985 scop_get_dependences from graphite-optimize-isl.c to this file.
6986 (apply_schedule_on_deps): Add checking of the ux's emptiness.
6987 (carries_deps): Add checking of the x's value.
6988 * graphite-optimize-isl.c: Move the defenition of the
6989 scop_get_dependences to graphite-dependences.c.
6990 * graphite-poly.h: Add declarations of scop_get_dependences
6993 2014-08-04 Rohit <rohitarulraj@freescale.com>
6996 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
6998 (alt_reg_names): Likewise.
6999 (rs6000_dwarf_register_span): For SPE high registers, replace
7000 dwarf register numbers with GCC hard register numbers.
7001 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7002 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7003 register number for the corresponding GCC hard register number.
7004 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7005 newly added GCC hard register numbers for SPE high registers.
7006 (DWARF_FRAME_REGISTERS): Likewise.
7007 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7008 (DWARF_FRAME_REGNUM): Likewise.
7009 (FIXED_REGISTERS): Likewise.
7010 (CALL_USED_REGISTERS): Likewise.
7011 (CALL_REALLY_USED_REGISTERS): Likewise.
7012 (REG_ALLOC_ORDER): Likewise.
7013 (enum reg_class): Likewise.
7014 (REG_CLASS_NAMES): Likewise.
7015 (REG_CLASS_CONTENTS): Likewise.
7016 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7018 2014-08-04 Richard Biener <rguenther@suse.de>
7020 * gimple-fold.h (gimple_fold_builtin): Remove.
7021 * gimple-fold.c (gimple_fold_builtin): Make static.
7022 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7023 fold_stmt, not gimple_fold_builtin.
7025 2014-08-04 Martin Liska <mliska@suse.cz>
7027 * cgraph.h (csi_end_p): Removed.
7028 (csi_next): Likewise.
7029 (csi_node): Likewise.
7030 (csi_start): Likewise.
7031 (cgraph_node_in_set_p): Likewise.
7032 (cgraph_node_set_size): Likewise.
7033 (vsi_end_p): Likewise.
7034 (vsi_next): Likewise.
7035 (vsi_node): Likewise.
7036 (vsi_start): Likewise.
7037 (varpool_node_set_size): Likewise.
7038 (cgraph_node_set_nonempty_p): Likewise.
7039 (varpool_node_set_nonempty_p): Likewise.
7040 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7042 * ipa-inline-transform.c: Likewise.
7043 * ipa-utils.c (cgraph_node_set_new): Removed.
7044 (cgraph_node_set_add): Likewise.
7045 (cgraph_node_set_remove): Likewise.
7046 (cgraph_node_set_find): Likewise.
7047 (dump_cgraph_node_set): Likewise.
7048 (debug_cgraph_node_set): Likewise.
7049 (free_cgraph_node_set): Likewise.
7050 (varpool_node_set_new): Likewise.
7051 (varpool_node_set_add): Likewise.
7052 (varpool_node_set_remove): Likewise.
7053 (varpool_node_set_find): Likewise.
7054 (dump_varpool_node_set): Likewise.
7055 (free_varpool_node_set): Likewise.
7056 (debug_varpool_node_set): Likewise.
7057 * tree-emutls.c (struct tls_var_data):
7058 (emutls_index): Removed.
7059 (emutls_decl): Likewise.
7060 (gen_emutls_addr): Function implementation uses newly added
7061 hash_map<varpool_node *, tls_var_data>.
7062 (clear_access_vars): Likewise.
7063 (create_emultls_var): Likewise.
7064 (ipa_lower_emutls): Likewise.
7065 (reset_access): New function.
7067 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7069 * config/i386/i386.c (ix86_option_override_internal): Add
7070 PTA_RDRND and PTA_MOVBE for bdver4.
7072 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7073 James Greenhalgh <james.greenhalgh@arm.com>
7075 * doc/md.texi (clrsb): Document.
7076 (clz): Change reference to x into operand 1.
7078 (popcount): Likewise.
7080 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7083 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7084 move to subtarget in serial version if result is ignored.
7086 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7087 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7089 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7090 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7091 (sched_analyze_insn): Update use of try_group_insn to
7092 sched_macro_fuse_insns.
7093 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7094 arguments that are not conditional jumps.
7096 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7098 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7099 family information. Handle BTVER2 cpu with cpuid family value.
7101 2014-08-04 Tom de Vries <tom@codesourcery.com>
7103 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7104 (glibc_2_11_or_earlier): Document effective-target keywords.
7106 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7108 * ipa-devirt.c (odr_type_warn_count): Add type.
7109 (possible_polymorphic_call_targets): Set it.
7110 (ipa_devirt): Use it.
7112 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7114 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7116 * ipa-devirt.c: Include hash-map.h
7117 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7118 (clear_speculation): Break out of ...
7119 (get_class_context): ... here; speed up handling obviously useless
7121 (odr_type_warn_count, decl_warn_count): New structures.
7122 (final_warning_record): New structure.
7123 (final_warning_records): New static variable.
7124 (possible_polymorphic_call_targets): Cleanup handling of
7125 speculative info; do not build speculation when user do not care;
7126 record info about warnings when asked for.
7127 (add_decl_warning): New function.
7128 (type_warning_cmp): New function.
7129 (decl_warning_cmp): New function.
7130 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7131 (gate): Enable pass when warnings are requested.
7132 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7135 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7137 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7139 (hash_map::remove): New method.
7140 (hash_map::traverse): New method.
7141 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7142 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7143 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7144 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7145 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7146 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7149 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7151 * hash-set.h: new File.
7152 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7153 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7154 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7155 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7156 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7157 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7158 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7159 varpool.c: Use hash_set instead of pointer_set.
7161 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7163 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7165 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7167 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7168 for frame access when strict_p is false.
7170 2014-08-01 Renlin Li <renlin.li@arm.com>
7171 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7173 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7174 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7175 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7177 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7179 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7180 aarch64_mem_pair_offset.
7182 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7184 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7186 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7187 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7189 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7191 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7193 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7196 * cgraphunit.c (analyze_functions): Use get_create rather than get
7197 for decls which are clones of abstract functions.
7199 2014-08-01 Martin Liska <mliska@suse.cz>
7201 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7202 * ipa-prop.h (count_formal_params): Global function created from static.
7203 * ipa-prop.c (count_formal_params): Likewise.
7204 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7205 profiles for semantically equivalent functions.
7206 * passes.c (do_per_function): If we load body of a function
7207 during WPA, this condition should behave same.
7208 * varpool.c (ctor_for_folding): More tolerant assert for variable
7209 aliases created during WPA.
7211 2014-08-01 Martin Liska <mliska@suse.cz>
7213 * doc/invoke.texi (Options That Control Optimization): Documentation
7214 for -foptimize-strlen introduced. Optimization levels default options
7217 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7219 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7220 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7221 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7223 * stor-layout.h (min_align_of_type): New prototype.
7224 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7225 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7227 * ubsan.c: Include builtins.h.
7228 (ubsan_expand_bounds_ifn): Change return type to bool,
7230 (ubsan_expand_null_ifn): Change return type to bool, change
7231 argument to gimple_stmt_iterator *. Handle both null and alignment
7232 sanitization, take type from ckind argument's type rather than
7234 (instrument_member_call): Removed.
7235 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7236 Handle both null and alignment sanitization, don't say whole
7237 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7238 call instead of 2 argument.
7239 (instrument_null): Adjust instrument_mem_ref caller. Don't
7240 instrument calls here.
7241 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7243 * stor-layout.c (min_align_of_type): New function.
7244 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7245 Or it into SANITIZE_UNDEFINED.
7246 * doc/invoke.texi (-fsanitize=alignment): Document.
7248 2014-07-31 Andi Kleen <ak@linux.intel.com>
7250 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7252 2014-07-31 Andi Kleen <ak@linux.intel.com>
7254 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7256 (vn_reference_compute_hash): Dito.
7257 (vn_nary_op_compute_hash): Dito.
7258 (vn_phi_compute_hash): Dito.
7259 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7261 2014-07-31 Andi Kleen <ak@linux.intel.com>
7263 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7264 Rename to inchash:add_expr_commutative. Convert to inchash.
7265 (iterative_hash_hashable_expr): Rename to
7266 inchash:add_hashable_expr. Convert to inchash.
7267 (avail_expr_hash): Dito.
7269 2014-07-31 Andi Kleen <ak@linux.intel.com>
7271 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
7274 2014-07-31 Andi Kleen <ak@linux.intel.com>
7276 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
7278 2014-07-31 Andi Kleen <ak@linux.intel.com>
7280 * Makefile.in (OBJS): Add rtlhash.o
7281 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
7282 (loc_checksum): Dito.
7283 (loc_checksum_ordered): Dito.
7284 (hash_loc_operands): Dito.
7286 (hash_loc_list): Dito.
7287 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
7288 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
7289 * rtlhash.c: New file.
7290 * rtlhash.h: New file.
7292 2014-07-31 Andi Kleen <ak@linux.intel.com>
7294 * inchash.h (inchash): Change inchash class to namespace.
7295 (class hash): ... Rename from inchash.
7296 (add_object): Move from macro to class template.
7297 * lto-streamer-out.c (hash_tree): Change inchash
7299 * tree.c (build_type_attribute_qual_variant): Dito.
7300 (type_hash_list): Dito.
7301 (attribute_hash_list): Dito.
7302 (iterative_hstate_expr): Rename to inchash::add_expr
7303 (build_range_type_1): Change inchash to inchash::hash
7304 and use hash::add_expr.
7305 (build_array_type_1): Dito.
7306 (build_function_type): Dito
7307 (build_method_type_directly): Dito.
7308 (build_offset_type): Dito.
7309 (build_complex_type): Dito.
7310 (make_vector_type): Dito.
7311 * tree.h (iterative_hash_expr): Dito.
7313 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
7315 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
7317 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7319 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
7320 correct alphabetical position.
7321 (vpaddd_f64): Rewrite using builtins.
7322 (vpaddd_s64): Move to correct alphabetical position.
7325 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
7328 * config/sh/sh.c (sh_legitimate_address_p,
7329 sh_legitimize_reload_address): Handle reg+reg address modes when
7330 ALLOW_INDEXED_ADDRESS is false.
7331 * config/sh/predicates.md (general_movsrc_operand,
7332 general_movdst_operand): Likewise.
7334 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7336 * config/aarch64/aarch64-builtins.c
7337 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
7340 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7342 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
7343 the generated mask based on BYTES_BIG_ENDIAN.
7344 (aarch64_simd_check_vect_par_cnst_half): New.
7345 * config/aarch64/aarch64-protos.h
7346 (aarch64_simd_check_vect_par_cnst_half): New.
7347 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
7348 the check out to aarch64_simd_check_vect_par_cnst_half.
7349 (vect_par_cnst_lo_half): Likewise.
7350 * config/aarch64/aarch64-simd.md
7351 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
7352 (move_hi_quad_<mode>): Always generate a low mask.
7354 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7356 * doc/invoke.texi (AVR Options): Add documentation about
7357 __AVR_DEVICE_NAME__ built-in macro.
7359 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
7362 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
7363 constraints are satisfied.
7364 (<shift>di3_neon): Likewise.
7366 2014-07-31 Richard Biener <rguenther@suse.de>
7368 PR tree-optimization/61964
7369 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
7370 by structural equality.
7372 2014-07-31 Yury Gribov <y.gribov@samsung.com>
7374 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
7375 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
7376 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
7378 * gcc.c (sanitize_spec_function): Support new option.
7379 (SANITIZER_SPEC): Remove now redundant check.
7380 * opts.c (common_handle_option): Support new option.
7381 (finish_options): Check for incompatibilities.
7382 * toplev.c (process_options): Split userspace-specific checks.
7384 2014-07-31 Richard Biener <rguenther@suse.de>
7386 * lto-streamer.h (struct output_block): Remove global.
7387 (struct data_in): Remove labels, num_named_labels and
7389 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
7390 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
7392 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
7395 * common.opt (-Wreturn-local-addr): Moved from c.opt.
7396 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
7397 (isolate_path): New argument to avoid inserting a trap.
7398 (find_implicit_erroneous_behaviour): Handle returning the address
7399 of a local variable.
7400 (find_explicit_erroneous_behaviour): Likewise.
7402 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
7405 * toplev.c (init_random_seed): Move piece of code never called to
7407 (set_random_seed): see above.
7409 2014-07-31 Tom de Vries <tom@codesourcery.com>
7411 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
7413 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
7415 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
7416 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
7418 2014-07-31 Richard Biener <rguenther@suse.de>
7420 * data-streamer.h (streamer_write_data_stream): Declare here,
7422 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
7423 * lto-cgraph.c (lto_output_node): Adjust.
7424 (lto_output_varpool_node): Likewise.
7425 * data-streamer-out.c (streamer_string_index): Likewise.
7426 (streamer_write_data_stream, lto_append_block): Move from ...
7427 * lto-section-out.c (lto_output_data_stream,
7428 lto_append_block): ... here.
7430 2014-07-30 Mike Stump <mikestump@comcast.net>
7432 * configure.ac: Also check for popen.
7433 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
7434 * configure: Regenerate.
7435 * config.in: Regenerate.
7437 2014-07-30 Martin Jambor <mjambor@suse.cz>
7439 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
7440 parameter to gimple.
7442 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7444 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
7445 address as second parameter to __tpf_eh_return routine.
7447 2014-07-30 Jiong Wang <jiong.wang@arm.com>
7449 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
7452 2014-07-30 Tom Tromey <tromey@redhat.com>
7455 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
7456 * doc/extend.texi (Type Attributes): Document designated_init
7459 2014-07-30 Roman Gareev <gareevroman@gmail.com>
7461 * graphite-isl-ast-to-gimple.c:
7462 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
7463 (gcc_expression_from_isl_expression): Pass type to
7464 gcc_expression_from_isl_ast_expr_id.
7466 2014-07-30 Richard Biener <rguenther@suse.de>
7468 * lto-streamer.h (lto_write_data): New function.
7469 * langhooks.c (lhd_append_data): Do not free block.
7470 * lto-section-out.c (lto_write_data): New function writing
7471 raw data to the current section.
7472 (lto_write_stream): Adjust for langhook semantic change.
7473 (lto_destroy_simple_output_block): Write header directly.
7474 * lto-opts.c (lto_write_options): Write options directly.
7475 * lto-streamer-out.c (produce_asm): Write heaeder directly.
7476 (lto_output_toplevel_asms): Likewise.
7477 (copy_function_or_variable): Copy data directly.
7478 (write_global_references): Output index table directly.
7479 (lto_output_decl_state_refs): Likewise.
7480 (write_symbol): Write data directly.
7481 (produce_symtab): Adjust.
7482 (produce_asm_for_decls): Output header and refs directly.
7484 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7486 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
7487 to speculative_targets
7488 (get_class_context): Fix handling of contextes without outer type;
7489 avoid matching non-polymorphic types in LTO.
7490 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
7491 parameter to speculative_targetsp; handle speculation.
7492 (dump_possible_polymorphic_call_targets): Update dumping.
7494 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7496 * common.opt (Wodr): Enable by default.
7498 2014-07-29 Olivier Hainque <hainque@adacore.com>
7500 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
7502 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
7505 * gengtype.c (strtoken): New function.
7506 (create_user_defined_type): Replace strtok with strtoken.
7508 2014-07-29 Nathan Sidwell <nathan@acm.org>
7510 * gcov-io.c (gcov_var): Make hidden.
7511 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
7512 (gcov_do_dump): Declare.
7513 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
7515 2014-07-29 Martin Jambor <mjambor@suse.cz>
7517 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
7518 parameter to gimple.
7519 (sra_modify_assign): Likewise.
7521 2014-07-29 Richard Biener <rguenther@suse.de>
7524 * expr.c (expand_expr_real_2): Revert last change.
7526 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7528 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
7529 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
7530 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
7532 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
7533 (contains_type_p): Forward declare.
7534 (polymorphic_call_target_hasher::hash): Hash speculative info.
7535 (polymorphic_call_target_hasher::equal): Compare speculative info.
7536 (get_class_context): Handle speuclation.
7537 (contains_type_p): Update.
7538 (get_polymorphic_call_info_for_decl): Update.
7539 (walk_ssa_copies): Break out from ...
7540 (get_polymorphic_call_info): ... here; set speculative context
7542 * ipa-prop.c (ipa_write_indirect_edge_info,
7543 ipa_read_indirect_edge_info): Stream speculative context.
7544 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
7545 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
7546 SPECULATIVE_MAYBE_DERIVED_TYPE).
7547 (possible_polymorphic_call_targets overriders): Update.
7548 (dump_possible_polymorphic_call_targets overriders): Update.
7549 (dump_possible_polymorphic_call_target_p overriders): Update.
7551 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7553 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
7554 ipa-devirt path; fix thinko there.
7556 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
7558 * config/i386/i386.c (ix86_return_in_memory): Replace one
7559 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
7561 2014-07-28 Marek Polacek <polacek@redhat.com>
7563 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
7565 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
7567 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
7568 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
7569 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
7570 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7571 (USE_LD_AS_NEEDED): Likewise.
7572 (ASM_APP_ON): Likewise.
7573 (ASM_APP_OFF): Likewise.
7574 (TARGET_POSIX_IO): Likewise.
7575 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
7576 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7577 (USE_LD_AS_NEEDED): Likewise.
7578 (ASM_APP_ON): Likewise.
7579 (ASM_APP_OFF): Likewise.
7580 (TARGET_POSIX_IO): Likewise.
7582 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
7585 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
7586 operators other than the equality operators.
7588 2014-07-28 Richard Biener <rguenther@suse.de>
7591 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
7592 sure to register SImode ones, not only >= word_mode ones.
7593 * expr.c (expand_expr_real_2): When expanding -ftrapv
7594 binops do not use OPTAB_LIB_WIDEN.
7596 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
7599 * tree-outof-ssa.c (insert_partition_copy_on_edge)
7600 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
7601 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
7602 inserting them in the insn stream.
7604 2014-07-28 Marek Polacek <polacek@redhat.com>
7607 * common.opt (Wodr): Add Var.
7609 2014-07-28 Richard Biener <rguenther@suse.de>
7611 PR tree-optimization/61921
7612 * tree-ssa-structalias.c (create_variable_info_for_1): Check
7613 if there is a varpool node before dereferencing it.
7615 2014-07-28 Roman Gareev <gareevroman@gmail.com>
7617 * graphite-sese-to-poly.c:
7618 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
7619 id of the pbb), which contains pointer to the pbb1.
7621 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
7623 2014-07-28 Roman Gareev <gareevroman@gmail.com>
7625 * graphite-isl-ast-to-gimple.c:
7626 (graphite_create_new_guard): New function.
7627 (translate_isl_ast_node_if): New function.
7628 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
7630 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
7632 2014-07-27 Anthony Green <green@moxielogic.com>
7634 * config.gcc: Add moxie-*-moxiebox* configuration.
7635 * config/moxie/moxiebox.h: New file.
7637 2014-07-26 Andrew Pinski <apinski@cavium.com>
7639 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
7640 from the read only register.
7642 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
7644 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
7645 as the allocation class if it isn't likely to be spilled.
7647 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
7649 * rtl.h (tls_referenced_p): Declare.
7650 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
7651 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
7652 (mips_cannot_force_const_mem): Use tls_referenced_p.
7653 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
7654 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
7655 instead of pa_tls_referenced_p.
7656 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
7657 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
7658 (pa_legitimate_constant_p): Likewise.
7659 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
7660 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
7661 (rs6000_cannot_force_const_mem, rs6000_emit_move)
7662 (rs6000_address_for_altivec): Use tls_referenced_p instead of
7663 rs6000_tls_referenced_p.
7664 (rs6000_tls_symbol_ref_1): Delete.
7666 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
7669 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7670 Optimize inverse of a VEC_CONCAT.
7672 2014-07-25 Xinliang David Li <davidxl@google.com>
7674 * params.def: New parameter.
7675 * coverage.c (get_coverage_counts): Check new flag.
7676 (coverage_compute_profile_id): Check new flag.
7677 (coverage_begin_function): Check new flag.
7678 (coverage_end_function): Check new flag.
7679 * value-prof.c (coverage_node_map_initialized_p): New function.
7680 (init_node_map): Populate map with all functions.
7681 * doc/invoke.texi: Document new parameter.
7683 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
7684 Richard Biener <rguenther@suse.de>
7686 * lto-streamer-out.c (struct sccs): Turn to ...
7687 (class DFS): ... this one; refactor the DFS walk so it can
7688 be re-done on per-SCC basis.
7689 (DFS::DFS): New constructor.
7690 (DFS::~DFS): New destructor.
7691 (hash_tree): Add new MAP argument holding in-SCC hash values;
7692 remove POINTER_TYPE hashing hack.
7693 (scc_entry_compare): Rename to ...
7694 (DFS::scc_entry_compare): ... this one.
7695 (hash_scc): Rename to ...
7696 (DFS::hash_scc): ... this one; pass output_block instead
7697 of streamer_cache; work harder to get unique and stable SCC
7699 (DFS_write_tree): Rename to ...
7700 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
7701 (lto_output_tree): Update.
7703 2014-07-25 Andi Kleen <ak@linux.intel.com>
7705 * lto-streamer-out.c (hash_tree): Convert to inchash.
7707 2014-07-25 Andi Kleen <ak@linux.intel.com>
7709 * tree.c (build_type_attribute_qual_variant): Use inchash.
7710 (type_hash_list): Dito.
7711 (attribute_hash_list): Dito
7712 (iterative_hstate_expr): Dito.
7713 (iterative_hash_expr): Dito.
7714 (build_range_type_1): Dito.
7715 (build_array_type_1): Dito.
7716 (build_function_type): Dito.
7717 (build_method_type_directly): Dito.
7718 (build_offset_type): Dito.
7719 (build_complex_type): Dito.
7720 (make_vector_type): Dito.
7721 * tree.h (iterative_hash_expr): Add compat wrapper.
7722 (iterative_hstate_expr): Add.
7724 2014-07-25 Andi Kleen <ak@linux.intel.com>
7726 * Makefile.in (OBJS): Add inchash.o.
7727 (PLUGIN_HEADERS): Add inchash.h.
7728 * ipa-devirt.c: Include inchash.h.
7729 * lto-streamer-out.c: Dito.
7730 * tree-ssa-dom.c: Dito.
7731 * tree-ssa-pre.c: Dito.
7732 * tree-ssa-sccvn.c: Dito.
7733 * tree-ssa-tail-merge.c: Dito.
7735 * tree.c (iterative_hash_hashval_t): Move to ...
7736 (iterative_hash_host_wide_int): Move to ...
7737 * inchash.c: Here. New file.
7738 * tree.h (iterative_hash_hashval_t): Move to ...
7739 (iterative_hash_host_wide_int): Move to ...
7740 * inchash.h: Here. New file.
7742 2014-07-25 Richard Biener <rguenther@suse.de>
7746 * fold-const.c (native_encode_int): Add and handle offset
7747 parameter to do partial encodings of expr.
7748 (native_encode_fixed): Likewise.
7749 (native_encode_real): Likewise.
7750 (native_encode_complex): Likewise.
7751 (native_encode_vector): Likewise.
7752 (native_encode_string): Likewise.
7753 (native_encode_expr): Likewise.
7754 * fold-const.c (native_encode_expr): Add offset parameter
7756 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
7757 (fold_ctor_reference): Handle all reads from tcc_constant
7760 2014-07-25 Richard Biener <rguenther@suse.de>
7762 * tree-inline.c (estimate_move_cost): Mark speed_p argument
7765 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7767 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
7769 2014-07-24 Kyle McMartin <kyle@redhat.com>
7771 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
7773 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7775 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
7777 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
7779 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
7780 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
7781 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
7783 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7785 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
7786 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
7787 aggregate types. Instead, *all* aggregate types, except for single-
7788 element or homogeneous float/vector aggregates, are quadword-aligned
7789 if required by their type alignment. Issue -Wpsabi note when a type
7790 is now treated differently than before.
7792 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7794 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
7795 does not fit fully into floating-point registers, and there is still
7796 space in the register parameter area, use GPRs to pass those parts
7797 of the argument. Issue -Wpsabi note if any parameter is now treated
7798 differently than before.
7799 (rs6000_arg_partial_bytes): Update.
7801 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
7803 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
7805 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
7807 * rtl.h (target_rtl): Remove lang_dependent_initialized.
7808 * toplev.c (initialize_rtl): Don't use it. Move previously
7809 "language-dependent" calls to...
7810 (backend_init): ...here.
7811 (lang_dependent_init_target): Don't set lang_dependent_initialized.
7812 Assert that RTL initialization hasn't happend yet.
7814 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
7816 PR rtl-optimization/61629
7817 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
7818 they have already been initialized.
7820 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
7823 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
7824 DECL_INCOMING_RTL and entry_parm.
7825 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
7826 * calls.c (load_register_parameters): Likewise argument values.
7827 (emit_library_call_value_1, store_one_arg): Likewise argument
7829 * config/i386/i386.c (assign_386_stack_local): Likewise the local
7831 * explow.c (validize_mem): Modify the argument in-place.
7833 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7835 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
7836 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
7838 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7840 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
7841 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
7843 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7845 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
7846 (aarch64_save_callee_saves): New parameter "skip_wb".
7847 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
7849 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7851 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
7853 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
7855 2014-07-24 Roman Gareev <gareevroman@gmail.com>
7857 * graphite-isl-ast-to-gimple.c:
7858 (graphite_create_new_loop): Add calling of isl_id_free to properly
7859 decrement reference counts.
7861 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
7863 2014-07-24 Martin Liska <mliska@suse.cz>
7864 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
7866 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
7867 (rs6000_code_end): Likewise.
7869 2014-07-24 Martin Liska <mliska@suse.cz>
7871 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
7872 symtab_node funtion used.
7873 (rs6000_xcoff_declare_object_name): Likewise.
7875 2014-07-24 Martin Liska <mliska@suse.cz>
7877 * cgraphunit.c (compile): Correct function used.
7879 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
7881 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
7884 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
7887 * varasm.c (bss_initializer_p): Handle offlined ctors.
7888 (align_variable, get_variable_align): Likewise.
7889 (make_decl_one_only): Likewise.
7890 (default_binds_local_p_1): Likewise.
7891 (decl_binds_to_current_def_p): Likewise.
7892 (get_variable_section): Get constructor if it is offlined.
7893 (assemble_variable_contents): Sanity check that the caller
7894 streamed in the ctor in LTO.
7896 2014-07-24 Roman Gareev <gareevroman@gmail.com>
7898 * graphite-isl-ast-to-gimple.c:
7899 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
7900 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
7901 isl_ast_op_pdiv_r to the different case.
7903 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
7905 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7908 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
7909 when flag_errno_math is on.
7911 2014-07-24 Martin Liska <mliska@suse.cz>
7913 * cgraph.h (varpool_node):
7914 (availability get_availability (void)):
7915 created from cgraph_variable_initializer_availability
7916 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
7917 created from: cgraph_variable_initializer_availability
7918 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
7919 (void finalize_named_section_flags (void)):
7920 created from varpool_finalize_named_section_flags
7921 (bool assemble_decl (void)): created from varpool_assemble_decl
7922 (void analyze (void)): created from varpool_analyze_node
7923 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
7924 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
7925 (void remove_initializer (void)): created from varpool_remove_initializer
7926 (tree get_constructor (void)): created from varpool_get_constructor
7927 (bool externally_visible_p (void)): created from varpool_externally_visible_p
7928 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
7929 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
7930 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
7931 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
7932 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
7933 (static bool output_variables (void)): created from varpool_output_variables
7934 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
7935 created from varpool_extra_name_alias
7936 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
7937 (static void dump_varpool (FILE *f)): created from dump_varpool
7938 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
7939 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
7940 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
7941 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
7942 (void assemble_aliases (void)): created from assemble_aliases
7944 2014-07-24 Martin Liska <mliska@suse.cz>
7946 * cgraph.h (symtab_node):
7947 (void register_symbol (void)): created from symtab_register_node
7948 (void remove (void)): created from symtab_remove_node
7949 (void dump (FILE *f)): created from dump_symtab_node
7950 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
7951 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
7952 (struct ipa_ref *add_reference (symtab_node *referred_node,
7953 enum ipa_ref_use use_type)): created from add_reference
7954 (struct ipa_ref *add_reference (symtab_node *referred_node,
7955 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
7956 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
7957 gimple stmt)): created from maybe_add_reference
7958 (bool semantically_equivalent_p (symtab_node *target)): created from
7959 symtab_semantically_equivalent_p
7960 (void remove_from_same_comdat_group (void)): created from
7961 remove_from_same_comdat_group
7962 (void add_to_same_comdat_group (symtab_node *old_node)): created from
7963 symtab_add_to_same_comdat_group
7964 (void dissolve_same_comdat_group_list (void)): created from
7965 symtab_dissolve_same_comdat_group_list
7966 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
7967 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
7968 created from symtab_alias_ultimate_target
7969 (inline symtab_node *next_defined_symbol (void)): created from
7970 symtab_next_defined_symbol
7971 (bool resolve_alias (symtab_node *target)): created from
7972 symtab_resolve_alias
7973 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
7974 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
7975 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
7976 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
7977 (void set_section (const char *section)): created from set_section_1
7978 (enum availability get_availability (void)): created from symtab_node_availability
7979 (void make_decl_local (void)): created from symtab_make_decl_local
7980 (bool real_symbol_p (void)): created from symtab_read_node
7981 (can_be_discarded_p (void)): created from symtab_can_be_discarded
7982 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
7983 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
7984 symtab_in_same_comdat_p;
7985 (bool address_taken_from_non_vtable_p (void)): created from
7986 address_taken_from_non_vtable_p
7987 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
7988 (static void dump_table (FILE *)): created from dump_symtab
7989 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
7990 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
7991 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
7992 symtab_used_from_object_file_p
7993 (void dump_base (FILE *)): created from dump_symtab_base
7994 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
7995 (void unregister (void)): created from symtab_unregister_node
7996 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
7997 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
7998 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
7999 symtab_nonoverwritable_alias_1
8000 * cgraph.h (cgraph_node):
8001 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8002 created from cgraph_remove_node_and_inline_clones
8003 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8004 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8005 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8006 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8007 created from cgraph_function_node
8008 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8009 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8010 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8011 created from cgraph_create_clone
8012 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8013 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8014 created from cgraph_create_virtual_clone
8015 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8016 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8017 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8018 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8019 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8020 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8021 created from cgraph_function_version_info
8022 (struct cgraph_function_version_info *insert_new_function_version (void)):
8023 created from insert_new_cgraph_node_version
8024 (struct cgraph_function_version_info *function_version (void)): created from
8025 get_cgraph_node_version
8026 (void analyze (void)): created from analyze_function
8027 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8028 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8029 tree real_alias) cgraph_add_thunk
8030 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8031 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8032 created from cgraph_function_or_thunk_node
8033 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8034 created from expand_thunk
8035 (void reset (void)): created from cgraph_reset_node
8036 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8037 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8038 (void remove (void)): created from cgraph_remove_node
8039 (void dump (FILE *f)): created from dump_cgraph_node
8040 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8041 (bool get_body (void)): created from cgraph_get_body
8042 (void release_body (void)): created from cgraph_release_function_body
8043 (void unnest (void)): created from cgraph_unnest_node
8044 (void make_local (void)): created from cgraph_make_node_local
8045 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8046 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8047 gcov_type count, int freq)): created from cgraph_create_edge
8048 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8049 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8050 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8051 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8052 created from cgraph_create_edge_including_clones
8053 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8054 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8055 (void remove_callers (void)): created from cgraph_node_remove_callers
8056 (void remove_callees (void)): created from cgraph_node_remove_callees
8057 (enum availability get_availability (void)): created from cgraph_function_body_availability
8058 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8059 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8060 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8061 (void call_duplication_hooks (cgraph_node *node2)): created from
8062 cgraph_call_node_duplication_hooks
8063 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8064 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8065 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8066 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8067 (void call_function_insertion_hooks (void)):
8068 created from cgraph_call_function_insertion_hooks
8069 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8070 (bool local_p (void)): created from cgraph_local_node
8071 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8072 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8073 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8074 (inline bool only_called_directly_or_aliased_p (void)):
8075 created from cgraph_only_called_directly_or_aliased_p
8076 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8077 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8078 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8079 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8080 (bool can_remove_if_no_direct_calls_p (void)):
8081 created from cgraph_can_remove_if_no_direct_calls_p
8082 (inline bool has_gimple_body_p (void)):
8083 created from cgraph_function_with_gimple_body_p
8084 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8085 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8086 (static inline void debug_cgraph (void)): created from debug_cgraph
8087 (static void record_function_versions (tree decl1, tree decl2)):
8088 created from record_function_versions
8089 (static void delete_function_version (tree decl)):
8090 created from delete_function_version
8091 (static void add_new_function (tree fndecl, bool lowered)):
8092 created from cgraph_add_new_function
8093 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8094 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8095 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8096 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8097 (static cgraph_node *get_for_asmname (tree asmname)):
8098 created from cgraph_node_for_asm
8099 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8100 created from cgraph_same_body_alias
8101 (static bool used_from_object_file_p_worker (cgraph_node *node,
8102 void *): new function
8103 (static bool non_local_p (cgraph_node *node, void *)):
8104 created from cgraph_non_local_node_p_1
8105 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8106 created from verify_cgraph
8107 (static bool make_local (cgraph_node *node, void *)):
8108 created from cgraph_make_node_local
8109 (static cgraph_node *create_alias (tree alias, tree target)):
8110 created from cgraph_create_function_alias
8111 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8112 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8113 created from cgraph_create_edge_1
8114 * cgraph.h (varpool_node):
8115 (void remove (void)): created from varpool_remove_node
8116 (void dump (FILE *f)): created from dump_varpool_node
8118 2014-07-24 Richard Biener <rguenther@suse.de>
8121 * tree-ssa-structalias.c (create_variable_info_for_1):
8122 Use varpool_get_constructor.
8123 (create_variable_info_for): Likewise.
8125 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8127 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8128 subtract outgoing area size when restoring stack_pointer_rtx.
8130 2014-07-24 Nick Clifton <nickc@redhat.com>
8132 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8133 that operations are taking place in parallel.
8134 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8136 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8138 * omp-low.c (extract_omp_for_data): Add missing break statement.
8140 2014-07-24 Richard Biener <rguenther@suse.de>
8142 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8143 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8144 and adjust MOVE_RATIO query accordingly.
8145 (estimate_num_insns): Adjust callers.
8146 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8147 * ipa-cp.c (gather_context_independent_values,
8148 estimate_local_effects): Likewise.
8149 * ipa-split.c (consider_split): Likewise.
8151 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8153 * config/i386/driver-i386.c: Remove names of unused arguments and
8154 unnecessary unused attributes.
8155 * config/i386/host-mingw32.c: Likewise.
8156 * config/i386/i386.c: Likewise.
8157 * config/i386/winnt-stubs.c: Likewise.
8158 * config/i386/winnt.c: Likewise.
8160 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8162 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8163 (aarch64_gen_loadwb_pair): New helper function.
8164 (aarch64_expand_epilogue): Simplify code using new helper functions.
8165 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8167 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8169 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8170 (aarch64_gen_storewb_pair): New helper function.
8171 (aarch64_expand_prologue): Simplify code using new helper functions.
8172 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8174 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8176 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8177 Rename to aarch64_save_callee_saves, remove restore code.
8178 (aarch64_restore_callee_saves): New function.
8180 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8182 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8183 (aarch64_save_callee_saves): New function to handle reg save
8184 for both core and vectore regs.
8186 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8188 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8189 (aarch64_gen_store_pair): New helper function.
8190 (aarch64_save_or_restore_callee_save_registers)
8191 (aarch64_save_or_restore_fprs): Use new helper functions.
8193 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8195 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8196 (aarch64_save_or_restore_callee_save_registers)
8197 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8199 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8201 * config/aarch64/aarch64.c
8202 (aarch64_save_or_restore_callee_save_registers)
8203 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8205 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8207 * config/aarch64/aarch64.c
8208 (aarch64_save_or_restore_callee_save_registers)
8209 (aarch64_save_or_restore_fprs): Remove 'increment'.
8211 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8213 * config/aarch64/aarch64.c
8214 (aarch64_save_or_restore_callee_save_registers)
8215 (aarch64_save_or_restore_fprs): Use register offset in
8216 cfun->machine->frame.reg_offset.
8218 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8220 * config/aarch64/aarch64.c
8221 (aarch64_save_or_restore_callee_save_registers)
8222 (aarch64_save_or_restore_fprs): Remove base_rtx.
8224 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8226 * config/aarch64/aarch64.c
8227 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8228 to 'start_offset'. Remove local variable 'start_offset'.
8230 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8232 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8233 type to HOST_WIDE_INT.
8235 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8237 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8238 (aarch64_save_or_restore_fprs)
8239 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8241 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8243 * config/arm/t-rtems-eabi: Add
8244 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8245 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8246 mbig-endian/mthumb/march=armv7-r, and
8247 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8250 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8251 Chris Johns <chrisj@rtems.org>
8252 Joel Sherrill <joel.sherrill@oarcorp.com>
8254 * config.gcc: Add nios2-*-rtems*.
8255 * config/nios2/rtems.h: New file.
8256 * gcc/config/nios2/t-rtems: New file.
8258 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
8261 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8262 constant numbers, not general constants.
8263 (rs6000_expand_vector_init): Ditto.
8265 2014-07-23 Nathan Sidwell <nathan@acm.org>
8267 * gcov-tool.c (gcov_list): Declare here.
8268 (set_gcov_list): Remove.
8269 (gcov_output_files): Set gcov_list directly.
8271 2014-07-23 Host Schirmeier <horst@schirmeier.com>
8273 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
8275 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8277 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
8278 callee-saved registers are available for padding purpose
8279 and r3 is not mandatory, then prefer use those callee-saved
8282 2014-07-23 Richard Biener <rguenther@suse.de>
8284 * params.def (PARAM_MAX_COMBINE_INSNS): New.
8285 * combine.c: Include statistics.h and params.h.
8286 (combine_instructions): Guard three and four insn combines
8287 with max-combine-insns value. Record statistics for combines
8289 * doc/invoke.texi (max-combine-insns): Document new param.
8291 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8293 * graphite-isl-ast-to-gimple.c:
8294 (translate_isl_ast_node_block): New function.
8295 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
8297 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
8298 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
8300 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8302 * graphite-isl-ast-to-gimple.c:
8303 (get_max_schedule_dimensions): New function.
8304 (extend_schedule): Likewise.
8305 (generate_isl_schedule): Add calling of extend_schedule and
8306 get_max_schedule_dimensions.
8308 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8310 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
8311 (case UNSPEC): Handle UNSPEC_RBIT.
8313 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8315 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
8316 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
8318 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8320 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
8322 2014-07-22 Roman Gareev <gareevroman@gmail.com>
8324 * graphite-isl-ast-to-gimple.c:
8325 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
8327 (build_iv_mapping): New function.
8328 (translate_isl_ast_node_user): Likewise.
8329 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
8331 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
8332 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
8333 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
8335 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8338 * config/arm/arm.md (setmem): New pattern.
8339 * config/arm/arm-protos.h (struct tune_params): New fields.
8340 (arm_gen_setmem): New prototype.
8341 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
8342 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8343 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8344 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
8345 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
8346 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
8347 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
8348 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8349 (arm_const_inline_cost): New function.
8350 (arm_block_set_max_insns): New function.
8351 (arm_block_set_non_vect_profit_p): New function.
8352 (arm_block_set_vect_profit_p): New function.
8353 (arm_block_set_unaligned_vect): New function.
8354 (arm_block_set_aligned_vect): New function.
8355 (arm_block_set_unaligned_non_vect): New function.
8356 (arm_block_set_aligned_non_vect): New function.
8357 (arm_block_set_vect, arm_gen_setmem): New functions.
8359 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8361 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
8363 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
8366 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
8367 out of #ifdef __OPTIMIZE__.
8369 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8371 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
8372 different trapping status if -fnon-call-exceptions is enabled.
8374 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8376 * expr.c (store_field): Handle VOIDmode for calls that return values
8377 in multiple locations.
8379 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8381 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
8382 (altivec_vsldoi_<mode>): Likewise.
8384 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8386 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
8387 to the number of characters in the line.
8389 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8391 * graphite-isl-ast-to-gimple.c: Add using of
8392 build_nonstandard_integer_type instead of int128_integer_type_node.
8394 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
8396 * toplev.c (output_stack_usage): Adjust the location of the warning.
8398 2014-07-19 Daniel Cederman <cederman@gaisler.com>
8400 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
8401 (*membar_storeload): Disable for LEON3.
8403 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8405 PR rtl-optimization/61461
8406 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
8408 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
8411 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
8412 Fix instruction constraint.
8413 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8415 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
8417 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
8419 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
8421 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
8422 GNU coding standards.
8423 (nds32_register_move_cost): Likewise.
8424 (nds32_memory_move_cost): Likewise.
8425 (nds32_address_cost): Likewise.
8427 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8429 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
8431 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
8433 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
8434 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
8435 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
8436 (HAVE_sync_compare_and_swapqi): Define.
8437 (HAVE_sync_compare_and_swaphi): Likewise.
8438 (HAVE_sync_compare_and_swapsi): Likewise.
8440 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
8442 * config/mips/p5600.md: Add missing cpu tests.
8444 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8446 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
8447 (vmla_f64): Likewise.
8448 (vfms_f64): Likewise.
8449 (vmls_f64): Likewise.
8451 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8453 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
8454 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
8456 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8458 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
8459 (vmlal_high_lane_s32): Likewise.
8460 (vmlal_high_lane_u16): Likewise.
8461 (vmlal_high_lane_u32): Likewise.
8462 (vmlsl_high_lane_s16): Likewise.
8463 (vmlsl_high_lane_s32): Likewise.
8464 (vmlsl_high_lane_u16): Likewise.
8465 (vmlsl_high_lane_u32): Likewise.
8467 2014-07-17 Terry Guo <terry.guo@arm.com>
8469 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
8470 (alus_reg): Renamed to alus_sreg.
8471 * config/arm/arm-fixed.md: Change type of non-dsp instructions
8472 from alu_reg to alu_sreg. Change type of dsp instructions from
8473 alu_reg to alu_dsp_reg.
8474 * config/arm/thumb1.md: Likewise.
8475 * config/arm/thumb2.md: Likewise.
8476 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
8477 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
8478 with alu_sreg and alus_sreg.
8479 * config/arm/arm1026ejs.md (alu_op): Likewise.
8480 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
8481 * config/arm/arm926ejs.md (9_alu_op): Likewise.
8482 * config/arm/fa526.md (526_alu_op): Likewise.
8483 * config/arm/fa606te.md (606te_alu_op): Likewise.
8484 * config/arm/fa626te.md (626te_alu_op): Likewise.
8485 * config/arm/fa726te.md (726te_alu_op): Likewise.
8486 * config/arm/fmp626.md (mp626_alu_op): Likewise.
8487 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
8488 alu_sreg, alu_dsp_reg and alus_sreg.
8489 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
8490 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8491 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8492 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
8493 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
8494 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8495 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8496 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8497 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
8498 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
8499 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
8500 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
8501 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
8502 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
8503 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
8504 alus_reg to alus_sreg.
8506 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
8508 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
8511 2014-07-17 Richard Biener <rguenther@suse.de>
8513 PR rtl-optimization/61801
8514 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
8515 don't set reg_pending_barrier if it appears in a debug-insn.
8517 2014-07-16 DJ Delorie <dj@redhat.com>
8519 * config/rx/rx.c (rx_option_override): Fix alignment values.
8520 (rx_align_for_label): Likewise.
8522 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
8525 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
8526 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8527 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
8529 (cris_print_index, cris_print_operand, cris_constant_index_p)
8530 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
8531 (cris_address_cost): Ditto last CONSTANT_P.
8532 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
8533 callers changed. Yield cris_offsettable_symbol for non-PIC
8534 constant symbolic expressions including labels. Yield cris_unspec
8536 (cris_expand_pic_call_address): New parameter MARKERP. Set its
8537 target to pic_offset_table_rtx for calls that will likely go
8538 through PLT, const0_rtx when they can't. All callers changed.
8539 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
8540 symbolic expressions to be PICified. Remove second, redundant,
8541 assert on can_create_pseudo_p returning non-zero. Use
8542 replace_equiv_address_nv, not replace_equiv_address, for final
8544 * config/cris/cris.md ("movsi"): Move variable t to pattern
8545 toplevel. Adjust assert for new cris_symbol_type member. Use
8546 CONSTANT_P instead of CONSTANT_ADDRESS_P.
8547 ("*movsi_internal") <case 9>: Make check for valid unspec operands
8549 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
8550 ("call", "call_value"): Use second incoming operand as a marker
8551 for pic-offset-table-register being used.
8552 ("*expanded_call_non_v32", "*expanded_call_v32")
8553 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
8554 second incoming operand to CALL, match cris_call_type_marker.
8555 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
8556 ("*expanded_call_side"): Ditto. Fix typo in comment.
8557 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
8559 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
8560 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
8561 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
8562 users changed. Add members cris_offsettable_symbol and cris_unspec.
8563 (cris_symbol_type): Rename from cris_pic_symbol_type.
8564 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
8566 * config/cris/cris-protos.h (cris_symbol_type_of,
8567 cris_expand_pic_call_address): Adjust prototypes.
8568 (cris_legitimate_constant_p): New prototype.
8570 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
8571 an existing tmake_file. Don't add t-slibgcc and t-linux.
8573 2014-07-17 Jason Merrill <jason@redhat.com>
8576 * symtab.c (symtab_remove_from_same_comdat_group): Also
8577 set_comdat_group to NULL_TREE.
8578 (verify_symtab): Fix diagnostic.
8580 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
8583 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
8585 2014-07-16 Dodji Seketeli <dodji@redhat.com>
8587 Support location tracking for built-in macro tokens
8588 * input.h (is_location_from_builtin_token): New function declaration.
8589 * input.c (is_location_from_builtin_token): New function definition.
8590 * toplev.c (general_init): Tell libcpp what the pre-defined
8591 spelling location for built-in tokens is.
8593 2014-07-16 Jakub Jelinek <jakub@redhat.com>
8595 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
8596 on the FUNCTION_DECL.
8598 2014-07-16 Richard Biener <rguenther@suse.de>
8601 * doc/extend.texi (always_inline): Clarify.
8603 2014-07-15 Eric Christopher <echristo@gmail.com>
8605 * doc/invoke.texi (Link Options): Document -z option.
8607 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
8609 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
8610 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
8612 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
8614 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
8616 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
8618 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
8619 varpool_assemble_decl.
8620 * varpool.c (varpool_assemble_decl): Assert that node->definition is
8623 2014-07-15 Michael Matz <matz@suse.de>
8625 PR rtl-optimization/61772
8626 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
8628 2014-07-15 Richard Biener <rguenther@suse.de>
8630 * opts.c (default_options_table): Disable bit-ccp at -Og.
8632 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
8634 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
8636 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
8638 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
8639 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
8640 call langhook for unknown declaration.
8641 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
8642 * tree.h (DECL_ARGUMENTS): Update.
8643 * print-tree.c (print_node): Update.
8644 * tree-core.h (tree_decl_non_common): Remove arguments.
8645 (tree_function_decl): Add arguments.
8647 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
8649 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
8651 2014-07-14 Richard Biener <rguenther@suse.de>
8653 PR tree-optimization/61779
8654 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
8655 simplifying a condition.
8657 2014-07-14 Richard Biener <rguenther@suse.de>
8659 * builtins.c (c_strlen): Make only_value == 2 really only
8660 affect warning generation.
8662 2014-07-14 Richard Biener <rguenther@suse.de>
8664 PR tree-optimization/61757
8665 PR tree-optimization/61783
8666 PR tree-optimization/61787
8667 * tree-ssa-dom.c (record_equality): Revert canonicalization
8668 change and add comment.
8669 (propagate_rhs_into_lhs): Revert previous fix, removing
8670 loop depth restriction again.
8672 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8674 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
8675 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8676 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8677 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
8678 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8679 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8680 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8682 2014-07-14 Richard Biener <rguenther@suse.de>
8684 * cgraph.h (decl_in_symtab_p): Make inline.
8686 2014-07-14 Jakub Jelinek <jakub@redhat.com>
8689 * doc/invoke.texi (-Wmemset-transposed-args): Document.
8692 * config/i386/i386.c (classify_argument): Don't merge classes above
8695 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
8697 * cgraph.h (symtab_node): Add nonzero_address.
8698 (decl_in_symtab_p): Break out from ...
8699 (symtab_get_node): ... here.
8700 * fold-const.c: Include cgraph.h
8701 (tree_single_nonzero_warnv_p): Use symtab to determine
8702 if symbol is non-zero.
8703 * symtab.c (symtab_node::nonzero_address): New method.
8705 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8707 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
8708 forgotten in previous commit.
8710 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8712 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
8714 * ipa-devirt.c: Include stor-layout.h and intl.h
8715 (odr_subtypes_equivalent_p): New function.
8716 (warn_odr): New function.
8717 (warn_type_mismatch): New function.
8718 (odr_types_equivalent_p): New function.
8719 (add_type_duplicate): Use it.
8720 * common.opt (Wodr): New flag.
8721 * doc/invoke.texi (Wodr): Document new warning.
8723 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8725 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
8726 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
8727 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
8728 (varpool_get_constructor): Push CTORS_IN timevar.
8729 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
8731 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
8733 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
8734 Remove VOID_FTYPE_PUSHORT.
8735 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
8736 Change code to USHORT_FTYPE_VOID.
8737 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
8738 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
8739 (ix86_atomic_assign_expand_fenv): Update for
8740 __builtin_ia32_fnstsw changes.
8741 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
8742 (fnstsw): Change operand 0 to nonimmediate operand.
8744 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
8746 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
8747 (varpool_get_constructor): New function.
8748 (varpool_ctor_useable_for_folding_p): Break out from ...
8749 (ctor_for_folding): ... here; use varpool_get_constructor.
8750 (varpool_assemble_decl): Likewise.
8751 * lto-streamer.h (struct output_block): Turn cgraph_node
8753 (lto_input_variable_constructor): Declare.
8754 * ipa-visibility.c (function_and_variable_visibility): Use
8755 varpool_get_constructor.
8756 * cgraph.h (varpool_get_constructor): Declare.
8757 (varpool_ctor_useable_for_folding_p): New function.
8758 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
8759 parameter; return error_mark_node for non-trivial constructors.
8760 (lto_write_tree_1, DFS_write_tree): Update use of
8761 get_symbol_initial_value.
8762 (output_function): Update initialization of symbol.
8763 (output_constructor): New function.
8764 (copy_function): Rename to ..
8765 (copy_function_or_variable): ... this one; handle vars too.
8766 (lto_output): Output variable sections.
8767 * lto-streamer-in.c (input_constructor): New function.
8768 (lto_read_body): Rename from ...
8769 (lto_read_body_or_constructor): ... this one; handle vars too.
8770 (lto_input_variable_constructor): New function.
8771 * ipa-prop.c (ipa_prop_write_jump_functions,
8772 ipa_prop_write_all_agg_replacement): Update.
8773 * lto-cgraph.c (compute_ltrans_boundary): Use it.
8774 (output_cgraph_opt_summary): Set symbol to NULL.
8776 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
8778 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
8779 non-polymorphic types.
8780 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
8781 * ipa-devirt.c (types_same_for_odr): Do not explode when one
8782 of types is not polymorphic.
8784 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
8786 * lra-constraints.c (remove_inheritance_pseudos): Process
8787 destination pseudo too.
8789 2014-07-11 Rong Xu <xur@google.com>
8791 * gcov-tool.c (gcov_output_files): Fix build error introduced in
8794 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8796 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
8797 * config/avr/avr-devices.c (AVR_MCU): Same.
8798 (avr_mcu_types): add text start value to end of device list.
8799 * config/avr/avr-mcus.def: Add text section start for all devices.
8800 (ata5782): Add new avr5 device.
8802 * config/avr/avr-tables.opt: Regenerate.
8803 * config/avr/avr.h: Add declaration for text section start handler.
8804 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
8806 (LINK_SPEC): Include text section start handler to linker spec.
8807 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
8808 pass -Ttext option to linker if the text section start for the device
8810 * config/avr/t-multilib: Regenerate.
8811 * doc/avr-mmcu.texi: Regenerate.
8813 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
8815 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
8816 * config/rs6000/aix52.h (LINK_SPEC): Same.
8817 * config/rs6000/aix53.h (LINK_SPEC): Same.
8818 * config/rs6000/aix61.h (LINK_SPEC): Same.
8819 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
8821 2014-07-11 Roman Gareev <gareevroman@gmail.com>
8823 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
8824 (graphite_verify): New function.
8825 (ivs_params_clear): New function.
8826 (gcc_expression_from_isl_ast_expr_id): New function.
8827 (gcc_expression_from_isl_expr_int): New function.
8828 (binary_op_to_tree): New function.
8829 (ternary_op_to_tree): New function.
8830 (unary_op_to_tree): New function.
8831 (nary_op_to_tree): New function.
8832 (gcc_expression_from_isl_expr_op): New function.
8833 (gcc_expression_from_isl_expression): New function.
8834 (graphite_create_new_loop): New function.
8835 (translate_isl_ast_for_loop): New function.
8836 (get_upper_bound): New function.
8837 (graphite_create_new_loop_guard): New function.
8838 (translate_isl_ast_node_for): New function.
8839 (translate_isl_ast): New function.
8840 (add_parameters_to_ivs_params): New function.
8841 (scop_to_isl_ast): New parameter ip.
8842 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
8844 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
8846 * config/xtensa/predicates.md (call expander): Update for
8847 DECL_SECTION_NAME being string.
8849 2014-07-11 Richard Biener <rguenther@suse.de>
8852 * builtins.c (fold_builtin_memory_op): Inline memory moves that
8853 can be implemented with a single load followed by a single store.
8854 (c_strlen): Only warn when only_value is not 2.
8856 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
8858 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
8860 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
8863 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
8864 (*movhi_bytes): Likewise.
8865 (*arm_movqi_insn): Likewise.
8867 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
8870 * config/alpha/alpha.c: Include tree-pass.h, context.h
8872 (pass_data_handle_trap_shadows): New pass.
8873 (pass_handle_trap_shadows::gate): New pass gate function.
8874 (make_pass_handle_trap_shadows): New function.
8875 (rest_of_handle_trap_shadows): Ditto.
8877 (alpha_align_insns_1): Rename from alpha_align_insns.
8878 (pass_data_align_insns): New pass.
8879 (pass_align_insns::gate): New pass gate function.
8880 (make_pass_aling_insns): New function.
8881 (rest_of_align_insns): Ditto.
8882 (alpha_align_insns): Ditto.
8884 (alpha_option_override): Declare handle_trap_shadows info
8885 and align_insns_info. Register handle_trap_shadows and align_insns
8887 (alpha_reorg): Do not call alpha_trap_shadows and
8888 alpha_align_insn from here.
8890 (alpha_pad_function_end): Do not skip BARRIERs.
8892 2014-07-10 Rong Xu <xur@google.com>
8894 Add gcov-tool: an offline gcda profile processing tool support.
8895 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
8896 (gcov_is_error): Ditto.
8897 (gcov_read_string): Ditto.
8898 (gcov_read_sync): Ditto.
8899 * gcov-io.h: Move counter defines to gcov-counter.def.
8900 * gcov-dump.c (tag_counters): Use gcov-counter.def.
8901 * coverage.c: Ditto.
8902 * gcov-tool.c: Offline gcda profile processing tool.
8903 (unlink_gcda_file): Remove one gcda file.
8904 (unlink_profile_dir): Remove gcda files from the profile path.
8905 (gcov_output_files): Output gcda files to an output dir.
8906 (profile_merge): Merge two profiles in directory.
8907 (print_merge_usage_message): Print merge usage.
8908 (merge_usage): Print merge usage and exit.
8909 (do_merge): Driver for profile merge sub-command.
8910 (profile_rewrite): Rewrite profile.
8911 (print_rewrite_usage_message): Print rewrite usage.
8912 (rewrite_usage): Print rewrite usage and exit.
8913 (do_rewrite): Driver for profile rewrite sub-command.
8914 (print_usage): Print gcov-info usage and exit.
8915 (print_version): Print gcov-info version.
8916 (process_args): Process arguments.
8917 (main): Main routine for gcov-tool.
8918 * Makefile.in: Build and install gcov-tool.
8919 * gcov-counter.def: New file split from gcov-io.h.
8920 * doc/gcc.texi: Include gcov-tool.texi.
8921 * doc/gcov-tool.texi: Document for gcov-tool.
8923 2014-07-10 Richard Biener <rguenther@suse.de>
8925 PR tree-optimization/61757
8926 * tree-ssa-dom.c (loop_depth_of_name): Restore.
8927 (propagate_rhs_into_lhs): Revert part of last change.
8929 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
8931 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
8934 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
8937 * function.c (allocate_struct_function): Revert r188667 change.
8939 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
8941 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
8943 * doc/install.texi: Remove links to defunct package providers for
8946 2014-07-09 Tom de Vries <tom@codesourcery.com>
8948 * final.c (get_call_fndecl): Declare.
8949 (self_recursive_call_p): New function.
8950 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
8952 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8954 * ipa-devirt.c (record_node): Walk through aliases.
8956 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8958 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
8960 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8963 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
8965 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8967 * ipa-visibility.c (function_and_variable_visibility): Remove
8968 temporary hack disabling local aliases on AIX.
8970 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8972 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
8973 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
8975 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8977 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
8978 * rs6000/rs6000.c: Inline output of .set instruction.
8979 (declare_alias_data): New struct.
8980 (rs6000_declare_alias): New function.
8981 (rs6000_xcoff_declare_function_name): Use it.
8982 (rs6000_xcoff_declare_object_name): New function.
8983 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
8984 (ASM_OUTPUT_DEF): Turn to empty definition.
8986 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
8989 * hash-table.h: use hash_table::value_type instead of
8990 Descriptor::value_type in the return types of several methods.
8992 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
8994 * tree-pass.h (pass_data): Remove has_execute member.
8995 * passes.c (execute_one_pass): Don't check pass->has_execute.
8996 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
8997 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
8998 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
8999 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9000 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9001 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9002 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9003 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9004 gimple-low.c, gimple-ssa-isolate-paths.c,
9005 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9006 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9007 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9008 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9009 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9010 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9011 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9012 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9013 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9014 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9015 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9016 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9017 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9018 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9019 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9020 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9021 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9022 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9023 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9024 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9025 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9026 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9027 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9028 web.c: Remove initializer for pass_data::has_execute.
9030 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9032 * graphite-htab.h: Use hash_map instead of hash_table.
9033 * graphite-clast-to-gimple.c: Adjust.
9034 * passes.c: Use hash_map instead of hash_table.
9036 * sese.h: Remove now unused code.
9038 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9041 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9044 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9046 PR rtl-optimization/61673
9047 * combine.c (simplify_comparison): Test just mode's sign bit
9048 in tmode rather than the sign bit and any bits above it.
9050 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9052 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9053 Add __isl_give to the declaration.
9054 (generate_isl_schedule): Likewise.
9055 (scop_to_isl_ast): Likewise.
9057 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9059 * config/arm/arm.c (cortexa5_extra_costs): New table.
9060 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9062 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9064 PR tree-optimization/61725
9065 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9066 range, use range_includes_zerop_p instead of integer_zerop on
9067 vr0->min, only use log2 of max if min is not negative.
9069 2014-07-08 Richard Biener <rguenther@suse.de>
9071 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9072 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9073 restriction on loop depth difference.
9074 (record_equality): Likewise.
9075 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9076 (loop_depth_of_name): Remove.
9077 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9078 restriction on loop depth difference.
9079 (init_copy_prop): Likewise.
9081 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9083 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9085 (walk_aliased_vdefs): Likewise.
9086 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9087 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9088 (detect_type_change_from_memory_writes): Check if entry was reached.
9090 2014-07-08 Richard Biener <rguenther@suse.de>
9092 PR tree-optimization/61681
9093 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9094 NONLOCAL inside ESCAPED.
9096 2014-07-08 Richard Biener <rguenther@suse.de>
9098 PR tree-optimization/61680
9099 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9100 Handle properly all read-write dependences with group accesses.
9102 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9104 PR tree-optimization/61576
9105 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9106 block containing reduction statement is predecessor of phi basi block.
9108 2014-07-08 Marek Polacek <polacek@redhat.com>
9111 * fold-const.c (round_up_loc): Change the parameter type.
9113 * fold-const.h (round_up_loc): Adjust declaration.
9114 * stor-layout.c (finalize_record_size): Check for too large types.
9116 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9118 * symtab.c: Include calls.h.
9119 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9121 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9123 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9124 little-endian code generation.
9125 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9126 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9127 (spe_evmergehilo): Rename to...
9128 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9129 (spe_evmergelo): Rename to...
9130 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9131 (spe_evmergelohi): Rename to...
9132 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9133 (spe_evmergehi, spe_evmergehilo): New expanders.
9134 (spe_evmergelo, spe_evmergelohi): Likewise.
9135 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9136 (*frob_tf_ti): Likewise.
9137 (*frob_<mode>_di_2): Likewise.
9138 (*frob_tf_di_8_2): Likewise.
9139 (*frob_di_<mode>): Likewise.
9140 (*frob_ti_tf): Likewise.
9141 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9142 (*frob_ti_<mode>_8_2): Likewise.
9143 (*frob_ti_tf_2): Likewise.
9144 (mov_si<mode>_e500_subreg0): Rename to...
9145 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9147 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9148 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9149 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9150 the big endianness only.
9151 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9152 (*mov_si<mode>_e500_subreg0_2): Rename to...
9153 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9154 big big endianness only.
9155 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9156 (*mov_si<mode>_e500_subreg4): Rename to...
9157 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9159 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9160 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9161 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9162 the big endianness only.
9163 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9165 (*mov_si<mode>_e500_subreg4_2): Rename to...
9166 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9168 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9169 (*mov_sitf_e500_subreg8): Rename to...
9170 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9172 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9173 (*mov_sitf_e500_subreg8_2): Rename to...
9174 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9176 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9177 (*mov_sitf_e500_subreg12): Rename to...
9178 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9180 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9181 (*mov_sitf_e500_subreg12_2): Rename to...
9182 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9184 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9186 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9188 * asan.c (instrument_strlen_call): Do not instrument first byte
9189 in strlen if already instrumented.
9191 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9193 * config/arm/arm.opt (mwords-little-endian): Delete.
9194 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9195 of TARGET_LITTLE_WORDS.
9196 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9197 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9199 * doc/invoke.texi: Remove references to -mwords-little-endian.
9201 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9203 * expmed.c (struct init_expmed_rtl): Change all fields but
9204 pow2 and cint from struct rtx_def to rtx.
9205 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9206 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9209 2014-07-06 Marek Polacek <polacek@redhat.com>
9212 * doc/invoke.texi: Document -Wsizeof-array-argument.
9214 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9216 * wide-int.h (wide_int_storage): Change declaration from struct
9219 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9221 * cgraph.c (cgraph_create_indirect_edge): Update call of
9222 get_polymorphic_call_info.
9223 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9224 (possible_polymorphic_call_targets): Add parameter call.
9225 (decl_maybe_in_construction_p): New predicate.
9226 (get_polymorphic_call_info): Add parameter call;
9227 use decl_maybe_in_construction_p.
9228 * gimple-fold.c (fold_gimple_assign): Update use of
9229 possible_polymorphic_call_targets.
9230 (gimple_fold_call): Likewise.
9231 * ipa-prop.c: Inlcude calls.h
9232 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9233 (param_type_may_change_p): New predicate.
9234 (detect_type_change_from_memory_writes): Break out from ...
9235 (detect_type_change): ... this one; use param_type_may_change_p.
9236 (detect_type_change_ssa): Use param_type_may_change_p.
9237 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9239 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9242 * config/arm/arm-protos.h (arm_legitimate_address_p,
9243 arm_is_constant_pool_ref): Add prototypes.
9244 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9245 (arm_is_constant_pool_ref) New function.
9246 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9247 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9248 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9249 operand. Remove pool_range and neg_pool_range attributes.
9250 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9251 pool_range and neg_pool_range attributes.
9252 * config/arm/constraints.md (Uh): New constraint.
9253 (Uq): Don't allow constant pool references.
9255 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
9257 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9258 (move_lo_quad_internal_be_<mode>): Likewise.
9259 (move_lo_quad_<mode>): Convert to define_expand.
9260 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9261 (aarch64_simd_move_hi_quad_be_<mode>): New.
9262 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9263 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9264 (aarch64_combinez_be<mode>): New.
9265 (aarch64_combine<mode>): Convert to define_expand.
9266 (aarch64_combine_internal<mode>): New.
9267 (aarch64_simd_combine<mode>): Remove bogus RTL description.
9269 2014-07-04 Tom de Vries <tom@codesourcery.com>
9271 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
9272 combination of earlyclobber and read/write modifiers.
9274 2014-07-04 Tom de Vries <tom@codesourcery.com>
9276 * config/aarch64/aarch64-simd.md
9277 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
9279 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
9282 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
9284 2014-07-04 Jakub Jelinek <jakub@redhat.com>
9287 * cgraphunit.c (expand_thunk): Call free_dominance_info.
9289 PR tree-optimization/61684
9290 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
9291 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
9293 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9294 Kito Cheng <kito@0xlab.org>
9295 Monk Chiang <sh.chiang04@gmail.com>
9297 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
9298 (nds32_symbol_load_store_p): Move to ...
9299 (nds32_fp_as_gp_check_available): Move to ...
9300 * config/nds32/nds32-fp-as-gp.c: ... here.
9301 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
9304 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9305 Kito Cheng <kito@0xlab.org>
9306 Monk Chiang <sh.chiang04@gmail.com>
9308 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
9309 (nds32_expand_store_multiple): Move to ...
9310 (nds32_expand_movmemqi): Move to ...
9311 * config/nds32/nds32-memory-manipulation.c: ... here.
9313 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9314 Kito Cheng <kito@0xlab.org>
9315 Monk Chiang <sh.chiang04@gmail.com>
9317 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
9318 (nds32_output_casesi_pc_relative): Move to ...
9319 (nds32_output_casesi): Move to ...
9320 (nds32_mem_format): Move to ...
9321 (nds32_output_16bit_store): Move to ...
9322 (nds32_output_16bit_load): Move to ...
9323 (nds32_output_32bit_store): Move to ...
9324 (nds32_output_32bit_load): Move to ...
9325 (nds32_output_32bit_load_s): Move to ...
9326 (nds32_output_stack_push): Move to ...
9327 (nds32_output_stack_pop): Move to ...
9328 * config/nds32/nds32-md-auxiliary.c: ... here.
9330 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9331 Ling-Hua Tseng <uranus@tinlans.org>
9333 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
9334 the purpose of this file.
9336 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9337 Kito Cheng <kito@0xlab.org>
9338 Monk Chiang <sh.chiang04@gmail.com>
9340 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
9341 (nds32_address_cost): Move implementation to ...
9342 * config/nds32/nds32-cost.c: ... here.
9343 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
9344 (nds32_address_cost_impl): Declare.
9346 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9347 Kito Cheng <kito@0xlab.org>
9348 Monk Chiang <sh.chiang04@gmail.com>
9350 * config/nds32/nds32.c
9351 (nds32_consecutive_registers_load_store_p): Move to ...
9352 (nds32_valid_multiple_load_store): Move to ...
9353 (nds32_valid_stack_push_pop): Move to ...
9354 (nds32_can_use_bclr_p): Move to ...
9355 (nds32_can_use_bset_p): Move to ...
9356 (nds32_can_use_btgl_p): Move to ...
9357 (nds32_can_use_bitci_p): Move to ...
9358 * config/nds32/nds32-predicates.c: ... here.
9360 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9361 Kito Cheng <kito@0xlab.org>
9362 Monk Chiang <sh.chiang04@gmail.com>
9364 * config/nds32/nds32.c
9365 (nds32_expand_builtin_null_ftype_reg): Move to ...
9366 (nds32_expand_builtin_reg_ftype_imm): Move to ...
9367 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
9368 (nds32_init_builtins): Move implementation to ...
9369 (nds32_expand_builtin): Move implementation to ...
9370 * config/nds32/nds32-intrinsic.c: ... here.
9371 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
9372 (nds32_expand_builtin_impl): Declare.
9374 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9375 Kito Cheng <kito@0xlab.org>
9376 Monk Chiang <sh.chiang04@gmail.com>
9378 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
9379 (nds32_emit_section_tail_template): Move to ...
9380 (nds32_emit_isr_jmptbl_section): Move to ...
9381 (nds32_emit_isr_vector_section): Move to ...
9382 (nds32_emit_isr_reset_conten): Move to ...
9383 (nds32_check_isr_attrs_conflict): Move to ...
9384 (nds32_construct_isr_vectors_information): Move to ...
9385 (nds32_asm_file_start): Move implementation to ...
9386 (nds32_asm_file_end): Move implementation to ...
9387 * config/nds32/nds32-isr.c: ... here.
9388 * config/nds32/nds32-protos.h
9389 (nds32_check_isr_attrs_conflict): Declare.
9390 (nds32_construct_isr_vectors_information): Declare.
9391 (nds32_asm_file_start_for_isr): Declare.
9392 (nds32_asm_file_end_for_isr): Declare.
9394 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9395 Kito Cheng <kito@0xlab.org>
9396 Monk Chiang <sh.chiang04@gmail.com>
9398 * config.gcc (nds32*): Add new modules to extra_objs.
9399 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
9400 (nds32be-*-*): Likewise.
9401 * config/nds32/nds32-cost.c: New file.
9402 * config/nds32/nds32-fp-as-gp.c: New file.
9403 * config/nds32/nds32-intrinsic.c: New file.
9404 * config/nds32/nds32-isr.c: New file.
9405 * config/nds32/nds32-md-auxiliary.c: New file.
9406 * config/nds32/nds32-memory-manipulation.c: New file.
9407 * config/nds32/nds32-pipelines-auxiliary.c: New file.
9408 * config/nds32/nds32-predicates.c: New file.
9409 * config/nds32/t-nds32: New file.
9411 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9413 PR tree-optimization/61682
9414 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
9415 using cases and when one of the operands is equal to 1.
9417 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
9419 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
9420 ashr<mode>3): Correct mode of operands[2].
9421 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
9422 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
9423 Correct mode of operands[2]. Fix split condition.
9425 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
9427 * arm.md (arch): Add armv6_or_vfpv3.
9428 (arch_enabled): Add test for the above.
9429 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
9431 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
9433 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9435 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
9436 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
9437 HWI 1 and negate the unsigned value.
9438 * expmed.c (expand_sdiv_pow2): For modes wider than word always
9439 use AND instead of shift.
9440 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
9442 2014-07-03 Marek Polacek <polacek@redhat.com>
9444 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
9445 (-fsanitize=float-divide-by-zero): Move to the table with
9446 -fsanitize=undefined suboptions.
9447 (-fsanitize=float-cast-overflow): Likewise.
9449 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
9451 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
9452 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
9455 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9457 * loop-invariant.c (struct invariant): Add a new member: eqno;
9458 (find_identical_invariants): Update eqno;
9459 (create_new_invariant): Init eqno;
9460 (get_inv_cost): Compute comp_cost with eqno;
9462 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
9464 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
9465 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
9466 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
9467 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
9468 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
9470 2014-07-02 Christian Bruel <christian.bruel@st.com>
9474 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
9475 (make_preds_opaque): Delete.
9476 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
9477 (commit_mode_sets): New function.
9478 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
9479 Process all modes at once.
9480 * basic-block.h (pre_edge_lcm_avs): Declare.
9481 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
9482 Call clear_aux_for_edges. Fix comments.
9483 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
9484 (pre_edge_rev_lcm): Idem.
9485 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
9487 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
9488 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
9490 * config/i386/i386.c (x96_emit_mode_set): Idem.
9491 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
9492 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
9493 (fpscr_toggle) Disallow from delay slot.
9494 * target.def (emit_mode_set): Add prev_mode parameter.
9495 * doc/tm.texi: Regenerate.
9497 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9499 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
9502 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9504 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
9505 vtable_pointer_value_to_vtable): Constify.
9506 (contains_polymorphic_type_p): Declare.
9507 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
9508 vtable_pointer_value_to_vtable): Constify.
9509 (contains_polymorphic_type_p): New predicate.
9510 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
9512 (ipa_set_ancestor_jf): Likewise.
9513 (detect_type_change): Return false in easy cases.
9514 (compute_complex_assign_jump_func): Require type to contain
9516 (compute_known_type_jump_func): Likewise.
9518 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9520 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
9522 (type_in_anonymous_namespace_p): Constify argument.
9523 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
9524 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
9525 (main_odr_variant): New function.
9526 (hash_type_name): Make static; update assert; do not ICE on
9528 (types_same_for_odr): Bring here from tree.c; simplify and remove
9529 old structural comparing code that doesn't work for templates.
9530 (odr_hasher::equal): Update assert.
9531 (add_type_duplicate): Return true when bases should be computed;
9532 replace incomplete loader by complete; do not output duplicated
9533 warnings; do not ICE on non-records; set odr_violated flag.
9534 (get_odr_type): Be ready to replace incomplete type by complete
9535 one; work on ODR variants instead of main variants; reorder item
9536 in array so bases have still smaller indexes.
9537 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
9538 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
9540 2014-07-01 Cary Coutant <ccoutant@google.com>
9542 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
9544 (resolve_addr_in_expr): When replacing the rtx in a location list
9545 entry, get a new address table entry.
9546 (dwarf2out_finish): Call index_location_lists even if there are no
9547 addr_index_table entries yet.
9549 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9551 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
9552 change for not being obvious.
9554 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9556 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
9559 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9561 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
9562 (vcagt_f64): Likewise.
9563 (vcale_f64): Likewise.
9564 (vcaled_f64): Likewise.
9565 (vcales_f32): Likewise.
9566 (vcalt_f64): Likewise.
9567 (vcaltd_f64): Likewise.
9568 (vcalts_f32): Likewise.
9570 2014-07-01 Marek Polacek <polacek@redhat.com>
9572 * doc/invoke.texi: Document -Wint-conversion.
9574 2014-07-01 Marek Polacek <polacek@redhat.com>
9577 * doc/invoke.texi: Document -Wincompatible-pointer-types.
9579 2014-07-01 Martin Liska <mliska@suse.cz>
9581 IPA REF alias refactoring
9582 * cgraph.h (iterate_direct_aliases): New function.
9583 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
9584 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
9585 FOR_EACH_ALIAS added.
9586 (cgraph_for_node_and_aliases): Likewise.
9587 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
9588 * ipa-inline.c (reset_edge_caches): Likewise.
9589 (update_caller_keys): Likewise.
9590 * trans-mem.c (ipa_tm_execute): Likewise.
9591 *varpool.c (varpool_analyze_node): Likewise.
9592 (varpool_for_node_and_aliases): Likewise.
9593 * ipa-ref.h (first_alias): New function.
9594 (last_alias): Likewise.
9595 (has_aliases_p): Likewise.
9596 * ipa-ref.c (ipa_ref::remove_reference): Removal function
9597 is sensitive to IPA_REF_ALIASes.
9598 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
9599 are put at the beginning of the list.
9600 (symtab_node::iterate_direct_aliases): New function.
9602 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9605 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
9607 (write_ts_type_common_tree_pointers): Do not stream fields not set
9608 for incomplete types; do not stream duplicated fields for variants;
9609 sanity check that variant and type match.
9610 (write_ts_type_non_common_tree_pointers): Likewise.
9611 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
9612 TYPE_SIZE whether type is complete.
9613 (lto_input_ts_type_common_tree_pointers): Do same changes as in
9614 write_ts_type_common_tree_pointers
9615 (lto_input_ts_type_non_common_tree_pointers): Likewise.
9617 2014-06-30 Joseph Myers <joseph@codesourcery.com>
9619 * var-tracking.c (add_stores): Return instead of asserting if old
9620 and new values for conditional store are the same.
9622 2014-06-30 Richard Henderson <rth@redhat.com>
9626 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
9627 the cfg if there were any changes.
9628 * passes.def: Revert move of peephole2 after reorder_blocks;
9629 move duplicate_computed_gotos before peephole2.
9631 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
9633 * except.c (emit_note_eh_region_end): New helper function.
9634 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
9635 emit EH_REGION_END note.
9636 * jump.c (cleanup_barriers): Do not split a call and its
9637 corresponding CALL_ARG_LOCATION note.
9639 2014-06-30 Jeff Law <law@redhat.com>
9641 PR tree-optimization/61607
9642 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
9643 deeper into the SSA_NAME_VALUE chain.
9645 2014-06-30 Marek Polacek <polacek@redhat.com>
9647 * convert.c (convert_to_integer): Don't instrument conversions if the
9648 function has no_sanitize_undefined attribute.
9649 * ubsan.c: Don't run the ubsan pass if the function has
9650 no_sanitize_undefined attribute.
9652 2014-06-30 Jakub Jelinek <jakub@redhat.com>
9654 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
9655 -fsanitize=undefined suboptions.
9657 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
9659 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
9660 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
9661 against bigendian and adjust indices.
9663 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
9665 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
9667 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
9670 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
9671 Add alternative; make early clobber. Adjust both split patterns
9672 to use operand 0 as the working register.
9674 2014-06-30 Jakub Jelinek <jakub@redhat.com>
9676 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
9677 as ira_object_id_map might be NULL, or 1.
9679 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9681 * loop-invariant.c (get_inv_cost): Handle register class.
9682 (gain_for_invariant): Check the register pressure of the inv
9683 and its overlapped register class, other than all.
9685 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
9687 * doc/invoke.texi (Optimize Options): Fix descriptions of
9688 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
9690 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
9692 * doc/extend.texi (Function Attributes): Update 'naked' attribute
9695 2014-06-29 Tobias Grosser <tobias@grosser.es>
9698 * graphite-isl-ast-to-gimple.c: Add missing guards.
9700 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9702 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
9703 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
9704 * flag-types.h: Add new enum fgraphite_generator.
9705 * graphite-isl-ast-to-gimple.c: New.
9706 * graphite-isl-ast-to-gimple.h: New.
9707 * graphite.c (graphite_transform_loops): Add choice of Graphite
9708 code generator, which depends on flag_graphite_code_gen.
9710 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9712 * graphite-dependences.c (subtract_commutative_associative_deps):
9713 Add NULL checking of the following variables: must_raw_no_source,
9714 may_raw_no_source, must_war_no_source, may_war_no_source,
9715 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
9716 must_war, may_war, must_waw, may_waw.
9718 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9720 * graphite-clast-to-gimple.c: gloog is renamed to
9721 graphite_regenerate_ast_cloog. gloog_error is renamed to
9722 graphite_regenerate_error.
9723 * graphite-clast-to-gimple.h: The definition of the struct
9724 bb_pbb_def is moved to graphite-htab.h.
9725 Add inclusion of the hash-table.h.
9726 * graphite-htab.h: The declaration of the function gloog is moved
9727 to graphite-clast-to-gimple.h and renamed to
9728 graphite_regenerate_ast_cloog.
9729 * graphite.c (graphite_transform_loops): gloog is renamed
9730 to graphite_regenerate_ast_cloog.
9732 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9734 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
9736 (write_ts_type_common_tree_pointers): Do not stream fields not set
9737 for incomplete types; do not stream duplicated fields for variants;
9738 sanity check that variant and type match.
9739 (write_ts_type_non_common_tree_pointers): Likewise.
9740 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
9741 TYPE_SIZE whether type is complete.
9742 (lto_input_ts_type_common_tree_pointers): Do same changes as in
9743 write_ts_type_common_tree_pointers
9744 (lto_input_ts_type_non_common_tree_pointers): Likewise.
9746 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9748 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
9750 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9752 * tree-inline.c (remap_type_1): Do not duplicate fields
9753 that are shared in between type and its main variant.
9755 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9757 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
9759 (ipa_set_ancestor_jf) Likewise.
9760 (check_stmt_for_type_change): Check that we work on main variant.
9761 (detect_type_change): Look into main variant.
9762 (compute_known_type_jump_func): Check that main variant has BINFO.
9764 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9766 * ipa-devirt.c (set_type_binfo): New function.
9767 (add_type_duplicate): Use it.
9768 (get_odr_type): Sanity check that binfos points to main variants.
9769 (get_class_context): Be sure the context's outer_type is main variant.
9770 (contains_type_p): Walk main variant.
9771 (get_polymorphic_call_info_for_decl): Set outer_type to be
9773 (get_polymorphic_call_info): Likewise.
9774 (possible_polymorphic_call_targets): Sanity check that we operate
9777 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9779 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9781 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9783 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
9784 accidental change due to wide-int branch merge.
9786 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9788 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
9789 compressed debug support.
9790 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
9791 * configure: Regenerate.
9792 * config.in: Regenerate.
9793 * common.opt (compressed_debug_sections): New enum.
9794 (gz, gz=): New options.
9795 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
9796 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
9797 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
9798 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
9799 LINK_COMPRESS_DEBUG_SPEC.
9800 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
9801 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
9802 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
9803 (Debugging Options): Document -gz[=type].
9805 2014-06-27 Martin Jambor <mjambor@suse.cz>
9808 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
9809 args_to_skip, use those from node instead. Copy args_to_skip and
9810 combined_args_to_skip from node to the new thunk.
9811 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
9812 (cgraph_create_virtual_clone): Moved computation of
9813 combined_args_to_skip...
9814 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
9816 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
9818 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
9819 redundant diagnostic machinary.
9821 2014-06-27 Richard Biener <rguenther@suse.de>
9823 * tree-ssa-math-opts.c (bswap_replace): Fix
9824 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
9826 2014-06-27 Martin Liska <mliska@suse.cz>
9828 * gimple.h (gimple_location_safe): New function introduced.
9829 * cgraphunit.c (walk_polymorphic_call_targets): Usage
9830 of gimple_location_safe replaces gimple_location.
9831 (gimple_fold_call): Likewise.
9832 * ipa-devirt.c (ipa_devirt): Likewise.
9833 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9834 * ipa.c (walk_polymorphic_call_targets): Likewise.
9835 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
9837 2014-06-27 Jakub Jelinek <jakub@redhat.com>
9839 PR tree-optimization/57233
9840 PR tree-optimization/61299
9841 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
9843 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
9844 would be lowered to scalar shifts, check if corresponding
9845 shifts and vector BIT_IOR_EXPR are supported and don't lower
9846 or lower just to narrower vector type in that case.
9847 * expmed.c (expand_shift_1): Fix up handling of vector
9850 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
9853 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
9855 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
9857 * doc/invoke.texi (-fsemantic-interposition): Document.
9858 * common.opt (fsemantic-interposition): New flag.
9859 * varasm.c (decl_replaceable_p): Use it.
9861 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9864 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
9865 extraction other than index 3.
9867 2014-06-26 Teresa Johnson <tejohnson@google.com>
9869 * doc/invoke.texi: Fix typo.
9870 * dumpfile.c: Add support for documented -fdump-* options
9871 optimized/missed/note/optall.
9873 2014-06-26 Martin Jambor <mjambor@suse.cz>
9875 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
9876 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
9877 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
9878 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
9879 * opts.c (default_options_optimization): Set
9880 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
9881 * doc/invoke.texi (allow-load-data-races)
9882 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
9883 (allow-store-data-races): Document the new default.
9885 2014-06-26 Martin Jambor <mjambor@suse.cz>
9887 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
9888 renamed to ipa_impossible_devirt_target. Fix typo.
9889 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
9890 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
9891 ipa_impossible_devirt_target.
9893 2014-06-26 Richard Biener <rguenther@suse.de>
9895 PR tree-optimization/61607
9896 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
9897 explaining why we restrict copies on loop depth.
9898 * tree-ssa-dom.c (cprop_operand): Remove restriction on
9900 (record_equivalences_from_phis): Instead add it here.
9902 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
9904 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
9905 (LTO_WRAPPER_OBJS): New variable.
9906 (lto-wrapper$(exeext)): Use it.
9907 * collect2.c: Include "collect-utils.h".
9908 (verbose, debug): Remove variables.
9909 (at_file_supplied): No longer static.
9910 (tool_name): New variable.
9911 (do_wait, fork_execute, maybe_unlink): Don't declare.
9912 (tool_cleanup): No longer static.
9913 (notice): Remove function.
9914 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
9916 (collect_wait, do_wait, collect_execute): Remove functions.
9917 (maybe_unlink): No longer static.
9918 * collect2.h (verbose, debug): Don't declare.
9919 (at_file_supplied): Declare.
9920 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
9922 (collect_execute): Replace with implementation from collect2, plus a
9923 new arg use_atfile. All callers changed.
9924 (collect_wait): Replace with implementation from collect2.
9925 (maybe_unlink_file): Remove function.
9926 (fork_execute): Replace with implementation from collect2, plus a
9927 new arg use_atfile. All callers changed.
9928 (do_wait): Add call to utils_cleanup to the error path.
9929 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
9930 (tool_cleanup): Adjust declarations.
9931 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
9932 * tlink.c: Include "collect-utils.h".
9933 (tlink_execute): New arg use_atfile. All callers changed.
9934 (tlink_init, tlink_execute): Remove declarations.
9936 * collect-utils.c (save_temps): New variable.
9937 (do_wait): Use it instead of debug. Use fatal_error.
9938 * collect-utils.h (save_temps): Declare.
9939 * collect2.c (verbose): Rename from vflag. All uses changed.
9940 (tool_cleanup): New function, copied from collect_atexit.
9941 (collect_atexit, handler): Just call it.
9942 * collect2.h (verbose): Declaration renamed from vflag.
9943 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
9946 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
9947 (lto-wrapper$(exeext)): Link with collect-utils.o.
9948 * collect-utils.c: New file.
9949 * collect-utils.h: New file.
9950 * lto-wrapper.c: Include "collect-utils.h".
9951 (args_name): Delete variable.
9952 (tool_name): New variable.
9953 (tool_cleanup): New function.
9954 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
9955 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
9956 (fork_execute): Remove functions.
9958 2014-06-26 Nick Clifton <nickc@redhat.com>
9960 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
9962 * doc/extend.texi (Function Attributes): Fix typo in description
9963 of RX vector attribute.
9965 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
9967 * config.gcc (supported_defaults): Error when passing either
9968 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
9970 2014-06-26 Richard Biener <rguenther@suse.de>
9972 * tree-ssa-dom.c (cprop_operand): Remove restriction on
9973 propagating volatile pointers.
9975 2014-06-26 Richard Biener <rguenther@suse.de>
9977 PR tree-optimization/61607
9978 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
9979 loop if we redirected its latch edge.
9980 (thread_block_1): Do not cancel loops prematurely.
9982 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
9984 * toplev.c (backend_init_target): Move init_emit_regs and
9986 (backend_init) ... here; skip ira_init_once and backend_init_target.
9987 (target_reinit) ... and here; clear
9988 this_target_rtl->lang_dependent_initialized.
9989 (lang_dependent_init_target): Clear
9990 this_target_rtl->lang_dependent_initialized;
9991 break out rtl initialization to ...
9992 (initialize_rtl): ... here; call also backend_init_target
9994 * toplev.h (initialize_rtl): New function.
9995 * function.c: Include toplev.h
9996 (init_function_start): Call initialize_rtl.
9997 * rtl.h (target_rtl): Add target_specific_initialized,
9998 lang_dependent_initialized.
10000 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10001 Jakub Jelinek <jakub@redhat.com>
10003 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10005 2014-06-25 Tom de Vries <tom@codesourcery.com>
10007 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10009 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10011 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10012 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10013 Issue a strict overflow warning if appropriate.
10015 2014-06-25 Martin Liska <mliska@suse.cz>
10017 IPA REF refactoring
10018 * Makefile.in: Removed header file (ipa-ref-inline.h).
10019 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10021 (cgraph_speculative_call_info): Likewise.
10022 (cgraph_for_node_thunks_and_aliases): Likewise.
10023 (cgraph_for_node_and_aliases): Likewise.
10024 (verify_cgraph_node): Likewise.
10025 * cgraph.h: Batch of IPA REF functions become member functions of
10026 symtab_node: add_reference, maybe_add_reference, clone_references,
10027 clone_referring, clone_reference, find_reference,
10028 remove_stmt_references, remove_all_references,
10029 remove_all_referring, dump_references, dump_referring,
10030 has_alias_p, iterate_reference, iterate_referring.
10031 * cgraphbuild.c (record_reference): New IPA REF function used.
10032 (record_type_list): Likewise.
10033 (record_eh_tables): Likewise.
10034 (mark_address): Likewise.
10035 (mark_load): Likewise.
10036 (mark_store): Likewise.
10037 (pass_build_cgraph_edges): Likewise.
10038 (rebuild_cgraph_edge): Likewise.
10039 (cgraph_rebuild_references): Likewise.
10040 (pass_remove_cgraph_callee_edges): Likewise.
10041 * cgraphclones.c (cgraph_clone_node): Likewise.
10042 (cgraph_create_virtual_clone): Likewise.
10043 (cgraph_materialize_clone): Likewise.
10044 (cgraph_materialize_all_clones): Likewise.
10045 * cgraphunit.c (cgraph_reset_node): Likewise.
10046 (cgraph_reset_node): Likewise.
10047 (analyze_function): Likewise.
10048 (assemble_thunks_and_aliases): Likewise.
10049 (expand_function): Likewise.
10050 * ipa-comdats.c (propagate_comdat_group): Likewise.
10051 (enqueue_references): Likewise.
10052 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10053 (create_specialized_node): Likewise.
10054 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10055 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10056 * ipa-inline.c (reset_edge_caches): Likewise.
10057 (update_caller_keys): Likewise.
10058 (execute): Likewise.
10059 * ipa-prop.c (remove_described_reference): Likewise.
10060 (propagate_controlled_uses): Likewise.
10061 (ipa_edge_duplication_hook): Likewise.
10062 (ipa_modify_call_arguments): Likewise.
10063 * ipa-pure-const.c (propagate_pure_const): Likewise.
10064 * ipa-ref-inline.h: Header file removed, functions moved
10065 to symtab_node class.
10066 * ipa-ref.c (remove_reference): New class member function.
10067 (cannot_lead_to_return): New class member function.
10068 (referring_ref_list): Likewise.
10069 (referred_ref_list): Likewise.
10070 Rest of functions moved to symtab_node class.
10071 * ipa-ref.h: New member functions remove_reference,
10072 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10074 ipa_ref_list class has new member functions: first_reference,
10075 first_referring, clear, nreferences.
10076 * ipa-reference.c (analyze_function): New IPA REF function used.
10077 (write_node_summary_p): Likewise.
10078 (ipa_reference_write_optimization_summary): Likewise.
10079 * ipa-split.c (split_function): Likewise.
10080 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10081 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10082 (function_and_variable_visibility): Likewise.
10083 * ipa.c (has_addr_references_p): Likewise.
10084 (process_references): Argument type changed.
10085 (symtab_remove_unreachable_nodes): New IPA REF function used.
10086 (process_references): Likewise.
10087 (set_writeonly_bit): Likewise.
10088 * lto-cgraph.c: Implementation of new symtab_node member functions
10089 that uses new IPA REF functions.
10090 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10092 * lto-streamer-out.c (output_symbol_p): Likewise.
10093 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10095 * symtab.c: Implementation of new IPA REF API.
10096 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10097 (ipa_tm_create_version): Likewise.
10098 (ipa_tm_execute): Likewise.
10099 * tree-emutls.c (gen_emutls_addr): Likewise.
10100 * tree-inline.c (copy_bb): Likewise.
10101 (delete_unreachable_blocks_update_callgraph): Likewise.
10102 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10103 (varpool_for_node_and_aliases): Likewise.
10105 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10107 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10109 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10112 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10113 tree_node * instead of tree_node *.
10115 (print_fold_checksum): Likewise.
10116 (fold_check_failed): Likewise.
10117 (debug_fold_checksum): Likewise.
10118 (fold_build1_stat_loc): Likewise.
10119 (fold_build2_stat_loc): Likewise.
10120 (fold_build3_stat_loc): Likewise.
10121 (fold_build_call_array_loc): Likewise.
10123 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10125 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10126 implementation with call to...
10127 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10129 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10132 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10134 PR tree-optimization/57742
10135 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10136 after replacing the statement.
10138 2014-06-25 Nick Clifton <nickc@redhat.com>
10140 * config/v850/v850.c (GHS_default_section_names): Change to const
10142 (GHS_current_section_names): Likewise.
10143 (v850_insert_attributes): Do not build strings, just assign the
10144 names directly. Change the type of 'chosen_section' to const
10146 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10147 directly to the array entry.
10148 * config/v850/v850.h (GHS_default_section_names): Change to const
10150 (GHS_current_section_names): Likewise.
10152 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10154 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10155 (LANG_HOOKS_DECLS): Add it.
10156 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10158 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10159 * langhooks.h (struct lang_hooks_for_decls): Add
10160 omp_clause_linear_ctor hook.
10161 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10162 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10163 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10164 combined simd loop use omp_clause_linear_ctor hook.
10166 2014-06-24 Cong Hou <congh@google.com>
10168 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10169 pattern recognition.
10170 (type_conversion_p): PROMOTION is true if it's a type promotion
10171 conversion, and false otherwise. Return true if the given expression
10172 is a type conversion one.
10173 * tree-vectorizer.h: Adjust the number of patterns.
10174 * tree.def: Add SAD_EXPR.
10175 * optabs.def: Add sad_optab.
10176 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10177 * expr.c (expand_expr_real_2): Likewise.
10178 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10179 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10180 * optabs.c (optab_for_tree_code): Likewise.
10181 * tree-cfg.c (estimate_operator_cost): Likewise.
10182 * tree-ssa-operands.c (get_expr_operands): Likewise.
10183 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10184 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10185 * doc/generic.texi: Add document for SAD_EXPR.
10186 * doc/md.texi: Add document for ssad and usad.
10188 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10190 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10191 qualification in cast.
10193 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10195 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10196 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10197 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10198 (tree_function_decl): ... here.
10199 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10200 streaming of vindex to ...
10201 (write_ts_function_decl_tree_pointers): ... here.
10202 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10203 Do not stream DECL_VINDEX.
10204 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10206 2014-06-24 Catherine Moore <clm@codesourcery.com>
10207 Sandra Loosemore <sandra@codesourcery.com>
10209 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10210 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10211 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10213 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10215 * doc/invoke.texi (Warning Options): Remove duplicated
10216 -Wmaybe-uninitialized.
10218 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10220 PR tree-optimization/57742
10221 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10222 (handle_builtin_malloc, handle_builtin_memset): New functions.
10223 (strlen_optimize_stmt): Call them.
10224 * passes.def: Move strlen after loop+dom but before vrp.
10226 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10229 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10230 model family 6 CPU with has_longmode never use a CPU without
10233 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10236 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10239 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10241 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10242 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10244 * hash-map.h: New file.
10245 * ipa-comdats.c: Use hash_map instead of pointer_map.
10247 * lto-section-out.c: Adjust.
10248 * lto-streamer.h: Replace pointer_map with hash_map.
10249 * symtab.c (verify_symtab): Likewise.
10250 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10251 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10252 * tree-streamer.h: Likewise.
10253 * tree-streamer.c: Adjust.
10254 * pointer-set.h: Remove pointer_map.
10256 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10258 * hash-table.h: Add a template arg to choose between storing values
10259 and storing pointers to values, and then provide partial
10260 specializations for both.
10261 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10262 should store, not the type values should point to.
10263 * tree-into-ssa.c (var_info_hasher): Likewise.
10264 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10265 * tree-complex.c: Adjust.
10266 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10267 table instead of int_tree_map *.
10268 * tree-parloops.c: Adjust.
10269 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10270 type is being stored.
10271 * tree-vectorizer.c: Adjust.
10273 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10275 * hash-table.h: Remove a layer of indirection from hash_table so that
10276 it contains the hash table's data instead of a pointer to the data.
10277 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
10278 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
10279 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
10280 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
10281 fold-const.c, gcse.c, ggc-common.c,
10282 gimple-ssa-strength-reduction.c, gimplify.c,
10283 graphite-clast-to-gimple.c, graphite-dependences.c,
10284 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
10285 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10286 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
10287 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
10288 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
10289 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
10290 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
10291 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
10292 tree-ssa-live.c, tree-ssa-loop-im.c,
10293 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
10294 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
10295 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10296 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
10297 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
10298 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
10299 vtable-verify.c, vtable-verify.h: Adjust.
10301 2014-06-24 Richard Biener <rguenther@suse.de>
10303 PR tree-optimization/61572
10304 * tree-ssa-sink.c (statement_sink_location): Do not sink
10305 loads from hard registers.
10307 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10309 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
10310 not mentioned in clauses use private clause if the iterator is
10311 declared in #pragma omp for simd, and when adding lastprivate
10312 instead, add it to the outer #pragma omp for too. Diagnose
10313 if the variable is private in outer context. For simd collapse > 1
10314 loops, replace all iterators with temporaries.
10315 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
10316 same even in collapse > 1 loops.
10318 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
10319 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
10321 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
10322 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
10324 (gimplify_adjust_omp_clauses): Likewise.
10325 * omp-low.c (lower_rec_simd_input_clauses,
10326 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
10327 safelen the same as safelen(1).
10328 * tree-nested.c (convert_nonlocal_omp_clauses,
10329 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
10330 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
10331 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
10332 Fixup handling of GIMPLE_OMP_TARGET.
10333 (convert_tramp_reference_stmt, convert_gimple_call): Handle
10336 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
10338 PR tree-optimization/61554
10339 * tree-ssa-propagate.c: Include "bitmap.h".
10340 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
10341 properly update constructor/destructor.
10342 (substitute_and_fold_dom_walker::before_dom_children):
10343 Remove call to gimple_purge_dead_eh_edges, add bb->index to
10344 need_eh_cleaup instead.
10345 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
10348 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10350 * varpool.c (dump_varpool_node): Dump used_by_single_function.
10351 * tree-pass.h (make_pass_ipa_single_use): New pass.
10352 * cgraph.h (used_by_single_function): New flag.
10353 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
10355 * passes.def (pass_ipa_single_use): Scedule.
10356 * ipa.c (BOTTOM): New macro.
10357 (meet): New function
10358 (propagate_single_user): New function.
10359 (ipa_single_use): New function.
10360 (pass_data_ipa_single_use): New pass.
10361 (pass_ipa_single_use): New pass.
10362 (pass_ipa_single_use::gate): New gate.
10363 (make_pass_ipa_single_use): New function.
10365 2014-06-23 Kai Tietz <ktietz@redhat.com>
10368 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
10369 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
10371 2014-06-23 Richard Biener <rguenther@suse.de>
10373 * tree-ssa-loop.c (gate_loop): New function.
10374 (pass_tree_loop::gate): Call it.
10375 (pass_data_tree_no_loop, pass_tree_no_loop,
10376 make_pass_tree_no_loop): New.
10377 * tree-vectorizer.c: Include tree-scalar-evolution.c
10378 (pass_slp_vectorize::execute): Initialize loops and SCEV if
10380 (pass_slp_vectorize::clone): New method.
10381 * timevar.def (TV_TREE_NOLOOP): New.
10382 * tree-pass.h (make_pass_tree_no_loop): Declare.
10383 * passes.def (pass_tree_no_loop): New pass group with
10386 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
10389 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
10390 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
10392 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10394 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
10395 "yes" where needed.
10397 2014-06-23 Alan Modra <amodra@gmail.com>
10400 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
10401 to zero on debug statements.
10403 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10406 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
10407 Ignore third operand if present by marking qualifier_internal.
10409 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
10411 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
10413 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
10414 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
10415 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
10416 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
10417 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
10418 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
10419 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
10420 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
10421 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
10422 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
10423 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
10424 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
10425 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
10426 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
10427 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
10428 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
10429 logic in GCC vector extensions
10431 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
10432 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
10433 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
10434 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
10435 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
10436 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
10437 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
10438 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
10439 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
10440 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
10442 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
10444 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
10447 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
10448 (vget_low_s64): Use __GET_LOW macro.
10449 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
10450 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
10451 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
10452 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
10453 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
10455 (vcombine_s64): Use GCC vector extensions; remove cast.
10456 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
10457 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
10458 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
10459 Fix type signature; remove cast.
10461 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10464 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
10466 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
10468 (BUILTIN_VD1): New.
10469 (BUILTIN_VD_RE): Remove.
10470 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
10471 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
10472 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
10473 variant but not df.
10474 (vreinterpretv1df*, vreinterpret*v1df): New.
10475 (vreinterpretdf*, vreinterpret*df): Remove.
10476 * config/aarch64/aarch64-simd.md (aarch64_create,
10477 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
10478 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
10480 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
10481 (vcreate_f64): Remove cast, use v1df builtin.
10482 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
10483 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
10484 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
10485 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
10486 vmov_n_f64, vst1_f64): Use gcc vector extensions.
10487 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
10488 add range check using __builtin_aarch64_im_lane_boundsi.
10489 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
10490 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
10491 type signature, use gcc vector extensions.
10492 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
10493 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
10494 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
10495 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
10496 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
10497 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
10498 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
10499 vreinterpret_u64_f64): Use v1df builtin not df.
10501 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10503 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
10506 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10508 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
10511 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10513 * loop-invariant.c (pre_check_invariant_p): New function.
10514 (find_invariant_insn): Call pre_check_invariant_p.
10516 2014-06-22 Richard Henderson <rth@redhat.com>
10519 * compare-elim.c (struct comparison): Add eh_note.
10520 (find_comparison_dom_walker::before_dom_children): Don't eliminate
10521 a redundant comparison in a different EH region. Purge EH edges if
10524 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10526 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
10527 (var_shift): Use it.
10528 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
10529 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
10530 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
10531 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
10532 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
10533 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
10534 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
10535 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
10536 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
10537 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
10538 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
10539 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
10540 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
10541 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
10542 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
10543 *rotldi3_internal15be): Use the new attribute. Merge register and
10544 integer alternatives.
10546 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10548 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
10549 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
10550 split, *ashrdi3_internal3 and split): Delete, merge into...
10551 (ashr<mode>3): New expander.
10552 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
10553 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
10555 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10557 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
10558 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
10559 *rotldi3_internal3 and split): Delete, merge into...
10560 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
10561 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
10562 Use "rotlw" extended mnemonic.
10564 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10566 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
10567 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
10568 and split, *ashldi3_internal3 and split): Delete, merge into...
10569 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
10570 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
10572 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10574 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
10575 (lshrsi3, two anonymous define_insns and define_splits,
10576 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
10577 *lshrdi3_internal3 and split): Delete, merge into...
10578 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
10579 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
10581 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10583 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
10584 Remove "O" alternative.
10586 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
10588 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
10589 (mips_move_from_gpr_cost): Likewise.
10590 (mips_register_move_cost): Update accordingly.
10591 (mips_secondary_reload_class): Remove name of in_p.
10593 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
10596 * config/i386/i386.md (x86_64_shrd, x86_shrd,
10597 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
10599 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10601 * config/nios2/nios2.c: Include "builtins.h".
10603 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10605 * cgraph.h (tls_model_names): New variable.
10606 * print-tree.c (print_node): Simplify.
10607 * varpool.c (tls_model_names): New variable.
10608 (dump_varpool_node): Output tls model.
10610 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10612 * ipa-visibility.c (function_and_variable_visibility): Disable
10613 temporarily local aliases for some targets.
10615 2014-06-20 Marek Polacek <polacek@redhat.com>
10617 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
10618 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
10619 into SANITIZE_UNDEFINED.
10620 * doc/invoke.texi: Describe -fsanitize=bounds.
10621 * gimplify.c (gimplify_call_expr): Add gimplification of internal
10622 functions created in the FEs.
10623 * internal-fn.c: Move "internal-fn.h" after "tree.h".
10624 (expand_UBSAN_BOUNDS): New function.
10625 * internal-fn.def (UBSAN_BOUNDS): New internal function.
10626 * internal-fn.h: Don't define internal functions here.
10627 * opts.c (common_handle_option): Add -fsanitize=bounds.
10628 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
10629 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
10630 * tree-core.h: Define internal functions here.
10631 (struct tree_base): Add ifn field.
10632 * tree-pretty-print.c: Include "internal-fn.h".
10633 (dump_generic_node): Handle functions without CALL_EXPR_FN.
10634 * tree.c (get_callee_fndecl): Likewise.
10635 (build_call_expr_internal_loc): New function.
10636 * tree.def (CALL_EXPR): Update description.
10637 * tree.h (CALL_EXPR_IFN): Define.
10638 (build_call_expr_internal_loc): Declare.
10639 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
10641 (ubsan_type_descriptor): Change bool parameter to enum
10642 ubsan_print_style. Adjust the code. Add handling of
10644 (ubsan_expand_bounds_ifn): New function.
10645 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
10646 (ubsan_build_overflow_builtin): Likewise.
10647 (instrument_bool_enum_load): Likewise.
10648 (ubsan_instrument_float_cast): Likewise.
10649 * ubsan.h (enum ubsan_print_style): New enum.
10650 (ubsan_expand_bounds_ifn): Declare.
10651 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
10653 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
10655 * config/rs6000/rs6000.md: Append `DONE' to preparation
10656 statements of `bswap' pattern splitters.
10658 2014-06-20 Tom de Vries <tom@codesourcery.com>
10660 * target.def (call_fusage_contains_non_callee_clobbers): Update
10662 * doc/tm.texi: Regenerate.
10664 2014-06-20 Yury Gribov <y.gribov@samsung.com>
10665 Max Ostapenko <m.ostapenko@partner.samsung.com>
10668 * asan.c (instrument_strlen_call): Fixed instrumentation of
10671 2014-06-20 Martin Jambor <mjambor@suse.cz>
10674 * ipa-prop.c (impossible_devirt_target): New function.
10675 (try_make_edge_direct_virtual_call): Use it, also instead of
10678 2014-06-20 Yury Gribov <y.gribov@samsung.com>
10679 Max Ostapenko <m.ostapenko@partner.samsung.com>
10682 * asan.c (build_check_stmt): Add condition.
10684 2014-06-20 Martin Jambor <mjambor@suse.cz>
10687 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
10690 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10692 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
10694 (VCONQ): Make comment more helpful.
10696 * config/aarch64/aarch64-simd.md
10697 (aarch64_sqdmulh_lane<mode>):
10698 Use VCOND for operands 2. Update lane checking and flipping logic.
10699 (aarch64_sqrdmulh_lane<mode>): Likewise.
10700 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
10701 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
10702 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
10703 attribute of operand 3 to VCOND.
10704 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
10705 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10706 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
10707 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
10708 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10709 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
10711 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
10712 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
10713 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
10714 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
10715 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
10716 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
10717 operand to VCOND. Update lane flipping and bounds checking logic.
10718 (aarch64_sqdmlal2_lane<mode>): Likewise.
10719 (aarch64_sqdmlsl_lane<mode>): Likewise.
10720 (aarch64_sqdmull_lane<mode>): Likewise.
10721 (aarch64_sqdmull2_lane<mode>): Likewise.
10722 (aarch64_sqdmlal_laneq<mode>):
10723 Replace VCON usage with VCONQ.
10724 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
10725 (aarch64_sqdmlal2_laneq<mode>): Emit
10726 aarch64_sqdmlal2_laneq<mode>_internal insn.
10727 Replace VCON with VCONQ.
10728 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
10729 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
10730 (aarch64_sqdmull_laneq<mode>): Emit
10731 aarch64_sqdmull_laneq<mode>_internal insn.
10732 Replace VCON with VCONQ.
10733 (aarch64_sqdmull2_laneq<mode>): Emit
10734 aarch64_sqdmull2_laneq<mode>_internal insn.
10735 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
10736 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
10737 of 3rd argument to int16x4_t.
10738 (vqdmlalh_lane_s16): Likewise.
10739 (vqdmlslh_lane_s16): Likewise.
10740 (vqdmull_high_lane_s16): Likewise.
10741 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
10742 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
10743 (vqdmlsl_lane_s16): Likewise.
10744 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
10745 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
10746 (vqdmlals_lane_s32): Likewise.
10747 (vqdmlsls_lane_s32): Likewise.
10748 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
10749 (vqdmulls_lane_s32): Likewise.
10750 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
10751 (vqdmlsl_lane_s32): Likewise.
10752 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
10753 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
10754 (vqrdmulhh_lane_s16): Likewise.
10755 (vqdmlsl_high_lane_s16): Likewise.
10756 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
10757 (vqdmlsl_high_lane_s32): Likewise.
10758 (vqrdmulhs_lane_s32): Likewise.
10760 2014-06-20 Tom de Vries <tom@codesourcery.com>
10762 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
10763 get_call_reg_set_usage.
10765 2014-06-20 Tom de Vries <tom@codesourcery.com>
10767 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
10768 it contains all call_used_regs.
10770 2014-06-20 Tom de Vries <tom@codesourcery.com>
10772 * final.c (collect_fn_hard_reg_usage): Add and use variable
10773 function_used_regs.
10775 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10777 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
10778 (set_init_priority, get_init_priority, set_fini_priority,
10779 get_fini_priority): New methods.
10780 * tree.c (init_priority_for_decl): Remove.
10781 (init_ttree): Do not initialize init priority.
10782 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
10783 (decl_priority_info): Remove.
10784 (decl_init_priority_insert): Rewrite.
10785 (decl_fini_priority_insert): Rewrite.
10786 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
10787 tree_priority_map_marked_p): Remove.
10788 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
10789 * lto-streamer-out.c (hash_tree): Do not hash priorities.
10790 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
10791 not output priorities.
10792 (pack_ts_function_decl_value_fields): Likewise.
10793 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
10794 not input priorities.
10795 (unpack_ts_function_decl_value_fields): Likewise.
10796 * symtab.c (symbol_priority_map): Declare.
10797 (init_priority_hash): Declare.
10798 (symtab_unregister_node): Unregister from priority hash, too.
10799 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
10801 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
10802 (symbol_priority_info): New function.
10803 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
10805 * tree-core.h (tree_priority_map): Remove.
10807 2014-06-20 Jakub Jelinek <jakub@redhat.com>
10809 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
10810 0xff to uint64_t before shifting it up.
10812 2014-06-20 Julian Brown <julian@codesourcery.com>
10813 Chung-Lin Tang <cltang@codesourcery.com>
10815 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
10816 TARGET_THUMB1_ONLY. Add comments.
10818 2014-06-19 Tom de Vries <tom@codesourcery.com>
10820 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
10821 return type to void.
10822 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
10824 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10826 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
10827 as "move", from depends_on.
10829 2014-06-19 Terry Guo <terry.guo@arm.com>
10831 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
10834 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
10836 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
10838 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
10840 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
10843 * config/sh/sh.c (prepare_move_operands): Don't process TLS
10844 addresses here if reload in progress or completed.
10846 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
10848 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
10849 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
10850 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
10851 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
10852 (mips_register_priority): New function that implements the target
10853 hook TARGET_REGISTER_PRIORITY.
10854 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
10855 (mips_lra_p): Likewise for TARGET_LRA_P.
10856 (TARGET_REGISTER_PRIORITY): Define macro.
10857 (TARGET_SPILL_CLASS): Likewise.
10858 (TARGET_LRA_P): Likewise.
10859 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
10861 (REG_CLASS_NAMES): Likewise.
10862 (REG_CLASS_CONTENTS): Likewise.
10863 (BASE_REG_CLASS): Use M16_SP_REGS.
10864 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
10865 New set attribute to enable alternatives depending on the register
10867 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
10868 (*lea64): Disable pattern for MIPS16.
10869 * config/mips/mips.opt (mlra): New option.
10871 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
10873 * lra-constraints.c (base_to_reg): New function.
10874 (process_address): Use new function.
10876 2014-06-18 Tom de Vries <tom@codesourcery.com>
10878 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
10879 * config/aarch64/aarch64.c
10880 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
10881 (aarch64_emit_call_insn): New function.
10882 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
10884 * config/aarch64/aarch64.md (define_expand "call_internal")
10885 (define_expand "call_value_internal", define_expand "sibcall_internal")
10886 (define_expand "sibcall_value_internal"): New.
10887 (define_expand "call", define_expand "call_value")
10888 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
10889 expand variant and aarch64_emit_call_insn.
10891 2014-06-18 Radovan Obradovic <robradovic@mips.com>
10892 Tom de Vries <tom@codesourcery.com>
10894 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
10895 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
10897 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
10898 clobbers to CALL_INSN_FUNCTION_USAGE.
10899 (define_expand "sibcall_internal")
10900 (define_expand "sibcall_value_internal"): New.
10901 (define_expand "call", define_expand "call_value"): Add argument to
10902 arm_emit_call_insn.
10903 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
10904 (define_expand "sibcall_value"): Use sibcall_value_internal and
10905 arm_emit_call_insn.
10907 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10909 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
10911 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10913 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
10916 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10918 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
10919 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
10920 annotations. Fix DWARF information.
10922 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10924 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
10925 __udivmoddi4, and fixups for negative operands.
10927 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10929 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
10931 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10933 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
10936 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10938 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
10941 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10943 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
10944 describing register usage on function entry and exit.
10946 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10948 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
10949 (__aeabi_ldivmod): Fix whitespace.
10951 2014-06-18 Andreas Schwab <schwab@suse.de>
10953 * doc/md.texi (Standard Names): Use @itemx for grouped items.
10954 Remove blank line after @item.
10956 2014-06-18 Richard Henderson <rth@redhat.com>
10959 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
10961 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10963 * config/arm/arm.c (neon_vector_mem_operand): Allow register
10964 POST_MODIFY for neon loads and stores.
10965 (arm_print_operand): Output post-index register for neon loads and
10968 2014-06-18 Richard Biener <rguenther@suse.de>
10970 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
10972 2014-06-18 Richard Biener <rguenther@suse.de>
10974 * tree-pass.h (make_pass_dce_loop): Remove.
10975 * passes.def: Replace pass_dce_loop with pass_dce.
10976 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
10977 changed free niter estimates and reset the scev cache.
10978 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
10979 make_pass_dce_loop): Remove.
10980 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
10981 (fini_copy_prop): Return whether something changed. Always
10982 let substitute_and_fold perform DCE and free niter estimates
10983 and reset the scev cache if so.
10984 (execute_copy_prop): If sth changed schedule cleanup-cfg.
10985 (pass_data_copy_prop): Do not unconditionally schedule
10986 cleanup-cfg or update-ssa.
10988 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
10990 PR tree-optimization/61518
10991 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
10992 reduction var is used in reduction stmt or phi-function only.
10994 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10996 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
10998 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11000 PR tree-optimization/61517
11001 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11002 whose rhs's first tree is the source expression instead of the
11004 (find_bswap_or_nop): Likewise.
11005 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11006 gimple stmt whose rhs's first tree is the source. In the memory source
11007 case, move the stmt to be replaced close to one of the original load to
11008 avoid the problem of a store between the load and the stmt's original
11010 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11013 2014-06-18 Andreas Schwab <schwab@suse.de>
11015 PR rtl-optimization/54555
11016 * postreload.c (move2add_use_add2_insn): Substitute
11017 STRICT_LOW_PART only if it is cheaper.
11019 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11021 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11022 Do not use unspec as call operand. Use memory_operand instead of
11023 memory_nox32_operand and add "m" operand constraint. Disable
11024 pattern for TARGET_X32.
11025 (*sibcall_pop_memory): Ditto.
11026 (*sibcall_value_memory): Ditto.
11027 (*sibcall_value_pop_memory): Ditto.
11028 (sibcall peepholes): Merge SImode and DImode patterns using
11029 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11030 Disable pattern for TARGET_X32. Check if eliminated register is
11031 really dead after call insn. Generate call RTX without unspec operand.
11032 (sibcall_value peepholes): Ditto.
11033 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11034 instead of memory_nox32_operand. Check if eliminated register is
11035 really dead after call insn. Generate call RTX without unspec operand.
11036 (sibcall_value_pop peepholes): Ditto.
11037 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11039 2014-06-18 Terry Guo <terry.guo@arm.com>
11042 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11045 2014-06-18 Olivier Hainque <hainque@adacore.com>
11047 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11048 memorization of the end of block source location.
11049 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11050 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11051 end source location info we have on the block entry/exit code we
11054 2014-06-18 Richard Biener <rguenther@suse.de>
11056 * common.opt (fssa-phiopt): New option.
11057 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11059 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11060 * doc/invoke.texi (-fssa-phiopt): Document.
11062 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11064 * genattrtab.c (n_bypassed): New variable.
11065 (process_bypasses): Initialise n_bypassed.
11066 Count number of bypassed reservations.
11067 (make_automaton_attrs): Allocate space for bypassed reservations
11068 rather than number of bypasses.
11070 2014-06-18 Richard Biener <rguenther@suse.de>
11072 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11073 we propagated anything.
11074 (substitute_and_fold_dom_walker::before_dom_children): Something
11075 changed if we propagated into PHI arguments.
11076 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11079 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11081 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11083 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11084 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11085 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11086 Introduces alternative way of loads group permutaions.
11087 (vect_transform_grouped_load): Try alternative way of permutations.
11089 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11091 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11092 changed in ORT_TARGET region, don't jump to do_outer.
11093 (struct gimplify_adjust_omp_clauses_data): New type.
11094 (gimplify_adjust_omp_clauses_1): Adjust for data being
11095 a struct gimplify_adjust_omp_clauses_data pointer instead
11096 of tree *. Pass pre_p as a new argument to
11097 lang_hooks.decls.omp_finish_clause hook.
11098 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11099 splay_tree_foreach to pass both list_p and pre_p.
11100 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11101 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11102 gimplify_adjust_omp_clauses callers.
11103 * langhooks.c (lhd_omp_finish_clause): New function.
11104 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11105 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11106 * langhooks.h (struct lang_hooks_for_decls): Add a new
11107 gimple_seq * argument to omp_finish_clause hook.
11108 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11109 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11110 (scan_omp_parallel, lower_omp_for): When adding
11111 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11112 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11113 * tree-nested.c (convert_nonlocal_omp_clauses,
11114 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11115 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11117 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11119 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11120 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11122 2014-06-17 Xinliang David Li <davidxl@google.com>
11124 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11125 * passes.c (pass_init_dump_file): Do not set initialize
11126 flag to false unconditionally.
11128 2014-06-17 Richard Biener <rguenther@suse.de>
11130 * genopinit.c (main): Use vec<>::qsort method.
11131 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11133 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11135 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11137 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11138 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11139 (mips_move_to_gpr_cost): Remove ST_REGS case.
11140 (mips_move_from_gpr_cost): Likewise.
11141 (mips_register_move_cost): Likewise.
11142 (mips_secondary_reload_class): Likewise.
11144 2014-06-17 Richard Biener <rguenther@suse.de>
11146 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11147 (pass_all_optimizations): Move 3rd copy-prop pass from after
11148 fre to before ifcombine/phiopt.
11150 2014-06-17 Richard Biener <rguenther@suse.de>
11152 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11153 and allow all blocks to be forwarders.
11155 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11158 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11159 variable 'size'; calculate 'size' right in the front; use
11160 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11161 pcum->aapcs_stack_words.
11163 2014-06-17 Nick Clifton <nickc@redhat.com>
11165 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11166 (umulhi3, mulsidi3, umulsidi3): Likewise.
11168 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11170 PR middle-end/61508
11171 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11172 check for section name.
11174 2014-06-17 Richard Biener <rguenther@suse.de>
11176 * tree-ssa-propagate.c: Include domwalk.h.
11177 (substitute_and_fold): Outline main worker into a domwalker ...
11178 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11179 Schedule stmts we can fully propagate for removal. Remove
11181 (substitute_and_fold): Apply a dominator walk to perform
11182 substitution. Process stmts scheduled for removal here.
11184 2014-06-17 Richard Biener <rguenther@suse.de>
11186 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11187 of PHI node moving.
11189 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11191 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11192 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11193 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11194 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11195 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11197 (get_fpscr) : Likewise.
11199 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11201 PR rtl-optimization/61325
11202 * lra-constraints.c (valid_address_p): Add forward declaration.
11203 (simplify_operand_subreg): Check address validity before and after
11204 alter_reg of memory subreg.
11206 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11208 * config/i386/i386.c (decide_alg): Correctly handle
11209 maximum size of stringop algorithm.
11211 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11213 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11215 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11217 PR rtl-optimization/61522
11218 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11220 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11223 * symtab.c (symtab_node::reset_section): New method.
11224 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11226 * cgraph.h (reset_section): Declare.
11227 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11228 do not consider comdat locals.
11229 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11231 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11232 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11233 reset sections of symbols dragged out of the comdats.
11234 (function_and_variable_visibility): Reset sections of
11237 2014-06-16 Richard Biener <rguenther@suse.de>
11239 PR tree-optimization/61482
11240 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11241 [-INF(OVF), +INF(OVF)] range.
11243 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11245 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11246 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11247 handling 32-bit multiplication.
11249 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
11251 PR middle-end/61430
11252 * lra-lives.c (process_bb_lives): Skip creating copy during
11253 insn scan when src/dest has constrained to same regno.
11255 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11257 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11258 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11260 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11262 * asan.c (check_func): New function.
11263 (maybe_create_ssa_name): Likewise.
11264 (build_check_stmt_with_calls): Likewise.
11265 (use_calls_p): Likewise.
11266 (report_error_func): Change interface.
11267 (build_check_stmt): Allow non-integer lengths; add support
11269 (asan_instrument): Likewise.
11270 (instrument_mem_region_access): Moved code to build_check_stmt.
11271 (instrument_derefs): Likewise.
11272 (instrument_strlen_call): Likewise.
11273 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
11274 * doc/invoke.texi: Describe new parameter.
11275 * params.def: Define new parameter.
11276 * params.h: Likewise.
11277 * sanitizer.def: Describe new builtins.
11279 2014-06-16 Richard Biener <rguenther@suse.de>
11281 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11282 Make all defs available at the end.
11283 (eliminate): If we remove a PHI node schedule cfg-cleanup.
11285 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11288 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
11290 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11293 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
11294 initialization. Replace remaining use of uid.
11296 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11298 * c-family/c-common.c (handle_tls_model_attribute): Use
11299 set_decl_tls_model.
11300 * c-family/c-common.c (handle_tls_model_attribute): Use
11301 set_decl_tls_model.
11302 * cgraph.h (struct varpool_node): Add tls_model.
11303 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
11304 * tree.h (DECL_TLS_MODEL): Update.
11305 (DECL_THREAD_LOCAL_P): Check that variable is static.
11306 (decl_tls_model): Declare.
11307 (set_decl_tls_model): Declare.
11308 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
11309 set symbol prorperties.
11310 (get_emutls_init_templ_addr): Cleanup.
11311 (new_emutls_decl): Update.
11312 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
11313 (lto_input_varpool_node): Likewise.
11314 * lto-streamer-out.c (hash_tree): Likewise.
11315 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11316 not stream DECL_TLS_MODEL.
11317 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
11318 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
11320 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11322 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
11324 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11326 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
11327 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
11329 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
11330 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
11331 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
11332 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
11333 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
11334 (df_get_artificial_defs, df_get_artificial_uses)
11335 (df_single_def, df_single_use): Update accordingly.
11336 (df_refs_chain_dump): Take the first element in a linked list as
11337 parameter, rather than a pointer to an array of pointers.
11338 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
11339 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
11340 (df_chain_create_bb_process_use): Likewise.
11341 (df_md_bb_local_compute_process_def): Likewise.
11342 * fwprop.c (process_defs, process_uses): Likewise.
11343 (register_active_defs, update_uses): Likewise.
11344 (forward_propagate_asm): Update for new df_ref linking.
11345 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
11346 (df_null_ref_rec, df_null_mw_rec): Likewise.
11347 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
11349 (df_scan_free_bb_info): Remove check for null artificial_defs.
11350 (df_install_ref_incremental): Adjust for new df_ref linking.
11351 Use a single-element insertion rather than a full sort.
11352 (df_ref_chain_delete_du_chain): Take the first element
11353 in a linked list as parameter, rather than a pointer to an array of
11355 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
11356 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
11357 (df_insn_info_delete): Remove check for null defs and call to
11358 df_scan_free_mws_vec.
11359 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
11360 null rather than df_null_*_rec.
11361 (df_insn_rescan_debug_internal): Likewise, and update null
11362 checks in the same way. Remove check for null defs.
11363 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
11364 Move a single element rather doing a full sort.
11365 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
11367 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
11368 Initialize df_ref and df_mw_hardreg lists to null rather than
11370 (df_ref_compare): Take df_refs as parameter, transferring the
11371 old interface to...
11372 (df_ref_ptr_compare): ...this new function.
11373 (df_sort_and_compress_refs): Update accordingly.
11374 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
11375 old interface to...
11376 (df_mw_ptr_compare): ...this new function.
11377 (df_sort_and_compress_mws): Update accordingly.
11378 (df_install_refs, df_install_mws): Return a linked list rather than
11379 an array of pointers.
11380 (df_refs_add_to_chains): Assert that old lists are empty rather
11382 (df_insn_refs_verify): Don't handle null defs speciailly.
11383 * web.c (union_match_dups): Update for new df_ref linking.
11385 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11387 * df.h (df_ref_create, df_ref_remove): Delete.
11388 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
11389 (df_ref_remove): Likewise.
11391 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11393 * df.h (df_single_def, df_single_use): New functions.
11394 * ira.c (find_moveable_pseudos): Use them.
11396 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11398 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
11399 * df-problems.c (df_note_bb_compute): Use it.
11400 * regstat.c (regstat_bb_compute_ri): Likewise.
11402 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11404 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
11405 * cse.c (cse_extended_basic_block): Use them.
11406 * dce.c (mark_artificial_use): Likewise.
11407 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
11408 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11409 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
11410 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
11411 (df_simulate_initialize_backwards): Likewise.
11412 (df_simulate_finalize_backwards): Likewise.
11413 (df_simulate_initialize_forwards): Likewise.
11414 (df_md_simulate_artificial_defs_at_top): Likewise.
11415 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11416 * regrename.c (init_rename_info): Likewise.
11417 * regstat.c (regstat_bb_compute_ri): Likewise.
11418 (regstat_bb_compute_calls_crossed): Likewise.
11420 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11422 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
11423 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
11424 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
11425 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
11426 * combine.c (create_log_links): Likewise.
11427 * compare-elim.c (find_flags_uses_in_insn): Likewise.
11428 (try_eliminate_compare): Likewise.
11429 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
11430 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
11431 (remove_reg_equal_equiv_notes_for_defs): Likewise.
11432 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
11433 (word_dce_process_block, dce_process_block): Likewise.
11434 * ddg.c (def_has_ccmode_p): Likewise.
11435 * df-core.c (df_bb_regno_first_def_find): Likewise.
11436 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
11437 * df-problems.c (df_rd_simulate_one_insn): Likewise.
11438 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11439 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
11440 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
11441 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
11442 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
11443 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
11444 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
11445 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
11446 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11447 * fwprop.c (local_ref_killed_between_p): Likewise.
11448 (all_uses_available_at, free_load_extend): Likewise.
11449 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
11450 * hw-doloop.c (scan_loop): Likewise.
11451 * ifcvt.c (dead_or_predicable): Likewise.
11452 * init-regs.c (initialize_uninitialized_regs): Likewise.
11453 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
11454 (process_bb_node_lives): Likewise.
11455 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
11456 (find_moveable_pseudos): Likewise.
11457 * loop-invariant.c (check_dependencies, record_uses): Likewise.
11458 * recog.c (peep2_find_free_register): Likewise.
11459 * ree.c (get_defs): Likewise.
11460 * regstat.c (regstat_bb_compute_ri): Likewise.
11461 (regstat_bb_compute_calls_crossed): Likewise.
11462 * sched-deps.c (find_inc, find_mem): Likewise.
11463 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
11464 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
11465 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11466 (prepare_shrink_wrap): Likewise.
11467 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
11468 * web.c (union_defs, pass_web::execute): Likewise.
11469 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
11470 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
11472 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
11474 * lra-assign.c (assign_by_spills): Add code to assign vector regs
11475 to inheritance pseudos.
11476 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
11478 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
11481 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
11482 (BU_MISC_2): Rename to ...
11483 (BU_LDBL128_2): ... this.
11484 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
11485 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
11486 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
11487 RS6000_BTM_LDBL128.
11488 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
11489 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
11490 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
11491 (unpacktf_1): Likewise.
11492 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
11493 (__builtin_longdouble_dw1): Likewise.
11494 * doc/sourcebuild.texi (longdouble128): Document.
11496 2014-06-13 Jeff Law <law@redhat.com>
11498 PR rtl-optimization/61094
11499 PR rtl-optimization/61446
11500 * ree.c (combine_reaching_defs): Get the mode for the copy from
11501 the extension insn rather than the defining insn.
11503 2014-06-13 Dehao Chen <dehao@google.com>
11505 * dwarf2out.c (add_linkage_name): Emit more linkage name.
11507 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
11509 * doc/install.texi (--enable-linker-plugin-configure-flags)
11510 (--enable-linker-plugin-flags): Document new flags.
11512 2014-06-13 Martin Jambor <mjambor@suse.cz>
11515 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
11516 cache_token if returning early.
11518 2014-06-13 Nick Clifton <nickc@redhat.com>
11520 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
11521 requested alignment is active.
11522 (LABEL_ALIGN): Likewise.
11523 (LOOP_ALIGN): Likewise.
11525 2014-06-13 Richard Biener <rguenther@suse.de>
11527 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11528 Rewrite to propagate the VN result into all uses where
11529 possible and to remove stmts becoming dead because of that.
11530 (eliminate): Generalize stmt removal handling, remove in
11531 reverse dominator order to support proper debug stmt
11532 generation. Update stmts before removing stmts.
11533 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
11535 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11537 PR tree-optimization/61375
11538 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
11539 symbolic number cannot be represented in an uint64_t.
11540 (find_bswap_or_nop_1): Likewise.
11542 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11544 * symtab.c (symtab_node::reset_section): New method.
11545 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11547 * cgraph.h (reset_section): Declare.
11548 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11549 do not consider comdat locals.
11550 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11552 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11553 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11554 reset sections of symbols dragged out of the comdats.
11555 (function_and_variable_visibility): Reset sections of
11558 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11560 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
11561 to use symtab and decl_binds_to_current_def_p
11562 * tree-vectorizer.c (increase_alignment): Increase alignment
11563 of alias target, too.
11565 2014-06-12 Jakub Jelinek <jakub@redhat.com>
11567 PR middle-end/61486
11568 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
11569 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
11570 if outer combined construct is distribute.
11571 (gimplify_omp_for): For OMP_DISTRIBUTE set
11572 gimplify_omp_ctxp->distribute.
11573 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
11574 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
11575 mapping into decl map.
11577 2014-06-12 Jason Merrill <jason@redhat.com>
11579 * common.opt (fabi-version): Change default to 0.
11581 2014-06-12 Jason Merrill <jason@redhat.com>
11583 * toplev.c (process_options): Reject -fabi-version=1.
11585 2014-06-12 Jeff Law <law@redhat.com>
11587 PR tree-optimization/61009
11588 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
11589 value when we stop processing a block due to problematic PHIs.
11591 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
11593 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
11594 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
11595 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
11596 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
11597 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
11598 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
11599 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
11600 are not in the spec.
11602 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
11605 * config/aarch64/aarch64-modes.def: Add V1DFmode.
11606 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
11609 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
11611 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
11613 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
11616 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
11617 loading from address spaces.
11619 2014-06-12 Martin Liska <mliska@suse.cz>
11622 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
11623 statement is reachable.
11625 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
11627 * symtab.c (section_hash): New hash.
11628 (symtab_unregister_node): Clear section before freeing.
11629 (hash_section_hash_entry): New haser.
11630 (eq_sections): New function.
11631 (symtab_node::set_section_for_node): New method.
11632 (set_section_1): Update.
11633 (symtab_node::set_section): Take string instead of tree as parameter.
11634 (symtab_resolve_alias): Update.
11635 * cgraph.h (section_hash_entry_d): New structure.
11636 (section_hash_entry): New typedef.
11637 (cgraph_node): Change comdat_group_ to x_comdat_group,
11638 change section_ to x_section and turn into section_hash_entry;
11639 update accestors; put set_section_for_node offline.
11640 * tree.c (decl_section_name): Turn into string.
11641 (set_decl_section_name): Change parameter to be string.
11642 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
11643 * sdbout.c (sdbout_one_type): Update.
11644 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
11645 * varasm.c (IN_NAMED_SECTION, get_named_section,
11646 resolve_unique_section, hot_function_section, get_named_text_section,
11647 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
11648 make_decl_rtl, default_unique_section): Update.
11649 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
11650 (c6x_elf_unique_section): Update.
11651 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
11652 * config/pa/pa.c (pa_function_section): Update.
11653 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
11654 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
11655 * config/arc/arc.c (arc_in_small_data_p): Update.
11656 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
11657 * config/mcore/mcore.c (mcore_unique_section): Update.
11658 * config/mips/mips.c (mips16_build_function_stub): Update.
11659 (mips16_build_call_stub): Update.
11660 (mips_function_rodata_section): Update.
11661 (mips_in_small_data_p): Update.
11662 * config/score/score.c (score_in_small_data_p): Update.
11663 * config/rx/rx.c (rx_in_small_data): Update.
11664 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
11665 (rs6000_xcoff_asm_named_section): Update.
11666 (rs6000_xcoff_unique_section): Update.
11667 * config/frv/frv.c (frv_string_begins_with): Update.
11668 (frv_in_small_data_p): Update.
11669 * config/v850/v850.c (v850_encode_data_area): Update.
11670 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
11671 (bfin_handle_l1_data_attribute): Update.
11672 (bfin_handle_l2_attribute): Update.
11673 * config/mep/mep.c (mep_unique_section): Update.
11674 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
11676 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
11677 (h8300_handle_tiny_data_attribute): Update.
11678 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
11679 (m32r_in_small_data_p): Update.
11680 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
11681 * config/i386/i386.c (ix86_in_large_data_p): Update.
11682 * config/i386/winnt.c (i386_pe_unique_section): Update.
11683 * config/darwin.c (darwin_function_section): Update.
11684 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
11685 * tree-emutls.c (get_emutls_init_templ_addr): Update.
11686 (new_emutls_decl): Update.
11687 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
11688 input_varpool_node): Update.
11689 (ead_string_cst): Turn to ...
11690 (read_string): ... this one.
11691 * dwarf2out.c (secname_for_decl): Update.
11692 * asan.c (asan_protect_global): Update.
11694 2014-06-11 DJ Delorie <dj@redhat.com>
11696 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
11698 * config/rx/rx.c (rx_option_override): Likewise.
11699 (rx_align_for_label): Likewise.
11701 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
11703 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
11705 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
11708 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11710 * common.md: New file.
11711 * doc/md.texi: Update description of generic, machine-independent
11713 * config/s390/constraints.md (e): Delete.
11714 * Makefile.in (md_file): Include common.md.
11715 * config/m32c/t-m32c (md_file): Likewise.
11716 * genpreds.c (general_mem): New array.
11717 (generic_constraint_letters): Remove constraints now defined by
11719 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
11720 Allow the first character to be '<' or '>' as well.
11721 * genoutput.c (general_mem): New array.
11722 (indep_constraints): Remove constraints now defined by common.md.
11723 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
11724 Remove special handling of 'm'.
11725 * ira-costs.c (record_reg_classes): Remove special handling of
11726 constraints now defined by common.md.
11727 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
11728 * ira-lives.c (single_reg_class): Likewise.
11729 (ira_implicitly_set_insn_hard_regs): Likewise.
11730 * lra-constraints.c (reg_class_from_constraints): Likewise.
11731 (process_alt_operands, process_address, curr_insn_transform): Likewise.
11732 * postreload.c (reload_cse_simplify_operands): Likewise.
11733 * reload.c (push_secondary_reload, scratch_reload_class)
11734 (find_reloads, alternative_allows_const_pool_ref): Likewise.
11735 * reload1.c (maybe_fix_stack_asms): Likewise.
11736 * targhooks.c (default_secondary_reload): Likewise.
11737 * stmt.c (parse_output_constraint): Likewise.
11738 * recog.c (preprocess_constraints): Likewise.
11739 (constrain_operands, peep2_find_free_register): Likewise.
11740 (asm_operand_ok): Likewise, but add a comment saying why 'o'
11741 must be handled specially.
11743 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11745 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
11746 * genpreds.c (have_const_dbl_constraints): Delete.
11747 (add_constraint): Don't set it.
11748 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
11749 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
11750 constraints using the lookup_constraint logic.
11751 * ira-lives.c (single_reg_class): Likewise.
11752 * ira.c (ira_setup_alts): Likewise.
11753 * lra-constraints.c (process_alt_operands): Likewise.
11754 * recog.c (asm_operand_ok, constrain_operands): Likewise.
11755 * reload.c (find_reloads): Likewise.
11757 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11759 * genpreds.c (const_int_start, const_int_end): New variables.
11760 (choose_enum_order): Output CONST_INT constraints before memory
11762 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
11764 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
11765 * ira.c (ira_setup_alts): Likewise.
11766 * lra-constraints.c (process_alt_operands): Likewise.
11767 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
11768 * reload.c (find_reloads): Likewise.
11770 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11772 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
11773 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
11774 * recog.c (preprocess_constraints): Update accordingly.
11776 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11778 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
11779 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
11780 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
11781 * genpreds.c (print_type_tree): New function.
11782 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
11783 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
11784 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
11785 Write out enum constraint_type and get_constraint_type.
11786 * lra-constraints.c (satisfies_memory_constraint_p): Take a
11787 constraint_num rather than a constraint string.
11788 (satisfies_address_constraint_p): Likewise.
11789 (reg_class_from_constraints): Avoid old constraint macros.
11790 (process_alt_operands, process_address_1): Likewise.
11791 (curr_insn_transform): Likewise.
11792 * ira-costs.c (record_reg_classes): Likewise.
11793 (record_operand_costs): Likewise.
11794 * ira-lives.c (single_reg_class): Likewise.
11795 (ira_implicitly_set_insn_hard_regs): Likewise.
11796 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
11797 * postreload.c (reload_cse_simplify_operands): Likewise.
11798 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
11799 (constrain_operands, peep2_find_free_register): Likewise.
11800 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
11801 (find_reloads, alternative_allows_const_pool_ref): Likewise.
11802 * reload1.c (maybe_fix_stack_asms): Likewise.
11803 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
11804 * targhooks.c (default_secondary_reload): Likewise.
11805 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
11806 to EXTRA_CONSTRAINT_STR.
11807 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
11809 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11811 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
11812 (write_constraint_satisfied_p_array): ...this new function.
11813 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
11815 (write_insn_preds_c): Update accordingly.
11817 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11819 * genpreds.c (write_lookup_constraint): Rename to...
11820 (write_lookup_constraint_1): ...this.
11821 (write_lookup_constraint_array): New function.
11822 (write_tm_preds_h): Define lookup_constraint as an inline function
11823 that uses write_lookup_constraint_array where possible.
11824 (write_insn_preds_c): Update for the changes above.
11826 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11828 * doc/md.texi (regclass_for_constraint): Rename to...
11829 (reg_class_for_constraint): ...this.
11830 * genpreds.c (num_constraints, enum_order, register_start)
11831 (register_end, satisfied_start, memory_start, memory_end)
11832 (address_start, address_end): New variables.
11833 (add_constraint): Count the number of constraints.
11834 (choose_enum_order): New function.
11835 (write_enum_constraint_num): Iterate over enum_order.
11836 (write_regclass_for_constraint): Rename to...
11837 (write_reg_class_for_constraint_1): ...this and update output
11839 (write_constraint_satisfied_p): Rename to...
11840 (write_constraint_satisfied_p_1): ...this and update output
11841 accordingly. Do nothing if all extra constraints are register
11843 (write_insn_extra_memory_constraint): Delete.
11844 (write_insn_extra_address_constraint): Delete.
11845 (write_range_function): New function.
11846 (write_tm_preds_h): Define constraint_satisfied_p and
11847 reg_class_for_constraint as inline functions that do a range check
11848 before calling the out-of-line function. Use write_range_function
11849 to implement insn_extra_{register,memory,address}_constraint,
11850 the first of which is new.
11851 (write_insn_preds_c): Update after above changes to write_* functions.
11852 (main): Call choose_enum_order.
11854 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
11856 PR tree-optimization/61306
11857 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
11858 expression instead of its size.
11859 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
11860 false to prevent optimization when the result is unpredictable due to
11861 arithmetic right shift of signed type with highest byte is set.
11862 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
11863 (init_symbolic_number): Likewise.
11864 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
11865 when the result is unpredictable due to sign extension.
11867 2014-06-11 Terry Guo <terry.guo@arm.com>
11869 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
11870 (*thumb1_addsi3): Ditto.
11871 (*thumb_subdi3): Ditto.
11872 (thumb1_subsi3_insn): Ditto.
11873 (*thumb_mulsi3): Ditto.
11874 (*thumb_mulsi3_v6): Ditto.
11875 (*thumb1_andsi3_insn): Ditto.
11876 (thumb1_bicsi3): Ditto.
11877 (*thumb1_iorsi3_insn): Ditto.
11878 (*thumb1_xorsi3_insn): Ditto.
11879 (*thumb1_ashlsi3): Ditto.
11880 (*thumb1_ashrsi3): Ditto.
11881 (*thumb1_lshrsi3): Ditto.
11882 (*thumb1_rotrsi3): Ditto.
11883 (*thumb1_negdi2): Ditto.
11884 (*thumb1_negsi2): Ditto.
11885 (*thumb1_abssi2): Ditto.
11886 (*thumb1_neg_abssi2): Ditto.
11887 (*thumb1_one_cmplsi2): Ditto.
11888 (*thumb1_zero_extendhisi2): Ditto.
11889 (*thumb1_zero_extendqisi2): Ditto.
11890 (*thumb1_zero_extendqisi2_v6): Ditto.
11891 (thumb1_extendhisi2): Ditto.
11892 (thumb1_extendqisi2): Ditto.
11893 (*thumb1_movdi_insn): Ditto.
11894 (*thumb1_movsi_insn): Ditto.
11895 (*thumb1_movhi_insn): Ditto.
11896 (thumb_movhi_clobber): Ditto.
11897 (*thumb1_movqi_insn): Ditto.
11898 (*thumb1_movhf): Ditto.
11899 (*thumb1_movsf_insn): Ditto.
11900 (*thumb_movdf_insn): Ditto.
11901 (movmem12b): Ditto.
11903 (cbranchqi4): Ditto.
11904 (cbranchsi4_insn): Ditto.
11905 (cbranchsi4_scratch): Ditto.
11906 (*negated_cbranchsi4): Ditto.
11907 (*tbit_cbranch): Ditto.
11908 (*tlobits_cbranch): Ditto.
11909 (*tstsi3_cbranch): Ditto.
11910 (*cbranchne_decr1): Ditto.
11911 (*addsi3_cbranch): Ditto.
11912 (*addsi3_cbranch_scratch): Ditto.
11913 (*thumb_cmpdi_zero): Ditto.
11914 (cstoresi_eq0_thumb1): Ditto.
11915 (cstoresi_ne0_thumb1): Ditto.
11916 (*cstoresi_eq0_thumb1_insn): Ditto.
11917 (*cstoresi_ne0_thumb1_insn): Ditto.
11918 (cstoresi_nltu_thumb1): Ditto.
11919 (cstoresi_ltu_thumb1): Ditto.
11920 (thumb1_addsi3_addgeu): Ditto.
11921 (*thumb_jump): Ditto.
11922 (*call_reg_thumb1_v5): Ditto.
11923 (*call_reg_thumb1): Ditto.
11924 (*call_value_reg_thumb1_v5): Ditto.
11925 (*call_value_reg_thumb1): Ditto.
11926 (*call_insn): Ditto.
11927 (*call_value_insn): Ditto.
11928 (thumb1_casesi_internal_pic): Ditto.
11929 (thumb1_casesi_dispatch): Ditto.
11930 (*thumb1_indirect_jump): Ditto.
11931 (prologue_thumb1_interwork): Ditto.
11932 (*epilogue_insns): Ditto.
11933 (consttable_1): Ditto.
11934 (consttable_2): Ditto.
11935 (tablejump): Ditto.
11936 (*thumb1_tablejump): Ditto.
11937 (thumb_eh_return): Ditto.
11938 (define_peephole2): Two of them are thumb1 only and got moved into
11939 new file thumb1.md.
11940 (define_split): Six of them are thumb1 only and got moved into new
11942 * config/arm/thumb1.md: New file comprised of above thumb1 only
11945 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11947 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
11948 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
11950 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
11951 (aarch64_crc_builtin_datum): New struct.
11952 (aarch64_crc_builtin_data): New.
11953 (aarch64_init_crc32_builtins): New function.
11954 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
11955 (aarch64_crc32_expand_builtin): New.
11956 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
11957 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11958 __ARM_FEATURE_CRC32 when appropriate.
11959 (TARGET_CRC32): Define.
11960 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
11961 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
11962 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
11963 (aarch64_<crc_variant>): New pattern.
11964 * config/aarch64/arm_acle.h: New file.
11965 * config/aarch64/iterators.md (CRC): New int iterator.
11966 (crc_variant, crc_mode): New int attributes.
11967 * doc/aarch64-acle-intrinsics.texi: New file.
11968 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
11969 Include aarch64-acle-intrinsics.texi.
11971 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
11973 * tree-vect-data-refs.c (vect_grouped_store_supported): New
11974 check for stores group of length 3.
11975 (vect_permute_store_chain): New permutations for stores group of
11977 * tree-vect-stmts.c (vect_model_store_cost): Change cost
11978 of vec_perm_shuffle for the new permutations.
11980 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
11982 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
11983 table rewriting temporarily on targets not supporting ONE_ONLY.
11985 2014-06-11 Richard Biener <rguenther@suse.de>
11987 PR middle-end/61437
11989 2014-06-04 Richard Biener <rguenther@suse.de>
11991 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
11992 TREE_PUBLIC and DECL_EXTERNAL decls.
11994 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
11996 * varasm.c (set_implicit_section): New function.
11997 (resolve_unique_section): Use it to set implicit section
11999 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12000 (default_function_section): Likewise.
12001 (decl_binds_to_current_def_p): Constify argument.
12002 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12003 * asan.c (asan_protect_global): Use
12004 symtab_get_node (decl)->implicit_section.
12005 * symtab.c (dump_symtab_base): Dump implicit sections.
12006 (verify_symtab_base): Verify sanity of sectoins and comdats.
12007 (symtab_resolve_alias): Alias share the section of its target.
12008 (set_section_1): New function.
12009 (symtab_node::set_section): Move here, recurse to aliases.
12010 (verify_symtab): Check for duplicated symtab lists.
12011 * tree-core.h (implicit_section_name_p): Remove.
12012 * tree-vect-data-refs.c: Include varasm.h.
12013 (vect_can_force_dr_alignment_p): Fix conditional on when
12014 decl bints to current definition; use
12015 symtab_get_node (decl)->implicit_section.
12016 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12017 * cgraph.h (struct symtab_node): Add implicit_section.
12018 (set_section): Rename to ...
12019 (set_section_for_node): ... this one.
12020 (set_section): Declare.
12021 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12022 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12023 input_overwrite_node, input_varpool_node): Stream implicit_section.
12024 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12025 removal; it will fail in LTO.
12027 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12029 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12030 Change second alternative type to f_mcr.
12031 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12032 and 12th alternatives' types to f_mcr and f_mrc.
12033 (*movdi_aarch64): Same for 12th and 13th alternatives.
12034 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12035 (aarch64_movtilow_tilow): Change type to fmov.
12037 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12039 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12040 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12042 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12044 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12046 (aarch64_sqrdmulh_lane<mode>): Likewise.
12047 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12048 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12049 (aarch64_sqdmulh_laneq<mode>): New expander.
12050 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12051 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12052 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12053 (aarch64_sqdmulh_lane<mode>): New expander.
12054 (aarch64_sqrdmulh_lane<mode>): Likewise.
12055 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12056 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12057 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12058 (aarch64_sqdmlal_laneq<mode>): Likewise.
12059 (aarch64_sqdmlsl_lane<mode>): Likewise.
12060 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12061 (aarch64_sqdmlal2_lane<mode>): Likewise.
12062 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12063 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12064 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12065 (aarch64_sqdmull_lane<mode>): Likewise.
12066 (aarch64_sqdmull_laneq<mode>): Likewise.
12067 (aarch64_sqdmull2_lane<mode>): Likewise.
12068 (aarch64_sqdmull2_laneq<mode>): Likewise.
12070 2014-06-10 Richard Biener <rguenther@suse.de>
12072 PR tree-optimization/61438
12073 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12074 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12075 insertion of IVs if running PRE.
12076 (eliminate): Adjust.
12077 (pass_pre::execute): Likewise.
12078 (pass_fre::execute): Likewise.
12080 2014-06-10 Richard Biener <rguenther@suse.de>
12082 PR middle-end/61456
12083 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12084 Do not use the main variant for the type comparison.
12085 (ncr_compar): Likewise.
12086 (nonoverlapping_component_refs_p): Likewise.
12088 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12090 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12091 REG_CFA_RESTORE mode.
12093 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12095 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12096 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12097 expand_vec_perm_pblendv.
12099 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12101 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12103 Simplify description of __crc32d and __crc32cd intrinsics.
12104 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12107 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12110 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12111 * config.in: Regenerate.
12112 * configure: Likewise.
12114 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12116 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12118 (intersect_static_var_sets): Remove.
12119 (propagate): Do not prune local statics.
12121 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12124 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12125 Set lastprivate_firstprivate even if omp_private_outer_ref
12126 langhook returns true.
12127 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12128 langhook, call unshare_expr on new_var and call
12129 build_outer_var_ref to get the last argument.
12131 2014-06-10 Marek Polacek <polacek@redhat.com>
12134 * doc/extend.texi: Add cindex for transparent_union.
12136 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12138 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12139 init_symbolic_number ().
12141 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12143 PR middle-end/61141
12144 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12145 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12146 (verify_rtl_sharing): Likewise.
12148 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12151 * tree.c (build_qualified_type): Use a canonical type for
12154 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12156 * config/arm/arm-modes.def: Remove XFmode.
12158 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12161 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12162 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12163 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12164 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12165 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12166 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12167 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12168 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12169 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12171 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12173 * tree-core.h (tree_decl_with_vis): Remove section_name.
12175 2014-06-09 Kito Cheng <kito@0xlab.org>
12177 * ira.c (ira): Don't call init_caller_save if LRA enabled
12178 since LRA use its own infrastructure to handle that.
12180 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12182 * symtab.c (dump_symtab_base): Update dumping.
12183 (symtab_make_decl_local): Clear only DECL_COMDAT.
12184 * tree-vect-data-refs.c (Check that variable is static before
12185 tampering with sections.
12186 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12187 (cgraph_create_virtual_clone): Likewise.
12188 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12189 (decl_section_name, set_decl_section_name): New accessors.
12190 (find_decls_types_r): Do not walk section name
12191 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12192 (decl_comdat_group, decl_comdat_group_id): Constify.
12193 (decl_section_name, set_decl_section_name): Update.
12194 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12195 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12196 (cgraph_make_node_local_1): Clear section and comdat group.
12197 * cgraph.h (set_comdat_group): Sanity check.
12198 (get_section, set_section): New.
12199 * ipa-comdats.c (ipa_comdats): Use get_section.
12200 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12201 * lto-streamer-out.c: Do not follow section names.
12202 * c-family/c-common.c (handle_section_attribute): Update.
12203 * lto-cgraph.c (lto_output_node): Output section.
12204 (lto_output_varpool_node): Likewise.
12205 (read_comdat_group): Rename to ...
12206 (read_identifier): ... this one.
12207 (read_string_cst): New function.
12208 (input_node, input_varpool_node): Input section names.
12209 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12210 (new_emutls_decl): Update.
12211 (secname_for_decl): Check section names only of static vars.
12212 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12213 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12214 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12215 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12216 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12217 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12218 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12219 * config/v850/v850.c (v850_insert_attributes): Likewise.
12220 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12222 (h8300_handle_tiny_data_attribute): Likewise.
12223 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12224 (bfin_handle_l2_attribute): Likewise.
12226 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12228 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12229 remove static initializer.
12231 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12233 * varasm.c (use_blocks_for_decl_p): Check symbol table
12234 instead of alias attribute.
12235 (place_block_symbol): Recurse on aliases.
12237 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12239 * ipa-visibility.c: Include varasm.h
12240 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12242 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12244 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12245 outputting aliases.
12247 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
12249 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12250 from test_insn into GGC space escape via SET_SRC.
12252 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
12254 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12255 call statement, if any.
12256 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12257 statements, if any. Tidy up.
12259 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12262 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12263 iterators, VSX_D that handles 64-bit types, and VSX_LE that
12264 handles swapping the two 64-bit double words on little endian
12265 systems. Include V1TImode and optionally TImode in VSX_LE so that
12266 these types are properly swapped. Change all of the insns and
12267 splits that do the 64-bit swaps to use VSX_LE.
12268 (vsx_le_perm_load_<mode>): Likewise.
12269 (vsx_le_perm_store_<mode>): Likewise.
12270 (splitters for little endian memory operations): Likewise.
12271 (vsx_xxpermdi2_le_<mode>): Likewise.
12272 (vsx_lxvd2x2_le_<mode>): Likewise.
12273 (vsx_stxvd2x2_le_<mode>): Likewise.
12275 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
12278 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
12279 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
12280 and corresponding splitters. Zero extend general register
12281 or memory input operand to XMM temporary. Enable for
12282 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
12283 (floatunssi<mode>2): Update expander predicate.
12285 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
12287 PR rtl-optimization/61325
12288 * lra-constraints.c (process_address_1): Check scale equal to one
12289 to prevent transformation: base + scale * index => base + new_reg.
12291 2014-06-06 Richard Biener <rguenther@suse.de>
12293 PR tree-optimization/59299
12294 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
12296 (nearest_common_dominator_of_uses): Likewise.
12297 (statement_sink_location): Adjust. Support sinking loads.
12299 2014-06-06 Martin Jambor <mjambor@suse.cz>
12301 * ipa-prop.c (get_place_in_agg_contents_list): New function.
12302 (build_agg_jump_func_from_list): Likewise.
12303 (determine_known_aggregate_parts): Renamed to
12304 determine_locally_known_aggregate_parts. Moved some functionality
12305 to the two functions above, removed bound checks.
12307 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
12309 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
12310 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
12311 (aarch64_progress_pointer): Likewise.
12312 (aarch64_copy_one_part_and_move_pointers): Likewise.
12313 (aarch64_expand_movmen): Likewise.
12314 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
12315 * config/aarch64/aarch64.md (movmem<mode>): New.
12317 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
12319 * targhooks.c (default_add_stmt_cost): Call target specific
12320 hook instead of default one.
12322 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
12324 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
12325 endianness instead of host endianness.
12326 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
12329 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12332 * function.c (instantiate_decls): Process the saved static chain.
12333 (expand_function_start): If not optimizing, save the static chain
12335 * tree-nested.c (convert_all_function_calls): Always create the static
12336 chain for nested functions if not optimizing.
12338 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12340 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
12342 2014-06-06 Richard Biener <rguenther@suse.de>
12344 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
12345 (construct_init_block): Likewise.
12346 (construct_exit_block): Likewise.
12347 (pass_expand::execute): Likewise.
12348 * graphite.c (graphite_transforms): Replace check for current_loops
12349 with a check for > 1 loops.
12350 (pass_graphite_transforms::execute): Adjust.
12351 * ipa-split.c (split_function): Remove check for current_loops.
12352 * omp-low.c (expand_parallel_call): Likewise.
12353 (expand_omp_for_init_counts): Likewise.
12354 (extract_omp_for_update_vars): Likewise.
12355 (expand_omp_for_generic): Likewise.
12356 (expand_omp_sections): Likewise.
12357 (expand_omp_target): Likewise.
12358 * tracer.c (tail_duplicate): Likewise.
12359 (pass_tracer::execute): Likewise.
12360 * trans-mem.c (expand_transaction): Likewise.
12361 * tree-complex.c (expand_complex_div_wide): Likewise.
12362 * tree-eh.c (lower_resx): Likewise.
12363 (cleanup_empty_eh_merge_phis): Likewise.
12364 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
12365 current_loops with a check for > 1 loops.
12366 (pass_predcom::execute): Adjust.
12367 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
12368 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
12369 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
12370 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
12371 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12372 * tree-switch-conversion.c (process_switch): Likewise.
12373 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
12374 * tree-vrp.c (vrp_visit_phi_node): Likewise.
12375 (execute_vrp): Likewise.
12376 * ubsan.c (ubsan_expand_null_ifn): Likewise.
12378 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12380 * rtl.h (insn_location): Declare.
12381 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
12382 with UNKNOWN_LOCATION.
12383 * emit-rtl.c (insn_location): New function.
12384 * final.c (notice_source_line): Check that the instruction has a
12385 location before retrieving it and use insn_location.
12386 * modulo-sched.c (loop_single_full_bb_p): Likewise.
12387 * print-rtl.c (print_rtx): Likewise.
12389 2014-06-06 Richard Biener <rguenther@suse.de>
12391 * passes.def: Move 2nd VRP pass before phi-only-cprop.
12393 2014-06-06 Christian Bruel <christian.bruel@st.com>
12395 PR tree-optimization/43934
12396 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
12399 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
12401 * ira-lives.c (single_reg_class): Add missing break. Explicitly
12402 return NO_REGS for extra address and memory constraints. Handle
12403 operands that match (or are equivalent to something that matches)
12404 extra constant constraints. Ignore other non-register operands.
12406 2014-06-06 Alan Modra <amodra@gmail.com>
12409 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
12410 * doc/tm.texi: Regenerate.
12411 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
12412 Use throughout in place of REG_PARM_STACK_SPACE.
12413 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
12414 "incoming" param. Pass to rs6000_function_parms_need_stack.
12415 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
12416 prototype_p when incoming. Use function decl when incoming
12417 to handle K&R style functions.
12418 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
12419 (INCOMING_REG_PARM_STACK_SPACE): Define.
12421 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12424 * cfgexpand.c (expand_debug_expr): Use address space of nested
12425 TREE_TYPE for ADDR_EXPR and MEM_REF.
12427 2014-06-05 Jeff Law <law@redhat.com>
12429 PR tree-optimization/61289
12430 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
12431 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
12432 looking for those which match LHS. All callers changed.
12433 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
12434 parameters and code which manipulated them. All callers changed.
12435 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
12436 and DST_MAP parameters. Simplify invalidation code by just calling
12437 invalidate_equivalences. All callers changed.
12438 (thread_across_edge): Simplify now that we don't need to maintain
12439 the map of equivalences to invalidate.
12441 2014-06-05 Kai Tietz <ktietz@redhat.com>
12442 Richard Henderson <rth@redhat.com>
12445 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
12446 checking for !TARGET_X32.
12447 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
12448 (sibcall_intern): New define_insn, plus required peepholes.
12449 (sibcall_pop_intern): Likewise.
12450 (sibcall_value_intern): Likewise.
12451 (sibcall_value_pop_intern): Likewise.
12453 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
12455 * tree-inline.c (tree_function_versioning): Check DF info existence
12456 before accessing it.
12458 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12460 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
12462 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
12463 aarch64_frame hard_fp_offset and frame_size.
12464 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
12465 frame_size; remove original_frame_size.
12466 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
12467 (aarch64_initial_elimination_offset): Remove frame_size and
12468 offset. Use aarch64_frame frame_size.
12470 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12471 Jiong Wang <jiong.wang@arm.com>
12472 Renlin <renlin.li@arm.com>
12474 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
12475 initialization of R30 offset. Update offset. Iterate core
12476 regisers upto X30. Remove X29, X30 specific code.
12478 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12479 Jiong Wang <jiong.wang@arm.com>
12481 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
12482 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
12483 (aarch64_register_saved_on_entry): Adjust test.
12485 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12487 * config/aarch64/aarch64.h (machine_function): Move
12488 saved_varargs_size from here...
12489 (aarch64_frame): ... to here.
12491 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12492 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
12493 (aarch64_initial_elimination_offset)
12494 (aarch64_setup_incoming_varargs): Adjust location of
12495 saved_varargs_size.
12497 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12499 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
12502 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
12503 Prachi Godbole <Prachi.Godbole@imgtec.com>
12505 * config/mips/mips-cpus.def: Add definition for p5600. Updated
12506 mips32r5 entry to use PROCESSOR_P5600.
12507 * config/mips/mips-tables.opt: Regenerate.
12508 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
12509 * config/mips/mips.c (mips_fmadd_bypass): New function.
12510 (mips_rtx_cost_data): Add costs for p5600.
12511 (mips_issue_rate): Add support for p5600.
12512 (mips_multipass_dfa_lookahead): Likewise.
12513 * config/mips/mips.h (TUNE_P5600): New define.
12514 (TUNE_MACC_CHAINS): Add TUNE_P5600.
12515 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
12516 * config/mips/mips.md: Include p5600.md.
12517 (processor): Add p5600.
12518 * config/mips/p5600.md: New file.
12520 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
12522 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
12523 * config/i386/predicates.md (palignr_operand): New.
12524 Indicates if permutation is suitable for palignr instruction.
12526 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
12528 PR tree-optimization/61319
12529 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
12530 stmt belongs to loop.
12532 2014-06-05 Richard Biener <rguenther@suse.de>
12534 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
12535 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
12536 (lookup_tmp_var): Adjust.
12537 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
12539 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12541 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
12543 2014-06-05 Marek Polacek <polacek@redhat.com>
12546 * doc/invoke.texi: Document -Wlogical-not-parentheses.
12548 2014-06-04 Tom de Vries <tom@codesourcery.com>
12550 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
12553 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
12555 PR tree-optimization/61385
12556 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
12558 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
12560 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
12561 changed to use fatal_error.
12562 (main): Ensure lto_wrapper_cleanup is run atexit.
12564 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12566 * lra-constraints.c (valid_address_p): Move earlier in file.
12567 (address_eliminator): New structure.
12568 (satisfies_memory_constraint_p): New function.
12569 (satisfies_address_constraint_p): Likewise.
12570 (process_alt_operands, process_address, curr_insn_transform): Use them.
12572 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12574 * lra-int.h (lra_static_insn_data): Make operand_alternative a
12576 (target_lra_int, default_target_lra_int, this_target_lra_int)
12577 (op_alt_data): Delete.
12578 * lra.h (lra_init): Delete.
12579 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
12580 (init_insn_code_data_once): Remove op_alt_data handling.
12581 (finish_insn_code_data_once): Likewise.
12582 (init_op_alt_data): Delete.
12583 (get_static_insn_data): Initialize operand_alternative to null.
12584 (free_insn_recog_data): Cast operand_alternative before freeing it.
12585 (setup_operand_alternative): Take the operand_alternative as
12586 parameter and assume it isn't already cached in the static
12588 (lra_set_insn_recog_data): Update accordingly.
12589 (lra_init): Delete.
12590 * ira.c (ira_init): Don't call lra_init.
12591 * target-globals.h (this_target_lra_int): Declare.
12592 (target_globals): Remove lra_int.
12593 (restore_target_globals): Update accordingly.
12594 * target-globals.c: Don't include lra-int.h.
12595 (default_target_globals, save_target_globals): Remove lra_int.
12597 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12599 * recog.h (operand_alternative): Convert reg_class, reject,
12600 matched and matches into bitfields.
12601 (preprocess_constraints): New overload.
12602 (preprocess_insn_constraints): New function.
12603 (preprocess_constraints): Take the insn as parameter.
12604 (recog_op_alt): Change into a pointer.
12605 (target_recog): Add x_op_alt.
12606 * recog.c (asm_op_alt): New variable.
12607 (recog_op_alt): Change into a pointer.
12608 (preprocess_constraints): New overload, replacing the old function
12609 definition with one that doesn't use global state.
12610 (preprocess_insn_constraints): New function.
12611 (preprocess_constraints): Use them. Take the insn as parameter.
12612 Use asm_op_alt for asms.
12613 (recog_init): Free existing x_op_alt entries.
12614 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
12616 (make_early_clobber_and_input_conflicts): Likewise.
12617 (process_bb_node_lives): Pass the insn to process_constraints.
12618 * reg-stack.c (check_asm_stack_operands): Likewise.
12619 (subst_asm_stack_regs): Likewise.
12620 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
12621 * regrename.c (build_def_use): Likewise.
12622 * sched-deps.c (sched_analyze_insn): Likewise.
12623 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
12624 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
12625 (note_invalid_constants): Likewise.
12626 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12627 (ix86_legitimate_combined_insn): Make operand_alternative pointer
12630 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12632 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
12633 * ira-lives.c (check_and_make_def_conflict): Check for disabled
12635 (make_early_clobber_and_input_conflicts): Likewise.
12636 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12638 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12640 * recog.h (alternative_class): New function.
12641 (which_op_alt): Return a const recog_op_alt.
12642 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
12643 (subst_asm_stack_regs): Likewise.
12644 * config/arm/arm.c (note_invalid_constants): Likewise.
12645 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
12646 the operand_alternative; use alternative class instead.
12647 * sel-sched.c (get_reg_class): Likewise.
12648 * regrename.c (build_def_use): Likewise.
12649 (hide_operands, restore_operands, record_out_operands): Update type
12652 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12654 * recog.h (recog_op_alt): Convert to a flat array.
12655 (which_op_alt): New function.
12656 * recog.c (recog_op_alt): Convert to a flat array.
12657 (preprocess_constraints): Update accordingly, grouping all
12658 operands of the same alternative together, rather than the
12660 * ira-lives.c (check_and_make_def_conflict): Likewise.
12661 (make_early_clobber_and_input_conflicts): Likewise.
12662 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12663 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
12664 (subst_asm_stack_regs): Likewise.
12665 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
12666 * regrename.c (hide_operands, record_out_operands): Likewise.
12667 (build_def_use): Likewise.
12668 * sel-sched.c (get_reg_class): Likewise.
12669 * config/arm/arm.c (note_invalid_constants): Likewise.
12671 2014-06-04 Jason Merrill <jason@redhat.com>
12675 * gimplify.c (gimplify_arg): Non-static.
12676 * gimplify.h: Declare it.
12678 2014-06-04 Richard Biener <rguenther@suse.de>
12680 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12681 TREE_PUBLIC and DECL_EXTERNAL decls.
12683 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
12685 * regcprop.c (copyprop_hardreg_forward_1): Account for
12686 HARD_REGNO_CALL_PART_CLOBBERED.
12688 2014-06-04 Richard Biener <rguenther@suse.de>
12690 * configure.ac: Check whether the underlying type of int64_t
12691 is long or long long.
12692 * configure: Regenerate.
12693 * config.in: Likewise.
12694 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
12695 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
12697 2014-06-04 Richard Biener <rguenther@suse.de>
12699 PR tree-optimization/60098
12700 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
12702 (dse_optimize_stmt): Simplify, now that we found a kill
12705 2014-06-04 Richard Biener <rguenther@suse.de>
12707 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
12708 of accesses with non-invariant address.
12710 2014-06-04 Martin Liska <mliska@suse.cz>
12712 * cgraph.h (cgraph_make_wrapper): New function introduced.
12713 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
12714 * ipa-inline.h (inline_analyze_function): The function is global.
12715 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
12717 2014-06-04 Martin Liska <mliska@suse.cz>
12719 * tree.h (private_lookup_attribute_starting): New function.
12720 (lookup_attribute_starting): Likewise.
12721 * tree.c (private_lookup_attribute_starting): Likewise.
12723 2014-06-04 Martin Liska <mliska@suse.cz>
12725 * cgraph.h (expand_thunk): New argument added.
12726 (address_taken_from_non_vtable_p): New global function.
12727 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
12728 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
12729 * cgraphunit.c (analyze_function): Likewise.
12730 (assemble_thunks_and_aliases): Argument added to call.
12731 (expand_thunk): New argument forces to produce GIMPLE thunk.
12733 2014-06-04 Martin Liska <mliska@suse.cz>
12735 * coverage.h (coverage_compute_cfg_checksum): Argument added.
12736 * coverage.c (coverage_compute_cfg_checksum): Likewise.
12737 * profile.c (branch_prob): Likewise.
12739 2014-06-04 Martin Jambor <mjambor@suse.cz>
12742 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
12743 handler for switch on an ipa_ref_use enum.
12744 * ipa-reference.c (analyze_function): Likewise.
12746 2014-06-04 Kai Tietz <ktietz@redhat.com>
12748 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
12749 from old call-instruction.
12751 2014-06-04 Bin Cheng <bin.cheng@arm.com>
12753 * config/aarch64/aarch64.c (aarch64_classify_address)
12754 (aarch64_legitimize_reload_address): Support full addressing modes
12756 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
12757 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
12759 2014-06-03 Andrew Pinski <apinski@cavium.com>
12761 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
12764 2014-06-03 Andrew Pinski <apinski@cavium.com>
12766 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
12767 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
12769 2014-06-03 Kai Tietz <ktietz@redhat.com>
12771 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
12774 2014-06-03 Dehao Chen <dehao@google.com>
12776 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
12779 2014-06-03 Marek Polacek <polacek@redhat.com>
12782 * doc/invoke.texi: Document -Wswitch-bool.
12783 * function.c (stack_protect_epilogue): Cast controlling expression of
12785 * gengtype.c (walk_type): Generate switch expression with its
12786 controlling expression cast to int.
12788 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
12790 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
12792 * config/avr/avr-tables.opt: Regenerate.
12793 * config/avr/t-multilib: Regenerate.
12794 * doc/avr-mmcu.texi: Regenerate.
12796 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
12797 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12799 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
12800 (ata6617c, ata664251): Add new avr35 devices.
12801 (ata6612c): Add new avr4 device.
12802 (ata6613c, ata6614q): Add new avr5 devices.
12803 * config/avr/avr-tables.opt: Regenerate.
12804 * config/avr/t-multilib: Regenerate.
12805 * doc/avr-mmcu.texi: Regenerate.
12807 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12809 * gcc/config/aarch64/aarch64-builtins.c
12810 (aarch64_types_binop_ssu_qualifiers): New static data.
12811 (TYPES_BINOP_SSU): Define.
12812 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
12813 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
12814 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
12815 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
12816 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
12817 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
12818 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
12819 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
12820 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
12821 suffix to builtin function name, remove cast.
12822 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
12823 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
12824 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
12826 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12828 * gcc/config/aarch64/aarch64-builtins.c
12829 (aarch64_types_binop_uus_qualifiers,
12830 aarch64_types_shift_to_unsigned_qualifiers,
12831 aarch64_types_unsigned_shiftacc_qualifiers): Define.
12832 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
12833 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
12834 sqshlu_n, uqshl_n): Update qualifiers.
12835 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
12836 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
12837 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
12838 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
12839 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
12840 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
12841 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
12842 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
12843 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
12844 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
12845 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
12846 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
12847 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
12848 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
12849 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
12850 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
12851 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
12852 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
12853 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
12854 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
12855 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
12856 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
12857 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
12858 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
12859 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
12860 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
12861 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
12863 2014-06-03 Teresa Johnson <tejohnson@google.com>
12865 * tree-sra.c (modify_function): Record caller nodes after rebuild.
12867 2014-06-02 Jason Merrill <jason@redhat.com>
12870 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
12872 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12874 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
12877 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12879 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
12881 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
12882 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
12883 * config/aarch64/iterators.md (REVERSE): New iterator.
12884 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
12885 (rev_op): New int_attribute.
12886 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
12887 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
12888 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
12889 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
12890 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
12891 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
12892 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
12893 Replace temporary __asm__ with __builtin_shuffle.
12895 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
12897 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
12899 * config/mips/mips-tables.opt: Regenerate.
12900 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
12901 to use mips_isa_rev rather than ISA_MIPS32R2.
12902 * config/mips/mips.h (ISA_MIPS32R3): New define.
12903 (ISA_MIPS32R5): New define.
12904 (ISA_MIPS64R3): New define.
12905 (ISA_MIPS64R5): New define.
12906 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
12907 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
12908 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
12910 (MIPS_ISA_SYNCI_SPEC): Likewise.
12911 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
12912 (LINK_SPEC): Added mips32r3 and mips32r5.
12913 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
12914 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
12915 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
12916 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
12917 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
12918 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
12919 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
12921 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
12923 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
12925 * config/mips/mips.opt (mxpa): New option.
12926 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
12929 2014-06-03 Martin Jambor <mjambor@suse.cz>
12932 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
12935 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
12937 PR tree-optimization/61328
12938 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
12939 initialization from find_bswap_or_nop_1.
12940 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
12941 in source_expr2 before using the size value the function sets. Also
12942 make use of init_symbolic_number () in both the old place and
12943 find_bswap_or_nop_load () to avoid reading uninitialized memory when
12944 doing recursion in the GIMPLE_BINARY_RHS case.
12946 2014-06-03 Richard Biener <rguenther@suse.de>
12948 PR tree-optimization/61383
12949 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
12952 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
12954 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
12955 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
12956 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
12957 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
12959 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
12960 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
12961 * system.h: ...here and make it unconditional.
12962 * target.def (conditional_register_usage): Mention
12963 define_register_constraint instead of old-style constraint macros.
12964 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
12965 * doc/tm.texi: Regenerate.
12966 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
12967 protected by !USE_MD_CONSTRAINTS.
12968 * config/frv/frv.md: Remove quote from old version of documentation.
12969 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
12970 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
12971 CONST_DOUBLE_OK_FOR_LETTER.
12972 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
12974 2014-06-02 Andrew Pinski <apinski@cavium.com>
12976 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
12977 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
12978 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
12979 file whose name depends on -mabi= and -mbig-endian.
12980 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
12981 Handle LP64 better and handle ilp32 too.
12982 (MULTILIB_OPTIONS): Delete.
12983 (MULTILIB_DIRNAMES): Delete.
12985 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
12987 * expr.h: Remove prototypes of functions defined in builtins.c.
12988 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
12989 Remove prototypes of functions defined in builtins.c.
12990 * builtins.h: Update prototype list to include all exported functions.
12991 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
12992 no_c99_libc_has_function): Move to targhooks.c
12993 (build_string_literal, build_call_expr_loc_array,
12994 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
12996 (expand_builtin_object_size, fold_builtin_object_size): Make static.
12997 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
12998 no_c99_libc_has_function): Relocate from builtins.c.
12999 * tree.c: Include builtins.h.
13000 (build_call_expr_loc_array, build_call_expr_loc_vec,
13001 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13003 * fold-const.h (fold_fma): Move prototype to builtins.h.
13004 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13005 * asan.c: Include builtins.h.
13006 * cfgexpand.c: Likewise.
13007 * convert.c: Likewise.
13008 * emit-rtl.c: Likewise.
13009 * except.c: Likewise.
13010 * expr.c: Likewise.
13011 * fold-const.c: Likewise.
13012 * gimple-fold.c: Likewise.
13013 * gimple-ssa-strength-reduction.c: Likewise.
13014 * gimplify.c: Likewise.
13015 * ipa-inline.c: Likewise.
13016 * ipa-prop.c: Likewise.
13017 * lto-streamer-out.c: Likewise.
13018 * stmt.c: Likewise.
13019 * tree-inline.c: Likewise.
13020 * tree-object-size.c: Likewise.
13021 * tree-sra.c: Likewise.
13022 * tree-ssa-ccp.c: Likewise.
13023 * tree-ssa-forwprop.c: Likewise.
13024 * tree-ssa-loop-ivcanon.c: Likewise.
13025 * tree-ssa-loop-ivopts.c: Likewise.
13026 * tree-ssa-math-opts.c: Likewise.
13027 * tree-ssa-reassoc.c: Likewise.
13028 * tree-ssa-threadedge.c: Likewise.
13029 * tree-streamer-in.c: Likewise.
13030 * tree-vect-data-refs.c: Likewise.
13031 * tree-vect-patterns.c: Likewise.
13032 * tree-vect-stmts.c: Likewise.
13033 * config/aarch64/aarch64.c: Likewise.
13034 * config/alpha/alpha.c: Likewise.
13035 * config/arc/arc.c: Likewise.
13036 * config/arm/arm.c: Likewise.
13037 * config/avr/avr.c: Likewise.
13038 * config/bfin/bfin.c: Likewise.
13039 * config/c6x/c6x.c: Likewise.
13040 * config/cr16/cr16.c: Likewise.
13041 * config/cris/cris.c: Likewise.
13042 * config/epiphany/epiphany.c: Likewise.
13043 * config/fr30/fr30.c: Likewise.
13044 * config/frv/frv.c: Likewise.
13045 * config/h8300/h8300.c: Likewise.
13046 * config/i386/i386.c: Likewise.
13047 * config/i386/winnt.c: Likewise.
13048 * config/ia64/ia64.c: Likewise.
13049 * config/iq2000/iq2000.c: Likewise.
13050 * config/lm32/lm32.c: Likewise.
13051 * config/m32c/m32c.c: Likewise.
13052 * config/m32r/m32r.c: Likewise.
13053 * config/m68k/m68k.c: Likewise.
13054 * config/mcore/mcore.c: Likewise.
13055 * config/mep/mep.c: Likewise.
13056 * config/microblaze/microblaze.c: Likewise.
13057 * config/mips/mips.c: Likewise.
13058 * config/mmix/mmix.c: Likewise.
13059 * config/mn10300/mn10300.c: Likewise.
13060 * config/moxie/moxie.c: Likewise.
13061 * config/msp430/msp430.c: Likewise.
13062 * config/nds32/nds32.c: Likewise.
13063 * config/pa/pa.c: Likewise.
13064 * config/pdp11/pdp11.c: Likewise.
13065 * config/picochip/picochip.c: Likewise.
13066 * config/rl78/rl78.c: Likewise.
13067 * config/rs6000/rs6000.c: Likewise.
13068 * config/rx/rx.c: Likewise.
13069 * config/s390/s390.c: Likewise.
13070 * config/score/score.c: Likewise.
13071 * config/sh/sh.c: Likewise.
13072 * config/sparc/sparc.c: Likewise.
13073 * config/spu/spu.c: Likewise.
13074 * config/stormy16/stormy16.c: Likewise.
13075 * config/tilegx/tilegx.c: Likewise.
13076 * config/tilepro/tilepro.c: Likewise.
13077 * config/v850/v850.c: Likewise.
13078 * config/vax/vax.c: Likewise.
13079 * config/xtensa/xtensa.c: Likewise.
13081 2014-06-02 Jeff Law <law@redhat.com>
13083 PR rtl-optimization/61094
13084 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13085 was marked as do_no_reextend. If a copy is needed to eliminate
13086 an extension, then mark it as do_not_reextend.
13088 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13090 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13092 2014-06-02 Richard Henderson <rth@redhat.com>
13095 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13096 addresses inside asms. Use output_operand_lossage instead of
13099 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13102 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13103 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13105 2014-06-02 Tom de Vries <tom@codesourcery.com>
13107 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13108 case that x has VOIDmode.
13110 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13112 * varasm.c (copy_constant): Delete function.
13113 (build_constant_desc): Don't call it.
13115 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13118 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13119 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13120 with immediate_operand.
13122 2014-06-02 Andreas Schwab <schwab@suse.de>
13124 * config/ia64/ia64.c
13125 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13126 pending_data_specs first.
13128 2014-06-02 Richard Biener <rguenther@suse.de>
13130 PR tree-optimization/61378
13131 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13132 valueized_anything.
13134 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13136 * config/i386/constraints.md (Bw): Rename from 'w'.
13137 (Bz): Rename from 'z'.
13138 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13140 2014-06-01 Kai Tietz <ktietz@redhat.com>
13143 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13144 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13145 instead of m constraint.
13147 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13149 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13150 a separate alternative where the scratch operand 2 is marked as
13153 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13155 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13156 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13157 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13158 and __builtins_arm_get_fpscr.
13159 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13160 __builtins_arm_get_fpscr.
13161 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13162 __builtins_arm_ldfpscr.
13163 (arm_atomic_assign_expand_fenv): New function.
13164 * config/arm/vfp.md (set_fpscr): New pattern.
13165 (get_fpscr) : Likewise.
13166 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13168 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13169 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13171 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13173 * asan.c (report_error_func): Add SLOW_P argument, use
13174 BUILT_IN_ASAN_*_N if set.
13175 (build_check_stmt): Likewise.
13176 (instrument_derefs): If T has insufficient alignment,
13177 force same handling as for odd sizes.
13179 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13180 BUILT_IN_ASAN_REPORT_STORE_N): New.
13181 * asan.c (struct asan_mem_ref): Change access_size type to
13183 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13184 update_mem_ref_hash_table): Likewise.
13185 (asan_mem_ref_hasher::hash): Hash in a HWI.
13186 (report_error_func): Change size_in_bytes argument to HWI.
13187 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13189 (build_shadow_mem_access): New function.
13190 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13191 Handle size_in_bytes not power of two or larger than 16.
13192 (instrument_derefs): Don't give up if size_in_bytes is not
13193 power of two or is larger than 16.
13195 2014-05-30 Kai Tietz <ktietz@redhat.com>
13198 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13199 for sibling-tail-calls.
13200 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13202 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13203 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13205 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13207 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13208 * config/avr/avr-tables.opt: Regenerate.
13209 * config/avr/t-multilib: Regenerate.
13210 * doc/avr-mmcu.texi: Regenerate.
13212 2014-05-30 Ian Lance Taylor <iant@google.com>
13214 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13217 2014-05-30 Tom de Vries <tom@codesourcery.com>
13219 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13222 2014-05-30 Tom de Vries <tom@codesourcery.com>
13224 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13225 * lra.c (initialize_lra_reg_info_element): Add init of
13226 actual_call_used_reg_set field.
13227 (lra): Call lra_create_live_ranges before lra_inheritance for
13229 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13231 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13232 instead of call_used_reg_set for -fuse-caller-save.
13233 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13235 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13237 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13239 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13241 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13243 * ira.c (ira_get_dup_out_num): Check for output operands at
13244 the start of the loop. Handle cases where an included alternative
13245 follows an excluded one.
13247 2014-05-29 Mike Stump <mikestump@comcast.net>
13250 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13251 post ld passes when lto is used.
13253 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
13255 PR rtl-optimization/61325
13256 * lra-constraints.c (process_address): Rename to process_address_1.
13257 (process_address): New function.
13259 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
13261 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13262 TYPES_BINOPV): New static data.
13263 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13265 * config/aarch64/aarch64-simd.md (aarch64_ext,
13266 aarch64_im_lane_boundsi): New patterns.
13267 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13269 (aarch64_evpc_ext): New function.
13271 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
13273 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
13274 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
13275 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
13276 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
13277 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
13279 2014-05-29 Tom de Vries <tom@codesourcery.com>
13281 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
13283 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
13284 Richard Sandiford <rdsandiford@googlemail.com>
13286 * arm/iterators.md (shiftable_ops): New code iterator.
13287 (t2_binop0, arith_shift_insn): New code attributes.
13288 * arm/predicates.md (shift_nomul_operator): New predicate.
13289 * arm/arm.md (insn_enabled): Delete.
13290 (enabled): Remove insn_enabled test.
13291 (*arith_shiftsi): Delete. Replace with ...
13292 (*<arith_shift_insn>_multsi): ... new pattern.
13293 (*<arith_shift_insn>_shiftsi): ... new pattern.
13294 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
13296 2014-05-29 Radovan Obradovic <robradovic@mips.com>
13297 Tom de Vries <tom@codesourcery.com>
13299 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
13300 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
13302 (mips_split_call): Use POST_CALL_TMP_REG.
13303 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
13305 2014-05-29 Tom de Vries <tom@codesourcery.com>
13307 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
13308 with #ifdef STACK_REGS.
13310 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
13312 * varasm.c (get_variable_section): Walk aliases.
13313 (place_block_symbol): Walk aliases.
13315 2014-05-28 Tom de Vries <tom@codesourcery.com>
13318 2014-05-28 Tom de Vries <tom@codesourcery.com>
13320 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13321 * lra.c (initialize_lra_reg_info_element): Add init of
13322 actual_call_used_reg_set field.
13323 (lra): Call lra_create_live_ranges before lra_inheritance for
13325 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13327 * lra-constraints.c (need_for_call_save_p): Use
13328 actual_call_used_reg_set instead of call_used_reg_set for
13330 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13332 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13334 * doc/md.texi: Document that the % constraint character must
13335 be at the beginning of the string.
13336 * genoutput.c (validate_insn_alternatives): Check that '=',
13337 '+' and '%' only appear at the beginning of a constraint.
13338 * ira.c (commutative_constraint_p): Delete.
13339 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
13340 at the start of the string.
13341 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
13343 * config/arm/neon.md (bicdi3_neon): Likewise.
13344 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
13345 (slt_si, sltu_si): Likewise.
13346 * config/vax/vax.md (sbcdi3): Likewise.
13347 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
13348 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
13349 (mul64): Move '%' to beginning of constraint.
13350 * config/arm/arm.md (*xordi3_insn): Likewise.
13351 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
13352 (xorsi3): Likewise.
13354 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13356 * doc/md.texi: Document the restrictions on the "enabled" attribute.
13358 2014-05-28 Jason Merrill <jason@redhat.com>
13361 * cgraph.h (symtab_node::get_comdat_group_id): New.
13362 * cgraphunit.c (analyze_functions): Call it.
13363 * symtab.c (dump_symtab_node): Likewise.
13364 * tree.c (decl_comdat_group_id): New.
13365 * tree.h: Declare it.
13366 * lto-streamer-out.c (write_symbol): Use it.
13367 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
13369 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13371 PR bootstrap/PR61146
13372 * wide-int.cc: Do not include longlong.h when compiling with clang.
13374 2014-05-28 Richard Biener <rguenther@suse.de>
13376 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
13377 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
13378 (vrp_visit_assignment_or_call): Print less vertical space.
13379 (vrp_visit_stmt): Likewise.
13380 (vrp_visit_phi_node): Likewise. For a PHI argument with
13381 VR_VARYING range consider recording it as copy.
13383 2014-05-28 Richard Biener <rguenther@suse.de>
13386 2014-05-28 Richard Biener <rguenther@suse.de>
13388 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13390 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13392 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
13393 sufficiently aligned and an offset is used at the same time.
13394 (expand_expr_real_1): Likewise.
13396 2014-05-28 Richard Biener <rguenther@suse.de>
13398 PR middle-end/61045
13399 * fold-const.c (fold_comparison): When folding
13400 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
13401 the sign of the remaining constant operand stays the same.
13403 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
13405 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13406 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
13407 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
13409 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
13410 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
13411 (m32bit-doubles) Likewise.
13412 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
13413 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
13416 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13418 * configure.ac ($gcc_cv_ld_clearcap): New test.
13419 * configure: Regenerate.
13420 * config.in: Regenerate.
13421 * config/sol2.opt (mclear-hwcap): New option.
13422 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
13423 * config/sol2-clearcap.map: Moved here from
13424 testsuite/gcc.target/i386/clearcap.map.
13425 * config/sol2-clearcapv2.map: Move here from
13426 gcc.target/i386/clearcapv2.map.
13427 * config/t-sol2 (install): Depend on install-clearcap-map.
13428 (install-clearcap-map): New target.
13429 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
13432 2014-05-28 Richard Biener <rguenther@suse.de>
13434 * hwint.h (*_HALF_WIDE_INT*): Move to ...
13435 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
13436 ... here and remove the rest.
13437 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13439 2014-05-28 Richard Biener <rguenther@suse.de>
13441 PR tree-optimization/61335
13442 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
13443 new range fails, drop to varying.
13445 2014-05-28 Olivier Hainque <hainque@adacore.com>
13447 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
13448 (CPP_SPEC): Add entry for -mcpu=8548.
13449 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
13450 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
13452 2014-05-28 Tom de Vries <tom@codesourcery.com>
13454 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13455 * lra.c (initialize_lra_reg_info_element): Add init of
13456 actual_call_used_reg_set field.
13457 (lra): Call lra_create_live_ranges before lra_inheritance for
13459 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13461 * lra-constraints.c (need_for_call_save_p): Use
13462 actual_call_used_reg_set instead of call_used_reg_set for
13464 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13466 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13467 Tom de Vries <tom@codesourcery.com>
13469 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
13471 (@item -fuse-caller-save): New item.
13473 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13474 Tom de Vries <tom@codesourcery.com>
13476 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
13477 OPT_fuse_caller_save.
13479 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13480 Tom de Vries <tom@codesourcery.com>
13482 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
13483 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
13484 get_call_reg_set_usage.
13485 * resource.c (mark_set_resources, mark_target_live_regs): Use
13486 get_call_reg_set_usage.
13487 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
13489 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
13490 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
13491 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13492 * ira-build.c (ira_create_allocno): Init
13493 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13494 (create_cap_allocno, propagate_allocno_info)
13495 (propagate_some_info_from_allocno)
13496 (copy_info_to_removed_store_destinations): Handle
13497 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13498 * ira-costs.c (ira_tune_allocno_costs): Use
13499 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
13501 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13502 Tom de Vries <tom@codesourcery.com>
13504 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
13505 and function_used_regs_valid fields.
13506 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
13507 find_all_hard_reg_sets.
13508 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
13509 (get_call_reg_set_usage): New function.
13510 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
13511 * regs.h (get_call_reg_set_usage): Declare.
13513 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13516 * config/dbx.h (License): Add Runtime Library Exception.
13517 * config/newlib-stdint.h (License): Same.
13518 * config/rtems.h (License): Same
13519 * config/initfini-array.h (License): Same
13520 * config/v850/v850.h (License): Same.
13521 * config/v850/v850-opts.h (License): Same
13522 * config/v850/rtems.h (License): Same.
13524 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13527 * doc/extend.texi (Local Labels): Note that label differences are
13528 not supported for AVR.
13530 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13531 Olivier Hainque <hainque@adacore.com>
13533 * rtl.h (set_for_reg_notes): Declare.
13534 * emit-rtl.c (set_for_reg_notes): New function.
13535 (set_unique_reg_note): Use it.
13536 * optabs.c (add_equal_note): Likewise
13538 2014-05-27 Andrew Pinski <apinski@cavium.com>
13540 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
13541 Use <w> for the register in assembly template.
13542 (stack_protect_test): Use the mode of operands[0] for the result.
13543 (stack_protect_test_<mode>): Use <w> for the register
13544 in assembly template.
13546 2014-05-27 DJ Delorie <dj@redhat.com>
13548 * config/rx/rx.c (add_vector_labels): New.
13549 (rx_output_function_prologue): Call it.
13550 (rx_handle_func_attribute): Don't require empty arguments.
13551 (rx_handle_vector_attribute): New.
13552 (rx_attribute_table): Add "vector" attribute.
13553 * doc/extend.texi (interrupt, vector): Document new/changed
13554 RX-specific attributes.
13556 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
13558 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13560 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
13561 predicate to detect a negative quotient.
13563 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13565 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
13566 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
13567 Add X - Y CMP 0 to X CMP Y transformation.
13568 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
13570 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
13572 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
13575 2014-05-27 Steve Ellcey <sellcey@mips.com>
13577 * config/mips/mips.c: Add include of cgraph.h.
13579 2014-05-27 Richard Biener <rguenther@suse.de>
13581 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
13583 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
13586 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
13587 * config/arm/arm-cores.def (License): Same.
13588 * config/arm/arm-opts.h (License): Same.
13589 * config/arm/aout.h (License): Same.
13590 * config/arm/bpabi.h (License): Same.
13591 * config/arm/elf.h (License): Same.
13592 * config/arm/linux-elf.h (License): Same.
13593 * config/arm/linux-gas.h (License): Same.
13594 * config/arm/netbsd-elf.h (License): Same.
13595 * config/arm/uclinux-eabi.h (License): Same.
13596 * config/arm/uclinux-elf.h (License): Same.
13597 * config/arm/vxworks.h (License): Same.
13599 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13601 * config/arm/neon.md (neon_bswap<mode>): New pattern.
13602 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
13603 (arm_init_neon_builtins): Handle NEON_BSWAP.
13604 Define required type nodes.
13605 (arm_expand_neon_builtin): Handle NEON_BSWAP.
13606 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
13607 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
13608 * config/arm/iterators.md (VDQHSD): New mode iterator.
13610 2014-05-27 Richard Biener <rguenther@suse.de>
13612 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
13613 Try using literal operands when comparing value-ranges failed.
13615 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13617 * ira.c (commutative_operand): Adjust for change to recog_data.
13618 [Missing from previous commit.]
13620 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13622 * system.h (TEST_BIT): New macro.
13623 * recog.h (alternative_mask): New type.
13624 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
13625 (recog_data_d): Replace alternative_enabled_p array with
13626 enabled_alternatives.
13627 (target_recog): New structure.
13628 (default_target_recog, this_target_recog): Declare.
13629 (get_enabled_alternatives, recog_init): Likewise.
13630 * recog.c (default_target_recog, this_target_recog): New variables.
13631 (get_enabled_alternatives): New function.
13632 (extract_insn): Use it.
13633 (recog_init): New function.
13634 (preprocess_constraints, constrain_operands): Adjust for change to
13636 * postreload.c (reload_cse_simplify_operands): Likewise.
13637 * reload.c (find_reloads): Likewise.
13638 * ira-costs.c (record_reg_classes): Likewise.
13639 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
13640 all alternatives after a disabled one would be skipped.
13641 (ira_implicitly_set_insn_hard_regs): Likewise.
13642 * ira.c (ira_setup_alts): Adjust for change to recog_data.
13643 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
13644 with enabled_alternatives.
13645 * lra.c (free_insn_recog_data): Update accordingly.
13646 (lra_update_insn_recog_data): Likewise.
13647 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
13648 * lra-constraints.c (process_alt_operands): Likewise. Handle
13649 only_alternative as part of the enabled mask.
13650 * target-globals.h (this_target_recog): Declare.
13651 (target_globals): Add a recog field.
13652 (restore_target_globals): Restore this_target_recog.
13653 * target-globals.c: Include recog.h.
13654 (default_target_globals): Initialize recog field.
13655 (save_target_globals): Likewise.
13656 * reginfo.c (reinit_regs): Call recog_init.
13657 * toplev.c (backend_init_target): Likewise.
13659 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13661 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
13662 rather than any named insn's code.
13664 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
13667 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
13668 * config/arm/arm-cores.def (License): Same.
13670 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
13672 * tree.h (decl_comdat_group): Declare.
13673 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
13674 * tree.c (decl_comdat_group): Here.
13676 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
13678 PR rtl-optimization/61222
13679 * combine.c (simplify_shift_const_1): When moving a PLUS outside
13680 the shift, truncate the PLUS operand to the result mode.
13682 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
13685 * config/i386/i386.c (ix86_rtx_costs)
13686 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
13689 2014-05-26 Martin Jambor <mjambor@suse.cz>
13691 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
13694 2014-05-26 Richard Biener <rguenther@suse.de>
13696 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
13697 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
13698 Provide specializations.
13699 (wi::int_traits <HOST_WIDE_INT>,
13700 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
13702 2014-05-26 Alan Modra <amodra@gmail.com>
13705 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
13706 params and return a bool. Remove dead code. Update comment.
13707 Assert we have a const_int source. Remove bogus code from
13708 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
13709 handling of constants > 2G and reg_equal note, from..
13710 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
13711 return value. Update comment. If we can, use a new pseudo
13712 for intermediate calculations.
13713 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
13715 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
13716 call to rs6000_emit_set_const in splitter.
13717 (movdi_internal64+2, +3): Likewise.
13719 2014-05-26 Richard Biener <rguenther@suse.de>
13721 * system.h: Define __STDC_FORMAT_MACROS before
13722 including inttypes.h.
13723 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
13724 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
13725 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
13726 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
13727 HOST_WIDEST_INT_C): Remove.
13728 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
13729 if C99 inttypes.h is not available.
13730 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
13731 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
13732 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
13733 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
13734 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
13735 (struct output_info): Likewise.
13736 (print_statistics): Adjust.
13737 (dump_bitmap_statistics): Likewise.
13738 * bt-load.c (migrate_btr_defs): Print with PRId64.
13739 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
13740 (MAX_SAFE_MULTIPLIER): Adjust.
13741 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
13742 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
13743 dump_cgraph_node): Likewise.
13744 * final.c (dump_basic_block_info): Likewise.
13745 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
13746 * gcov.c (format_gcov): Likewise.
13747 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
13749 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
13750 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
13751 (inline_small_functions, dump_overall_stats, dump_inline_stats):
13752 Use PRId64 for dumping.
13753 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
13754 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
13755 (add_allocno_hard_regs): Adjust.
13756 * loop-doloop.c (doloop_modify): Print using PRId64.
13757 * loop-iv.c (inverse): Compute in uint64_t.
13758 (determine_max_iter, iv_number_of_iterations): Likewise.
13759 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
13760 Print using PRId64.
13761 * lto-streamer-out.c (write_symbol): Use uint64_t.
13762 * mcf.c (CAP_INFINITY): Use int64_t maximum.
13763 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
13764 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
13765 * modulo-sched.c (const_iteration_count): Use int64_t.
13766 (sms_schedule): Dump using PRId64.
13767 * predict.c (dump_prediction): Likewise.
13768 * pretty-print.h (pp_widest_integer): Remove.
13769 * profile.c (get_working_sets, is_edge_inconsistent,
13770 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
13771 * tree-pretty-print.c (pp_double_int): Remove case handling
13772 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
13773 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
13775 (pass_optimize_bswap::execute): Remove restriction on hosts.
13776 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
13777 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
13778 * tree.c (widest_int_cst_value): Remove.
13779 * tree.h (widest_int_cst_value): Likewise.
13780 * value-prof.c (dump_histogram_value): Print using PRId64.
13781 * gengtype.c (main): Also inject int64_t.
13782 * ggc-page.c (struct max_alignment): Use int64_t.
13783 * alloc-pool.c (struct allocation_object_def): Likewise.
13784 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
13786 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
13787 * doc/tm.texi: Regenerated.
13788 * gengtype-lex.l (IWORD): Handle [u]int64_t.
13789 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
13790 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
13791 mmix_output_register_setting): Use [u]int64_t in prototypes.
13792 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
13793 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
13794 mmix_output_octa, mmix_output_shifted_value): Adjust.
13795 (mmix_intval): Adjust. Remove unreachable case.
13796 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
13798 2014-05-26 Richard Biener <rguenther@suse.de>
13800 * configure.ac: Drop __int64 type check. Insist that we
13801 found uint64_t and int64_t.
13802 * hwint.h (HOST_BITS_PER___INT64): Remove.
13803 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
13804 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
13805 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
13806 (HOST_WIDEST_FAST_INT): Remove __int64 case.
13807 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
13808 for dst_q_src_df_rms_cdt.
13809 * configure: Regenerate.
13810 * config.in: Likewise.
13812 2014-05-26 Michael Tautschnig <mt@debian.org>
13815 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
13816 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
13818 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13820 PR rtl-optimization/61278
13821 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
13823 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13825 PR rtl-optimization/61220
13826 Part of PR rtl-optimization/61225
13827 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
13828 insn; skip split_edge for a block with only one successor.
13830 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13832 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
13835 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13837 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
13838 (update_vtable_references): New function.
13839 (function_and_variable_visibility): Rewrite also vtable initializers.
13840 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
13842 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13844 * ggc.h (ggc_grow): New function.
13845 * ggc-none.c (ggc_grow): New function.
13846 * ggc-page.c (ggc_grow): Likewise.
13848 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13850 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
13851 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
13852 comdat_can_be_unshared_p, cgraph_externally_visible_p,
13853 varpool_externally_visible_p, can_replace_by_local_alias,
13854 update_visibility_by_resolution_info, function_and_variable_visibility,
13855 pass_data_ipa_function_and_variable_visibility,
13856 make_pass_ipa_function_and_variable_visibility,
13857 whole_program_function_and_variable_visibility,
13858 pass_data_ipa_whole_program_visibility,
13859 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
13860 * cgraph.h (cgraph_local_node_p): Declare.
13861 * ipa-visibility.c: New file.
13862 * Makefile.in (OBJS): Add ipa-visiblity.o
13864 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13866 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
13867 that var decl is available.
13869 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13871 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
13872 symtab_node pointer.
13873 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
13874 (find_decls_types_r): Do not walk COMDAT_GROUP.
13875 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
13876 * varasm.c (make_decl_one_only): Use set_comdat_group;
13877 create node if needed.
13878 * ipa-inline-transform.c (save_inline_function_body): Update
13879 way we decl->symtab mapping.
13880 * symtab.c (symtab_hash, hash_node, eq_node
13881 symtab_insert_node_to_hashtable): Remove.
13882 (symtab_register_node): Update.
13883 (symtab_unregister_node): Update.
13884 (symtab_get_node): Reimplement as inline function.
13885 (symtab_add_to_same_comdat_group): Update.
13886 (symtab_dissolve_same_comdat_group_list): Update.
13887 (dump_symtab_base): Update.
13888 (verify_symtab_base): Update.
13889 (symtab_make_decl_local): Update.
13890 (fixup_same_cpp_alias_visibility): Update.
13891 (symtab_nonoverwritable_alias): Update.
13892 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
13893 * ipa.c (update_visibility_by_resolution_info): UPdate.
13894 * bb-reorder.c: Include cgraph.h
13895 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
13896 with comdat groups.
13897 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
13898 * cgraph.c (cgraph_get_create_node): Update.
13899 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
13901 (symtab_get_node): Make inline.
13902 (symtab_insert_node_to_hashtable): Remove.
13903 (symtab_can_be_discarded): Update.
13904 (decl_comdat_group): New function.
13905 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
13907 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
13909 (read_comdat_group): New function.
13910 (input_node, input_varpool_node): Use it.
13911 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
13913 * mips.c (mips_start_unique_function): Likewise.
13914 (ix86_code_end): Likewise.
13915 (rs6000_code_end): Likweise.
13916 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
13918 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13920 * gengtype-state.c (fatal_reading_state): Bring offline.
13921 * optabs.c (widening_optab_handler): Bring offline.
13922 * optabs.h (widening_optab_handler): Likewise.
13923 * final.c (get_attr_length_1): Likewise.
13925 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13927 * sched-int.h (sd_iterator_cond): Manually tail recurse.
13929 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13931 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
13932 (ppc440-compare): Include shift with dot.
13933 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
13934 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
13936 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
13938 (e6500_sfx2): Include it.
13939 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
13940 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
13941 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
13942 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
13943 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
13944 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
13945 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
13946 *lshiftrt_internal1le, *lshiftrt_internal1be,
13947 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
13948 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
13949 *rotldi3_internal10le, *rotldi3_internal10be,
13950 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
13951 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
13952 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
13953 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
13954 define_insns): Use type "shift" in the appropriate alternatives.
13956 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13958 * config/rs6000/rs6000.md (type): Add "logical". Delete
13960 (dot): Adjust comment.
13961 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
13962 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
13963 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
13964 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
13965 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
13966 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
13967 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
13968 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
13970 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
13971 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
13972 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
13973 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
13974 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
13975 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
13976 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
13977 * config/rs6000/8540.md (ppc8540_su): Adjust.
13978 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
13979 cell-cmp-microcoded): Adjust.
13980 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
13981 * config/rs6000/e500mc.md (e500mc_su): Adjust.
13982 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
13983 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
13984 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
13985 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
13986 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
13987 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
13988 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
13990 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
13991 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
13992 Adjust. Adjust comment.
13993 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
13994 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
13996 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13998 * config/rs6000/rs6000.md (type): Add "add".
13999 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14000 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14001 define_insns): Use it.
14002 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14004 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14005 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14006 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14007 * config/rs6000/601.md (ppc601-integer): Adjust.
14008 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14009 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14010 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14011 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14012 * config/rs6000/8540.md (ppc8540_su): Adjust.
14013 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14014 cell-cmp-microcoded): Adjust.
14015 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14016 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14017 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14018 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14019 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14020 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14021 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14022 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14023 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14025 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14026 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14027 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14028 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14030 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14032 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14033 "delayed_compare", "var_delayed_compare".
14034 (var_shift): New attribute.
14035 (cell_micro): Adjust.
14036 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14037 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14038 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14039 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14040 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14041 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14042 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14043 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14044 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14045 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14046 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14047 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14048 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14049 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14050 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14051 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14052 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14053 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14054 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14055 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14056 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14057 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14058 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14059 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14060 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14062 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14063 * config/rs6000/440.md (ppc440-integer): Adjust.
14064 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14065 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14066 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14067 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14068 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14069 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14070 * config/rs6000/8540.md (ppc8540_su): Adjust.
14071 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14072 cell-cmp-microcoded): Adjust.
14073 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14074 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14075 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14076 e500mc64_delayed): Adjust.
14077 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14078 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14079 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14080 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14081 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14082 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14083 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14084 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14085 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14087 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14088 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14090 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14092 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14093 (bits): New mode_attr.
14094 (idiv_ldiv): Delete mode_attr.
14095 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14096 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14097 rs6000_adjust_priority, is_nonpipeline_insn,
14098 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14100 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14101 * config/rs6000/440.md (ppc440-idiv): Adjust.
14102 * config/rs6000/476.md (ppc476-idiv): Adjust.
14103 * config/rs6000/601.md (ppc601-idiv): Adjust.
14104 * config/rs6000/603.md (ppc603-idiv): Adjust.
14105 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14106 ppc620-ldiv): Adjust.
14107 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14108 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14109 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14110 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14111 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14112 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14113 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14114 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14115 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14116 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14117 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14118 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14119 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14120 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14121 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14122 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14123 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14124 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14126 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14128 * config/rs6000/rs6000.md (type): Delete "insert_word",
14129 "insert_dword". Add "insert".
14130 (size): Update comment.
14131 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14132 insn_must_be_first_in_group): Adjust.
14133 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14134 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14135 *insvsi_internal6, insvdi_internal): Adjust.
14137 * config/rs6000/40x.md (ppc403-integer): Adjust.
14138 * config/rs6000/440.md (ppc440-integer): Adjust.
14139 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14140 * config/rs6000/601.md (ppc601-integer): Adjust.
14141 * config/rs6000/603.md (ppc603-integer): Adjust.
14142 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14143 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14144 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14145 * config/rs6000/8540.md (ppc8540_su): Adjust.
14146 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14147 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14148 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14149 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14150 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14151 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14152 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14153 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14154 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14155 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14156 * config/rs6000/power7.md (power7-integer): Adjust.
14157 * config/rs6000/power8.md (power8-1cyc): Adjust.
14158 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14159 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14161 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14163 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14164 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14165 (size): New attribute.
14166 (dot): New attribute.
14167 (cell_micro): Adjust.
14168 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14169 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14170 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14171 umuldi3_highpart): Adjust.
14172 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14173 rs6000_adjust_priority, is_nonpipeline_insn,
14174 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14176 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14177 ppc405-imul3): Adjust.
14178 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14179 * config/rs6000/476.md (ppc476-imul): Adjust.
14180 * config/rs6000/601.md (ppc601-imul): Adjust.
14181 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14182 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14183 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14184 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14185 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14187 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14188 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14189 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14190 cell-imul): Adjust.
14191 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14192 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14193 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14194 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14195 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14196 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14197 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14198 power4-lmul, power4-imul, power4-imul3): Adjust.
14199 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14200 power5-lmul, power5-imul, power5-imul3): Adjust.
14201 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14202 power6-lmul, power6-imul, power6-imul3): Adjust.
14203 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14204 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14206 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14207 rs64a-lmul): Adjust.
14208 * config/rs6000/titan.md (titan_imul): Adjust.
14210 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14212 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14213 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14214 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14215 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14216 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14217 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14218 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14219 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14220 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14221 * config/rs6000/titan.md: Delete nonsensical comment.
14222 (titan_imul): Add type imul3.
14223 (titan_mulhw): Remove type imul3; add type halfmul.
14225 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14227 * config/rs6000/rs6000.md (type): Reorder, reformat.
14229 2014-05-23 Martin Jambor <mjambor@suse.cz>
14231 PR tree-optimization/53787
14232 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14233 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14234 analysis_done, update all uses.
14235 * ipa-prop.c: Include domwalk.h
14236 (param_analysis_info): Removed.
14237 (param_aa_status): New type.
14238 (ipa_bb_info): Likewise.
14239 (func_body_info): Likewise.
14240 (ipa_get_bb_info): New function.
14241 (aa_overwalked): Likewise.
14242 (find_dominating_aa_status): Likewise.
14243 (parm_bb_aa_status_for_bb): Likewise.
14244 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14245 (load_from_unmodified_param): Accept func_body_info as a parameter
14246 instead of parms_ainfo.
14247 (parm_ref_data_preserved_p): Changed to use new param AA info.
14248 (parm_ref_data_pass_through_p): Likewise.
14249 (ipa_load_from_parm_agg_1): Likewise. Update callers.
14250 (compute_complex_assign_jump_func): Changed to use new param AA info.
14251 (compute_complex_ancestor_jump_func): Likewise.
14252 (ipa_compute_jump_functions_for_edge): Likewise.
14253 (ipa_compute_jump_functions): Removed.
14254 (ipa_compute_jump_functions_for_bb): New function.
14255 (ipa_analyze_indirect_call_uses): Likewise, moved variable
14257 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14258 and info, moved variable declarations down.
14259 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14261 (ipa_analyze_stmt_uses): Likewise.
14262 (ipa_analyze_params_uses): Removed.
14263 (ipa_analyze_params_uses_in_bb): New function.
14264 (ipa_analyze_controlled_uses): Likewise.
14265 (free_ipa_bb_info): Likewise.
14266 (analysis_dom_walker): New class.
14267 (ipa_analyze_node): Handle node-specific forbidden analysis,
14268 initialize and free func_body_info, use dominator walker.
14269 (ipcp_modif_dom_walker): New class.
14270 (ipcp_transform_function): Create and free func_body_info, use
14271 ipcp_modif_dom_walker, moved a lot of functionality there.
14273 2014-05-23 Marek Polacek <polacek@redhat.com>
14274 Jakub Jelinek <jakub@redhat.com>
14276 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
14277 * gcc.c (sanitize_spec_function): Likewise.
14278 * convert.c (convert_to_integer): Include "ubsan.h". Add
14279 floating-point to integer instrumentation.
14280 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
14281 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
14282 SANITIZE_NONDEFAULT.
14283 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
14284 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
14285 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
14286 * ubsan.c: Include "realmpfr.h" and "dfp.h".
14287 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
14288 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
14289 float/double/long double.
14290 (ubsan_instrument_float_cast): New function.
14291 * ubsan.h (ubsan_instrument_float_cast): Declare.
14293 2014-05-23 Jiong Wang <jiong.wang@arm.com>
14295 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
14297 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
14298 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
14299 Adjust for tailcalling through registers.
14300 * config/aarch64/aarch64.h (enum reg_class): New caller save
14302 (REG_CLASS_NAMES): Likewise.
14303 (REG_CLASS_CONTENTS): Likewise.
14304 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
14305 Allow tailcalling without decls.
14307 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14309 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14310 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
14312 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
14313 gsi, and variables v_* to v*.
14315 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
14317 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
14319 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14321 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
14322 * omp-low.c: Update accordingly.
14324 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
14325 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
14326 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
14327 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
14328 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
14329 GF_OMP_TARGET_KIND_UPDATE.
14331 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14332 Explicitly enumerate the expected region types.
14334 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
14337 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
14338 documentation; the old documentation didn't clearly state the
14339 constraints on the contents of the pointed-to storage.
14341 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14343 Fix bootstrap error on ia64
14344 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
14345 Return default value.
14347 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
14349 PR tree-optimization/54733
14350 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
14352 (find_bswap_or_nop_load): New.
14353 (find_bswap_1): Renamed to ...
14354 (find_bswap_or_nop_1): This. Also add support for memory source.
14355 (find_bswap): Renamed to ...
14356 (find_bswap_or_nop): This. Also add support for memory source and
14357 detection of bitwise operations equivalent to load in target
14359 (execute_optimize_bswap): Likewise. Also move its leading comment back
14360 in place and split statement transformation into ...
14361 (bswap_replace): This.
14363 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14365 PR rtl-optimization/61215
14366 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
14367 simplify_gen_subreg until final substitution.
14369 2014-05-23 Alan Modra <amodra@gmail.com>
14372 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
14373 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
14374 Use "Y" constraint rather than "m".
14376 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14378 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
14380 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
14381 New function declaration.
14382 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
14383 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
14384 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
14385 (aarch64_init_builtins) : Initialize builtins
14386 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14387 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14388 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
14389 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
14390 and __builtins_aarch64_set_fpsr.
14391 (aarch64_atomic_assign_expand_fenv): New function.
14392 * config/aarch64/aarch64.md (set_fpcr): New pattern.
14393 (get_fpcr) : Likewise.
14394 (set_fpsr) : Likewise.
14395 (get_fpsr) : Likewise.
14396 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
14397 and UNSPECV_SET_FPSR.
14398 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14399 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14400 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14402 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14404 PR rtl-optimization/60969
14405 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
14406 constraints. Set up mem cost for NO_REGS case.
14408 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
14410 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
14412 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
14414 * config/darwin.c: Include "lto-section-names.h".
14415 (LTO_SEGMENT_NAME): Don't define.
14416 * config/i386/winnt.c: Include "lto-section-names.h".
14417 * lto-streamer.c: Include "lto-section-names.h".
14418 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
14419 * lto-wrapper.c: Include "lto-section-names.h".
14420 (LTO_SECTION_NAME_PREFIX): Don't define.
14421 * lto-section-names.h: New file.
14422 * cgraphunit.c: Include "lto-section-names.h".
14424 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
14426 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
14428 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
14431 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
14433 2014-05-22 Nick Clifton <nickc@redhat.com>
14435 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
14437 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
14439 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
14440 -> (T)A transformation to integer types.
14442 2014-05-22 Teresa Johnson <tejohnson@google.com>
14444 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
14445 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
14446 (gcov_rewrite): Use gcov_nonruntime_assert.
14447 (gcov_open): Ditto.
14448 (gcov_write_words): Ditto.
14449 (gcov_write_length): Ditto.
14450 (gcov_read_words): Use gcov_nonruntime_assert, and remove
14451 gcc_assert from IN_LIBGCOV code.
14452 (gcov_read_summary): Use gcov_error to flag profile corruption.
14453 (gcov_sync): Use gcov_nonruntime_assert.
14454 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
14455 (gcov_histo_index): Use gcov_nonruntime_assert.
14456 (static void gcov_histogram_merge): Ditto.
14457 (compute_working_sets): Ditto.
14458 * gcov-io.h (gcov_nonruntime_assert): Define.
14459 (gcov_error): Define for !IN_LIBGCOV
14461 2014-05-22 Richard Biener <rguenther@suse.de>
14463 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14464 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
14465 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
14466 and deallocation site.
14467 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14468 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
14469 passing through the incoming points-to set.
14470 (handle_lhs_call): Use flags argument instead of recomputing it.
14471 (find_func_aliases_for_call): Call handle_lhs_call with proper
14474 2014-05-22 Jakub Jelinek <jakub@redhat.com>
14476 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
14477 all padding bits in REAL_VALUE_TYPE are cleared.
14479 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14481 Cleanup and improve multipass_dfa_lookahead_guard
14482 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
14483 (core2i7_first_cycle_multipass_begin,)
14484 (core2i7_first_cycle_multipass_issue,)
14485 (core2i7_first_cycle_multipass_backtrack): Update signature.
14486 * config/ia64/ia64.c
14487 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
14488 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
14489 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
14491 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
14492 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
14494 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
14496 * doc/tm.texi: Regenerate.
14498 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
14499 * haifa-sched.c (ready_try): Make signed to allow negative values.
14500 (rebug_ready_list_1): Update.
14501 (choose_ready): Simplify.
14502 (sched_extend_ready_list): Update.
14504 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14506 Remove IA64 speculation tweaking flags
14507 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
14508 speculation tuning flags.
14509 (msched-prefer-non-data-spec-insns,)
14510 (msched-prefer-non-control-spec-insns): Obsolete options.
14511 * haifa-sched.c (choose_ready): Remove handling of
14512 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14513 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
14514 and PREFER_NON_DATA_SPEC.
14515 * sel-sched.c (process_spec_exprs): Remove handling of
14516 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14518 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14520 Improve scheduling debug output
14521 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
14522 (advance_one_cycle): Update.
14523 (schedule_insn, queue_to_ready): Add debug printouts.
14524 (debug_ready_list_1): New static function.
14525 (debug_ready_list): Update.
14526 (max_issue): Add debug printouts.
14527 (dump_insn_stream): New static function.
14528 (schedule_block): Use it. Also better indent printouts.
14530 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14532 Fix sched_insn debug counter
14533 * haifa-sched.c (schedule_insn): Update.
14534 (struct haifa_saved_data): Add nonscheduled_insns_begin.
14535 (save_backtrack_point, restore_backtrack_point): Update.
14536 (first_nonscheduled_insn): New static function.
14537 (queue_to_ready, choose_ready): Use it.
14538 (schedule_block): Init nonscheduled_insns_begin.
14539 (sched_emit_insn): Update.
14542 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
14544 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
14546 (aarch64_secondary_reload) : LikeWise.
14547 (aarch64_class_max_nregs) : Remove CORE_REGS.
14548 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
14549 (REG_CLASS_NAMES) : Likewise.
14550 (REG_CLASS_CONTENTS) : LikeWise.
14551 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
14553 2014-05-21 Guozhi Wei <carrot@google.com>
14556 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
14558 (vqdmulhq_n_s16): Likewise.
14560 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
14562 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
14564 2014-05-21 Marek Polacek <polacek@redhat.com>
14567 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
14569 2014-05-21 Martin Jambor <mjambor@suse.cz>
14571 * doc/invoke.texi (Optimize Options): Document parameters
14572 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
14573 ipa-cp-array-index-hint-bonus.
14575 2014-05-21 Mark Wielaard <mjw@redhat.com>
14578 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
14579 version >= 3 or not strict DWARF.
14580 * langhooks.h (struct lang_hooks_for_types): Add
14581 enum_underlying_base_type.
14582 * langhooks.c (lhd_enum_underlying_base_type): New function.
14583 * gcc/langhooks.h (struct lang_hooks_for_types): Add
14584 enum_underlying_base_type.
14585 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
14586 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
14587 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
14589 2014-05-21 Richard Biener <rguenther@suse.de>
14591 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
14593 2014-05-21 John Marino <gnugcc@marino.st>
14595 * config.gcc (*-*-dragonfly*): New target.
14596 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
14597 * configure: Regenerate.
14598 * config/dragonfly-stdint.h: New.
14599 * config/dragonfly.h: New.
14600 * config/dragonfly.opt: New.
14601 * config/i386/dragonfly.h: New.
14602 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
14604 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
14606 * tree.def (VOID_CST): New.
14607 * tree-core.h (TI_VOID): New.
14608 * tree.h (void_node): New.
14609 * tree.c (tree_node_structure_for_code, tree_code_size)
14610 (iterative_hash_expr): Handle VOID_CST.
14611 (build_common_tree_nodes): Initialize void_node.
14613 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
14615 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
14617 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
14619 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
14622 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
14623 flag_reorder_blocks_and_partition.
14624 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
14626 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
14629 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
14631 (*addc_r_t): Add new insn_and_split.
14633 2014-05-21 Jakub Jelinek <jakub@redhat.com>
14635 PR middle-end/61252
14636 * omp-low.c (handle_simd_reference): New function.
14637 (lower_rec_input_clauses): Use it. Defer adding reference
14638 initialization even for reduction without placeholder if in simd,
14639 handle it properly later on.
14641 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14643 PR tree-optimization/60899
14644 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
14645 assume all static symbols will have definition wile parsing and
14646 check the do have definition later in compilation; check that
14647 variable referring symbol will be output before concluding that
14648 reference is safe; be conservative for referring local statics;
14649 be more precise about when comdat is output in other partition.
14651 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14654 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
14656 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
14657 (ipa_inline): Loop inline_to_all_callers until no more aliases
14660 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14662 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
14663 set writeonly flag only for vars actually written to.
14665 2014-05-20 Dehao Chen <dehao@google.com>
14667 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
14668 and callee count to get clone count.
14669 * tree-inline.c (expand_call_inline): Use callee count instead of bb
14670 count in copy_body.
14672 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
14674 PR rtl-optimization/61243
14675 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
14677 2014-05-20 Xinliang David Li <davidxl@google.com>
14679 * cgraphunit.c (walk_polymorphic_call_targets): Add
14680 dbgcnt and fopt-info support.
14681 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
14682 * ipa-devirt.c (ipa_devirt): Ditto.
14683 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
14684 * ipa.c (walk_polymorphic_call_targets): Ditto.
14685 * gimple-fold.c (fold_gimple_assign): Ditto.
14686 (gimple_fold_call): Ditto.
14687 * dbgcnt.def: New counter.
14689 2014-05-20 DJ Delorie <dj@redhat.com>
14691 * config/msp430/msp430.md (split): Don't allow subregs when
14692 splitting SImode adds.
14693 (andneghi): Fix subtraction logic.
14694 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
14696 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14698 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
14700 * except.c (switch_to_exception_section, resolve_unique_section,
14701 get_named_text_section, default_function_rodata_section,
14702 align_variable, get_block_for_decl, default_section_type_flags):
14703 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
14704 * symtab.c (symtab_add_to_same_comdat_group,
14705 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
14706 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
14708 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
14709 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
14710 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
14711 (c6x_function_in_section_p): Likewise.
14712 * config/darwin.c (machopic_select_section): Likewise.
14713 * config/arm/arm.c (arm_function_in_section_p): Likewise.
14714 * config/mips/mips.c (mips_function_rodata_section): Likewise.
14715 * config/mep/mep.c (mep_select_section): LIkewise.
14716 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
14718 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
14720 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
14721 EH region of calls to pure functions that can throw an exception.
14722 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
14723 (copy_reference_ops_from_call): Also copy the EH region of the call if
14724 it can throw an exception.
14726 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14728 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
14729 nested VEC_SELECTs that are inverses of each other.
14731 2014-05-20 Richard Biener <rguenther@suse.de>
14733 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
14734 (extract_and_process_scc_for_name): not here.
14735 (cond_dom_walker::before_dom_children): Only process
14736 stmts that end the BB in interesting ways.
14737 (run_scc_vn): Mark param uses as visited.
14739 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14741 * config/arm/arm.md (arith_shiftsi): Do not predicate for
14744 2014-05-20 Nick Clifton <nickc@redhat.com>
14746 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
14747 (msp430_gimplify_va_arg_expr): New function.
14748 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
14750 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
14751 operand 0 in order to prevent confusion about the number of
14752 registers involved.
14754 2014-05-20 Richard Biener <rguenther@suse.de>
14756 PR tree-optimization/61221
14757 * tree-ssa-pre.c (el_to_update): Remove.
14758 (eliminate_dom_walker::before_dom_children): Handle released
14759 VDEFs by value-numbering them to the associated VUSE. Update
14760 stmt immediately for substituted call address.
14761 (eliminate): Remove delayed stmt updating code.
14762 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
14763 possibly late re-numbered vuses.
14764 (vn_reference_lookup_2): Adjust.
14765 (vn_reference_lookup_pieces): Likewise.
14766 (vn_reference_lookup): Likewise.
14768 2014-05-20 Richard Biener <rguenther@suse.de>
14770 * config.gcc: Remove need_64bit_hwint.
14771 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
14772 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
14774 * config.in: Regenerate.
14775 * configure: Likewise.
14777 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
14779 * doc/extend.texi: Create Label Attributes section,
14780 move all label attributes into it and reference it.
14782 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
14784 * arm.c (thumb1_reorg): When scanning backwards skip anything
14785 that's not a proper insn.
14787 2014-05-19 Richard Biener <rguenther@suse.de>
14789 PR tree-optimization/61221
14790 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14791 Do nothing for unreachable blocks.
14792 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
14793 Improve unreachability detection.
14795 2014-05-19 Richard Biener <rguenther@suse.de>
14797 PR tree-optimization/61209
14798 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
14800 2014-05-19 Nick Clifton <nickc@redhat.com>
14802 * except.c (init_eh): Fix computation of builtin setjmp buffer
14803 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
14805 2014-05-19 Richard Biener <rguenther@suse.de>
14807 PR tree-optimization/61184
14808 * tree-vrp.c (is_negative_overflow_infinity): Use
14809 TREE_OVERFLOW_P and do that check first.
14810 (is_positive_overflow_infinity): Likewise.
14811 (is_overflow_infinity): Likewise.
14812 (vrp_operand_equal_p): Properly treat operands with
14813 differing overflow as not equal.
14815 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
14817 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
14818 shift simplification where it was intended.
14820 2014-05-19 Christian Bruel <christian.bruel@st.com>
14823 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
14825 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
14828 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
14831 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
14833 * reg-notes.def (CROSSING_JUMP): Likewise.
14834 * rtl.h (rtx_def): Update comment for jump flag.
14835 (CROSSING_JUMP_P): Define.
14836 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
14837 of a REG_CROSSING_JUMP note.
14838 * cfghooks.c (tidy_fallthru_edges): Likewise.
14839 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
14840 * emit-rtl.c (try_split): Likewise.
14841 * haifa-sched.c (sched_create_recovery_edges): Likewise.
14842 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
14843 * jump.c (redirect_jump_2): Likewise.
14844 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
14845 (relax_delay_slots): Likewise.
14846 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
14847 (bbit_di): Likewise.
14848 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
14849 * config/sh/sh.md (jump_compact): Likewise.
14850 * bb-reorder.c (rotate_loop): Likewise.
14851 (pass_duplicate_computed_gotos::execute): Likewise.
14852 (add_reg_crossing_jump_notes): Rename to...
14853 (update_crossing_jump_flags): ...this.
14854 (pass_partition_blocks::execute): Update accordingly.
14856 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
14858 * tree.h: Remove extraneous template <>.
14860 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14862 * ipa.c (symtab_remove_unreachable_nodes): Remove
14863 symbol from comdat group if its body was eliminated.
14864 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
14865 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
14866 (symtab_unregister_node): ... this one.
14867 (verify_symtab_base): More strict checking of comdats.
14868 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
14870 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14872 * tree-pass.h (make_pass_ipa_comdats): New pass.
14873 * timevar.def (TV_IPA_COMDATS): New timevar.
14874 * passes.def (pass_ipa_comdats): Add.
14875 * Makefile.in (OBJS): Add ipa-comdats.o
14876 * ipa-comdats.c: New file.
14878 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14880 * ipa.c (update_visibility_by_resolution_info): New function.
14881 (function_and_variable_visibility): Use it.
14883 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14885 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
14887 (FOR_EACH_DEFINED_SYMBOL): New macro.
14888 (varpool_first_static_initializer, varpool_next_static_initializer,
14889 varpool_first_defined_variable, varpool_next_defined_variable):
14891 (symtab_in_same_comdat_p): Correctly deal with inline functions.
14893 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14895 * ggc-page.c (ggc_handle_finalizers): Add comment.
14897 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14899 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
14900 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
14901 (ggc_internal_cleared_alloc): Likewise.
14902 * ggc-page.c (finalizer): New class.
14903 (vec_finalizer): Likewise.
14904 (globals::finalizers): New member.
14905 (globals::vec_finalizers): Likewise.
14906 (ggc_internal_alloc): Record the finalizer if any for the block being
14908 (ggc_handle_finalizers): New function.
14909 (ggc_collect): Call ggc_handle_finalizers.
14910 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
14912 (ggc_internal_cleared_alloc): Likewise.
14913 (finalize): New function.
14914 (need_finalization_p): Likewise.
14915 (ggc_alloc): Install the type's destructor as the finalizer if it
14916 might do something.
14917 (ggc_cleared_alloc): Likewise.
14918 (ggc_vec_alloc): Likewise.
14919 (ggc_cleared_vec_alloc): Likewise.
14921 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14923 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
14925 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14927 * alias.c (record_alias_subset): Adjust.
14928 * bitmap.c (bitmap_element_allocate): Likewise.
14929 (bitmap_gc_alloc_stat): Likewise.
14930 * cfg.c (init_flow): Likewise.
14931 (alloc_block): Likewise.
14932 (unchecked_make_edge): Likewise.
14933 * cfgloop.c (alloc_loop): Likewise.
14934 (flow_loops_find): Likewise.
14935 (rescan_loop_exit): Likewise.
14936 * cfgrtl.c (init_rtl_bb_info): Likewise.
14937 * cgraph.c (insert_new_cgraph_node_version): Likewise.
14938 (cgraph_allocate_node): Likewise.
14939 (cgraph_create_edge_1): Likewise.
14940 (cgraph_allocate_init_indirect_info): Likewise.
14941 * cgraphclones.c (cgraph_clone_edge): Likewise.
14942 * cgraphunit.c (add_asm_node): Likewise.
14943 (init_lowered_empty_function): Likewise.
14944 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
14945 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
14946 (alpha_use_linkage): Likewise.
14947 * config/arc/arc.c (arc_init_machine_status): Likewise.
14948 * config/arm/arm.c (arm_init_machine_status): Likewise.
14949 * config/avr/avr.c (avr_init_machine_status): Likewise.
14950 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
14951 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
14952 * config/cris/cris.c (cris_init_machine_status): Likewise.
14953 * config/darwin.c (machopic_indirection_name): Likewise.
14954 (darwin_build_constant_cfstring): Likewise.
14955 (darwin_enter_string_into_cfstring_table): Likewise.
14956 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
14957 * config/frv/frv.c (frv_init_machine_status): Likewise.
14958 * config/i386/i386.c (get_dllimport_decl): Likewise.
14959 (ix86_init_machine_status): Likewise.
14960 (assign_386_stack_local): Likewise.
14961 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
14962 (i386_pe_maybe_record_exported_symbol): Likewise.
14963 (i386_pe_record_stub): Likewise.
14964 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
14965 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
14966 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
14967 (m32c_note_pragma_address): Likewise.
14968 * config/mep/mep.c (mep_init_machine_status): Likewise.
14969 (mep_note_pragma_flag): Likewise.
14970 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
14971 (mips16_local_alias): Likewise.
14972 (mips_init_machine_status): Likewise.
14973 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
14974 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
14975 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
14976 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
14977 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
14978 * config/pa/pa.c (pa_init_machine_status): Likewise.
14979 (pa_get_deferred_plabel): Likewise.
14980 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
14981 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
14982 (rs6000_init_machine_status): Likewise.
14983 (output_toc): Likewise.
14984 * config/s390/s390.c (s390_init_machine_status): Likewise.
14985 * config/score/score.c (score_output_external): Likewise.
14986 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
14987 * config/spu/spu.c (spu_init_machine_status): Likewise.
14988 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
14989 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
14990 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
14991 * coverage.c (coverage_end_function): Likewise.
14992 * dbxout.c (dbxout_init): Likewise.
14993 * doc/gty.texi: Don't mention variable_size attribute.
14994 * dwarf2cfi.c (new_cfi): Adjust.
14995 (new_cfi_row): Likewise.
14996 (copy_cfi_row): Likewise.
14997 (create_cie_data): Likewise.
14998 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
14999 (new_loc_descr): Likewise.
15000 (find_AT_string_in_table): Likewise.
15001 (add_addr_table_entry): Likewise.
15002 (new_die): Likewise.
15003 (add_var_loc_to_decl): Likewise.
15004 (clone_die): Likewise.
15005 (clone_as_declaration): Likewise.
15006 (break_out_comdat_types): Likewise.
15007 (new_loc_list): Likewise.
15008 (add_loc_descr_to_each): Likewise.
15009 (add_location_or_const_value_attribute): Likewise.
15010 (add_linkage_name): Likewise.
15011 (lookup_filename): Likewise.
15012 (dwarf2out_var_location): Likewise.
15013 (new_line_info_table): Likewise.
15014 (dwarf2out_init): Likewise.
15015 (mem_loc_descriptor): Likewise.
15016 (loc_descriptor): Likewise.
15017 (add_const_value_attribute): Likewise.
15018 (tree_add_const_value_attribute): Likewise.
15019 (comp_dir_string): Likewise.
15020 (dwarf2out_vms_debug_main_pointer): Likewise.
15021 (string_cst_pool_decl): Likewise.
15022 * emit-rtl.c (set_mem_attrs): Likewise.
15023 (get_reg_attrs): Likewise.
15024 (start_sequence): Likewise.
15025 (init_emit): Likewise.
15026 (init_emit_regs): Likewise.
15027 * except.c (init_eh_for_function): Likewise.
15028 (gen_eh_region): Likewise.
15029 (gen_eh_region_catch): Likewise.
15030 (gen_eh_landing_pad): Likewise.
15031 (add_call_site): Likewise.
15032 * function.c (add_frame_space): Likewise.
15033 (insert_temp_slot_address): Likewise.
15034 (assign_stack_temp_for_type): Likewise.
15035 (get_hard_reg_initial_val): Likewise.
15036 (allocate_struct_function): Likewise.
15037 (prepare_function_start): Likewise.
15038 (types_used_by_var_decl_insert): Likewise.
15039 * gengtype.c (variable_size_p): Remove function.
15040 (enum alloc_quantity): Remove enum.
15041 (write_typed_alloc_def): Remove function.
15042 (write_typed_struct_alloc_def): Likewise.
15043 (write_typed_typedef_alloc_def): Likewise.
15044 (write_typed_alloc_defns): Likewise.
15046 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15047 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15048 * ggc.h (ggc_alloc): new function.
15049 (ggc_cleared_alloc): Likewise.
15050 (ggc_vec_alloc): Template on type of vector element, and remove
15051 element size argument.
15052 (ggc_cleared_vec_alloc): Likewise.
15053 * gimple.c (gimple_build_omp_for): Adjust.
15054 (gimple_copy): Likewise.
15055 * ipa-cp.c (get_replacement_map): Likewise.
15056 (find_aggregate_values_for_callers_subset): Likewise.
15057 (known_aggs_to_agg_replacement_list): Likewise.
15058 * ipa-devirt.c (get_odr_type): Likewise.
15059 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15060 (read_agg_replacement_chain): Likewise.
15061 * loop-iv.c (get_simple_loop_desc): Likewise.
15062 * lto-cgraph.c (input_node_opt_summary): Likewise.
15063 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15064 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15065 (input_eh_region): Likewise.
15066 (input_eh_lp): Likewise.
15067 (input_cfg): Likewise.
15068 * optabs.c (set_optab_libfunc): Likewise.
15069 (init_tree_optimization_optabs): Likewise.
15070 (set_conv_libfunc): Likewise.
15071 * passes.c (do_per_function_toporder): Likewise.
15072 * rtl.h: Don't use variable_size gty attribute.
15073 * sese.c (if_region_set_false_region): Adjust.
15074 * stringpool.c (gt_pch_save_stringpool): Likewise.
15075 * target-globals.c (save_target_globals): Likewise.
15076 * toplev.c (general_init): Likewise.
15077 * trans-mem.c (record_tm_replacement): Likewise.
15078 (split_bb_make_tm_edge): Likewise.
15079 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15080 * tree-data-ref.h (lambda_vector_new): Likewise.
15081 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15082 * tree-iterator.c (tsi_link_before): Likewise.
15083 (tsi_link_after): Likewise.
15084 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15085 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15086 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15087 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15088 * tree-ssa.c (init_tree_ssa): Adjust.
15089 * tree-ssanames.c (set_range_info): Likewise.
15090 (get_ptr_info): Likewise.
15091 (duplicate_ssa_name_ptr_info): Likewise.
15092 (duplicate_ssa_name_range_info): Likewise.
15093 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15094 (unpack_ts_fixed_cst_value_fields): Likewise.
15095 * tree.c (build_fixed): Likewise.
15096 (build_real): Likewise.
15097 (build_string): Likewise.
15098 (decl_priority_info): Likewise.
15099 (decl_debug_expr_insert): Likewise.
15100 (decl_value_expr_insert): Likewise.
15101 (decl_debug_args_insert): Likewise.
15102 (type_hash_add): Likewise.
15103 (build_omp_clause): Likewise.
15104 * ubsan.c (decl_for_type_insert): Likewise.
15105 * varasm.c (get_unnamed_section): Likewise.
15106 (get_noswitch_section): Likewise.
15107 (get_section): Likewise.
15108 (get_block_for_section): Likewise.
15109 (create_block_symbol): Likewise.
15110 (build_constant_desc): Likewise.
15111 (create_constant_pool): Likewise.
15112 (force_const_mem): Likewise.
15113 (record_tm_clone_pair): Likewise.
15114 * varpool.c (varpool_create_empty_node): Likewise.
15116 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15118 * dwarf2out.c (tree_add_const_value_attribute): Call
15119 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15120 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15121 instead of ggc_internal_<x>alloc_stat.
15122 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15123 (ggc_realloc): Likewise.
15124 * ggc-none.c (ggc_internal_alloc): Likewise.
15125 (ggc_internal_cleared_alloc): Likewise.
15126 * ggc-page.c: Likewise.
15127 * ggc.h (ggc_internal_alloc_stat): Likewise.
15128 (ggc_internal_alloc): Remove macro.
15129 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15130 (ggc_internal_cleared_alloc): Remove macro.
15131 (GGC_RESIZEVEC): Adjust.
15132 (ggc_resizevar): Remove macro.
15133 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15134 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15135 (ggc_internal_vec_cleared_alloc): Remove macro.
15136 (ggc_alloc_atomic_stat): Drop _stat suffix.
15137 (ggc_alloc_atomic): Remove macro.
15138 (ggc_alloc_cleared_atomic): Remove macro.
15139 (ggc_alloc_string_stat): Drop _stat suffix.
15140 (ggc_alloc_string): Remove macro.
15141 (ggc_alloc_rtx_def_stat): Adjust.
15142 (ggc_alloc_tree_node_stat): Likewise.
15143 (ggc_alloc_cleared_tree_node_stat): Likewise.
15144 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15145 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15146 * gimple.c (gimple_build_omp_for): Likewise.
15147 (gimple_copy): Likewise.
15148 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15149 * toplev.c (realloc_for_line_map): Adjust.
15150 * tree-data-ref.h (lambda_vector_new): Likewise.
15151 * tree-phinodes.c (allocate_phi_node): Likewise.
15152 * tree.c (grow_tree_vec_stat): Likewise.
15153 * vec.h (va_gc::reserve): Adjust.
15155 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15157 * config/microblaze/microblaze.c (break_handler): New Declaration.
15158 (microblaze_break_function_p,microblaze_is_break_handler): New.
15159 (compute_frame_size): Use microblaze_break_function_p.
15160 Add the test of break_handler.
15161 (microblaze_function_prologue) : Add the test of variable
15162 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15163 (microblaze_function_epilogue) : Add the test of break_handler.
15164 (microblaze_globalize_label) : Add the test of break_handler.
15165 Check the name by BREAK_HANDLER_NAME.
15167 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15169 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15170 microblaze_is_break_handler test.
15171 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15172 Use SYMBOL_REF_DECL.
15174 * config/microblaze/microblaze-protos.h
15175 (microblaze_break_function_p,microblaze_is_break_handler):
15178 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15179 new MicroBlaze break_handler functions.
15181 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15183 * doc/extend.texi (Size of an asm): Move node text according
15184 to its @menu entry position.
15186 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15188 PR tree-optimization/61140
15189 PR tree-optimization/61150
15190 PR tree-optimization/61197
15191 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15193 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15195 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15197 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15199 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15200 __SIZEOF_INT128__ is defined.
15202 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15204 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15205 (rs6000_delegitimize_address): Use it.
15207 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15209 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15210 inplace argument. Store the new address in the original MEM when true.
15211 * emit-rtl.c (change_address_1): Likewise.
15212 (adjust_address_1, adjust_automodify_address_1, offset_address):
15213 Update accordingly.
15214 * rtl.h (plus_constant): Add an inplace argument.
15215 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15216 when true. Avoid generating (plus X (const_int 0)).
15217 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15218 in-place. Pass true to plus_constant.
15219 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15221 2014-05-16 Dehao Chen <dehao@google.com>
15223 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15225 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15228 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15230 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15232 2014-05-16 Dehao Chen <dehao@google.com>
15234 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15235 optimize_function_for_size_p.
15236 * regs.h (REG_FREQ_FROM_BB): Likewise.
15238 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15241 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15242 negt_reg_operand cases.
15243 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15245 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15247 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15249 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15252 2014-05-16 David Malcolm <dmalcolm@redhat.com>
15255 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15257 * tree-cfg.c (dump_function_to_file): Dump the return type of
15258 functions, in a line to itself before the function body, mimicking
15259 the layout of a C function.
15261 2014-05-16 Dehao Chen <dehao@google.com>
15263 * cfghooks.c (make_forwarder_block): Use direct computation to
15264 get fall-through edge's count and frequency.
15266 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
15268 * config/arc/arc.c (arc_init): Fix typo in error message.
15269 * config/i386/i386.c (ix86_expand_builtin): Likewise.
15270 (split_stack_prologue_scratch_regno): Likewise.
15271 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
15272 word from error message.
15274 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15276 * ira-costs.c: Fix typo in comment.
15278 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
15280 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
15282 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
15284 * varpool.c (dump_varpool_node): Dump write-only flag.
15285 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
15287 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
15288 write-only variables.
15289 * ipa.c (process_references): New function.
15290 (set_readonly_bit): New function.
15291 (set_writeonly_bit): New function.
15292 (clear_addressable_bit): New function.
15293 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
15294 fix handling of aliases.
15295 * cgraph.h (struct varpool_node): Add writeonly flag.
15297 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
15299 PR rtl-optimization/60969
15300 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
15301 Calculate costs for this case.
15303 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
15305 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
15306 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
15308 2014-05-16 Richard Biener <rguenther@suse.de>
15310 PR tree-optimization/61194
15311 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
15312 bool patterns ending in a COND_EXPR.
15314 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15316 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
15318 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15320 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
15321 where we were unable to cost an RTX.
15323 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15325 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
15328 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15329 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15331 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
15333 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15334 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15336 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
15337 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
15339 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15340 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15342 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
15345 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15346 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15348 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15351 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15352 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15354 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
15355 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
15357 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15358 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15360 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15361 rotates and shifts.
15363 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15364 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15366 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
15367 ZERO_EXTEND and SIGN_EXTEND better.
15369 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15370 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15372 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
15373 logical operations.
15375 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15376 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15378 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
15379 costs when costing loads and stores to memory.
15381 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15382 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
15384 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
15387 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15389 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
15391 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15392 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15394 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
15396 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
15398 (aarch64_rtx_mult_cost): New.
15399 (aarch64_rtx_costs): Use it, refactor as appropriate.
15401 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15402 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15404 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
15405 emit instructions, return number of instructions which would
15407 (aarch64_add_constant): Update call to aarch64_build_constant.
15408 (aarch64_output_mi_thunk): Likewise.
15409 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
15412 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15414 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
15415 (TARGET_RTX_COSTS): Call it.
15417 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15419 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
15420 (cortexa57_vector_cost): Likewise.
15421 (cortexa57_tunings): Use them.
15423 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15425 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
15426 (cpu_addrcost_table): Use it.
15427 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
15428 (aarch64_address_cost): Rewrite using aarch64_classify_address,
15431 2014-05-16 Richard Biener <rguenther@suse.de>
15433 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
15434 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
15435 (visit_phi): Ignore edges marked as not executable.
15436 (class cond_dom_walker): New.
15437 (cond_dom_walker::before_dom_children): Value-number
15438 control statements and mark successor edges as not
15439 executable if possible.
15440 (run_scc_vn): First walk all control statements in
15441 dominator order, marking edges as not executable.
15442 * tree-inline.c (copy_edges_for_bb): Be not confused
15443 about random edge flags.
15445 2014-05-16 Richard Biener <rguenther@suse.de>
15447 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
15449 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
15452 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
15453 (__TM_simple_begin): Use it.
15454 (__TM_begin): Likewise.
15456 2014-05-15 Martin Jambor <mjambor@suse.cz>
15459 * ipa-prop.c (update_indirect_edges_after_inlining): Check
15460 type_preserved flag when the indirect edge is polymorphic.
15462 2014-05-15 Martin Jambor <mjambor@suse.cz>
15464 PR tree-optimization/61090
15465 * tree-sra.c (sra_modify_expr): Pass the current gsi to
15466 build_ref_for_model.
15468 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15470 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
15471 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
15473 2014-05-15 Jakub Jelinek <jakub@redhat.com>
15475 PR tree-optimization/61158
15476 * fold-const.c (fold_binary_loc): If X is zero-extended and
15477 shiftc >= prec, make sure zerobits is all ones instead of
15478 invoking undefined behavior.
15480 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15482 * regcprop.h: New file.
15483 * regcprop.c (skip_debug_insn_p): New decl.
15484 (replace_oldest_value_reg): Check skip_debug_insn_p.
15485 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
15486 * shrink-wrap.c: Include regcprop.h.
15487 (prepare_shrink_wrap): Call
15488 copyprop_hardreg_forward_bb_without_debug_insn.
15490 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15492 * shrink-wrap.h: Update comment.
15493 * shrink-wrap.c: Update comment.
15494 (next_block_for_reg): Rename to live_edge_for_reg.
15495 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
15496 (move_insn_for_shrink_wrap): Split live_edge.
15497 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
15499 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
15501 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
15503 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
15504 * config/sparc/sparc.md (fptype_ut699): New attribute.
15505 (in_branch_delay): Return false if -mfix-ut699 is specified and
15506 fptype_ut699 is set to single.
15507 (truncdfsf2): Add fptype_ut699 attribute.
15508 (fix_truncdfsi2): Likewise.
15509 (floatsisf2): Change fptype attribute.
15510 (fix_truncsfsi2): Likewise.
15511 (negtf2_notv9): Delete.
15512 (negtf2_v9): Likewise.
15513 (negtf2_hq): New instruction.
15514 (negtf2): New instruction and splitter.
15515 (negdf2_notv9): Rewrite.
15516 (abstf2_notv9): Delete.
15517 (abstf2_hq_v9): Likewise.
15518 (abstf2_v9): Likewise.
15519 (abstf2_hq): New instruction.
15520 (abstf2): New instruction and splitter.
15521 (absdf2_notv9): Rewrite.
15523 2014-05-14 Cary Coutant <ccoutant@google.com>
15526 * opts.c (common_handle_option): Don't special-case "-g".
15527 (set_debug_level): Default to at least level 2 with "-g".
15529 2014-05-14 DJ Delorie <dj@redhat.com>
15531 * config/msp430/msp430.c (msp430_builtin): Add
15532 MSP430_BUILTIN_DELAY_CYCLES.
15533 (msp430_init_builtins): Register void __delay_cycles(long long).
15534 (msp430_builtin_decl): Add it.
15535 (cg_magic_constant): New.
15536 (msp430_expand_delay_cycles): New.
15537 (msp430_expand_builtin): Call it.
15538 (msp430_print_operand_raw): Change integer printing from "int" to
15540 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
15541 (delay_cycles_start): New.
15542 (delay_cycles_end): New.
15543 (delay_cycles_32): New.
15544 (delay_cycles_32x): New.
15545 (delay_cycles_16): New.
15546 (delay_cycles_16x): New.
15547 (delay_cycles_2): New.
15548 (delay_cycles_1): New.
15549 * doc/extend.texi: Document __delay_cycles().
15551 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
15553 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
15554 length attribute computation.
15556 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
15559 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
15561 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
15564 * config/sparc/sparc.md: Fix types of low and high in DI constant
15565 splitter. Use gen_int_mode in some other splitters.
15567 2014-05-14 Martin Jambor <mjambor@suse.cz>
15570 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
15572 2014-05-14 James Norris <jnorris@codesourcery.com>
15574 * omp-low.c (expand_parallel_call): Remove shadow variable.
15575 (expand_omp_taskreg): Likewise.
15577 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
15579 * common/config/i386/i386-common.c
15580 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
15581 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
15582 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
15583 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
15584 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
15585 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
15586 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
15587 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
15588 xsavecintrin.h, xsavesintrin.h.
15589 (x86_64-*-*): Ditto.
15590 * config/i386/clflushoptintrin.h: New.
15591 * config/i386/xsavecintrin.h: Ditto.
15592 * config/i386/xsavesintrin.h: Ditto.
15593 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
15594 (bit_XSAVES): Ditto.
15595 (bit_XSAVES): Ditto.
15596 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
15597 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
15599 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15600 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
15601 OPTION_MASK_ISA_XSAVES.
15602 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
15603 -mxsavec, -mxsaves.
15604 (PTA_CLFLUSHOPT) Define.
15605 (PTA_XSAVEC): Ditto.
15606 (PTA_XSAVES): Ditto.
15607 (ix86_option_override_internal): Handle new options.
15608 (ix86_valid_target_attribute_inner_p): Ditto.
15609 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
15610 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
15611 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
15612 (bdesc_special_args): Add __builtin_ia32_xsaves,
15613 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
15614 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
15615 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
15616 (ix86_expand_builtin): Handle new builtins.
15617 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
15618 (TARGET_CLFLUSHOPT_P): Ditto.
15619 (TARGET_XSAVEC): Ditto.
15620 (TARGET_XSAVEC_P): Ditto.
15621 (TARGET_XSAVES): Ditto.
15622 (TARGET_XSAVES_P): Ditto.
15623 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
15624 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
15625 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
15627 (ANY_XRSTOR64): Ditto.
15629 (xrstor): Change into <xrstor>.
15630 (xrstor_rex64): Change into <xrstor>_rex64.
15631 (xrstor64): Change into <xrstor>64
15633 * config/i386/i386.opt (mclflushopt): New.
15636 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
15638 * doc/invoke.texi: Document new options.
15640 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
15642 PR rtl-optimization/60866
15643 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
15644 Default it to -1. Pass it down to init_simplejump_data.
15645 (init_simplejump_data): New parameter old_seqno. Pass it down
15646 to get_seqno_for_a_jump.
15647 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
15648 initializing new jump seqno as a last resort. Add comment.
15649 (sel_redirect_edge_and_branch): Save old seqno of the conditional
15650 jump and pass it down to sel_init_new_insn.
15651 (sel_redirect_edge_and_branch_force): Likewise.
15653 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
15655 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
15656 shifted values to avoid build warning.
15658 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
15660 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
15661 * cfgrtl.c (rtl_merge_blocks): Fix comment.
15662 (cfg_layout_merge_blocks): Likewise.
15663 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
15665 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
15667 PR rtl-optimization/60901
15668 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
15669 bb predecessor belongs to the same scheduling region. Adjust comment.
15671 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
15673 * doc/sourcebuild.texi: (dfp_hw): Document.
15674 (p8vector_hw): Likewise.
15675 (powerpc_eabi_ok): Likewise.
15676 (powerpc_elfv2): Likewise.
15677 (powerpc_htm_ok): Likewise.
15678 (ppc_recip_hw): Likewise.
15679 (vsx_hw): Likewise.
15681 2014-05-13 Cary Coutant <ccoutant@google.com>
15683 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
15685 2014-05-13 David Malcolm <dmalcolm@redhat.com>
15687 * gengtype-parse.c (require3): Eliminate in favor of...
15689 (require_template_declaration): Update to support optional single *
15692 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
15693 (create_user_defined_type): Handle a single level of explicit
15694 pointerness within template arguments.
15695 (struct write_types_data): Add field "kind".
15696 (filter_type_name): Handle "*" character.
15697 (write_user_func_for_structure_ptr): Require a write_types_data
15698 rather than just a prefix string, so that we can look up the kind
15699 of the wtd and use it as an index into wrote_user_func_for_ptr,
15700 ensuring that such functions are written at most once. Support
15701 subclasses by invoking the marking function of the ultimate base class.
15702 (write_user_func_for_structure_body): Require a write_types_data
15703 rather than just a prefix string, so that we can pass this to
15704 write_user_func_for_structure_ptr.
15705 (write_func_for_structure): Likewise.
15706 (ggc_wtd): Add initializer of new "kind" field.
15707 (pch_wtd): Likewise.
15709 * gengtype.h (enum write_types_kinds): New.
15710 (struct type): Add field wrote_user_func_for_ptr to the "s"
15713 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
15715 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
15716 instead of const_binop.
15717 (fold_binary_loc): Likewise.
15719 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
15721 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
15722 calculation to match get_ref_base_and_extent.
15724 2014-05-13 Catherine Moore <clm@codesourcery.com>
15725 Sandra Loosemore <sandra@codesourcery.com>
15727 * configure.ac: Fix assembly for explicit JALR relocation check.
15728 * configure: Regenerate.
15730 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15732 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
15733 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
15734 Remove associated type declarations and initialisations.
15735 (arm_expand_neon_builtin): Likewise.
15736 (neon_emit_pair_result_insn): Delete.
15737 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
15738 * config/arm/neon.md (neon_vtrn<mode>): Delete.
15739 (neon_vzip<mode>): Likewise.
15740 (neon_vuzp<mode>): Likewise.
15742 2014-05-13 Richard Biener <rguenther@suse.de>
15745 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
15746 it needs revisiting whether the call still may be tail-called.
15748 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15750 * rtl.def (SYMBOL_REF): Remove middle "0" field.
15751 * rtl.h (block_symbol): Reduce number of fields to 2.
15752 (rtx_def): Add u2.symbol_ref_flags.
15753 (SYMBOL_REF_FLAGS): Use it.
15754 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
15755 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
15756 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
15757 Lower index of SYMBOL_REF_DATA.
15758 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
15759 Print SYMBOL_REF_FLAGS at the same time.
15760 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
15762 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15764 * rtl.def (VAR_LOCATION): Remove "i" field.
15765 * rtl.h (rtx_def): Add u2.var_location_status.
15766 (PAT_VAR_LOCATION_STATUS): Use it.
15767 (gen_rtx_VAR_LOCATION): Declare.
15768 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
15769 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
15770 * var-tracking.c (emit_note_insn_var_location): Remove casts.
15772 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15774 * rtl.def (scratch): Fix outdated comment and remove "0" field.
15775 * gengtype.c (adjust_field_rtx_def): Update accordingly.
15777 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15779 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
15780 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
15781 * rtl.h (rtx_def): Add insn_uid to u2 field.
15782 (RTX_FLAG_CHECK8): Delete in favor of...
15783 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
15784 (INSN_DELETED_P): Update accordingly.
15785 (INSN_UID): Use u2.insn_uid.
15786 (INSN_CHAIN_CODE_P): Define.
15787 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
15788 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
15789 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
15790 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
15791 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
15792 indices accordingly.
15793 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
15794 Update indices for insn-chain rtxes.
15795 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
15796 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
15797 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
15798 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
15799 * combine.c (try_combine): Likewise.
15800 * ira.c (setup_prohibited_mode_move_regs): Likewise.
15802 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15804 * rtl.def (REG): Remove middle field.
15805 * rtl.h (rtx_def): Add orignal_regno to u2.
15806 (ORIGINAL_REGNO): Use it instead of field 1.
15807 (REG_ATTRS): Lower field index accordingly.
15808 * gengtype.c (adjust_field_rtx_def): Remove handling of
15809 ORIGINAL_REGNO. Move REG_ATTRS index down.
15810 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
15811 code that prints the REGNO.
15813 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15815 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
15818 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15820 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
15822 2014-05-13 Bin Cheng <bin.cheng@arm.com>
15824 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
15825 (alloc_iv): Lower base expressions containing ADDR_EXPR.
15827 2014-05-13 Ian Bolton <ian.bolton@arm.com>
15829 * config/aarch64/aarch64-protos.h
15830 (aarch64_hard_regno_caller_save_mode): New prototype.
15831 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
15833 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
15835 2014-05-13 Christian Bruel <christian.bruel@st.com>
15837 * target.def (mode_switching): New hook vector.
15838 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
15839 (mode_exit, modepriority_to_mode): Likewise.
15840 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
15841 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15842 * target.h: Include tm.h and hard-reg-set.h.
15843 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
15844 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
15845 * doc/tm.texi Regenerate.
15846 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
15847 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15848 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
15849 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
15850 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
15851 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15852 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
15853 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
15854 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
15855 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
15856 (ix86_emit_mode_set): Hookify.
15857 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
15859 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15860 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
15861 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
15862 (epiphany_mode_priority_to_mode): Remove declaration.
15863 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
15864 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
15865 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
15867 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
15868 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
15869 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
15871 2014-05-13 Jakub Jelinek <jakub@redhat.com>
15874 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
15875 is const0_rtx, return immediately. Don't test count == 0 when
15878 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15880 * Makefile.in: add shrink-wrap.o.
15881 * config/i386/i386.c: include "shrink-wrap.h"
15882 * function.c: Likewise.
15883 (requires_stack_frame_p, next_block_for_reg,
15884 move_insn_for_shrink_wrap, prepare_shrink_wrap,
15885 dup_block_and_redirect): Move to shrink-wrap.c
15886 (thread_prologue_and_epilogue_insns): Extract three code segments
15887 as functions in shrink-wrap.c
15888 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
15890 * shrink-wrap.c: New file.
15891 * shrink-wrap.h: New file.
15893 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
15895 * doc/extend.texi: Reflect current numbers of pragmas. Remove
15896 reference to Solaris.
15898 2014-05-12 Mike Stump <mikestump@comcast.net>
15901 * genattrtab.c (filename): Add.
15902 (convert_set_attr_alternative): Improve error message.
15903 (check_defs): Restore read_md_filename for error messages.
15904 (gen_insn): Save filename.
15906 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
15908 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
15909 -fno-local-ivars and -fivar-visibility.
15910 * c-family/c.opt: Make -Wshadow also implicitly enable
15913 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
15915 * doc/tm.texi: Remove reference to deleted macro.
15916 * doc/tm.texi.in: Likewise.
15918 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15921 * config/avr/avr.c (avr_out_store_psi): Use correct constant
15924 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
15927 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
15928 * config/arm/aout.h (License): Same.
15929 * config/arm/bpabi.h (License): Same.
15930 * config/arm/elf.h (License): Same.
15931 * config/arm/linux-elf.h (License): Same.
15932 * config/arm/linux-gas.h (License): Same.
15933 * config/arm/netbsd-elf.h (License): Same.
15934 * config/arm/uclinux-eabi.h (License): Same.
15935 * config/arm/uclinux-elf.h (License): Same.
15936 * config/arm/vxworks.h (License): Same.
15938 2014-05-11 Jakub Jelinek <jakub@redhat.com>
15940 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
15941 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
15942 number of operands to 3.
15943 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
15944 * tree-nested.c (convert_nonlocal_omp_clauses,
15945 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
15946 * gimplify.c (gimplify_scan_omp_clauses): Handle
15947 OMP_CLAUSE_LINEAR_STMT.
15948 * omp-low.c (lower_rec_input_clauses): Fix typo.
15949 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
15950 cast between Fortran boolean_type_node and C _Bool if
15953 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
15955 PR tree-optimization/61136
15956 * wide-int.h (multiple_of_p): Define a version that doesn't return
15958 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
15959 integer_zerop/const_binop pair.
15960 (multiple_of_p): Likewise, converting both operands to widest_int
15963 2014-05-09 Teresa Johnson <tejohnson@google.com>
15965 * cgraphunit.c (analyze_functions): Use correct dump file.
15967 2014-05-09 Florian Weimer <fweimer@redhat.com>
15969 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
15971 (stack_protect_return_slot_p): New function.
15972 (expand_used_vars): Call stack_protect_decl_p and
15973 stack_protect_return_slot_p for -fstack-protector-strong.
15975 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
15976 Andrew Haley <aph@redhat.com>
15977 Richard Sandiford <rdsandiford@googlemail.com>
15979 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
15982 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
15984 PR middle-end/61111
15985 * fold-const.c (fold_binary_loc): Changed width of mask.
15987 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
15989 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
15990 unsigned int initializers for regno_in, regno_out.
15992 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
15995 * config/avr/avr.md (cc): Add new attribute set_vzn.
15996 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
15997 Set cc insn attribute to set_vzn instead of set_zn for alternatives
15998 with INC, DEC or NEG.
15999 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16000 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16001 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16003 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16006 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16008 * wide-int.cc (UTItype): Define.
16009 (UDWtype): Define for appropriate W_TYPE_SIZE.
16011 2014-05-09 Richard Biener <rguenther@suse.de>
16013 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16014 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16015 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16016 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16017 ssa_propagate): Adjust.
16019 2014-05-08 Jeff Law <law@redhat.com>
16021 PR tree-optimization/61009
16022 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16023 tri-state rather than a boolean. When a block is too big to
16024 thread through, inform caller via negative return value.
16025 (thread_across_edge): If a block was too big for normal threading,
16026 then it's too big for a joiner too, so remove temporary equivalences
16027 and return immediately.
16029 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16030 Matthias Klose <doko@ubuntu.com>
16033 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16035 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16038 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16040 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16043 * config/alpha/alpha.c: Include gimple-iterator.h.
16044 (alpha_gimple_fold_builtin): New function. Move
16045 ALPHA_BUILTIN_UMULH folding from ...
16046 (alpha_fold_builtin): ... here.
16047 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16049 2014-05-08 Wei Mi <wmi@google.com>
16052 * config/i386/i386.c (ix86_compute_frame_layout): Update
16053 preferred_stack_boundary for call, expanded from tls descriptor.
16054 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16055 to depend on SP register.
16056 (*tls_local_dynamic_base_32_gnu): Ditto.
16057 (*tls_local_dynamic_32_once): Ditto.
16058 (tls_global_dynamic_64_<mode>): Set
16059 ix86_tls_descriptor_calls_expanded_in_cfun.
16060 (tls_local_dynamic_base_64_<mode>): Ditto.
16061 (tls_global_dynamic_32): Set
16062 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16063 to depend on SP register.
16064 (tls_local_dynamic_base_32): Ditto.
16066 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16068 * config/arm/arm_neon.h: Update comment.
16069 * config/arm/neon-docgen.ml: Delete.
16070 * config/arm/neon-gen.ml: Delete.
16071 * doc/arm-neon-intrinsics.texi: Update comment.
16073 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16075 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16077 (vand, vorr, veor, vorn, vbic): Remove.
16078 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16080 (neon_vsub_unspec): Likewise.
16081 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16083 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16085 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16086 (vadd_s16): Likewise.
16087 (vadd_s32): Likewise.
16088 (vadd_f32): Likewise.
16089 (vadd_u8): Likewise.
16090 (vadd_u16): Likewise.
16091 (vadd_u32): Likewise.
16092 (vadd_s64): Likewise.
16093 (vadd_u64): Likewise.
16094 (vaddq_s8): Likewise.
16095 (vaddq_s16): Likewise.
16096 (vaddq_s32): Likewise.
16097 (vaddq_s64): Likewise.
16098 (vaddq_f32): Likewise.
16099 (vaddq_u8): Likewise.
16100 (vaddq_u16): Likewise.
16101 (vaddq_u32): Likewise.
16102 (vaddq_u64): Likewise.
16103 (vmul_s8): Likewise.
16104 (vmul_s16): Likewise.
16105 (vmul_s32): Likewise.
16106 (vmul_f32): Likewise.
16107 (vmul_u8): Likewise.
16108 (vmul_u16): Likewise.
16109 (vmul_u32): Likewise.
16110 (vmul_p8): Likewise.
16111 (vmulq_s8): Likewise.
16112 (vmulq_s16): Likewise.
16113 (vmulq_s32): Likewise.
16114 (vmulq_f32): Likewise.
16115 (vmulq_u8): Likewise.
16116 (vmulq_u16): Likewise.
16117 (vmulq_u32): Likewise.
16118 (vsub_s8): Likewise.
16119 (vsub_s16): Likewise.
16120 (vsub_s32): Likewise.
16121 (vsub_f32): Likewise.
16122 (vsub_u8): Likewise.
16123 (vsub_u16): Likewise.
16124 (vsub_u32): Likewise.
16125 (vsub_s64): Likewise.
16126 (vsub_u64): Likewise.
16127 (vsubq_s8): Likewise.
16128 (vsubq_s16): Likewise.
16129 (vsubq_s32): Likewise.
16130 (vsubq_s64): Likewise.
16131 (vsubq_f32): Likewise.
16132 (vsubq_u8): Likewise.
16133 (vsubq_u16): Likewise.
16134 (vsubq_u32): Likewise.
16135 (vsubq_u64): Likewise.
16136 (vand_s8): Likewise.
16137 (vand_s16): Likewise.
16138 (vand_s32): Likewise.
16139 (vand_u8): Likewise.
16140 (vand_u16): Likewise.
16141 (vand_u32): Likewise.
16142 (vand_s64): Likewise.
16143 (vand_u64): Likewise.
16144 (vandq_s8): Likewise.
16145 (vandq_s16): Likewise.
16146 (vandq_s32): Likewise.
16147 (vandq_s64): Likewise.
16148 (vandq_u8): Likewise.
16149 (vandq_u16): Likewise.
16150 (vandq_u32): Likewise.
16151 (vandq_u64): Likewise.
16152 (vorr_s8): Likewise.
16153 (vorr_s16): Likewise.
16154 (vorr_s32): Likewise.
16155 (vorr_u8): Likewise.
16156 (vorr_u16): Likewise.
16157 (vorr_u32): Likewise.
16158 (vorr_s64): Likewise.
16159 (vorr_u64): Likewise.
16160 (vorrq_s8): Likewise.
16161 (vorrq_s16): Likewise.
16162 (vorrq_s32): Likewise.
16163 (vorrq_s64): Likewise.
16164 (vorrq_u8): Likewise.
16165 (vorrq_u16): Likewise.
16166 (vorrq_u32): Likewise.
16167 (vorrq_u64): Likewise.
16168 (veor_s8): Likewise.
16169 (veor_s16): Likewise.
16170 (veor_s32): Likewise.
16171 (veor_u8): Likewise.
16172 (veor_u16): Likewise.
16173 (veor_u32): Likewise.
16174 (veor_s64): Likewise.
16175 (veor_u64): Likewise.
16176 (veorq_s8): Likewise.
16177 (veorq_s16): Likewise.
16178 (veorq_s32): Likewise.
16179 (veorq_s64): Likewise.
16180 (veorq_u8): Likewise.
16181 (veorq_u16): Likewise.
16182 (veorq_u32): Likewise.
16183 (veorq_u64): Likewise.
16184 (vbic_s8): Likewise.
16185 (vbic_s16): Likewise.
16186 (vbic_s32): Likewise.
16187 (vbic_u8): Likewise.
16188 (vbic_u16): Likewise.
16189 (vbic_u32): Likewise.
16190 (vbic_s64): Likewise.
16191 (vbic_u64): Likewise.
16192 (vbicq_s8): Likewise.
16193 (vbicq_s16): Likewise.
16194 (vbicq_s32): Likewise.
16195 (vbicq_s64): Likewise.
16196 (vbicq_u8): Likewise.
16197 (vbicq_u16): Likewise.
16198 (vbicq_u32): Likewise.
16199 (vbicq_u64): Likewise.
16200 (vorn_s8): Likewise.
16201 (vorn_s16): Likewise.
16202 (vorn_s32): Likewise.
16203 (vorn_u8): Likewise.
16204 (vorn_u16): Likewise.
16205 (vorn_u32): Likewise.
16206 (vorn_s64): Likewise.
16207 (vorn_u64): Likewise.
16208 (vornq_s8): Likewise.
16209 (vornq_s16): Likewise.
16210 (vornq_s32): Likewise.
16211 (vornq_s64): Likewise.
16212 (vornq_u8): Likewise.
16213 (vornq_u16): Likewise.
16214 (vornq_u32): Likewise.
16215 (vornq_u64): Likewise.
16217 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16219 * wide-int.cc (UTItype): Define.
16220 (UDWtype): Define for appropriate W_TYPE_SIZE.
16222 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16224 PR tree-optimization/59100
16225 * tree-ssa-phiopt.c: Include tree-inline.h.
16226 (neutral_element_p, absorbing_element_p): New functions.
16227 (value_replacement): Handle conditional binary operations with a
16228 neutral or absorbing element.
16230 2014-05-08 Richard Biener <rguenther@suse.de>
16232 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16233 folding the expression.
16234 (valueize_expr): Remove.
16235 (visit_reference_op_load): Do not valueize the result of
16237 (simplify_binary_expression): Likewise.
16238 (simplify_unary_expression): Likewise.
16240 2014-05-08 Richard Biener <rguenther@suse.de>
16242 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16243 looking at TYPE_ARG_TYPES.
16245 2014-05-08 Richard Biener <rguenther@suse.de>
16247 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16248 pointer propagation special-case.
16250 2014-05-08 Bin Cheng <bin.cheng@arm.com>
16252 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16253 core part of address expressions.
16255 2014-05-08 Alan Modra <amodra@gmail.com>
16258 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16259 loads and stores when -mno-strict-align at any alignment.
16260 (expand_block_clear): Similarly. Also correct calculation of
16263 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16265 PR middle-end/39246
16266 * tree-complex.c (expand_complex_move): Keep line info when expanding
16268 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16269 of complex expression. Use new argument to display correct location
16270 for values coming from phi statement.
16271 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
16272 (warn_uninitialized_phi): Pass location of phi argument to
16274 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
16275 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
16277 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16279 * config/rs6000/predicates.md (indexed_address_mem): New.
16280 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
16281 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
16282 fpstore_ux, fpstore_u.
16283 (sign_extend, indexed, update): New.
16284 (cell_micro): Adjust.
16285 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
16286 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
16287 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
16288 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
16289 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
16290 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
16291 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
16292 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
16293 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
16294 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
16295 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
16296 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
16297 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
16298 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
16299 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
16301 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
16302 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
16303 *vsx_extract_<mode>_store): Adjust.
16304 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
16305 is_cracked_insn, insn_must_be_first_in_group,
16306 insn_must_be_last_in_group): Adjust.
16308 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
16310 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
16311 ppc440-fpstore): Adjust.
16312 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
16313 ppc476-fpstore): Adjust.
16314 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
16315 ppc601-fpstore): Adjust.
16316 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
16318 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
16320 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
16321 ppc7450-fpstore): Adjust.
16322 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
16323 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
16324 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
16326 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
16327 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
16328 cell-fpstore, cell-fpstore-update): Adjust.
16329 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
16330 ppce300c3_store, ppce300c3_fpstore): Adjust.
16331 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
16332 e500mc_fpstore): Adjust.
16333 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
16334 e500mc64_store, e500mc64_fpstore): Adjust.
16335 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
16336 e5500_fpstore): Adjust.
16337 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
16338 e6500_fpstore): Adjust.
16339 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
16341 * config/rs6000/power4.md (power4-load, power4-load-ext,
16342 power4-load-ext-update, power4-load-ext-update-indexed,
16343 power4-load-update-indexed, power4-load-update, power4-fpload,
16344 power4-fpload-update, power4-store, power4-store-update,
16345 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
16347 * config/rs6000/power5.md (power5-load, power5-load-ext,
16348 power5-load-ext-update, power5-load-ext-update-indexed,
16349 power5-load-update-indexed, power5-load-update, power5-fpload,
16350 power5-fpload-update, power5-store, power5-store-update,
16351 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
16353 * config/rs6000/power6.md (power6-load, power6-load-ext,
16354 power6-load-update, power6-load-update-indexed,
16355 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
16356 power6-fpload-update, power6-store, power6-store-update,
16357 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
16359 * config/rs6000/power7.md (power7-load, power7-load-ext,
16360 power7-load-update, power7-load-update-indexed,
16361 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
16362 power7-fpload-update, power7-store, power7-store-update,
16363 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
16365 * config/rs6000/power8.md (power8-load, power8-load-update,
16366 power8-load-ext, power8-load-ext-update, power8-fpload,
16367 power8-fpload-update, power8-store, power8-store-update-indexed,
16368 power8-fpstore, power8-fpstore-update): Adjust.
16369 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
16371 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
16372 titan_lsu_store, titan_lsu_fpstore): Adjust.
16373 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
16375 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16378 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
16379 unrolled byte insns. Emit address increments after move insns.
16381 2014-05-07 David Malcolm <dmalcolm@redhat.com>
16383 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
16384 const_gimple, rather than a gimple.
16385 (gimple_call_builtin_p): Likewise, for the three variants.
16387 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
16388 (gimple_call_builtin_p): Likewise, for the three variants.
16390 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16392 PR tree-optimization/61095
16393 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
16395 2014-05-07 Richard Biener <rguenther@suse.de>
16397 PR tree-optimization/61034
16398 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
16399 (maybe_skip_until): Use translate to take into account
16400 lattices when trying to do disambiguations.
16401 (get_continuation_for_phi_1): Likewise.
16402 (get_continuation_for_phi): Adjust for added translate arguments.
16403 (walk_non_aliased_vuses): Likewise.
16404 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
16405 (walk_non_aliased_vuses): Likewise.
16406 (call_may_clobber_ref_p_1): Declare.
16407 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
16408 calls. Stop early if we are only supposed to disambiguate.
16409 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
16411 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
16413 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
16414 Emit an error when the function has arguments.
16416 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16418 * cfgloop.h (unswitch_loops): Remove.
16419 * doc/passes.texi: Remove references to loop-unswitch.c
16420 * timevar.def (TV_LOOP_UNSWITCH): Remove.
16422 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
16424 * tree-vect-data-refs.c (vect_grouped_load_supported): New
16425 check for loads group of length 3.
16426 (vect_permute_load_chain): New permutations for loads group of
16428 * tree-vect-stmts.c (vect_model_load_cost): Change cost
16429 of vec_perm_shuffle for the new permutations.
16431 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
16433 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
16434 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
16435 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
16436 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
16437 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
16438 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
16439 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
16440 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
16442 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16444 * loop-unswitch.c: Delete.
16446 2014-05-07 Richard Biener <rguenther@suse.de>
16448 * config.gcc: Always set need_64bit_hwint to yes.
16450 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
16452 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
16453 of using optimize_size.
16455 2014-05-06 Mike Stump <mikestump@comcast.net>
16457 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
16459 2014-05-06 Joseph Myers <joseph@codesourcery.com>
16461 * config/i386/sse.md (*mov<mode>_internal)
16462 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
16463 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
16464 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
16465 (*<code><mode>3, *andnot<mode>3<mask_name>)
16466 (<mask_codefor><code><mode>3<mask_name>): Only consider
16467 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
16469 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16472 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
16474 * lra-constraints.c (valid_address_p): Move earlier in file.
16475 Add a constraint argument to the address_info version.
16476 (satisfies_memory_constraint_p): New function.
16477 (satisfies_address_constraint_p): Likewise.
16478 (process_alt_operands, curr_insn_transform): Use them.
16479 (process_address): Pass the constraint to valid_address_p when
16480 checking address operands.
16482 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
16484 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
16485 to their respective blocks. Fix inadvertent use of "node".
16487 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16489 * emit-rtl.c (init_derived_machine_modes): New functionm, split
16491 (init_emit_once): ...here.
16492 * rtl.h (init_derived_machine_modes): Declare.
16493 * toplev.c (do_compile): Call it even if no_backend.
16495 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
16496 Mike Stump <mikestump@comcast.net>
16497 Richard Sandiford <rdsandiford@googlemail.com>
16498 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16500 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
16501 (rtx_equal_for_memref_p): Update comment.
16502 (adjust_offset_for_component_ref): Use wide-int interfaces.
16503 * builtins.c (get_object_alignment_2): Likewise.
16504 (c_readstr): Likewise.
16505 (target_char_cast): Add comment.
16506 (determine_block_size): Use wide-int interfaces.
16507 (expand_builtin_signbit): Likewise.
16508 (fold_builtin_int_roundingfn): Likewise.
16509 (fold_builtin_bitop): Likewise.
16510 (fold_builtin_bswap): Likewise.
16511 (fold_builtin_logarithm): Use signop.
16512 (fold_builtin_pow): Likewise.
16513 (fold_builtin_memory_op): Use wide-int interfaces.
16514 (fold_builtin_object_size): Likewise.
16515 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
16516 nb_iterations_estimate.
16517 (record_niter_bound): Use wide-int interfaces.
16518 (get_estimated_loop_iterations_int): Likewise.
16519 (get_estimated_loop_iterations): Likewise.
16520 (get_max_loop_iterations): Likewise.
16521 * cfgloop.h: Include wide-int.h.
16522 (struct nb_iter_bound): Change bound to widest_int.
16523 (struct loop): Change nb_iterations_upper_bound and
16524 nb_iterations_estimate to widest_int.
16525 (record_niter_bound): Switch to use widest_int.
16526 (get_estimated_loop_iterations): Likewise.
16527 (get_max_loop_iterations): Likewise.
16528 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
16529 update for wide-int.
16530 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
16531 * combine.c (try_combine): Likewise.
16532 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
16533 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
16535 (aarch64_float_const_representable_p): Likewise.
16536 * config/arc/arc.c: Include wide-int.h.
16537 (arc_can_use_doloop_p): Use wide-int interfaces.
16538 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
16539 (vfp3_const_double_index): Likewise.
16540 * config/avr/avr.c (avr_out_round): Likewise.
16541 (avr_fold_builtin): Likewise.
16542 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
16543 (bfin_can_use_doloop_p): Likewise.
16544 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
16545 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
16546 * config/i386/i386.c: Include wide-int.h.
16547 (ix86_data_alignment): Use wide-int interfaces.
16548 (ix86_local_alignment): Likewise.
16549 (ix86_emit_swsqrtsf): Update real_from_integer.
16550 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
16551 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
16552 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
16553 (zero_constant): Likewise.
16554 (input_operand): Likewise.
16555 (splat_input_operand): Likewise.
16556 (non_logical_cint_operand): Change const_double to const_wide_int.
16557 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
16558 (easy_altivec_constant): Remove comment.
16559 (paired_expand_vector_init): Use CONSTANT_P.
16560 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
16561 (rs6000_emit_move): Update checks.
16562 (rs6000_aggregate_candidate): Use wide-int interfaces.
16563 (rs6000_expand_ternop_builtin): Likewise.
16564 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
16565 (rs6000_assemble_integer): Likewise.
16566 (rs6000_hash_constant): Likewise.
16567 (output_toc): Likewise.
16568 (rs6000_rtx_costs): Likewise.
16569 (rs6000_emit_swrsqrt); Update call to real_from_integer.
16570 * config/rs6000/rs6000-c.c: Include wide-int.h.
16571 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
16572 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
16573 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
16574 Handle CONST_WIDE_INT.
16575 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
16576 Use tree_fits_uhwi_p.
16577 * config/sparc/sparc.c: Include wide-int.h.
16578 (sparc_fold_builtin): Use wide-int interfaces.
16579 * config/vax/vax.c: Include wide-int.h.
16580 (vax_float_literal): Use real_from_integer.
16581 * coretypes.h (struct hwivec_def): New.
16583 (const_hwivec): New.
16584 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
16585 (equiv_constant): Handle CONST_WIDE_INT.
16586 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
16587 (cselib_hash_rtx): Handle CONST_WIDE_INT.
16588 * dbxout.c (stabstr_U): Use wide-int interfaces.
16589 (dbxout_type): Update to use cst_fits_shwi_p.
16590 * defaults.h (LOG2_BITS_PER_UNIT): Define.
16591 (TARGET_SUPPORTS_WIDE_INT): Add default.
16592 * dfp.c: Include wide-int.h.
16593 (decimal_real_to_integer2): Use wide-int interfaces and rename to
16594 decimal_real_to_integer.
16595 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
16596 decimal_real_to_integer.
16597 * doc/generic.texi (Constant expressions): Update for wide_int.
16598 * doc/rtl.texi (const_double): Likewise.
16599 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
16600 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
16601 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
16602 (REAL_VALUE_FROM_INT): Remove.
16603 (TARGET_SUPPORTS_WIDE_INT): New.
16604 * doc/tm.texi: Regenerate.
16605 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
16606 * double-int.h: Include wide-int.h.
16607 (struct wi::int_traits): New.
16608 * dwarf2out.c (get_full_len): New.
16609 (dw_val_equal_p): Add case dw_val_class_wide_int.
16610 (size_of_loc_descr): Likewise.
16611 (output_loc_operands): Likewise.
16612 (insert_double): Remove.
16613 (insert_wide_int): New.
16614 (add_AT_wide): New.
16615 (print_die): Add case dw_val_class_wide_int.
16616 (attr_checksum): Likewise.
16617 (attr_checksum_ordered): Likewise.
16618 (same_dw_val_p): Likewise.
16619 (size_of_die): Likewise.
16620 (value_format): Likewise.
16621 (output_die): Likewise.
16622 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
16624 (clz_loc_descriptor): Use wide-int interfaces.
16625 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
16626 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
16627 (round_up_to_align): Use wide-int interfaces.
16628 (field_byte_offset): Likewise.
16629 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
16630 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
16631 CONST_DOUBLE handling. Use wide-int interfaces.
16632 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
16633 (gen_enumeration_type_die): Use add_AT_wide.
16634 (hash_loc_operands): Add case dw_val_class_wide_int.
16635 (compare_loc_operands): Likewise.
16636 * dwarf2out.h: Include wide-int.h.
16637 (wide_int_ptr): New.
16638 (enum dw_val_class): Add dw_val_class_wide_int.
16639 (struct dw_val_struct): Add val_wide.
16640 * emit-rtl.c (const_wide_int_htab): New.
16641 (const_wide_int_htab_hash): New.
16642 (const_wide_int_htab_eq): New.
16643 (lookup_const_wide_int): New.
16644 (const_double_htab_hash): Use wide-int interfaces.
16645 (const_double_htab_eq): Likewise.
16646 (rtx_to_double_int): Conditionally compile for wide-int.
16647 (immed_double_int_const): Rename to immed_wide_int_const and
16648 update for wide-int.
16649 (immed_double_const): Conditionally compile for wide-int.
16650 (init_emit_once): Use wide-int interfaces.
16651 * explow.c (plus_constant): Likewise.
16652 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
16653 (lshift_value): Use wide-int interfaces.
16654 (expand_mult): Likewise.
16655 (choose_multiplier): Likewise.
16656 (expand_smod_pow2): Likewise.
16657 (make_tree): Likewise.
16658 * expr.c (convert_modes): Consolidate handling of constants.
16659 Use wide-int interfaces.
16660 (emit_group_load_1): Add note.
16661 (store_expr): Update comment.
16662 (get_inner_reference): Use wide-int interfaces.
16663 (expand_constructor): Update comment.
16664 (expand_expr_real_2): Use wide-int interfaces.
16665 (expand_expr_real_1): Likewise.
16666 (reduce_to_bit_field_precision): Likewise.
16667 (const_vector_from_tree): Likewise.
16668 * final.c: Include wide-int-print.h.
16669 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
16670 * fixed-value.c: Include wide-int.h.
16671 (fixed_from_string): Use wide-int interfaces.
16672 (fixed_to_decimal): Likewise.
16673 (fixed_convert_from_real): Likewise.
16674 (real_convert_from_fixed): Likewise.
16675 * fold-const.h (mem_ref_offset): Return an offset_int.
16676 (div_if_zero_remainder): Remove code parameter.
16677 * fold-const.c (div_if_zero_remainder): Remove code parameter.
16678 Use wide-int interfaces.
16679 (may_negate_without_overflow_p): Use wide-int interfaces.
16680 (negate_expr_p): Likewise.
16681 (fold_negate_expr): Likewise.
16682 (int_const_binop_1): Likewise.
16683 (const_binop): Likewise.
16684 (fold_convert_const_int_from_int): Likewise.
16685 (fold_convert_const_int_from_real): Likewise.
16686 (fold_convert_const_int_from_fixed): Likewise.
16687 (fold_convert_const_fixed_from_int): Likewise.
16688 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
16689 (sign_bit_p): Use wide-int interfaces.
16690 (make_range_step): Likewise.
16691 (build_range_check): Likewise. Pass an integer of the correct type
16692 instead of using integer_one_node.
16693 (range_predecessor): Pass an integer of the correct type instead
16694 of using integer_one_node.
16695 (range_successor): Likewise.
16696 (merge_ranges): Likewise.
16697 (unextend): Use wide-int interfaces.
16698 (extract_muldiv_1): Likewise.
16699 (fold_div_compare): Likewise.
16700 (fold_single_bit_test): Likewise.
16701 (fold_sign_changed_comparison): Likewise.
16702 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
16703 (fold_plusminus_mult_expr): Use wide-int interfaces.
16704 (native_encode_int): Likewise.
16705 (native_interpret_int): Likewise.
16706 (fold_unary_loc): Likewise.
16707 (pointer_may_wrap_p): Likewise.
16708 (size_low_cst): Likewise.
16709 (mask_with_tz): Likewise.
16710 (fold_binary_loc): Likewise.
16711 (fold_ternary_loc): Likewise.
16712 (multiple_of_p): Likewise.
16713 (tree_call_nonnegative_warnv_p): Update calls to
16714 tree_int_cst_min_precision and real_from_integer.
16715 (fold_negate_const): Use wide-int interfaces.
16716 (fold_abs_const): Likewise.
16717 (fold_relational_const): Use tree_int_cst_lt.
16718 (round_up_loc): Use wide-int interfaces.
16719 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
16720 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
16721 * gengtype.c: Remove include of double-int.h.
16722 (do_typedef): Use wide-int interfaces.
16723 (open_base_files): Add wide-int.h.
16724 (main): Add offset_int and widest_int typedefs.
16725 * gengtype-lex.l: Handle "^".
16726 (CXX_KEYWORD): Add "static".
16727 * gengtype-parse.c (require3): New.
16728 (require_template_declaration): Handle constant template arguments
16729 and nested templates.
16730 * gengtype-state.c: Don't include "double-int.h".
16731 * genpreds.c (write_one_predicate_function): Update comment.
16732 (write_tm_constrs_h): Add check for hval and lval use in
16734 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
16735 (add_to_sequence): Likewise.
16736 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
16737 and const_double_operand.
16738 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
16740 * gimple-fold.c (get_base_constructor): Likewise.
16741 (fold_array_ctor_reference): Likewise.
16742 (fold_nonarray_ctor_reference): Likewise.
16743 (fold_const_aggregate_ref_1): Likewise.
16744 (gimple_val_nonnegative_real_p): Likewise.
16745 (gimple_fold_indirect_ref): Likewise.
16746 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
16747 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
16748 (struct slsr_cand_d): Change index to be widest_int.
16749 (struct incr_info_d): Change incr to be widest_int.
16750 (alloc_cand_and_find_basis): Use wide-int interfaces.
16751 (slsr_process_phi): Likewise.
16752 (backtrace_base_for_ref): Likewise. Return a widest_int.
16753 (restructure_reference): Take a widest_int instead of a double_int.
16754 (slsr_process_ref): Use wide-int interfaces.
16755 (create_mul_ssa_cand): Likewise.
16756 (create_mul_imm_cand): Likewise.
16757 (create_add_ssa_cand): Likewise.
16758 (create_add_imm_cand): Take a widest_int instead of a double_int.
16759 (slsr_process_add): Use wide-int interfaces.
16760 (slsr_process_cast): Likewise.
16761 (slsr_process_copy): Likewise.
16762 (dump_candidate): Likewise.
16763 (dump_incr_vec): Likewise.
16764 (replace_ref): Likewise.
16765 (cand_increment): Likewise. Return a widest_int.
16766 (cand_abs_increment): Likewise.
16767 (replace_mult_candidate): Take a widest_int instead of a double_int.
16768 (replace_unconditional_candidate): Use wide-int interfaces.
16769 (incr_vec_index): Take a widest_int instead of a double_int.
16770 (create_add_on_incoming_edge): Likewise.
16771 (create_phi_basis): Use wide-int interfaces.
16772 (replace_conditional_candidate): Likewise.
16773 (record_increment): Take a widest_int instead of a double_int.
16774 (record_phi_increments): Use wide-int interfaces.
16775 (phi_incr_cost): Take a widest_int instead of a double_int.
16776 (lowest_cost_path): Likewise.
16777 (total_savings): Likewise.
16778 (analyze_increments): Use wide-int interfaces.
16779 (ncd_with_phi): Take a widest_int instead of a double_int.
16780 (ncd_of_cand_and_phis): Likewise.
16781 (nearest_common_dominator_for_cands): Likewise.
16782 (insert_initializers): Use wide-int interfaces.
16783 (all_phi_incrs_profitable): Likewise.
16784 (replace_one_candidate): Likewise.
16785 (replace_profitable_candidates): Likewise.
16786 * godump.c: Include wide-int-print.h.
16787 (go_output_typedef): Use wide-int interfaces.
16788 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
16789 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
16790 (build_loop_iteration_domains): Likewise.
16791 * hooks.h: Include wide-int.h rather than double-int.h.
16792 (hook_bool_dint_dint_uint_bool_true): Delete.
16793 (hook_bool_wint_wint_uint_bool_true): Declare.
16794 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
16795 (hook_bool_wint_wint_uint_bool_true): New.
16796 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
16798 (ubsan_expand_si_overflow_mul_check): Likewise.
16799 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
16800 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
16801 (get_ancestor_addr_info): Likewise.
16802 (ipa_modify_call_arguments): Likewise.
16803 * loop-doloop.c (doloop_modify): Likewise.
16804 (doloop_optimize): Likewise.
16805 * loop-iv.c (iv_number_of_iterations): Likewise.
16806 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
16807 (unroll_loop_constant_iterations): Likewise.
16808 (decide_unroll_runtime_iterations): Likewise.
16809 (unroll_loop_runtime_iterations): Likewise.
16810 (decide_peel_simple): Likewise.
16811 (decide_unroll_stupid): Likewise.
16812 * lto-streamer-in.c (streamer_read_wi): Add.
16813 (input_cfg): Use wide-int interfaces.
16814 (lto_input_tree_1): Likewise.
16815 * lto-streamer-out.c (streamer_write_wi): Add.
16816 (hash_tree): Use wide-int interfaces.
16817 (output_cfg): Likewise.
16818 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
16819 (GTFILES): Add wide-int.h and signop.h.
16820 (TAGS): Look for .cc files too.
16821 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
16822 * optabs.c (expand_subword_shift): Likewise.
16823 (expand_doubleword_shift): Likewise.
16824 (expand_absneg_bit): Likewise.
16825 (expand_copysign_absneg): Likewise.
16826 (expand_copysign_bit): Likewise.
16827 * postreload.c (reload_cse_simplify_set): Likewise.
16828 * predict.c (predict_iv_comparison): Likewise.
16829 * pretty-print.h: Include wide-int-print.h.
16831 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
16832 * print-tree.c: Include wide-int-print.h.
16833 (print_node_brief): Use wide-int interfaces.
16834 (print_node): Likewise.
16835 * read-rtl.c (validate_const_wide_int): New.
16836 (read_rtx_code): Add CONST_WIDE_INT case.
16837 * real.c: Include wide-int.h.
16838 (real_to_integer2): Delete.
16839 (real_to_integer): New function, returning a wide_int.
16840 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
16841 (ten_to_ptwo): Update call to real_from_integer.
16842 (real_digit): Likewise.
16843 * real.h: Include signop.h, wide-int.h and insn-modes.h.
16844 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
16845 (REAL_VALUE_TO_INT): Delete.
16846 (real_to_integer): Declare a wide-int form.
16847 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
16848 * recog.c (const_int_operand): Improve comment.
16849 (const_scalar_int_operand): New.
16850 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
16851 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
16852 (split_double): Likewise.
16853 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
16854 (rtx_size): Likewise.
16855 (rtx_alloc_stat_v): New.
16856 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
16857 (cwi_output_hex): New.
16858 (iterative_hash_rtx): Handle CONST_WIDE_INT.
16859 (cwi_check_failed_bounds): New.
16860 * rtl.def (CONST_WIDE_INT): New.
16861 * rtl.h: Include <utility> and wide-int.h.
16862 (struct hwivec_def): New.
16863 (CWI_GET_NUM_ELEM): New.
16864 (CWI_PUT_NUM_ELEM): New.
16865 (struct rtx_def): Add num_elem and hwiv.
16866 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
16867 (CASE_CONST_UNIQUE): Likewise.
16868 (CASE_CONST_ANY): Likewise.
16869 (CONST_SCALAR_INT_P): Likewise.
16870 (CONST_WIDE_INT_P): New.
16872 (HWIVEC_CHECK): New.
16873 (cwi_check_failed_bounds): New.
16875 (HWIVEC_CHECK): New.
16876 (CONST_WIDE_INT_VEC) New.
16877 (CONST_WIDE_INT_NUNITS) New.
16878 (CONST_WIDE_INT_ELT) New.
16879 (rtx_mode_t): New type.
16880 (wi::int_traits <rtx_mode_t>): New.
16882 (wi::min_value): New.
16883 (wi::max_value): New.
16885 (const_wide_int_alloc): New.
16886 (immed_wide_int_const): New.
16887 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
16888 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
16889 * signop.h: New file.
16890 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
16891 (simplify_const_unary_operation): Use wide-int interfaces.
16892 (simplify_binary_operation_1): Likewise.
16893 (simplify_const_binary_operation): Likewise.
16894 (simplify_const_relational_operation): Likewise.
16895 (simplify_immed_subreg): Likewise.
16896 * stmt.c (expand_case): Likewise.
16897 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
16898 signop rather than a bool.
16899 * stor-layout.c (layout_type): Use wide-int interfaces.
16900 (initialize_sizetypes): Update calls to
16901 set_min_and_max_values_for_integral_type.
16902 (set_min_and_max_values_for_integral_type): Take a signop rather
16903 than a bool. Use wide-int interfaces.
16904 (fixup_signed_type): Update accordingly. Remove
16905 HOST_BITS_PER_DOUBLE_INT limit.
16906 (fixup_unsigned_type): Likewise.
16907 * system.h (STATIC_CONSTANT_P): New.
16908 (STATIC_ASSERT): New.
16909 * target.def (can_use_doloop_p): Take widest_ints rather than
16911 * target.h: Include wide-int.h rather than double-int.h.
16912 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
16914 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
16915 rather than INT_CST_LT_UNSIGNED.
16916 (can_use_doloop_if_innermost): Take widest_ints rather than
16918 * tree-affine.c: Include wide-int-print.h.
16919 (double_int_ext_for_comb): Delete.
16920 (wide_int_ext_for_comb): New.
16921 (aff_combination_zero): Use wide-int interfaces.
16922 (aff_combination_const): Take a widest_int instead of a double_int.
16923 (aff_combination_elt): Use wide-int interfaces.
16924 (aff_combination_scale): Take a widest_int instead of a double_int.
16925 (aff_combination_add_elt): Likewise.
16926 (aff_combination_add_cst): Likewise.
16927 (aff_combination_add): Use wide-int interfaces.
16928 (aff_combination_convert): Likewise.
16929 (tree_to_aff_combination): Likewise.
16930 (add_elt_to_tree): Take a widest_int instead of a double_int.
16931 (aff_combination_to_tree): Use wide-int interfaces.
16932 (aff_combination_remove_elt): Likewise.
16933 (aff_combination_add_product): Take a widest_int instead of
16935 (aff_combination_mult): Use wide-int interfaces.
16936 (aff_combination_expand): Likewise.
16937 (double_int_constant_multiple_p): Delete.
16938 (wide_int_constant_multiple_p): New.
16939 (aff_combination_constant_multiple_p): Take a widest_int pointer
16940 instead of a double_int pointer.
16941 (print_aff): Use wide-int interfaces.
16942 (get_inner_reference_aff): Take a widest_int pointer
16943 instead of a double_int pointer.
16944 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
16945 * tree-affine.h: Include wide-int.h.
16946 (struct aff_comb_elt): Change type of coef to widest_int.
16947 (struct affine_tree_combination): Change type of offset to widest_int.
16948 (double_int_ext_for_comb): Delete.
16949 (wide_int_ext_for_comb): New.
16950 (aff_combination_const): Use widest_int instead of double_int.
16951 (aff_combination_scale): Likewise.
16952 (aff_combination_add_elt): Likewise.
16953 (aff_combination_constant_multiple_p): Likewise.
16954 (get_inner_reference_aff): Likewise.
16955 (aff_comb_cannot_overlap_p): Likewise.
16956 (aff_combination_zero_p): Use wide-int interfaces.
16957 * tree.c: Include tree.h.
16958 (init_ttree): Use make_int_cst.
16959 (tree_code_size): Removed code for INTEGER_CST case.
16960 (tree_size): Add INTEGER_CST case.
16961 (make_node_stat): Update comment.
16962 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
16963 (build_int_cst_type): Use wide-int interfaces.
16964 (double_int_to_tree): Likewise.
16965 (double_int_fits_to_tree_p): Delete.
16966 (force_fit_type_double): Delete.
16967 (force_fit_type): New.
16968 (int_cst_hash_hash): Use wide-int interfaces.
16969 (int_cst_hash_eq): Likewise.
16970 (build_int_cst_wide): Delete.
16971 (wide_int_to_tree): New.
16972 (cache_integer_cst): Use wide-int interfaces.
16973 (build_low_bits_mask): Likewise.
16974 (cst_and_fits_in_hwi): Likewise.
16975 (real_value_from_int_cst): Likewise.
16976 (make_int_cst_stat): New.
16977 (integer_zerop): Use wide_int interfaces.
16978 (integer_onep): Likewise.
16979 (integer_all_onesp): Likewise.
16980 (integer_pow2p): Likewise.
16981 (integer_nonzerop): Likewise.
16982 (tree_log2): Likewise.
16983 (tree_floor_log2): Likewise.
16984 (tree_ctz): Likewise.
16985 (int_size_in_bytes): Likewise.
16986 (mem_ref_offset): Return an offset_int rather than a double_int.
16987 (build_type_attribute_qual_variant): Use wide_int interfaces.
16988 (type_hash_eq): Likewise
16989 (tree_int_cst_equal): Likewise.
16990 (tree_int_cst_lt): Delete.
16991 (tree_int_cst_compare): Likewise.
16992 (tree_fits_shwi_p): Use wide_int interfaces.
16993 (tree_fits_uhwi_p): Likewise.
16994 (tree_int_cst_sign_bit): Likewise.
16995 (tree_int_cst_sgn): Likewise.
16996 (tree_int_cst_min_precision): Take a signop rather than a bool.
16997 (simple_cst_equal): Use wide_int interfaces.
16998 (compare_tree_int): Likewise.
16999 (iterative_hash_expr): Likewise.
17000 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17002 (get_type_static_bounds): Use wide_int interfaces.
17003 (tree_int_cst_elt_check_failed): New.
17004 (build_common_tree_nodes): Reordered to set prec before filling in
17006 (int_cst_value): Check cst_and_fits_in_hwi.
17007 (widest_int_cst_value): Use wide_int interfaces.
17008 (upper_bound_in_type): Likewise.
17009 (lower_bound_in_type): Likewise.
17010 (num_ending_zeros): Likewise.
17011 (drop_tree_overflow): Likewise.
17012 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17013 (gen_conditions_for_pow_cst_base): Likewise.
17014 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17015 (group_case_labels_stmt): Use wide-int interfaces.
17016 (verify_gimple_assign_binary): Likewise.
17017 (print_loop): Likewise.
17018 * tree-chrec.c (tree_fold_binomial): Likewise.
17019 * tree-core.h (struct tree_base): Add int_length.
17020 (struct tree_int_cst): Change rep of value.
17021 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17022 (dr_may_alias_p): Likewise.
17023 (max_stmt_executions_tree): Likewise.
17024 * tree.def (INTEGER_CST): Update comment.
17025 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17026 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17027 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17028 (dequeue_and_dump): Use wide-int interfaces.
17029 * tree.h: Include wide-int.h.
17030 (NULL_TREE): Moved to earlier loc in file.
17031 (TREE_INT_CST_ELT_CHECK): New.
17032 (tree_int_cst_elt_check_failed): New.
17034 (TREE_INT_CST): Delete.
17035 (TREE_INT_CST_LOW): Use wide-int interfaces.
17036 (TREE_INT_CST_HIGH): Delete.
17037 (TREE_INT_CST_NUNITS): New.
17038 (TREE_INT_CST_EXT_NUNITS): Likewise.
17039 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17040 (TREE_INT_CST_ELT): Likewise.
17041 (INT_CST_LT): Delete.
17042 (tree_int_cst_elt_check): New (two forms).
17043 (type_code_size): Update comment.
17044 (make_int_cst_stat, make_int_cst): New.
17045 (tree_to_double_int): Delete.
17046 (double_int_fits_to_tree_p): Delete.
17047 (force_fit_type_double): Delete.
17048 (build_int_cstu): Replace with out-of-line function.
17049 (build_int_cst_wide): Delete.
17050 (tree_int_cst_lt): Define inline.
17051 (tree_int_cst_le): New.
17052 (tree_int_cst_compare): Define inline.
17053 (tree_int_cst_min_precision): Take a signop rather than a bool.
17054 (wi::int_traits <const_tree>): New.
17055 (wi::int_traits <tree>): New.
17056 (wi::extended_tree): New.
17057 (wi::int_traits <wi::extended_tree>): New.
17058 (wi::to_widest): New.
17059 (wi::to_offset): New.
17060 (wi::fits_to_tree_p): New.
17061 (wi::min_value): New.
17062 (wi::max_value): New.
17063 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17064 (copy_tree_body_r): Likewise.
17065 * tree-object-size.c (compute_object_offset): Likewise.
17066 (addr_object_size): Likewise.
17067 * tree-predcom.c: Include wide-int-print.h.
17068 (struct dref_d): Change type of offset to widest_int.
17069 (dump_dref): Call wide-int printer.
17070 (aff_combination_dr_offset): Use wide-int interfaces.
17071 (determine_offset): Take a widest_int pointer rather than a
17072 double_int pointer.
17073 (split_data_refs_to_components): Use wide-int interfaces.
17074 (suitable_component_p): Likewise.
17075 (order_drefs): Likewise.
17076 (add_ref_to_chain): Likewise.
17077 (valid_initializer_p): Likewise.
17078 (determine_roots_comp): Likewise.
17079 * tree-pretty-print.c: Include wide-int-print.h.
17080 (dump_generic_node): Use wide-int interfaces.
17081 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17082 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17083 (move_fixed_address_to_symbol): Likewise.
17084 (move_hint_to_base): Likewise.
17085 (move_pointer_to_base): Likewise.
17086 (move_variant_to_index): Likewise.
17087 (most_expensive_mult_to_index): Likewise.
17088 (addr_to_parts): Likewise.
17089 (copy_ref_info): Likewise.
17090 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17091 (indirect_refs_may_alias_p): Likewise.
17092 (stmt_kills_ref_p_1): Likewise.
17093 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17094 * tree-ssa-ccp.c: Update comment at top of file. Include
17096 (struct prop_value_d): Change type of mask to widest_int.
17097 (extend_mask): New function.
17098 (dump_lattice_value): Use wide-int interfaces.
17099 (get_default_value): Likewise.
17100 (set_constant_value): Likewise.
17101 (set_value_varying): Likewise.
17102 (valid_lattice_transition): Likewise.
17103 (set_lattice_value): Likewise.
17104 (value_to_double_int): Delete.
17105 (value_to_wide_int): New.
17106 (get_value_from_alignment): Use wide-int interfaces.
17107 (get_value_for_expr): Likewise.
17108 (do_dbg_cnt): Likewise.
17109 (ccp_finalize): Likewise.
17110 (ccp_lattice_meet): Likewise.
17111 (bit_value_unop_1): Use widest_ints rather than double_ints.
17112 (bit_value_binop_1): Likewise.
17113 (bit_value_unop): Use wide-int interfaces.
17114 (bit_value_binop): Likewise.
17115 (bit_value_assume_aligned): Likewise.
17116 (evaluate_stmt): Likewise.
17117 (ccp_fold_stmt): Likewise.
17118 (visit_cond_stmt): Likewise.
17119 (ccp_visit_stmt): Likewise.
17120 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17121 (constant_pointer_difference): Likewise.
17122 (associate_pointerplus): Likewise.
17123 (combine_conversions): Likewise.
17124 * tree-ssa-loop.h: Include wide-int.h.
17125 (struct tree_niter_desc): Change type of max to widest_int.
17126 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17127 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17128 (remove_redundant_iv_tests): Likewise.
17129 (canonicalize_loop_induction_variables): Likewise.
17130 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17131 (constant_multiple_of): Take a widest_int pointer instead of
17132 a double_int pointer.
17133 (get_computation_aff): Use wide-int interfaces.
17134 (ptr_difference_cost): Likewise.
17135 (difference_cost): Likewise.
17136 (get_loop_invariant_expr_id): Likewise.
17137 (get_computation_cost_at): Likewise.
17138 (iv_elimination_compare_lt): Likewise.
17139 (may_eliminate_iv): Likewise.
17140 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17141 instead of double_int.
17142 (max_loop_iterations): Likewise.
17143 (max_stmt_executions): Likewise.
17144 (estimated_stmt_executions): Likewise.
17145 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17146 (split_to_var_and_offset): Use wide-int interfaces.
17147 (determine_value_range): Likewise.
17148 (bound_difference_of_offsetted_base): Likewise.
17149 (bounds_add): Take a widest_int instead of a double_int.
17150 (number_of_iterations_ne_max): Use wide-int interfaces.
17151 (number_of_iterations_ne): Likewise.
17152 (number_of_iterations_lt_to_ne): Likewise.
17153 (assert_loop_rolls_lt): Likewise.
17154 (number_of_iterations_lt): Likewise.
17155 (number_of_iterations_le): Likewise.
17156 (number_of_iterations_cond): Likewise.
17157 (number_of_iterations_exit): Likewise.
17158 (finite_loop_p): Likewise.
17159 (derive_constant_upper_bound_assign): Likewise.
17160 (derive_constant_upper_bound): Return a widest_int.
17161 (derive_constant_upper_bound_ops): Likewise.
17162 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17163 (record_estimate): Take a widest_int rather than a double_int.
17164 (record_nonwrapping_iv): Use wide-int interfaces.
17165 (double_int_cmp): Delete.
17166 (wide_int_cmp): New.
17167 (bound_index): Take a widest_int rather than a double_int.
17168 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17169 (maybe_lower_iteration_bound): Likewise.
17170 (estimate_numbers_of_iterations_loop): Likewise.
17171 (estimated_loop_iterations): Take a widest_int pointer than than
17172 a double_int pointer.
17173 (estimated_loop_iterations_int): Use wide-int interfaces.
17174 (max_loop_iterations): Take a widest_int pointer than than
17175 a double_int pointer.
17176 (max_loop_iterations_int): Use wide-int interfaces.
17177 (max_stmt_executions): Take a widest_int pointer than than
17178 a double_int pointer.
17179 (estimated_stmt_executions): Likewise.
17180 (n_of_executions_at_most): Use wide-int interfaces.
17181 (scev_probably_wraps_p): Likewise.
17182 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17183 to real_to_integer.
17184 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17186 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17187 double_ints. Adjust for trailing_wide_ints <3> representation.
17188 (set_nonzero_bits): Likewise.
17189 (get_range_info): Return wide_ints rather than double_ints.
17190 Adjust for trailing_wide_ints <3> representation.
17191 (get_nonzero_bits): Likewise.
17192 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17194 * tree-ssanames.h (struct range_info_def): Replace min, max and
17195 nonzero_bits with a trailing_wide_ints <3>.
17196 (set_range_info): Use wide_int_refs rather than double_ints.
17197 (set_nonzero_bits): Likewise.
17198 (get_range_info): Return wide_ints rather than double_ints.
17199 (get_nonzero_bits): Likewise.
17200 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17201 * tree-ssa-pre.c (phi_translate_1): Likewise.
17202 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17203 (acceptable_pow_call): Likewise.
17204 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17206 (vn_reference_fold_indirect): Likewise.
17207 (vn_reference_maybe_forwprop_address): Likewise.
17208 (valueize_refs_1): Likewise.
17209 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17210 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17211 tree_int_cst_lt and tree_int_cst_le.
17212 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17214 (streamer_alloc_tree): Likewise.
17215 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17216 (streamer_write_tree_header): Likewise.
17217 (streamer_write_integer_cst): Likewise.
17218 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17219 (build_constructors): Likewise.
17220 (array_value_type): Likewise.
17221 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17222 (vect_check_gather): Likewise.
17223 * tree-vect-generic.c (build_replicated_const): Likewise.
17224 (expand_vector_divmod): Likewise.
17225 * tree-vect-loop.c (vect_transform_loop): Likewise.
17226 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17227 (vect_do_peeling_for_alignment): Likewise.
17228 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17229 * tree-vrp.c: Include wide-int.h.
17230 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17231 (extract_range_from_assert): Use wide-int interfaces.
17232 (vrp_int_const_binop): Likewise.
17233 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17234 double_int pointers.
17235 (ranges_from_anti_range): Use wide-int interfaces.
17236 (quad_int_cmp): Delete.
17237 (quad_int_pair_sort): Likewise.
17238 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17239 (extract_range_from_unary_expr_1): Likewise.
17240 (adjust_range_with_scev): Likewise.
17241 (masked_increment): Take and return wide_ints rather than double_ints.
17242 (register_edge_assert_for_2): Use wide-int interfaces.
17243 (check_array_ref): Likewise.
17244 (search_for_addr_array): Likewise.
17245 (maybe_set_nonzero_bits): Likewise.
17246 (union_ranges): Pass an integer of the correct type instead of
17247 using integer_one_node.
17248 (intersect_ranges): Likewise.
17249 (simplify_truth_ops_using_ranges): Likewise.
17250 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17251 (range_fits_type_p): Likewise.
17252 (simplify_cond_using_ranges): Likewise. Take a signop rather than
17254 (simplify_conversion_using_ranges): Use wide-int interfaces.
17255 (simplify_float_conversion_using_ranges): Likewise.
17256 (vrp_finalize): Likewise.
17257 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17258 (gimple_stringops_transform): Likewise.
17259 * varasm.c (decode_addr_const): Likewise.
17260 (const_hash_1): Likewise.
17261 (const_rtx_hash_1): Likewise
17262 (output_constant): Likewise.
17263 (array_size_for_constructor): Likewise.
17264 (output_constructor_regular_field): Likewise.
17265 (output_constructor_bitfield): Likewise.
17266 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17267 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17269 * gencheck.c: Define BITS_PER_UNIT.
17270 * wide-int.cc: New.
17272 * wide-int-print.cc: New.
17273 * wide-int-print.h: New.
17275 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17277 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
17279 2014-05-06 Richard Biener <rguenther@suse.de>
17281 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
17282 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
17283 (TODO_verify_all): Adjust.
17284 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
17285 TODO_verify_stmts and TODO_verify_rtl_sharing.
17286 * bb-reorder.c: Likewise.
17287 * cfgexpand.c: Likewise.
17288 * cprop.c: Likewise.
17290 * function.c: Likewise.
17291 * fwprop.c: Likewise.
17292 * gcse.c: Likewise.
17293 * gimple-ssa-isolate-paths.c: Likewise.
17294 * gimple-ssa-strength-reduction.c: Likewise.
17295 * ipa-split.c: Likewise.
17296 * loop-init.c: Likewise.
17297 * loop-unroll.c: Likewise.
17298 * lower-subreg.c: Likewise.
17299 * modulo-sched.c: Likewise.
17300 * postreload-gcse.c: Likewise.
17301 * predict.c: Likewise.
17302 * recog.c: Likewise.
17303 * sched-rgn.c: Likewise.
17304 * store-motion.c: Likewise.
17305 * tracer.c: Likewise.
17306 * trans-mem.c: Likewise.
17307 * tree-call-cdce.c: Likewise.
17308 * tree-cfg.c: Likewise.
17309 * tree-cfgcleanup.c: Likewise.
17310 * tree-complex.c: Likewise.
17311 * tree-eh.c: Likewise.
17312 * tree-emutls.c: Likewise.
17313 * tree-if-conv.c: Likewise.
17314 * tree-into-ssa.c: Likewise.
17315 * tree-loop-distribution.c: Likewise.
17316 * tree-object-size.c: Likewise.
17317 * tree-parloops.c: Likewise.
17318 * tree-pass.h: Likewise.
17319 * tree-sra.c: Likewise.
17320 * tree-ssa-ccp.c: Likewise.
17321 * tree-ssa-copy.c: Likewise.
17322 * tree-ssa-copyrename.c: Likewise.
17323 * tree-ssa-dce.c: Likewise.
17324 * tree-ssa-dom.c: Likewise.
17325 * tree-ssa-dse.c: Likewise.
17326 * tree-ssa-forwprop.c: Likewise.
17327 * tree-ssa-ifcombine.c: Likewise.
17328 * tree-ssa-loop-ch.c: Likewise.
17329 * tree-ssa-loop-ivcanon.c: Likewise.
17330 * tree-ssa-loop.c: Likewise.
17331 * tree-ssa-math-opts.c: Likewise.
17332 * tree-ssa-phiopt.c: Likewise.
17333 * tree-ssa-phiprop.c: Likewise.
17334 * tree-ssa-pre.c: Likewise.
17335 * tree-ssa-reassoc.c: Likewise.
17336 * tree-ssa-sink.c: Likewise.
17337 * tree-ssa-strlen.c: Likewise.
17338 * tree-ssa-tail-merge.c: Likewise.
17339 * tree-ssa-uncprop.c: Likewise.
17340 * tree-switch-conversion.c: Likewise.
17341 * tree-tailcall.c: Likewise.
17342 * tree-vect-generic.c: Likewise.
17343 * tree-vectorizer.c: Likewise.
17344 * tree-vrp.c: Likewise.
17345 * tsan.c: Likewise.
17346 * var-tracking.c: Likewise.
17347 * bt-load.c: Likewise.
17348 * cfgcleanup.c: Likewise.
17349 * combine-stack-adj.c: Likewise.
17350 * combine.c: Likewise.
17351 * compare-elim.c: Likewise.
17352 * config/epiphany/resolve-sw-modes.c: Likewise.
17353 * config/i386/i386.c: Likewise.
17354 * config/mips/mips.c: Likewise.
17355 * config/s390/s390.c: Likewise.
17356 * config/sh/sh_treg_combine.cc: Likewise.
17357 * config/sparc/sparc.c: Likewise.
17360 * final.c: Likewise.
17361 * ifcvt.c: Likewise.
17362 * mode-switching.c: Likewise.
17363 * passes.c: Likewise.
17364 * postreload.c: Likewise.
17366 * reg-stack.c: Likewise.
17367 * regcprop.c: Likewise.
17368 * regrename.c: Likewise.
17371 2014-05-06 Richard Biener <rguenther@suse.de>
17373 PR middle-end/61070
17374 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
17375 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
17377 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
17380 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
17382 2014-05-05 Radovan Obradovic <robradovic@mips.com>
17383 Tom de Vries <tom@codesourcery.com>
17385 * target.def (call_fusage_contains_non_callee_clobbers): New
17387 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
17389 (@node Miscellaneous Register Hooks): New node.
17390 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
17391 * doc/tm.texi: Regenerate.
17393 2014-05-05 Marek Polacek <polacek@redhat.com>
17396 * opts.c (common_handle_option): Call error_at instead of warning_at.
17398 2014-05-05 Richard Biener <rguenther@suse.de>
17400 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
17401 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
17402 under the TODO_verify_il umbrella.
17404 2014-05-05 Richard Biener <rguenther@suse.de>
17406 * passes.c (execute_function_todo): Move TODO_verify_flow under
17407 the TODO_verify_ul umbrella.
17409 2014-05-05 Richard Biener <rguenther@suse.de>
17411 PR middle-end/61010
17412 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
17413 X & CST away from a CST that is the mask of a mode.
17415 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17417 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
17418 int argument to enum machine_mode.
17419 (picochip_class_max_nregs): Ditto.
17420 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
17421 (picochip_class_max_nregs): Ditto.
17423 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17425 * target.def: Add new target hook.
17426 * doc/tm.texi: Regenerate.
17427 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
17428 * targhooks.c (default_keep_leaf_when_profiled): New function.
17430 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
17431 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
17433 2014-05-05 Bin Cheng <bin.cheng@arm.com>
17435 PR tree-optimization/60363
17436 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
17437 (copy_phi_args): New parameters. Call get_value_locus_in_path.
17438 (update_destination_phis): New parameter.
17439 (create_edge_and_update_destination_phis): Ditto.
17440 (ssa_fix_duplicate_block_edges): Pass new arguments.
17441 (thread_single_edge): Ditto.
17443 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
17445 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
17446 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
17447 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
17448 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
17449 Use RS6000_BTM_HARD_FLOAT.
17450 (BU_MISC_2): Likewise.
17451 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
17452 RS6000_BTM_HARD_FLOAT.
17453 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
17454 is explicitly used.
17455 (rs6000_invalid_builtin): Add hard floating builtin support.
17456 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
17457 hard float builtins.
17458 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
17460 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17462 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
17463 Add missing function* argument.
17465 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17467 * lra-constraints.c (valid_address_p): Move earlier in file.
17468 Add a constraint argument to the address_info version.
17469 (satisfies_memory_constraint_p): New function.
17470 (satisfies_address_constraint_p): Likewise.
17471 (process_alt_operands, curr_insn_transform): Use them.
17472 (process_address): Pass the constraint to valid_address_p when
17473 checking address operands.
17475 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17477 * config/mips/mips.c (mips_isa_rev): New variable.
17478 (mips_set_architecture): Set it.
17479 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
17481 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
17482 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
17483 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
17484 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
17485 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
17486 conditions in terms of mips_isa_rev.
17487 (mips_isa_rev): Declare.
17489 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17491 * config/sh/sh-mem.cc: Use tabs instead of spaces.
17492 (prob_unlikely, prob_likely): Make variables const.
17494 2014-05-03 Denis Chertykov <chertykov@gmail.com>
17496 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
17498 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17500 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
17502 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17504 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
17505 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
17506 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
17508 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
17509 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
17511 Replace usage of ROUND_REG with sh_round_reg.
17512 Use CEIL instead of ROUND_ADVANCE.
17514 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17517 * config/sh/sh.c: Include stdlib headers before everything else.
17519 2014-05-02 Jakub Jelinek <jakub@redhat.com>
17521 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
17522 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
17523 (gimplify_adjust_omp_clauses): Simd region is never
17524 directly nested in combined parallel. Instead, for linear
17525 with copyin/copyout, if in combined for simd loop, make decl
17526 firstprivate/lastprivate on OMP_FOR.
17527 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
17528 expand_omp_for_static_chunk): When setting endvar, also set
17529 fd->loop.v to the same value.
17531 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17533 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
17535 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
17537 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
17540 2014-05-02 Marek Polacek <polacek@redhat.com>
17542 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
17544 2014-05-02 Kito Cheng <kito@0xlab.org>
17546 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
17547 to a C expression marco.
17548 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
17549 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
17550 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
17551 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
17552 HONOR_REG_ALLOC_ORDER.
17553 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
17555 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17557 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
17559 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17561 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
17563 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
17565 * tree-if-conv.c (is_cond_scalar_reduction): New function.
17566 (convert_scalar_cond_reduction): Likewise.
17567 (predicate_scalar_phi): Add recognition and transformation
17568 of simple conditioanl reduction to be vectorizable.
17570 2014-05-01 Marek Polacek <polacek@redhat.com>
17573 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
17575 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
17577 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
17578 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
17579 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
17580 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
17581 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
17582 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
17583 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
17584 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
17586 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
17588 * config/arc/arc.opt (mlra): Move comment above option name
17589 to avoid mis-parsing as language options.
17591 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17593 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
17594 * config/sol2.h: ... here.
17595 * config/sol2-10.h: Remove.
17597 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
17598 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
17599 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
17600 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
17601 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
17602 * config/sol2.h: ... here.
17603 (SECTION_NAME_FORMAT): Don't redefine.
17604 (STARTFILE_ARCH32_SPEC): Rename to ...
17605 (STARTFILE_ARCH_SPEC): ... this.
17606 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
17607 * config/sparc/sol2.h: ... here.
17608 (SECTION_NAME_FORMAT): Don't undef.
17609 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
17610 (SUBTARGET_EXTRA_SPECS): Remove.
17611 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
17613 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
17614 (MD_STARTFILE_PREFIX): Remove.
17615 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
17616 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
17617 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
17618 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
17619 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
17620 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
17621 * config/i386/sol2.h: ... here.
17622 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
17623 * config/i386/sol2-bi.h: Remove.
17624 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
17625 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
17627 * config/i386/t-sol2-64: Rename to ...
17628 * config/i386/t-sol2: ... this.
17629 * config/sparc/t-sol2-64: Rename to ...
17630 * config/sparc/t-sol2: ... this.
17632 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
17633 sol2_tm_file_head, sol2_tm_file_tail.
17634 Include ${cpu_type}/sol2.h before sol2.h.
17636 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
17637 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
17638 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
17639 Reflect i386/t-sol2-64 renaming.
17640 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
17641 Reflect sparc/t-sol2-64 renaming.
17643 2014-04-30 Richard Biener <rguenther@suse.de>
17645 * passes.c (execute_function_todo): Move TODO_verify_stmts
17646 and TODO_verify_ssa under the TODO_verify_il umbrella.
17647 * tree-ssa.h (verify_ssa): Adjust prototype.
17648 * tree-ssa.c (verify_ssa): Add parameter to tell whether
17649 we should verify SSA operands.
17650 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
17651 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
17652 whether we should verify whether not throwing stmts have EH info.
17653 * graphite-scop-detection.c (create_sese_edges): Adjust.
17654 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
17655 * tree-eh.c (lower_try_finally_switch): Do not add the
17656 default case label twice.
17658 2014-04-30 Marek Polacek <polacek@redhat.com>
17660 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
17661 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
17662 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
17663 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
17665 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
17667 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
17668 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
17669 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
17670 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
17671 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
17672 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
17673 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
17674 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
17676 2014-04-29 David Malcolm <dmalcolm@redhat.com>
17678 * tree-cfg.c (dump_function_to_file): Dump the return type of
17679 functions, in a line to itself before the function body, mimicking
17680 the layout of a C function.
17682 2014-04-29 Jakub Jelinek <jakub@redhat.com>
17684 PR tree-optimization/60971
17685 * tree-tailcall.c (process_assignment): Reject conversions which
17688 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
17690 * calls.c (initialize_argument_information): Always treat
17691 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
17692 (expand_call): Likewise.
17693 (emit_library_call_calue_1): Likewise.
17694 * expr.c (PUSH_ARGS_REVERSED): Do not define.
17695 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
17698 2014-04-29 Nick Clifton <nickc@redhat.com>
17700 * config/msp430/msp430.md (umulsidi): Fix typo.
17701 (mulhisi3): Enable even inside interrupt handlers.
17702 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
17703 bigger return address pushed in large mode.
17705 2014-04-29 Nick Clifton <nickc@redhat.com>
17707 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
17708 (arc_init_reg_tables): Use a machine_mode enum to iterate over
17710 * config/m32r/m32r.c (init_reg_tables): Likewise.
17711 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
17712 enum to hold the modes.
17714 2014-04-29 Richard Biener <rguenther@suse.de>
17716 * dominance.c (free_dominance_info): Add overload with
17717 function parameter.
17718 (dom_info_state): Likewise.
17719 (dom_info_available_p): Likewise.
17720 * basic-block.h (free_dominance_info, dom_info_state,
17721 dom_info_available_p): Declare overloads.
17722 * passes.c (execute_function_todo): Verify that verifiers
17723 don't change dominator info state. Drop dominator info
17724 for IPA pass invocations.
17725 * cgraph.c (release_function_body): Restore asserts that
17726 dominator information is released.
17728 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
17730 * doc/invoke.texi: Fix typo.
17731 * tree-vrp.c: Fix typos.
17732 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
17734 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17736 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
17738 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
17740 * config/aarch64/aarch64-builtins.c
17741 (aarch64_types_storestruct_lane_qualifiers): New.
17742 (TYPES_STORESTRUCT_LANE): Likewise.
17743 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
17744 (st3_lane): Likewise.
17745 (st4_lane): Likewise.
17746 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
17747 (vec_store_lanesci_lane<mode>): Likewise.
17748 (vec_store_lanesxi_lane<mode>): Likewise.
17749 (aarch64_st2_lane<VQ:mode>): Likewise.
17750 (aarch64_st3_lane<VQ:mode>): Likewise.
17751 (aarch64_st4_lane<VQ:mode>): Likewise.
17752 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
17753 * config/aarch64/arm_neon.h
17754 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
17755 use new macro arguments.
17756 (__ST3_LANE_FUNC): Likewise.
17757 (__ST4_LANE_FUNC): Likewise.
17758 * config/aarch64/iterators.md (V_TWO_ELEM): New.
17759 (V_THREE_ELEM): Likewise.
17760 (V_FOUR_ELEM): Likewise.
17762 2014-04-28 David Malcolm <dmalcolm@redhat.com>
17764 * doc/gimple.texi: Replace the description of the now-defunct
17765 union gimple_statement_d with a diagram showing the
17766 gimple_statement_base class hierarchy and its relationships to
17767 the GSS_ and GIMPLE_ enums.
17769 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
17771 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
17772 * config/aarch64/aarch64.c
17773 (aarch64_cannot_change_mode_class): Weaken conditions.
17774 (aarch64_modes_tieable_p): New.
17775 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
17777 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
17779 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
17780 (loadsync_<mode>): Change mode.
17781 (load_quadpti, store_quadpti): New.
17782 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
17783 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
17785 2014-04-28 Martin Jambor <mjambor@suse.cz>
17787 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
17788 same alias type as the original statement.
17789 (subreplacement_assignment_data): New type.
17790 (handle_unscalarized_data_in_subtree): New type of parameter,
17791 generate new memory accesses with same alias type as the original
17793 (load_assign_lhs_subreplacements): Likewise.
17794 (sra_modify_constructor_assign): Generate new memory accesses with
17795 same alias type as the original statement.
17797 2014-04-28 Richard Biener <rguenther@suse.de>
17799 * tree-pass.h (TODO_verify_il): Define.
17800 (TODO_verify_all): Complete properly.
17801 * passes.c (execute_function_todo): Move existing loop-closed
17802 SSA verification under TODO_verify_il.
17803 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
17804 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
17805 Fix tree sharing issue.
17807 2014-04-28 Richard Biener <rguenther@suse.de>
17809 PR middle-end/60092
17810 * builtins.def (DEF_C11_BUILTIN): Add.
17811 (BUILT_IN_ALIGNED_ALLOC): Likewise.
17812 * coretypes.h (enum function_class): Add function_c11_misc.
17813 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17814 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
17815 (call_may_clobber_ref_p_1): Likewise.
17816 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
17817 (mark_all_reaching_defs_necessary_1): Likewise.
17818 (propagate_necessity): Likewise.
17819 (eliminate_unnecessary_stmts): Likewise.
17820 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
17822 2014-04-28 Richard Biener <rguenther@suse.de>
17824 * tree-vrp.c (vrp_var_may_overflow): Remove.
17825 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
17826 with overflow immediately bump to one before that value and
17827 let iteration figure out overflow status.
17829 2014-04-28 Richard Biener <rguenther@suse.de>
17831 * configure.ac: Do valgrind header checks unconditionally.
17832 Add --enable-valgrind-annotations.
17833 * system.h: Guard valgrind header inclusion with
17834 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
17835 * alloc-pool.c (pool_alloc, pool_free): Use
17836 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
17837 to guard possibly dead code.
17838 * config.in: Regenerated.
17839 * configure: Likewise.
17841 2014-04-28 Jeff Law <law@redhat.com>
17843 PR tree-optimization/60902
17844 * tree-ssa-threadedge.c
17845 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
17846 over real defs when invalidating outputs from statements that do not
17847 produce useful outputs for threading.
17849 2014-04-28 Richard Biener <rguenther@suse.de>
17851 PR tree-optimization/60979
17852 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
17853 SCOPs that end in a block with a successor with abnormal
17856 2014-04-28 Richard Biener <rguenther@suse.de>
17858 * tree-pass.h (execute_pass_list): Adjust prototype.
17859 * passes.c (pass_manager::execute_early_local_passes): Adjust.
17860 (do_per_function): Change callback signature, push all actual
17861 work to the callbals.
17862 (do_per_function_toporder): Likewise.
17863 (execute_function_dump): Adjust.
17864 (execute_function_todo): Likewise.
17865 (clear_last_verified): Likewise.
17866 (verify_curr_properties): Likewise.
17867 (update_properties_after_pass): Likewise.
17868 (execute_pass_list_1): Split out from ...
17869 (execute_pass_list): ... here. Adjust.
17870 (execute_ipa_pass_list): Likewise.
17871 * cgraphunit.c (cgraph_add_new_function): Adjust.
17872 (analyze_function): Likewise.
17873 (expand_function): Likewise.
17874 * cgraph.c (release_function_body): Free dominance info
17875 here instead of asserting it was magically freed elsewhere.
17877 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
17879 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
17880 * configure: Regenerate.
17881 * config/sparc/sparc.opt (muser-mode): New option.
17882 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
17884 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
17885 * doc/invoke.texi (SPARC options): Document -muser-mode.
17887 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
17889 * cselib.c (find_slot_memmode): Delete.
17890 (cselib_hasher): Change compare_type to a struct.
17891 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
17893 (preserve_constants_and_equivs): Adjust for new compare_type.
17894 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
17895 (wrap_constant): Delete.
17896 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
17898 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
17900 * doc/install.texi (Building with profile feedback): Remove
17903 2014-04-26 Tom de Vries <tom@codesourcery.com>
17905 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
17908 2014-04-25 Cary Coutant <ccoutant@google.com>
17911 * dwarf2out.c (should_move_die_to_comdat): A type definition
17912 can contain a subprogram definition, but don't move it to a
17914 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
17915 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
17917 (clone_tree_hash): Rename to...
17918 (clone_tree_partial): ...this; change callers. Copy
17919 DW_TAG_subprogram DIEs as declarations.
17920 (copy_decls_walk): Don't copy children of a declaration into a
17923 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
17926 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
17929 2014-04-25 Jiong Wang <jiong.wang@arm.com>
17931 * config/arm/predicates.md (call_insn_operand): Add long_call check.
17932 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
17934 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
17937 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17939 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
17941 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17943 PR tree-optimization/60930
17944 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
17945 creating a multiply candidate by folding two constant
17946 multiplicands when the result overflows.
17948 2014-04-25 Jakub Jelinek <jakub@redhat.com>
17950 PR tree-optimization/60960
17951 * tree-vect-generic.c (expand_vector_operation): Only call
17952 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
17954 2014-04-25 Tom de Vries <tom@codesourcery.com>
17956 * expr.c (clobber_reg_mode): New function.
17957 * expr.h (clobber_reg): New function.
17959 2014-04-25 Tom de Vries <tom@codesourcery.com>
17961 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
17964 2014-04-25 Radovan Obradovic <robradovic@mips.com>
17965 Tom de Vries <tom@codesourcery.com>
17967 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
17969 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
17970 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
17971 new argument to find_all_hard_reg_sets call.
17973 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17975 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
17976 Use HOST_WIDE_INT_C for mask literal.
17977 (aarch_rev16_shleft_mask_imm_p): Likewise.
17979 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
17982 * config/sparc/sparc.md (ashlsi3_extend): Delete.
17984 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
17986 PR preprocessor/56540
17987 * config/i386/i386-c.c (ix86_target_macros): Define
17988 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
17990 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17992 * configure.ac (tga_func): Remove.
17993 (LIB_TLS_SPEC): Remove.
17994 * configure: Regenerate.
17995 * config.in: Regenerate.
17996 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
17998 2014-04-25 Richard Biener <rguenther@suse.de>
18001 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18002 call stmt use/clobber sets during stmt walk instead of
18003 walking the possibly incomplete set of caller edges.
18005 2014-04-25 Richard Biener <rguenther@suse.de>
18008 * passes.c (apply_ipa_transforms): Inline into only caller ...
18009 (execute_one_pass): ... here. Properly bring in function
18010 bodies for nodes we want to apply IPA transforms to.
18012 2014-04-24 Cong Hou <congh@google.com>
18014 PR tree-optimization/60896
18015 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18016 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18017 (vect_mark_pattern_stmts): Set the def type of all statements in
18018 PATTERN_DEF_SEQ as vect_internal_def.
18020 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18022 * doc/extend.texi (PowerPC Built-in Functions): Document new
18023 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18024 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18026 * config/rs6000/predicates.md (const_0_to_3_operand): New
18027 predicate to match 0..3 integer constants.
18029 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18030 to support adding miscellaneous builtin functions.
18031 (BU_DFP_MISC_2): Likewise.
18032 (BU_P7_MISC_1): Likewise.
18033 (BU_P7_MISC_2): Likewise.
18034 (BU_P8V_MISC_3): Likewise.
18035 (BU_MISC_1): Likewise.
18036 (BU_MISC_2): Likewise.
18037 (DIVWE): Add extended divide builtin functions.
18038 (DIVWEO): Likewise.
18039 (DIVWEU): Likewise.
18040 (DIVWEUO): Likewise.
18042 (DIVDEO): Likewise.
18043 (DIVDEU): Likewise.
18044 (DIVDEUO): Likewise.
18045 (DXEX): Add decimal floating-point builtin functions.
18047 (DDEDPD): Likewise.
18048 (DDEDPDQ): Likewise.
18049 (DENBCD): Likewise.
18050 (DENBCDQ): Likewise.
18054 (DSCLIQ): Likewise.
18056 (DSCRIQ): Likewise.
18057 (CDTBCD): Add new BCD builtin functions.
18058 (CBCDTD): Likewise.
18059 (ADDG6S): Likewise.
18060 (BCDADD): Likewise.
18061 (BCDADD_LT): Likewise.
18062 (BCDADD_EQ): Likewise.
18063 (BCDADD_GT): Likewise.
18064 (BCDADD_OV): Likewise.
18065 (BCDSUB): Likewise.
18066 (BCDSUB_LT): Likewise.
18067 (BCDSUB_EQ): Likewise.
18068 (BCDSUB_GT): Likewise.
18069 (BCDSUB_OV): Likewise.
18070 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18071 (UNPACK_TD): Likewise.
18072 (PACK_TF): Likewise.
18073 (UNPACK_TF): Likewise.
18074 (UNPACK_TF_0): Likewise.
18075 (UNPACK_TF_1): Likewise.
18076 (PACK_V1TI): Likewise.
18077 (UNPACK_V1TI): Likewise.
18079 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18080 support for decimal floating point builtin functions.
18081 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18082 functions that take constant arguments.
18083 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18084 (rs6000_init_builtins): Setup long double, _Decimal64, and
18085 _Decimal128 types for new builtin functions.
18086 (builtin_function_type): Set the unsigned flags appropriately for
18087 the new builtin functions.
18088 (rs6000_opt_masks): Add support for decimal floating point builtin
18091 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18092 floating point builtin functions.
18093 (RS6000_BTM_COMMON): Likewise.
18094 (RS6000_BTI_long_double): Likewise.
18095 (RS6000_BTI_dfloat64): Likewise.
18096 (RS6000_BTI_dfloat128): Likewise.
18097 (long_double_type_internal_node): Likewise.
18098 (dfloat64_type_internal_node): Likewise.
18099 (dfloat128_type_internal_node): Likewise.
18101 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18102 2.07 bcd arithmetic instructions.
18103 (UNSPEC_BCDSUB): Likewise.
18104 (UNSPEC_BCD_OVERFLOW): Likewise.
18105 (UNSPEC_BCD_ADD_SUB): Likewise.
18106 (bcd_add_sub): Likewise.
18107 (BCD_TEST): Likewise.
18108 (bcd<bcd_add_sub>): Likewise.
18109 (bcd<bcd_add_sub>_test): Likewise.
18110 (bcd<bcd_add_sub>_test2): Likewise.
18111 (bcd<bcd_add_sub>_<code>): Likewise.
18112 (peephole2 for combined bcd ops): Likewise.
18114 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18115 decimal floating point builtin functions.
18116 (UNSPEC_DENBCD): Likewise.
18117 (UNSPEC_DXEX): Likewise.
18118 (UNSPEC_DIEX): Likewise.
18119 (UNSPEC_DSCLI): Likewise.
18120 (UNSPEC_DSCRI): Likewise.
18121 (D64_D128): Likewise.
18122 (dfp_suffix): Likewise.
18123 (dfp_ddedpd_<mode>): Likewise.
18124 (dfp_denbcd_<mode>): Likewise.
18125 (dfp_dxex_<mode>): Likewise.
18126 (dfp_diex_<mode>): Likewise.
18127 (dfp_dscli_<mode>): Likewise.
18128 (dfp_dscri_<mode>): Likewise.
18130 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18132 (UNSPEC_CDTBCD): Likewise.
18133 (UNSPEC_CBCDTD): Likewise.
18134 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18135 (UNSPEC_DIVEO): Likewise.
18136 (UNSPEC_DIVEU): Likewise.
18137 (UNSPEC_DIVEUO): Likewise.
18138 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18139 pack/unpack 128-bit types.
18140 (UNSPEC_PACK_128BIT): Likewise.
18141 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18142 (udiv<mode>3): Use idiv_ldiv mode attribute.
18143 (div<mode>3): Likewise.
18144 (addg6s): Add new BCD builtin functions.
18145 (cdtbcd): Likewise.
18146 (cbcdtd): Likewise.
18147 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18148 (div_extend): Likewise.
18149 (div<div_extend>_<mode>"): Likewise.
18150 (FP128_64): Add support for new builtin functions to pack/unpack
18152 (unpack<mode>): Likewise.
18153 (unpacktf_0): Likewise.
18154 (unpacktf_1): Likewise.
18155 (unpack<mode>_dm): Likewise.
18156 (unpack<mode>_nodm): Likewise.
18157 (pack<mode>): Likewise.
18158 (unpackv1ti): Likewise.
18159 (packv1ti): Likewise.
18161 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18163 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18166 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18168 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18169 * gimplify.c (omp_is_private): Change last argument's type to int.
18170 Only diagnose lastprivate if the simd argument is 1, only diagnose
18171 linear if the simd argument is 2.
18172 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18173 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18174 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18175 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18176 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18177 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18178 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18179 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18180 * tree-nested.c (convert_nonlocal_omp_clauses,
18181 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18183 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18186 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18189 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18191 * flag-types.h (enum ivar_visibility): Add.
18193 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18195 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18196 function * argument.
18198 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18200 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18202 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18203 Tom de Vries <tom@codesourcery.com>
18205 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18206 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18208 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18209 * emit-rtl.c (try_split): Same.
18211 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18212 Tom de Vries <tom@codesourcery.com>
18214 * common.opt (fuse-caller-save): New option.
18216 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18218 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18219 elements for big-endian.
18221 2014-04-24 Richard Biener <rguenther@suse.de>
18223 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18224 during TER and instead use the sepops interface for expanding
18225 non-GIMPLE_SINGLE_RHS.
18227 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18229 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18230 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18232 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18234 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18235 assembler 64-bit option.
18236 * configure: Regenerate.
18238 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18240 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18241 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18242 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18243 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18244 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18246 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18248 * config/aarch64/aarch64-builtins.c
18249 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18250 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18251 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18252 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18254 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18255 (Vrevsuff): New mode attribute.
18257 2014-04-24 Terry Guo <terry.guo@arm.com>
18259 * config/arm/arm.h (machine_function): Define variable
18260 after_arm_reorg here.
18261 * config/arm/arm.c (after_arm_reorg): Remove the definition.
18262 (arm_split_constant): Update the way to access variable
18264 (arm_reorg): Ditto.
18265 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18267 2014-04-23 Tom de Vries <tom@codesourcery.com>
18269 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18271 2014-04-23 David Malcolm <dmalcolm@redhat.com>
18273 * is-a.h: Update comments to reflect the following changes to the
18274 "pointerness" of the API, making the template parameter match the
18275 return type, allowing use of is-a.h with typedefs of pointers.
18276 (is_a_helper::cast): Return a T rather then a pointer to a T, so
18277 that the return type matches the parameter to the is_a_helper.
18279 (dyn_cast): Likewise.
18281 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
18282 pointer from the is-a.h API.
18284 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
18285 (is_a_helper <cgraph_node *>::test): ...this, matching change to
18287 (is_a_helper <varpool_node>::test): Likewise, convert to...
18288 (is_a_helper <varpool_node *>::test): ...this.
18290 (varpool_first_variable): Update for removal of implicit pointer
18291 from the is-a.h API.
18292 (varpool_next_variable): Likewise.
18293 (varpool_first_static_initializer): Likewise.
18294 (varpool_next_static_initializer): Likewise.
18295 (varpool_first_defined_variable): Likewise.
18296 (varpool_next_defined_variable): Likewise.
18297 (cgraph_first_defined_function): Likewise.
18298 (cgraph_next_defined_function): Likewise.
18299 (cgraph_first_function): Likewise.
18300 (cgraph_next_function): Likewise.
18301 (cgraph_first_function_with_gimple_body): Likewise.
18302 (cgraph_next_function_with_gimple_body): Likewise.
18303 (cgraph_alias_target): Likewise.
18304 (varpool_alias_target): Likewise.
18305 (cgraph_function_or_thunk_node): Likewise.
18306 (varpool_variable_node): Likewise.
18307 (symtab_real_symbol_p): Likewise.
18308 * cgraphunit.c (referred_to_p): Likewise.
18309 (analyze_functions): Likewise.
18310 (handle_alias_pairs): Likewise.
18311 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
18312 * gimple-ssa.h (gimple_vuse_op): Likewise.
18313 (gimple_vdef_op): Likewise.
18314 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
18315 * gimple.c (gimple_build_asm_1): Likewise.
18316 (gimple_build_try): Likewise.
18317 (gimple_build_resx): Likewise.
18318 (gimple_build_eh_dispatch): Likewise.
18319 (gimple_build_omp_for): Likewise.
18320 (gimple_omp_for_set_clauses): Likewise.
18322 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
18323 (is_a_helper <gimple_statement_asm *>::test): ...this.
18324 (is_a_helper <gimple_statement_bind>::test): Convert to...
18325 (is_a_helper <gimple_statement_bind *>::test): ...this.
18326 (is_a_helper <gimple_statement_call>::test): Convert to...
18327 (is_a_helper <gimple_statement_call *>::test): ...this.
18328 (is_a_helper <gimple_statement_catch>::test): Convert to...
18329 (is_a_helper <gimple_statement_catch *>::test): ...this.
18330 (is_a_helper <gimple_statement_resx>::test): Convert to...
18331 (is_a_helper <gimple_statement_resx *>::test): ...this.
18332 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
18333 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
18334 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
18335 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
18336 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
18337 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
18338 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
18339 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
18340 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
18341 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
18342 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
18343 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
18344 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
18345 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
18346 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
18347 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
18348 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
18349 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
18350 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
18351 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
18352 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
18353 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
18354 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
18355 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
18356 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
18357 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
18358 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
18359 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
18360 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
18361 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
18362 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
18363 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
18364 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
18365 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
18366 (is_a_helper <gimple_statement_phi>::test): Convert to...
18367 (is_a_helper <gimple_statement_phi *>::test): ...this.
18368 (is_a_helper <gimple_statement_transaction>::test): Convert to...
18369 (is_a_helper <gimple_statement_transaction *>::test): ...this.
18370 (is_a_helper <gimple_statement_try>::test): Convert to...
18371 (is_a_helper <gimple_statement_try *>::test): ...this.
18372 (is_a_helper <gimple_statement_wce>::test): Convert to...
18373 (is_a_helper <gimple_statement_wce *>::test): ...this.
18374 (is_a_helper <const gimple_statement_asm>::test): Convert to...
18375 (is_a_helper <const gimple_statement_asm *>::test): ...this.
18376 (is_a_helper <const gimple_statement_bind>::test): Convert to...
18377 (is_a_helper <const gimple_statement_bind *>::test): ...this.
18378 (is_a_helper <const gimple_statement_call>::test): Convert to...
18379 (is_a_helper <const gimple_statement_call *>::test): ...this.
18380 (is_a_helper <const gimple_statement_catch>::test): Convert to...
18381 (is_a_helper <const gimple_statement_catch *>::test): ...this.
18382 (is_a_helper <const gimple_statement_resx>::test): Convert to...
18383 (is_a_helper <const gimple_statement_resx *>::test): ...this.
18384 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
18385 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
18386 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
18387 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
18388 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
18390 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
18392 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
18394 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
18396 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
18397 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
18398 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
18400 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
18401 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
18403 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
18404 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
18405 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
18406 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
18407 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
18408 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
18410 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
18411 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
18412 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
18413 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
18415 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
18416 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
18417 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
18418 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
18419 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
18420 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
18421 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
18422 (is_a_helper <const gimple_statement_phi>::test): Convert to...
18423 (is_a_helper <const gimple_statement_phi *>::test): ...this.
18424 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
18425 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
18426 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
18427 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
18428 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
18429 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
18430 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
18432 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
18434 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
18435 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
18437 (gimple_use_ops): Update for removal of implicit pointer from the
18439 (gimple_set_use_ops): Likewise.
18440 (gimple_vuse): Likewise.
18441 (gimple_vdef): Likewise.
18442 (gimple_vuse_ptr): Likewise.
18443 (gimple_vdef_ptr): Likewise.
18444 (gimple_set_vuse): Likewise.
18445 (gimple_set_vdef): Likewise.
18446 (gimple_omp_return_set_lhs): Likewise.
18447 (gimple_omp_return_lhs): Likewise.
18448 (gimple_omp_return_lhs_ptr): Likewise.
18449 (gimple_call_fntype): Likewise.
18450 (gimple_call_set_fntype): Likewise.
18451 (gimple_call_set_internal_fn): Likewise.
18452 (gimple_call_use_set): Likewise.
18453 (gimple_call_clobber_set): Likewise.
18454 (gimple_bind_vars): Likewise.
18455 (gimple_bind_set_vars): Likewise.
18456 (gimple_bind_body_ptr): Likewise.
18457 (gimple_bind_set_body): Likewise.
18458 (gimple_bind_add_stmt): Likewise.
18459 (gimple_bind_block): Likewise.
18460 (gimple_bind_set_block): Likewise.
18461 (gimple_asm_ninputs): Likewise.
18462 (gimple_asm_noutputs): Likewise.
18463 (gimple_asm_nclobbers): Likewise.
18464 (gimple_asm_nlabels): Likewise.
18465 (gimple_asm_input_op): Likewise.
18466 (gimple_asm_input_op_ptr): Likewise.
18467 (gimple_asm_output_op): Likewise.
18468 (gimple_asm_output_op_ptr): Likewise.
18469 (gimple_asm_set_output_op): Likewise.
18470 (gimple_asm_clobber_op): Likewise.
18471 (gimple_asm_set_clobber_op): Likewise.
18472 (gimple_asm_label_op): Likewise.
18473 (gimple_asm_set_label_op): Likewise.
18474 (gimple_asm_string): Likewise.
18475 (gimple_catch_types): Likewise.
18476 (gimple_catch_types_ptr): Likewise.
18477 (gimple_catch_handler_ptr): Likewise.
18478 (gimple_catch_set_types): Likewise.
18479 (gimple_catch_set_handler): Likewise.
18480 (gimple_eh_filter_types): Likewise.
18481 (gimple_eh_filter_types_ptr): Likewise.
18482 (gimple_eh_filter_failure_ptr): Likewise.
18483 (gimple_eh_filter_set_types): Likewise.
18484 (gimple_eh_filter_set_failure): Likewise.
18485 (gimple_eh_must_not_throw_fndecl): Likewise.
18486 (gimple_eh_must_not_throw_set_fndecl): Likewise.
18487 (gimple_eh_else_n_body_ptr): Likewise.
18488 (gimple_eh_else_e_body_ptr): Likewise.
18489 (gimple_eh_else_set_n_body): Likewise.
18490 (gimple_eh_else_set_e_body): Likewise.
18491 (gimple_try_eval_ptr): Likewise.
18492 (gimple_try_cleanup_ptr): Likewise.
18493 (gimple_try_set_eval): Likewise.
18494 (gimple_try_set_cleanup): Likewise.
18495 (gimple_wce_cleanup_ptr): Likewise.
18496 (gimple_wce_set_cleanup): Likewise.
18497 (gimple_phi_capacity): Likewise.
18498 (gimple_phi_num_args): Likewise.
18499 (gimple_phi_result): Likewise.
18500 (gimple_phi_result_ptr): Likewise.
18501 (gimple_phi_set_result): Likewise.
18502 (gimple_phi_arg): Likewise.
18503 (gimple_phi_set_arg): Likewise.
18504 (gimple_resx_region): Likewise.
18505 (gimple_resx_set_region): Likewise.
18506 (gimple_eh_dispatch_region): Likewise.
18507 (gimple_eh_dispatch_set_region): Likewise.
18508 (gimple_omp_critical_name): Likewise.
18509 (gimple_omp_critical_name_ptr): Likewise.
18510 (gimple_omp_critical_set_name): Likewise.
18511 (gimple_omp_for_clauses): Likewise.
18512 (gimple_omp_for_clauses_ptr): Likewise.
18513 (gimple_omp_for_set_clauses): Likewise.
18514 (gimple_omp_for_collapse): Likewise.
18515 (gimple_omp_for_index): Likewise.
18516 (gimple_omp_for_index_ptr): Likewise.
18517 (gimple_omp_for_set_index): Likewise.
18518 (gimple_omp_for_initial): Likewise.
18519 (gimple_omp_for_initial_ptr): Likewise.
18520 (gimple_omp_for_set_initial): Likewise.
18521 (gimple_omp_for_final): Likewise.
18522 (gimple_omp_for_final_ptr): Likewise.
18523 (gimple_omp_for_set_final): Likewise.
18524 (gimple_omp_for_incr): Likewise.
18525 (gimple_omp_for_incr_ptr): Likewise.
18526 (gimple_omp_for_set_incr): Likewise.
18527 (gimple_omp_for_pre_body_ptr): Likewise.
18528 (gimple_omp_for_set_pre_body): Likewise.
18529 (gimple_omp_parallel_clauses): Likewise.
18530 (gimple_omp_parallel_clauses_ptr): Likewise.
18531 (gimple_omp_parallel_set_clauses): Likewise.
18532 (gimple_omp_parallel_child_fn): Likewise.
18533 (gimple_omp_parallel_child_fn_ptr): Likewise.
18534 (gimple_omp_parallel_set_child_fn): Likewise.
18535 (gimple_omp_parallel_data_arg): Likewise.
18536 (gimple_omp_parallel_data_arg_ptr): Likewise.
18537 (gimple_omp_parallel_set_data_arg): Likewise.
18538 (gimple_omp_task_clauses): Likewise.
18539 (gimple_omp_task_clauses_ptr): Likewise.
18540 (gimple_omp_task_set_clauses): Likewise.
18541 (gimple_omp_task_child_fn): Likewise.
18542 (gimple_omp_task_child_fn_ptr): Likewise.
18543 (gimple_omp_task_set_child_fn): Likewise.
18544 (gimple_omp_task_data_arg): Likewise.
18545 (gimple_omp_task_data_arg_ptr): Likewise.
18546 (gimple_omp_task_set_data_arg): Likewise.
18547 (gimple_omp_taskreg_clauses): Likewise.
18548 (gimple_omp_taskreg_clauses_ptr): Likewise.
18549 (gimple_omp_taskreg_set_clauses): Likewise.
18550 (gimple_omp_taskreg_child_fn): Likewise.
18551 (gimple_omp_taskreg_child_fn_ptr): Likewise.
18552 (gimple_omp_taskreg_set_child_fn): Likewise.
18553 (gimple_omp_taskreg_data_arg): Likewise.
18554 (gimple_omp_taskreg_data_arg_ptr): Likewise.
18555 (gimple_omp_taskreg_set_data_arg): Likewise.
18556 (gimple_omp_task_copy_fn): Likewise.
18557 (gimple_omp_task_copy_fn_ptr): Likewise.
18558 (gimple_omp_task_set_copy_fn): Likewise.
18559 (gimple_omp_task_arg_size): Likewise.
18560 (gimple_omp_task_arg_size_ptr): Likewise.
18561 (gimple_omp_task_set_arg_size): Likewise.
18562 (gimple_omp_task_arg_align): Likewise.
18563 (gimple_omp_task_arg_align_ptr): Likewise.
18564 (gimple_omp_task_set_arg_align): Likewise.
18565 (gimple_omp_single_clauses): Likewise.
18566 (gimple_omp_single_clauses_ptr): Likewise.
18567 (gimple_omp_single_set_clauses): Likewise.
18568 (gimple_omp_target_clauses): Likewise.
18569 (gimple_omp_target_clauses_ptr): Likewise.
18570 (gimple_omp_target_set_clauses): Likewise.
18571 (gimple_omp_target_child_fn): Likewise.
18572 (gimple_omp_target_child_fn_ptr): Likewise.
18573 (gimple_omp_target_set_child_fn): Likewise.
18574 (gimple_omp_target_data_arg): Likewise.
18575 (gimple_omp_target_data_arg_ptr): Likewise.
18576 (gimple_omp_target_set_data_arg): Likewise.
18577 (gimple_omp_teams_clauses): Likewise.
18578 (gimple_omp_teams_clauses_ptr): Likewise.
18579 (gimple_omp_teams_set_clauses): Likewise.
18580 (gimple_omp_sections_clauses): Likewise.
18581 (gimple_omp_sections_clauses_ptr): Likewise.
18582 (gimple_omp_sections_set_clauses): Likewise.
18583 (gimple_omp_sections_control): Likewise.
18584 (gimple_omp_sections_control_ptr): Likewise.
18585 (gimple_omp_sections_set_control): Likewise.
18586 (gimple_omp_for_set_cond): Likewise.
18587 (gimple_omp_for_cond): Likewise.
18588 (gimple_omp_atomic_store_set_val): Likewise.
18589 (gimple_omp_atomic_store_val): Likewise.
18590 (gimple_omp_atomic_store_val_ptr): Likewise.
18591 (gimple_omp_atomic_load_set_lhs): Likewise.
18592 (gimple_omp_atomic_load_lhs): Likewise.
18593 (gimple_omp_atomic_load_lhs_ptr): Likewise.
18594 (gimple_omp_atomic_load_set_rhs): Likewise.
18595 (gimple_omp_atomic_load_rhs): Likewise.
18596 (gimple_omp_atomic_load_rhs_ptr): Likewise.
18597 (gimple_omp_continue_control_def): Likewise.
18598 (gimple_omp_continue_control_def_ptr): Likewise.
18599 (gimple_omp_continue_set_control_def): Likewise.
18600 (gimple_omp_continue_control_use): Likewise.
18601 (gimple_omp_continue_control_use_ptr): Likewise.
18602 (gimple_omp_continue_set_control_use): Likewise.
18603 (gimple_transaction_body_ptr): Likewise.
18604 (gimple_transaction_label): Likewise.
18605 (gimple_transaction_label_ptr): Likewise.
18606 (gimple_transaction_set_body): Likewise.
18607 (gimple_transaction_set_label): Likewise.
18609 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
18610 * ipa-inline-analysis.c (inline_write_summary): Likewise.
18611 * ipa-ref.c (ipa_record_reference): Likewise.
18612 * ipa-reference.c (analyze_function): Likewise.
18613 (ipa_reference_write_optimization_summary): Likewise.
18614 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
18615 (address_taken_from_non_vtable_p): Likewise.
18616 (comdat_can_be_unshared_p_1): Likewise.
18617 * lto-cgraph.c (lto_output_ref): Likewise.
18618 (add_references): Likewise.
18619 (compute_ltrans_boundary): Likewise.
18620 (output_symtab): Likewise.
18621 (input_ref): Likewise.
18622 (input_cgraph_1): Likewise.
18623 (output_cgraph_opt_summary): Likewise.
18624 * lto-streamer-out.c (lto_output): Likewise.
18625 (output_symbol_p): Likewise.
18626 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
18627 (lsei_start_function_in_partition): Likewise.
18628 (lsei_next_variable_in_partition): Likewise.
18629 (lsei_start_variable_in_partition): Likewise.
18630 * symtab.c (insert_to_assembler_name_hash): Likewise.
18631 (unlink_from_assembler_name_hash): Likewise.
18632 (symtab_unregister_node): Likewise.
18633 (symtab_remove_node): Likewise.
18634 (dump_symtab_node): Likewise.
18635 (verify_symtab_base): Likewise.
18636 (verify_symtab_node): Likewise.
18637 (symtab_make_decl_local): Likewise.
18638 (symtab_alias_ultimate_target): Likewise.
18639 (symtab_resolve_alias): Likewise.
18640 (symtab_get_symbol_partitioning_class): Likewise.
18641 * tree-phinodes.c (allocate_phi_node): Likewise.
18642 (reserve_phi_args_for_new_edge): Likewise.
18643 (remove_phi_args): Likewise.
18644 * varpool.c (varpool_node_for_asm): Likewise.
18645 (varpool_remove_unreferenced_decls): Likewise.
18647 2014-04-23 Jeff Law <law@redhat.com>
18649 PR tree-optimization/60902
18650 * tree-ssa-threadedge.c
18651 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
18652 invalidate outputs from statements that do not produce useful
18653 outputs for threading.
18655 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
18657 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
18658 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
18659 machine descriptions for Stack Smashing Protector.
18661 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
18663 * aarch64.md (<optab>_rol<mode>3): New pattern.
18664 (<optab>_rolsi3_uxtw): Likewise.
18665 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
18667 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
18669 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
18670 (arm_cortex_a12_tune): Likewise.
18672 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18674 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
18676 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18678 * config/arm/arm.md (arm_rev16si2): New pattern.
18679 (arm_rev16si2_alt): Likewise.
18680 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
18682 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18684 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
18685 (rev16<mode>2_alt): Likewise.
18686 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
18687 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
18688 (aarch_rev16_shleft_mask_imm_p): Likewise.
18689 (aarch_rev16_p_1): Likewise.
18690 (aarch_rev16_p): Likewise.
18691 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
18692 (aarch_rev16_shright_mask_imm_p): Likewise.
18693 (aarch_rev16_shleft_mask_imm_p): Likewise.
18695 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18697 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
18698 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
18700 (cortex_a53_extra_costs): Likewise.
18701 (cortex_a57_extra_costs): Likewise.
18702 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
18703 (cortexa7_extra_costs): Likewise.
18704 (cortexa8_extra_costs): Likewise.
18705 (cortexa12_extra_costs): Likewise.
18706 (cortexa15_extra_costs): Likewise.
18707 (v7m_extra_costs): Likewise.
18708 (arm_new_rtx_costs): Handle BSWAP.
18710 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18712 * config/arm/arm.c (cortexa8_extra_costs): New table.
18713 (arm_cortex_a8_tune): New tuning struct.
18714 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
18716 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18718 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
18720 2014-04-23 Richard Biener <rguenther@suse.de>
18722 * Makefile.in (OBJS): Remove loop-unswitch.o.
18723 * tree-pass.h (make_pass_rtl_unswitch): Remove.
18724 * passes.def (pass_rtl_unswitch): Likewise.
18725 * loop-init.c (gate_rtl_unswitch): Likewise.
18726 (rtl_unswitch): Likewise.
18727 (pass_data_rtl_unswitch): Likewise.
18728 (pass_rtl_unswitch): Likewise.
18729 (make_pass_rtl_unswitch): Likewise.
18730 * rtl.h (reversed_condition): Likewise.
18731 (compare_and_jump_seq): Likewise.
18732 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
18734 * loop-unroll.c (compare_and_jump_seq): Likewise.
18736 2014-04-23 Richard Biener <rguenther@suse.de>
18738 PR tree-optimization/60903
18739 * tree-ssa-loop-im.c (analyze_memory_references): Remove
18740 commented code block.
18741 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
18742 loop flags to newly created BBs and edges.
18744 2014-04-23 Nick Clifton <nickc@redhat.com>
18746 * config/msp430/msp430.c (msp430_handle_option): Move function
18748 (msp430_option_override): Simplify mcu and mcpu option handling.
18749 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
18750 support for -mhwmult command line option.
18751 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
18752 -mhwmult command line option.
18753 (msp430_hwmult_enabled): Delete.
18754 (msp43o_output_labelref): Add support for -mhwmult command line option.
18755 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
18756 (umulsidi3): Likewise.
18757 * config/msp430/msp430.opt (mmcu): Add Report attribute.
18758 (mcpu, mlarge, msmall): Likewise.
18759 (mhwmult): New option.
18760 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
18762 (msp430_is_f5_mcu): Remove prototype.
18763 (msp430_use_f5_series_hwmult): Add prototype.
18764 * config/msp430/msp430-opts.h: New file.
18765 * common/config/msp430: New directory.
18766 * common/config/msp430/msp430-common.c: New file.
18767 * config.gcc (msp430): Remove target_has_targetm_common.
18768 * doc/invoke.texi: Document -mhwmult command line option.
18770 2014-04-23 Nick Clifton <nickc@redhat.com>
18772 * config/i386/cygwin.h (ENDFILE_SPEC): Include
18773 default-manifest.o if it can be found in the search path.
18774 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
18776 2014-04-23 Terry Guo <terry.guo@arm.com>
18778 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
18780 2014-04-23 Richard Biener <rguenther@suse.de>
18782 PR middle-end/60895
18783 * tree-inline.c (declare_return_variable): Use mark_addressable.
18785 2014-04-23 Richard Biener <rguenther@suse.de>
18787 PR middle-end/60891
18788 * loop-init.c (loop_optimizer_init): Make sure to apply
18789 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
18791 2014-04-22 Jakub Jelinek <jakub@redhat.com>
18794 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
18796 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
18797 if flag_sanitize_undefined_trap_on_error.
18798 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
18799 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
18800 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
18801 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
18802 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
18803 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
18804 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
18805 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
18806 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
18807 * ubsan.c (ubsan_instrument_unreachable): Return
18808 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
18809 (ubsan_expand_null_ifn): Emit __builtin_trap ()
18810 if flag_sanitize_undefined_trap_on_error and
18811 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
18812 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
18813 instrument_bool_enum_load): Emit __builtin_trap () if
18814 flag_sanitize_undefined_trap_on_error and
18815 __builtin_handle_*_abort () if !flag_sanitize_recover.
18816 * doc/invoke.texi (-fsanitize-recover,
18817 -fsanitize-undefined-trap-on-error): Document.
18819 2014-04-22 Christian Bruel <christian.bruel@st.com>
18821 * config/sh/sh.md (mov<mode>): Replace movQIHI.
18822 Force immediates to SImode.
18824 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
18826 * config/nios2/nios2.md (UNSPEC_ROUND): New.
18827 (lroundsfsi2): New.
18828 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
18829 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
18830 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
18831 (nios2_fpu_insn): Add entry for round.
18832 (N2FPU_NO_ERRNO_P): Define.
18833 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
18835 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
18837 2014-04-22 Richard Henderson <rth@redhat.com>
18839 * config/aarch64/aarch64 (addti3, subti3): New expanders.
18840 (add<GPI>3_compare0): Remove leading * from name.
18841 (add<GPI>3_carryin): Likewise.
18842 (sub<GPI>3_compare0): Likewise.
18843 (sub<GPI>3_carryin): Likewise.
18844 (<su_optab>mulditi3): New expander.
18845 (multi3): New expander.
18846 (madd<GPI>): Remove leading * from name.
18848 2014-04-22 Martin Jambor <mjambor@suse.cz>
18850 * cgraphclones.c (cgraph_function_versioning): Copy
18851 ipa_transforms_to_apply instead of asserting it is empty.
18853 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
18856 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
18857 on count_exp to get mode.
18859 2014-04-22 Andrew Pinski <apinski@cavium.com>
18861 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
18862 Handle TLS for ILP32.
18863 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
18864 (tlsie_small_<mode>): this and handle PTR.
18865 (tlsie_small_sidi): New pattern.
18866 (tlsle_small): Change to an expand to handle ILP32.
18867 (tlsle_small_<mode>): New pattern.
18868 (tlsdesc_small): Rename to ...
18869 (tlsdesc_small_<mode>): this and handle PTR.
18871 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18873 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
18875 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
18877 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
18878 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
18879 (aarch64_types_signed_poly_qualifiers): Likewise.
18880 (aarch64_types_unsigned_signed_qualifiers): Likewise.
18881 (aarch64_types_poly_signed_qualifiers): Likewise.
18882 (TYPES_REINTERP_SS): Type macro added.
18883 (TYPES_REINTERP_SU): Likewise.
18884 (TYPES_REINTERP_SP): Likewise.
18885 (TYPES_REINTERP_US): Likewise.
18886 (TYPES_REINTERP_PS): Likewise.
18887 (aarch64_fold_builtin): New expression folding added.
18888 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
18889 Declarations removed.
18890 (REINTERP_SS): Declarations added.
18891 (REINTERP_US): Likewise.
18892 (REINTERP_PS): Likewise.
18893 (REINTERP_SU): Likewise.
18894 (REINTERP_SP): Likewise.
18895 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
18896 (vreinterpretq_p8_f64): Likewise.
18897 (vreinterpret_p16_f64): Likewise.
18898 (vreinterpretq_p16_f64): Likewise.
18899 (vreinterpret_f32_f64): Likewise.
18900 (vreinterpretq_f32_f64): Likewise.
18901 (vreinterpret_f64_f32): Likewise.
18902 (vreinterpret_f64_p8): Likewise.
18903 (vreinterpret_f64_p16): Likewise.
18904 (vreinterpret_f64_s8): Likewise.
18905 (vreinterpret_f64_s16): Likewise.
18906 (vreinterpret_f64_s32): Likewise.
18907 (vreinterpret_f64_s64): Likewise.
18908 (vreinterpret_f64_u8): Likewise.
18909 (vreinterpret_f64_u16): Likewise.
18910 (vreinterpret_f64_u32): Likewise.
18911 (vreinterpret_f64_u64): Likewise.
18912 (vreinterpretq_f64_f32): Likewise.
18913 (vreinterpretq_f64_p8): Likewise.
18914 (vreinterpretq_f64_p16): Likewise.
18915 (vreinterpretq_f64_s8): Likewise.
18916 (vreinterpretq_f64_s16): Likewise.
18917 (vreinterpretq_f64_s32): Likewise.
18918 (vreinterpretq_f64_s64): Likewise.
18919 (vreinterpretq_f64_u8): Likewise.
18920 (vreinterpretq_f64_u16): Likewise.
18921 (vreinterpretq_f64_u32): Likewise.
18922 (vreinterpretq_f64_u64): Likewise.
18923 (vreinterpret_s64_f64): Likewise.
18924 (vreinterpretq_s64_f64): Likewise.
18925 (vreinterpret_u64_f64): Likewise.
18926 (vreinterpretq_u64_f64): Likewise.
18927 (vreinterpret_s8_f64): Likewise.
18928 (vreinterpretq_s8_f64): Likewise.
18929 (vreinterpret_s16_f64): Likewise.
18930 (vreinterpretq_s16_f64): Likewise.
18931 (vreinterpret_s32_f64): Likewise.
18932 (vreinterpretq_s32_f64): Likewise.
18933 (vreinterpret_u8_f64): Likewise.
18934 (vreinterpretq_u8_f64): Likewise.
18935 (vreinterpret_u16_f64): Likewise.
18936 (vreinterpretq_u16_f64): Likewise.
18937 (vreinterpret_u32_f64): Likewise.
18938 (vreinterpretq_u32_f64): Likewise.
18940 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
18942 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
18943 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
18944 (vreinterpret_p8_s8): Likewise.
18945 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
18946 (vreinterpret_p8_s16): Likewise.
18947 (vreinterpret_p8_s32): Likewise.
18948 (vreinterpret_p8_s64): Likewise.
18949 (vreinterpret_p8_f32): Likewise.
18950 (vreinterpret_p8_u8): Likewise.
18951 (vreinterpret_p8_u16): Likewise.
18952 (vreinterpret_p8_u32): Likewise.
18953 (vreinterpret_p8_u64): Likewise.
18954 (vreinterpret_p8_p16): Likewise.
18955 (vreinterpretq_p8_s8): Likewise.
18956 (vreinterpretq_p8_s16): Likewise.
18957 (vreinterpretq_p8_s32): Likewise.
18958 (vreinterpretq_p8_s64): Likewise.
18959 (vreinterpretq_p8_f32): Likewise.
18960 (vreinterpretq_p8_u8): Likewise.
18961 (vreinterpretq_p8_u16): Likewise.
18962 (vreinterpretq_p8_u32): Likewise.
18963 (vreinterpretq_p8_u64): Likewise.
18964 (vreinterpretq_p8_p16): Likewise.
18965 (vreinterpret_p16_s8): Likewise.
18966 (vreinterpret_p16_s16): Likewise.
18967 (vreinterpret_p16_s32): Likewise.
18968 (vreinterpret_p16_s64): Likewise.
18969 (vreinterpret_p16_f32): Likewise.
18970 (vreinterpret_p16_u8): Likewise.
18971 (vreinterpret_p16_u16): Likewise.
18972 (vreinterpret_p16_u32): Likewise.
18973 (vreinterpret_p16_u64): Likewise.
18974 (vreinterpret_p16_p8): Likewise.
18975 (vreinterpretq_p16_s8): Likewise.
18976 (vreinterpretq_p16_s16): Likewise.
18977 (vreinterpretq_p16_s32): Likewise.
18978 (vreinterpretq_p16_s64): Likewise.
18979 (vreinterpretq_p16_f32): Likewise.
18980 (vreinterpretq_p16_u8): Likewise.
18981 (vreinterpretq_p16_u16): Likewise.
18982 (vreinterpretq_p16_u32): Likewise.
18983 (vreinterpretq_p16_u64): Likewise.
18984 (vreinterpretq_p16_p8): Likewise.
18985 (vreinterpret_f32_s8): Likewise.
18986 (vreinterpret_f32_s16): Likewise.
18987 (vreinterpret_f32_s32): Likewise.
18988 (vreinterpret_f32_s64): Likewise.
18989 (vreinterpret_f32_u8): Likewise.
18990 (vreinterpret_f32_u16): Likewise.
18991 (vreinterpret_f32_u32): Likewise.
18992 (vreinterpret_f32_u64): Likewise.
18993 (vreinterpret_f32_p8): Likewise.
18994 (vreinterpret_f32_p16): Likewise.
18995 (vreinterpretq_f32_s8): Likewise.
18996 (vreinterpretq_f32_s16): Likewise.
18997 (vreinterpretq_f32_s32): Likewise.
18998 (vreinterpretq_f32_s64): Likewise.
18999 (vreinterpretq_f32_u8): Likewise.
19000 (vreinterpretq_f32_u16): Likewise.
19001 (vreinterpretq_f32_u32): Likewise.
19002 (vreinterpretq_f32_u64): Likewise.
19003 (vreinterpretq_f32_p8): Likewise.
19004 (vreinterpretq_f32_p16): Likewise.
19005 (vreinterpret_s64_s8): Likewise.
19006 (vreinterpret_s64_s16): Likewise.
19007 (vreinterpret_s64_s32): Likewise.
19008 (vreinterpret_s64_f32): Likewise.
19009 (vreinterpret_s64_u8): Likewise.
19010 (vreinterpret_s64_u16): Likewise.
19011 (vreinterpret_s64_u32): Likewise.
19012 (vreinterpret_s64_u64): Likewise.
19013 (vreinterpret_s64_p8): Likewise.
19014 (vreinterpret_s64_p16): Likewise.
19015 (vreinterpretq_s64_s8): Likewise.
19016 (vreinterpretq_s64_s16): Likewise.
19017 (vreinterpretq_s64_s32): Likewise.
19018 (vreinterpretq_s64_f32): Likewise.
19019 (vreinterpretq_s64_u8): Likewise.
19020 (vreinterpretq_s64_u16): Likewise.
19021 (vreinterpretq_s64_u32): Likewise.
19022 (vreinterpretq_s64_u64): Likewise.
19023 (vreinterpretq_s64_p8): Likewise.
19024 (vreinterpretq_s64_p16): Likewise.
19025 (vreinterpret_u64_s8): Likewise.
19026 (vreinterpret_u64_s16): Likewise.
19027 (vreinterpret_u64_s32): Likewise.
19028 (vreinterpret_u64_s64): Likewise.
19029 (vreinterpret_u64_f32): Likewise.
19030 (vreinterpret_u64_u8): Likewise.
19031 (vreinterpret_u64_u16): Likewise.
19032 (vreinterpret_u64_u32): Likewise.
19033 (vreinterpret_u64_p8): Likewise.
19034 (vreinterpret_u64_p16): Likewise.
19035 (vreinterpretq_u64_s8): Likewise.
19036 (vreinterpretq_u64_s16): Likewise.
19037 (vreinterpretq_u64_s32): Likewise.
19038 (vreinterpretq_u64_s64): Likewise.
19039 (vreinterpretq_u64_f32): Likewise.
19040 (vreinterpretq_u64_u8): Likewise.
19041 (vreinterpretq_u64_u16): Likewise.
19042 (vreinterpretq_u64_u32): Likewise.
19043 (vreinterpretq_u64_p8): Likewise.
19044 (vreinterpretq_u64_p16): Likewise.
19045 (vreinterpret_s8_s16): Likewise.
19046 (vreinterpret_s8_s32): Likewise.
19047 (vreinterpret_s8_s64): Likewise.
19048 (vreinterpret_s8_f32): Likewise.
19049 (vreinterpret_s8_u8): Likewise.
19050 (vreinterpret_s8_u16): Likewise.
19051 (vreinterpret_s8_u32): Likewise.
19052 (vreinterpret_s8_u64): Likewise.
19053 (vreinterpret_s8_p8): Likewise.
19054 (vreinterpret_s8_p16): Likewise.
19055 (vreinterpretq_s8_s16): Likewise.
19056 (vreinterpretq_s8_s32): Likewise.
19057 (vreinterpretq_s8_s64): Likewise.
19058 (vreinterpretq_s8_f32): Likewise.
19059 (vreinterpretq_s8_u8): Likewise.
19060 (vreinterpretq_s8_u16): Likewise.
19061 (vreinterpretq_s8_u32): Likewise.
19062 (vreinterpretq_s8_u64): Likewise.
19063 (vreinterpretq_s8_p8): Likewise.
19064 (vreinterpretq_s8_p16): Likewise.
19065 (vreinterpret_s16_s8): Likewise.
19066 (vreinterpret_s16_s32): Likewise.
19067 (vreinterpret_s16_s64): Likewise.
19068 (vreinterpret_s16_f32): Likewise.
19069 (vreinterpret_s16_u8): Likewise.
19070 (vreinterpret_s16_u16): Likewise.
19071 (vreinterpret_s16_u32): Likewise.
19072 (vreinterpret_s16_u64): Likewise.
19073 (vreinterpret_s16_p8): Likewise.
19074 (vreinterpret_s16_p16): Likewise.
19075 (vreinterpretq_s16_s8): Likewise.
19076 (vreinterpretq_s16_s32): Likewise.
19077 (vreinterpretq_s16_s64): Likewise.
19078 (vreinterpretq_s16_f32): Likewise.
19079 (vreinterpretq_s16_u8): Likewise.
19080 (vreinterpretq_s16_u16): Likewise.
19081 (vreinterpretq_s16_u32): Likewise.
19082 (vreinterpretq_s16_u64): Likewise.
19083 (vreinterpretq_s16_p8): Likewise.
19084 (vreinterpretq_s16_p16): Likewise.
19085 (vreinterpret_s32_s8): Likewise.
19086 (vreinterpret_s32_s16): Likewise.
19087 (vreinterpret_s32_s64): Likewise.
19088 (vreinterpret_s32_f32): Likewise.
19089 (vreinterpret_s32_u8): Likewise.
19090 (vreinterpret_s32_u16): Likewise.
19091 (vreinterpret_s32_u32): Likewise.
19092 (vreinterpret_s32_u64): Likewise.
19093 (vreinterpret_s32_p8): Likewise.
19094 (vreinterpret_s32_p16): Likewise.
19095 (vreinterpretq_s32_s8): Likewise.
19096 (vreinterpretq_s32_s16): Likewise.
19097 (vreinterpretq_s32_s64): Likewise.
19098 (vreinterpretq_s32_f32): Likewise.
19099 (vreinterpretq_s32_u8): Likewise.
19100 (vreinterpretq_s32_u16): Likewise.
19101 (vreinterpretq_s32_u32): Likewise.
19102 (vreinterpretq_s32_u64): Likewise.
19103 (vreinterpretq_s32_p8): Likewise.
19104 (vreinterpretq_s32_p16): Likewise.
19105 (vreinterpret_u8_s8): Likewise.
19106 (vreinterpret_u8_s16): Likewise.
19107 (vreinterpret_u8_s32): Likewise.
19108 (vreinterpret_u8_s64): Likewise.
19109 (vreinterpret_u8_f32): Likewise.
19110 (vreinterpret_u8_u16): Likewise.
19111 (vreinterpret_u8_u32): Likewise.
19112 (vreinterpret_u8_u64): Likewise.
19113 (vreinterpret_u8_p8): Likewise.
19114 (vreinterpret_u8_p16): Likewise.
19115 (vreinterpretq_u8_s8): Likewise.
19116 (vreinterpretq_u8_s16): Likewise.
19117 (vreinterpretq_u8_s32): Likewise.
19118 (vreinterpretq_u8_s64): Likewise.
19119 (vreinterpretq_u8_f32): Likewise.
19120 (vreinterpretq_u8_u16): Likewise.
19121 (vreinterpretq_u8_u32): Likewise.
19122 (vreinterpretq_u8_u64): Likewise.
19123 (vreinterpretq_u8_p8): Likewise.
19124 (vreinterpretq_u8_p16): Likewise.
19125 (vreinterpret_u16_s8): Likewise.
19126 (vreinterpret_u16_s16): Likewise.
19127 (vreinterpret_u16_s32): Likewise.
19128 (vreinterpret_u16_s64): Likewise.
19129 (vreinterpret_u16_f32): Likewise.
19130 (vreinterpret_u16_u8): Likewise.
19131 (vreinterpret_u16_u32): Likewise.
19132 (vreinterpret_u16_u64): Likewise.
19133 (vreinterpret_u16_p8): Likewise.
19134 (vreinterpret_u16_p16): Likewise.
19135 (vreinterpretq_u16_s8): Likewise.
19136 (vreinterpretq_u16_s16): Likewise.
19137 (vreinterpretq_u16_s32): Likewise.
19138 (vreinterpretq_u16_s64): Likewise.
19139 (vreinterpretq_u16_f32): Likewise.
19140 (vreinterpretq_u16_u8): Likewise.
19141 (vreinterpretq_u16_u32): Likewise.
19142 (vreinterpretq_u16_u64): Likewise.
19143 (vreinterpretq_u16_p8): Likewise.
19144 (vreinterpretq_u16_p16): Likewise.
19145 (vreinterpret_u32_s8): Likewise.
19146 (vreinterpret_u32_s16): Likewise.
19147 (vreinterpret_u32_s32): Likewise.
19148 (vreinterpret_u32_s64): Likewise.
19149 (vreinterpret_u32_f32): Likewise.
19150 (vreinterpret_u32_u8): Likewise.
19151 (vreinterpret_u32_u16): Likewise.
19152 (vreinterpret_u32_u64): Likewise.
19153 (vreinterpret_u32_p8): Likewise.
19154 (vreinterpret_u32_p16): Likewise.
19155 (vreinterpretq_u32_s8): Likewise.
19156 (vreinterpretq_u32_s16): Likewise.
19157 (vreinterpretq_u32_s32): Likewise.
19158 (vreinterpretq_u32_s64): Likewise.
19159 (vreinterpretq_u32_f32): Likewise.
19160 (vreinterpretq_u32_u8): Likewise.
19161 (vreinterpretq_u32_u16): Likewise.
19162 (vreinterpretq_u32_u64): Likewise.
19163 (vreinterpretq_u32_p8): Likewise.
19164 (vreinterpretq_u32_p16): Likewise.
19166 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19168 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19170 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19172 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19173 (vqnegd_s64): Likewise.
19174 (vqabs_s64): Likewise.
19175 (vqabsd_s64): Likewise.
19177 2014-04-22 Richard Henderson <rth@redhat.com>
19179 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19180 computation to the top of the loop.
19182 2014-04-22 Renlin <renlin.li@arm.com>
19183 Jiong Wang <jiong.wang@arm.com>
19185 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19186 * config/aarch64/aarch64.c (aarch64_layout_frame)
19187 (aarch64_initial_elimination_offset): Likewise.
19189 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19191 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19194 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19196 * machmode.h (bitwise_mode_for_mode): Declare.
19197 * stor-layout.h (bitwise_type_for_mode): Likewise.
19198 * stor-layout.c (bitwise_mode_for_mode): New function.
19199 (bitwise_type_for_mode): Likewise.
19200 * builtins.c (fold_builtin_memory_op): Use it instead of
19201 int_mode_for_mode and build_nonstandard_integer_type.
19203 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19205 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19206 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19207 (*-*-solaris2*): Simplify.
19208 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19209 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19210 *-*-solaris2.9* handling.
19212 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19214 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19215 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19216 handling, simplify.
19217 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19218 * configure: Regenerate.
19220 * config/i386/sol2-9.h: Remove.
19222 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19223 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19224 Remove Solaris 9 references.
19226 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19228 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19229 (floatuns<GPI:mode><GPF:mode>2): Remove.
19230 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19231 and floatuns conversions.
19232 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19233 and floatuns conversions.
19234 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19235 (w1,w2): New mode attributes for inequal width conversions.
19237 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19239 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19240 the output asm format.
19242 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19244 * config/aarch64/aarch64-simd.md
19245 (aarch64_cm<optab>di): Always split.
19246 (*aarch64_cm<optab>di): New.
19247 (aarch64_cmtstdi): Always split.
19248 (*aarch64_cmtstdi): New.
19250 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19252 PR tree-optimization/60823
19253 * omp-low.c (ipa_simd_modify_function_body): Go through
19254 all SSA_NAMEs and for those refering to vector arguments
19255 which are going to be replaced adjust SSA_NAME_VAR and,
19256 if it is a default definition, change it into a non-default
19257 definition assigned at the beginning of function from new_decl.
19258 (ipa_simd_modify_stmt_ops): Rewritten.
19259 * tree-dfa.c (set_ssa_default_def): When removing default def,
19260 check for NULL loc instead of NULL *loc.
19262 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19264 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19265 restrictions on core registers for DImode values in Thumb2.
19267 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19269 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19270 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19272 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19274 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
19275 (*iordi_notzesidi_di): Likewise.
19276 (*iordi_notsesidi_di): Likewise.
19278 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19280 * config/arm/arm-protos.h (tune_params): New struct members.
19281 * config/arm/arm.c: Initialise tune_params per processor.
19282 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
19283 for speed, based on new tune_params.
19285 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19287 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
19288 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
19289 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
19290 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
19291 * config/aarch64/arm_neon.h (vrnd_f64): Added.
19292 (vrnda_f64): Likewise.
19293 (vrndi_f64): Likewise.
19294 (vrndm_f64): Likewise.
19295 (vrndn_f64): Likewise.
19296 (vrndp_f64): Likewise.
19297 (vrndx_f64): Likewise.
19299 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19301 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
19302 GET_MODE_SIZE argument is enum machine_mode.
19304 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19307 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
19308 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
19310 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
19312 PR middle-end/60281
19313 * asan.c (asan_emit_stack_protection): Force the base to align to
19314 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
19315 appropriate bits if STRICT_ALIGNMENT.
19316 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
19318 (expand_used_vars): Leave a space in the stack frame for alignment
19319 if STRICT_ALIGNMENT.
19321 2014-04-21 David Malcolm <dmalcolm@redhat.com>
19323 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
19325 (gimple_store_p): Likewise.
19326 (gimple_assign_load_p): Likewise.
19327 (gimple_assign_cast_p): Likewise.
19328 (gimple_clobber_p): Likewise.
19330 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
19331 rather than a gimple.
19332 (gimple_assign_cast_p): Likewise.
19334 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19337 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
19338 If mode is DDmode and TARGET_E500_DOUBLE allow move.
19340 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
19341 more debug information for E500 if -mdebug=reg.
19343 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
19346 * config/i386/i386.c (ix86_expand_builtin)
19347 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
19348 register for target RTX.
19349 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
19351 2014-04-18 Cong Hou <congh@google.com>
19353 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
19354 the widen-mult pattern by handling two operands with different sizes,
19355 and operands whose size is smaller than half of the result type.
19357 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19359 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
19360 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
19361 (do_estimate_edge_time): Compute it.
19362 * ipa-inline.c (want_inline_small_function_p): Bypass
19363 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
19365 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19367 * ipa-inline.c (spec_rem): New static variable.
19368 (dump_overall_stats): New function.
19369 (dump_inline_stats): New function.
19371 2014-04-18 Richard Henderson <rth@redhat.com>
19373 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
19374 to GET_MODE_SIZE, not a reg_class_t.
19376 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19378 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
19379 (vsx_xxmrglw_<mode>): Likewise.
19381 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
19384 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
19385 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
19386 (rs6000_init_hard_regno_mode_ok): Likewise.
19388 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
19390 * ipa-inline.c (inline_small_functions): Account only non-cold
19392 * doc/invoke.texi (inline-unit-growth): Update documentation.
19394 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
19396 * config/rs6000/rs6000.md (addti3, subti3): New.
19398 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
19401 * config/i386/i386.c (ix86_expand_clear): Remove outdated
19402 comment. Check optimize_insn_for_size_p instead of
19403 optimize_insn_for_speed_p.
19405 2014-04-17 Martin Jambor <mjambor@suse.cz>
19407 * gimple-iterator.c (gsi_start_edge): New function.
19408 * gimple-iterator.h (gsi_start_edge): Declare.
19409 * tree-sra.c (single_non_eh_succ): New function.
19410 (disqualify_ops_if_throwing_stmt): Renamed to
19411 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
19412 having one non-EH successor BB.
19413 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
19414 generate loads into replacements.
19415 (sra_modify_assign): Likewise and and also use the simple path for
19417 (sra_modify_function_body): Commit statements on edges.
19419 2014-04-17 Richard Biener <rguenther@suse.de>
19421 PR middle-end/60849
19422 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
19423 comparison results and add clarifying comment.
19425 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19427 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
19428 (blank_mode): Initialize it.
19429 (emit_mode_size_inline, emit_mode_nunits_inline,
19430 emit_mode_inner_inline): New functions.
19431 (emit_insn_modes_h): Call them and surround their output with
19432 #if GCC_VERSION >= 4001 ... #endif.
19433 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
19434 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
19435 mode_* arrays if the argument is __builtin_constant_p.
19436 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
19437 is enum machine_mode.
19439 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19441 * passes.c (opt_pass::execute): Adjust.
19442 (pass_manager::execute_pass_mode_switching): Likewise.
19443 (early_local_passes::execute): Likewise.
19444 (execute_one_pass): Pass cfun to the pass's execute method.
19445 * tree-pass.h (opt_pass::execute): Add function * argument.
19446 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19447 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19448 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19449 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19450 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19451 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
19452 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
19453 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19454 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19455 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
19456 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
19457 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
19458 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
19459 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
19460 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19461 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19462 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19463 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
19464 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19465 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19466 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19467 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19468 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19469 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19470 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19471 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19472 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19473 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19474 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19477 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19479 * passes.c (opt_pass::gate): Take function * argument.
19480 (gate_all_early_local_passes): Merge into
19481 (early_local_passes::gate): this.
19482 (gate_all_early_optimizations): Merge into
19483 (all_early_optimizations::gate): this.
19484 (gate_all_optimizations): Mege into
19485 (all_optimizations::gate): this.
19486 (gate_all_optimizations_g): Merge into
19487 (all_optimizations_g::gate): this.
19488 (gate_rest_of_compilation): Mege into
19489 (rest_of_compilation::gate): this.
19490 (gate_postreload): Merge into
19491 (postreload::gate): this.
19492 (dump_one_pass): Pass cfun to the pass's gate method.
19493 (execute_ipa_summary_passes): Likewise.
19494 (execute_one_pass): Likewise.
19495 (ipa_write_summaries_2): Likewise.
19496 (ipa_write_optimization_summaries_1): Likewise.
19497 (ipa_read_summaries_1): Likewise.
19498 (ipa_read_optimization_summaries_1): Likewise.
19499 (execute_ipa_stmt_fixups): Likewise.
19500 * tree-pass.h (opt_pass::gate): Add function * argument.
19501 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
19502 combine-stack-adj.c, combine.c, compare-elim.c,
19503 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19504 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
19505 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
19506 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
19507 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19508 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19509 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19510 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
19511 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
19512 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
19513 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19514 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19515 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
19516 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19517 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19518 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19519 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19520 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19521 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19522 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19523 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19524 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19525 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
19526 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
19527 var-tracking.c, vtable-verify.c, web.c: Adjust.
19529 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19531 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
19532 * configure: Regenerate.
19534 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19536 * passes.c (dump_one_pass): don't check pass->has_gate.
19537 (execute_ipa_summary_passes): Likewise.
19538 (execute_one_pass): Likewise.
19539 (ipa_write_summaries_2): Likewise.
19540 (ipa_write_optimization_summaries_1): Likewise.
19541 (ipa_read_optimization_summaries_1): Likewise.
19542 (execute_ipa_stmt_fixups): Likewise.
19543 * tree-pass.h (pass_data::has_gate): Remove.
19544 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19545 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19546 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19547 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19548 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19549 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
19550 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
19551 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
19552 gimple-low.c, gimple-ssa-isolate-paths.c,
19553 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
19554 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
19555 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19556 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
19557 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
19558 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
19559 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
19560 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
19561 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
19562 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19563 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19564 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19565 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19566 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19567 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19568 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19569 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19570 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19571 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19572 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19573 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19574 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19577 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19579 * pass_manager.h (pass_manager::register_dump_files_1): Remove
19581 * passes.c (pass_manager::register_dump_files_1): Merge into
19582 (pass_manager::register_dump_files): this, and remove its handling of
19583 properties since the pass always has the properties anyway.
19584 (pass_manager::pass_manager): Adjust.
19586 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19588 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
19589 * passes.c (pass_manager::register_dump_files_1): Remove dead code
19590 dealing with properties.
19591 (pass_manager::register_dump_files): Adjust.
19593 2014-03-20 Mark Wielaard <mjw@redhat.com>
19595 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
19596 then represent the bound as normal constant value.
19598 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19601 Forward port from 4.8 branch
19602 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
19604 * config/i386/bmiintrin.h (_blsi_u32): New.
19605 (_blsi_u64): Ditto.
19606 (_blsr_u32): Ditto.
19607 (_blsr_u64): Ditto.
19608 (_blsmsk_u32): Ditto.
19609 (_blsmsk_u64): Ditto.
19610 (_tzcnt_u32): Ditto.
19611 (_tzcnt_u64): Ditto.
19613 2014-04-17 Kito Cheng <kito@0xlab.org>
19615 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
19617 2014-04-17 Richard Biener <rguenther@suse.de>
19619 PR middle-end/60849
19620 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
19621 boolean results for comparisons.
19623 2014-04-17 Richard Biener <rguenther@suse.de>
19625 PR tree-optimization/60836
19626 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
19627 initial PHI args to be gimple values.
19629 2014-04-17 Richard Biener <rguenther@suse.de>
19631 PR tree-optimization/60841
19632 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
19633 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
19634 of stmts to SLP build.
19635 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
19636 (vect_analyze_slp): Likewise.
19637 (vect_analyze_slp_instance): Likewise.
19638 (vect_build_slp_tree): Limit overall SLP tree growth.
19639 * tree-vectorizer.h (vect_analyze_data_refs,
19640 vect_analyze_slp): Adjust prototypes.
19642 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19644 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
19647 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19649 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
19650 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
19651 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
19652 for TARGET_SLOW_PSHUFB
19654 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19656 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
19657 * config/i386/i386.c (intel_cost): Ditto.
19659 2014-04-17 Joey Ye <joey.ye@arm.com>
19661 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
19663 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19665 * opts.c (common_handle_option): Disable -fipa-reference coorectly
19666 with -fuse-profile.
19668 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19670 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
19671 (type_all_derivations_known_p): New predicate.
19672 (type_all_ctors_visible_p): New predicate.
19673 (type_possibly_instantiated_p): New predicate.
19674 (get_odr_type): Compute all_derivations_known.
19675 (dump_odr_type): Dump the flag.
19676 (maybe_record_type): Cleanup.
19677 (record_target_from_binfo): Add bases_to_consider array;
19678 record bases for types w/o instances and skip CXX destructor.
19679 (possible_polymorphic_call_targets_1): Add bases_to_consider
19680 and consider_construction parameters; check if type may have instance.
19681 (get_polymorphic_call_info): Set maybe_in_construction to true
19682 when we know nothing.
19683 (record_targets_from_bases): Skip CXX destructors; they are
19684 never called for types in construction.
19685 (possible_polymorphic_call_targets): Do not record target when
19686 type may not have instance.
19688 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19691 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
19692 external aliases alive, too.
19694 2014-04-16 Andrew Pinski <apinski@cavium.com>
19696 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
19699 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
19701 * final.c (compute_alignments): Do not apply loop alignment to a block
19702 falling through to the exit.
19704 2014-04-16 Catherine Moore <clm@codesourcery.com>
19706 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
19707 Adjust constraints for microMIPS store patterns.
19709 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
19711 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
19713 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
19715 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
19716 (append_use): Run at -O0.
19717 (append_vdef): Likewise.
19718 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
19719 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
19721 2014-04-16 Jakub Jelinek <jakub@redhat.com>
19723 PR tree-optimization/60844
19724 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
19725 (propagate_op_to_single_use, remove_visited_stmt_chain,
19726 linearize_expr, repropagate_negates, reassociate_bb): Use it
19727 instead of gsi_remove.
19729 2014-04-16 Martin Jambor <mjambor@suse.cz>
19731 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
19732 ipa_transforms_to_apply.
19733 (cgraph_function_versioning): Assert that old_node has empty
19734 ipa_transforms_to_apply.
19735 * trans-mem.c (ipa_tm_create_version): Likewise.
19736 * tree-inline.c (tree_function_versioning): Do not duplicate
19737 ipa_transforms_to_apply.
19739 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19742 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
19744 Pass necessary as flags on 64-bit Solaris/x86.
19745 Use lowercase relocs for x86_64-*-*.
19746 * configure: Regenerate.
19748 2014-04-15 Jan Hubicka <jh@suse.cz>
19750 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
19751 (maybe_record_node, likely_target_p): Use it.
19753 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19756 Revert following patch
19758 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19761 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
19762 software floating point or no floating point registers, do not
19763 allow any type in the FPRs. Eliminate a test for SPE SIMD types
19764 in GPRs that occurs after we tested for GPRs that would never be
19767 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
19768 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
19769 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
19770 specifically allow DDmode, since that does not use the SPE SIMD
19773 2014-03-21 Mark Wielaard <mjw@redhat.com>
19775 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
19776 as unsigned or int depending on type and value used.
19778 2014-04-15 Richard Biener <rguenther@suse.de>
19780 PR rtl-optimization/56965
19781 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
19782 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
19784 * alias.c (true_dependence_1): Do not call
19785 nonoverlapping_component_refs_p.
19786 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
19787 nonoverlapping_component_refs_p.
19788 (indirect_refs_may_alias_p): Likewise.
19790 2014-04-15 Teresa Johnson <tejohnson@google.com>
19792 * cfg.c (dump_bb_info): Fix flags check.
19793 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
19795 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19797 PR rtl-optimization/60663
19798 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
19801 2014-04-15 Richard Biener <rguenther@suse.de>
19803 * lto-streamer.h (LTO_major_version): Bump to 4.
19805 2014-04-15 Richard Biener <rguenther@suse.de>
19807 * common.opt (lto_partition_model): New enum.
19808 (flto-partition=): Merge separate options with a single with argument,
19809 add -flto-partition=one support.
19810 * flag-types.h (enum lto_partition_model): Declare.
19811 * opts.c (finish_options): Remove duplicate -flto-partition=
19813 * lto-wrapper.c (run_gcc): Adjust.
19815 2014-04-15 Richard Biener <rguenther@suse.de>
19817 * alias.c (ncr_compar): New function.
19818 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
19820 2014-04-15 Richard Biener <rguenther@suse.de>
19822 * alias.c (record_component_aliases): Do not walk BINFOs.
19824 2014-04-15 Richard Biener <rguenther@suse.de>
19826 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19827 Add struct function argument and adjust.
19828 (find_func_aliases_for_call): Likewise.
19829 (find_func_aliases): Likewise.
19830 (find_func_clobbers): Likewise.
19831 (intra_create_variable_infos): Likewise.
19832 (compute_points_to_sets): Likewise.
19833 (ipa_pta_execute): Adjust. Do not push/pop cfun.
19835 2014-04-15 Richard Biener <rguenther@suse.de>
19837 * tree.c (iterative_hash_expr): Use enum tree_code_class
19838 to store TREE_CODE_CLASS.
19839 (tree_block): Likewise.
19840 (tree_set_block): Likewise.
19841 * tree.h (fold_build_pointer_plus_loc): Use
19842 convert_to_ptrofftype_loc.
19844 2014-04-15 Jakub Jelinek <jakub@redhat.com>
19847 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
19850 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
19852 * cfgloop.h (struct loop): Move force_vectorize down.
19853 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
19854 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
19855 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
19856 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
19857 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
19858 * tree-core.h (enum annot_expr_kind): Add new kind values.
19859 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
19860 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
19862 * tree.def (ANNOTATE_EXPR): Tweak comment.
19864 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
19866 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
19869 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
19871 * tree.h (TYPE_IDENTIFIER): Declare.
19872 * tree.c (subrange_type_for_debug_p): Use it.
19873 * godump.c (go_format_type): Likewise.
19874 * dwarf2out.c (is_cxx_auto, modified_type_die,
19875 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
19876 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
19878 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
19881 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
19883 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
19885 * config/i386/i386.c (examine_argument): Return bool. Return true if
19886 parameter should be passed in memory.
19887 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
19888 (construct_container): Update calls to examine_argument.
19889 (function_arg_advance_64): Ditto.
19890 (return_in_memory_32): Merge with ix86_return_in_memory.
19891 (return_in_memory_64): Ditto.
19892 (return_in_memory_ms_64): Ditto.
19894 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
19896 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
19897 * coverage.c (coverage_compute_profile_id): Handle externally visible
19900 2014-04-14 Martin Jambor <mjambor@suse.cz>
19902 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
19903 DECL_DISREGARD_INLINE_LIMITS functions.
19905 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
19908 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
19910 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
19913 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
19914 optimize_insn_for_speed_p instead of
19915 optimize_function_for_speed_p.
19917 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
19919 * doc/invoke.texi (free): Document AArch64.
19921 2014-04-14 Richard Biener <rguenther@suse.de>
19923 PR tree-optimization/60042
19924 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
19925 (insert_into_preds_of_block): Do not prevent PHI insertion
19926 for REFERENCE exprs here ...
19927 (eliminate_dom_walker::before_dom_children): ... but prevent
19928 their use here under similar conditions when applied to the
19929 IL after PRE optimizations.
19931 2014-04-14 Richard Biener <rguenther@suse.de>
19933 * passes.def: Move early points-to after early SRA.
19935 2014-04-14 Richard Biener <rguenther@suse.de>
19937 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
19938 check for which sign-changes we allow when forwarding
19939 a converted value into a switch.
19941 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
19943 * stor-layout.c (place_field): Finalize non-constant offset for the
19946 2014-04-14 Richard Biener <rguenther@suse.de>
19948 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
19950 (expand_switch_using_bit_tests_p): Likewise.
19951 (process_switch): Compute and pass on speed_p based on the
19953 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
19954 optimize_bb_for_speed_p.
19956 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
19958 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
19959 * function.h (struct function): Rename has_force_vect_loops into
19960 has_force_vectorize_loops.
19961 * lto-streamer-in.c (input_cfg): Adjust for renaming.
19962 (input_struct_function_base): Likewise.
19963 * lto-streamer-out.c (output_cfg): Likewise.
19964 (output_struct_function_base): Likewise.
19965 * omp-low.c (expand_omp_simd): Likewise.
19966 * tree-cfg.c (move_sese_region_to_fn): Likewise.
19967 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
19968 (version_loop_for_if_conversion): Likewise.
19969 (tree_if_conversion): Likewise.
19970 (main_tree_if_conversion): Likewise.
19971 (gate_tree_if_conversion): Likewise.
19972 * tree-inline.c (copy_loops): Likewise.
19973 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
19974 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
19975 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
19976 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
19977 * tree-vectorizer.c (vectorize_loops): Likewise.
19978 * tree-vectorizer.h (unlimited_cost_model): Likewise.
19980 2014-04-14 Richard Biener <rguenther@suse.de>
19983 * lto-streamer-out.c (wrap_refs): New function.
19984 (lto_output): Wrap symbol references in global initializes in
19985 type-preserving MEM_REFs.
19987 2014-04-14 Christian Bruel <christian.bruel@st.com>
19989 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
19991 2014-04-14 Christian Bruel <christian.bruel@st.com>
19993 * config/sh/sh.md (setmemqi): New expand pattern.
19994 * config/sh/sh.h (CLEAR_RATIO): Define.
19995 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
19996 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
19998 2014-04-14 Richard Biener <rguenther@suse.de>
20000 PR middle-end/55022
20001 * fold-const.c (negate_expr_p): Don't negate directional rounding
20003 (fold_negate_expr): Likewise.
20005 2014-04-14 Richard Biener <rguenther@suse.de>
20007 PR tree-optimization/59817
20008 PR tree-optimization/60453
20009 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20010 recursion to catch all CHRECs in the scalar evolution and restrict
20011 the predicate for the remains appropriately.
20013 2014-04-12 Catherine Moore <clm@codesourcery.com>
20015 * config/mips/constraints.md: Add new register constraint "kb".
20016 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20017 (*movhi_internal): Likewise.
20018 (*movqi_internal): Likewise.
20019 * config/mips/mips.h (M16_STORE_REGS): New register class.
20020 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20021 (REG_CLASS_CONTENTS): Likewise.
20022 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20024 2014-04-11 Tobias Burnus <burnus@net-b.de>
20027 * doc/invoke.texi (-Wformat-signedness): Document it.
20028 (Wformat=2): Mention that this enables -Wformat-signedness.
20030 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20032 * common/config/epiphany/epiphany-common.c
20033 (epiphany_option_optimization_table): Enable section anchors by
20034 default at -O1 or higher.
20035 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20036 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20037 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20038 carries no extra cost.
20039 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20040 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20041 * config/epiphany/predicates.md (memclob_operand): New predicate.
20042 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20043 Use memclob_operand predicate and X constraint for operand 3.
20045 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20047 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20048 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20051 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20053 PR rtl-optimization/60651
20054 * mode-switching.c (optimize_mode_switching): Make sure to emit
20055 sets of a lower numbered entity before sets of a higher numbered
20056 entity to a mode of the same or lower priority.
20057 When creating a seginfo for a basic block that starts with a code
20058 label, move the insertion point past the code label.
20059 (new_seginfo): Document and enforce requirement that
20060 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20061 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20062 * doc/tm.texi: Regenerate.
20064 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20067 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20069 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20071 * BASE-VER: Set to 4.10.0.
20073 2014-04-11 Tobias Burnus <burnus@net-b.de>
20076 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20077 * doc/gcc.texi (Service): Update description in the @menu
20078 * doc/invoke.texi (Option Summary): Remove misplaced and
20081 2014-04-11 Steve Ellcey <sellcey@mips.com>
20082 Jakub Jelinek <jakub@redhat.com>
20084 PR middle-end/60556
20085 * expr.c (convert_move): Use emit_store_flag_force instead of
20086 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20089 2014-04-11 Richard Biener <rguenther@suse.de>
20091 PR middle-end/60797
20092 * varasm.c (assemble_alias): Avoid endless error reporting
20093 recursion by setting TREE_ASM_WRITTEN.
20095 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20097 * config/s390/s390.md: Add a splitter for NOT rtx.
20099 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20101 PR rtl-optimization/60663
20102 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20104 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20105 Jakub Jelinek <jakub@redhat.com>
20108 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20109 flag from decl_node to node.
20111 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20114 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20115 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20116 ameliorating the cases where it can be.
20118 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20121 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20123 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20124 (loadsync_<mode>): Change mode.
20125 (load_quadpti, store_quadpti): New.
20126 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20127 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20128 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20130 2014-04-09 Cong Hou <congh@google.com>
20133 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20136 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20138 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20139 instead of vnor to exploit possible fusion opportunity in the
20141 (altivec_expand_vec_perm_const_le): Likewise.
20143 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20145 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20146 (loadsync_<mode>): Change mode.
20147 (load_quadpti, store_quadpti): New.
20148 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20149 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20151 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20154 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20155 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20156 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20158 2014-04-08 Richard Biener <rguenther@suse.de>
20160 PR middle-end/60706
20161 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20162 a 64bit widest int print double-int similar to on HWI64 hosts.
20164 2014-04-08 Richard Biener <rguenther@suse.de>
20166 PR tree-optimization/60785
20167 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20168 default defs properly.
20170 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20172 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20173 (Weffc++): Likewise.
20175 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20177 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20178 set completep to false rather than true.
20180 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20183 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20184 ARM_TARGET2_DWARF_FORMAT.
20186 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20189 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20190 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20193 2014-04-07 Richard Biener <rguenther@suse.de>
20195 PR tree-optimization/60766
20196 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20197 (may_eliminate_iv): Convert cand_value_at result to desired type.
20199 2014-04-07 Jason Merrill <jason@redhat.com>
20202 * common.opt (-fno-gnu-unique): Add.
20203 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20205 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20207 * haifa-sched.c: Fix outdated function reference and minor
20208 grammar errors in introductory comment.
20210 2014-04-07 Richard Biener <rguenther@suse.de>
20212 PR middle-end/60750
20213 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20214 for noreturn calls.
20215 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20217 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20220 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20221 size accounting for thunks.
20222 (pa_asm_output_mi_thunk): Use final_start_function() and
20223 final_end_function() to output function start and end directives.
20225 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20227 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20228 device specific ISA/ feature information. Remove short_sp and
20229 errata_skip ds. Add avr_device_specific_features enum to have device
20231 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20232 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20233 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20234 updated device specific info.
20235 * config/avr/avr-mcus.def: Merge device specific details to
20236 dev_attribute field.
20237 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20239 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20240 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20241 assembler if RMW isa supported by current device.
20242 * config/avr/genmultilib.awk: Update as device info structure changed.
20243 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20245 2014-04-04 Cong Hou <congh@google.com>
20247 PR tree-optimization/60656
20248 * tree-vect-stmts.c (supportable_widening_operation):
20249 Fix a bug that elements in a vector with vect_used_by_reduction
20250 property are incorrectly reordered when the operation on it is not
20251 consistant with the one in reduction operation.
20253 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
20255 PR rtl-optimization/60155
20256 * gcse.c (record_set_data): New function.
20257 (single_set_gcse): New function.
20258 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20259 (hoist_code): Likewise.
20260 (get_pressure_class_and_nregs): Likewise.
20262 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
20264 * explow.c (probe_stack_range): Emit a final optimization blockage.
20266 2014-04-04 Anthony Green <green@moxielogic.com>
20268 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20271 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
20274 * lto-cgraph.c (input_overwrite_node): Check that partitioning
20275 flags are set only during streaming.
20276 * ipa.c (process_references, walk_polymorphic_call_targets,
20277 symtab_remove_unreachable_nodes): Drop bodies of always inline
20278 after early inlining.
20279 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
20281 2014-04-04 Jakub Jelinek <jakub@redhat.com>
20282 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20285 * dwarf2out.c (const_ok_for_output_1): Reject expressions
20288 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20291 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
20293 (cortex_a53_fdivd): Likewise.
20295 2014-04-04 Martin Jambor <mjambor@suse.cz>
20298 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
20299 Adjust all callers.
20300 * cgraph.c (clone_of_p): Also return true if thunks match.
20301 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
20302 cgraph_function_or_thunk_node and an obsolete comment.
20303 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
20305 (build_function_decl_skip_args): Likewise.
20306 (set_new_clone_decl_and_node_flags): New function.
20307 (duplicate_thunk_for_node): Likewise.
20308 (redirect_edge_duplicating_thunks): Likewise.
20309 (cgraph_clone_node): New parameter args_to_skip, pass it to
20310 redirect_edge_duplicating_thunks which is called instead of
20311 cgraph_redirect_edge_callee.
20312 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
20313 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
20315 2014-04-04 Jeff Law <law@redhat.com>
20318 * config/arm/predicates.md (const_int_I_operand): New predicate.
20319 (const_int_M_operand): Similarly.
20320 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
20322 (insv_t2, extv_reg, extzv_t2): Likewise.
20323 (load_multiple_with_writeback): Similarly for const_int_I_operand.
20324 (pop_multiple_with_writeback_and_return): Likewise.
20325 (vfp_pop_multiple_with_writeback): Likewise
20327 2014-04-04 Richard Biener <rguenther@suse.de>
20330 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
20331 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
20333 * gimplify.h (gimple_add_tmp_var_fn): Declare.
20334 * gimplify.c (gimple_add_tmp_var_fn): New function.
20335 * gimple-expr.h (create_tmp_reg_fn): Declare.
20336 * gimple-expr.c (create_tmp_reg_fn): New function.
20337 * gimple-low.c (record_vars_into): Don't change cfun.
20338 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
20339 code generation without cfun.
20341 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
20344 * Makefile.in (install-driver): Fix shell scripting.
20346 2014-04-03 Cong Hou <congh@google.com>
20348 PR tree-optimization/60505
20349 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
20350 threshold of number of iterations below which no vectorization
20352 * tree-vect-loop.c (new_loop_vec_info):
20353 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
20354 * tree-vect-loop.c (vect_analyze_loop_operations):
20355 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
20356 * tree-vect-loop.c (vect_transform_loop):
20357 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
20358 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
20359 of iterations of the loop and see if we should build the epilogue.
20361 2014-04-03 Richard Biener <rguenther@suse.de>
20363 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
20364 (streamer_tree_cache_create): Adjust.
20365 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
20366 to allow optional nodes array.
20367 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
20368 (streamer_tree_cache_append): Likewise.
20369 (streamer_tree_cache_create): Create nodes array optionally
20370 as specified by parameter.
20371 * lto-streamer-out.c (create_output_block): Avoid maintaining
20372 the node array in the writer cache.
20373 (DFS_write_tree): Remove assertion.
20374 (produce_asm_for_decls): Free the out decl state hash table early.
20375 * lto-streamer-in.c (lto_data_in_create): Adjust for
20376 streamer_tree_cache_create prototype change.
20378 2014-04-03 Richard Biener <rguenther@suse.de>
20380 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
20381 set TREE_CHAIN to NULL_TREE.
20383 2014-04-03 Richard Biener <rguenther@suse.de>
20385 PR tree-optimization/60740
20386 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
20387 over all GIMPLE_COND operands.
20389 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
20391 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
20392 (Weffc++): Remove Scott's numbering, merge lists and reference
20395 2014-04-03 Nick Clifton <nickc@redhat.com>
20397 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
20400 2014-04-03 Martin Jambor <mjambor@suse.cz>
20402 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
20403 mention gcc_unreachable before failing.
20404 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
20407 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
20410 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
20411 inconsistent code and instead mark the context inconsistent.
20412 (possible_polymorphic_call_targets): For inconsistent contexts
20413 return empty complete list.
20415 2014-04-02 Anthony Green <green@moxielogic.com>
20417 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
20418 (extendqisi2, extendhisi2): Define.
20419 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
20420 (WCHAR_TYPE): Change to unsigned int.
20422 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20424 PR tree-optimization/60733
20425 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
20426 insertion point for PHI candidates to be the end of the feeding
20427 block for the PHI argument.
20429 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
20431 PR rtl-optimization/60650
20432 * lra-constraints.c (process_alt_operands): Decrease reject for
20433 earlyclobber matching.
20435 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20437 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
20439 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20441 * config/spu/spu.c (pad_bb): Do not crash when the last
20442 insn is CODE_FOR_blockage.
20444 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20446 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
20447 lies outside the target mode.
20449 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20452 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20453 software floating point or no floating point registers, do not
20454 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20455 in GPRs that occurs after we tested for GPRs that would never be
20458 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20459 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20460 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20461 specifically allow DDmode, since that does not use the SPE SIMD
20464 2014-04-02 Richard Biener <rguenther@suse.de>
20466 PR middle-end/60729
20467 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
20468 MODE_INTs. Properly use negv_optab.
20469 (expand_abs): Likewise.
20471 2014-04-02 Richard Biener <rguenther@suse.de>
20474 * Makefile.in (install-driver): Guard extra installs with special
20477 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
20479 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20480 Document vec_vgbbd.
20482 2014-04-01 Richard Henderson <rth@redhat.com>
20485 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
20486 alternative enabled before register allocation.
20488 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
20490 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
20491 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
20493 (nios2_large_got_address): Remove unneeded 'sym' parameter.
20494 (nios2_got_address): Update nios2_large_got_address call site.
20495 (nios2_delegitimize_address): New function.
20496 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
20497 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
20498 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
20500 2014-04-01 Martin Husemann <martin@duskware.de>
20502 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
20505 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
20507 PR rtl-optimization/60604
20508 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
20509 check from register_operand.
20510 (register_operand): Redefine in terms of general_operand.
20511 (nonmemory_operand): Use register_operand for the non-constant cases.
20513 2014-04-01 Richard Biener <rguenther@suse.de>
20515 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
20517 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
20519 * doc/invoke.texi (mapp-regs): Clarify.
20521 2014-03-31 Ulrich Drepper <drepper@gmail.com>
20523 * config/i386/avx512fintrin.h (__v32hi): Define type.
20524 (__v64qi): Likewise.
20525 (_mm512_set1_epi8): Define.
20526 (_mm512_set1_epi16): Define.
20527 (_mm512_set4_epi32): Define.
20528 (_mm512_set4_epi64): Define.
20529 (_mm512_set4_pd): Define.
20530 (_mm512_set4_ps): Define.
20531 (_mm512_setr4_epi64): Define.
20532 (_mm512_setr4_epi32): Define.
20533 (_mm512_setr4_pd): Define.
20534 (_mm512_setr4_ps): Define.
20535 (_mm512_setzero_epi32): Define.
20537 2014-03-31 Martin Jambor <mjambor@suse.cz>
20539 PR middle-end/60647
20540 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
20541 callsite_arguments_match_p. Updated all callers. Also check types of
20542 corresponding formal parameters and actual arguments.
20543 (not_all_callers_have_enough_arguments_p) Renamed to
20544 some_callers_have_mismatched_arguments_p.
20546 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
20548 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
20550 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
20553 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
20556 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
20558 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
20559 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
20561 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
20562 Use FMAMODE_NOVF512 mode iterator.
20563 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
20564 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
20565 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
20566 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
20568 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
20569 Use VF_128_256 mode iterator.
20570 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
20573 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20575 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
20576 static chain if needed.
20578 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
20581 * lra-constraints.c (index_part_to_reg): New.
20582 (process_address): Use it.
20584 2014-03-27 Jeff Law <law@redhat.com>
20585 Jakub Jelinek <jakub@redhat.com>
20588 * expr.c (do_tablejump): Use simplify_gen_binary rather than
20589 gen_rtx_{PLUS,MULT} to build up the address expression.
20591 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
20592 creating non-canonical RTL.
20594 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20597 * ipa-inline.c (want_inline_small_function_p): Short circuit large
20598 functions; reorganize to make cheap checks first.
20599 (inline_small_functions): Do not estimate growth when dumping;
20601 * ipa-inline.h (inline_summary): Add min_size.
20602 (growth_likely_positive): New function.
20603 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
20604 (set_cond_stmt_execution_predicate): Cleanup.
20605 (estimate_edge_size_and_time): Compute min_size.
20606 (estimate_calls_size_and_time): Likewise.
20607 (estimate_node_size_and_time): Likewise.
20608 (inline_update_overall_summary): Update min_size.
20609 (do_estimate_edge_time): Likewise.
20610 (do_estimate_edge_size): Update.
20611 (do_estimate_edge_hints): Update.
20612 (growth_likely_positive): New function.
20614 2014-03-28 Jakub Jelinek <jakub@redhat.com>
20617 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
20618 also if addr has VOIDmode.
20620 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20622 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
20623 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
20625 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
20626 instructions as well as AdvancedSIMD loads.
20628 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20630 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
20631 Use crypto_aese type.
20632 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
20633 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
20634 crypto_aese, crypto_aesmc. Move to types.md.
20635 * config/arm/types.md (crypto_aes): Split into crypto_aese,
20637 * config/arm/iterators.md (crypto_type): Likewise.
20639 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20641 * cgraph.c: Include expr.h and tree-dfa.h.
20642 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
20645 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
20648 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
20649 regs from checking multi-reg pseudos.
20651 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20653 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
20655 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20657 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
20658 if it would clobber the stack pointer, even temporarily.
20660 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
20662 * mode-switching.c: Make small adjustments to the top comment.
20664 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
20666 * config/rs6000/constraints.md (wD constraint): New constraint to
20667 match the constant integer to get the top DImode/DFmode out of a
20668 vector in a VSX register.
20670 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
20671 match the constant integer to get the top DImode/DFmode out of a
20672 vector in a VSX register.
20674 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
20677 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20680 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
20681 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
20683 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
20684 Optimize vec_extract of 64-bit values, where the value being
20685 extracted is in the top word, where we can use scalar
20686 instructions. Add direct move and store support. Combine the big
20687 endian/little endian vector select load support into a single insn.
20688 (vsx_extract_<mode>_internal1): Likewise.
20689 (vsx_extract_<mode>_internal2): Likewise.
20690 (vsx_extract_<mode>_load): Likewise.
20691 (vsx_extract_<mode>_store): Likewise.
20692 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
20693 combined into vsx_extract_<mode>_load.
20694 (vsx_extract_<mode>_one_le): Likewise.
20696 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
20697 define the top 64-bit vector element.
20699 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
20702 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20703 Document vec_vbpermq builtin.
20706 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
20707 enable use of xxsldwi and xxpermdi builtin functions.
20708 (vec_xxpermdi): Likewise.
20710 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20711 Document use of vec_xxsldwi and vec_xxpermdi builtins.
20713 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
20715 PR rtl-optimization/60650
20716 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
20718 (find_spills_for): New.
20719 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
20720 Spill all pseudos on the second iteration.
20722 2014-03-27 Marek Polacek <polacek@redhat.com>
20725 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
20728 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20730 * config/s390/s390.c (s390_can_use_return_insn): Check for
20731 call-saved FPRs on 31 bit.
20733 2014-03-27 Jakub Jelinek <jakub@redhat.com>
20735 PR middle-end/60682
20736 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
20737 if they need regimplification, just drop them instead of
20738 calling gimple_regimplify_operands on them.
20740 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
20743 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
20744 (aarch64_frame_pointer_required): Adjust logic.
20745 (aarch64_can_eliminate): Adjust logic.
20746 (aarch64_override_options_after_change): Adjust logic.
20748 2014-03-27 Dehao Chen <dehao@google.com>
20750 * ipa-inline.c (early_inliner): Update node's inline info.
20752 2014-03-26 Dehao Chen <dehao@google.com>
20754 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
20755 compiler inserted conditional jumps for NAN float check.
20757 2014-03-26 Jakub Jelinek <jakub@redhat.com>
20759 * ubsan.h (ubsan_create_data): Change second argument's type
20760 to const location_t *.
20761 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
20763 (ubsan_create_data): Change second argument to const location_t *PLOC.
20764 Create Loc field whenever PLOC is non-NULL.
20765 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
20766 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
20770 * real.c (real_to_integer2): Change type of low to UHWI.
20772 2014-03-26 Tobias Burnus <burnus@net-b.de>
20774 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
20775 (CILK_SELF_SPECS): New define.
20776 (driver_self_specs): Use it.
20778 2014-03-26 Richard Biener <rguenther@suse.de>
20780 * tree-pretty-print.c (percent_K_format): Implement special
20781 case for LTO and its stripped down BLOCK tree.
20783 2014-03-26 Jakub Jelinek <jakub@redhat.com>
20786 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
20788 * tree-vrp.c (simplify_internal_call_using_ranges): If only
20789 one range is range_int_cst_p, but not both, at least optimize
20790 addition/subtraction of 0 and multiplication by 0 or 1.
20791 * gimple-fold.c (gimple_fold_call): Fold
20792 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
20793 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
20794 INTEGER_CSTs, try to fold at least x * 0 and y - y.
20796 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
20798 PR rtl-optimization/60452
20799 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
20800 <case REG>: Return 1 for invalid offsets from the frame pointer.
20802 2014-03-26 Marek Polacek <polacek@redhat.com>
20805 * doc/extend.texi (C Extensions): Mention variable-length arrays in
20808 2014-03-26 Marek Polacek <polacek@redhat.com>
20811 * doc/extend.texi (Designated Inits): Describe what happens to omitted
20814 2014-03-26 Marek Polacek <polacek@redhat.com>
20817 * ira-color.c (update_conflict_hard_regno_costs): Perform the
20818 multiplication in unsigned type.
20820 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
20822 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
20824 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
20826 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
20828 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
20831 * cif-code.def (UNREACHABLE) New code.
20832 * ipa-inline.c (inline_small_functions): Skip edges to
20833 __builtlin_unreachable.
20834 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
20835 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
20836 predicate to __bulitin_unreachable.
20837 (set_cond_stmt_execution_predicate): Fix issue when
20838 invert_tree_comparison returns ERROR_MARK.
20839 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
20840 propagate to inline clones.
20841 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
20843 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
20844 * cgraphclones.c (cgraph_clone_node): If call destination is already
20845 ureachable, do not redirect it back.
20846 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
20849 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
20851 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
20852 Do not modify inline clones.
20854 2014-03-25 Jakub Jelinek <jakub@redhat.com>
20856 * config/i386/i386.md (general_sext_operand): New mode attr.
20857 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
20858 don't generate (sign_extend (const_int)).
20859 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
20860 operands[2]. Use We constraint instead of <i> and
20861 <general_sext_operand> predicate instead of <general_operand>.
20862 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
20863 * config/i386/constraints.md (We): New constraint.
20864 * config/i386/predicates.md (x86_64_sext_operand,
20865 sext_operand): New predicates.
20867 2014-03-25 Martin Jambor <mjambor@suse.cz>
20870 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
20871 inconsistent devirtualizations to __builtin_unreachable.
20873 2014-03-25 Marek Polacek <polacek@redhat.com>
20876 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
20878 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
20880 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
20881 order of elements for big-endian.
20883 2014-03-25 Richard Biener <rguenther@suse.de>
20885 PR middle-end/60635
20886 * gimplify-me.c (gimple_regimplify_operands): Update the
20889 2014-03-25 Martin Jambor <mjambor@suse.cz>
20892 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
20893 (lto_output_varpool_node): Likewise.
20894 (input_overwrite_node): Likewise.
20895 (input_varpool_node): Likewise.
20897 2014-03-25 Richard Biener <rguenther@suse.de>
20899 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
20900 (run_gcc): Likewise.
20902 2014-03-25 Jakub Jelinek <jakub@redhat.com>
20904 * combine.c (simplify_compare_const): Add MODE argument.
20905 Handle mode_width 0 as very large mode_width.
20906 (try_combine, simplify_comparison): Adjust callers.
20908 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
20909 type to avoid signed integer overflow.
20910 * explow.c (plus_constant): Likewise.
20912 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
20914 * doc/generic.texi: Correct typos.
20916 2014-03-24 Tobias Burnus <burnus@net-b.de>
20918 * doc/invoke.texi (-flto): Expand section about
20919 using static libraries with LTO.
20921 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20923 PR rtl-optimization/60501
20924 * optabs.def (addptr3_optab): New optab.
20925 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
20926 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
20927 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
20929 * lra.c (emit_add3_insn): Use the addptr pattern if available.
20931 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
20933 2014-03-24 Ulrich Drepper <drepper@gmail.com>
20935 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
20938 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
20939 (_mm256_undefined_ps): Define.
20940 (_mm256_undefined_pd): Define.
20941 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
20942 (_mm_undefined_pd): Define.
20943 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
20944 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
20945 (_mm512_undefined_ps): Define.
20946 (_mm512_undefined_pd): Define.
20947 Use _mm*_undefined_*.
20948 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
20950 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
20952 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
20953 (lshr_simd): DI mode added.
20954 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
20955 (aarch64_ushr_simddi): Likewise.
20956 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
20957 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
20958 (vshrd_n_u64): Likewise.
20960 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20962 * Makefile.in (s-macro_list): Depend on cc1.
20964 2014-03-23 Teresa Johnson <tejohnson@google.com>
20966 * ipa-utils.c (ipa_print_order): Use specified dump file.
20968 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
20970 PR rtl-optimization/60601
20971 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
20973 * gcc.c (eval_spec_function): Initialize save_growing_value.
20975 2014-03-22 Jakub Jelinek <jakub@redhat.com>
20978 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
20979 code == MINUS_EXPR, never swap op0 with op1.
20981 * toplev.c (init_local_tick): Avoid signed integer multiplication
20983 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
20984 shift by first operand's bitsize.
20986 2014-03-21 Jakub Jelinek <jakub@redhat.com>
20989 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
20990 redefine to 1 or 0.
20991 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
20992 TARGET_ISA_64BIT_P(x).
20994 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20996 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
20997 pattern for vector nor instead of subtract from splat(-1).
20998 (altivec_expand_vec_perm_const_le): Likewise.
21000 2014-03-21 Richard Henderson <rth@twiddle.net>
21003 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21004 related insns after epilogue_completed.
21006 2014-03-21 Martin Jambor <mjambor@suse.cz>
21009 * cgraph.h (symtab_node): New flag body_removed.
21010 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21011 when removing bodies.
21012 * symtab.c (dump_symtab_base): Dump body_removed flag.
21013 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21014 had their bodies removed.
21016 2014-03-21 Martin Jambor <mjambor@suse.cz>
21019 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21022 2014-03-21 Richard Biener <rguenther@suse.de>
21024 PR tree-optimization/60577
21025 * tree-core.h (struct tree_base): Document nothrow_flag use
21026 in DECL_NONALIASED.
21027 * tree.h (DECL_NONALIASED): New.
21028 (may_be_aliased): Adjust.
21029 * coverage.c (build_var): Set DECL_NONALIASED.
21031 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21033 * expr.c (expand_expr_real_1): Remove outdated comment.
21035 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21037 PR middle-end/60597
21038 * ira.c (adjust_cleared_regs): Call copy_rtx on
21039 *reg_equiv[REGNO (loc)].src_p before passing it to
21040 simplify_replace_fn_rtx.
21043 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21044 into CONST, put pic register as first operand of PLUS. Use
21045 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21047 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21049 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21051 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21053 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21054 around for store forwarding issue in the FPU on the UT699.
21055 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21056 loads and operations if -mfix-ut699 is specified.
21057 (divtf3_hq): Tweak attribute.
21058 (sqrttf2_hq): Likewise.
21060 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21062 * calls.c (store_one_arg): Remove incorrect const qualification on the
21063 type of the temporary.
21064 * cfgexpand.c (expand_return): Likewise.
21065 * expr.c (expand_constructor): Likewise.
21066 (expand_expr_real_1): Likewise.
21068 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21070 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21073 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21076 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21078 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21080 * config/arm/aarch-common-protos.h
21081 (alu_cost_table): Fix spelling of "extend".
21082 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21084 2014-03-19 Richard Biener <rguenther@suse.de>
21086 PR middle-end/60553
21087 * tree-core.h (tree_type_common): Re-order pointer members
21088 to reduce recursion depth during GC walks.
21090 2014-03-19 Marek Polacek <polacek@redhat.com>
21093 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21094 before accessing it.
21096 2014-03-19 Richard Biener <rguenther@suse.de>
21099 * lto-streamer-in.c (input_function): In WPA stage do not drop
21102 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21104 PR tree-optimization/60559
21105 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21106 with build_zero_cst assignment.
21108 2014-03-18 Kai Tietz <ktietz@redhat.com>
21110 PR rtl-optimization/56356
21111 * sdbout.c (sdbout_parms): Verify that parms'
21112 incoming argument is valid.
21113 (sdbout_reg_parms): Likewise.
21115 2014-03-18 Richard Henderson <rth@redhat.com>
21118 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21119 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21120 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21122 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21124 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21125 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21126 Italicize plugin event names in description. Explain that
21127 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21128 Remind that no GCC functions should be called after PLUGIN_FINISH.
21129 Explain what pragmas with expansion are.
21131 2014-03-18 Martin Liska <mliska@suse.cz>
21133 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21134 gimple call statement is update.
21135 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21136 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21138 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21141 * ubsan.c (ubsan_instrument_unreachable): Call
21142 initialize_sanitizer_builtins.
21143 (ubsan_pass): Likewise.
21146 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21147 varpool_finalize_decl instead of rest_of_decl_compilation.
21149 2014-03-18 Richard Biener <rguenther@suse.de>
21151 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21152 by using bitmap_and_compl instead of bitmap_and_compl_into.
21153 (df_rd_transfer_function): Likewise.
21155 2014-03-18 Richard Biener <rguenther@suse.de>
21157 * doc/lto.texi (fresolution): Fix typo.
21159 2014-03-18 Richard Biener <rguenther@suse.de>
21161 * doc/invoke.texi (flto): Update for changes in 4.9.
21163 2014-03-18 Richard Biener <rguenther@suse.de>
21165 * doc/loop.texi: Remove section on the removed lambda framework.
21166 Update loop docs with recent changes in preserving loop structure.
21168 2014-03-18 Richard Biener <rguenther@suse.de>
21170 * doc/lto.texi (-fresolution): Document.
21172 2014-03-18 Richard Biener <rguenther@suse.de>
21174 * doc/contrib.texi: Adjust my name.
21176 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21179 * internal-fn.c: Include diagnostic-core.h.
21180 (expand_BUILTIN_EXPECT): New function.
21181 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21182 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21183 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21184 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21185 IFN_BUILTIN_EXPECT.
21186 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21187 Revert 3 argument __builtin_expect code.
21188 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21189 * gimple-fold.c (gimple_fold_call): Likewise.
21190 * tree.h (fold_builtin_expect): New prototype.
21191 * builtins.c (build_builtin_expect_predicate): Add predictor
21192 argument, if non-NULL, create 3 argument __builtin_expect.
21193 (fold_builtin_expect): No longer static. Add ARG2 argument,
21194 pass it through to build_builtin_expect_predicate.
21195 (fold_builtin_2): Adjust caller.
21196 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21197 * internal-fn.def (BUILTIN_EXPECT): New.
21199 2014-03-18 Tobias Burnus <burnus@net-b.de>
21202 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21203 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21204 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21206 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21209 * predict.c (combine_predictions_for_bb): Fix up formatting.
21210 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21211 fill what it points to if non-NULL.
21212 (tree_predict_by_opcode): Adjust caller, use the predictor.
21213 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21215 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21217 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21218 proper constant for the store mode.
21220 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21222 * symtab.c (change_decl_assembler_name): Fix transparent alias
21223 chain construction.
21225 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21227 * config/aarch64/aarch64.c: Correct the comments about the
21228 aarch64 stack layout.
21230 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21232 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21233 check for GF_OMP_FOR_KIND_FOR.
21235 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21237 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21238 ymm and zmm register names.
21240 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21243 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21244 note creation for the 2010-08-31 changes.
21246 2014-03-17 Marek Polacek <polacek@redhat.com>
21248 PR middle-end/60534
21249 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21250 as -fno-tree-loop-vectorize.
21251 (expand_omp_simd): Likewise.
21253 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
21255 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21256 (eligible_for_call_delay): New prototype.
21257 * config/sparc/sparc.c (tls_call_delay): Rename into...
21258 (eligible_for_call_delay): ...this. Return false if the instruction
21259 cannot be put in the delay slot of a branch.
21260 (eligible_for_restore_insn): Simplify.
21261 (eligible_for_return_delay): Return false if the instruction cannot be
21262 put in the delay slot of a branch and simplify.
21263 (eligible_for_sibcall_delay): Return false if the instruction cannot be
21264 put in the delay slot of a branch.
21265 * config/sparc/sparc.md (fix_ut699): New attribute.
21266 (tls_call_delay): Delete.
21267 (in_call_delay): Reimplement.
21268 (eligible_for_sibcall_delay): Rename into...
21269 (in_sibcall_delay): ...this.
21270 (eligible_for_return_delay): Rename into...
21271 (in_return_delay): ...this.
21272 (in_branch_delay): Reimplement.
21273 (in_uncond_branch_delay): Delete.
21274 (in_annul_branch_delay): Delete.
21276 2014-03-14 Richard Henderson <rth@redhat.com>
21279 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
21280 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
21281 (*floathi<X87MODEF>2_i387_with_temp): Remove.
21282 (floathi splitters): Remove.
21283 (float<SWI48x>xf2): New pattern.
21284 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
21285 code that tried to handle DImode for 32-bit, but which was excluded
21286 by the pattern's condition. Drop allocation of stack temporary.
21287 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
21288 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
21289 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
21290 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
21291 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
21292 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
21293 (*float<SWI48><MODEF>2_sse_interunit): Remove.
21294 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
21295 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
21296 (*float<SWI48x><X87MODEF>2_i387): Remove.
21297 (all float _with_temp splitters): Remove.
21298 (*float<SWI48x><MODEF>2_i387): New pattern.
21299 (*float<SWI48><MODEF>2_sse): New pattern.
21300 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
21301 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
21303 2014-03-14 Jakub Jelinek <jakub@redhat.com>
21304 Marek Polacek <polacek@redhat.com>
21306 PR middle-end/60484
21307 * common.opt (dump_base_name_prefixed): New Variable.
21308 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
21309 if x_dump_base_name_prefixed is already set, set it at the end.
21311 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
21313 PR rtl-optimization/60508
21314 * lra-constraints.c (get_reload_reg): Add new parameter
21316 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
21317 Pass the new parameter values.
21319 2014-03-14 Richard Biener <rguenther@suse.de>
21321 * common.opt: Revert unintented changes from r205065.
21322 * opts.c: Likewise.
21324 2014-03-14 Richard Biener <rguenther@suse.de>
21326 PR middle-end/60518
21327 * cfghooks.c (split_block): Properly adjust all loops the
21328 block was a latch of.
21330 2014-03-14 Martin Jambor <mjambor@suse.cz>
21333 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
21336 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
21339 * config/avr/avr.c (avr_set_current_function): Pass function name
21340 through default_strip_name_encoding before sanity checking instead
21341 of skipping the first char of the assembler name.
21343 2014-03-13 Richard Henderson <rth@redhat.com>
21346 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
21347 (ix86_force_to_memory, ix86_free_from_memory): Remove.
21348 * config/i386/i386-protos.h: Likewise.
21349 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
21350 in the expander instead of a splitter.
21351 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
21352 any possibility of requiring a memory.
21353 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
21354 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
21355 (fp branch splitters): Update for ix86_split_fp_branch.
21356 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
21357 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
21358 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
21359 (*fop_<MODEF>_2_i387): Remove f/r alternative.
21360 (*fop_<MODEF>_3_i387): Likewise.
21361 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
21362 (splitters for the fop_* register patterns): Remove.
21363 (fscalexf4_i387): Rename from *fscalexf4_i387.
21364 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
21366 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21368 PR tree-optimization/59779
21369 * tree-dfa.c (get_ref_base_and_extent): Use double_int
21370 type for bitsize and maxsize instead of HOST_WIDE_INT.
21372 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
21374 PR rtl-optimization/57320
21375 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
21376 the CFG after thread_prologue_and_epilogue_insns.
21378 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
21380 PR rtl-optimization/57189
21381 * lra-constraints.c (process_alt_operands): Disfavor spilling
21384 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
21386 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
21388 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21390 PR tree-optimization/59025
21391 PR middle-end/60418
21392 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
21393 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
21395 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
21398 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
21399 calls of avr_out_plus_1.
21401 2014-03-13 Bin Cheng <bin.cheng@arm.com>
21403 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
21404 BB's single pred and update the father loop's latch info later.
21406 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21408 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
21412 (VEC_base): Likewise.
21413 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
21414 registers, we need to swap double words in little endian mode.
21416 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
21417 to be a container mode for 128-bit integer operations added in ISA
21418 2.07. Unlike TImode and PTImode, the preferred register set is
21419 the Altivec/VMX registers for the 128-bit operations.
21421 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
21423 (rs6000_split_128bit_ok_p): Likewise.
21425 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
21426 macros for creating ISA 2.07 normal and overloaded builtin
21427 functions with 3 arguments.
21428 (BU_P8V_OVERLOAD_3): Likewise.
21429 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
21430 for use as overloaded functions.
21431 (VPERM_1TI_UNS): Likewise.
21432 (VSEL_1TI): Likewise.
21433 (VSEL_1TI_UNS): Likewise.
21434 (ST_INTERNAL_1ti): Likewise.
21435 (LD_INTERNAL_1ti): Likewise.
21436 (XXSEL_1TI): Likewise.
21437 (XXSEL_1TI_UNS): Likewise.
21438 (VPERM_1TI): Likewise.
21439 (VPERM_1TI_UNS): Likewise.
21440 (XXPERMDI_1TI): Likewise.
21441 (SET_1TI): Likewise.
21442 (LXVD2X_V1TI): Likewise.
21443 (STXVD2X_V1TI): Likewise.
21444 (VEC_INIT_V1TI): Likewise.
21445 (VEC_SET_V1TI): Likewise.
21446 (VEC_EXT_V1TI): Likewise.
21447 (EQV_V1TI): Likewise.
21448 (NAND_V1TI): Likewise.
21449 (ORC_V1TI): Likewise.
21450 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
21451 added in ISA 2.07. Add both normal 'altivec' builtins, and the
21452 overloaded builtin.
21453 (VADDUQM): Likewise.
21454 (VSUBCUQ): Likewise.
21455 (VADDEUQM): Likewise.
21456 (VADDECUQ): Likewise.
21457 (VSUBEUQM): Likewise.
21458 (VSUBECUQ): Likewise.
21460 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
21461 __int128_t and __uint128_t types.
21462 (__uint128_type): Likewise.
21463 (altivec_categorize_keyword): Add support for vector __int128_t,
21464 vector __uint128_t, vector __int128, and vector unsigned __int128
21465 as a container type for TImode operations that need to be done in
21466 VSX/Altivec registers.
21467 (rs6000_macro_to_expand): Likewise.
21468 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
21469 to support 128-bit integer instructions vaddcuq, vadduqm,
21470 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
21471 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
21473 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
21474 for V1TImode, and set up preferences to use VSX/Altivec registers.
21475 Setup VSX reload handlers.
21476 (rs6000_debug_reg_global): Likewise.
21477 (rs6000_init_hard_regno_mode_ok): Likewise.
21478 (rs6000_preferred_simd_mode): Likewise.
21479 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
21480 (easy_altivec_constant): Likewise.
21481 (output_vec_const_move): Likewise.
21482 (rs6000_expand_vector_set): Convert V1TImode set and extract to
21484 (rs6000_expand_vector_extract): Likewise.
21485 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
21487 (rs6000_const_vec): Add support for V1TImode.
21488 (rs6000_emit_le_vsx_load): Swap double words when loading or
21489 storing TImode/V1TImode.
21490 (rs6000_emit_le_vsx_store): Likewise.
21491 (rs6000_emit_le_vsx_move): Likewise.
21492 (rs6000_emit_move): Add support for V1TImode.
21493 (altivec_expand_ld_builtin): Likewise.
21494 (altivec_expand_st_builtin): Likewise.
21495 (altivec_expand_vec_init_builtin): Likewise.
21496 (altivec_expand_builtin): Likewise.
21497 (rs6000_init_builtins): Add support for V1TImode type. Add
21498 support for ISA 2.07 128-bit integer builtins. Define type names
21499 for the VSX/Altivec vector types.
21500 (altivec_init_builtins): Add support for overloaded vector
21501 functions with V1TImode type.
21502 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
21503 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
21505 (rs6000_split_128bit_ok_p): Likewise.
21506 (rs6000_handle_altivec_attribute): Create V1TImode from vector
21507 __int128_t and vector __uint128_t.
21509 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
21510 and mode attributes.
21512 (VSX_M2): Likewise.
21517 (VS_scalar): Likewise.
21518 (VS_double): Likewise.
21519 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
21521 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
21522 we support the ISA 2.07 128-bit integer arithmetic instructions.
21523 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
21524 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
21525 and TImode types for use with the builtin functions.
21526 (V1TI_type_node): Likewise.
21527 (unsigned_V1TI_type_node): Likewise.
21528 (intTI_type_internal_node): Likewise.
21529 (uintTI_type_internal_node): Likewise.
21531 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
21532 128-bit builtin functions.
21533 (UNSPEC_VADDEUQM): Likewise.
21534 (UNSPEC_VADDECUQ): Likewise.
21535 (UNSPEC_VSUBCUQ): Likewise.
21536 (UNSPEC_VSUBEUQM): Likewise.
21537 (UNSPEC_VSUBECUQ): Likewise.
21538 (VM): Add V1TImode to vector mode iterators.
21540 (VI_unit): Likewise.
21541 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
21542 (altivec_vaddcuq): Likewise.
21543 (altivec_vsubuqm): Likewise.
21544 (altivec_vsubcuq): Likewise.
21545 (altivec_vaddeuqm): Likewise.
21546 (altivec_vaddecuq): Likewise.
21547 (altivec_vsubeuqm): Likewise.
21548 (altivec_vsubecuq): Likewise.
21550 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
21552 (BOOL_128): Likewise.
21553 (BOOL_REGS_OUTPUT): Likewise.
21554 (BOOL_REGS_OP1): Likewise.
21555 (BOOL_REGS_OP2): Likewise.
21556 (BOOL_REGS_UNARY): Likewise.
21557 (BOOL_REGS_AND_CR0): Likewise.
21559 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
21560 128-bit integer builtin support.
21561 (vec_vadduqm): Likewise.
21562 (vec_vaddecuq): Likewise.
21563 (vec_vaddeuqm): Likewise.
21564 (vec_vsubecuq): Likewise.
21565 (vec_vsubeuqm): Likewise.
21566 (vec_vsubcuq): Likewise.
21567 (vec_vsubuqm): Likewise.
21569 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21570 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
21571 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
21572 128-bit integer add/subtract to ISA 2.07.
21574 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
21576 * config/arc/arc.c (arc_predicate_delay_insns):
21577 Fix third argument passed to conditionalize_nonjump.
21579 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
21581 * config/aarch64/aarch64-builtins.c
21582 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
21583 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
21584 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
21585 instead of __builtin_lfloor.
21586 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
21588 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21590 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
21591 (tree_ssa_ifcombine_bb_1): New function.
21592 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
21593 is an empty forwarder block to then_bb or vice versa and then_bb
21594 and else_bb are effectively swapped.
21596 2014-03-12 Christian Bruel <christian.bruel@st.com>
21599 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
21600 REG_CFA_DEF_CFA note.
21601 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
21602 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
21604 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
21606 PR tree-optimization/60454
21607 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
21609 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21611 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
21612 Do not define target_cpu_default2 to generic.
21613 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
21614 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
21615 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
21617 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21618 Marc Glisse <marc.glisse@inria.fr>
21620 PR tree-optimization/60502
21621 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
21622 instead of build_low_bits_mask.
21624 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21626 PR middle-end/60482
21627 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
21628 if there are multiple uses, but op doesn't live on E edge.
21629 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
21630 clobber stmts before __builtin_unreachable.
21632 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
21634 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
21635 hard_frame_pointer_rtx.
21636 * cse.c (cse_insn): Remove volatile check.
21637 * cselib.c (cselib_process_insn): Likewise.
21638 * dse.c (scan_insn): Likewise.
21640 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
21642 * config/arc/arc.c (conditionalize_nonjump): New function,
21644 (arc_ifcvt): ... this.
21645 (arc_predicate_delay_insns): Use it.
21647 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
21649 * config/arc/predicates.md (extend_operand): During/after reload,
21650 allow const_int_operand.
21651 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
21652 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
21653 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
21655 (umulsi3_highpart_i): Likewise.
21657 2014-03-11 Richard Biener <rguenther@suse.de>
21659 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
21660 Add asserts to guard possible wrong-code bugs.
21662 2014-03-11 Richard Biener <rguenther@suse.de>
21664 PR tree-optimization/60429
21665 PR tree-optimization/60485
21666 * tree-ssa-structalias.c (set_union_with_increment): Properly
21667 take into account all fields that overlap the shifted vars.
21668 (do_sd_constraint): Likewise.
21669 (do_ds_constraint): Likewise.
21670 (get_constraint_for_ptr_offset): Likewise.
21672 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
21674 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
21675 (nios2_compute_frame_layout):
21676 Add calculation of cfun->machine->fp_save_offset.
21677 (nios2_expand_prologue): Correct setting of frame pointer register
21679 (nios2_expand_epilogue): Update recovery of stack pointer from
21680 frame pointer accordingly.
21681 (nios2_initial_elimination_offset): Update calculation of offset
21682 for eliminating to HARD_FRAME_POINTER_REGNUM.
21684 2014-03-10 Jakub Jelinek <jakub@redhat.com>
21687 * ipa.c (symtab_remove_unreachable_nodes): Don't call
21688 cgraph_get_create_node on VAR_DECLs.
21690 2014-03-10 Richard Biener <rguenther@suse.de>
21692 PR middle-end/60474
21693 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
21695 2014-03-08 Douglas B Rupp <rupp@gnat.com>
21697 * config/vms/vms.opt (vms_float_format): New variable.
21699 2014-03-08 Tobias Burnus <burnus@net-b.de>
21701 * doc/invoke.texi (-fcilkplus): Update implementation status.
21703 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
21704 Richard Biener <rguenther@suse.de>
21706 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
21707 consistently accross all TUs.
21708 (run_gcc): Enable -fshort-double automatically at link at link-time
21709 and disallow override.
21711 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
21714 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
21715 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
21716 if they can't be used.
21718 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21720 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
21721 for Solaris 11/x86 ld.
21722 * configure: Regenerate.
21724 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21726 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
21727 (LIB_TLS_SPEC): Save as ld_tls_libs.
21728 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
21729 (HAVE_AS_IX86_TLSLDM): New test.
21730 * configure, config.in: Regenerate.
21731 * config/i386/i386.c (legitimize_tls_address): Fall back to
21732 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
21733 cannot support TLS_MODEL_LOCAL_DYNAMIC.
21734 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
21735 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
21737 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
21739 * common.opt (fira-loop-pressure): Mark as optimization.
21741 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
21743 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
21744 an OpenMP mappable type.
21746 2014-03-06 Matthias Klose <doko@ubuntu.com>
21748 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
21749 MULTILIB_OSDIRNAMES is not defined.
21751 2014-03-06 Jakub Jelinek <jakub@redhat.com>
21752 Meador Inge <meadori@codesourcery.com>
21755 * config/arm/arm.c (arm_tls_symbol_p): Remove.
21756 (arm_legitimize_address): Call legitimize_tls_address for any
21757 arm_tls_referenced_p expression, handle constant addend. Call it
21758 before testing for !TARGET_ARM.
21759 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
21761 2014-03-06 Richard Biener <rguenther@suse.de>
21763 PR middle-end/60445
21767 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
21769 * tree-streamer.c (record_common_node): Assert we don't record
21770 nodes with type double.
21771 (preload_common_node): Skip type double, complex double and double
21772 pointer since it is now frontend dependent due to fshort-double option.
21774 2014-03-06 Richard Biener <rguenther@suse.de>
21776 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
21777 or -fno-lto is specified and the linker has full plugin support.
21778 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
21779 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
21780 * lto-wrapper.c (merge_and_complain): Merge compile-time
21781 optimization levels.
21782 (run_gcc): And pass it through to the link options.
21784 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
21788 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
21790 * cselib.c (remove_useless_values): Skip to avoid quadratic
21791 behavior if the condition moved from...
21792 (cselib_process_insn): ... here holds.
21794 2014-03-05 Jakub Jelinek <jakub@redhat.com>
21797 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
21798 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
21801 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
21802 (TM_H): Add x86-tune.def.
21804 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21806 * config/aarch64/aarch64.c (generic_tunings):
21807 Use cortexa57_extra_costs.
21809 2014-03-05 Jakub Jelinek <jakub@redhat.com>
21812 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
21813 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
21814 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
21817 2014-03-04 Heiher <r@hev.cc>
21819 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
21820 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
21822 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
21824 * config/i386/predicates.md (const2356_operand): Change to ...
21825 (const2367_operand): ... this.
21826 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
21828 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
21829 (*avx512pf_scatterpf<mode>sf): Ditto.
21830 (avx512pf_scatterpf<mode>df): Ditto.
21831 (*avx512pf_scatterpf<mode>df_mask): Ditto.
21832 (*avx512pf_scatterpf<mode>df): Ditto.
21833 * config/i386/i386.c (ix86_expand_builtin): Update
21834 incorrect hint operand error message.
21836 2014-03-04 Richard Biener <rguenther@suse.de>
21838 * lto-section-in.c (lto_get_section_data): Fix const cast.
21840 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
21842 * tree-streamer.c (record_common_node): Assert we don't record
21843 nodes with type double.
21844 (preload_common_node): Skip type double, complex double and double
21845 pointer since it is now frontend dependent due to fshort-double option.
21847 2014-03-04 Richard Biener <rguenther@suse.de>
21850 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
21851 (lto_input_toplevel_asms): Likewise.
21852 * lto-section-in.c (lto_get_section_data): Instead do it here
21855 2014-03-04 Richard Biener <rguenther@suse.de>
21857 PR tree-optimization/60382
21858 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
21859 dead PHIs a reduction.
21861 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
21863 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
21865 (_mm_prefetch): Move out of GCC target("sse") pragma.
21866 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
21867 GCC target("prfchw") pragma.
21868 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
21870 * config/i386/i386.c (ix86_option_override_internal): Enable
21871 -mprfchw with -mprefetchwt1.
21873 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
21875 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
21878 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
21880 * opts.h (CL_PCH_IGNORE): Define.
21881 * targhooks.c (option_affects_pch_p):
21882 Return false for options that have CL_PCH_IGNORE set.
21883 * opt-functions.awk: Process PchIgnore.
21884 * doc/options.texi: Document PchIgnore.
21886 * config/arc/arc.opt (misize): Add PchIgnore property.
21888 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21890 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
21891 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
21892 constraint on constants to permit them being loaded into
21893 GENERAL_REGS or BASE_REGS.
21895 2014-03-03 Nick Clifton <nickc@redhat.com>
21897 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
21898 anti-cacnonical alternatives.
21899 (negandhi3_real): New pattern.
21900 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
21902 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21904 * config/avr/avr-mcus.def: Remove atxmega16x1.
21905 * config/avr/avr-tables.opt: Regenerate.
21906 * config/avr/t-multilib: Regenerate.
21907 * doc/avr-mmcu.texi: Regenerate.
21909 2014-03-03 Tobias Grosser <tobias@grosser.es>
21910 Mircea Namolaru <mircea.namolaru@inria.fr>
21912 PR tree-optimization/58028
21913 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
21916 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21918 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
21919 not handled by recognizers.
21921 2014-03-03 Jakub Jelinek <jakub@redhat.com>
21923 PR middle-end/60175
21924 * function.c (expand_function_end): Don't emit
21925 clobber_return_register sequence if clobber_after is a BARRIER.
21926 * cfgexpand.c (construct_exit_block): Append instructions before
21927 return_label to prev_bb.
21929 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21931 * config/rs6000/constraints.md: Document reserved use of "wc".
21933 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
21936 * ipa.c (function_and_variable_visibility): When dissolving comdat
21937 group, also set all symbols to local.
21939 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
21944 2013-12-14 Jan Hubicka <jh@suse.cz>
21945 PR middle-end/58477
21946 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
21948 2014-03-02 Jon Beniston <jon@beniston.com>
21954 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
21955 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
21956 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
21957 (simple_return, *simple_return): New patterns
21958 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
21959 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
21961 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
21963 * dwarf2out.c (gen_subprogram_die): Tidy.
21965 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
21968 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
21969 (*mov_t_msb_neg_negc): ... this new insn.
21971 2014-02-28 Jason Merrill <jason@redhat.com>
21974 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
21977 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
21980 * dwarf2out.c (decltype_auto_die): New static.
21981 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
21982 (gen_type_die_with_usage): Handle 'decltype(auto)'.
21983 (is_cxx_auto): Likewise.
21985 2014-02-28 Ian Bolton <ian.bolton@arm.com>
21987 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
21988 we are not using general regs only.
21990 2014-02-28 Richard Biener <rguenther@suse.de>
21993 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
21994 previous fix and only allow to remove trivial pre-headers
21995 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
21996 (remove_forwarder_block): Properly update the latch of a loop.
21998 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22001 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22002 (cselib_preserved_hash_table): New.
22003 (preserve_constants_and_equivs): Move preserved vals to it.
22004 (cselib_find_slot): Look it up first.
22005 (cselib_init): Initialize it.
22006 (cselib_finish): Release it.
22007 (dump_cselib_table): Dump it.
22009 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22012 * cselib.c (remove_useless_values): Skip to avoid quadratic
22013 behavior if the condition moved from...
22014 (cselib_process_insn): ... here holds.
22016 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22019 * var-tracking.c (vt_initialize): Apply the same condition to
22020 preserve the CFA base value.
22022 2014-02-28 Joey Ye <joey.ye@arm.com>
22025 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22026 if reload in progress or completed.
22028 2014-02-28 Tobias Burnus <burnus@net-b.de>
22030 PR middle-end/60147
22031 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22034 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22036 * doc/tm.texi.in (Condition Code Status): Update documention for
22037 relative locations of cc0-setter and cc0-user.
22039 2014-02-27 Jeff Law <law@redhat.com>
22041 PR rtl-optimization/52714
22042 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22043 into two independent simple sets, if I3 is a jump, ensure the
22044 pattern we place into I3 is a (set (pc) ...).
22046 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22047 Jeff Law <law@redhat.com>
22049 PR rtl-optimization/49847
22050 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22051 are in different blocks.
22052 * doc/tm.texi (Condition Code Status): Update documention for
22053 relative locations of cc0-setter and cc0-user.
22055 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22058 * lra.c (lra_emit_add): Check SUBREG too.
22060 2014-02-27 Andreas Schwab <schwab@suse.de>
22062 * config/m68k/m68k.c (m68k_option_override): Disable
22063 -flive-range-shrinkage for classic m68k.
22064 (m68k_override_options_after_change): Likewise.
22066 2014-02-27 Marek Polacek <polacek@redhat.com>
22068 PR middle-end/59223
22069 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22070 -Wmaybe-uninitialized.
22072 2014-02-27 Alan Modra <amodra@gmail.com>
22075 * reload1.c (emit_input_reload_insns): When reload_override_in,
22076 set old to rl->in_reg when rl->in_reg is a subreg.
22078 2014-02-26 Richard Biener <rguenther@suse.de>
22081 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22083 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22085 * common/config/i386/predicates.md (const1256_operand): Remove.
22086 (const2356_operand): New.
22087 (const_1_to_2_operand): Remove.
22088 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22089 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22090 (*avx512pf_gatherpf<mode>sf): Ditto.
22091 (avx512pf_gatherpf<mode>df): Ditto.
22092 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22093 (*avx512pf_gatherpf<mode>df): Ditto.
22094 (avx512pf_scatterpf<mode>sf): Ditto.
22095 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22096 (*avx512pf_scatterpf<mode>sf): Ditto.
22097 (avx512pf_scatterpf<mode>df): Ditto.
22098 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22099 (*avx512pf_scatterpf<mode>df): Ditto.
22100 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22102 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22104 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22105 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22106 (_mm512_mask_testn_epi64_mask): Move to ...
22107 * config/i386/avx512cdintrin.h: Here.
22108 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22109 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22110 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22111 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22112 TARGET_AVX512F from TARGET_AVX512CD.
22114 2014-02-26 Richard Biener <rguenther@suse.de>
22117 * ipa.c (walk_polymorphic_call_targets): Properly guard
22118 call to inline_update_overall_summary.
22120 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22123 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22124 and latches only if requested. Fix latch if it is removed.
22125 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22126 LOOPS_HAVE_PREHEADERS.
22128 2014-02-25 Andrew Pinski <apinski@cavium.com>
22130 * builtins.c (expand_builtin_thread_pointer): Create a new target
22131 when the target is NULL.
22133 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22135 PR rtl-optimization/60317
22136 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22137 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22138 * lra-assigns.c: Include params.h.
22139 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22140 other reload pseudos considerations.
22142 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22144 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22145 to use canonical form for nor<mode>3.
22147 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22150 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22153 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22155 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22156 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22157 (ix86_handle_option): Handle OPT_mprefetchwt1.
22158 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22159 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22161 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22162 OPTION_MASK_ISA_PREFETCHWT1.
22163 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22164 (PTA_PREFETCHWT1): New.
22165 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22166 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22167 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22168 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22169 (*prefetch_avx512pf_<mode>_: Change into ...
22170 (*prefetch_prefetchwt1_<mode>: This.
22171 * config/i386/i386.opt (mprefetchwt1): New.
22172 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22173 (_mm_prefetch): Handle intent to write.
22174 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22176 2014-02-25 Richard Biener <rguenther@suse.de>
22178 PR middle-end/60291
22179 * emit-rtl.c (mem_attrs_htab): Remove.
22180 (mem_attrs_htab_hash): Likewise.
22181 (mem_attrs_htab_eq): Likewise.
22182 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22183 (init_emit_once): Do not allocate mem_attrs_htab.
22185 2014-02-25 Richard Biener <rguenther@suse.de>
22188 * lto-opts.c (lto_write_options): Output non-explicit conservative
22189 -fwrapv, -fno-trapv and -fno-strict-overflow.
22190 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22191 (run_gcc): And pass them through.
22193 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22195 * sel-sched.c (calculate_new_fences): New parameter ptime.
22196 Calculate it as a maximum over all fence cycles.
22197 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22198 Print the final schedule timing when sched_verbose.
22200 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22202 PR rtl-optimization/60292
22203 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22204 bit fot the fence instruction.
22206 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22208 * calls.h: Fix typo in comment.
22210 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22212 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22213 adjusting offsetable addresses.
22215 2014-02-24 Guozhi Wei <carrot@google.com>
22217 * sparseset.h (sparseset_pop): Fix the wrong index.
22219 2014-02-24 Walter Lee <walt@tilera.com>
22221 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22222 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22224 * common/config/tilegx/tilegx-common.c
22225 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22226 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22227 (LINK_SPEC): Ditto.
22228 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22229 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22230 (tilegx_gimplify_va_arg_expr): Handle big endian.
22231 (tilegx_expand_unaligned_load): Ditto.
22232 (tilegx_expand_unaligned_store): Ditto.
22233 (TARGET_RETURN_IN_MSB): New.
22234 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22235 (TARGET_ENDIAN_DEFAULT): New.
22236 (TARGET_BIG_ENDIAN): Handle big endian.
22237 (BYTES_BIG_ENDIAN): Ditto.
22238 (WORDS_BIG_ENDIAN): Ditto.
22239 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22240 (ENDIAN_SPEC): New.
22241 (EXTRA_SPECS): New.
22242 * config/tilegx/tilegx.md (extv): Handle big endian.
22244 (insn_st<n>): Ditto.
22245 (insn_st<n>_add<bitsuffix>): Ditto.
22246 (insn_stnt<n>): Ditto.
22247 (insn_stnt<n>_add<bitsuffix>):Ditto.
22248 (vec_interleave_highv8qi): Handle big endian.
22249 (vec_interleave_highv8qi_be): New.
22250 (vec_interleave_highv8qi_le): New.
22251 (insn_v1int_h): Handle big endian.
22252 (vec_interleave_lowv8qi): Handle big endian.
22253 (vec_interleave_lowv8qi_be): New.
22254 (vec_interleave_lowv8qi_le): New.
22255 (insn_v1int_l): Handle big endian.
22256 (vec_interleave_highv4hi): Handle big endian.
22257 (vec_interleave_highv4hi_be): New.
22258 (vec_interleave_highv4hi_le): New.
22259 (insn_v2int_h): Handle big endian.
22260 (vec_interleave_lowv4hi): Handle big endian.
22261 (vec_interleave_lowv4hi_be): New.
22262 (vec_interleave_lowv4hi_le): New.
22263 (insn_v2int_l): Handle big endian.
22264 (vec_interleave_highv2si): Handle big endian.
22265 (vec_interleave_highv2si_be): New.
22266 (vec_interleave_highv2si_le): New.
22267 (insn_v4int_h): Handle big endian.
22268 (vec_interleave_lowv2si): Handle big endian.
22269 (vec_interleave_lowv2si_be): New.
22270 (vec_interleave_lowv2si_le): New.
22271 (insn_v4int_l): Handle big endian.
22272 * config/tilegx/tilegx.opt (mbig-endian): New option.
22273 (mlittle-endian): New option.
22274 * doc/install.texi: Document tilegxbe-linux.
22275 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
22277 2014-02-24 Martin Jambor <mjambor@suse.cz>
22280 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
22281 there are no parameter descriptors.
22283 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
22285 PR rtl-optimization/60268
22286 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
22287 initialization to ...
22288 (sched_rgn_init): ... here.
22289 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
22291 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22293 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
22296 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
22298 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
22301 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22303 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
22304 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
22306 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22308 * config/microblaze/predicates.md: Add cmp_op predicate.
22309 * config/microblaze/microblaze.md: Add branch_compare instruction
22310 which uses cmp_op predicate and emits cmp insn before branch.
22311 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
22312 to microblaze_expand_conditional_branch and consolidate logic.
22313 (microblaze_expand_conditional_branch): emit branch_compare
22314 insn instead of handling cmp op separate from branch insn.
22316 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22318 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
22321 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22323 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
22324 define_insn with define_expand and new define_insn
22325 *altivec_lve<VI_char>x_internal.
22326 (altivec_stve<VI_char>x): Replace define_insn with define_expand
22327 and new define_insn *altivec_stve<VI_char>x_internal.
22328 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
22330 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
22332 (altivec_expand_stvex_be): New function.
22334 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
22336 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
22337 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
22338 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
22339 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
22341 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
22344 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
22345 instead of emit_move_insn.
22347 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22349 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
22350 vspltw with vsldoi.
22351 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
22352 gen_altivec_vsumsws.
22354 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22356 * config/rs6000/altivec.md (altivec_lvxl): Rename as
22357 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
22358 (altivec_lvxl_<mode>): New define_expand incorporating
22359 -maltivec=be semantics where needed.
22360 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
22361 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
22362 semantics where needed.
22363 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
22364 (altivec_stvx_<mode>): New define_expand incorporating
22365 -maltivec=be semantics where needed.
22366 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
22367 VM2 iterator instead of V4SI.
22368 (altivec_stvxl_<mode>): New define_expand incorporating
22369 -maltivec=be semantics where needed.
22370 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
22371 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
22372 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
22373 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
22374 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
22375 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
22376 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
22377 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
22378 ALTIVEC_BUILTIN_STVXL.
22379 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
22380 (altivec_expand_stvx_be): Likewise.
22381 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
22382 (altivec_expand_lvx_be): Likewise.
22383 (altivec_expand_stvx_be): Likewise.
22384 (altivec_expand_builtin): Add cases for
22385 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
22386 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
22387 (altivec_init_builtins): Add definitions for
22388 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
22389 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
22391 2014-02-21 Catherine Moore <clm@codesourcery.com>
22393 * doc/invoke.texi (mvirt, mno-virt): Document.
22394 * config/mips/mips.opt (mvirt): New option.
22395 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
22397 2014-02-21 Richard Biener <rguenther@suse.de>
22399 PR tree-optimization/60276
22400 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
22401 (STMT_VINFO_MIN_NEG_DIST): New macro.
22402 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
22403 STMT_VINFO_MIN_NEG_DIST.
22404 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
22405 made for negative dependence distances still hold.
22407 2014-02-21 Richard Biener <rguenther@suse.de>
22409 PR middle-end/60291
22410 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
22411 DECL_INITIAL for globals not in the current function context.
22413 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22415 PR tree-optimization/56490
22416 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
22417 * tree-ssa-uninit.c: Include params.h.
22418 (compute_control_dep_chain): Add num_calls argument, return false
22419 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
22420 num_calls to recursive call.
22421 (find_predicates): Change dep_chain into normal array,
22422 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
22423 variable and adjust compute_control_dep_chain caller.
22424 (find_def_preds): Likewise.
22426 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
22428 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
22429 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
22431 2014-02-21 Nick Clifton <nickc@redhat.com>
22433 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
22434 (pushhi1): Likewise.
22435 (popqi1): Add mode to pre_dec.
22436 (pophi1): Likewise.
22438 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22440 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
22441 mode for mask of V8SFmode permutation.
22443 2014-02-20 Richard Henderson <rth@redhat.com>
22446 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
22447 a new pseudo for OLDVAL.
22449 2014-02-20 Jakub Jelinek <jakub@redhat.com>
22452 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
22453 gen_reg_rtx if d->testing_p.
22454 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
22455 if d->testing_p and we will certainly return true.
22456 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
22459 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
22461 * emit-rtl.c (gen_reg_rtx): Assert that
22462 crtl->emit.regno_pointer_align_length is non-zero.
22464 2014-02-20 Richard Henderson <rth@redhat.com>
22467 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
22468 on failure the store back into EXPECT.
22470 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
22471 Sandra Loosemore <sandra@codesourcery.com>
22473 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
22474 * config/nios2/nios2.c (nios2_function_profiler): Add
22475 -fPIC (flag_pic == 2) support.
22476 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
22477 (nios2_large_offset_p): New function.
22478 (nios2_unspec_reloc_p): Move up position, update to use
22479 nios2_large_offset_p.
22480 (nios2_unspec_address): Remove function.
22481 (nios2_unspec_offset): New function.
22482 (nios2_large_got_address): New function.
22483 (nios2_got_address): Add large offset support.
22484 (nios2_legitimize_tls_address): Update usage of removed and new
22486 (nios2_symbol_binds_local_p): New function.
22487 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
22488 (nios2_legitimize_address): Update to use nios2_large_offset_p.
22489 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
22490 (nios2_print_operand): Merge H/L processing, add hiadj/lo
22491 processing for (const (unspec ...)).
22492 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
22494 2014-02-20 Richard Biener <rguenther@suse.de>
22496 * tree-cfg.c (replace_uses_by): Mark altered BBs before
22497 doing the substitution.
22498 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
22500 2014-02-20 Martin Jambor <mjambor@suse.cz>
22503 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
22504 info when checking whether lattices are bottom.
22506 2014-02-20 Richard Biener <rguenther@suse.de>
22508 PR middle-end/60221
22509 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
22512 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
22515 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
22516 parameter specifying the scaling.
22517 (inline_call): Update.
22518 (want_inline_recursively): Guard division by zero.
22519 (recursive_inlining): Update.
22520 * ipa-inline.h (clone_inlined_nodes): Update.
22522 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22525 * config/i386/i386.c (classify_argument): Pass structures of size
22526 64 bytes or less in register.
22528 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22529 Kirill Yukhin <kirill.yukhin@intel.com>
22531 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
22532 (_mm_rcp28_round_ss): Ditto.
22533 (_mm_rsqrt28_round_sd): Ditto.
22534 (_mm_rsqrt28_round_ss): Ditto.
22535 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
22536 (_mm_rcp14_round_ss): Ditto.
22537 (_mm_rsqrt14_round_sd): Ditto.
22538 (_mm_rsqrt14_round_ss): Ditto.
22539 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
22540 the first input operand, get rid of match_dup.
22541 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
22543 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
22545 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
22546 operand as the first input operand, set type attribute.
22547 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
22548 Set type attribute.
22549 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
22550 operand as the first input operand, set type attribute.
22552 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22554 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
22557 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
22560 * config/i386/i386.c (construct_container): Remove TFmode check
22561 for X86_64_INTEGER_CLASS.
22563 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
22566 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
22567 only when -Wpsabi is enabled.
22569 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
22572 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
22573 passing arrays in registers are the same as for structs, so remove the
22574 special case for them.
22576 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
22578 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
22579 destination type, extract only the valid bits if the source type is not
22580 integral and has a different mode.
22582 2014-02-19 Richard Biener <rguenther@suse.de>
22585 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
22588 2014-02-19 Richard Biener <rguenther@suse.de>
22591 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
22592 (ipa_modify_call_arguments): Emit an argument load explicitely and
22593 preserve virtual SSA form there and for the replacement call.
22594 Do not update SSA form nor free dominance info.
22596 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22598 * ipa.c (function_and_variable_visibility): Also clear WEAK
22599 flag when disolving COMDAT_GROUP.
22601 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22603 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
22604 * ipa-prop.c (ipa_set_jf_known_type): Return early when
22605 not devirtualizing.
22606 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
22607 do more sanity checks.
22608 (detect_type_change): Return true when giving up early.
22609 (compute_complex_assign_jump_func): Fix type parameter of
22610 ipa_set_ancestor_jf.
22611 (compute_complex_ancestor_jump_func): Likewise.
22612 (update_jump_functions_after_inlining): Fix updating of
22614 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
22616 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22618 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
22619 inline clones when edge disappears.
22621 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
22624 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
22625 Split 64-bit moves into 2 patterns. Do not allow the use of
22626 direct move for TDmode in little endian, since the decimal value
22627 has little endian bytes within a word, but the 64-bit pieces are
22628 ordered in a big endian fashion, and normal subreg's of TDmode are
22630 (mov<mode>_64bit_dm): Likewise.
22631 (movtd_64bit_nodm): Likewise.
22633 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
22635 PR tree-optimization/60174
22636 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
22637 statement of an SSA_NAME that occurs in an abnormal PHI node.
22639 2014-02-18 Jakub Jelinek <jakub@redhat.com>
22642 * final.c (SEEN_BB): Remove.
22643 (SEEN_NOTE, SEEN_EMITTED): Renumber.
22644 (final_scan_insn): Don't force_source_line on second
22645 NOTE_INSN_BASIC_BLOCK.
22647 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
22650 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
22651 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
22652 (type_natural_mode): Warn ABI change when %zmm register is not
22653 available for AVX512F vector value passing.
22655 2014-02-18 Kai Tietz <ktietz@redhat.com>
22658 * config/i386/i386.c (ix86_expand_prologue): Use value in
22659 rax register as displacement when restoring %r10 or %rax.
22660 Fix wrong offset when restoring both registers.
22662 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
22664 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
22665 assertion with conditional return.
22667 2014-02-18 Jakub Jelinek <jakub@redhat.com>
22668 Uros Bizjak <ubizjak@gmail.com>
22671 * config/i386/driver-i386.c (host_detect_local_cpu): If
22672 YMM state is not saved by the OS, also clear has_f16c. Move
22673 CPUID 0x80000001 handling before YMM state saving checking.
22675 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
22677 PR rtl-optimization/58960
22678 * haifa-sched.c (alloc_global_sched_pressure_data): New,
22679 factored out from ...
22680 (sched_init): ... here.
22681 (free_global_sched_pressure_data): New, factored out from ...
22682 (sched_finish): ... here.
22683 * sched-int.h (free_global_sched_pressure_data): Declare.
22684 * sched-rgn.c (nr_regions_initial): New static global.
22685 (haifa_find_rgns): Initialize it.
22686 (schedule_region): Disable sched-pressure for the newly
22689 2014-02-17 Richard Biener <rguenther@suse.de>
22691 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
22692 release SSA defs of pattern stmts.
22694 2014-02-17 Richard Biener <rguenther@suse.de>
22696 * tree-inline.c (expand_call_inline): Release the virtual
22697 operand defined by the call we are about to inline.
22699 2014-02-17 Richard Biener <rguenther@suse.de>
22701 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
22703 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
22704 Ilya Tocar <ilya.tocar@intel.com>
22706 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
22707 arguments order in builtin.
22708 (_mm512_permutexvar_epi64): Ditto.
22709 (_mm512_mask_permutexvar_epi64): Ditto
22710 (_mm512_maskz_permutexvar_epi32): Ditto
22711 (_mm512_permutexvar_epi32): Ditto
22712 (_mm512_mask_permutexvar_epi32): Ditto
22714 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22716 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
22717 (p8_vmrgow): Likewise.
22719 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22721 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
22724 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
22727 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
22728 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
22729 into 64-bit and 32-bit moves. On 64-bit moves, add support for
22730 using direct move instructions on ISA 2.07. Also adjust
22731 instruction length for 64-bit.
22732 (mov<mode>_64bit, TFmode/TDmode): Likewise.
22733 (mov<mode>_32bit, TFmode/TDmode): Likewise.
22735 2014-02-15 Alan Modra <amodra@gmail.com>
22739 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
22740 find_replacement on parts of insn rtl that might be reloaded.
22742 2014-02-15 Richard Biener <rguenther@suse.de>
22744 PR tree-optimization/60183
22745 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
22746 (tree_ssa_phiprop): Calculate and free post-dominators.
22748 2014-02-14 Jeff Law <law@redhat.com>
22750 PR rtl-optimization/60131
22751 * ree.c (get_extended_src_reg): New function.
22752 (combine_reaching_defs): Use it rather than assuming location of REG.
22753 (find_and_remove_re): Verify first operand of extension is
22754 a REG before adding the insns to the copy list.
22756 2014-02-14 Roland McGrath <mcgrathr@google.com>
22758 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
22759 * configure: Regenerated.
22760 * config.in: Regenerated.
22761 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
22762 instead of ASM_SHORT.
22764 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
22765 Richard Earnshaw <rearnsha@arm.com>
22767 PR rtl-optimization/59535
22768 * lra-constraints.c (process_alt_operands): Encourage alternative
22769 when unassigned pseudo class is superset of the alternative class.
22770 (inherit_reload_reg): Don't inherit when optimizing for code size.
22771 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
22772 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
22773 modes not less than 4 for Thumb1.
22775 2014-02-14 Kyle McMartin <kyle@redhat.com>
22778 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
22780 2014-02-14 Richard Biener <rguenther@suse.de>
22782 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
22783 (get_frame_arg): Drop the assert with langhook types_compatible_p.
22784 Do not strip INDIRECT_REFs.
22786 2014-02-14 Richard Biener <rguenther@suse.de>
22789 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
22790 DECL_FUNCTION_SPECIFIC_TARGET.
22791 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
22792 * tree-streamer-out.c (pack_ts_target_option): Remove.
22793 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
22794 (write_ts_function_decl_tree_pointers): Do not stream
22795 DECL_FUNCTION_SPECIFIC_TARGET.
22796 * tree-streamer-in.c (unpack_ts_target_option): Remove.
22797 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
22798 (lto_input_ts_function_decl_tree_pointers): Do not stream
22799 DECL_FUNCTION_SPECIFIC_TARGET.
22801 2014-02-14 Jakub Jelinek <jakub@redhat.com>
22803 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
22804 (get_initial_def_for_induction, vectorizable_induction): Ignore
22805 debug stmts when looking for exit_phi.
22806 (vectorizable_live_operation): Fix up condition.
22808 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
22810 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
22811 nreverse() because it changes the content of original tree list.
22813 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
22815 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
22816 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
22818 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
22820 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
22821 GNU coding standards.
22823 2014-02-13 Jakub Jelinek <jakub@redhat.com>
22826 * dwarf2out.c (gen_subprogram_die): Don't call
22827 add_calling_convention_attribute if subr_die is old_die.
22829 2014-02-13 Sharad Singhai <singhai@google.com>
22831 * doc/optinfo.texi: Fix order of nodes.
22833 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
22835 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
22836 operands[2], not operands[3].
22838 2014-02-13 Richard Biener <rguenther@suse.de>
22841 * doc/install.texi (ISL): Update recommended version to 0.12.2,
22842 mention the possibility of an in-tree build.
22843 (CLooG): Update recommended version to 0.18.1, mention the
22844 possibility of an in-tree build and clarify that the ISL
22845 bundled with CLooG does not work.
22847 2014-02-13 Jakub Jelinek <jakub@redhat.com>
22850 * expr.c (compress_float_constant): If x is a hard register,
22851 extend into a pseudo and then move to x.
22853 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
22855 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
22856 caused by bad second argument to warning_at() with -mhotpatch and
22857 nested functions (e.g. with gfortran).
22859 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
22861 * opts.c (option_name): Remove "enabled by default" rider.
22863 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
22865 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
22867 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
22868 Uros Bizjak <ubizjak@gmail.com>
22871 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
22872 * configure: Regenerated.
22874 2014-02-12 Richard Biener <rguenther@suse.de>
22876 * vec.c (vec_prefix::calculate_allocation): Move as
22877 inline variant to vec.h.
22878 (vec_prefix::calculate_allocation_1): New out-of-line version.
22879 * vec.h (vec_prefix::calculate_allocation_1): Declare.
22880 (vec_prefix::m_has_auto_buf): Rename to ...
22881 (vec_prefix::m_using_auto_storage): ... this.
22882 (vec_prefix::calculate_allocation): Inline the easy cases
22883 and dispatch to calculate_allocation_1 which doesn't need the
22885 (va_heap::reserve): Use gcc_checking_assert.
22886 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
22887 m_using_auto_storage.
22888 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
22890 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
22891 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
22892 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
22894 2014-02-12 Richard Biener <rguenther@suse.de>
22896 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
22897 when we found a dependence.
22899 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
22901 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
22903 (maybe_fold_stmt): ... into this new function.
22904 * omp-low.c (lower_omp): Update comment.
22906 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
22909 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
22912 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
22914 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
22915 identifiers in comments.
22916 (cortexa53_extra_costs): Likewise.
22917 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
22918 (cortexa7_extra_costs): Likewise.
22919 (cortexa12_extra_costs): Likewise.
22920 (cortexa15_extra_costs): Likewise.
22921 (v7m_extra_costs): Likewise.
22923 2014-02-12 Richard Biener <rguenther@suse.de>
22925 PR middle-end/60092
22926 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
22927 of posix_memalign being successful.
22928 (lower_stmt): Restrict lowering of posix_memalign to when
22929 -ftree-bit-ccp is enabled.
22931 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22933 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
22935 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
22937 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
22939 PR rtl-optimization/60116
22940 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
22941 other_insn once the combination has been validated.
22943 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
22946 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
22948 * ipa-devirt.c: Include demangle.h
22949 (odr_violation_reported): New static variable.
22950 (add_type_duplicate): Update odr_violations.
22951 (maybe_record_node): Add completep parameter; update it.
22952 (record_target_from_binfo): Add COMPLETEP parameter;
22953 update it as needed.
22954 (possible_polymorphic_call_targets_1): Likewise.
22955 (struct polymorphic_call_target_d): Add nonconstruction_targets;
22956 rename FINAL to COMPLETE.
22957 (record_targets_from_bases): Sanity check we found the binfo;
22958 fix COMPLETEP updating.
22959 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
22960 parameter, fix computing of COMPLETEP.
22961 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
22962 at LTO time do demangling.
22963 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
22964 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
22966 (gimple_get_virt_method_for_binfo): Likewise.
22967 * gimple-fold.h (gimple_get_virt_method_for_binfo,
22968 gimple_get_virt_method_for_vtable): Update prototypes.
22970 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
22973 * genautomata.c (add_presence_absence): Fix typo with
22974 {final_}presence_list.
22976 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
22979 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
22980 for VSX/Altivec vectors that land in GPR registers.
22982 2014-02-11 Richard Henderson <rth@redhat.com>
22983 Jakub Jelinek <jakub@redhat.com>
22986 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
22987 around drhs if type conversion to lacc->type is not useless.
22989 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22991 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
22993 (cortex-a57.cortex-a53): Likewise.
22994 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
22996 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22998 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23001 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23003 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23004 add_options_for_arm_vfp3.
23006 2014-02-11 Jeff Law <law@redhat.com>
23008 PR middle-end/54041
23009 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23010 object with an undesirable mode.
23012 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23015 * config/i386/sol2-9.h: New file.
23016 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23017 *-*-solaris2.9*): Use it.
23019 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23021 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23022 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23024 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23026 * config/microblaze/microblaze.c: Extend mcpu version format
23028 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23030 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23032 2014-02-10 Richard Henderson <rth@redhat.com>
23035 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23036 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23037 ms-abi vs -mno-accumulate-outgoing-args.
23038 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23039 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23042 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23044 PR middle-end/60080
23045 * cfgexpand.c (expand_asm_operands): Attach source location to
23046 ASM_INPUT rtx objects.
23047 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23049 2014-02-10 Nick Clifton <nickc@redhat.com>
23051 * config/mn10300/mn10300.c (popcount): New function.
23052 (mn10300_expand_prologue): Include saved registers in stack usage
23055 2014-02-10 Jeff Law <law@redhat.com>
23057 PR middle-end/52306
23058 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23059 when changing the SET_DEST of a prior insn to avoid an input reload.
23061 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23063 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23064 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23065 -mcall-openbsd, or -mcall-linux.
23066 (CC1_ENDIAN_BIG_SPEC): Remove.
23067 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23068 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23069 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23070 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23071 and %cc1_endian_default.
23072 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23074 2014-02-10 Richard Biener <rguenther@suse.de>
23076 PR tree-optimization/60115
23077 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23078 MEM_REF handling. Properly verify that the accesses are not
23079 out of the objects bound.
23081 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23083 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23086 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23088 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23089 proper constants and fix formatting.
23090 (possible_polymorphic_call_targets): Fix formatting.
23092 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23093 Ilya Tocar <ilya.tocar@intel.com>
23095 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23096 (_mm512_loadu_epi32): Renamed into...
23097 (_mm512_loadu_si512): This.
23098 (_mm512_storeu_epi32): Renamed into...
23099 (_mm512_storeu_si512): This.
23100 (_mm512_maskz_ceil_ps): Removed.
23101 (_mm512_maskz_ceil_pd): Ditto.
23102 (_mm512_maskz_floor_ps): Ditto.
23103 (_mm512_maskz_floor_pd): Ditto.
23104 (_mm512_floor_round_ps): Ditto.
23105 (_mm512_floor_round_pd): Ditto.
23106 (_mm512_ceil_round_ps): Ditto.
23107 (_mm512_ceil_round_pd): Ditto.
23108 (_mm512_mask_floor_round_ps): Ditto.
23109 (_mm512_mask_floor_round_pd): Ditto.
23110 (_mm512_mask_ceil_round_ps): Ditto.
23111 (_mm512_mask_ceil_round_pd): Ditto.
23112 (_mm512_maskz_floor_round_ps): Ditto.
23113 (_mm512_maskz_floor_round_pd): Ditto.
23114 (_mm512_maskz_ceil_round_ps): Ditto.
23115 (_mm512_maskz_ceil_round_pd): Ditto.
23116 (_mm512_expand_pd): Ditto.
23117 (_mm512_expand_ps): Ditto.
23118 * config/i386/i386.c (ix86_builtins): Remove
23119 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23120 (bdesc_args): Ditto.
23121 * config/i386/predicates.md (const1256_operand): New.
23122 (const_1_to_2_operand): Ditto.
23123 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23124 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23125 (*avx512pf_gatherpf<mode>sf): Ditto.
23126 (avx512pf_gatherpf<mode>df): Ditto.
23127 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23128 (*avx512pf_gatherpf<mode>df): Ditto.
23129 (avx512pf_scatterpf<mode>sf): Ditto.
23130 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23131 (*avx512pf_scatterpf<mode>sf): Ditto.
23132 (avx512pf_scatterpf<mode>df): Ditto.
23133 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23134 (*avx512pf_scatterpf<mode>df): Ditto.
23135 (avx512f_expand<mode>): Removed.
23136 (<shift_insn><mode>3<mask_name>): Change predicate type.
23138 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23140 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23141 not at the end of datarefs vector use ordered_remove to avoid
23142 reordering datarefs vector.
23145 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23146 mark local addressable non-static vars as GOVD_PRIVATE
23147 instead of GOVD_LOCAL.
23148 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23149 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23152 PR middle-end/60092
23153 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23154 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23155 assume_aligned or alloc_align attributes.
23156 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23157 arguments. Handle also assume_aligned and alloc_align attributes.
23158 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23159 calls to functions with assume_aligned or alloc_align attributes.
23160 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23162 2014-02-08 Terry Guo <terry.guo@arm.com>
23164 * doc/invoke.texi: Document ARM -march=armv7e-m.
23166 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23168 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23169 flag on __cilkrts_rethrow builtin.
23172 * ipa-cp.c (determine_versionability): Fail at -O0
23173 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23174 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23177 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23180 * tree-inline.c (copy_forbidden): Fail for
23181 __attribute__((optimize (0))) functions.
23183 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23185 * varpool.c: Include pointer-set.h.
23186 (varpool_remove_unreferenced_decls): Variables in other partitions
23187 will not be output; be however careful to not lose information
23188 about partitioning.
23190 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23192 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23193 lookup in the vtable constructor.
23195 2014-02-07 Jeff Law <law@redhat.com>
23198 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23199 define_insn_and_split.
23201 * ipa-inline.c (inline_small_functions): Fix typos.
23203 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23205 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23206 (s390_can_use_return_insn): Declare.
23207 * config/s390/s390.h (EPILOGUE_USES): Define.
23208 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23210 (s390_chunkify_start): Handle return JUMP_LABELs.
23211 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23212 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23213 (s390_can_use_return_insn): New functions.
23214 (s390_fix_long_loop_prediction): Handle conditional returns.
23215 (TARGET_SET_UP_BY_PROLOGUE): Define.
23216 * config/s390/s390.md (ANY_RETURN): New code iterator.
23217 (*creturn, *csimple_return, return, simple_return): New patterns.
23219 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23221 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23222 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23223 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23224 REG_CFA_RESTORE list when deciding not to restore a register.
23226 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23228 * config/s390/s390.c: Include tree-pass.h and context.h.
23229 (s390_early_mach): New function, split out from...
23230 (s390_emit_prologue): ...here.
23231 (pass_data_s390_early_mach): New pass structure.
23232 (pass_s390_early_mach): New class.
23233 (s390_option_override): Create and register early_mach pass.
23234 Move to end of file.
23236 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23238 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23239 to match for the exit block.
23241 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23243 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23244 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23245 Reject misaligned operands.
23247 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23249 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23251 2014-02-07 Richard Biener <rguenther@suse.de>
23253 PR middle-end/60092
23254 * gimple-low.c (lower_builtin_posix_memalign): New function.
23255 (lower_stmt): Call it to lower posix_memalign in a way
23256 to make alignment info accessible.
23258 2014-02-07 Jakub Jelinek <jakub@redhat.com>
23261 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23262 __builtin_setjmp_receiver.
23264 2014-02-07 Richard Biener <rguenther@suse.de>
23266 PR middle-end/60092
23267 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23268 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23269 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23270 Handle BUILT_IN_POSIX_MEMALIGN.
23271 (find_func_clobbers): Likewise.
23272 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23273 (call_may_clobber_ref_p_1): Likewise.
23275 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23278 * ipa-devirt.c (record_target_from_binfo): Remove overactive
23281 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23284 * lto-cgraph.c (lto_output_node): Use
23285 symtab_get_symbol_partitioning_class.
23286 (lto_output_varpool_node): likewise.
23287 (symtab_get_symbol_partitioning_class): Move here from
23288 lto/lto-partition.c
23289 * cgraph.h (symbol_partitioning_class): Likewise.
23290 (symtab_get_symbol_partitioning_class): Declare.
23292 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23294 * ggc.h (ggc_internal_cleared_alloc): New macro.
23295 * vec.h (vec_safe_copy): Handle memory stats.
23296 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
23297 * target-globals.c (save_target_globals): Likewise.
23299 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23302 * expr.c (emit_move_resolve_push): Export; be bit more selective
23303 on when to clear alias set.
23304 * expr.h (emit_move_resolve_push): Declare.
23305 * function.h (struct function): Add tail_call_marked.
23306 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
23307 * config/i386/i386-protos.h (ix86_expand_push): Remove.
23308 * config/i386/i386.md (TImode move expander): De not call
23310 (FP push expanders): Preserve memory attributes.
23311 * config/i386/sse.md (push<mode>1): Remove.
23312 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
23313 (ix86_expand_push): Remove.
23314 * config/i386/mmx.md (push<mode>1): Remove.
23316 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23318 PR rtl-optimization/60030
23319 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
23320 lopart with paradoxical subreg before shifting it up by hprec.
23322 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23324 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
23325 Remove extra newline at end of file.
23326 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
23327 (arm_issue_rate): Handle cortexa57.
23328 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
23329 (cortex-a57.cortex-a53): Likewise.
23331 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23334 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
23335 don't record in REG_FRAME_RELATED_EXPR registers not set in that
23337 (arm_expand_prologue): Adjust all callers.
23338 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
23339 info, registers also at the lowest numbered registers side. Use
23340 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
23344 * var-tracking.c (adjust_mems): Before adding a SET to
23345 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
23347 2014-02-06 Alan Modra <amodra@gmail.com>
23350 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
23351 change SDmode to DDmode when lra_in_progress.
23353 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23355 PR middle-end/59150
23356 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
23357 free_data_ref on the dr first, and before goto again also set dr
23358 to the next dr. For simd_lane_access, free old datarefs[i] before
23359 overwriting it. For get_vectype_for_scalar_type failure, don't
23360 free_data_ref if simd_lane_access.
23362 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
23365 * tree.h (opts_for_fn): New inline function.
23366 (opt_for_fn): Define.
23367 * config/i386/i386.c (ix86_function_regparm): Use
23368 opt_for_fn (decl, optimize) instead of optimize.
23370 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
23372 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
23373 for SYMBOL_REF in large memory model.
23375 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23377 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
23378 and crypto support.
23379 (cortex-a57): Likewise.
23380 (cortex-a57.cortex-a53): Likewise.
23382 2014-02-06 Yury Gribov <y.gribov@samsung.com>
23383 Kugan Vivekanandarajah <kuganv@linaro.org>
23385 * config/arm/arm.c (arm_vector_alignment_reachable): Check
23387 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
23389 2014-02-06 Richard Biener <rguenther@suse.de>
23391 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
23392 set_loop_copy and initialize_original_copy_tables.
23394 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
23396 * config/aarch64/aarch64-simd.md
23397 (aarch64_ashr_simddi): Change QI to SI.
23399 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23400 Jakub Jelinek <jakub@redhat.com>
23402 PR middle-end/60013
23403 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
23406 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23408 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
23409 CODE_FOR_altivec_vpku[hw]um to
23410 CODE_FOR_altivec_vpku[hw]um_direct.
23411 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
23412 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
23413 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
23414 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
23416 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23418 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
23419 generation for -maltivec=be.
23420 (altivec_vsumsws): Simplify redundant test.
23422 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23424 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
23425 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
23426 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
23427 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
23428 gen_altivec_vpkuwum.
23429 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
23431 (altivec_vpks<VI_char>ss): Likewise.
23432 (altivec_vpks<VI_char>us): Likewise.
23433 (altivec_vpku<VI_char>us): Likewise.
23434 (altivec_vpku<VI_char>um): Likewise.
23435 (altivec_vpku<VI_char>um_direct): New (copy of
23436 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
23438 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
23439 target is little endian and -maltivec=be is not specified.
23440 (*altivec_vupkhs<VU_char>_direct): New (copy of
23441 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
23442 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
23443 target is little endian and -maltivec=be is not specified.
23444 (*altivec_vupkls<VU_char>_direct): New (copy of
23445 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
23446 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
23447 little endian and -maltivec=be is not specified.
23448 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
23449 little endian and -maltivec=be is not specified.
23451 2014-02-05 Richard Henderson <rth@redhat.com>
23454 * combine-stack-adj.c: Revert r206943.
23455 * sched-int.h (struct deps_desc): Add last_args_size.
23456 * sched-deps.c (init_deps): Initialize it.
23457 (sched_analyze_insn): Add OUTPUT dependencies between insns that
23458 contain REG_ARGS_SIZE notes.
23460 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23462 * lto-cgraph.c (asm_nodes_output): Make global.
23463 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
23464 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
23465 (driver_handle_option): Handle OPT_fwpa.
23467 2014-02-05 Jakub Jelinek <jakub@redhat.com>
23470 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
23471 a comment typo and formatting issue. If odr_hash hasn't been
23472 created, return vNULL and set *completep to false.
23474 PR middle-end/57499
23475 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
23476 bb with no successors.
23478 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
23481 * doc/invoke.texi (-march): Clarify documentation for ARM.
23482 (-mtune): Likewise.
23485 2014-02-05 Richard Biener <rguenther@suse.de>
23487 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
23488 when not vectorizing because of too many alias checks.
23489 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23490 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
23492 2014-02-05 Nick Clifton <nickc@redhat.com>
23494 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
23495 accept extended registers in any mode when compiling for the MN10300.
23497 2014-02-05 Yury Gribov <y.gribov@samsung.com>
23499 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
23500 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
23501 sanitization attributes.
23502 (can_inline_edge_p): Likewise.
23503 (sanitize_attrs_match_for_inline_p): New function.
23505 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23507 * ipa-prop.c (detect_type_change): Shor circuit testing of
23508 type changes on THIS pointer.
23510 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
23513 * config/pa/pa.c (legitimize_tls_address): Return original address
23514 if not passed a SYMBOL_REF rtx.
23515 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
23517 (pa_emit_move_sequence): Simplify TLS source operands.
23518 (pa_legitimate_constant_p): Reject all TLS constants.
23519 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
23520 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
23522 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23524 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
23525 groups when we know they are controlled by LTO.
23526 * varasm.c (default_binds_local_p_1): If object is in other partition,
23527 it will be resolved locally.
23529 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23531 * config/host-linux.c (linux_gt_pch_use_address): Don't
23532 use SSIZE_MAX because it is not always defined.
23534 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
23537 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
23538 threshold for pseudo splitting.
23539 (update_ebb_live_info): Process call argument hard registers and
23540 hard registers from insn definition too.
23541 (max_small_class_regs_num): New constant.
23542 (inherit_in_ebb): Update live hard regs through EBBs. Update
23543 reloads_num only for small register classes. Don't split for
23546 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
23549 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
23552 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23554 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
23555 visibility is safe.
23557 2014-02-04 Marek Polacek <polacek@redhat.com>
23559 * gdbinit.in (pel): Define.
23561 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23563 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
23566 2014-02-04 Richard Biener <rguenther@suse.de>
23569 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
23570 in function context local.
23571 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
23572 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
23573 similar to LTO_imported_decl_ref.
23575 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23577 PR tree-optimization/60002
23578 * cgraphclones.c (build_function_decl_skip_args): Clear
23579 DECL_LANG_SPECIFIC.
23581 PR tree-optimization/60023
23582 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
23583 false to gsi_replace.
23584 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
23585 has been in some EH region and vec_stmt could throw, add
23586 vec_stmt into the same EH region.
23587 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
23588 has no lhs, ignore it.
23589 * internal-fn.c (expand_MASK_LOAD): Likewise.
23592 * tree-inline.c (copy_forbidden): Fail for
23593 __attribute__((optimize (0))) functions.
23596 * omp-low.c (simd_clone_struct_copy): If from->inbranch
23597 is set, copy one less argument.
23598 (expand_simd_clones): Don't subtract clone_info->inbranch
23599 from simd_clone_struct_alloc argument.
23601 PR rtl-optimization/57915
23602 * recog.c (simplify_while_replacing): If all unary/binary/relational
23603 operation arguments are constant, attempt to simplify those.
23605 PR middle-end/59261
23606 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
23607 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
23609 2014-02-04 Richard Biener <rguenther@suse.de>
23611 PR tree-optimization/60012
23612 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
23613 TBAA disambiguation to all DDRs.
23615 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23618 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
23619 (LINK_SPEC): Use it for -shared, -shared-libgcc.
23621 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23624 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
23626 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23628 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
23629 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
23631 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23634 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
23635 to figure out targets of polymorphic calls with known decl.
23636 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23637 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
23638 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
23639 (get_polymorphic_call_info): ... here.
23640 (get_polymorphic_call_info_from_invariant): New function.
23642 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23644 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
23645 lookup via vtable pointer; check for type consistency
23646 and turn inconsitent facts into UNREACHABLE.
23647 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23648 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
23649 type inconsistent querries; return UNREACHABLE instead.
23651 2014-02-03 Richard Henderson <rth@twiddle.net>
23654 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
23655 already processed this node.
23656 (normalize_one_pred_1): Pass along mark_set.
23657 (normalize_one_pred): Create and destroy a pointer_set_t.
23658 (normalize_one_pred_chain): Likewise.
23660 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
23662 PR gcov-profile/58602
23663 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
23665 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23668 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
23669 -fno-devirtualize; try to devirtualize by the knowledge of
23670 virtual table pointer given by aggregate propagation.
23671 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23672 (ipa_print_node_jump_functions): Dump also offset that
23673 is relevant for polymorphic calls.
23674 (determine_known_aggregate_parts): Add arg_type parameter; use it
23675 instead of determining the type from pointer type.
23676 (ipa_compute_jump_functions_for_edge): Update call of
23677 determine_known_aggregate_parts.
23678 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
23679 (gimple_get_virt_method_for_binfo): ... here; simplify using
23680 vtable_pointer_value_to_vtable.
23681 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
23682 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
23683 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
23684 (vtable_pointer_value_to_vtable): Break out from ...; handle also
23686 (vtable_pointer_value_to_binfo): ... here.
23687 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
23689 2014-02-03 Teresa Johnson <tejohnson@google.com>
23691 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
23692 redef of outer loop index variable.
23694 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
23698 * doc/extend.texi (Function Attributes): Typo.
23700 2014-02-03 Cong Hou <congh@google.com>
23702 PR tree-optimization/60000
23703 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
23704 if the vectorized statement is a store. A store statement can only
23705 appear at the end of pattern statements.
23707 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
23709 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
23710 (ix86_option_override_internal): Default long double to 64-bit for
23711 32-bit Bionic and to 128-bit for 64-bit Bionic.
23713 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
23714 TARGET_LONG_DOUBLE_128 is true.
23715 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
23717 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
23718 (mlong-double-64): Negate -mlong-double-128.
23719 (mlong-double-128): New option.
23721 * config/i386/i386-c.c (ix86_target_macros): Define
23722 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
23724 * doc/invoke.texi: Document -mlong-double-128.
23726 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
23728 PR rtl-optimization/60024
23729 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
23731 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
23733 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
23735 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
23737 PR rtl-optimization/57662
23738 * sel-sched.c (code_motion_path_driver): Do not mark already not
23739 existing blocks in the visiting bitmap.
23741 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
23743 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
23744 on the insn being emitted.
23746 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
23747 Will Deacon <will.deacon@arm.com>
23749 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
23751 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23753 * config/arm/arm-tables.opt: Regenerate.
23755 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23757 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
23758 for vector types other than V16QImode.
23759 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
23760 define_expand, and call altivec_expand_vec_perm_le when producing
23761 code with little endian element order.
23762 (*altivec_vperm_<mode>_internal): New insn having previous
23763 behavior of altivec_vperm_<mode>.
23764 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
23765 altivec_expand_vec_perm_le when producing code with little endian
23767 (*altivec_vperm_<mode>_uns_internal): New insn having previous
23768 behavior of altivec_vperm_<mode>_uns.
23770 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23772 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
23773 (altivec_vsumsws): Add handling for -maltivec=be with a little
23775 (altivec_vsumsws_direct): New.
23776 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
23777 gen_altivec_vsumsws.
23779 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
23781 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
23782 vtable_pointer_value_to_binfo): New functions.
23783 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
23784 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
23786 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
23788 * config/nios2/nios2.md (load_got_register): Initialize GOT
23789 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
23790 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
23792 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
23794 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
23795 preserverd by passthrough, do not propagate the type.
23797 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
23799 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
23800 (mips_atomic_assign_expand_fenv): New function.
23801 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
23803 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
23805 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
23806 (__builtin_mips_set_fcsr): Likewise.
23807 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
23808 MIPS_USI_FTYPE_VOID.
23809 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
23810 (mips16_expand_set_fcsr): Likewise.
23811 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
23812 (mips16_set_fcsr_stub): Likewise.
23813 (mips16_get_fcsr_one_only_stub): New class.
23814 (mips16_set_fcsr_one_only_stub): Likewise.
23815 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
23816 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
23817 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
23818 (hard_float): New availability predicate.
23819 (mips_builtins): Add get_fcsr and set_fcsr.
23820 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
23821 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
23822 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
23823 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
23824 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
23827 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
23829 * config/mips/mips.c (mips_one_only_stub): New class.
23830 (mips_need_mips16_rdhwr_p): Replace with...
23831 (mips16_rdhwr_stub): ...this new variable.
23832 (mips16_stub_call_address): New function.
23833 (mips16_rdhwr_one_only_stub): New class.
23834 (mips_expand_thread_pointer): Use mips16_stub_call_address.
23835 (mips_output_mips16_rdhwr): Delete.
23836 (mips_finish_stub): New function.
23837 (mips_code_end): Use it to handle rdhwr stubs.
23839 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
23842 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
23843 when calculating size of integer atomic types.
23845 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
23847 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
23849 2014-02-01 Jakub Jelinek <jakub@redhat.com>
23851 PR tree-optimization/60003
23852 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
23853 * profile.c (branch_prob): Use gimple_call_builtin_p
23854 to check for BUILT_IN_SETJMP_RECEIVER.
23855 * tree-inline.c (copy_bb): Call notice_special_calls.
23857 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
23860 * lra-constraints.c (process_alt_operands): Update reload_sum only
23863 2014-01-31 Richard Henderson <rth@redhat.com>
23865 PR middle-end/60004
23866 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
23867 until after else_eh is processed.
23869 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
23871 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
23872 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
23873 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
23874 in smmintrin.h, remove them.
23875 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
23876 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
23877 * config/i386/i386.md (ROUND_SAE): Fix value.
23878 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
23879 (const48_operand): New.
23880 * config/i386/subst.md (round), (round_expand): Use
23881 const_4_or_8_to_11_operand.
23882 (round_saeonly), (round_saeonly_expand): Use const48_operand.
23884 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
23886 * config/i386/constraints.md (Yk): Swap meaning with k.
23887 * config/i386/i386.md (movhi_internal): Change Yk to k.
23888 (movqi_internal): Ditto.
23889 (*k<logic><mode>): Ditto.
23892 (kandn<mode>): Ditto.
23893 (*<code>hi_1): Ditto.
23894 (*<code>qi_1): Ditto.
23895 (kxnor<mode>): Ditto.
23896 (kortestzhi): Ditto.
23897 (kortestchi): Ditto.
23899 (*one_cmplhi2_1): Ditto.
23900 (*one_cmplqi2_1): Ditto.
23901 * config/i386/sse.md (): Change k to Yk.
23902 (avx512f_load<mode>_mask): Ditto.
23903 (avx512f_blendm<mode>): Ditto.
23904 (avx512f_store<mode>_mask): Ditto.
23905 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
23906 (avx512f_storedqu<mode>_mask): Ditto.
23907 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
23909 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
23910 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
23911 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
23912 (avx512f_maskcmp<mode>3): Ditto.
23913 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
23914 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
23915 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
23916 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
23917 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
23918 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
23919 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
23920 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
23921 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
23922 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
23923 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
23924 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
23925 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
23926 (vec_extract_lo_<mode>_maskm): Ditto.
23927 (vec_extract_hi_<mode>_maskm): Ditto.
23928 (avx512f_vternlog<mode>_mask): Ditto.
23929 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
23930 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
23931 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
23932 (avx512f_<code>v8div16qi2_mask): Ditto.
23933 (avx512f_<code>v8div16qi2_mask_store): Ditto.
23934 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
23935 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
23936 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
23937 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
23938 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23939 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23940 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23941 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23942 (avx512cd_maskb_vec_dupv8di): Ditto.
23943 (avx512cd_maskw_vec_dupv16si): Ditto.
23944 (avx512f_vpermi2var<mode>3_maskz): Ditto.
23945 (avx512f_vpermi2var<mode>3_mask): Ditto.
23946 (avx512f_vpermi2var<mode>3_mask): Ditto.
23947 (avx512f_vpermt2var<mode>3_maskz): Ditto.
23948 (*avx512f_gathersi<mode>): Ditto.
23949 (*avx512f_gathersi<mode>_2): Ditto.
23950 (*avx512f_gatherdi<mode>): Ditto.
23951 (*avx512f_gatherdi<mode>_2): Ditto.
23952 (*avx512f_scattersi<mode>): Ditto.
23953 (*avx512f_scatterdi<mode>): Ditto.
23954 (avx512f_compress<mode>_mask): Ditto.
23955 (avx512f_compressstore<mode>_mask): Ditto.
23956 (avx512f_expand<mode>_mask): Ditto.
23957 * config/i386/subst.md (mask): Change k to Yk.
23958 (mask_scalar_merge): Ditto.
23961 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
23963 * doc/extend.texi (Vector Extensions): Document ?: in C++.
23965 2014-01-31 Richard Biener <rguenther@suse.de>
23967 PR middle-end/59990
23968 * builtins.c (fold_builtin_memory_op): Make sure to not
23969 use a floating-point mode or a boolean or enumeral type for
23970 the copy operation.
23972 2014-01-30 DJ Delorie <dj@redhat.com>
23974 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
23975 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
23976 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
23977 whenever main() has an epilogue.
23979 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23981 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
23982 unused variable "field".
23983 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
23984 (vsx_mergeh_<mode>): Likewise.
23985 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
23986 (altivec_vmrghh): Likewise.
23987 (altivec_vmrghw): Likewise.
23988 (altivec_vmrglb): Likewise.
23989 (altivec_vmrglh): Likewise.
23990 (altivec_vmrglw): Likewise.
23991 (altivec_vspltb): Add missing uses.
23992 (altivec_vsplth): Likewise.
23993 (altivec_vspltw): Likewise.
23994 (altivec_vspltsf): Likewise.
23996 2014-01-30 Jakub Jelinek <jakub@redhat.com>
23999 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24000 frame related instructions.
24002 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24004 PR rtl-optimization/59959
24005 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24006 any reload of register whose subreg is invalid.
24008 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24010 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24011 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24012 Add missing return type - void.
24014 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24016 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24017 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24018 remove element index adjustment for endian (now handled in vsx.md
24020 (altivec_expand_vec_perm_const): Use
24021 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24022 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24023 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24024 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24025 define_expand and a new define_insn *altivec_vspltb_internal;
24026 adjust for -maltivec=be on a little endian target.
24027 (altivec_vspltb_direct): New.
24028 (altivec_vsplth): Divide into a define_expand and a new
24029 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24030 little endian target.
24031 (altivec_vsplth_direct): New.
24032 (altivec_vspltw): Divide into a define_expand and a new
24033 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24034 little endian target.
24035 (altivec_vspltw_direct): New.
24036 (altivec_vspltsf): Divide into a define_expand and a new
24037 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24038 a little endian target.
24040 2014-01-30 Richard Biener <rguenther@suse.de>
24042 PR tree-optimization/59993
24043 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24044 can propagate form the earlier stmt and avoid the transform
24045 when the intermediate result is needed.
24047 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24049 * README.Portability: Fix typo.
24051 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24053 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24054 comparison_operator with ordered_comparison_operator.
24056 2014-01-30 Nick Clifton <nickc@redhat.com>
24058 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24059 Rename to mn10300_store_multiple_regs.
24060 * config/mn10300/mn10300.c: Likewise.
24061 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24062 store_multiple_regs.
24063 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24064 Call mn10300_store_multiple_regs.
24066 2014-01-30 Nick Clifton <nickc@redhat.com>
24067 DJ Delorie <dj@redhat.com>
24069 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24070 %fp 2 to keep registers after it properly word-aligned.
24071 (rl78_alloc_physical_registers_umul): Handle the case where both
24072 input operands are the same.
24074 2014-01-30 Richard Biener <rguenther@suse.de>
24076 PR tree-optimization/59903
24077 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24080 2014-01-30 Jason Merrill <jason@redhat.com>
24083 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24086 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24088 2014-01-30 Richard Biener <rguenther@suse.de>
24090 PR tree-optimization/59951
24091 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24093 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24096 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24097 SFmode to DFmode case.
24099 2014-01-29 DJ Delorie <dj@redhat.com>
24101 * config/msp430/msp430.opt (-minrt): New.
24102 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24104 (ENDFILE_SPEC): Likewise.
24106 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24108 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24109 (estimate_function_body_sizes): Use it.
24111 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24114 * dwarf2out.c (is_cxx_auto): New.
24115 (is_base_type): Use it.
24116 (gen_type_die_with_usage): Likewise.
24118 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24120 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24121 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24122 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24123 -maltivec=be with LE targets.
24124 (vsx_mergeh_<mode>): Likewise.
24125 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24126 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24127 (altivec_vmrghb): Replace with define_expand and new
24128 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24129 (altivec_vmrghb_direct): New define_insn.
24130 (altivec_vmrghh): Replace with define_expand and new
24131 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24132 (altivec_vmrghh_direct): New define_insn.
24133 (altivec_vmrghw): Replace with define_expand and new
24134 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24135 (altivec_vmrghw_direct): New define_insn.
24136 (*altivec_vmrghsf): Adjust for endianness.
24137 (altivec_vmrglb): Replace with define_expand and new
24138 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24139 (altivec_vmrglb_direct): New define_insn.
24140 (altivec_vmrglh): Replace with define_expand and new
24141 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24142 (altivec_vmrglh_direct): New define_insn.
24143 (altivec_vmrglw): Replace with define_expand and new
24144 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24145 (altivec_vmrglw_direct): New define_insn.
24146 (*altivec_vmrglsf): Adjust for endianness.
24147 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24148 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24149 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24150 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24151 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24152 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24153 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24154 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24156 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24158 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24159 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24162 2014-01-29 Richard Biener <rguenther@suse.de>
24164 PR tree-optimization/58742
24165 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24166 associate_pointerplus_align.
24167 (associate_pointerplus_diff): New function.
24168 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24169 and associate_pointerplus_diff.
24171 2014-01-29 Richard Biener <rguenther@suse.de>
24173 * lto-streamer.h (LTO_major_version): Bump to 3.
24174 (LTO_minor_version): Reset to 0.
24176 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24178 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24179 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24180 (arm_file_start): Generate correct asm header for armv7ve.
24181 * config/arm/bpabi.h: Add multilib support for armv7ve.
24182 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24183 and cortex-a15 to armv7ve.
24184 * config/arm/t-aprofile: Add multilib support for armv7ve.
24185 * doc/invoke.texi: Document -march=armv7ve.
24187 2014-01-29 Richard Biener <rguenther@suse.de>
24189 PR tree-optimization/58742
24190 * tree-ssa-forwprop.c (associate_plusminus): Return true
24191 if we changed sth, defer EH cleanup to ...
24192 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24193 (simplify_mult): New function.
24195 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24197 PR middle-end/59917
24198 PR tree-optimization/59920
24199 * tree.c (build_common_builtin_nodes): Remove
24200 __builtin_setjmp_dispatcher initialization.
24201 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24202 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24203 instead of gsi_after_labels + manually skipping debug stmts.
24204 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24205 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24206 * tree-inline.c (copy_edges_for_bb): Remove
24207 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24208 argument. Ignore computed_goto_p stmts. Don't call
24209 make_abnormal_goto_edges. If a call might need abnormal edges
24210 for non-local gotos, see if it already has an edge to
24211 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24212 with true argument, don't do anything then, otherwise add
24213 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24214 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24216 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24217 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24218 (lower_stmt): Don't set data->calls_builtin_setjmp.
24219 (lower_builtin_setjmp): Adjust comment.
24220 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24221 * tree-cfg.c (found_computed_goto): Remove.
24222 (factor_computed_gotos): Remove.
24223 (make_goto_expr_edges): Return bool, true for computed gotos.
24224 Don't call make_abnormal_goto_edges.
24225 (build_gimple_cfg): Don't set found_computed_goto, don't call
24226 factor_computed_gotos.
24227 (computed_goto_p): No longer static.
24228 (make_blocks): Don't set found_computed_goto.
24229 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24230 (make_edges): If make_goto_expr_edges returns true, push bb
24231 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24232 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24233 vector. Record mapping between bbs and OpenMP regions if there
24234 are any, adjust make_gimple_omp_edges caller. Call
24235 handle_abnormal_edges.
24236 (make_abnormal_goto_edges): Remove.
24237 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24238 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24239 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24240 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24241 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24242 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24243 filling *region also set *region_idx to (*region)->entry->index.
24246 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24247 For REGs set ORIGINAL_REGNO.
24249 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
24251 * doc/md.texi: Mention that a target shouldn't implement
24252 vec_widen_(s|u)mul_even/odd pair if it is less efficient
24255 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24257 PR tree-optimization/59594
24258 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24259 a copy of the datarefs vector rather than the vector itself.
24261 2014-01-28 Jason Merrill <jason@redhat.com>
24264 * dwarf2out.c (auto_die): New static.
24265 (gen_type_die_with_usage): Handle C++1y 'auto'.
24266 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24269 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
24272 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
24273 (SPEC_X32): Likewise.
24274 (SPEC_64): Likewise.
24275 * config/i386/i386.c (ix86_option_override_internal): Turn off
24276 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
24278 (x86_file_start): Output .code16gcc for TARGET_16BIT.
24279 * config/i386/i386.h (TARGET_16BIT): New macro.
24280 (TARGET_16BIT_P): Likewise.
24281 * config/i386/i386.opt: Add m16.
24282 * doc/invoke.texi: Document -m16.
24284 2014-01-28 Jakub Jelinek <jakub@redhat.com>
24286 PR preprocessor/59935
24287 * input.c (location_get_source_line): Bail out on when line number
24288 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
24290 2014-01-28 Richard Biener <rguenther@suse.de>
24292 PR tree-optimization/58742
24293 * tree-ssa-forwprop.c (associate_plusminus): Handle
24294 pointer subtraction of the form (T)(P + A) - (T)P.
24296 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24298 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
24301 2014-01-28 Richard Biener <rguenther@suse.de>
24304 2014-01-28 Richard Biener <rguenther@suse.de>
24306 PR rtl-optimization/45364
24307 PR rtl-optimization/59890
24308 * var-tracking.c (local_get_addr_clear_given_value): Handle
24309 already cleared slot.
24310 (val_reset): Handle not allocated local_get_addr_cache.
24311 (vt_find_locations): Use post-order on the inverted CFG.
24313 2014-01-28 Richard Biener <rguenther@suse.de>
24315 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
24317 2014-01-28 Richard Biener <rguenther@suse.de>
24319 PR rtl-optimization/45364
24320 PR rtl-optimization/59890
24321 * var-tracking.c (local_get_addr_clear_given_value): Handle
24322 already cleared slot.
24323 (val_reset): Handle not allocated local_get_addr_cache.
24324 (vt_find_locations): Use post-order on the inverted CFG.
24326 2014-01-28 Alan Modra <amodra@gmail.com>
24328 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
24329 * configure.ac <recursive call for build != host>: Define
24330 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
24331 and LD_FOR_BUILD too.
24332 * configure: Regenerate.
24334 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
24336 * config/i386/i386.c (get_builtin_code_for_version): Separate
24337 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
24338 Broadwell from Haswell.
24340 2014-01-27 Steve Ellcey <sellcey@mips.com>
24342 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24343 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
24344 * config/mips/mips.c (mips_option_override): Change setting
24346 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
24347 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
24348 Change from Mask to Var.
24350 2014-01-27 Jeff Law <law@redhat.com>
24352 * ipa-inline.c (inline_small_functions): Fix typo.
24354 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
24356 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
24357 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
24358 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
24359 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
24360 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
24361 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
24362 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
24363 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
24364 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
24365 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
24366 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
24367 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
24368 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
24369 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
24370 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
24371 (_mm512_storeu_epi64): Ditto.
24372 (_mm512_cmpge_epi32_mask): Ditto.
24373 (_mm512_cmpge_epu32_mask): Ditto.
24374 (_mm512_cmpge_epi64_mask): Ditto.
24375 (_mm512_cmpge_epu64_mask): Ditto.
24376 (_mm512_cmple_epi32_mask): Ditto.
24377 (_mm512_cmple_epu32_mask): Ditto.
24378 (_mm512_cmple_epi64_mask): Ditto.
24379 (_mm512_cmple_epu64_mask): Ditto.
24380 (_mm512_cmplt_epi32_mask): Ditto.
24381 (_mm512_cmplt_epu32_mask): Ditto.
24382 (_mm512_cmplt_epi64_mask): Ditto.
24383 (_mm512_cmplt_epu64_mask): Ditto.
24384 (_mm512_cmpneq_epi32_mask): Ditto.
24385 (_mm512_cmpneq_epu32_mask): Ditto.
24386 (_mm512_cmpneq_epi64_mask): Ditto.
24387 (_mm512_cmpneq_epu64_mask): Ditto.
24388 (_mm512_expand_pd): Ditto.
24389 (_mm512_expand_ps): Ditto.
24390 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
24391 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
24392 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
24393 * config/i386/i386.c (ix86_builtins): Add
24394 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
24395 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
24396 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
24397 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
24398 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
24399 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
24400 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
24401 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
24402 IX86_BUILTIN_PMOVUSQW512_MEM.
24403 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
24404 __builtin_ia32_pmovsqd512mem_mask,
24405 __builtin_ia32_pmovqd512mem_mask,
24406 __builtin_ia32_pmovusqw512mem_mask,
24407 __builtin_ia32_pmovsqw512mem_mask,
24408 __builtin_ia32_pmovqw512mem_mask,
24409 __builtin_ia32_pmovusdw512mem_mask,
24410 __builtin_ia32_pmovsdw512mem_mask,
24411 __builtin_ia32_pmovdw512mem_mask,
24412 __builtin_ia32_pmovqb512mem_mask,
24413 __builtin_ia32_pmovusqb512mem_mask,
24414 __builtin_ia32_pmovsqb512mem_mask,
24415 __builtin_ia32_pmovusdb512mem_mask,
24416 __builtin_ia32_pmovsdb512mem_mask,
24417 __builtin_ia32_pmovdb512mem_mask.
24418 (bdesc_args): Add __builtin_ia32_expanddf512,
24419 __builtin_ia32_expandsf512.
24420 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
24421 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
24422 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
24423 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
24424 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
24425 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
24426 (avx512f_<code>v8div16qi2_mask_store): This.
24427 (avx512f_expand<mode>): New.
24429 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
24431 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
24433 (_mm512_mask_prefetch_i64gather_pd): Ditto.
24434 (_mm512_prefetch_i32scatter_pd): Ditto.
24435 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
24436 (_mm512_prefetch_i64scatter_pd): Ditto.
24437 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
24438 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
24439 (_mm512_mask_prefetch_i64gather_ps): Ditto.
24440 (_mm512_prefetch_i32scatter_ps): Ditto.
24441 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
24442 (_mm512_prefetch_i64scatter_ps): Ditto.
24443 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
24444 * config/i386/i386-builtin-types.def: Define
24445 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
24446 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
24447 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
24448 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
24449 IX86_BUILTIN_SCATTERPFQPD.
24450 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
24451 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
24452 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
24453 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
24454 __builtin_ia32_scatterpfqps.
24455 (ix86_expand_builtin): Expand new built-ins.
24456 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
24457 fix memory access data type.
24458 (*avx512pf_gatherpf<mode>_mask): Ditto.
24459 (*avx512pf_gatherpf<mode>): Ditto.
24460 (avx512pf_scatterpf<mode>): Ditto.
24461 (*avx512pf_scatterpf<mode>_mask): Ditto.
24462 (*avx512pf_scatterpf<mode>): Ditto.
24463 (GATHER_SCATTER_SF_MEM_MODE): New.
24464 (avx512pf_gatherpf<mode>df): Ditto.
24465 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24466 (*avx512pf_scatterpf<mode>df): Ditto.
24468 2014-01-27 Jakub Jelinek <jakub@redhat.com>
24471 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
24472 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
24475 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24477 * common/config/arm/arm-common.c
24478 (arm_rewrite_mcpu): Handle multiple names.
24480 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24482 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24484 * gimple-builder.h (create_gimple_tmp): Delete.
24486 2014-01-27 Christian Bruel <christian.bruel@st.com>
24488 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
24491 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
24493 * config/pa/pa.md (call): Generate indirect long calls to non-local
24494 functions when outputing 32-bit code.
24495 (call_value): Likewise except for special call to buggy powf function.
24497 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
24498 portable runtime and PIC indirect calls.
24499 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
24500 and PIC call sequences. Use ldo instead of blr to set return register
24501 in PIC call sequence.
24503 2014-01-25 Walter Lee <walt@tilera.com>
24505 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
24506 avoid clobbering a live register.
24508 2014-01-25 Walter Lee <walt@tilera.com>
24510 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
24511 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
24512 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
24513 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
24515 2014-01-25 Walter Lee <walt@tilera.com>
24517 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
24518 arguments on even registers.
24519 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
24521 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
24522 (BIGGEST_ALIGNMENT): Ditto.
24523 (BIGGEST_FIELD_ALIGNMENT): Ditto.
24525 2014-01-25 Walter Lee <walt@tilera.com>
24527 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
24528 insns before bundling.
24529 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
24531 2014-01-25 Walter Lee <walt@tilera.com>
24533 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
24534 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
24535 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
24537 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24539 * config/mips/constraints.md (kl): Delete.
24540 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
24541 define expands, using...
24542 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
24543 instructions for MIPS16.
24544 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
24545 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
24547 2014-01-25 Walter Lee <walt@tilera.com>
24549 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
24553 2014-01-25 Walter Lee <walt@tilera.com>
24555 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
24556 (TARGET_EXPAND_TO_RTL_HOOK): Define.
24558 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24560 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
24563 2014-01-25 Jakub Jelinek <jakub@redhat.com>
24565 * print-rtl.c (in_call_function_usage): New var.
24566 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
24567 EXPR_LIST mode as mode and not as reg note name.
24569 PR middle-end/59561
24570 * cfgloopmanip.c (copy_loop_info): If
24571 loop->warned_aggressive_loop_optimizations, make sure
24572 the flag is set in target loop too.
24574 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
24576 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
24578 * builtins.def: Likewise.
24579 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
24580 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
24581 * ira.c (ira_setup_eliminable_regset): Likewise.
24582 * omp-low.c (gate_expand_omp): Likewise.
24583 (execute_lower_omp): Likewise.
24584 (diagnose_sb_0): Likewise.
24585 (gate_diagnose_omp_blocks): Likewise.
24586 (simd_clone_clauses_extract): Likewise.
24589 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24591 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
24592 correction for little endian...
24593 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
24596 2014-01-24 Jeff Law <law@redhat.com>
24598 PR tree-optimization/59919
24599 * tree-vrp.c (find_assert_locations_1): Do not register asserts
24600 for non-returning calls.
24602 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
24604 * common/config/aarch64/aarch64-common.c
24605 (aarch64_rewrite_mcpu): Handle multiple names.
24606 * config/aarch64/aarch64.h
24607 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24609 2014-01-24 Dodji Seketeli <dodji@redhat.com>
24611 * input.c (add_file_to_cache_tab): Handle the case where fopen
24614 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
24617 * config/i386/i386.md (pushsf splitter): Get stack adjustment
24618 from push operand if code of push isn't PRE_DEC.
24620 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
24623 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
24624 -mquad-memory-atomic. Update -mquad-memory documentation to say
24625 it is only used for non-atomic loads/stores.
24627 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
24628 -mquad-memory or -mquad-memory-atomic switches.
24630 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
24631 -mquad-memory-atomic to ISA 2.07 support.
24633 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
24634 to separate support of normal quad word memory operations (ldq, stq)
24635 from the atomic quad word memory operations.
24637 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
24638 support to separate non-atomic quad word operations from atomic
24639 quad word operations. Disable non-atomic quad word operations in
24640 little endian mode so that we don't have to swap words after the
24641 load and before the store.
24642 (quad_load_store_p): Add comment about atomic quad word support.
24643 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
24644 options printed with -mdebug=reg.
24646 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
24647 -mquad-memory-atomic as the test for whether we have quad word
24648 atomic instructions.
24649 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
24650 or -mp8-vector are used, allow byte/half-word atomic operations.
24652 * config/rs6000/sync.md (load_lockedti): Insure that the address
24653 is a proper indexed or indirect address for the lqarx instruction.
24654 On little endian systems, swap the hi/lo registers after the lqarx
24656 (load_lockedpti): Use indexed_or_indirect_operand predicate to
24657 insure the address is valid for the lqarx instruction.
24658 (store_conditionalti): Insure that the address is a proper indexed
24659 or indirect address for the stqcrx. instruction. On little endian
24660 systems, swap the hi/lo registers before doing the stqcrx.
24662 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
24663 insure the address is valid for the stqcrx. instruction.
24665 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
24666 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
24667 type of quad memory support is available.
24669 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
24671 PR regression/59915
24672 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
24673 there is a danger of looping.
24675 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
24677 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24678 force flag_ira_loop_pressure if set via command line.
24680 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
24682 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
24683 (ashr_simd): New builtin handling DI mode.
24684 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
24685 (aarch64_sshr_simddi): New match pattern.
24686 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
24687 (vshrd_n_s64): Likewise.
24688 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
24690 2014-01-23 Nick Clifton <nickc@redhat.com>
24692 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
24693 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
24694 favour of mcu specific scripts.
24695 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
24698 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
24699 Alex Velenko <Alex.Velenko@arm.com>
24701 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
24702 (vaddv_s16): Likewise.
24703 (vaddv_s32): Likewise.
24704 (vaddv_u8): Likewise.
24705 (vaddv_u16): Likewise.
24706 (vaddv_u32): Likewise.
24707 (vaddvq_s8): Likewise.
24708 (vaddvq_s16): Likewise.
24709 (vaddvq_s32): Likewise.
24710 (vaddvq_s64): Likewise.
24711 (vaddvq_u8): Likewise.
24712 (vaddvq_u16): Likewise.
24713 (vaddvq_u32): Likewise.
24714 (vaddvq_u64): Likewise.
24715 (vaddv_f32): Likewise.
24716 (vaddvq_f32): Likewise.
24717 (vaddvq_f64): Likewise.
24718 (vmaxv_f32): Likewise.
24719 (vmaxv_s8): Likewise.
24720 (vmaxv_s16): Likewise.
24721 (vmaxv_s32): Likewise.
24722 (vmaxv_u8): Likewise.
24723 (vmaxv_u16): Likewise.
24724 (vmaxv_u32): Likewise.
24725 (vmaxvq_f32): Likewise.
24726 (vmaxvq_f64): Likewise.
24727 (vmaxvq_s8): Likewise.
24728 (vmaxvq_s16): Likewise.
24729 (vmaxvq_s32): Likewise.
24730 (vmaxvq_u8): Likewise.
24731 (vmaxvq_u16): Likewise.
24732 (vmaxvq_u32): Likewise.
24733 (vmaxnmv_f32): Likewise.
24734 (vmaxnmvq_f32): Likewise.
24735 (vmaxnmvq_f64): Likewise.
24736 (vminv_f32): Likewise.
24737 (vminv_s8): Likewise.
24738 (vminv_s16): Likewise.
24739 (vminv_s32): Likewise.
24740 (vminv_u8): Likewise.
24741 (vminv_u16): Likewise.
24742 (vminv_u32): Likewise.
24743 (vminvq_f32): Likewise.
24744 (vminvq_f64): Likewise.
24745 (vminvq_s8): Likewise.
24746 (vminvq_s16): Likewise.
24747 (vminvq_s32): Likewise.
24748 (vminvq_u8): Likewise.
24749 (vminvq_u16): Likewise.
24750 (vminvq_u32): Likewise.
24751 (vminnmv_f32): Likewise.
24752 (vminnmvq_f32): Likewise.
24753 (vminnmvq_f64): Likewise.
24755 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
24757 * config/aarch64/aarch64-simd.md
24758 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
24759 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
24760 (*aarch64_mul3_elt<mode>): Likewise.
24761 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
24762 (*aarch64_mul3_elt_to_64v2df): Likewise.
24763 (*aarch64_mla_elt<mode>): Likewise.
24764 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
24765 (*aarch64_mls_elt<mode>): Likewise.
24766 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
24767 (*aarch64_fma4_elt<mode>): Likewise.
24768 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
24769 (*aarch64_fma4_elt_to_64v2df): Likewise.
24770 (*aarch64_fnma4_elt<mode>): Likewise.
24771 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
24772 (*aarch64_fnma4_elt_to_64v2df): Likewise.
24773 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
24774 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
24775 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
24776 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
24777 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
24778 (aarch64_sqdmull_lane<mode>_internal): Likewise.
24779 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
24781 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
24783 * config/aarch64/aarch64-simd.md
24784 (aarch64_be_checked_get_lane<mode>): New define_expand.
24785 * config/aarch64/aarch64-simd-builtins.def
24786 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
24787 New builtin definition.
24788 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
24789 Use new safe be builtin.
24791 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
24793 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
24795 (aarch64_be_st1<mode>): Likewise.
24796 (aarch_ld1<VALL:mode>): Define_expand modified.
24797 (aarch_st1<VALL:mode>): Likewise.
24798 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
24799 (UNSPEC_ST1): Likewise.
24801 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
24803 * config/microblaze/microblaze.md: Add trap insn and attribute
24805 2014-01-23 Dodji Seketeli <dodji@redhat.com>
24807 PR preprocessor/58580
24808 * input.h (location_get_source_line): Take an additional line_size
24810 (void diagnostics_file_cache_fini): Declare new function.
24811 * input.c (struct fcache): New type.
24812 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
24813 New static constants.
24814 (diagnostic_file_cache_init, total_lines_num)
24815 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
24816 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
24817 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
24818 (get_next_line, read_next_line, goto_next_line, read_line_num):
24819 New static function definitions.
24820 (diagnostic_file_cache_fini): New function.
24821 (location_get_source_line): Take an additional output line_len
24822 parameter. Re-write using lookup_or_add_file_to_cache_tab and
24824 * diagnostic.c (diagnostic_finish): Call
24825 diagnostic_file_cache_fini.
24826 (adjust_line): Take an additional input parameter for the length
24827 of the line, rather than calculating it with strlen.
24828 (diagnostic_show_locus): Adjust the use of
24829 location_get_source_line and adjust_line with respect to their new
24830 signature. While displaying a line now, do not stop at the first
24831 null byte. Rather, display the zero byte as a space and keep
24832 going until we reach the size of the line.
24833 * Makefile.in: Add vec.o to OBJS-libcommon
24835 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
24836 Ilya Tocar <ilya.tocar@intel.com>
24838 * config/i386/avx512fintrin.h (_mm512_kmov): New.
24839 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
24840 (__builtin_ia32_kmov16): Ditto.
24841 * config/i386/i386.md (UNSPEC_KMOV): New.
24844 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
24846 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
24847 (_mm512_storeu_si512): Ditto.
24849 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
24852 * rtl.h (get_referenced_operands): Declare.
24853 * recog.c (get_referenced_operands): New function.
24854 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
24855 operands have been referenced when recording LO_SUM references.
24857 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
24859 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
24861 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
24863 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
24864 Enable for generic and recent AMD targets.
24866 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
24868 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
24869 ARG_SIZE note when adjustment was eliminated.
24871 2014-01-22 Jeff Law <law@redhat.com>
24873 PR tree-optimization/59597
24874 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
24875 in file. Accept new argument REGISTERING and use it to modify
24876 dump output appropriately.
24877 (register_jump_thread): Corresponding changes.
24878 (mark_threaded_blocks): Reinstate code to cancel unprofitable
24879 thread paths involving joiner blocks. Add code to dump cancelled
24880 jump threading paths.
24882 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
24884 PR rtl-optimization/59477
24885 * lra-constraints.c (inherit_in_ebb): Process call for living hard
24886 regs. Update reloads_num and potential_reload_hard_regs for all insns.
24888 2014-01-22 Tom Tromey <tromey@redhat.com>
24890 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
24892 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
24894 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
24896 PR rtl-optimization/59896
24897 * lra-constraints.c (process_alt_operands): Check unused note for
24898 matched operands of insn with no output reloads.
24900 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
24902 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
24903 (mips_move_from_gpr_cost): Likewise.
24905 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
24907 PR rtl-optimization/59858
24908 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
24909 ira_class_hard_regs_num.
24910 (process_alt_operands): Increase reject for dying matched operand.
24912 2014-01-21 Jakub Jelinek <jakub@redhat.com>
24915 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
24916 smaller than size, perform several stores or loads and stores
24917 at dst + count - size to store or copy all of size bytes, rather
24918 than just last modesize bytes.
24920 2014-01-20 DJ Delorie <dj@redhat.com>
24922 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
24923 that CLOBBERs are REGs before propogating their values.
24925 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
24927 PR middle-end/59789
24928 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
24929 (cgraph_inline_failed_type): New function.
24930 * cgraph.h (DEFCIFCODE): Add type.
24931 (cgraph_inline_failed_type_t): New enum.
24932 (cgraph_inline_failed_type): New prototype.
24933 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
24934 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
24935 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
24936 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
24937 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
24938 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
24939 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
24940 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
24941 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
24942 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
24943 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
24944 OPTIMIZATION_MISMATCH.
24945 * tree-inline.c (expand_call_inline): Emit errors during
24946 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
24948 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
24951 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
24952 mode attribute in insn output.
24954 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
24956 * output.h (output_constant): Delete.
24957 * varasm.c (output_constant): Make private.
24959 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
24961 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
24963 2014-01-20 Jakub Jelinek <jakub@redhat.com>
24965 PR middle-end/59860
24966 * tree.h (fold_builtin_strcat): New prototype.
24967 * builtins.c (fold_builtin_strcat): No longer static. Add len
24968 argument, if non-NULL, don't call c_strlen. Optimize
24969 directly into __builtin_memcpy instead of __builtin_strcpy.
24970 (fold_builtin_2): Adjust fold_builtin_strcat caller.
24971 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
24973 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
24975 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
24976 for SImode_address_operand operands, having only a REG argument.
24978 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
24980 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
24981 loader name using mbig-endian.
24982 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
24984 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
24986 * doc/invoke.texi (-march): Clarify documentation for AArch64.
24987 (-mtune): Likewise.
24990 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
24992 * config/aarch64/aarch64-protos.h
24993 (aarch64_cannot_change_mode_class_ptr): Declare.
24994 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
24995 aarch64_cannot_change_mode_class_ptr): New.
24996 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
24997 backend hook aarch64_cannot_change_mode_class.
24999 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25001 * common/config/aarch64/aarch64-common.c
25002 (aarch64_handle_option): Don't handle any option order logic here.
25003 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25004 selected_cpu, warn on architecture version mismatch.
25005 (aarch64_override_options): Fix parsing order for option strings.
25007 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25008 Iain Sandoe <iain@codesourcery.com>
25011 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25012 warning. Amend comment to reflect current functionality.
25014 2014-01-20 Richard Biener <rguenther@suse.de>
25016 PR middle-end/59860
25017 * builtins.c (fold_builtin_strcat): Remove case better handled
25018 by tree-ssa-strlen.c.
25020 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25022 * config/aarch64/aarch64.opt
25023 (mcpu, march, mtune): Make case-insensitive.
25025 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25028 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25029 if operands[1] is a REG or ZERO_EXTEND of a REG.
25031 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25033 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25035 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25037 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25038 long non-pic millicode calls.
25040 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25042 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25044 2014-01-19 Kito Cheng <kito@0xlab.org>
25046 * builtins.c (expand_movstr): Check movstr expand done or fail.
25048 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25049 H.J. Lu <hongjiu.lu@intel.com>
25052 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25053 to DImode for zero-extended addresses.
25055 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25057 PR rtl-optimization/57763
25058 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25059 on the new indirect jump_insn and increment LABEL_NUSES (label).
25061 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25065 * config.gcc (x86_archs): New variable.
25066 (x86_64_archs): Likewise.
25067 (x86_cpus): Likewise.
25068 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25069 --with-arch/--with-cpu= options.
25070 Support --with-arch=/--with-cpu={nehalem,westmere,
25071 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25073 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25075 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25076 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25078 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25080 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25082 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25085 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25086 clear cpp_get_options (parse_in)->warn_unused_macros for
25087 ix86_target_macros_internal with cpp_define.
25089 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25091 * jump.c (delete_related_insns): Keep (use (insn))s.
25092 * reorg.c (redundant_insn): Check for barriers too.
25094 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25096 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25098 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25100 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25101 call to $$dyncall when TARGET_LONG_CALLS is true.
25103 2014-01-17 Jeff Law <law@redhat.com>
25105 * ree.c (combine_set_extension): Temporarily disable test for
25106 changing number of hard registers.
25108 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25110 PR middle-end/58125
25111 * ipa-inline-analysis.c (inline_free_summary):
25112 Do not free summary of aliases.
25114 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25116 PR middle-end/59706
25117 * gimplify.c (gimplify_expr): Use create_tmp_var
25118 instead of create_tmp_var_raw. If cond doesn't have
25119 integral type, don't add the IFN_ANNOTATE builtin at all.
25121 2014-01-17 Martin Jambor <mjambor@suse.cz>
25124 * ipa-cp.c (prev_edge_clone): New variable.
25125 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25126 Also resize prev_edge_clone vector.
25127 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25128 (ipcp_edge_removal_hook): New function.
25129 (ipcp_driver): Register ipcp_edge_removal_hook.
25131 2014-01-17 Andrew Pinski <apinski@cavium.com>
25132 Steve Ellcey <sellcey@mips.com>
25135 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25138 2014-01-17 Jeff Law <law@redhat.com>
25140 PR middle-end/57904
25141 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25142 so that pass_ccp runs first.
25144 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25146 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25147 (ix86_adjust_cost): Use !TARGET_XXX.
25148 (do_reorder_for_imul): Likewise.
25149 (swap_top_of_ready_list): Likewise.
25150 (ix86_sched_reorder): Likewise.
25152 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25154 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25155 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25156 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25157 (intel_memset): New. Duplicate slm_memset.
25158 (intel_cost): New. Duplicate slm_cost.
25159 (m_INTEL): New macro.
25160 (processor_target_table): Add "intel".
25161 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25162 with PROCESSOR_INTEL for "intel".
25163 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25164 PROCESSOR_SILVERMONT.
25165 (ix86_issue_rate): Likewise.
25166 (ix86_adjust_cost): Likewise.
25167 (ia32_multipass_dfa_lookahead): Likewise.
25168 (swap_top_of_ready_list): Likewise.
25169 (ix86_sched_reorder): Likewise.
25170 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25171 instead of TARGET_OPT_AGU.
25172 * config/i386/i386.h (TARGET_INTEL): New.
25173 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25174 (processor_type): Add PROCESSOR_INTEL.
25175 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25176 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25178 2014-01-17 Marek Polacek <polacek@redhat.com>
25181 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25184 2014-01-17 Richard Biener <rguenther@suse.de>
25186 PR tree-optimization/46590
25187 * opts.c (default_options_table): Add entries for
25188 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25189 all enabled at -O1 but not for -Og.
25190 * common.opt (fbranch-count-reg): Remove Init(1).
25191 (fmove-loop-invariants): Likewise.
25192 (ftree-pta): Likewise.
25194 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25196 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25197 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25198 decls to at least the GCC 4.8 used alignments.
25201 * tree-nested.c (convert_nonlocal_reference_stmt,
25202 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25203 of GIMPLE_BIND stmts, adjust associated decls.
25205 2014-01-17 Richard Biener <rguenther@suse.de>
25207 PR tree-optimization/46590
25208 * vec.h (vec<>::bseach): New member function implementing
25209 binary search according to C89 bsearch.
25210 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25211 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25212 bitmap pointer again. Make accesses_in_loop a flat array.
25213 (mem_ref_obstack): New global.
25214 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25215 (mark_ref_stored): Likewise.
25216 (ref_indep_loop_p_2): Likewise.
25217 (set_ref_stored_in_loop): New helper function.
25218 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25219 (memref_free): Adjust.
25220 (record_mem_ref_loc): Simplify.
25221 (gather_mem_refs_stmt): Adjust.
25222 (sort_locs_in_loop_postorder_cmp): New function.
25223 (analyze_memory_references): Sort accesses_in_loop after
25224 loop postorder number.
25225 (find_ref_loc_in_loop_cmp): New function.
25226 (for_all_locs_in_loop): Find relevant cluster of locs in
25227 accesses_in_loop and iterate without recursion.
25228 (execute_sm): Avoid uninit warning.
25229 (struct ref_always_accessed): Simplify.
25230 (ref_always_accessed::operator ()): Likewise.
25231 (ref_always_accessed_p): Likewise.
25232 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25233 loop postorder numbers here.
25234 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25237 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25240 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25241 on decls for which assemble_alias has been called.
25243 2014-01-17 Nick Clifton <nickc@redhat.com>
25245 * config/msp430/msp430.opt: (mcpu): New option.
25246 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25247 (msp430_option_override): Parse target_cpu. If the MCU name
25248 matches a generic string, clear target_mcu.
25249 (msp430_attr): Allow numeric interrupt values up to 63.
25250 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25251 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25253 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25255 * config/msp430/msp430.md (popm): Use %J rather than %I.
25256 (addsi3): Use msp430_nonimmediate_operand for operand 2.
25257 (addhi_cy_i): Use immediate_operand for operand 2.
25258 * doc/invoke.texi: Document -mcpu option.
25260 2014-01-17 Richard Biener <rguenther@suse.de>
25262 PR rtl-optimization/38518
25263 * df.h (df_analyze_loop): Declare.
25264 * df-core.c: Include cfgloop.h.
25265 (df_analyze_1): Split out main part of df_analyze.
25266 (df_analyze): Adjust.
25267 (loop_inverted_post_order_compute): New function.
25268 (loop_post_order_compute): Likewise.
25269 (df_analyze_loop): New function avoiding whole-function
25270 postorder computes.
25271 * loop-invariant.c (find_defs): Use df_analyze_loop.
25272 (find_invariants): Adjust.
25273 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
25275 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
25277 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
25278 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
25280 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25282 * ipa-ref.c (ipa_remove_stmt_references): Fix references
25283 traversal when removing references.
25285 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
25288 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
25290 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
25292 PR middle-end/56791
25293 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
25294 pushing a reload for an autoinc when we had previously reloaded an
25295 inner part of the address.
25297 2014-01-16 Jakub Jelinek <jakub@redhat.com>
25299 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
25301 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
25302 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
25303 when not giving up or versioning for alias only because of
25305 (vect_analyze_data_ref_dependences): Set to true.
25306 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
25308 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
25309 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
25312 PR middle-end/58344
25313 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
25316 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
25317 operand 0 predicate for gathers, use a new pseudo as subtarget.
25319 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25321 PR middle-end/59609
25322 * lra-constraints.c (process_alt_operands): Add printing debug info.
25323 Check absence of input/output reloads for matched operands too.
25325 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25327 PR rtl-optimization/59835
25328 * ira.c (ira_init_register_move_cost): Increase cost for
25331 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
25333 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
25335 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
25338 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
25339 non-register objects. Use gen_(high/low)part more consistently.
25342 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
25345 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
25346 endian support, remove tests for WORDS_BIG_ENDIAN.
25347 (p8_mfvsrd_3_<mode>): Likewise.
25348 (reload_gpr_from_vsx<mode>): Likewise.
25349 (reload_gpr_from_vsxsf): Likewise.
25350 (p8_mfvsrd_4_disf): Likewise.
25352 2014-01-16 Richard Biener <rguenther@suse.de>
25354 PR rtl-optimization/46590
25355 * lcm.c (compute_antinout_edge): Use postorder iteration.
25356 (compute_laterin): Use inverted postorder iteration.
25358 2014-01-16 Nick Clifton <nickc@redhat.com>
25360 PR middle-end/28865
25361 * varasm.c (output_constant): Return the number of bytes actually
25363 (output_constructor_array_range): Update the field size with the
25364 number of bytes emitted by output_constant.
25365 (output_constructor_regular_field): Likewise. Also do not
25366 complain if the total number of bytes emitted is now greater
25367 than the expected fieldpos.
25368 * output.h (output_constant): Update prototype and descriptive comment.
25370 2014-01-16 Marek Polacek <polacek@redhat.com>
25372 PR middle-end/59827
25373 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
25374 it is error_mark_node.
25376 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
25378 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
25379 VALID_AVX256_REG_OR_OI_MODE.
25381 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
25383 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
25384 current procedure should be profiled.
25386 2014-01-15 Andrew Pinski <apinski@cavium.com>
25388 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
25389 of moving from/to the STACK_REG register class.
25391 2014-01-15 Richard Henderson <rth@redhat.com>
25394 * reginfo.c (global_regs_decl): Globalize.
25395 * rtl.h (global_regs_decl): Declare.
25396 * ira.c (do_reload): Diagnose frame_pointer_needed and it
25397 reserved via global_regs.
25399 2014-01-15 Teresa Johnson <tejohnson@google.com>
25401 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
25403 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
25405 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
25406 and vmulosh rather than call gen_vec_widen_smult_*.
25407 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
25408 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
25409 (vec_widen_smult_even_v16qi): Likewise.
25410 (vec_widen_umult_even_v8hi): Likewise.
25411 (vec_widen_smult_even_v8hi): Likewise.
25412 (vec_widen_umult_odd_v16qi): Likewise.
25413 (vec_widen_smult_odd_v16qi): Likewise.
25414 (vec_widen_umult_odd_v8hi): Likewise.
25415 (vec_widen_smult_odd_v8hi): Likewise.
25416 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
25417 vmuloub rather than call gen_vec_widen_umult_*.
25418 (vec_widen_umult_lo_v16qi): Likewise.
25419 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
25420 vmulosb rather than call gen_vec_widen_smult_*.
25421 (vec_widen_smult_lo_v16qi): Likewise.
25422 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
25423 rather than call gen_vec_widen_umult_*.
25424 (vec_widen_umult_lo_v8hi): Likewise.
25425 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
25426 rather than call gen_vec_widen_smult_*.
25427 (vec_widen_smult_lo_v8hi): Likewise.
25429 2014-01-15 Jeff Law <law@redhat.com>
25431 PR tree-optimization/59747
25432 * ree.c (find_and_remove_re): Properly handle case where a second
25433 eliminated extension requires widening a copy created for elimination
25434 of a prior extension.
25435 (combine_set_extension): Ensure that the number of hard regs needed
25436 for a destination register does not change when we widen it.
25438 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
25440 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
25441 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
25442 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
25443 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
25444 (avr-*-rtems*): Likewise.
25445 (bfin*-rtems*): Likewise.
25446 (moxie-*-rtems*): Likewise.
25447 (h8300-*-rtems*): Likewise.
25448 (i[34567]86-*-rtems*): Likewise.
25449 (lm32-*-rtems*): Likewise.
25450 (m32r-*-rtems*): Likewise.
25451 (m68k-*-rtems*): Likewise.
25452 (microblaze*-*-rtems*): Likewise.
25453 (mips*-*-rtems*): Likewise.
25454 (powerpc-*-rtems*): Likewise.
25455 (sh-*-rtems*): Likewise.
25456 (sparc-*-rtems*): Likewise.
25457 (sparc64-*-rtems*): Likewise.
25458 (v850-*-rtems*): Likewise.
25459 (m32c-*-rtems*): Likewise.
25461 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
25463 PR rtl-optimization/59511
25464 * ira.c (ira_init_register_move_cost): Use memory costs for some
25465 cases of register move cost calculations.
25466 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
25467 instead of BB frequency.
25468 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
25469 * lra-assigns.c (find_hard_regno_for): Ditto.
25471 2014-01-15 Richard Biener <rguenther@suse.de>
25473 PR tree-optimization/59822
25474 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
25475 (vectorizable_load): Use it to hoist defs of uses of invariant
25476 loads out of the loop.
25478 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
25479 Kugan Vivekanandarajah <kuganv@linaro.org>
25482 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
25485 2014-01-15 Richard Biener <rguenther@suse.de>
25487 PR rtl-optimization/59802
25488 * lcm.c (compute_available): Use inverted postorder to seed
25489 the initial worklist.
25491 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25494 * config/s390/s390.c (s390_preferred_reload_class): Don't return
25495 ADDR_REGS for invalid symrefs in non-PIC code.
25497 2014-01-15 Jakub Jelinek <jakub@redhat.com>
25500 * builtins.c (determine_block_size): Initialize *probable_max_size
25501 even if len_rtx is CONST_INT.
25503 2014-01-14 Andrew Pinski <apinski@cavium.com>
25505 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
25506 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
25507 (cortexa53_tunings): Likewise.
25508 (aarch64_sched_issue_rate): New function.
25509 (TARGET_SCHED_ISSUE_RATE): Define.
25511 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25513 * ira-costs.c (find_costs_and_classes): Add missed
25514 ira_init_register_move_cost_if_necessary.
25516 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25519 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
25521 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
25524 * config/i386/i386.c (type_natural_mode): Add a bool parameter
25525 to indicate if type is used for function return value. Warn ABI
25526 change if the vector mode isn't available for function return value.
25527 (ix86_function_arg_advance): Pass false to type_natural_mode.
25528 (ix86_function_arg): Likewise.
25529 (ix86_gimplify_va_arg): Likewise.
25530 (function_arg_32): Don't warn ABI change.
25531 (ix86_function_value): Pass true to type_natural_mode.
25532 (ix86_return_in_memory): Likewise.
25533 (ix86_struct_value_rtx): Removed.
25534 (TARGET_STRUCT_VALUE_RTX): Likewise.
25536 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25538 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
25539 converting a conditional jump into a conditional return.
25541 2014-01-14 Richard Biener <rguenther@suse.de>
25543 PR tree-optimization/58921
25544 PR tree-optimization/59006
25545 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
25546 hoisting invariant stmts.
25547 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
25548 invariant loads on the preheader edge if possible.
25550 2014-01-14 Joey Ye <joey.ye@arm.com>
25552 * doc/plugin.texi (Building GCC plugins): Update to C++.
25554 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
25556 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
25557 (_mm_rcp28_round_ss): Ditto.
25558 (_mm_rsqrt28_round_sd): Ditto.
25559 (_mm_rsqrt28_round_ss): Ditto.
25560 (_mm_rcp28_sd): Ditto.
25561 (_mm_rcp28_ss): Ditto.
25562 (_mm_rsqrt28_sd): Ditto.
25563 (_mm_rsqrt28_ss): Ditto.
25564 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
25565 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
25566 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
25567 (IX86_BUILTIN_RCP28SD): Ditto.
25568 (IX86_BUILTIN_RCP28SS): Ditto.
25569 (IX86_BUILTIN_RSQRT28SD): Ditto.
25570 (IX86_BUILTIN_RSQRT28SS): Ditto.
25571 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
25572 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
25573 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
25574 (ix86_expand_special_args_builtin): Expand new FTYPE.
25575 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
25576 (srcp14<mode>): Make insn unary.
25577 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
25578 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
25579 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
25580 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
25581 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
25582 Fix rounding: make it SAE only.
25583 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
25585 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
25587 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
25588 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
25589 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
25590 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
25591 (round_saeonly_mask_scalar_operand4): Ditto.
25592 (round_saeonly_mask_scalar_op3): Ditto.
25593 (round_saeonly_mask_scalar_op4): Ditto.
25595 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25597 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25598 Implement -maltivec=be for vec_insert and vec_extract.
25600 2014-01-10 DJ Delorie <dj@redhat.com>
25602 * config/msp430/msp430.md (call_internal): Don't allow memory
25603 references with SP as the base register.
25604 (call_value_internal): Likewise.
25605 * config/msp430/constraints.md (Yc): New. For memory references
25606 that don't use SP as a base register.
25608 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
25609 "an integer without a # prefix"
25610 * config/msp430/msp430.md (epilogue_helper): Use it.
25612 2014-01-13 Jakub Jelinek <jakub@redhat.com>
25615 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
25616 AVX512F gather builtins.
25617 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
25618 on gather decls with INTEGER_TYPE masktype.
25619 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
25620 directly into the builtin rather than hoisting it before loop.
25622 PR tree-optimization/59387
25623 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
25624 (scev_const_prop): If folded_casts and type has undefined overflow,
25625 use force_gimple_operand instead of force_gimple_operand_gsi and
25626 for each added stmt if it is assign with
25627 arith_code_with_undefined_signed_overflow, call
25628 rewrite_to_defined_overflow.
25629 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
25630 gimple-fold.h instead.
25631 (arith_code_with_undefined_signed_overflow,
25632 rewrite_to_defined_overflow): Moved to ...
25633 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
25634 rewrite_to_defined_overflow): ... here. No longer static.
25635 Include gimplify-me.h.
25636 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
25637 rewrite_to_defined_overflow): New prototypes.
25639 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25641 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
25643 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
25645 * builtins.c (get_object_alignment_2): Minor tweak.
25646 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
25648 2014-01-13 Christian Bruel <christian.bruel@st.com>
25650 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
25651 optimized non constant lengths.
25653 2014-01-13 Jakub Jelinek <jakub@redhat.com>
25656 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
25657 load as __atomic_load_N if possible.
25659 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
25661 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
25663 (rs6000_expand_builtin): Adjust call.
25665 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
25668 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
25669 * config/rs6000/rs6000.c: Include target-globals.h.
25670 (rs6000_set_current_function): Instead of doing target_reinit
25671 unconditionally, use save_target_globals_default_opts and
25672 restore_target_globals.
25674 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
25676 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
25677 (rs6000_expand_builtin): Handle mffs and mtfsf.
25678 (rs6000_init_builtins): Define mffs and mtfsf.
25679 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
25680 (rs6000_mffs): New pattern.
25681 (rs6000_mtfsf): New pattern.
25683 2014-01-11 Bin Cheng <bin.cheng@arm.com>
25685 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
25686 Start narrowing with START. Apply candidate-use pair
25687 and check overall cost in narrowing.
25688 (iv_ca_prune): Pass new argument.
25690 2014-01-10 Jeff Law <law@redhat.com>
25692 PR middle-end/59743
25693 * ree.c (combine_reaching_defs): Ensure the defining statement
25694 occurs before the extension when optimizing extensions with
25695 different source and destination hard registers.
25697 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
25700 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
25701 vtables into the type inheritance graph.
25703 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25705 PR rtl-optimization/59754
25706 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
25707 modes in the REGNO != REGNO case.
25709 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25711 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
25713 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25715 PR tree-optimization/59745
25716 * tree-predcom.c (tree_predictive_commoning_loop): Call
25717 free_affine_expand_cache if giving up because components is NULL.
25719 * target-globals.c (save_target_globals): Allocate < 4KB structs using
25720 GC in payload of target_globals struct instead of allocating them on
25721 the heap and the larger structs separately using GC.
25722 * target-globals.h (struct target_globals): Make regs, hard_regs,
25723 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
25724 of GTY((skip)) and change type to void *.
25725 (reset_target_globals): Cast loads from those fields to corresponding
25728 2014-01-10 Steve Ellcey <sellcey@mips.com>
25731 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
25732 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
25733 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
25735 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
25738 * aarch64-modes.def (CC_Zmode): New flags mode.
25739 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
25740 represents an equality.
25741 (aarch64_get_condition_code): Handle CC_Zmode.
25742 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
25744 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25746 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
25747 extraction in good case.
25749 2014-01-10 Richard Biener <rguenther@suse.de>
25751 PR tree-optimization/59374
25752 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
25753 checking after SLP discovery. Mark stmts not participating
25754 in any SLP instance properly.
25756 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25758 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
25759 when handling a SET rtx.
25761 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25763 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
25764 (cortex-a57): Likewise.
25765 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
25767 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25769 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
25770 non-iwmmxt builtins.
25772 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
25776 * ipa-devirt.c record_target_from_binfo): Take as argument
25777 stack of binfos and lookup matching one for virtual inheritance.
25778 (possible_polymorphic_call_targets_1): Update.
25780 2014-01-10 Huacai Chen <chenhc@lemote.com>
25782 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
25783 kernel strings for Loongson-2E/2F/3A.
25785 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25787 PR middle-end/59670
25788 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
25789 is_gimple_call before calling gimple_call_internal_p.
25791 2014-01-09 Steve Ellcey <sellcey@mips.com>
25793 * Makefile.in (TREE_FLOW_H): Remove.
25794 (TREE_SSA_H): Add file names from tree-flow.h.
25795 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
25796 * tree.h: Remove tree-flow.h reference.
25797 * hash-table.h: Remove tree-flow.h reference.
25798 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
25799 reference with tree-ssa-loop.h.
25801 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25803 * doc/invoke.texi: Add -maltivec={be,le} options, and document
25804 default element-order behavior for -maltivec.
25805 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
25806 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
25807 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
25808 when targeting big endian, at least for now.
25809 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
25811 2014-01-09 Jakub Jelinek <jakub@redhat.com>
25813 PR middle-end/47735
25814 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
25815 var satisfies use_register_for_decl, just take into account type
25816 alignment, rather than decl alignment.
25818 PR tree-optimization/59622
25819 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
25820 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
25821 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
25822 Don't devirtualize for inplace at all. For targets.length () == 1,
25823 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
25825 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
25827 * config/i386/i386.md (cpu): Remove the unused btver1.
25829 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
25831 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
25833 2014-01-09 Jakub Jelinek <jakub@redhat.com>
25836 * tree-core.h (struct target_globals): New forward declaration.
25837 (struct tree_target_option): Add globals field.
25838 * tree.h (TREE_TARGET_GLOBALS): Define.
25839 (prepare_target_option_nodes_for_pch): New prototype.
25840 * target-globals.h (struct target_globals): Define even if
25841 !SWITCHABLE_TARGET.
25842 * tree.c (prepare_target_option_node_for_pch,
25843 prepare_target_option_nodes_for_pch): New functions.
25844 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
25845 * config/i386/i386.c: Include target-globals.h.
25846 (ix86_set_current_function): Instead of doing target_reinit
25847 unconditionally, use save_target_globals_default_opts and
25848 restore_target_globals.
25850 2014-01-09 Richard Biener <rguenther@suse.de>
25852 PR tree-optimization/59715
25853 * tree-cfg.h (split_critical_edges): Declare.
25854 * tree-cfg.c (split_critical_edges): Export.
25855 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
25857 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
25859 * cfgexpand.c (expand_stack_vars): Optionally disable
25860 asan stack protection.
25861 (expand_used_vars): Likewise.
25862 (partition_stack_vars): Likewise.
25863 * asan.c (asan_emit_stack_protection): Optionally disable
25864 after return stack usage.
25865 (instrument_derefs): Optionally disable memory access instrumentation.
25866 (instrument_builtin_call): Likewise.
25867 (instrument_strlen_call): Likewise.
25868 (asan_protect_global): Optionally disable global variables protection.
25869 * doc/invoke.texi: Added doc for new options.
25870 * params.def: Added new options.
25871 * params.h: Likewise.
25873 2014-01-09 Jakub Jelinek <jakub@redhat.com>
25875 PR rtl-optimization/59724
25876 * ifcvt.c (cond_exec_process_if_block): Don't call
25877 flow_find_head_matching_sequence with 0 longest_match.
25878 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
25879 non-active insns if !stop_after.
25880 (try_head_merge_bb): Revert 2014-01-07 changes.
25882 2014-01-08 Jeff Law <law@redhat.com>
25884 * ree.c (get_sub_rtx): New function, extracted from...
25885 (merge_def_and_ext): Here.
25886 (combine_reaching_defs): Use get_sub_rtx.
25888 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
25890 * cgraph.h (varpool_variable_node): Do not choke on null node.
25892 2014-01-08 Catherine Moore <clm@codesourcery.com>
25894 * config/mips/mips.md (simple_return): Attempt to use JRC
25896 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
25898 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
25900 PR rtl-optimization/59137
25901 * reorg.c (steal_delay_list_from_target): Call update_block for
25903 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
25905 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25907 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
25908 two duplicate entries.
25910 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
25913 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
25915 * config/mips/mips.c (mips_truncated_op_cost): New function.
25916 (mips_rtx_costs): Adjust test for BADDU.
25917 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
25919 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
25921 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
25922 (*baddu_si): ...this new pattern.
25924 2014-01-08 Jakub Jelinek <jakub@redhat.com>
25927 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
25929 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
25931 PR middle-end/57748
25932 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
25934 (expand_expr, expand_normal): Adjust.
25935 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
25936 inner_reference_p. Use inner_reference_p to expand inner references.
25937 (store_expr): Adjust.
25938 * cfgexpand.c (expand_call_stmt): Adjust.
25940 2014-01-08 Rong Xu <xur@google.com>
25942 * gcov-io.c (gcov_var): Move from gcov-io.h.
25943 (gcov_position): Ditto.
25944 (gcov_is_error): Ditto.
25945 (gcov_rewrite): Ditto.
25946 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
25947 only part to libgcc/libgcov.h.
25949 2014-01-08 Marek Polacek <polacek@redhat.com>
25951 PR middle-end/59669
25952 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
25954 2014-01-08 Marek Polacek <polacek@redhat.com>
25957 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
25959 2014-01-08 Jakub Jelinek <jakub@redhat.com>
25961 PR rtl-optimization/59649
25962 * stor-layout.c (get_mode_bounds): For BImode return
25963 0 and STORE_FLAG_VALUE.
25965 2014-01-08 Richard Biener <rguenther@suse.de>
25967 PR middle-end/59630
25968 * gimple.h (is_gimple_builtin_call): Remove.
25969 (gimple_builtin_call_types_compatible_p): New.
25970 (gimple_call_builtin_p): New overload.
25971 * gimple.c (is_gimple_builtin_call): Remove.
25972 (validate_call): Rename to ...
25973 (gimple_builtin_call_types_compatible_p): ... this and export. Also
25974 check return types.
25975 (validate_type): New static function.
25976 (gimple_call_builtin_p): New overload and adjust.
25977 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
25978 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
25979 (gimple_fold_stmt_to_constant_1): Likewise.
25980 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
25982 2014-01-08 Richard Biener <rguenther@suse.de>
25984 PR middle-end/59471
25985 * gimplify.c (gimplify_expr): Gimplify register-register type
25986 VIEW_CONVERT_EXPRs to separate stmts.
25988 2014-01-07 Jeff Law <law@redhat.com>
25990 PR middle-end/53623
25991 * ree.c (combine_set_extension): Handle case where source
25992 and destination registers in an extension insn are different.
25993 (combine_reaching_defs): Allow source and destination registers
25994 in extension to be different under limited circumstances.
25995 (add_removable_extension): Remove restriction that the
25996 source and destination registers in the extension are the same.
25997 (find_and_remove_re): Emit a copy from the extension's
25998 destination to its source after the defining insn if
25999 the source and destination registers are different.
26001 PR middle-end/59285
26002 * ifcvt.c (merge_if_block): If we are merging a block with more than
26003 one successor with a block with no successors, remove any BARRIER
26004 after the second block.
26006 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26008 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26010 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26013 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26014 for 14-bit register offsets when INT14_OK_STRICT is false.
26016 2014-01-07 Roland Stigge <stigge@antcom.de>
26017 Michael Meissner <meissner@linux.vnet.ibm.com>
26020 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26021 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26023 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26025 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26028 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26030 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26031 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26032 rtx is const0_rtx or not.
26034 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26037 * target-globals.c (save_target_globals): Remove this_fn_optab
26039 * toplev.c: Include optabs.h.
26040 (target_reinit): Temporarily restore the global options if another
26041 set of options are in force.
26043 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26045 PR rtl-optimization/58668
26046 * cfgcleanup.c (flow_find_cross_jump): Don't count
26047 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26048 to determine what is counted.
26049 (flow_find_head_matching_sequence): Use active_insn_p to determine
26051 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26053 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26054 determine what is counted.
26056 PR tree-optimization/59643
26057 * tree-predcom.c (split_data_refs_to_components): If one dr is
26058 read and one write, determine_offset fails and the write isn't
26059 in the bad component, just put the read into the bad component.
26061 2014-01-07 Mike Stump <mikestump@comcast.net>
26062 Jakub Jelinek <jakub@redhat.com>
26065 * tree-core.h (struct tree_optimization_option): Change optabs
26066 type from unsigned char * to void *.
26067 * optabs.c (init_tree_optimization_optabs): Adjust
26068 TREE_OPTIMIZATION_OPTABS initialization.
26070 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26073 * config/i386/i386.h (struct machine_function): Add
26074 no_drap_save_restore field.
26075 * config/i386/i386.c (ix86_save_reg): Use
26076 !cfun->machine->no_drap_save_restore instead of
26077 crtl->stack_realign_needed.
26078 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26079 this function clears frame_pointer_needed. Set
26080 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26081 and DRAP reg is needed.
26083 2014-01-06 Marek Polacek <polacek@redhat.com>
26086 * doc/implement-c.texi: Mention that other integer types are
26087 permitted as bit-field types in strictly conforming mode.
26089 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26091 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26092 is newly allocated.
26094 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26096 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26098 2014-01-06 Martin Jambor <mjambor@suse.cz>
26101 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26103 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26105 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26109 * var-tracking.c (add_stores): Preserve the value of the source even if
26110 we don't record the store.
26112 2014-01-06 Terry Guo <terry.guo@arm.com>
26114 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26116 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26119 * config/darwin.c (darwin_function_section): Adjust return values to
26120 correspond to optimisation changes made in r206070.
26122 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26124 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26125 from prefetch_block tune setting.
26126 (nocona_cost): Correct size of prefetch block to 64.
26128 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26130 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26131 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26132 used to save the static chain register in the computation of the offset
26133 from which the FP registers need to be restored.
26135 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26137 PR tree-optimization/59519
26138 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26139 ICE if get_current_def (current_new_name) is already non-NULL, as long
26140 as it is a phi result of some other phi in *new_exit_bb that has
26143 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26144 or vmovdqu* for misaligned_operand.
26145 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26146 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26147 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26148 aligned_mem for AVX512F masked aligned load and store builtins and for
26149 non-temporal moves.
26151 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26153 PR tree-optimization/59651
26154 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26155 Address range for negative step should be added by TYPE_SIZE_UNIT.
26157 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26159 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26160 overlapping registers also for registers other than the stack pointer.
26162 2014-01-03 Marek Polacek <polacek@redhat.com>
26165 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26168 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26171 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26174 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26175 (push splitter): Use <P:MODE_SIZE> instead of
26176 GET_MODE_SIZE (<P:MODE>mode).
26177 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26178 (mov -1, reg peephole2): Likewise.
26179 * config/i386/sse.md (*mov<mode>_internal,
26180 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26181 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26182 *<code><mode>3, *andnot<mode>3<mask_name>,
26183 <mask_codefor><code><mode>3<mask_name>): Likewise.
26184 * config/i386/subst.md (mask_mode512bit_condition,
26185 sd_mask_mode512bit_condition): Likewise.
26187 2014-01-02 Xinliang David Li <davidxl@google.com>
26189 PR tree-optimization/59303
26190 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26191 (dump_predicates): Better output format.
26192 (pred_equal_p): New function.
26193 (is_neq_relop_p): Ditto.
26194 (is_neq_zero_form_p): Ditto.
26195 (pred_expr_equal_p): Ditto.
26196 (pred_neg_p): Ditto.
26197 (simplify_pred): Ditto.
26198 (simplify_preds_2): Ditto.
26199 (simplify_preds_3): Ditto.
26200 (simplify_preds_4): Ditto.
26201 (simplify_preds): Ditto.
26202 (push_pred): Ditto.
26203 (push_to_worklist): Ditto.
26204 (get_pred_info_from_cmp): Ditto.
26205 (is_degenerated_phi): Ditto.
26206 (normalize_one_pred_1): Ditto.
26207 (normalize_one_pred): Ditto.
26208 (normalize_one_pred_chain): Ditto.
26209 (normalize_preds): Ditto.
26210 (normalize_cond_1): Remove function.
26211 (normalize_cond): Ditto.
26212 (is_gcond_subset_of): Ditto.
26213 (is_subset_of_any): Ditto.
26214 (is_or_set_subset_of): Ditto.
26215 (is_and_set_subset_of): Ditto.
26216 (is_norm_cond_subset_of): Ditto.
26217 (pred_chain_length_cmp): Ditto.
26218 (convert_control_dep_chain_into_preds): Type change.
26219 (find_predicates): Ditto.
26220 (find_def_preds): Ditto.
26221 (destroy_predicates_vecs): Ditto.
26222 (find_matching_predicates_in_rest_chains): Ditto.
26223 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26224 (is_pred_expr_subset): Ditto.
26225 (is_pred_chain_subset_of): Ditto.
26226 (is_included_in): Ditto.
26227 (is_superset_of): Ditto.
26229 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26231 Update copyright years.
26233 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26235 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26236 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26237 config/arc/arc.md, config/arc/arc.opt,
26238 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26239 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26240 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26241 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26242 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26243 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26244 vtable-verify.c, vtable-verify.h: Use the standard form for the
26247 2014-01-02 Tobias Burnus <burnus@net-b.de>
26249 * gcc.c (process_command): Update copyright notice dates.
26250 * gcov-dump.c: Ditto.
26252 * doc/cpp.texi: Bump @copying's copyright year.
26253 * doc/cppinternals.texi: Ditto.
26254 * doc/gcc.texi: Ditto.
26255 * doc/gccint.texi: Ditto.
26256 * doc/gcov.texi: Ditto.
26257 * doc/install.texi: Ditto.
26258 * doc/invoke.texi: Ditto.
26260 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26262 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26264 2014-01-01 Jakub Jelinek <jakub@redhat.com>
26266 * config/i386/sse.md (*mov<mode>_internal): Guard
26267 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26269 PR rtl-optimization/59647
26270 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26271 new_rtx into UNSIGNED_FLOAT rtxes.
26273 Copyright (C) 2014 Free Software Foundation, Inc.
26275 Copying and distribution of this file, with or without modification,
26276 are permitted in any medium without royalty provided the copyright
26277 notice and this notice are preserved.