1 2014-08-27 Guozhi Wei <carrot@google.com>
4 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
5 amount before using it.
7 2014-08-27 Richard Biener <rguenther@suse.de>
9 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
10 get_maxval_strlen inside a more useful API.
11 (gimple_fold_builtin_with_strlen): Remove and fold into ...
12 (gimple_fold_builtin): ... caller.
13 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
14 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
15 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
16 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
17 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
18 gimple_fold_builtin_sprintf): Adjust to compute maxval
21 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
24 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
26 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
27 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
28 Anna Tikhonova <anna.tikhonova@intel.com>
29 Ilya Tocar <ilya.tocar@intel.com>
30 Andrey Turetskiy <andrey.turetskiy@intel.com>
31 Ilya Verbin <ilya.verbin@intel.com>
32 Kirill Yukhin <kirill.yukhin@intel.com>
33 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
36 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
37 Use `concat_tg_mode' attribute to determine asm register size.
39 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
40 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
41 Anna Tikhonova <anna.tikhonova@intel.com>
42 Ilya Tocar <ilya.tocar@intel.com>
43 Andrey Turetskiy <andrey.turetskiy@intel.com>
44 Ilya Verbin <ilya.verbin@intel.com>
45 Kirill Yukhin <kirill.yukhin@intel.com>
46 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
49 (define_mode_iterator VI48_AVX512VL): New.
50 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
51 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
52 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
53 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
54 with VI1): Change mode iterator.
55 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
56 with VI_ULOADSTORE_BW_AVX512VL): New.
57 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
58 with VI_ULOADSTORE_F_AVX512VL): Ditto.
59 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
60 with VI1): Change mode iterator.
61 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
62 with VI_ULOADSTORE_BW_AVX512VL): New.
63 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
64 with VI_ULOADSTORE_F_AVX512VL): Ditto.
65 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
66 with VI1): Change mode iterator.
67 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
68 with VI_ULOADSTORE_BW_AVX512VL): New.
69 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
70 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
71 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
72 (define_insn "<avx512>_storedqu<mode>_mask" with
74 (define_insn "<avx512>_storedqu<mode>_mask" with
75 VI12_AVX512VL): Ditto.
77 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
78 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
79 Anna Tikhonova <anna.tikhonova@intel.com>
80 Ilya Tocar <ilya.tocar@intel.com>
81 Andrey Turetskiy <andrey.turetskiy@intel.com>
82 Ilya Verbin <ilya.verbin@intel.com>
83 Kirill Yukhin <kirill.yukhin@intel.com>
84 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
87 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
88 (define_mode_iterator VI48_AVX512BW): New.
89 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
90 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
91 with VI48_AVX2_48_AVX512F): New.
92 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
93 with VI2_AVX512VL): Ditto.
95 2014-08-27 Richard Biener <rguenther@suse.de>
98 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
99 (fold_builtin_3): Do not fold strcat_chk here.
100 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
102 (gimple_fold_builtin): Fold strcat_chk here.
104 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
106 * dwarf2out.h (dwarf2out_decl): Remove prototype.
107 * dwarf2out.c (dwarf2out_decl): Make static.
109 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
111 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
113 2014-08-26 David Malcolm <dmalcolm@redhat.com>
115 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
116 from rtx to rtx_insn *.
117 (cselib_lookup_from_insn): Likewise for final param.
118 (cselib_subst_to_values_from_insn): Likewise.
119 (cselib_add_permanent_equiv): Likewise.
121 * cselib.c (cselib_current_insn): Likewise for this variable.
122 (cselib_subst_to_values_from_insn): Likewise for param "insn".
123 (cselib_lookup_from_insn): Likewise.
124 (cselib_add_permanent_equiv): Likewise for param "insn" and local
125 "save_cselib_current_insn".
126 (cselib_process_insn): Replace use of NULL_RTX with NULL.
128 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
129 from rtx to rtx_insn *.
131 2014-08-26 David Malcolm <dmalcolm@redhat.com>
133 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
136 2014-08-26 David Malcolm <dmalcolm@redhat.com>
138 * df.h (df_dump_insn_problem_function): Strengthen first param of
139 this callback from const_rtx to const rtx_insn *.
140 (struct df_insn_info): Strengthen field "insn" from rtx to
142 (DF_REF_INSN): Eliminate this function, reinstating the older
144 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
145 (df_reg_defined): Likewise.
146 (df_find_use): Likewise.
147 (df_reg_used): Likewise.
148 (df_dump_insn_top): Strengthen param 1 from const_rtx to
150 (df_dump_insn_bottom): Likewise.
151 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
152 (df_insn_debug_regno): Likewise.
153 (debug_df_insn): Likewise.
154 (df_rd_simulate_one_insn): Likewise for param 2.
155 (df_word_lr_simulate_defs): Likewise for param 1.
156 (df_word_lr_simulate_uses): Likewise.
157 (df_md_simulate_one_insn): Likewise for param 2.
158 (df_simulate_find_noclobber_defs): Likewise for param 1.
159 (df_simulate_find_defs): Likewise.
160 (df_simulate_defs): Likewise.
161 (df_simulate_uses): Likewise.
162 (df_simulate_one_insn_backwards): Likewise for param 2.
163 (df_simulate_one_insn_forwards): Likewise.
164 (df_uses_create): Likewise for param 2.
165 (df_insn_create_insn_record): Likewise for param 1.
166 (df_insn_delete): Likewise.
167 (df_insn_rescan): Likewise.
168 (df_insn_rescan_debug_internal): Likewise.
169 (df_insn_change_bb): Likewise.
170 (df_notes_rescan): Likewise.
171 * rtl.h (remove_death): Likewise for param 2.
172 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
174 * sched-int.h (reemit_notes): Strengthen param from rtx to
176 * valtrack.h (propagate_for_debug): Likewise for param 1.
178 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
179 local "tmp_rtx" from const_rtx to const rtx_insn *.
180 * combine.c (remove_death): Strengthen param "insn" from rtx to
182 (move_deaths): Likewise for local "where_dead".
183 * cse.c (delete_trivially_dead_insns): Introduce local
184 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
185 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
187 (df_reg_defined): Likewise.
188 (df_find_use): Likewise.
189 (df_reg_used): Likewise.
190 (df_dump_insn_problem_data): Strengthen param "insn" from
191 const_rtx to const rtx_insn *.
192 (df_dump_insn_top): Likewise.
193 (df_dump_insn_bottom): Likewise.
194 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
195 (df_insn_debug_regno): Likewise.
196 (debug_df_insn): Likewise.
197 (DF_REF_INSN): Delete.
198 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
199 from rtx to rtx_insn *.
200 (df_chain_insn_top_dump): Strengthen param "insn" from
201 const_rtx to const rtx_insn *.
202 (df_chain_insn_bottom_dump): Likewise.
203 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
205 (df_word_lr_simulate_uses): Likewise.
206 (df_print_note): Likewise.
207 (df_remove_dead_and_unused_notes): Likewise.
208 (df_set_unused_notes_for_mw): Likewise.
209 (df_set_dead_notes_for_mw): Likewise.
210 (df_create_unused_note): Likewise.
211 (df_simulate_find_defs): Likewise.
212 (df_simulate_find_uses): Likewise.
213 (df_simulate_find_noclobber_defs): Likewise.
214 (df_simulate_defs): Likewise.
215 (df_simulate_uses): Likewise.
216 (df_simulate_one_insn_backwards): Likewise.
217 (df_simulate_one_insn_forwards): Likewise.
218 (df_md_simulate_one_insn): Likewise.
219 * df-scan.c (df_uses_create): Likewise.
220 (df_insn_create_insn_record): Likewise.
221 (df_insn_delete): Likewise.
222 (df_insn_rescan): Likewise.
223 (df_insn_rescan_debug_internal): Likewise.
224 (df_insn_change_bb): Likewise.
225 (df_notes_rescan): Likewise.
226 (df_refs_add_to_chains): Likewise.
227 (df_insn_refs_verify): Likewise.
228 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
229 when invoking df_insn_delete.
230 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
231 (set_unique_reg_note): Add checked cast.
232 * final.c (cleanup_subreg_operands): Likewise.
233 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
234 "insn" from rtx to rtx_insn *.
235 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
236 "last" from rtx to rtx_insn *.
237 * ira-emit.c (change_regs_in_insn): New function.
238 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
239 Invoke change_regs_in_insn rather than change_regs.
240 * ira.c (update_equiv_regs): Strengthen locals "insn",
241 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
242 for_each_rtx_in_insn rather than for_each_rtx.
243 * recog.c (confirm_change_group): Add checked casts.
244 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
246 (peep2_fill_buffer): Add checked cast.
247 * rtlanal.c (remove_note): Likewise.
248 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
249 locals "next" "end" from rtx to rtx_insn *.
251 2014-08-26 David Malcolm <dmalcolm@redhat.com>
253 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
255 (struct reg_use_data): Likewise for field "insn".
256 (insn_cost): Likewise for param.
257 (real_insn_for_shadow): Likewise for return type and param.
258 (increase_insn_priority): Likewise for param 1.
259 (debug_dependencies): Likewise for both params.
261 * haifa-sched.c (insn_delay): Likewise for param "insn".
262 (real_insn_for_shadow): Likewise for return type and param "insn".
263 (update_insn_after_change): Likewise for param "insn".
264 (recompute_todo_spec): Likewise for param "next" and locals "pro",
266 (insn_cost): Likewise for param "insn".
267 (increase_insn_priority): Likewise.
268 (calculate_reg_deaths): Likewise.
269 (setup_insn_reg_pressure_info): Likewise.
270 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
271 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
272 (model_recompute): Likewise.
273 (must_restore_pattern_p): Likewise for param "next".
274 (model_excess_cost): Likewise for param "insn".
275 (queue_remove): Likewise.
276 (adjust_priority): Likewise for param "prev".
277 (update_register_pressure): Likewise for param "insn".
278 (setup_insn_max_reg_pressure): Likewise for local "insn".
279 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
280 (model_add_to_schedule): Likewise.
281 (model_reset_queue_indices): Likewise for local "insn".
282 (unschedule_insns_until): Strengthen local "recompute_vec" from
283 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
284 "con" from rtx to rtx_insn *.
285 (restore_last_backtrack_point): Likewise for both locals "x". Add
287 (estimate_insn_tick): Likewise for param "insn".
288 (commit_schedule): Likewise for params "prev_head", "tail" and
290 (verify_shadows): Likewise for locals "i1", "i2".
291 (dump_insn_stream): Likewise for params "head", "tail" and locals
293 (schedule_block): Likewise for locals "insn", "x". Add a checked
295 (fix_inter_tick): Likewise for params "head", "tail".
296 (create_check_block_twin): Likewise for local "jump".
297 (haifa_change_pattern): Likewise for param "insn".
298 (haifa_speculate_insn): Likewise.
299 (dump_new_block_header): Likewise for params "head", "tail".
300 (fix_jump_move): Likewise for param "jump".
301 (move_block_after_check): Likewise.
302 (sched_init_insn_luid): Likewise for param "insn".
303 (sched_init_luids): Likewise for local "insn".
304 (insn_luid): Likewise for param "insn".
305 (init_h_i_d): Likewise.
306 (haifa_init_h_i_d): Likewise for local "insn".
307 (haifa_init_insn): Likewise for param "insn".
308 * sched-deps.c (add_dependence): Likewise for local "real_pro",
310 (create_insn_reg_use): Likewise for param "insn".
311 (setup_insn_reg_uses): Likewise. Add a checked cast.
312 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
313 "tail" from rtx to rtx_insn *.
314 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
317 2014-08-26 David Malcolm <dmalcolm@redhat.com>
319 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
320 from rtx to rtx_insn *.
321 (model_add_to_schedule): Likewise for locals "start", "end",
324 2014-08-26 David Malcolm <dmalcolm@redhat.com>
326 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
328 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
329 "to" and locals "insn", "next", "copy". Remove now-redundant
332 2014-08-26 David Malcolm <dmalcolm@redhat.com>
334 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
335 rtx_insn * and param 4 from rtx * to rtx_insn **.
336 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
337 param 2 from rtx * to rtx_insn **.
339 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
340 rtx_insn * and final param from rtx * to rtx_insn **.
342 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
343 from rtx to rtx_insn *.
344 (try_head_merge_bb): Likewise for both locals named "move_upto".
345 * df-problems.c (can_move_insns_across): Likewise for params
346 "from", "to", "across_from", "across_to" and locals "insn",
347 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
349 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
350 from rtx to rtx_insn *.
351 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
352 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
353 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
355 (noce_try_abs): Likewise.
356 (noce_get_condition): Likewise for param "jump". Strengthen param
357 "earliest" from rtx * to rtx_insn **.
358 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
360 (find_cond_trap): Likewise.
361 (dead_or_predicable): Likewise for local "earliest".
362 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
364 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
365 and local "prev". Strengthen param "earliest" from rtx * to
367 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
368 Strengthen param "earliest" from rtx * to rtx_insn **.
370 2014-08-26 David Malcolm <dmalcolm@redhat.com>
372 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
373 "to" and local "insn" from rtx to rtx_insn *.
375 2014-08-26 David Malcolm <dmalcolm@redhat.com>
377 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
378 from rtx to rtx_insn *.
379 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
380 (code_motion_path_driver): Likewise for local "last_insn".
381 (simplify_changed_insns): Likewise for local "insn".
383 2014-08-26 David Malcolm <dmalcolm@redhat.com>
385 * rtl.h (push_to_sequence): Strengthen param from rtx to
387 (push_to_sequence2): Likewise for both params.
388 (delete_insns_since): Likewise for param.
389 (reorder_insns_nobb): Likewise for all three params.
390 (set_new_first_and_last_insn): Likewise for both params.
392 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
393 rtx_insn *. Remove now-redundant cast.
394 (set_last_insn): Likewise.
396 * builtins.c (expand_builtin_return): Strengthen local
397 "call_fusage" from rtx to rtx_insn *.
398 * cfgrtl.c (create_basic_block_structure): Likewise for local
400 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
401 "first", "last" and local "insn".
402 (delete_insns_since): Likewise for param "from".
403 (reorder_insns_nobb): Likewise for params "from", "to", "after"
405 (push_to_sequence): Likewise for param "first" and local "last".
406 (push_to_sequence2): Likewise for params "first" and "last".
407 * lra.c (emit_add3_insn): Likewise for local "last".
408 (lra_emit_add): Likewise.
409 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
411 (process_address_1): Likewise for locals "insn", last".
412 * modulo-sched.c (ps_first_note): Likewise for return type.
413 * optabs.c (expand_binop_directly): Likewise for param "last".
415 2014-08-26 David Malcolm <dmalcolm@redhat.com>
417 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
419 * emit-rtl.c (get_last_insn_anywhere): Likewise.
421 2014-08-26 David Malcolm <dmalcolm@redhat.com>
423 * function.h (struct sequence_stack): Strengthen fields "first"
424 and "last" from rtx to rtx_insn *.
425 (struct emit_status): Likewise for fields "x_first_insn" and
428 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
429 (set_first_insn): Add checked cast.
430 (get_last_insn): Remove now-redundant checked cast.
431 (set_last_insn): Add checked cast.
433 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
434 "saved_first" and "saved_last" from rtx to rtx_insn *.
436 2014-08-26 David Malcolm <dmalcolm@redhat.com>
438 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
439 (unlink_insn_chain): Strengthen both params from rtx to
442 * cfgrtl.c (cfg_layout_function_header): Likewise for this
444 (unlink_insn_chain): Likewise for params "first" and "last".
445 Remove now-redundant checked cast.
446 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
447 (fixup_reorder_chain): Strengthen local "insn" from rtx to
449 * emit-rtl.c (link_insn_into_chain): Likewise for all three
451 (add_insn): Likewise for param "insn" and local "prev".
452 (add_insn_after_nobb): Likewise for both params and local "next".
453 (add_insn_before_nobb): Likewise for both params and local "prev".
454 (add_insn_after): Rename param "after" to "uncast_after",
455 introducing local "after" with another checked cast.
456 (add_insn_before): Rename params "insn" and "before", giving them
457 "uncast_" prefixes, adding the old names back using checked casts.
458 (emit_note_after): Likewise for param "after".
459 (emit_note_before): Likewise for param "before".
460 (emit_label): Add a checked cast.
462 2014-08-26 David Malcolm <dmalcolm@redhat.com>
464 * cselib.h (cselib_record_sets_hook): Strengthen initial param
465 "insn" from rtx to rtx_insn *.
467 * cselib.c (cselib_record_sets_hook): Likewise.
469 * var-tracking.c (add_with_sets): Likewise, renaming back from
470 "uncast_insn" to "insn" and eliminating the checked cast from rtx
473 2014-08-26 David Malcolm <dmalcolm@redhat.com>
475 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
476 and "header_" from rtx to rtx_insn *.
477 (struct basic_block_d): Likewise for field "head_" within "x"
478 field of union basic_block_il_dependent.
479 (BB_HEAD): Drop function...
480 (SET_BB_HEAD): ...and this function in favor of...
481 (BB_HEAD): ...reinstate macro.
482 (BB_END): Drop function...
483 (SET_BB_END): ...and this function in favor of...
484 (BB_END): ...reinstate macro.
485 (BB_HEADER): Drop function...
486 (SET_BB_HEADER): ...and this function in favor of...
487 (BB_HEADER): ...reinstate macro.
489 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
490 (fix_crossing_unconditional_branches): Likewise.
491 * caller-save.c (save_call_clobbered_regs): Likewise.
492 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
493 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
494 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
495 (merge_blocks_move_successor_nojumps): Likewise.
496 (outgoing_edges_match): Update use of for_each_rtx to
497 for_each_rtx_in_insn.
498 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
499 (expand_gimple_cond): Likewise.
500 (expand_gimple_tailcall): Likewise.
501 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
503 (construct_exit_block): Drop use of SET_BB_END.
504 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
506 (delete_insn): Rename param "insn" to "uncast_insn", introducing
507 a new local "insn" with a checked cast to rtx_insn *. Drop use of
508 SET_BB_HEAD and SET_BB_END.
509 (create_basic_block_structure): Drop use of SET_BB_HEAD and
511 (rtl_delete_block): Drop use of SET_BB_HEAD.
512 (rtl_split_block): Drop use of SET_BB_END.
513 (emit_nop_for_unique_locus_between): Likewise.
514 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
515 (block_label): Drop use of SET_BB_HEAD.
516 (fixup_abnormal_edges): Drop use of SET_BB_END.
517 (record_effective_endpoints): Drop use of SET_BB_HEADER.
518 (relink_block_chain): Likewise.
519 (fixup_reorder_chain): Drop use of SET_BB_END.
520 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
521 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
522 rtx_insn **. Drop use of SET_BB_HEADER.
523 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
525 (BB_HEAD): Delete this function.
526 (SET_BB_HEAD): Likewise.
528 (SET_BB_END): Likewise.
529 (BB_HEADER): Likewise.
530 (SET_BB_HEADER): Likewise.
531 * emit-rtl.c (add_insn_after): Rename param "insn" to
532 "uncast_insn", adding a new local "insn" and a checked cast to
533 rtx_insn *. Drop use of SET_BB_END.
534 (remove_insn): Strengthen locals "next" and "prev" from rtx to
535 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
536 (reorder_insns): Drop use of SET_BB_END.
537 (emit_insn_after_1): Strengthen param "first" and locals "last",
538 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
539 (emit_pattern_after_noloc): Add checked cast.
540 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
541 (restore_other_notes): Likewise.
542 (move_insn): Likewise.
543 (sched_extend_bb): Likewise.
544 (fix_jump_move): Likewise.
545 * ifcvt.c (noce_process_if_block): Likewise.
546 (dead_or_predicable): Likewise.
547 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
548 * reg-stack.c (change_stack): Drop use of SET_BB_END.
549 * sel-sched-ir.c (sel_move_insn): Likewise.
550 * sel-sched.c (move_nop_to_previous_block): Likewise.
552 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
554 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
556 2014-08-26 David Malcolm <dmalcolm@redhat.com>
558 * basic-block.h (create_basic_block_structure): Strengthen params
559 1 "head" and 2 "end" from rtx to rtx_insn *.
560 * cfgrtl.c (create_basic_block_structure): Likewise.
561 (rtl_create_basic_block): Update casts from void * to rtx to
562 rtx_insn *, so that we can pass them as rtx_insn * to
563 create_basic_block_structure.
564 * sel-sched-ir.c (sel_create_basic_block): Likewise.
566 2014-08-26 David Malcolm <dmalcolm@redhat.com>
568 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
570 (check_for_inc_dec): Strengthen param "insn" from rtx to
573 * cselib.h (cselib_process_insn): Likewise.
575 * cselib.c (cselib_record_sets): Likewise.
576 (cselib_process_insn): Likewise.
578 * dse.c (struct insn_info): Likewise for field "insn".
579 (check_for_inc_dec_1): Likewise for local "insn".
580 (check_for_inc_dec): Likewise for param "insn".
581 (scan_insn): Likewise.
582 (dse_step1): Likewise for local "insn".
584 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
585 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
587 2014-08-26 David Malcolm <dmalcolm@redhat.com>
589 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
590 from rtx to rtx_insn *.
591 (DEP_PRO): Delete this function and...
592 (SET_DEP_PRO): ...this function in favor of...
593 (DEP_PRO): ...reinstate this macro.
594 (DEP_CON): Delete this function and...
595 (SET_DEP_CON): ...this function in favor of...
596 (DEP_CON): ...reinstate this old macro.
597 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
598 (init_dep): Likewise.
599 (set_priorities): Likewise for both params.
600 (sd_copy_back_deps): Likewise for params 1 and 2.
602 * haifa-sched.c (priority): Likewise for param "insn" and local
604 (set_priorities): Likewise for params "head" and "tail" and local
606 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
608 (add_to_speculative_block): Add a checked cast.
609 (create_check_block_twin): Drop use of SET_DEP_CON.
610 (add_jump_dependencies): Strengthen params "insn" and "jump" from
613 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
614 Drop use of SET_DEP_PRO
615 (init_dep): Strengthen params "pro" and "con" from rtx to
617 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
621 (SET_DEP_PRO): Delete.
622 (SET_DEP_CON): Delete.
624 2014-08-26 David Malcolm <dmalcolm@redhat.com>
626 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
627 from rtx to rtx_insn *.
628 (VINSN_INSN_RTX): Eliminate rvalue function and...
629 (SET_VINSN_INSN): ...lvalue function in favor of...
630 (VINSN_INSN_RTX): reinstate this old macro.
632 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
633 in favor of VINSN_INSN_RTX.
634 (VINSN_INSN_RTX): Delete this function.
635 (SET_VINSN_INSN_RTX): Likewise.
637 2014-08-26 David Malcolm <dmalcolm@redhat.com>
639 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
640 (BND_TO): Delete this function and...
641 (SET_BND_TO): ...this functions in favor of...
642 (BND_TO): ...reinstating this macro.
643 (struct _fence): Strengthen field "executing_insns" from
644 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
645 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
646 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
647 and param "insn" from rtx to insn_t.
648 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
651 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
653 (rtx_vec_t): Likewise.
654 (struct sched_deps_info_def): Strengthen param of "start_insn"
655 callback from rtx to rtx_insn *. Likewise for param "insn2" of
656 "note_mem_dep" callback and first param of "note_dep" callback.
658 * haifa-sched.c (add_to_speculative_block): Strengthen param
659 "insn" from rtx to rtx_insn *.
660 (clear_priorities): Likewise.
661 (calc_priorities): Likewise for local "insn".
663 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
664 Remove redundant checked cast.
665 (haifa_note_mem_dep): Likewise for param "pending_insn".
666 (haifa_note_dep): Likewise for param "elem".
667 (note_mem_dep): Likewise for param "e".
668 (sched_analyze_1): Add checked casts.
669 (sched_analyze_2): Likewise.
671 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
672 from rtx to rtx_insn *.
673 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
674 from vec<rtx> * to vec<rtx_insn *> *.
676 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
678 (flist_add): Strengthen param "executing_insns" from
679 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
680 (advance_deps_context): Remove now-redundant checked cast.
681 (init_fences): Replace uses of NULL_RTX with NULL.
682 (merge_fences): Strengthen params "last_scheduled_insn" and
683 "sched_next" from rtx to rtx_insn * and "executing_insns" from
684 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
685 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
686 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
687 an instruction, rather than doing double-duty as a pattern.
688 (return_nop_to_pool): Update for change of insn_t.
689 (deps_init_id): Remove now-redundant checked cast.
690 (struct sched_scan_info_def): Strengthen param of "init_insn"
691 callback from rtx to insn_t.
692 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
693 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
695 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
696 "end" from rtx to rtx_insn *.
697 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
698 (rtx insn_rtx, bool force_unique_p)
699 (BND_TO): Delete function.
700 (SET_BND_TO): Delete function.
702 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
704 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
705 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
707 (undo_transformations): Likewise for param "insn".
708 (update_liveness_on_insn): Likewise.
709 (compute_live_below_insn): Likewise for param "insn" and local
711 (update_data_sets): Likewise for param "insn".
712 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
713 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
714 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
716 (move_cond_jump): Likewise for param "insn".
717 (move_cond_jump): Drop use of SET_BND_TO.
718 (compute_av_set_on_boundaries): Likewise.
719 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
720 (update_and_record_unavailable_insns): Strengthen local "bb_end"
721 from rtx to rtx_insn *.
722 (maybe_emit_renaming_copy): Likewise for param "insn".
723 (maybe_emit_speculative_check): Likewise.
724 (handle_emitting_transformations): Likewise.
725 (remove_insn_from_stream): Likewise.
726 (code_motion_process_successors): Strengthen local "succ" from rtx
729 2014-08-26 David Malcolm <dmalcolm@redhat.com>
731 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
732 ilist_t, not _xlist_t;
733 (ILIST_INSN): Define in terms of new union field "insn".
734 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
736 (struct _list_node): Add new field "insn" to the union, of type
738 (ilist_add): Replace macro with an inline function, requiring an
740 (ilist_remove): Define this macro directly in terms of
741 _list_remove, rather than indirectly via _xlist_remove.
742 (ilist_clear): Likewise, in terms of _list_clear rather than
744 (ilist_is_in_p): Replace macro with an inline function, requiring
746 (_list_iter_cond_insn): New function.
747 (ilist_iter_remove): Define this macro directly in terms of
748 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
749 (ilist_iterator): Define directly in terms of _list_iterator
750 rather than indirectly through _xlist_iterator.
751 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
752 than in terms of _FOR_EACH_X.
753 (FOR_EACH_INSN_1): Likewise.
755 2014-08-26 Joseph Myers <joseph@codesourcery.com>
759 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
760 DECL_HARD_REGISTER and return for invalid register specifications.
761 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
762 DECL_HARD_REGISTER, call expand_one_error_var.
763 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
764 CC_REGNUM with non-MODE_CC modes.
765 (arm_regno_class): Return NO_REGS for PC_REGNUM.
767 2014-08-26 Marek Polacek <polacek@redhat.com>
770 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
772 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
774 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
775 qi cost; add di cost.
776 (cortexa57_addrcost_table): Likewise.
778 2014-08-26 Marek Polacek <polacek@redhat.com>
781 * expr.c (is_aligning_offset): Remove logical not.
783 2014-08-26 Marek Polacek <polacek@redhat.com>
786 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
787 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
789 2014-08-26 Richard Biener <rguenther@suse.de>
791 PR tree-optimization/62175
792 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
793 expand possibly trapping operations.
795 2014-08-26 David Malcolm <dmalcolm@redhat.com>
797 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
798 "insn" from rtx to rtx_insn *.
799 (permute_load): Likewise for param "insn".
800 (permute_store): Likewise.
801 (handle_special_swappables): Likewise for local "insn".
802 (replace_swap_with_copy): Likewise for locals "insn" and
804 (rs6000_analyze_swaps): Likewise for local "insn".
806 2014-08-25 David Malcolm <dmalcolm@redhat.com>
808 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
811 2014-08-25 David Malcolm <dmalcolm@redhat.com>
813 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
814 "note_list" from rtx to rtx_insn *.
815 (BB_NOTE_LIST): Replace this function and...
816 (SET_BB_NOTE_LIST): ...this function with...
817 (BB_NOTE_LIST): ...the former macro implementation.
819 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
820 local "from_start" from rtx to rtx_insn *. Strengthen param
821 "to_endp" from rtx * to rtx_insn **.
823 * haifa-sched.c (concat_note_lists): Likewise.
824 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
826 (sel_restore_notes): Likewise.
827 (move_bb_info): Likewise.
828 (BB_NOTE_LIST): Delete this function.
829 (SET_BB_NOTE_LIST): Delete this function.
830 * sel-sched.c (create_block_for_bookkeeping): Eliminate
831 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
833 2014-08-25 David Malcolm <dmalcolm@redhat.com>
835 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
836 from rtx * to rtx_insn **.
837 (reorder2): Likewise.
838 (dependencies_evaluation_hook): Strengthen params "head", "tail"
839 from rtx to rtx_insn *.
841 * doc/tm.texi: Update mechanically for above change to target.def.
843 * sched-int.h (note_list): Strengthen this variable from rtx to
845 (remove_notes): Likewise for both params.
846 (restore_other_notes): Likewise for return type and first param.
847 (struct ready_list): Strengthen field "vec" from rtx * to
849 (struct dep_replacement): Strenghten field "insn" from rtx to
851 (struct deps_desc): Likewise for fields "last_debug_insn",
853 (struct haifa_sched_info): Likewise for callback field
854 "can_schedule_ready_p"'s param, for first param of "new_ready"
855 callback field, for both params of "rank" callback field, for
856 first field of "print_insn" callback field (with a const), for
857 both params of "contributes_to_priority" callback, for param
858 of "insn_finishes_block_p" callback, for fields "prev_head",
859 "next_tail", "head", "tail", for first param of "add_remove_insn"
860 callback, for first param of "begin_schedule_ready" callback, for
861 both params of "begin_move_insn" callback, and for second param
862 of "advance_target_bb" callback.
863 (add_dependence): Likewise for params 1 and 2.
864 (sched_analyze): Likewise for params 2 and 3.
865 (deps_analyze_insn): Likewise for param 2.
866 (ready_element): Likewise for return type.
867 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
868 (try_ready): Strenghten param from rtx to rtx_insn *.
869 (sched_emit_insn): Likewise for return type.
870 (record_delay_slot_pair): Likewise for params 1 and 2.
871 (add_delay_dependencies): Likewise for param.
872 (contributes_to_priority): Likewise for both params.
873 (find_modifiable_mems): Likewise.
875 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
876 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
877 "first_older_only_insn" from rtx to rtx_insn *.
878 (arm_sched_reorder): Strengthen param "ready" from rtx * to
881 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
882 "last_scheduled_iter0" from rtx to rtx_insn *.
883 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
884 (c6x_sched_reorder_1): Strengthen param "ready" and locals
885 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
886 "insn" from rtx to rtx_insn *.
887 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
889 (c6x_sched_reorder2): Strengthen param "ready" and locals
890 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
891 "insn" from rtx to rtx_insn *.
892 (c6x_variable_issue): Add a checked cast when assigning from insn
893 to ss.last_scheduled_iter0.
894 (split_delayed_branch): Strengthen param "insn" and local "i1"
895 from rtx to rtx_insn *.
896 (split_delayed_nonbranch): Likewise.
897 (undo_split_delayed_nonbranch): Likewise for local "insn".
898 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
899 "entry_after", "end_packet", "head_insn", "tail_insn",
900 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
901 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
902 to rtx_insn **. Remove now-redundant checked cast on last_insn,
903 but add a checked cast on loop->start_label. Consolidate calls to
904 avoid assigning result of gen_spkernel to "insn", now an
907 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
908 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
910 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
911 rtx_insn **. Strengthen locals "top", "next" from rtx to
913 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
914 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
915 (add_parameter_dependencies): Strengthen params "call", "head" and
916 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
917 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
918 (add_dependee_for_func_arg): Likewise for param "arg" and local
920 (ix86_dependencies_evaluation_hook): Likewise for params "head",
921 "tail" and locals "insn", "first_arg".
923 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
924 for params "head", "tail" and locals "insn", "next", "next_tail".
925 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
926 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
927 "insn", "lowest", "highest" from rtx to rtx_insn *.
928 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
930 (ia64_sched_reorder2): Likewise.
932 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
933 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
934 from rtx * to rtx_insn **.
935 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
937 (mep_print_sched_insn): Strengthen param "insn" from rtx to
939 (mep_sched_reorder): Strengthen param "ready" from rtx * to
940 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
943 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
944 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
946 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
947 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
948 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
950 (vr4130_reorder): Likewise.
951 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
953 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
955 (mips_sched_reorder): Likewise.
956 (mips_sched_reorder2): Likewise.
958 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
960 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
961 Strengthen local "tmp" from rtx to rtx_insn *.
962 (rs6000_sched_reorder2): Likewise.
964 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
965 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
966 (s390_sched_reorder): Strengthen param "ready" from rtx * to
967 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
969 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
970 "tmp2" from rtx to rtx_insn *.
971 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
972 Strengthen local "insn" from rtx to rtx_insn *.
973 (ready_reorder): Strengthen param "ready" from rtx * to
974 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
975 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
976 (sh_reorder2): Likewise.
978 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
979 local "insn" from rtx to rtx_insn *.
981 * haifa-sched.c (note_list): Strengthen this variable from rtx to
983 (scheduled_insns): Strengthen this variable from vec<rtx> to
985 (set_modulo_params): Likewise for locals "i1", "i2".
986 (record_delay_slot_pair): Likewise for params "i1", "i2".
987 (add_delay_dependencies): Likewise for param "insn".
988 (cond_clobbered_p): Likewise.
989 (recompute_todo_spec): Likewise for local "prev".
990 (last_scheduled_insn): Likewise for this variable.
991 (nonscheduled_insns_begin): Likewise.
992 (model_set_excess_costs): Strengthen param "insns" from rtx * to
994 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
996 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
997 Strengthen local "insn" from rtx to rtx_insn *.
998 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
999 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1000 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1001 (ready_remove_first): Likewise for return type and local "t".
1002 (ready_element): Likewise for return type.
1003 (ready_remove): Likewise for return type and local "t".
1004 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1005 (check_clobbered_conditions): Strengthen local "x" from rtx to
1006 rtx_insn *, adding a checked cast.
1007 (schedule_insn): Likewise for param "insn".
1008 (remove_notes): Likewise for params "head", "tail" and locals
1009 "next_tail", "insn", "next".
1010 (struct haifa_saved_data): Likewise for fields
1011 "last_scheduled_insn", "nonscheduled_insns_begin".
1012 (save_backtrack_point): Update for change to field "vec" of
1014 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1016 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1017 from rtx to rtx_insn *
1018 (resolve_dependencies): Strengthen param "insn" from rtx to
1020 (restore_other_notes): Likewise for return type, for param "head"
1021 and local "note_head".
1022 (undo_all_replacements): Likewise for local "insn".
1023 (first_nonscheduled_insn): Likewise for return type and local "insn".
1024 (queue_to_ready): Likewise for local "insn", adding checked casts.
1025 (early_queue_to_ready): Likewise for local "insn".
1026 (debug_ready_list_1): Strengthen local "p" from rtx * to
1028 (move_insn): Strengthen param "insn" and local "note" from rtx to
1030 (insn_finishes_cycle_p): Likewise for param "insn".
1031 (max_issue): Likewise for local "insn".
1032 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1034 (commit_schedule): Strengthen param "prev_head" and local "insn"
1035 from rtx to rtx_insn *
1036 (prune_ready_list): Likewise for local "insn".
1037 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1038 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1039 (set_priorities): Likewise for local "prev_head".
1040 (try_ready): Likewise for param "next".
1041 (fix_tick_ready): Likewise.
1042 (change_queue_index): Likewise.
1043 (sched_extend_ready_list): Update for change to field "vec" of
1045 (generate_recovery_code): Strengthen param "insn" from rtx to
1047 (begin_speculative_block): Likewise.
1048 (create_check_block_twin): Likewise for param "insn" and locals
1049 "label", "check", "twin". Introduce local "check_pat" to avoid
1050 "check" being used as a plain rtx before being used as an insn.
1051 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1052 extracting elements from ready_list.
1053 (sched_remove_insn): Strengthen param "insn" from rtx to
1055 (sched_emit_insn): Likewise for return type.
1056 (ready_remove_first_dispatch): Likewise for return type and local
1059 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1061 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1064 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1065 from rtx to rtx_insn *.
1066 (add_dependence_list): Likewise for param "insn". Add a checked
1068 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1069 to rtx_insn *. Strengthen param "list_p" from rtx * to
1071 (chain_to_prev_insn): Strengthen param "insn" and locals
1072 "prec_nonnote", "i" from rtx to rtx_insn *.
1073 (flush_pending_lists): Likewise for param "insn".
1074 (cur_insn): Likewise for this variable.
1075 (haifa_start_insn): Add a checked cast.
1076 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1077 (sched_analyze_reg): Likewise for param "insn".
1078 (sched_analyze_1): Likewise.
1079 (sched_analyze_2): Likewise. Add checked casts.
1080 (sched_analyze_insn): Likewise. Also for local "prev".
1081 (deps_analyze_insn): Likewise for param "insn".
1082 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1083 (add_dependence_1): Likewise for params "insn", "elem".
1084 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1085 (parse_add_or_inc): Likewise for param "insn".
1086 (find_inc): Likewise for local "inc_cand".
1087 (find_modifiable_mems): Likewise for params "head", "tail" and
1088 locals "insn", "next_tail".
1090 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1091 (begin_schedule_ready): Likewise for param "insn".
1092 (begin_move_insn): Likewise for params "insn" and "last".
1093 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1095 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1096 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1097 (ebb_add_remove_insn): Likewise for param "insn".
1098 (advance_target_bb): Likewise.
1100 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1102 (check_live): Likewise for param "insn".
1103 (init_ready_list): Likewise for local "insn".
1104 (can_schedule_ready_p): Likewise for param "insn".
1105 (begin_schedule_ready): Likewise.
1106 (new_ready): Likewise for param "next".
1107 (rgn_print_insn): Likewise for param "insn".
1108 (rgn_rank): Likewise for params "insn1", "insn2".
1109 (contributes_to_priority): Likewise for params "next", "insn".
1110 (rgn_insn_finishes_block_p): Likewise for param "insn".
1111 (add_branch_dependences): Likewise for params "head", "tail" and
1112 locals "insn", "last".
1113 (rgn_add_remove_insn): Likewise for param "insn".
1114 (advance_target_bb): Likewise.
1116 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1117 const_rtx to const rtx_insn *.
1119 * sel-sched-dump.h (sel_print_insn): Likewise.
1121 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1122 (deps_init_id): Likewise.
1124 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1125 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1128 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1130 * output.h (final_start_function): Strengthen param 1 from rtx to
1133 * final.c (final_start_function): Likewise, renaming back from
1134 "uncast_first" to "first", and dropping the checked cast from rtx
1137 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1139 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1140 * final.c (final): Likewise. Rename param back from
1141 "uncast_first" to "first" and eliminate the checked cast from rtx
1144 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1146 * output.h (shorten_branches): Strengthen param from rtx to
1149 * final.c (shorten_branches): Likewise, renaming param back from
1150 "uncast_first" to "first", and dropping the checked cast from rtx
1153 * genattr.c (gen_attr): Likewise when writing out the prototype of
1156 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1158 * sched-int.h (struct haifa_sched_info): Strengthen fields
1159 "prev_head" and "next_tail" from rtx to rtx_insn *.
1161 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1163 * rtl.h (rtx_jump_table_data::get_labels): New method.
1164 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1165 with use of the new rtx_jump_table_data::get_labels method.
1166 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1167 to rtx_jump_table_data *. Simplify by using get_labels method.
1168 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1169 a dyn_cast, introducing local "table", using it to replace
1170 label-lookup logic with a get_labels method call.
1171 (patch_jump_insn): Simplify using get_labels method.
1172 * dwarf2cfi.c (create_trace_edges): Likewise.
1173 * rtlanal.c (label_is_jump_target_p): Likewise.
1175 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1177 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1180 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1181 (unshare_all_rtl_again): Likewise, also for local "p".
1183 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1185 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1187 * cfgrtl.c (delete_insn_and_edges): Likewise.
1189 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1191 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1192 from rtx to rtx_insn *.
1194 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1196 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1198 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1199 locals "returnjump", "epilogue_end", "insn", "next".
1201 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1202 "returnjump" from rtx * to rtx_insn **.
1203 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1205 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1207 * basic-block.h (struct edge_def). Strengthen "r" within
1208 union edge_def_insns from rtx to rtx_insn *.
1210 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1211 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1213 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1214 from rtx to rtx_insn *.
1215 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1217 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1218 (reg_used_on_edge): Likewise.
1219 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1220 (gt_pch_nx): New overload for rtx_insn *&.
1221 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1222 from rtx to rtx_insn *.
1224 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1226 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1227 from rtx to rtx_insn *.
1228 (BB_FOOTER): Replace function with access macro.
1229 (SET_BB_FOOTER): Delete.
1231 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1233 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1234 (emit_barrier_after_bb): Likewise.
1235 (record_effective_endpoints): Likewise.
1236 (relink_block_chain): Likewise.
1237 (fixup_fallthru_exit_predecessor): Likewise.
1238 (cfg_layout_duplicate_bb): Likewise.
1239 (cfg_layout_split_block): Likewise.
1240 (cfg_layout_delete_block): Likewise.
1241 (cfg_layout_merge_blocks): Likewise.
1242 (BB_FOOTER): Delete function.
1243 (SET_BB_FOOTER): Delete function.
1244 * combine.c (update_cfg_for_uncondjump): Replace uses of
1245 SET_BB_FOOTER with BB_FOOTER.
1247 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1249 * except.h (struct eh_landing_pad_d): Strengthen field
1250 "landing_pad" from rtx to rtx_code_label *.
1252 * except.c (sjlj_emit_dispatch_table): Likewise for param
1254 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1256 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1258 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1259 first param from rtx to rtx_insn *.
1260 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1261 field "set_frame_ptr_insn".
1262 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1263 "csend" from rtx to rtx_code_label *.
1264 (xtensa_expand_atomic): Likewise for local "csloop".
1265 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1267 (xtensa_call_tls_desc): Likewise for return type and locals
1268 "call_insn", "insns".
1269 (xtensa_legitimize_tls_address): Likewise for local "insns".
1270 (xtensa_expand_prologue): Likewise for locals "insn", "first".
1272 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1274 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1275 first param from rtx to rtx_insn *.
1276 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1279 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1281 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1282 Strengthen param 1 from rtx to rtx_insn *.
1283 (tilepro_output_cbranch): Likewise.
1284 (tilepro_adjust_insn_length): Likewise.
1285 (tilepro_final_prescan_insn): Likewise for sole param.
1287 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1288 Likewise for local "last".
1289 (cbranch_predicted_p): Likewise for param "insn".
1290 (tilepro_output_simple_cbranch_with_opcode): Likewise.
1291 (tilepro_output_cbranch_with_opcode): Likewise.
1292 (tilepro_output_cbranch): Likewise.
1293 (frame_emit_load): Likewise for return type and locals "seq",
1295 (emit_sp_adjust): Likewise for return type and local "insn".
1296 (tilepro_expand_epilogue): Likewise for locals "last_insn",
1298 (tilepro_adjust_insn_length): Likewise for param "insn".
1299 (next_insn_to_bundle): Likewise for return type and params
1301 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
1302 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
1304 (match_addli_pcrel): Likewise for param "insn".
1305 (replace_addli_pcrel): Likewise.
1306 (match_auli_pcrel): Likewise.
1307 (replace_auli_pcrel): Likewise.
1308 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
1310 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1311 "queue", "next_queue", "prev".
1312 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
1313 (tilepro_final_prescan_insn): Likewise for param "insn".
1315 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1317 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
1318 Strengthen param 1 from rtx to rtx_insn *.
1319 (tilegx_output_cbranch): Likewise.
1320 (tilegx_adjust_insn_length): Likewise.
1321 (tilegx_final_prescan_insn): Likewise for sole param.
1323 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
1325 (cbranch_predicted_p): Likewise for param "insn".
1326 (tilegx_output_simple_cbranch_with_opcode): Likewise.
1327 (tilegx_output_cbranch_with_opcode): Likewise.
1328 (tilegx_output_cbranch): Likewise.
1329 (frame_emit_load): Likewise for return type.
1330 (set_frame_related_p): Likewise for locals "seq", "insn".
1331 (emit_sp_adjust): Likewise for return type, and for local "insn".
1332 Introduce local "pat" for use in place of "insn" where the latter
1333 isn't an instruction.
1334 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
1335 from rtx to rtx_insn *.
1336 (tilegx_adjust_insn_length): Likewise for param "insn".
1337 (next_insn_to_bundle): Likewise for return type and params "r" and
1339 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
1341 (replace_insns): Likewise for params "old_insn", "new_insns".
1342 (replace_mov_pcrel_step1): Likewise for param "insn" and local
1344 (replace_mov_pcrel_step2): Likewise.
1345 (replace_mov_pcrel_step3): Likewise.
1346 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
1348 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1349 "queue", "next_queue", "prev".
1350 (tilegx_output_mi_thunk): Likewise for local "insn".
1351 (tilegx_final_prescan_insn): Likewise for param "insn".
1353 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1355 * config/spu/spu.c (frame_emit_store): Strengthen return type from
1357 (frame_emit_load): Likewise.
1358 (frame_emit_add_imm): Likewise, also for local "insn".
1359 (spu_expand_prologue): Likewise for local "insn".
1360 (struct spu_bb_info): Likewise for field "prop_jump".
1361 (emit_nop_for_insn): Likewise for param "insn" and local
1363 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
1365 (spu_emit_branch_hint): Likewise for params "before", "branch" and
1366 locals "hint", "insn".
1367 (get_branch_target): Likewise for param "branch".
1368 (insn_clobbers_hbr): Likewise for param "insn".
1369 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
1370 locals "insn", "before_4", "before_16".
1371 (insert_hbrp): Likewise for local "insn".
1372 (spu_machine_dependent_reorg): Likewise for locals "branch",
1373 "insn", "next", "bbend".
1374 (uses_ls_unit): Likewise for param "insn".
1375 (get_pipe): Likewise.
1376 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
1377 introducing a checked cast.
1378 (spu_sched_adjust_cost): Likewise for params "insn" and
1380 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
1381 (spu_sms_res_mii): Likewise.
1383 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1385 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
1386 from rtx to rtx_insn *.
1387 (output_cbranch): Likewise for param 6.
1388 (output_return): Likewise for param 1.
1389 (output_sibcall): Likewise.
1390 (output_v8plus_shift): Likewise.
1391 (output_v8plus_mult): Likewise.
1392 (output_v9branch): Likewise for param 7.
1393 (output_cbcond): Likewise for param 3.
1395 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
1397 (sparc_legitimize_pic_address): Likewise.
1398 (sparc_emit_call_insn): Likewise.
1399 (emit_save_or_restore_regs): Likewise.
1400 (emit_window_save): Likewise for return type and local "insn".
1401 (sparc_expand_prologue): Likewise for local "insn".
1402 (sparc_flat_expand_prologue): Likewise.
1403 (output_return): Likewise for param "insn".
1404 (output_sibcall): Likewise for param "insn" and local "delay".
1405 (output_ubranch): Likewise for param "insn".
1406 (output_cbranch): Likewise.
1407 (output_cbcond): Likewise.
1408 (output_v9branch): Likewise.
1409 (output_v8plus_shift): Likewise.
1410 (sparc_output_mi_thunk): Likewise for local "insn".
1411 (get_some_local_dynamic_name): Likewise.
1412 (output_v8plus_mult): Likewise for param "insn".
1414 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1416 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
1417 from rtx to rtx_insn *.
1418 (output_branchy_insn): Likewise for param 3.
1419 (output_far_jump): Likewise for param 1.
1420 (final_prescan_insn): Likewise.
1421 (sh_insn_length_adjustment): Likewise for sole param.
1423 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
1424 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
1426 (sh_emit_compare_and_set): Likewise for local "lab".
1427 (output_far_jump): Strengthen param "insn" and local "prev" from
1429 (output_branchy_insn): Likewise for param "insn" and local
1431 (output_ieee_ccmpeq): Likewise for param "insn".
1432 (struct label_ref_list_d): Strengthen field "label" from rtx to
1434 (pool_node): Likewise.
1435 (pool_window_label): Likewise for this global.
1436 (add_constant): Likewise for return type and locals "lab", "new_rtx".
1437 (dump_table): Strengthen params "start", "barrier" and local
1438 "scan" from rtx to rtx_insn *.
1439 (broken_move): Likewise for param "insn".
1440 (untangle_mova): Likewise for params "first_mova" and "new_mova".
1441 Strengthen param "first_mova" from rtx * to rtx_insn **.
1442 (mova_p): Likewise for param "insn".
1443 (fixup_mova): Likewise for param "mova".
1444 (find_barrier): Likewise for return type, params "mova" and
1445 "from", and locals "barrier_before_mova", "found_barrier",
1446 "good_barrier", "orig", "last_symoff", "next". Strengthen local
1447 "label" from rtx to rtx_code_label *.
1448 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
1450 (sh_reorg): Likewise for locals "link", "scan", "barrier".
1451 (split_branches): Likewise for param "first" and local "insn".
1452 (final_prescan_insn): Likewise for param "insn".
1453 (sequence_insn_p): Likewise for locals "prev", "next".
1454 (sh_insn_length_adjustment): Likewise for param "insn".
1455 (sh_can_redirect_branch): Likewise for local "insn".
1456 (find_r0_life_regions): Likewise for locals "end", "insn".
1457 (sh_output_mi_thunk): Likewise for local "insns".
1459 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1461 * config/score/score.c (score_output_mi_thunk): Strengthen local
1462 "insn" from rtx to rtx_insn *.
1463 (score_prologue): Likewise.
1465 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1467 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
1468 1 from rtx to rtx_insn *.
1469 (s390_emit_jump): Likewise for return type.
1470 (s390_emit_call): Likewise.
1471 (s390_load_got): Likewise.
1473 * config/s390/s390.c (last_scheduled_insn): Likewise for this
1475 (s390_match_ccmode): Likewise for param "insn".
1476 (s390_emit_jump): Likewise for return type.
1477 (s390_split_branches): Likewise for local "label".
1478 (struct constant): Strengthen field "label" from rtx to
1480 (struct constant_pool): Likewise for field "label". Strengthen
1481 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
1483 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
1485 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
1486 (s390_end_pool): Likewise.
1487 (s390_dump_pool): Likewise for local "insn".
1488 (s390_mainpool_start): Likewise.
1489 (s390_chunkify_start): Likewise.
1490 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
1491 with insns. Strengthen locals "label", "jump", "barrier", "next",
1492 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
1493 (s390_chunkify_finish): Strengthen local "insn" from rtx to
1495 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
1496 "jump", "label", "next_insn".
1497 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
1498 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
1500 (s390_load_got): Likewise for return type and local "insns".
1501 (s390_save_gprs_to_fprs): Likewise for local "insn".
1502 (s390_restore_gprs_from_fprs): Likewise.
1503 (pass_s390_early_mach::execute): Likewise.
1504 (s390_emit_prologue): Likewise for local "insns".
1505 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
1507 (s390_emit_call): Strengthen return type and local "insn" from
1509 (s390_emit_tpf_eh_return): Likewise for local "insn".
1510 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
1511 "next_insn", introducing locals "s_pat", "rpat" to allow this.
1512 (s390_fix_long_loop_prediction): Likewise for param "insn" and
1514 (s390_non_addr_reg_read_p): Likewise for param "insn".
1515 (find_cond_jump): Likewise for return type and param "insn".
1516 (s390_swap_cmp): Likewise for param "insn".
1517 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
1518 "prev_insn", "next_insn".
1519 (s390_reorg): Likewise for locals "insn", "target".
1520 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
1521 (s390_sched_variable_issue): For now, rename param "insn" to
1522 "uncast_insn", introducing a checked cast.
1523 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
1525 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
1526 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
1528 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1530 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
1531 param from rtx to rtx_insn *.
1532 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
1534 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1536 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
1537 4 from rtx to rtx_insn *.
1538 (rs6000_final_prescan_insn): Likewise for first param.
1539 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
1541 (rs6000_get_some_local_dynamic_name): Likewise.
1542 (output_cbranch): Likewise for param "insn".
1543 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
1544 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
1545 (rs6000_emit_allocate_stack): Likewise for local "insn".
1546 (load_cr_save): Likewise.
1547 (restore_saved_cr): Likewise.
1548 (restore_saved_lr): Likewise.
1549 (emit_cfa_restores): Likewise.
1550 (rs6000_output_function_epilogue): Likewise for locals "insn" and
1551 "deleted_debug_label".
1552 (rs6000_output_mi_thunk): Likewise for local "insn".
1553 (rs6000_final_prescan_insn): Likewise for param "insn".
1555 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1557 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
1558 Strengthen param "insn" from rtx to rtx_insn *.
1559 * config/picochip/picochip.c (picochip_current_prescan_insn):
1560 Likewise for this variable.
1561 (picochip_final_prescan_insn): Likewise for param "insn".
1563 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1565 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
1566 from rtx to rtx_insn *.
1567 (pa_output_indirect_call): Likewise.
1568 (pa_adjust_insn_length): Likewise.
1569 (pa_attr_length_millicode_call): Likewise.
1570 (pa_attr_length_call): Likewise.
1571 (pa_attr_length_indirect_call): Likewise.
1573 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
1575 (pa_attr_length_millicode_call): Likewise.
1576 (pa_attr_length_call): Likewise.
1577 (pa_output_call): Likewise.
1578 (pa_attr_length_indirect_call): Likewise.
1579 (pa_output_indirect_call): Likewise.
1581 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1583 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
1584 Strengthen first param from rtx to rtx_insn *.
1585 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
1588 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1590 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
1591 type from rtx to rtx_insn *.
1592 (mips_expand_call): Likewise.
1593 (mips_adjust_insn_length): Likewise for first param.
1594 (mips_output_conditional_branch): Likewise.
1595 (mips_output_order_conditional_branch): Likewise.
1596 (mips_final_prescan_insn): Likewise.
1598 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
1599 rtx_insn * for the SEQUENCE case.
1600 (SEQ_END): Likewise.
1601 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
1602 (mips_emit_call_insn): Likewise, also for local "insn".
1603 (mips16_gp_pseudo_reg): Likewise for local "scan".
1604 (mips16_build_call_stub): Likewise for return type and for local
1605 "insn". Introduce a new local "pattern" so that "insn" can indeed
1607 (mips_expand_call): Strengthen return type and local "insn" from
1609 (mips_block_move_loop): Strengthen local "label" from rtx to
1611 (mips_expand_synci_loop): Likewise for locals "label",
1613 (mips_set_frame_expr): Strengthen local "insn" from rtx to
1615 (mips16e_collect_argument_saves): Likewise for locals "insn",
1617 (mips_find_gp_ref): Likewise for param of callback for "pred"
1618 param, and for local "insn".
1619 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
1620 (mips_insn_has_flexible_gp_ref_p): Likewise.
1621 (mips_epilogue_emit_cfa_restores): Likewise for return type and
1623 (mips_epilogue_set_cfa): Likewise for local "insn".
1624 (mips_expand_epilogue): Likewise.
1625 (mips_adjust_insn_length): Likewise for param "insn".
1626 (mips_output_conditional_branch): Likewise.
1627 (mips_output_order_conditional_branch): Likewise.
1628 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
1629 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
1630 "falu2_turn_enabled_insn".
1631 (mips_builtin_branch_and_move): Strengthen locals "true_label",
1632 "done_label" from rtx to rtx_code_label *.
1633 (struct mips16_constant): Likewise for field "label".
1634 (mips16_add_constant): Likewise for return type.
1635 (mips16_emit_constants_1): Strengthen return type and param "insn"
1636 from rtx to rtx_insn *.
1637 (mips16_emit_constants): Likewise for param "insn".
1638 (mips16_insn_length): Likewise.
1639 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
1640 to rtx_code_label *.
1641 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
1642 from rtx to rtx_insn *.
1643 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
1644 "jump". Strengthen local "label" from rtx to rtx_code_label *.
1645 (r10k_simplify_address): Strengthen param "insn" and local
1646 "def_insn" from rtx to rtx_insn *.
1647 (r10k_safe_address_p): Strengthen param "insn" from rtx to
1649 (r10k_needs_protection_p_1): Update target type of cast of data
1650 from to rtx to rtx_insn *.
1651 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
1652 rtx * to rtx_insn **.
1653 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
1655 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
1656 (mips_call_expr_from_insn): Likewise for param "insn".
1657 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
1658 (mips_find_pic_call_symbol): Likewise for param "insn".
1659 (mips_annotate_pic_calls): Likewise for local "insn".
1660 (mips_sim_insn): Likewise for this variable.
1661 (struct mips_sim): Likewise for field "insn" within elements of
1663 (mips_sim_wait_reg): Likewise for param "insn".
1664 (mips_sim_wait_regs): Likewise.
1665 (mips_sim_wait_units): Likewise.
1666 (mips_sim_wait_insn): Likewise.
1667 (mips_sim_issue_insn): Likewise.
1668 (mips_sim_finish_insn): Likewise.
1669 (mips_seq_time): Likewise for param "seq" and local "insn".
1670 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
1671 locals "first", "second".
1672 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
1673 "last", "last2", "next".
1674 (mips_avoid_hazard): Likewise for params "after", "insn".
1675 (mips_reorg_process_insns): Likewise for locals "insn",
1676 "last_insn", "subinsn", "next_insn".
1677 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
1678 (mips16_split_long_branches): Likewise for locals "insn" "jump",
1680 (mips_output_mi_thunk): Likewise for local "insn".
1681 (mips_final_prescan_insn): Likewise for param "insn".
1683 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1685 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
1686 Strengthen return type and local "insns" from rtx to rtx_insn *.
1687 (microblaze_legitimize_tls_address): Likewise for local "insns".
1688 (microblaze_block_move_loop): Strengthen local "label" from rtx
1689 to rtx_code_label *.
1690 (microblaze_expand_prologue): Strengthen two locals named "insn"
1691 from rtx to rtx_insn *.
1692 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
1693 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
1694 "insn". Strengthen locals "div_label", "div_end_label" from rtx
1695 to rtx_code_label *.
1697 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1699 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
1700 param from rtx to rtx_insn *.
1701 (mep_reuse_lo): Likewise for third param.
1702 (mep_use_post_modify_p): Likewise for first param.
1703 (mep_core_address_length): Likewise.
1704 (mep_cop_address_length): Likewise.
1705 (mep_final_prescan_insn): Likewise.
1706 (mep_store_data_bypass_p): Likewise for both params.
1707 (mep_mul_hilo_bypass_p): Likewise.
1708 (mep_ipipe_ldc_p): Likewise for param.
1710 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
1711 (mep_rewrite_mult): Likewise.
1712 (mep_rewrite_mulsi3): Likewise.
1713 (mep_rewrite_maddsi3): Likewise.
1714 (mep_reuse_lo_p_1): Likewise.
1715 (mep_reuse_lo_p): Likewise.
1716 (mep_frame_expr): Likewise.
1717 (mep_make_parallel): Likewise for both params.
1718 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
1720 (mep_use_post_modify_p): Likewise for param "insn".
1721 (mep_core_address_length): Likewise.
1722 (mep_cop_address_length): Likewise.
1723 (mep_reg_set_in_function): Likewise for local "insn".
1724 (mep_asm_without_operands_p): Likewise.
1725 (F): Likewise for return type and param "x".
1726 (add_constant): Likewise for local "insn".
1727 (maybe_dead_move): Likewise for return type and local "insn".
1728 (mep_expand_prologue): Likewise for local "insn".
1729 (mep_final_prescan_insn): Likewise for param "insn".
1730 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
1731 "next", "follow", "x".
1732 (mep_insert_repeat_label_last): Likewise for return type, param
1733 "last_insn", and locals "next", "prev". Strengthen param "label"
1734 from rtx to rtx_code_label *.
1735 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
1737 (struct mep_doloop_end): Likewise for fields "insn" and
1739 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
1740 Strengthen local "repeat_label" from rtx to rtx_code_label *.
1741 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
1743 (mep_invert_branch): Likewise for params "insn" and "after".
1744 (mep_reorg_erepeat): Likewise for param "insns" and locals
1745 "insn", "prev", "new_last", "barrier", "user". Strengthen local
1746 "l" from rtx to rtx_code_label *.
1747 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
1748 from rtx to rtx_insn *.
1749 (mep_reorg_addcombine): Likewise for param "insns" and locals
1751 (add_sp_insn_p): Likewise for param "insn".
1752 (mep_reorg_noframe): Likewise for param "insns" and locals
1753 "start_frame_insn", "end_frame_insn", "next".
1754 (mep_reorg): Likewise for local "insns".
1755 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
1757 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
1758 (mep_mul_hilo_bypass_p): Likewise.
1759 (mep_ipipe_ldc_p): Likewise for param "insn".
1760 (mep_make_bundle): Likewise for return type, param "cop" and local
1761 "insn", splitting out the latter into a new local "seq" for when it
1762 is a SEQUENCE rather than an insn.
1763 (core_insn_p): Likewise for param "insn".
1764 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
1765 "last", "first", "note", "prev", "core_insn".
1767 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1769 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
1771 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
1772 (m68k_final_prescan_insn): Likewise for first param.
1774 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
1775 (m68k_set_frame_related): Likewise for param "insn".
1776 (output_btst): Likewise for param "insn".
1777 (m68k_final_prescan_insn): Likewise.
1778 (m68k_move_to_reg): Likewise for local "insn".
1779 (m68k_call_tls_get_addr): Likewise for local "insns".
1780 (m68k_call_m68k_read_tp): Likewise.
1781 (strict_low_part_peephole_ok): Likewise for param "first_insn".
1782 (m68k_output_mi_thunk): Likewise for local "insn".
1784 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1786 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
1787 first param from rtx to rtx_insn *.
1788 (iq2000_adjust_insn_length): Likewise.
1789 (iq2000_output_conditional_branch): Likewise.
1790 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
1791 "insn" and local "nop_insn".
1792 (iq2000_annotate_frame_insn): Likewise for param "insn".
1793 (iq2000_expand_prologue): Likewise for both locals "insn".
1794 (iq2000_adjust_insn_length): Likewise for param "insn".
1795 (iq2000_output_conditional_branch): Likewise.
1797 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1799 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
1800 "insns" from rtx to rtx_insn *.
1801 (ia64_emit_cond_move): Likewise for locals "insn", "first".
1802 (struct spill_fill_data): Likewise for field "init_after" and for
1803 elements of array field "prev_insn".
1804 (spill_restore_mem): Likewise for locals "insn", "first".
1805 (do_spill): Likewise for local "insn".
1806 (do_restore): Likewise.
1807 (ia64_expand_prologue): Likewise.
1808 (ia64_expand_epilogue): Likewise.
1809 (emit_insn_group_barriers): Likewise for locals "insn",
1811 (emit_all_insn_group_barriers): Likewise for locals "insn",
1813 (dfa_stop_insn): Likewise for this global.
1814 (dfa_pre_cycle_insn): Likewise.
1815 (ia64_nop): Likewise.
1816 (final_emit_insn_group_barriers): Likewise for locals "insn",
1818 (emit_predicate_relation_info): Likewise for locals "head", "n",
1820 (ia64_reorg): Likewise for local "insn".
1821 (ia64_output_mi_thunk): Likewise.
1822 (expand_vec_perm_interleave_2): Likewise for local "seq".
1824 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1826 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
1827 param 1 "insn" from rtx to rtx_insn *.
1828 (ix86_use_lea_for_mov): Likewise.
1829 (ix86_avoid_lea_for_addr): Likewise.
1830 (ix86_split_lea_for_addr): Likewise.
1831 (ix86_lea_for_add_ok): Likewise.
1832 (ix86_output_call_insn): Likewise.
1834 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
1835 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
1836 (ix86_output_function_epilogue): Likewise for locals "insn",
1837 "deleted_debug_label".
1838 (legitimize_tls_address): Likewise for local "insn".
1839 (get_some_local_dynamic_name): Likewise.
1840 (increase_distance): Likewise for params "prev", "next".
1841 (distance_non_agu_define_in_bb): Likewise for params "insn",
1842 "start" and locals "prev", "next".
1843 (distance_non_agu_define): Likewise for param "insn".
1844 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
1845 locals "next", "prev".
1846 (distance_agu_use): Likewise for param "insn".
1847 (ix86_lea_outperforms): Likewise.
1848 (ix86_ok_to_clobber_flags): Likewise.
1849 (ix86_avoid_lea_for_add): Likewise.
1850 (ix86_use_lea_for_mov): Likewise.
1851 (ix86_avoid_lea_for_addr): Likewise.
1852 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
1853 (ix86_split_lea_for_addr): Likewise for param "insn".
1854 (ix86_lea_for_add_ok): Likewise for param "insn".
1855 (ix86_expand_carry_flag_compare): Likewise for local
1857 (ix86_expand_int_movcc): Likewise.
1858 (ix86_output_call_insn): Likewise for param "insn".
1859 (ix86_output_call_insn): Likewise for local "i".
1860 (x86_output_mi_thunk): Introduce local "insn", using it in place
1861 of "tmp" when dealing with insns.
1862 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
1864 (ix86_pad_returns): Likewise for locals "ret", "prev".
1865 (ix86_count_insn_bb): Likewise for local "insn".
1866 (ix86_pad_short_function): Likewise for locals "ret", "insn".
1867 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
1868 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
1869 (expand_vec_perm_interleave2): Likewise for local "seq".
1870 (expand_vec_perm_vperm2f128_vblend): Likewise.
1871 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
1872 call to for_each_rtx with for_each_rtx_in_insn.
1874 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1876 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
1877 "label" from rtx to rtx_code_label *.
1878 (ix86_expand_prologue): Likewise.
1879 (ix86_expand_split_stack_prologue): Likewise for locals "label",
1881 (ix86_split_idivmod): Likewise for locals "end_label" and
1883 (ix86_expand_branch): Likewise for local "label2".
1884 (ix86_expand_aligntest): Likewise for return type and local "label".
1885 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
1887 (expand_movmem_epilogue): Likewise for the various locals named
1889 (expand_setmem_epilogue): Likewise.
1890 (expand_small_movmem_or_setmem): Likewise for local "label".
1891 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
1892 Strengthen param "done_label" from rtx * to rtx_code_label **.
1893 Strengthen locals "loop_label" and "label" from rtx to
1895 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
1896 Likewise for locals "loop_label", "label".
1897 (ix86_expand_set_or_movmem): Likewise for locals "label",
1898 "jump_around_label", "hot_label".
1899 (ix86_expand_strlensi_unroll_1): Likewise for locals
1900 "align_2_label", align_3_label", "align_4_label", "end_0_label",
1902 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
1903 (void ix86_emit_i387_log1p): Likewise for locals "label1",
1904 "label2", "jump_label".
1905 (ix86_expand_sse_compare_and_jump): Likewise for return type and
1907 (ix86_expand_lfloorceil): Likewise for local "label".
1908 (ix86_expand_rint): Likewise.
1909 (ix86_expand_floorceildf_32): Likewise.
1910 (ix86_expand_floorceil): Likewise.
1911 (ix86_expand_rounddf_32): Likewise.
1912 (ix86_expand_trunc): Likewise.
1913 (ix86_expand_truncdf_32): Likewise.
1914 (ix86_expand_round): Likewise.
1916 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1918 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
1919 first param from rtx to rtx_insn *.
1920 (h8300_insn_length_from_table): Likewise.
1921 * config/h8300/h8300.c (F): Likewise for return type and param
1923 (Fpa): Add a checked cast to rtx_insn *.
1924 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
1926 (final_prescan_insn): Likewise for param "insn".
1927 (h8300_binary_length): Likewise.
1928 (h8300_insn_length_from_table): Likewise.
1930 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1932 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
1933 Strengthen first param "insn" from rtx to rtx_insn *.
1935 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
1937 (frame_insn): Likewise for return type. Introduce local "insn"
1938 for use in place of local "x" for use as an rtx_insn *.
1939 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
1940 (epiphany_expand_prologue): Likewise for local "insn".
1941 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
1942 * config/epiphany/resolve-sw-modes.c
1943 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
1946 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1948 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
1949 param from rtx to rtx_insn *.
1950 (c6x_final_prescan_insn): Likewise for first param.
1952 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
1953 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
1954 (c6x_expand_compare): Strengthen local "insns" from rtx to
1956 (c6x_get_unit_specifier): Likewise for param "insn".
1957 (c6x_print_unit_specifier_field): Likewise.
1958 (c6x_final_prescan_insn): Likewise.
1959 (emit_add_sp_const): Likewise for local "insn".
1960 (c6x_expand_prologue): Likewise.
1962 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1964 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
1965 param 1 from rtx to rtx_insn *.
1966 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
1967 the various locals named "insn".
1968 (expand_epilogue_reg_restore): Likewise.
1969 (frame_related_constant_load): Likewise.
1970 (add_to_reg): Likewise.
1971 (emit_link_insn): Likewise.
1972 (do_link): Likewise.
1973 (expand_interrupt_handler_prologue): Likewise.
1974 (branch_dest): Likewise for param "branch".
1975 (asm_conditional_branch): Likewise for param "insn".
1976 (gen_one_bundle): Likewise for elements of param "slot" and local
1978 (bfin_gen_bundles): Likewise for locals "insn", "next" and
1979 elements of local "slot".
1980 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1981 "queue", "next_queue", "prev".
1982 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
1983 (add_sched_insns_for_speculation): Likewise for local "insn".
1985 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1987 * config/avr/avr-protos.h (output_movqi): Strengthen first param
1988 from rtx to rtx_insn *.
1989 (output_movhi): Likewise.
1990 (output_movsisf): Likewise.
1991 (avr_out_tstsi): Likewise.
1992 (avr_out_tsthi): Likewise.
1993 (avr_out_tstpsi): Likewise.
1994 (avr_out_compare): Likewise.
1995 (avr_out_compare64): Likewise.
1996 (avr_out_movpsi): Likewise.
1997 (ashlqi3_out): Likewise.
1998 (ashlhi3_out): Likewise.
1999 (ashlsi3_out): Likewise.
2000 (ashrqi3_out): Likewise.
2001 (ashrhi3_out): Likewise.
2002 (ashrsi3_out): Likewise.
2003 (lshrqi3_out): Likewise.
2004 (lshrhi3_out): Likewise.
2005 (lshrsi3_out): Likewise.
2006 (avr_out_ashlpsi3): Likewise.
2007 (avr_out_ashrpsi3): Likewise.
2008 (avr_out_lshrpsi3): Likewise.
2009 (avr_out_fract): Likewise.
2010 (avr_out_sbxx_branch): Likewise.
2011 (avr_out_round): Likewise.
2012 (avr_out_xload): Likewise.
2013 (avr_out_movmem): Likewise.
2014 (adjust_insn_length): Likewise.
2015 (avr_out_lpm): Likewise.
2016 (reg_unused_after): Likewise.
2017 (_reg_unused_after): Likewise.
2018 (avr_jump_mode): Likewise for second param.
2019 (jump_over_one_insn): Likewise for first param.
2020 (avr_final_prescan_insn): Likewise.
2021 (out_shift_with_cnt): Likewise for second param.
2023 * config/avr/avr.c (get_sequence_length): Likewise for param
2024 "insns" and local "insn".
2025 (emit_push_byte): Likewise for local "insn".
2026 (emit_push_sfr): Likewise.
2027 (avr_prologue_setup_frame): Likewise for locals "insn",
2028 "fp_plus_insns", "sp_plus_insns".
2029 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2031 (avr_jump_mode): Likewise for param "insn".
2032 (avr_final_prescan_insn): Likewise.
2033 (avr_find_unused_d_reg): Likewise.
2034 (avr_out_lpm_no_lpmx): Likewise.
2035 (avr_out_lpm): Likewise.
2036 (avr_out_xload): Likewise.
2037 (output_movqi): Likewise.
2038 (output_movhi): Likewise.
2039 (out_movqi_r_mr): Likewise.
2040 (out_movhi_r_mr): Likewise.
2041 (out_movsi_r_mr): Likewise.
2042 (out_movsi_mr_r): Likewise.
2043 (output_movsisf): Likewise.
2044 (avr_out_load_psi): Likewise.
2045 (avr_out_store_psi): Likewise.
2046 (avr_out_movpsi): Likewise.
2047 (out_movqi_mr_r): Likewise.
2048 (avr_out_movhi_mr_r_xmega): Likewise.
2049 (out_movhi_mr_r): Likewise.
2050 (compare_condition): Likewise for param "insn" and local "next".
2051 (compare_sign_p): Likewise for param "insn".
2052 (compare_diff_p): Likewise.
2053 (compare_eq_p): Likewise.
2054 (avr_out_compare): Likewise.
2055 (avr_out_compare64): Likewise.
2056 (avr_out_tsthi): Likewise.
2057 (avr_out_tstpsi): Likewise.
2058 (avr_out_tstsi): Likewise.
2059 (out_shift_with_cnt): Likewise.
2060 (ashlqi3_out): Likewise.
2061 (ashlhi3_out): Likewise.
2062 (avr_out_ashlpsi3): Likewise.
2063 (ashlsi3_out): Likewise.
2064 (ashrqi3_out): Likewise.
2065 (ashrhi3_out): Likewise.
2066 (avr_out_ashrpsi3): Likewise.
2067 (ashrsi3_out): Likewise.
2068 (lshrqi3_out): Likewise.
2069 (lshrhi3_out): Likewise.
2070 (avr_out_lshrpsi3): Likewise.
2071 (lshrsi3_out): Likewise.
2072 (avr_out_fract): Likewise.
2073 (avr_out_round): Likewise.
2074 (avr_adjust_insn_length): Likewise.
2075 (reg_unused_after): Likewise.
2076 (_reg_unused_after): Likewise.
2077 (avr_compare_pattern): Likewise.
2078 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2079 and locals "branch1", "branch2", "insn2", "jump".
2080 (avr_reorg): Likewise for local "insn".
2081 (avr_2word_insn_p): Likewise for param "insn".
2082 (jump_over_one_insn_p): Likewise.
2083 (avr_out_sbxx_branch): Likewise.
2084 (avr_out_movmem): Likewise.
2086 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2088 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2089 param from rtx to rtx_insn *.
2090 (thumb1_final_prescan_insn): Likewise.
2091 (thumb2_final_prescan_insn): Likewise.
2093 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2095 (struct minipool_node): Likewise for field "insn".
2096 (dump_minipool): Likewise for param "scan".
2097 (create_fix_barrier): Likewise for local "from". Strengthen local
2098 "label" from rtx to rtx_code_label *.
2099 (push_minipool_barrier): Strengthen param "insn" from rtx to
2101 (push_minipool_fix): Likewise.
2102 (note_invalid_constants): Likewise.
2103 (thumb2_reorg): Likewise for local "insn".
2104 (arm_reorg): Likewise.
2105 (thumb2_final_prescan_insn): Likewise for param
2106 "insn" and local "first_insn".
2107 (arm_final_prescan_insn): Likewise for param "insn" and locals
2108 "start_insn", "this_insn".
2109 (arm_debugger_arg_offset): Likewise for param "insn".
2110 (thumb1_emit_multi_reg_push): Likewise for return type and local
2112 (thumb1_final_prescan_insn): Likewise for param "insn".
2113 (thumb_far_jump_used_p): Likewise for local "insn".
2114 (thumb1_expand_prologue): Likewise.
2115 (arm_expand_epilogue_apcs_frame): Likewise.
2116 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2117 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2118 from rtx to rtx_code_label *.
2119 (arm_split_atomic_op): Likewise for local "label".
2120 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2122 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2124 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2125 first param from rtx to rtx_insn *.
2126 (arc_verify_short): Likewise.
2127 (arc_short_long): Likewise.
2128 (arc_need_delay): Likewise.
2130 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2132 (arc_ccfsm_advance): Likewise for param "insn" and locals
2133 "start_insn", "this_insn".
2134 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2135 (arc_ccfsm_post_advance): Likewise for param "insn".
2136 (arc_next_active_insn): Likewise for return type and param "insn".
2137 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2138 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2139 (output_short_suffix): Likewise for local "insn".
2140 (arc_final_prescan_insn): Likewise for param "insn". Remove
2141 now-redundant checked cast.
2142 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2143 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2144 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2145 for use where lc_set became an insn.
2146 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2148 (arc_get_insn_variants): Likewise for local "prev".
2149 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2151 (arc_predicate_delay_insns): Likewise for local "insn".
2152 (arc_pad_return): Likewise for local "prev". For now, add a
2153 checked cast when extracting the insn from "final_sequence".
2154 (arc_short_long): Likewise for param "insn".
2155 (arc_need_delay): Likewise for param "insn" and local "next".
2156 (arc_label_align): Likewise for locals "prev", "next".
2158 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2160 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2161 "insn" from rtx to rtx_insn *.
2162 (alpha_gp_save_rtx): Likewise for local "seq".
2163 (alpha_instantiate_decls): Likewise for local "top".
2164 (get_some_local_dynamic_name): Likewise for local "insn".
2165 (alpha_does_function_need_gp): Likewise.
2166 (set_frame_related_p): Likewise for return type and for locals
2168 (emit_frame_store_1): Likewise for local "insn".
2169 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2170 (alpha_end_function): Likewise for local "insn".
2171 (alpha_output_mi_thunk_osf): Likewise.
2172 (alphaev4_insn_pipe): Likewise for param "insn".
2173 (alphaev5_insn_pipe): Likewise.
2174 (alphaev4_next_group): Likewise for return type and param 1
2176 (alphaev5_next_group): Likewise.
2177 (alpha_align_insns_1): Likewise for return type and param 1 of
2178 callback param "next_group", and for locals "i", "next", "prev",
2179 "where", "where2", "insn".
2181 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2183 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2184 rather than modifying the stmt.
2186 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2188 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2189 cgraph_state conversion.
2191 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2193 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2194 Strengthen local "insns" from rtx to rtx_insn *.
2195 (aarch64_set_frame_expr): Likewise for local "insn".
2196 (aarch64_save_or_restore_fprs): Likewise.
2197 (aarch64_save_or_restore_callee_save_registers): Likewise.
2198 (aarch64_expand_prologue): Likewise.
2199 (aarch64_expand_epilogue): Likewise.
2200 (aarch64_output_mi_thunk): Likewise.
2201 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2202 "label2" from rtx to rtx_code_label *.
2203 (aarch64_split_atomic_op): Likewise for local "label".
2205 2014-08-25 Martin Liska <mliska@suse.cz>
2207 * cgraph.h (symtab_node):
2208 (bool needed_p (void)): created from decide_is_symbol_needed
2209 (bool referred_to_p (void)): created from referred_to_p
2210 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2211 * cgraph.h (cgraph_node):
2212 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2213 (void expand (void)): created from expand_function
2214 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2215 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2216 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2217 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2218 * cgraph.h (varpool_node):
2219 (static void add (tree decl): created from varpool_add_new_variable
2220 * cgraph.h (cgraph_edge):
2222 (void remove_caller (void)): created from cgraph_edge_remove_caller
2223 (void remove_callee (void)): created from cgraph_edge_remove_callee
2224 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2225 created from cgraph_set_call_stmt
2226 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2227 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2228 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2229 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2230 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2231 created from cgraph_speculative_call_info
2232 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2233 int freq_scale, bool update_original)): created from cgraph_clone_edge
2234 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2235 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2236 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2237 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2238 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2239 (static void rebuild_references (void)): created from cgraph_rebuild_references
2240 * cgraph.h (symbol_table):
2241 (create_reference): renamed from add_reference
2242 (maybe_create_reference): renamed from maybe_add_reference
2243 (void register_symbol (symtab_node *node)): new function
2244 (void clear_asm_symbols (void)): new function
2245 (void unregister (symtab_node *node)): new function
2246 (void release_symbol (cgraph_node *node, int uid)): new function
2247 (cgraph_node * allocate_cgraph_symbol (void)): new function
2248 (void initialize (void)): created from cgraph_init
2249 (symtab_node *first_symbol (void)):new function
2250 (asm_node *first_asm_symbol (void)):new function
2251 (symtab_node *first_defined_symbol (void)):new function
2252 (varpool_node *first_variable (void)):new function
2253 (varpool_node *next_variable (varpool_node *node)):new function
2254 (varpool_node *first_static_initializer (void)):new function
2255 (varpool_node *next_static_initializer (varpool_node *node)):new function
2256 (varpool_node *first_defined_variable (void)):new function
2257 (varpool_node *next_defined_variable (varpool_node *node)):new function
2258 (cgraph_node *first_defined_function (void)):new function
2259 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2260 (cgraph_node *first_function (void)):new function
2261 (cgraph_node *next_function (cgraph_node *node)):new function
2262 (cgraph_node *first_function_with_gimple_body (void)):new function
2263 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2264 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2265 created from symtab_remove_unreachable_nodes
2266 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2267 (void process_new_functions (void)): created from cgraph_process_new_functions
2268 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2269 (bool output_variables (void)): created from varpool_node::output_variables
2270 (void output_asm_statements (void)): created from output_asm_statements
2271 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2272 (void compile (void)): created from compile
2273 (void output_weakrefs (void)): created from output_weakrefs
2274 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2275 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2276 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2277 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2278 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2279 created from cgraph_next_function_with_gimple_body
2280 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2281 created from cgraph_remove_edge_removal_hook
2282 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2283 created from cgraph_add_node_removal_hook
2284 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2285 created from cgraph_remove_node_removal_hook
2286 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2287 created from varpool_add_node_removal_hook
2288 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2289 created from varpool_remove_node_removal_hook
2290 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2291 created from cgraph_add_function_insertion_hook
2292 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
2293 created from cgraph_remove_function_insertion_hook
2294 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
2295 created from varpool_add_variable_insertion_hook
2296 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
2297 created from varpool_remove_variable_insertion_hook
2298 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
2299 created from cgraph_add_edge_duplication_hook
2300 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
2301 created from cgraph_remove_edge_duplication_hook
2302 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
2303 created from cgraph_add_node_duplication_hook
2304 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
2305 created from cgraph_remove_node_duplication_hook
2306 (void call_edge_removal_hooks (cgraph_edge *e)):
2307 created from cgraph_call_edge_removal_hooks
2308 (void call_cgraph_insertion_hooks (cgraph_node *node)):
2309 created from call_function_insertion_hooks
2310 (void call_cgraph_removal_hooks (cgraph_node *node)):
2311 created from cgraph_call_node_removal_hooks
2312 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
2313 created from cgraph_node::call_duplication_hooks
2314 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
2315 created from cgraph_call_edge_duplication_hooks
2316 (void call_varpool_removal_hooks (varpool_node *node)):
2317 created from varpool_call_node_removal_hooks
2318 (void call_varpool_insertion_hooks (varpool_node *node)):
2319 created from varpool_call_variable_insertion_hooks
2320 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
2321 created from insert_to_assembler_name_hash
2322 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
2323 created from unlink_from_assembler_name_hash
2324 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
2325 created from symtab_prevail_in_asm_name_hash
2326 (void symtab_initialize_asm_name_hash (void)):
2327 created from symtab_initialize_asm_name_hash
2328 (void change_decl_assembler_name (tree decl, tree name)):
2329 created from change_decl_assembler_name
2330 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
2331 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
2332 created from decl_assembler_name_hash
2333 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
2334 created from decl_assembler_name_equal
2335 (static hashval_t hash_node_by_assembler_name (const void *p)):
2336 created from hash_node_by_assembler_name
2337 (static int eq_assembler_name (const void *p1, const void *p2)):
2338 created from eq_assembler_name
2340 2014-08-25 Marek Polacek <polacek@redhat.com>
2342 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
2344 2014-08-25 Petr Murzin <petr.murzin@intel.com>
2346 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
2347 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
2348 SWI1248_AVX512BW mode iterator.
2350 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
2353 * config/sh/predicates.md (general_extend_operand): Disable
2354 TRUNCATE before reload completes.
2356 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
2358 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
2360 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
2363 * config/sh/sh.opt (musermode): Allow negative form.
2364 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
2365 targets that don't support it.
2366 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
2367 Document -mno-usermode option.
2369 2014-08-24 Kito Cheng <kito@0xlab.org>
2371 * system.h (CALLER_SAVE_PROFITABLE): Poison.
2372 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
2373 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
2374 * doc/tm.texi: Regenerate.
2376 2014-08-24 Kito Cheng <kito@0xlab.org>
2378 * ira.c: Fix typo in comment.
2380 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2382 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
2383 Deprecate c++1y. Change language to reflect greater confidence in C++14.
2385 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
2388 * config/pa/pa.c (pa_output_function_epilogue): Don't set
2389 last_address when the current function is a thunk.
2390 (pa_asm_output_mi_thunk): When we don't have named sections or they
2391 are not being used, check that thunk can reach the stub table with a
2394 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2396 * web.c (union_match_dups): Strengthen param "insn" from rtx to
2398 (pass_web::execute): Likewise for local "insn".
2400 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2402 * var-tracking.c (struct micro_operation_def): Strengthen field
2403 "insn" from rtx to rtx_insn *.
2404 (struct emit_note_data_def): Likewise.
2405 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
2406 (vt_stack_adjustments): Likewise for local "insn".
2407 (adjust_insn): Likewise for param "insn".
2408 (val_store): Likewise.
2409 (val_resolve): Likewise.
2410 (struct count_use_info): Likewise for field "insn".
2411 (log_op_type): Likewise for param "insn".
2412 (reverse_op): Likewise.
2413 (prepare_call_arguments): Likewise.
2414 (add_with_sets): The initial param takes an insn, but we can't
2415 yet strengthen it from rtx to rtx_insn * since it's used as a
2416 cselib_record_sets_hook callback. For now rename initial param
2417 from "insn" to "uncast_insn", and introduce a local "insn" of
2418 the stronger rtx_insn * type, with a checked cast.
2419 (compute_bb_dataflow): Strengthen local "insn" from rtx to
2421 (emit_note_insn_var_location): Likewise.
2422 (emit_notes_for_changes): Likewise.
2423 (emit_notes_for_differences): Likewise.
2424 (next_non_note_insn_var_location): Likewise for return type and
2426 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
2427 (vt_initialize): Likewise for local "insn".
2428 (delete_debug_insns): Likewise for locals "insn" and "next".
2430 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2432 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
2434 (mark_constant_pool): Likewise for local "insn".
2436 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2438 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
2440 (dead_debug_promote_uses): Likewise.
2441 (dead_debug_insert_temp): Likewise.
2443 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2445 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
2446 from const_rtx to const rtx_insn *.
2447 (store_killed_after): Likewise. Strengthen locals "last", "act"
2448 from rtx to rtx_insn *.
2449 (store_killed_before): Strengthen param "insn" from const_rtx to
2450 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
2451 (find_moveable_store): Strengthen param "insn" from rtx to
2453 (compute_store_table): Likewise for local "insn".
2454 (insert_insn_start_basic_block): Likewise for param "insn" and
2455 locals "prev", "before", "insn".
2456 (insert_store): For now, add a checked cast to rtx_insn * on the
2457 result of gen_move_insn.
2458 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
2460 (replace_store_insn): Likewise. For now, add a checked cast to
2461 rtx_insn * on the result of gen_move_insn.
2463 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2465 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
2467 (expand_sjlj_dispatch_table): Likewise.
2469 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2471 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
2472 "insn" from rtx to rtx_insn *.
2474 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2476 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
2477 "insn" from rtx to rtx_insn *.
2478 (dup_block_and_redirect): Likewise for param 3 "before".
2480 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
2481 from rtx to rtx_insn *.
2482 (move_insn_for_shrink_wrap): Likewise.
2483 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
2484 (dup_block_and_redirect): Likewise for param "before" and local
2486 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
2488 (convert_to_simple_return): Likewise for local "start".
2490 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
2491 Strengthen local "insn" from rtx to rtx_insn *, for use when
2492 invoking requires_stack_frame_p.
2494 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2496 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
2498 (speculate_expr): Likewise for locals "orig_insn_rtx",
2500 (eq_transformed_insns): Likewise for locals "i1", "i2".
2501 (check_for_new_jump): Likewise for return type and local "end".
2502 (find_new_jump): Likewise for return type and local "jump".
2503 (sel_split_edge): Likewise for local "jump".
2504 (sel_create_recovery_block): Likewise.
2505 (sel_redirect_edge_and_branch_force): Likewise.
2506 (sel_redirect_edge_and_branch): Likewise.
2508 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2510 * sel-sched.c (substitute_reg_in_expr): Strengthen local
2511 "new_insn" from rtx to rtx_insn *.
2512 (create_insn_rtx_with_rhs): Likewise for return type and for local
2514 (create_insn_rtx_with_lhs): Likewise.
2515 (create_speculation_check): Likewise for local "insn_rtx".
2516 (implicit_clobber_conflict_p): Likewise for local "insn".
2517 (get_expr_cost): Likewise.
2518 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
2519 (move_cond_jump): Likewise for locals "next", "prev", "link",
2520 "head", "from", "to".
2522 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2524 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
2525 "next" from rtx to rtx_insn *.
2526 (find_conditional_protection): Likewise for local "next".
2527 (is_conditionally_protected): Likewise for local "insn1".
2528 (is_pfree): Likewise for locals "insn1", "insn2".
2530 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2532 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
2533 from rtx to rtx_insn *.
2535 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
2536 locals "insn1", "insn2" from rtx to rtx_insn *.
2537 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
2538 locals "insn", "prev", "last_jump", "next_tail".
2539 (schedule_ebb): Likewise for params "head", "tail".
2540 (schedule_ebbs): Likewise for locals "tail", "head".
2542 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
2543 to rtx_insn on "last_insn" in one of the invocations of
2546 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2548 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
2549 "elem", "insn" from rtx to rtx_insn *.
2550 (change_spec_dep_to_hard): Likewise.
2551 (get_back_and_forw_lists): Likewise for local "con".
2552 (sd_add_dep): Likewise for locals "elem", "insn".
2553 (sd_resolve_dep): Likewise for locals "pro", "con".
2554 (sd_unresolve_dep): Likewise.
2555 (sd_delete_dep): Likewise.
2556 (chain_to_prev_insn): Likewise for local "pro".
2557 (find_inc): Likewise for locals "pro", "con".
2559 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2561 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
2563 (reg_set_between_p): Strengthen local "insn" from const_rtx to
2565 (modified_between_p): Strengthen local "insn" from rtx to
2567 (remove_reg_equal_equiv_notes_for_regno): Likewise.
2568 (keep_with_call_p): Strengthen local "i2" from const_rtx to
2571 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2573 * resource.c (next_insn_no_annul): Strengthen local "next" from
2575 (mark_referenced_resources): Likewise for local "insn".
2577 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2579 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
2581 (find_reloads): Likewise for param 1.
2582 (subst_reloads): Likewise for sole param.
2583 (find_equiv_reg): Likwise for param 2.
2584 (regno_clobbered_p): Likwise for param 2.
2585 (reload): Likewise for param 1.
2587 * caller-save.c (save_call_clobbered_regs): Strengthen local
2588 "insn" from rtx to rtx_insn *.
2589 (insert_one_insn): Likewise for local "insn".
2591 * reload.c (this_insn): Likewise for this global.
2592 (find_reloads): Likewise for param "insn".
2593 (find_reloads_toplev): Likewise.
2594 (find_reloads_address): Likewise.
2595 (subst_reg_equivs): Likewise.
2596 (update_auto_inc_notes): Likewise.
2597 (find_reloads_address_1): Likewise.
2598 (find_reloads_subreg_address): Likewise.
2599 (subst_reloads): Likewise.
2600 (find_equiv_reg): Likewise, also for local "p".
2601 (regno_clobbered_p): Likewise for param "insn".
2603 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
2605 (spill_reg_store): Likewise for the elements of this array.
2606 (remove_init_insns): Likewise for local "equiv_insn".
2607 (will_delete_init_insn_p): Likewise for param "insn".
2608 (reload): Likewise for param ""first" and local "insn".
2609 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
2611 (calculate_elim_costs_all_insns): Likewise.
2612 (delete_caller_save_insns): Likewise.
2613 (spill_failure): Likewise for param "insn".
2614 (delete_dead_insn): Likewise.
2615 (set_label_offsets): Likewise.
2616 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
2618 (elimination_costs_in_insn): Likewise for param "insn".
2619 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
2620 when referring to an insn.
2621 (set_initial_label_offsets): Likewise.
2622 (set_offsets_for_label): Strengthen param "insn" from rtx to
2624 (init_eliminable_invariants): Likewise for param "first" and local
2626 (fixup_eh_region_note): Likewise for param "insn".
2627 (reload_as_needed): Likewise for locals "prev", "insn",
2628 "old_next", "old_prev", "next".
2629 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
2631 (reload_inheritance_insn): Strengthen elements of this array from
2633 (failed_reload): Likewise for param "insn".
2634 (choose_reload_regs): Likewise for local "insn". Replace use of
2635 NULL_RTX with NULL when referring to an insn.
2636 (input_reload_insns): Strengthen elements of this array from rtx
2638 (other_input_address_reload_insns): Likewise for this global.
2639 (other_input_reload_insns): Likewise for this global.
2640 (input_address_reload_insns): Likwise for the elements of this
2642 (inpaddr_address_reload_insns): Likwise for the elements of this
2644 (output_reload_insns): Likewise for the elements of this array.
2645 (output_address_reload_insns): Likewise for the elements of this
2647 (outaddr_address_reload_insns): Likewise for the elements of this
2649 (operand_reload_insns): Likewise for this global.
2650 (other_operand_reload_insns): Likewise for this global.
2651 (other_output_reload_insns): Likewise for the elements of this
2653 (new_spill_reg_store): Likewise for the elements of this
2655 (emit_input_reload_insns): Likewise for locals "insn", "temp".
2656 Strengthen local "where" from rtx * to rtx_insn **.
2657 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
2658 from rtx to rtx_insn *.
2659 (do_input_reload): Likewise for local "insn".
2660 (do_output_reload): Likewise for local "insn".
2661 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
2662 (emit_insn_if_valid_for_reload): Likewise for return type and local
2663 "last". Add checked cast to rtx_insn when returning "insn" since
2664 this has been through emit_insn.
2665 (gen_reload): Strengthen return type and locals "last", "insn", "set"
2666 from rtx to rtx_insn *. Add checked cast to rtx_insn when
2667 returning "insn" since it's been through
2668 emit_insn_if_valid_for_reload at this point.
2669 (delete_output_reload): Strengthen param "insn" and locals
2670 "output_reload_insn", "i2" from rtx to rtx_insn *.
2671 (delete_address_reloads): Likewise for params "dead_insn",
2672 "current_insn" and locals "prev", "next".
2673 (delete_address_reloads_1): Likewise for params "dead_insn",
2674 "current_insn" and locals "prev", "i2".
2675 (inc_for_reload): Likewise for locals "last", "add_insn".
2676 (add_auto_inc_notes): Strengthen param "insn" from rtx to
2679 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
2680 param of this duplicate of the prototype from reload.h
2682 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2684 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
2686 (regstat_bb_compute_calls_crossed): Likewise.
2688 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2690 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
2692 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
2694 (regrename_analyze): Strengthen local "insn" from rtx to
2696 (scan_rtx_reg): Likewise for param "insn".
2697 (scan_rtx_address): Likewise.
2698 (scan_rtx): Likewise.
2699 (restore_operands): Likewise.
2700 (record_out_operands): Likewise.
2701 (build_def_use): Likewise for local "insn". Replace use of
2702 NULL_RTX with NULL when dealing with an insn.
2704 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2706 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
2707 * reginfo.c (reg_scan): Likewise, also for local "insn".
2708 (reg_scan_mark_refs): Likewise for param "insn".
2709 (init_subregs_of_mode): Likewise for local "insn".
2711 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2713 * regcprop.c (struct queued_debug_insn_change): Strengthen field
2714 "insn" from rtx to rtx_insn *.
2715 (replace_oldest_value_reg): Likewise for param "insn".
2716 (replace_oldest_value_addr): Likewise.
2717 (replace_oldest_value_mem): Likewise.
2718 (apply_debug_insn_changes): Likewise for local "last_insn".
2719 (copyprop_hardreg_forward_1): Likewise for local "insn".
2721 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2723 * reg-stack.c (next_flags_user): Strengthen return type and param
2724 "insn" from rtx to rtx_insn *.
2725 (straighten_stack): Likewise for param "insn".
2726 (check_asm_stack_operands): Likewise.
2727 (remove_regno_note): Likewise.
2728 (emit_pop_insn): Likewise for return type, param "insn", local
2730 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
2731 "limit" from rtx to rtx_insn *.
2732 (swap_to_top): Likewise for param "insn".
2733 (move_for_stack_reg): Likewise.
2734 (move_nan_for_stack_reg): Likewise.
2735 (swap_rtx_condition): Likewise.
2736 (compare_for_stack_reg): Likewise.
2737 (subst_all_stack_regs_in_debug_insn): Likewise.
2738 (subst_stack_regs_pat): Likewise, and local "insn2".
2739 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
2741 (subst_stack_regs): Likewise.
2742 (change_stack): Likewise.
2743 (convert_regs_1): Likewise for locals "insn", "next".
2745 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2747 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
2749 (combine_set_extension): Likewise for param "curr_insn".
2750 (transform_ifelse): Likewise for param "def_insn".
2751 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
2752 from vec<rtx> * to vec<rtx_insn *> *.
2753 (is_cond_copy_insn): Likewise for param "insn".
2754 (struct ext_state): Strengthen the four vec fields from vec<rtx>
2756 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
2757 local "def_insn" from rtx to rtx_insn *.
2758 (get_sub_rtx): Likewise for param "def_insn".
2759 (merge_def_and_ext): Likewise.
2760 (combine_reaching_defs): Likewise.
2761 (add_removable_extension): Likewise for param "insn".
2762 (find_removable_extensions): Likewise for local "insn".
2763 (find_and_remove_re): Likewise for locals "curr_insn" and
2764 "def_insn". Strengthen locals "reinsn_del_list" and
2765 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
2767 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2769 * recog.c (split_insn): Strengthen param "insn" and locals
2770 "first", "last" from rtx to rtx_insn *.
2771 (split_all_insns): Likewise for locals "insn", "next".
2772 (split_all_insns_noflow): Likewise.
2774 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2776 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
2778 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
2779 (debug_rtx_find): Likewise for param 1 "x".
2781 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
2782 const_rtx to const rtx_insn *. Likewise for local "insn".
2783 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
2784 (debug_rtx_find): Likewise for param 1 "x".
2785 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
2786 from const_rtx to const rtx_insn * within the appropriate cases of
2787 the switch statement.
2789 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
2790 Strengthen local "insns" from rtx to rtx_insn * since this is
2791 passed to a call to debug_rtx_list.
2793 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2795 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
2798 * function.c (stack_protect_epilogue): Add checked cast to
2799 rtx_insn for now when invoking predict_insn_def.
2801 * predict.c (predict_insn): Strengthen param "insn" from rtx to
2803 (predict_insn_def): Likewise.
2804 (rtl_predict_edge): Likewise for local "last_insn".
2805 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
2807 (combine_predictions_for_insn): Strengthen param "insn" from rtx
2809 (bb_estimate_probability_locally): Likewise for local "last_insn".
2810 (expensive_function_p): Likewise for local "insn".
2812 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
2813 local "jmp", since this is used when invoking predict_insn_def.
2815 2014-08-22 Marek Polacek <polacek@redhat.com>
2818 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
2820 2014-08-22 Marek Polacek <polacek@redhat.com>
2823 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
2824 a comparison in parens.
2825 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
2828 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2830 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
2833 * cprop.c (fis_get_condition): Likewise.
2835 * postreload.c (reload_cse_regs): Likewise for param "first".
2836 (reload_cse_simplify): Likewise for param "insn".
2837 (reload_cse_regs_1): Likewise for local "insn".
2838 (reload_cse_simplify_set): Likewise for param "insn".
2839 (reload_cse_simplify_operands): Likewise.
2840 (struct reg_use): Likewise for field "insn".
2841 (reload_combine_purge_insn_uses): Likewise for param "insn".
2842 (fixup_debug_insns): Likewise for params "from", "to" and local
2844 (try_replace_in_use): Likewise for local "use_insn".
2845 (reload_combine_recognize_const_pattern): Likewise for param
2846 "insn" and locals "add_moved_after_insn", "use_insn".
2847 (reload_combine_recognize_pattern): Likewise for param "insn" and
2849 (reload_combine): Likewise for locals "insn", "prev".
2850 (reload_combine_note_use): Likewise for param "insn".
2851 (move2add_use_add2_insn): Likewise.
2852 (move2add_use_add3_insn): Likewise.
2853 (reload_cse_move2add): Likewise, also for local "next".
2854 (move2add_note_store): Likewise for local "insn".
2856 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2858 * postreload-gcse.c (struct occr): Strengthen field "insn" from
2860 (struct unoccr): Likewise.
2861 (struct modifies_mem): Likewise.
2862 (alloc_mem): Likewise for local "insn".
2863 (insert_expr_in_table): Likewise for param "insn".
2864 (dump_expr_hash_table_entry): Likewise for local "insn".
2865 (oprs_unchanged_p): Likewise for param "insn".
2866 (load_killed_in_block_p): Likewise for local "setter".
2867 (record_last_reg_set_info): Likewise for param "insn".
2868 (record_last_reg_set_info_regno): Likewise.
2869 (record_last_mem_set_info): Likewise.
2870 (record_last_set_info): Likewise for local "last_set_insn".
2871 (record_opr_changes): Likewise for param "insn".
2872 (hash_scan_set): Likewise.
2873 (compute_hash_table): Likewise for local "insn".
2874 (get_avail_load_store_reg): Likewise for param "insn".
2875 (eliminate_partially_redundant_load): Likewise, also for locals
2876 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
2878 (eliminate_partially_redundant_loads): Likewise for local "insn".
2880 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2882 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
2884 (expand_binop): Likewise for locals "entry_last", "last", "insns"
2885 (expand_twoval_unop): Likewise for locals entry_last", "last".
2886 (expand_twoval_binop): Likewise.
2887 (expand_twoval_binop_libfunc): Likewise for local "insns".
2888 (widen_leading): Likewise for local "last".
2889 (expand_doubleword_clz): Likewise for local "seq". Strengthen
2890 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
2891 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
2892 (expand_parity): Likewise for locals "last" and "seq".
2893 (expand_ffs): Likewise for local "seq". Strengthen local
2894 "nonzero_label" from rtx to rtx_code_label *.
2895 (expand_absneg_bit): Strengthen local "insns" from rtx to
2897 (expand_unop_direct): Likewise for local "last".
2898 (expand_unop): Likewise for locals "last", "insns".
2899 (expand_abs_nojump): Likewise for local "last".
2900 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
2901 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
2903 (expand_copysign_absneg): Strengthen local "label" from rtx to
2905 (expand_copysign_bit): Strengthen local "insns" from rtx to
2907 (struct no_conflict_data): Likewise for fields "first", "insn".
2908 (emit_libcall_block_1): Likewise for param "insns" and locals
2909 "next", "last", "insn".
2910 (emit_libcall_block): For now, add a checked cast to rtx_insn *
2911 on "insns" when invoking emit_libcall_block_1. Ultimately we
2912 want to strengthen insns itself.
2913 (prepare_cmp_insn): Strengthen local "last" from rtx to
2915 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
2916 (prepare_float_lib_cmp): Likewise for local "insns".
2917 (emit_conditional_move): Likewise for local "last".
2918 (emit_conditional_add): Likewise.
2919 (have_sub2_insn): Likewise for local "seq".
2920 (expand_float): Likewise for local "insns". Strengthen locals
2921 "label", "neglabel" from rtx to rtx_code_label *.
2922 (expand_fix): Likewise for locals "last", "insn", "insns" (to
2923 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
2924 (expand_fixed_convert): Likewise for local "insns" (to
2926 (expand_sfix_optab): Likewise for local "last".
2927 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
2928 to rtx_code_label *.
2929 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
2930 from rtx to rtx_insn *.
2931 (expand_atomic_fetch_op): Likewise for local "insn".
2932 (maybe_legitimize_operand_same_code): Likewise for local "last".
2933 (maybe_legitimize_operands): Likewise.
2935 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2937 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
2938 "insn" from rtx to rtx_insn *.
2939 (ps_rtl_insn): Likewise for return type.
2940 (doloop_register_get): Likewise for params "head", "tail" and
2941 locals "insn", "first_insn_not_to_check".
2942 (schedule_reg_move): Likewise for local "this_insn".
2943 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
2944 of gen_move_insn for now.
2945 (reset_sched_times): Strengthen local "insn" from rtx to
2947 (permute_partial_schedule): Likewise.
2948 (duplicate_insns_of_cycles): Likewise for local "u_insn".
2949 (dump_insn_location): Likewise for param "insn".
2950 (loop_canon_p): Likewise for local "insn".
2951 (sms_schedule): Likewise.
2952 (print_partial_schedule): Likewise.
2953 (ps_has_conflicts): Likewise.
2955 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2957 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
2958 "tailp" from rtx * to rtx_insn **.
2960 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
2961 from rtx to rtx_insn *.
2962 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
2963 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
2964 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
2966 * modulo-sched.c (const_iteration_count): Strengthen return type
2967 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
2968 use of NULL_RTX with NULL when working with insns.
2969 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
2971 (sms_schedule): Likewise.
2972 * sched-rgn.c (init_ready_list): Likewise, also for locals
2973 "src_head" and "src_next_tail".
2974 (compute_block_dependences): Likewise.
2975 (free_block_dependencies): Likewise.
2976 (debug_rgn_dependencies): Likewise.
2977 (free_rgn_deps): Likewise.
2978 (compute_priorities): Likewise.
2979 (schedule_region): Likewise.
2980 * sel-sched.c (find_ebb_boundaries): Likewise.
2982 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
2983 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
2985 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2987 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
2988 from rtx to rtx_insn *.
2989 (new_seginfo): Likewise for param "insn".
2990 (create_pre_exit): Likewise for locals "last_insn",
2991 "before_return_copy", "return_copy".
2992 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
2995 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2997 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
2998 from rtx to rtx_insn *.
2999 (lra_push_insn): Likewise for 1st param.
3000 (lra_push_insn_and_update_insn_regno_info): Likewise.
3001 (lra_pop_insn): Likewise for return type.
3002 (lra_invalidate_insn_data): Likewise for 1st param.
3003 (lra_set_insn_deleted): Likewise.
3004 (lra_delete_dead_insn): Likewise.
3005 (lra_process_new_insns): Likewise for first 3 params.
3006 (lra_set_insn_recog_data): Likewise for 1st param.
3007 (lra_update_insn_recog_data): Likewise.
3008 (lra_set_used_insn_alternative): Likewise.
3009 (lra_invalidate_insn_regno_info): Likewise.
3010 (lra_update_insn_regno_info): Likewise.
3011 (lra_former_scratch_operand_p): Likewise.
3012 (lra_eliminate_regs_1): Likewise.
3013 (lra_get_insn_recog_data): Likewise.
3015 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3018 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3020 (substitute_within_insn): New.
3021 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3022 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3023 Replace call to "substitute" with call to substitute_within_insn.
3025 * lra-constraints.c (curr_insn): Strengthen from rtx to
3027 (get_equiv_with_elimination): Likewise for param "insn".
3028 (match_reload): Strengthen params "before" and "after" from rtx *
3030 (emit_spill_move): Likewise for return type. Add a checked cast
3031 to rtx_insn * on result of gen_move_insn for now.
3032 (check_and_process_move): Likewise for local "before". Replace
3033 NULL_RTX with NULL when referring to insns.
3034 (process_addr_reg): Strengthen params "before" and "after" from
3035 rtx * to rtx_insn **.
3036 (insert_move_for_subreg): Likewise.
3037 (simplify_operand_subreg): Strengthen locals "before" and "after"
3038 from rtx to rtx_insn *.
3039 (process_address_1): Strengthen params "before" and "after" from
3040 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3042 (process_address): Strengthen params "before" and "after" from
3043 rtx * to rtx_insn **.
3044 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3045 (curr_insn_transform): Strengthen locals "before" and "after"
3046 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3048 (loc_equivalence_callback): Update cast of "data", changing
3049 resulting type from rtx to rtx_insn *.
3050 (substitute_pseudo_within_insn): New.
3051 (inherit_reload_reg): Strengthen param "insn" from rtx to
3052 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3053 NULL when referring to insns. Add a checked cast to rtx_insn *
3054 when using usage_insn to invoke lra_update_insn_regno_info.
3055 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3056 likewise for locals "restore", "save". Add checked casts to
3057 rtx_insn * when using usage_insn to invoke
3058 lra_update_insn_regno_info and lra_process_new_insns. Replace
3059 NULL_RTX with NULL when referring to insns.
3060 (split_if_necessary): Strengthen param "insn" from rtx to
3062 (update_ebb_live_info): Likewise for params "head", "tail" and local
3064 (get_last_insertion_point): Likewise for return type and local "insn".
3065 (get_live_on_other_edges): Likewise for local "last".
3066 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3067 "prev_insn", "next_insn", "restore".
3068 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3069 (undo_optional_reloads): Likewise for local "insn".
3071 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3073 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3075 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3077 (spill_pseudos): Likewise for local "insn".
3078 (init_elimination): Likewise.
3079 (process_insn_for_elimination): Likewise for param "insn".
3081 * lra-lives.c (curr_insn): Likewise.;
3083 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3084 (remove_pseudos): Likewise for param "insn".
3085 (spill_pseudos): Likewise for local "insn".
3086 (lra_final_code_change): Likewise for locals "insn", "curr".
3088 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3089 (lra_set_insn_deleted): Likewise.
3090 (lra_delete_dead_insn): Likewise, and for local "prev".
3091 (new_insn_reg): Likewise for param "insn".
3092 (lra_set_insn_recog_data): Likewise.
3093 (lra_update_insn_recog_data): Likewise.
3094 (lra_set_used_insn_alternative): Likewise.
3095 (get_insn_freq): Likewise.
3096 (invalidate_insn_data_regno_info): Likewise.
3097 (lra_invalidate_insn_regno_info): Likewise.
3098 (lra_update_insn_regno_info): Likewise.
3099 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3101 (lra_push_insn_1): Strengthen param "insn" from rtx to
3103 (lra_push_insn): Likewise.
3104 (lra_push_insn_and_update_insn_regno_info): Likewise.
3105 (lra_pop_insn): Likewise for return type and local "insn".
3106 (push_insns): Likewise for params "from", "to", and local "insn".
3107 (setup_sp_offset): Likewise for params "from", "last" and locals
3109 (lra_process_new_insns): Likewise for params "insn", "before",
3110 "after" and local "last".
3111 (struct sloc): Likewise for field "insn".
3112 (lra_former_scratch_operand_p): Likewise for param "insn".
3113 (remove_scratches): Likewise for locals "insn", "last".
3114 (check_rtl): Likewise for local "insn".
3115 (add_auto_inc_notes): Likewise for param "insn".
3116 (update_inc_notes): Likewise for local "insn".
3117 (lra): Replace NULL_RTX with NULL when referring to insn.
3119 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3121 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3123 (resolve_reg_notes): Likewise.
3124 (resolve_simple_move): Likewise for return type, param "insn", and
3125 locals "insns", "minsn".
3126 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3127 (resolve_use): Likewise.
3128 (resolve_debug): Likewise.
3129 (find_decomposable_shift_zext): Likewise.
3130 (resolve_shift_zext): Likewise for return type, param "insn", and
3131 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3132 (decompose_multiword_subregs): Likewise for local "insn",
3133 "orig_insn", "decomposed_shift", "end".
3135 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3137 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3138 param "insns" from rtx to rtx_insn *.
3140 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3142 (struct iv_to_split): Likewise.
3143 (loop_exit_at_end_p): Likewise for local "insn".
3144 (split_edge_and_insert): Likewise for param "insns".
3145 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3146 and locals "seq", "jump".
3147 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3148 "branch_code"; update invocations of compare_and_jump_seq to
3149 eliminate NULL_RTX in favor of NULL.
3150 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3152 (reset_debug_uses_in_loop): Likewise.
3153 (analyze_insn_to_expand_var): Likewise for param "insn".
3154 (analyze_iv_to_split_insn): Likewise.
3155 (analyze_insns_in_loop): Likewise for local "insn".
3156 (insert_base_initialization): Likewise for param
3157 "insn" and local "seq".
3158 (split_iv): Likewise for param "insn" and local "seq".
3159 (expand_var_during_unrolling): Likewise for param "insn".
3160 (insert_var_expansion_initialization): Likewise for local "seq".
3161 (combine_var_copies_in_loop_exit): Likewise.
3162 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3164 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3165 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3168 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3170 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3172 (iv_analyze_result): Likewise.
3173 (iv_analyze_expr): Likewise.
3176 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3177 local "def_insn" from rtx to rtx_insn *.
3178 (get_biv_step_1): Likewise for local "insn".
3179 (iv_analyze_expr): Likewise for param "insn".
3180 (iv_analyze_def): Likewise for local "insn".
3181 (iv_analyze_op): Likewise for param "insn".
3182 (iv_analyze): Likewise.
3183 (iv_analyze_result): Likewise.
3185 (suitable_set_for_replacement): Likewise.
3186 (simplify_using_initial_values): Likewise for local "insn".
3187 (iv_number_of_iterations): Likewise for param "insn".
3188 (check_simple_exit): Add checked cast to rtx_insn when invoking
3189 iv_number_of_iterations for now (until get_condition is
3192 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3193 "insn" from rtx to rtx_insn *.
3194 (analyze_insns_in_loop): Likewise for local "insn".
3196 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3198 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3200 (struct invariant): Likewise.
3201 (hash_invariant_expr_1): Likewise for param "insn".
3202 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3203 (find_exits): Likewise for local "insn".
3204 (create_new_invariant): Likewise for param "insn".
3205 (check_dependencies): Likewise.
3206 (find_invariant_insn): Likewise.
3207 (record_uses): Likewise.
3208 (find_invariants_insn): Likewise.
3209 (find_invariants_bb): Likewise for local "insn".
3210 (get_pressure_class_and_nregs): Likewise for param "insn".
3211 (calculate_loop_reg_pressure): Likewise for local "insn".
3213 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3215 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3217 (add_test): Likewise for locals "seq", "jump".
3218 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3220 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3222 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3224 (rebuild_jump_labels_chain): Likewise for param "chain".
3226 * cfgexpand.c (pass_expand::execute): Add checked cast to
3227 rtx_insn * when calling rebuild_jump_labels_chain in region where
3228 we know e->insns.r is non-NULL.
3230 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3232 (rebuild_jump_labels): Likewise.
3233 (rebuild_jump_labels_chain): Likewise for param "chain".
3234 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3235 (init_label_info): Likewise for param "f".
3236 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3237 "prev_nonjump_insn".
3238 (mark_all_labels): Likewise for param "f" and locals "insn",
3239 "prev_nonjump_insn".
3241 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3243 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3244 from rtx to rtx_insn *insn.
3245 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3246 (ira_add_allocno_copy): Likewise.
3247 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3249 (ira_create_copy): Likewise.
3250 (ira_add_allocno_copy): Likewise.
3251 (create_bb_allocnos): Likewise for local "insn".
3252 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3253 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3254 process_regs_for_copy for rtx_insn * param.
3255 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3256 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3257 process_regs_for_copy for rtx_insn * param.
3258 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3259 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3260 (record_operand_costs): Likewise.
3261 (scan_one_insn): Likewise for return type, and for param "insn".
3262 (process_bb_for_costs): Likewise for local "insn".
3263 (process_bb_node_for_hard_reg_moves): Likewise.
3264 * ira-emit.c (struct move): Likewise for field "insn".
3265 (create_move): Eliminate use of NULL_RTX when dealing with an
3267 (emit_move_list): Strengthen return type and locals "result",
3268 "insn" from rtx to rtx_insn *insn.
3269 (emit_moves): Likewise for locals "insns", "tmp".
3270 (ira_emit): Likewise for local "insn".
3271 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3273 (find_call_crossed_cheap_reg): Likewise.
3274 (process_bb_node_lives): Likewise for local "insn".
3275 * ira.c (decrease_live_ranges_number): Likewise.
3276 (compute_regs_asm_clobbered): Likewise.
3277 (build_insn_chain): Likewise.
3278 (find_moveable_pseudos): Likewise, also locals "def_insn",
3279 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
3280 to rtx_insn **. Add a checked cast when assigning from
3281 "closest_use" into closest_uses array in a region where we know
3282 it's a non-NULL insn.
3283 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3285 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3286 "last_interesting_insn", "uin".
3287 (move_unallocated_pseudos): Likewise for locals "def_insn",
3288 "move_insn", "newinsn".
3290 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3292 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
3293 Strengthen locals "done_label", "do_error" from rtx to
3295 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
3296 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
3298 (ubsan_expand_si_overflow_neg_check): Likewise for locals
3299 "done_label", "do_error" to rtx_code_label * and local "last" to
3301 (ubsan_expand_si_overflow_mul_check): Likewise for locals
3302 "done_label", "do_error", "large_op0", "small_op0_large_op1",
3303 "one_small_one_large", "both_ops_large", "after_hipart_neg",
3304 "after_lopart_neg", "do_overflow", "hipart_different" to
3305 rtx_code_label * and local "last" to rtx_insn *.
3307 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3309 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
3310 "insn" and "move_insn" from rtx to rtx_insn *.
3312 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3314 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
3316 (cheap_bb_rtx_cost_p): Likewise.
3317 (first_active_insn): Likewise for return type and local "insn".
3318 (last_active_insn): Likewise for return type and locals "insn",
3320 (struct noce_if_info): Likewise for fields "jump", "insn_a",
3322 (end_ifcvt_sequence): Likewise for return type and locals "insn",
3324 (noce_try_move): Likewise for local "seq".
3325 (noce_try_store_flag): Likewise.
3326 (noce_try_store_flag_constants): Likewise.
3327 (noce_try_addcc): Likewise.
3328 (noce_try_store_flag_mask): Likewise.
3329 (noce_try_cmove): Likewise.
3330 (noce_try_minmax): Likewise.
3331 (noce_try_abs): Likewise.
3332 (noce_try_sign_mask): Likewise.
3333 (noce_try_bitop): Likewise.
3334 (noce_can_store_speculate_p): Likewise for local "insn".
3335 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
3337 (check_cond_move_block): Likewise for local "insn".
3338 (cond_move_convert_if_block): Likewise.
3339 (cond_move_process_if_block): Likewise for locals "seq",
3341 (noce_find_if_block): Likewise for local "jump".
3342 (merge_if_block): Likewise for local "last".
3343 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
3344 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
3345 (block_has_only_trap): Likewise for return type and local "trap".
3346 (find_if_case_1): Likewise for local "jump".
3347 (dead_or_predicable): Likewise for locals "head", "end", "jump",
3350 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3352 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
3353 "last_insn", "loop_end" from rtx to rtx_insn *.
3355 * hw-doloop.c (scan_loop): Likewise for local "insn".
3356 (discover_loop): Likewise for param "tail_insn".
3357 (discover_loops): Likewise for local "tail".
3359 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
3360 cast to rtx_insn * when assigning from an rtx local to a
3361 hwloop_info's "last_insn" field.
3363 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3365 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
3366 (add_delay_dependencies): Strengthen local "pro" from rtx to
3368 (recompute_todo_spec): Likewise.
3369 (dep_cost_1): Likewise for locals "insn", "used".
3370 (schedule_insn): Likewise for local "dbg".
3371 (schedule_insn): Likewise for locals "pro", "next".
3372 (unschedule_insns_until): Likewise for local "con".
3373 (restore_pattern): Likewise for local "next".
3374 (estimate_insn_tick): Likewise for local "pro".
3375 (resolve_dependencies): Likewise for local "next".
3376 (fix_inter_tick): Likewise.
3377 (fix_tick_ready): Likewise for local "pro".
3378 (add_to_speculative_block): Likewise for locals "check", "twin",
3380 (sched_extend_bb): Likewise for locals "end", "insn".
3381 (init_before_recovery): Likewise for local "x".
3382 (sched_create_recovery_block): Likewise for local "barrier".
3383 (create_check_block_twin): Likewise for local "pro".
3384 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
3386 (unlink_bb_notes): Update for change to type of bb_header.
3387 Strengthen locals "prev", "label", "note", "next" from rtx to
3389 (clear_priorities): Likewise for local "pro".
3391 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3393 * gcse.c (struct occr): Strengthen field "insn" from rtx to
3395 (test_insn): Likewise for this global.
3396 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
3398 (oprs_anticipatable_p): Likewise.
3399 (oprs_available_p): Likewise.
3400 (insert_expr_in_table): Strengthen param "insn" from rtx to
3402 (hash_scan_set): Likewise.
3403 (hash_scan_clobber): Likewise.
3404 (hash_scan_call): Likewise.
3405 (hash_scan_insn): Likewise.
3406 (compute_hash_table_work): Likewise for local "insn".
3407 (process_insert_insn): Likewise for return type and local "pat".
3408 (insert_insn_end_basic_block): Likewise for locals "new_insn",
3409 "pat", "pat_end", "maybe_cc0_setter".
3410 (pre_edge_insert): Likewise for local "insn".
3411 (pre_insert_copy_insn): Likewise for param "insn".
3412 (pre_insert_copies): Likewise for local "insn".
3413 (struct set_data): Likewise for field "insn".
3414 (single_set_gcse): Likewise for param "insn".
3415 (gcse_emit_move_after): Likewise.
3416 (pre_delete): Likewise for local "insn".
3417 (update_bb_reg_pressure): Likewise for param "from" and local
3419 (should_hoist_expr_to_dom): Likewise for param "from".
3420 (hoist_code): Likewise for local "insn".
3421 (get_pressure_class_and_nregs): Likewise for param "insn".
3422 (calculate_bb_reg_pressure): Likewise for local "insn".
3423 (compute_ld_motion_mems): Likewise.
3425 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3427 * genpeep.c (main): Rename param back from "uncast_ins1" to
3428 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
3431 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
3433 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3436 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
3437 documentation to state it is only for VSX operations.
3439 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
3440 constraint only active if VSX.
3442 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
3443 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
3446 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3448 * fwprop.c (single_def_use_dom_walker::before_dom_children):
3449 Strengthen local "insn" from rtx to rtx_insn *.
3450 (use_killed_between): Likewise for param "target_insn".
3451 (all_uses_available_at): Likewise for param "target_insn" and
3453 (update_df_init): Likewise for params "def_insn", "insn".
3454 (update_df): Likewise for param "insn".
3455 (try_fwprop_subst): Likewise for param "def_insn" and local
3457 (free_load_extend): Likewise for param "insn".
3458 (forward_propagate_subreg): Likewise for param "def_insn" and
3460 (forward_propagate_asm): Likewise for param "def_insn" and local
3462 (forward_propagate_and_simplify): Likewise for param "def_insn"
3463 and local "use_insn".
3464 (forward_propagate_into): Likewise for locals "def_insn" and
3467 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3469 * function.c (emit_initial_value_sets): Strengthen local "seq"
3470 from rtx to rtx_insn *.
3471 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
3473 (instantiate_virtual_regs): Likewise for local "insn".
3474 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
3475 (reorder_blocks_1): Likewise for param "insns" and local "insn".
3476 (expand_function_end): Likewise for locals "insn" and "seq".
3477 (epilogue_done): Likewise for local "insn".
3478 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
3480 (reposition_prologue_and_epilogue_notes): Likewise for locals
3481 "insn", "last", "note", "first".
3482 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
3483 (pass_match_asm_constraints::execute): Likewise for local "insn".
3485 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3487 * output.h (final_scan_insn): Strengthen return type from rtx to
3489 (final_forward_branch_p): Likewise for param.
3490 (current_output_insn): Likewise for this global.
3492 * final.c (rtx debug_insn): Likewise for this variable.
3493 (current_output_insn): Likewise.
3494 (get_attr_length_1): Rename param "insn" to "uncast_insn",
3495 adding "insn" back in as an rtx_insn * with a checked cast, so
3496 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
3498 (compute_alignments): Strengthen local "label" from rtx to
3500 (shorten_branches): Rename param from "first" to "uncast_first",
3501 introducing a new local rtx_insn * "first" using a checked cast to
3502 effectively strengthen "first" from rtx to rtx_insn * without
3503 affecting the type signature. Strengthen locals "insn", "seq",
3504 "next", "label" from rtx to rtx_insn *.
3505 (change_scope): Strengthen param "orig_insn" and local "insn" from
3507 (final_start_function): Rename param from "first" to "uncast_first",
3508 introducing a new local rtx_insn * "first" using a checked cast to
3509 effectively strengthen "first" from rtx to rtx_insn * without
3510 affecting the type signature. Strengthen local "insn" from rtx to
3512 (dump_basic_block_info): Strengthen param "insn" from rtx to
3514 (final): Rename param from "first" to "uncast_first",
3515 introducing a new local rtx_insn * "first" using a checked cast to
3516 effectively strengthen "first" from rtx to rtx_insn * without
3517 affecting the type signature. Strengthen locals "insn", "next"
3518 from rtx to rtx_insn *.
3519 (output_alternate_entry_point): Strengthen param "insn" from rtx to
3521 (call_from_call_insn): Strengthen param "insn" from rtx to
3523 (final_scan_insn): Rename param from "insn" to "uncast_insn",
3524 introducing a new local rtx_insn * "insn" using a checked cast to
3525 effectively strengthen "insn" from rtx to rtx_insn * without
3526 affecting the type signature. Strengthen return type and locals
3527 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
3528 now-redundant checked cast to rtx_insn * from both invocations of
3529 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
3530 introducing a local "call_insn" for use when invoking
3531 call_from_call_insn.
3532 (notice_source_line): Strengthen param "insn" from rtx to
3534 (leaf_function_p): Likewise for local "insn".
3535 (final_forward_branch_p): Likewise.
3536 (leaf_renumber_regs): Likewise for param "first".
3537 (rest_of_clean_state): Likewise for locals "insn" and "next".
3538 (self_recursive_call_p): Likewise for param "insn".
3539 (collect_fn_hard_reg_usage): Likewise for local "insn".
3540 (get_call_fndecl): Likewise for param "insn".
3541 (get_call_cgraph_rtl_info): Likewise.
3542 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
3543 introducing a new local rtx_insn * "insn" using a checked cast to
3544 effectively strengthen "insn" from rtx to rtx_insn * without
3545 affecting the type signature.
3547 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
3548 cast when assigning from param "insn" to current_output_insn.
3549 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
3550 so that we can assign it back to current_output_insn.
3552 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3554 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
3555 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
3556 atmxt540s and atmxt540sreva devices.
3557 * config/avr/avr-tables.opt: Regenerate.
3558 * config/avr/t-multilib: Regenerate.
3559 * doc/avr-mmcu.texi: Regenerate.
3561 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3563 * expr.c (convert_move): Strengthen local "insns" from rtx to
3565 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
3566 "top_label" from rtx to rtx_code_label *.
3567 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
3569 (emit_single_push_insn): Likewise for locals "prev", "last".
3570 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
3571 to rtx_code_label *.
3572 (store_constructor): Likewise for locals "loop_start", "loop_end".
3573 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
3575 (expand_expr_real_2): Likewise.
3576 (expand_expr_real_1): Strengthen local "label" from rtx to
3579 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3581 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
3582 from rtx to rtx_insn *.
3583 (store_bit_field_1): Likewise.
3584 (extract_bit_field_1): Likewise.
3585 (expand_mult_const): Likewise for local "insns".
3586 (expmed_mult_highpart): Strengthen local "label" from rtx to
3588 (expand_smod_pow2): Likewise.
3589 (expand_sdiv_pow2): Likewise.
3590 (expand_divmod): Strengthen locals "last", "insn" from rtx to
3591 rtx_insn *. Strengthen locals "label", "label1", "label2",
3592 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
3593 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
3594 (emit_store_flag): Likewise.
3595 (emit_store_flag_force): Strengthen local "label" from rtx to
3597 (do_cmp_and_jump): Likewise for param "label".
3599 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3601 * explow.c (force_reg): Strengthen local "insn" from rtx to
3603 (adjust_stack_1): Likewise.
3604 (allocate_dynamic_stack_space): Likewise. Strengthen locals
3605 "final_label", "available_label", "space_available" from rtx to
3607 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
3608 (anti_adjust_stack_and_probe): Likewise.
3610 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3612 * except.h (sjlj_emit_function_exit_after): Strengthen param
3613 "after" from rtx to rtx_insn *. This is only called with
3614 result of get_last_insn (in function.c) so type-change should be
3617 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
3618 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
3619 to rtx_insn *. These fields are only used from except.c so this
3620 type-change should be self-contained to this patch.
3622 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
3623 local "last" from rtx to rtx_insn *.
3624 (dw2_build_landing_pads): Likewise for local "seq".
3625 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
3626 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
3627 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
3629 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
3631 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
3632 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
3633 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
3634 referring to an insn. Strengthen local "dispatch_label" from
3635 rtx to rtx_code_label *.
3636 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
3638 (expand_eh_return): Strengthen local "around_label" from
3639 rtx to rtx_code_label *.
3640 (convert_to_eh_region_ranges): Strengthen locals "iter",
3641 "last_action_insn", "first_no_action_insn",
3642 "first_no_action_insn_before_switch",
3643 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
3645 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3647 * dwarf2out.c (last_var_location_insn): Strengthen this variable
3648 from rtx to rtx_insn *.
3649 (cached_next_real_insn): Likewise.
3650 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
3652 (dwarf2out_var_location): Strengthen locals "next_real",
3653 "next_note", "expected_next_loc_note", "last_start", "insn" from
3656 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3658 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
3659 from rtx to rtx_insn *.
3660 (create_pseudo_cfg): Likewise for local "insn".
3662 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3664 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
3665 from rtx to rtx_insn *.
3666 (df_bb_regno_last_def_find): Likewise.
3668 * df-problems.c (df_rd_bb_local_compute): Likewise.
3669 (df_lr_bb_local_compute): Likewise.
3670 (df_live_bb_local_compute): Likewise.
3671 (df_chain_remove_problem): Likewise.
3672 (df_chain_create_bb): Likewise.
3673 (df_word_lr_bb_local_compute): Likewise.
3674 (df_remove_dead_eq_notes): Likewise for param "insn".
3675 (df_note_bb_compute): Likewise for local "insn".
3676 (simulate_backwards_to_point): Likewise.
3677 (df_md_bb_local_compute): Likewise.
3679 * df-scan.c (df_scan_free_bb_info): Likewise.
3680 (df_scan_start_dump): Likewise.
3681 (df_scan_start_block): Likewise.
3682 (df_install_ref_incremental): Likewise for local "insn".
3683 (df_insn_rescan_all): Likewise.
3684 (df_reorganize_refs_by_reg_by_insn): Likewise.
3685 (df_reorganize_refs_by_insn_bb): Likewise.
3686 (df_recompute_luids): Likewise.
3687 (df_bb_refs_record): Likewise.
3688 (df_update_entry_exit_and_calls): Likewise.
3689 (df_bb_verify): Likewise.
3691 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3693 * ddg.h (struct ddg_node): Strengthen fields "insn" and
3694 "first_note" from rtx to rtx_insn *.
3695 (get_node_of_insn): Likewise for param 2 "insn".
3696 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
3698 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
3700 (mem_write_insn_p): Likewise.
3701 (mem_access_insn_p): Likewise.
3702 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
3703 (def_has_ccmode_p): Likewise for param "insn".
3704 (add_cross_iteration_register_deps): Likewise for locals
3705 "def_insn" and "use_insn".
3706 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
3707 (build_intra_loop_deps): Likewise for local "src_insn".
3708 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
3710 (get_node_of_insn): Likewise for param "insn".
3712 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3714 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
3715 (deletable_insn_p): Strengthen param "insn" from rtx to
3716 rtx_insn *. Add checked cast to rtx_call_insn when invoking
3717 find_call_stack_args, since this is guarded by CALL_P (insn).
3718 (marked_insn_p): Strengthen param "insn" from rtx to
3720 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
3721 invoking find_call_stack_args, since this is guarded by
3723 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
3724 rtx_insn *; we know this is an insn since this was called by
3726 (mark_nonreg_stores_2): Likewise.
3727 (mark_nonreg_stores): Strengthen param "insn" from rtx to
3729 (find_call_stack_args): Strengthen param "call_insn" from rtx to
3730 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
3732 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
3733 from rtx to rtx_insn *.
3734 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
3736 (delete_unmarked_insns): Likewise for locals "insn", "next".
3737 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
3738 (mark_reg_dependencies): Likewise for param "insn".
3739 (rest_of_handle_ud_dce): Likewise for local "insn".
3740 (word_dce_process_block): Likewise.
3741 (dce_process_block): Likewise.
3743 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3745 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
3746 from rtx to rtx_insn *.
3747 (struct change_cc_mode_args): Likewise for field "insn".
3748 (this_insn): Strengthen from rtx to rtx_insn *.
3749 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
3751 (validate_canon_reg): Strengthen param "insn" from rtx to
3753 (canon_reg): Likewise.
3754 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
3756 (record_jump_equiv): Strengthen param "insn" from rtx to
3758 (try_back_substitute_reg): Likewise, also for locals "prev",
3760 (find_sets_in_insn): Likewise for param "insn".
3761 (canonicalize_insn): Likewise.
3762 (cse_insn): Likewise. Add a checked cast.
3763 (invalidate_from_clobbers): Likewise for param "insn".
3764 (invalidate_from_sets_and_clobbers): Likewise.
3765 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
3767 (cse_prescan_path): Strengthen local "insn" from rtx to
3769 (cse_extended_basic_block): Likewise for locals "insn" and
3771 (cse_main): Likewise for param "f".
3772 (check_for_label_ref): Likewise for local "insn".
3773 (set_live_p): Likewise for second param ("insn").
3774 (insn_live_p): Likewise for first param ("insn") and for local
3776 (cse_change_cc_mode_insn): Likewise for first param "insn".
3777 (cse_change_cc_mode_insns): Likewise for first and second params
3779 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
3781 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
3784 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
3785 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3786 Anna Tikhonova <anna.tikhonova@intel.com>
3787 Ilya Tocar <ilya.tocar@intel.com>
3788 Andrey Turetskiy <andrey.turetskiy@intel.com>
3789 Ilya Verbin <ilya.verbin@intel.com>
3790 Kirill Yukhin <kirill.yukhin@intel.com>
3791 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3793 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
3795 * config/i386/sse.md
3796 (define_mode_iterator VI248_AVX2): Delete.
3797 (define_mode_iterator VI2_AVX2_AVX512BW): New.
3798 (define_mode_iterator VI48_AVX2): Ditto.
3799 (define_insn <shift_insn><mode>3): Delete.
3800 (define_insn "<shift_insn><mode>3<mask_name>" with
3801 VI2_AVX2_AVX512BW): New.
3802 (define_insn "<shift_insn><mode>3<mask_name>" with
3805 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
3806 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3807 Anna Tikhonova <anna.tikhonova@intel.com>
3808 Ilya Tocar <ilya.tocar@intel.com>
3809 Andrey Turetskiy <andrey.turetskiy@intel.com>
3810 Ilya Verbin <ilya.verbin@intel.com>
3811 Kirill Yukhin <kirill.yukhin@intel.com>
3812 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3814 * config/i386/sse.md
3815 (define_mode_iterator VI4F_BRCST32x2): New.
3816 (define_mode_attr 64x2_mode): Ditto.
3817 (define_mode_attr 32x2mode): Ditto.
3818 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
3819 with VI4F_BRCST32x2): Ditto.
3820 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
3821 with V16FI mode iterator): Ditto.
3822 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
3824 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
3825 with VI8F_BRCST64x2): Ditto.
3827 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
3828 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3829 Anna Tikhonova <anna.tikhonova@intel.com>
3830 Ilya Tocar <ilya.tocar@intel.com>
3831 Andrey Turetskiy <andrey.turetskiy@intel.com>
3832 Ilya Verbin <ilya.verbin@intel.com>
3833 Kirill Yukhin <kirill.yukhin@intel.com>
3834 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3836 * config/i386/sse.md
3837 (define_mode_iterator VI8_AVX512VL): New.
3838 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
3840 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
3842 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
3843 (define_mode_iterator V48_AVX512VL): New.
3844 (define_mode_iterator V12_AVX512VL): Ditto.
3845 (define_insn <avx512>_load<mode>_mask): Split into two similar
3846 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
3847 Refactor output template.
3848 (define_insn "<avx512>_store<mode>_mask"): Ditto.
3850 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3852 * cprop.c (struct occr): Strengthen field "insn" from rtx to
3854 (reg_available_p): Likewise for param "insn".
3855 (insert_set_in_table): Likewise.
3856 (hash_scan_set): Likewise.
3857 (hash_scan_insn): Likewise.
3858 (make_set_regs_unavailable): Likewise.
3859 (compute_hash_table_work): Likewise for local "insn".
3860 (reg_not_set_p): Strengthen param "insn" from const_rtx to
3862 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
3863 (try_replace_reg): Likewise.
3864 (find_avail_set): Likewise.
3865 (cprop_jump): Likewise for params "setcc", "jump".
3866 (constprop_register): Likewise for param "insn".
3867 (cprop_insn): Likewise.
3868 (do_local_cprop): Likewise.
3869 (local_cprop_pass): Likewise for local "insn".
3870 (bypass_block): Likewise for params "setcc" and "jump".
3871 (bypass_conditional_jumps): Likewise for locals "setcc" and
3873 (one_cprop_pass): Likewise for local "insn".
3875 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3877 * compare-elim.c (struct comparison_use): Strengthen field "insn"
3878 from rtx to rtx_insn *.
3879 (struct comparison): Likewise, also for field "prev_clobber".
3880 (conforming_compare): Likewise for param "insn".
3881 (arithmetic_flags_clobber_p): Likewise.
3882 (find_flags_uses_in_insn): Likewise.
3883 (find_comparison_dom_walker::before_dom_children): Likewise for
3884 locals "insn", "next", "last_clobber".
3885 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
3887 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3889 * combine-stack-adj.c (struct csa_reflist): Strengthen field
3890 "insn" from rtx to rtx_insn *.
3891 (single_set_for_csa): Likewise for param "insn".
3892 (record_one_stack_ref): Likewise.
3893 (try_apply_stack_adjustment): Likewise.
3894 (struct record_stack_refs_data): Likewise for field "insn".
3895 (maybe_move_args_size_note): Likewise for params "last" and "insn".
3896 (prev_active_insn_bb): Likewise for return type and param "insn".
3897 (next_active_insn_bb): Likewise.
3898 (force_move_args_size_note): Likewise for params "prev" and "last"
3899 and locals "test", "next_candidate", "prev_candidate".
3900 (combine_stack_adjustments_for_block): Strengthen locals
3901 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
3904 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3906 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
3907 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
3908 (subst_insn): Likewise for this variable.
3909 (added_links_insn): Likewise.
3910 (struct insn_link): Likewise for field "insn".
3911 (alloc_insn_link): Likewise for param "insn".
3912 (struct undobuf): Likewise for field "other_insn".
3913 (find_single_use): Likewise for param "insn" and local "next".
3914 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
3915 (delete_noop_moves): Likewise for locals "insn", "next".
3916 (create_log_links): Likewise for locals "insn", "use_insn".
3917 Strengthen local "next_use" from rtx * to rtx_insn **.
3918 (insn_a_feeds_b): Likewise for params "a", "b".
3919 (combine_instructions): Likewise for param "f" and locals "insn",
3920 "next", "prev", "first", "last_combined_insn", "link", "link1",
3921 "temp". Replace use of NULL_RTX with NULL when referring to
3923 (setup_incoming_promotions): Likewise for param "first"
3924 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
3925 (can_combine_p): Likewise for params "insn", "i3", "pred",
3926 "pred2", "succ", "succ2" and for local "p".
3927 (combinable_i3pat): Likewise for param "i3".
3928 (cant_combine_insn_p): Likewise for param "insn".
3929 (likely_spilled_retval_p): Likewise.
3930 (adjust_for_new_dest): Likewise.
3931 (update_cfg_for_uncondjump): Likewise, also for local "insn".
3932 (try_combine): Likewise for return type and for params "i3", "i2",
3933 "i1", "i0", "last_combined_insn", and for locals "insn",
3934 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
3935 "i0_insn". Eliminate local "tem" in favor of new locals
3936 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
3937 checked cast for now to rtx_insn * on the return type of
3938 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
3940 (find_split_point): Strengthen param "insn" from rtx to
3942 (simplify_set): Likewise for local "other_insn".
3943 (recog_for_combine): Likewise for param "insn".
3944 (record_value_for_reg): Likewise.
3945 (record_dead_and_set_regs_1): Likewise for local
3947 (record_dead_and_set_regs): Likewise for param "insn".
3948 (record_promoted_value): Likewise.
3949 (check_promoted_subreg): Likewise.
3950 (get_last_value_validate): Likewise.
3951 (reg_dead_at_p): Likewise.
3952 (move_deaths): Likewise for param "to_insn".
3953 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
3954 and locals "place", "place2", "cc0_setter". Eliminate local "tem
3955 in favor of new locals "tem_note" and "tem_insn", the latter being
3957 (distribute_links): Strengthen locals "place", "insn" from rtx to
3960 2014-08-21 David Malcolm <dmalcolm@redhat.com>
3962 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
3964 (can_delete_label_p): Require a const rtx_code_label * rather than
3966 (delete_insn): Add checked cast to rtx_code_label * when we know
3967 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
3969 (delete_insn_chain): Strengthen locals "prev" and "current" from
3970 rtx to rtx_insn *. Add a checked cast when assigning from
3971 "finish" (strengthening the params will come later). Add a
3972 checked cast to rtx_note * in region where we know
3974 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
3976 (compute_bb_for_insn): Likewise.
3977 (free_bb_for_insn): Likewise for local "insn".
3978 (compute_bb_for_insn): Likewise.
3979 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
3980 local "insn" from rtx to rtx_insn *
3981 (flow_active_insn_p): Require a const rtx_insn * rather than a
3983 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
3985 (can_fallthru): Likewise for locals "insn" and "insn2".
3986 (bb_note): Likewise for local "note".
3987 (first_insn_after_basic_block_note): Likewise for local "note" and
3989 (rtl_split_block): Likewise for locals "insn" and "next".
3990 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
3992 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
3993 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
3995 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
3996 them), "kill_from", "barrier", "new_insn".
3997 (patch_jump_insn): Likewise for params "insn", "old_label".
3998 (redirect_branch_edge): Likewise for locals "old_label", "insn".
3999 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4000 "old_label", "new_label".
4001 (rtl_tidy_fallthru_edge): Likewise for local "q".
4002 (rtl_split_edge): Likewise for locals "before", "last".
4003 (commit_one_edge_insertion): Likewise for locals "before",
4004 "after", "insns", "tmp", "last", adding a checked cast where
4005 currently necessary.
4006 (commit_edge_insertions): Likewise.
4007 (rtl_dump_bb): Likewise for locals "insn", "last".
4008 (print_rtl_with_bb): Likewise for local "x".
4009 (rtl_verify_bb_insns): Likewise for local "x".
4010 (rtl_verify_bb_pointers): Likewise for local "insn".
4011 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4013 (rtl_verify_fallthru): Likewise for local "insn".
4014 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4015 (purge_dead_edges): Likewise for local "insn".
4016 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4017 (skip_insns_after_block): Likewise for return type and for locals
4018 "insn", "last_insn", "next_head", "prev".
4019 (record_effective_endpoints): Likewise for locals "next_insn",
4021 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4022 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4023 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4024 (duplicate_insn_chain): For now, add checked cast from rtx to
4025 rtx_insn * when returning insn.
4026 (cfg_layout_duplicate_bb): Likewise for local "insn".
4027 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4029 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4030 (rtl_block_empty_p): Likewise.
4031 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4032 "split_point", "last".
4033 (rtl_block_ends_with_call_p): Likewise for local "insn".
4034 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4036 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4037 "split_at_insn" from rtx to rtx_insn *.
4038 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4039 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4040 to const rtx_insn *.
4041 (rtl_account_profile_record): Likewise.
4043 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4045 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4047 (average_num_loop_insns): Likewise.
4048 (init_set_costs): Likewise for local "seq".
4049 (seq_cost): Likewise for param "seq", from const_rtx to const
4052 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4054 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4057 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4059 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4060 "f1" and "f2" from rtx * to rtx_insn **.
4061 (flow_find_head_matching_sequence): Likewise.
4063 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4064 "cbranch_insn" from rtx to rtx_insn *.
4065 (thread_jump): Likewise for local "insn".
4066 (try_forward_edges): Likewise for local "last".
4067 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4068 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4070 (can_replace_by): Likewise for params "i1", "i2".
4071 (old_insns_match_p): Likewise.
4072 (merge_notes): Likewise.
4073 (walk_to_nondebug_insn): Likewise for param "i1".
4074 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4075 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4076 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4077 (flow_find_head_matching_sequence): Strengthen params "f1" and
4078 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4079 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4081 (outgoing_edges_match): Likewise for locals "last1", "last2".
4082 (try_crossjump_to_edge): Likewise for local "insn".
4083 Replace call to for_each_rtx with for_each_rtx_in_insn.
4085 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4086 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4087 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4088 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4089 (try_optimize_cfg): Strengthen local "last" from rtx to
4091 (delete_dead_jumptables): Likewise for locals "insn", "next",
4094 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4095 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4096 "rtx else_first_tail", to reflect the basic-block.h changes above.
4098 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4100 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4102 (purge_dead_tablejump_edges): Likewise.
4103 (find_bb_boundaries): Likewise for locals "insn", "end",
4104 "flow_transfer_insn".
4106 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4108 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4109 "ins" and "prev" from rtx to rtx_insn *.
4111 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4113 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4115 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4116 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4118 (load_register_parameters): Likewise for local "before_arg".
4119 (check_sibcall_argument_overlap): Likewise for param "insn".
4120 (expand_call): Likewise for locals "normal_call_insns",
4121 "tail_call_insns", "insns", "before_call", "after_args",
4122 "before_arg", "last", "prev". Strengthen one of the "last" from
4123 rtx to rtx_call_insn *.
4124 (fixup_tail_calls): Strengthen local "insn" from rtx to
4126 (emit_library_call_value_1): Likewise for locals "before_call" and
4129 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4131 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4132 and "last" from rtx to rtx_insn *.
4133 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4134 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4136 (expand_errno_check): Strengthen local "lab" from rtx to
4138 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4140 (expand_builtin_mathfn_2): Likewise.
4141 (expand_builtin_mathfn_ternary): Likewise.
4142 (expand_builtin_mathfn_3): Likewise.
4143 (expand_builtin_interclass_mathfn): Likewise for local "last".
4144 (expand_builtin_int_roundingfn): Likewise for local "insns".
4145 (expand_builtin_int_roundingfn_2): Likewise.
4146 (expand_builtin_strlen): Likewise for local "before_strlen".
4147 (expand_builtin_strncmp): Likewise for local "seq".
4148 (expand_builtin_signbit): Likewise for local "last".
4149 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4150 from rtx to rtx_code_label *.
4151 (expand_stack_restore): Strengthen local "prev" from rtx to
4154 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4156 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4158 (struct btr_def_s): Likewise.
4159 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4161 (add_btr_def): Likewise.
4162 (new_btr_user): Likewise.
4163 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4165 (link_btr_uses): Likewise.
4166 (move_btr_def): Likewise for locals "insp", "old_insn",
4167 "new_insn". Add checked cast to rtx_insn * for now on result of
4169 (can_move_up): Strengthen param "insn" from const_rtx to
4172 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4174 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4176 (get_uncond_jump_length): Likewise for locals "label", "jump".
4177 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4179 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4180 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4181 (find_jump_block): Likewise for local "insn".
4182 (fix_crossing_conditional_branches): Likewise for locals
4183 "old_jump", "new_jump".
4184 (fix_crossing_unconditional_branches): Likewise for locals
4185 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4186 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4188 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4190 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4192 (struct mem_insn): Likewise for field "insn".
4193 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4194 (reg_next_inc_use): Likewise.
4195 (reg_next_def): Likewise.
4196 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4197 from rtx to rtx_insn *.
4198 (move_insn_before): Likewise for param "next_insn" and local "insns".
4199 (attempt_change): Likewise for local "mov_insn".
4200 (try_merge): Likewise for param "last_insn".
4201 (get_next_ref): Likewise for return type and local "insn".
4202 Strengthen param "next_array" from rtx * to rtx_insn **.
4203 (parse_add_or_inc): Strengthen param "insn" from rtx to
4205 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4207 (merge_in_block): Likewise for locals "insn", "curr",
4209 (pass_inc_dec::execute): Update allocations of the arrays to
4210 reflect the stronger types.
4212 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4214 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4215 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4216 from rtx to rtx_code_label *.
4218 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4220 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4223 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4225 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4226 generated a warning and prevented bootstrapping the compiler.
4228 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4230 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4233 * jump.c (delete_related_insns): Likewise, also for locals "next"
4236 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4238 * genautomata.c (output_internal_insn_latency_func): When writing
4239 the function "internal_insn_latency" to insn-automata.c,
4240 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4241 allowing the optional guard function of (define_bypass) clauses to
4242 expect a pair of rtx_insn *, rather than a pair of rtx.
4243 (output_insn_latency_func): When writing the function
4244 "insn_latency", add an "uncast_" prefix to params "insn" and
4245 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4246 using checked casts from the params, thus enabling the above
4247 change to the generated "internal_insn_latency" function.
4249 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4251 PR tree-optimization/62091
4252 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4253 handle correctly arrays.
4254 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4256 (record_known_type): Walk into inner type.
4257 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4258 condition on no type changes.
4260 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4262 * genattrtab.c (write_attr_get): Within the generated get_attr_
4263 functions, rename param "insn" to "uncast_insn" and reintroduce
4264 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4265 is an rtx_insn * within insn-attrtab.c
4267 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4269 * output.h (peephole): Strengthen return type from rtx to
4271 * rtl.h (delete_for_peephole): Likewise for both params.
4272 * genpeep.c (main): In generated "peephole" function, strengthen
4273 return type and local "insn" from rtx to rtx_insn *. For now,
4274 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4275 rtx_insn *, with a checked cast.
4276 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4277 locals "insn", "next", "prev" from rtx to rtx_insn *.
4279 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
4281 PR tree-optimization/62112
4282 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4283 * gimple-iterator.h (gsi_replace): Return bool.
4284 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4285 moved from ref_may_alias_global_p.
4286 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4288 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4289 (stmt_kills_ref_p_1): Rename...
4290 (stmt_kills_ref_p): ... to this.
4291 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
4292 stmt_kills_ref_p): Declare.
4293 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
4294 Move the self-assignment case...
4295 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
4297 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4299 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
4301 * emit-rtl.c (try_split): Likewise, also for locals "before" and
4302 "after". For now, don't strengthen param "trial", which requires
4303 adding checked casts when returning it.
4305 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4307 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4308 "label" from rtx to rtx_code_label *. Strengthen param 1 of
4309 "var_location" hook from rtx to rtx_insn *.
4310 (debug_nothing_rtx): Delete in favor of...
4311 (debug_nothing_rtx_code_label): New prototype.
4312 (debug_nothing_rtx_rtx): Delete unused prototype.
4313 (debug_nothing_rtx_insn): New prototype.
4315 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
4316 invoking debug_hooks->var_location (in two places, one in a NOTE
4317 case of a switch statement, the other guarded by a CALL_P
4318 conditional. Add checked cast to rtx_code_label * when invoking
4319 debug_hooks->label (within CODE_LABEL case of switch statement).
4321 * dbxout.c (dbx_debug_hooks): Update "label" hook from
4322 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4323 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
4324 (xcoff_debug_hooks): Likewise.
4325 * debug.c (do_nothing_debug_hooks): Likewise.
4326 (debug_nothing_rtx): Delete in favor of...
4327 (debug_nothing_rtx_insn): New function.
4328 (debug_nothing_rtx_rtx): Delete unused function.
4329 (debug_nothing_rtx_code_label): New function.
4330 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
4331 debug_nothing_rtx to debug_nothing_rtx_code_label.
4332 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
4334 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
4335 debug_nothing_rtx to debug_nothing_rtx_insn.
4336 (sdbout_label): Strengthen param "insn" from rtx to
4338 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
4339 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4340 "var_location" hook from debug_nothing_rtx to
4341 debug_nothing_rtx_insn.
4343 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4345 * recog.h (insn_output_fn): Update this function typedef to match
4346 the changes below to the generated output functions, strengthening
4347 the 2nd param from rtx to rtx_insn *.
4349 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
4350 insn when invoking an output function, to match the new signature
4351 of insn_output_fn with a stronger second param.
4353 * genconditions.c (write_header): In the generated code for
4354 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
4355 to match the other changes in this patch.
4357 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
4358 the generated "gen_" functions from rtx to rtx_insn * within their
4361 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
4362 the subfunctions within the generated "recog_", "split", "peephole2"
4363 function trees from rtx to rtx_insn *. For now, the top-level
4364 generated functions ("recog", "split", "peephole2") continue to
4365 take a plain rtx for "insn", to avoid introducing dependencies on
4366 other patches. Rename this 2nd param from "insn" to
4367 "uncast_insn", and reintroduce "insn" as a local variable of type
4368 rtx_insn *, initialized at the top of the generated function with
4369 a checked cast on "uncast_insn".
4370 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
4371 the generated "gen_" functions from rtx to rtx_insn * within their
4374 * genoutput.c (process_template): Strengthen the 2nd param within
4375 the generated "output_" functions "insn" from rtx to rtx_insn *.
4377 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4379 * tree-profile.c (tree_profiling): Skip external functions
4380 when doing coverage instrumentation.
4381 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
4383 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4385 * config/rs6000/altivec.h (vec_cpsgn): New #define.
4386 (vec_mergee): Likewise.
4387 (vec_mergeo): Likewise.
4388 (vec_cntlz): Likewise.
4389 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
4390 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
4391 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
4393 * doc/extend.texi: Document various forms of vec_cpsgn,
4394 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
4395 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
4396 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
4397 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
4398 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
4400 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4402 * config/rs6000/rs6000.c (context.h): New include.
4403 (tree-pass.h): Likewise.
4404 (make_pass_analyze_swaps): New decl.
4405 (rs6000_option_override): Register pass_analyze_swaps.
4406 (swap_web_entry): New subsclass of web_entry_base (df.h).
4407 (special_handling_values): New enum.
4408 (union_defs): New function.
4409 (union_uses): Likewise.
4410 (insn_is_load_p): Likewise.
4411 (insn_is_store_p): Likewise.
4412 (insn_is_swap_p): Likewise.
4413 (rtx_is_swappable_p): Likewise.
4414 (insn_is_swappable_p): Likewise.
4415 (chain_purpose): New enum.
4416 (chain_contains_only_swaps): New function.
4417 (mark_swaps_for_removal): Likewise.
4418 (swap_const_vector_halves): Likewise.
4419 (adjust_subreg_index): Likewise.
4420 (permute_load): Likewise.
4421 (permute_store): Likewise.
4422 (handle_special_swappables): Likewise.
4423 (replace_swap_with_copy): Likewise.
4424 (dump_swap_insn_table): Likewise.
4425 (rs6000_analyze_swaps): Likewise.
4426 (pass_data_analyze_swaps): New pass_data.
4427 (pass_analyze_swaps): New rtl_opt_pass.
4428 (make_pass_analyze_swaps): New function.
4429 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
4431 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4433 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
4434 type from rtx to rtx_insn *.
4435 (create_copy_of_insn_rtx): Likewise.
4436 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
4437 (create_copy_of_insn_rtx): Likewise, also for local "res".
4439 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4441 * rtl.h (find_first_parameter_load): Strengthen return type from
4443 * rtlanal.c (find_first_parameter_load): Strengthen return type
4444 from rtx to rtx_insn *. Add checked cast for now, to postpone
4445 strengthening the params.
4447 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4450 * diagnostic.c: Set default caret.
4451 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
4453 * diagnostic.h (struct diagnostic_context):
4455 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4457 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
4458 (sel_bb_head): Strengthen return type insn_t (currently just an
4460 (sel_bb_end): Likewise.
4462 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
4463 (sel_bb_head): Strengthen return type and local "head" from
4464 insn_t (currently just an rtx) to rtx_insn *.
4465 (sel_bb_end): Likewise for return type.
4466 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
4469 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4471 * basic-block.h (get_last_bb_insn): Strengthen return type from
4473 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
4476 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4479 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
4481 (diagnostic_report_diagnostic): ... from here.
4482 * toplev.c (general_init): Move code to c-family.
4484 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4486 * df.h (web_entry_base): Replace existing struct web_entry with a
4487 new class web_entry_base with only the predecessor member.
4488 (unionfind_root): Remove declaration and move to class member.
4489 (unionfind_union): Remove declaration and move to friend
4491 (union_defs): Remove declaration.
4492 * web.c (web_entry_base::unionfind_root): Modify to be member
4493 function and adjust accessors.
4494 (unionfind_union): Modify to be friend function and adjust
4496 (web_entry): New subclass of web_entry_base containing the reg
4498 (union_match_dups): Modify for struct -> class changes.
4499 (union_defs): Likewise.
4500 (entry_register): Likewise.
4501 (pass_web::execute): Likewise.
4503 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
4505 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
4506 builtin define __VEC_ELEMENT_REG_ORDER__.
4508 2014-08-20 Martin Jambor <mjambor@suse.cz>
4509 Wei Mi <wmi@google.com>
4513 * tree-ssa-operands.c (update_stmt_operands): Remove
4514 MODIFIED_NORETURN_CALLS.
4515 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
4516 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
4517 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
4518 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
4519 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
4520 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
4521 (gimple_call_set_ctrl_altering): New func.
4522 (gimple_call_ctrl_altering_p): Ditto.
4523 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
4524 (make_blocks): Use gimple_call_initialize_ctrl_altering.
4525 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
4526 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
4527 remove MODIFIED_NORETURN_CALLS.
4529 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4531 * coverage.c (coverage_compute_profile_id): Return non-0;
4532 also handle symbols with unique name.
4533 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
4535 2014-08-20 Steve Ellcey <sellcey@mips.com>
4538 * doc/sourcebuild.texi (non_strict_align): New.
4540 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4542 * cgraphunit.c (ipa_passes, compile): Reshedule
4543 symtab_remove_unreachable_nodes passes; update comments.
4544 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
4545 TODO_remove_functions before the pass; the functions ought to be
4547 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
4548 TODO_remove_functions.
4549 * passes.c (pass_data_early_local_passes): Do not schedule function
4551 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
4553 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4556 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
4557 before setting the option.
4558 * diagnostic.c (diagnostic_classify_diagnostic): Record
4559 command-line status.
4561 2014-08-20 Richard Biener <rguenther@suse.de>
4564 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
4565 to build uint{16,32,64}_type_node.
4567 2014-08-20 Terry Guo <terry.guo@arm.com>
4569 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
4570 with immediate_operand.
4572 2014-08-20 David Malcolm <dmalcolm@redhat.com>
4574 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
4575 "insn" from an as_a to a safe_as_a, for the case when "insn" is
4578 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4580 PR preprocessor/51303
4581 * incpath.c (remove_duplicates): Use cpp_warning.
4583 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4587 * doc/options.texi (CPP): Document it.
4588 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
4589 * optc-gen.awk: Handle CPP.
4590 * opth-gen.awk: Likewise.
4592 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4594 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
4596 (duplicate_insn_chain): Likewise.
4597 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
4598 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
4599 checked cast for now (until we can strengthen the params in the
4601 (duplicate_insn_chain): Likewise.
4603 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4605 * rtl.h (next_cc0_user): Strengthen return type from rtx to
4607 (prev_cc0_setter): Likewise.
4609 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
4610 rtx_insn *, adding checked casts for now as necessary.
4611 (prev_cc0_setter): Likewise.
4613 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4615 * expr.h (emit_move_insn): Strengthen return type from rtx to
4617 (emit_move_insn_1): Likewise.
4618 (emit_move_complex_push): Likewise.
4619 (emit_move_complex_parts): Likewise.
4621 * expr.c (emit_move_via_integer): Strengthen return type from rtx
4622 to rtx_insn *. Replace use of NULL_RTX with NULL when working
4624 (emit_move_complex_push): Strengthen return type from rtx to
4626 (emit_move_complex): Likewise, also for local "ret".
4627 (emit_move_ccmode): Likewise.
4628 (emit_move_multi_word): Likewise for return type and locals
4630 (emit_move_insn_1): Likewise for return type and locals "result",
4632 (emit_move_insn): Likewise for return type and local "last_insn".
4633 (compress_float_constant): Likewise.
4635 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4637 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
4638 from rtx to rtx_insn *.
4640 * rtl.h (emit_insn_before): Likewise.
4641 (emit_insn_before_noloc): Likewise.
4642 (emit_insn_before_setloc): Likewise.
4643 (emit_jump_insn_before): Likewise.
4644 (emit_jump_insn_before_noloc): Likewise.
4645 (emit_jump_insn_before_setloc): Likewise.
4646 (emit_call_insn_before): Likewise.
4647 (emit_call_insn_before_noloc): Likewise.
4648 (emit_call_insn_before_setloc): Likewise.
4649 (emit_debug_insn_before): Likewise.
4650 (emit_debug_insn_before_noloc): Likewise.
4651 (emit_debug_insn_before_setloc): Likewise.
4652 (emit_label_before): Likewise.
4653 (emit_insn_after): Likewise.
4654 (emit_insn_after_noloc): Likewise.
4655 (emit_insn_after_setloc): Likewise.
4656 (emit_jump_insn_after): Likewise.
4657 (emit_jump_insn_after_noloc): Likewise.
4658 (emit_jump_insn_after_setloc): Likewise.
4659 (emit_call_insn_after): Likewise.
4660 (emit_call_insn_after_noloc): Likewise.
4661 (emit_call_insn_after_setloc): Likewise.
4662 (emit_debug_insn_after): Likewise.
4663 (emit_debug_insn_after_noloc): Likewise.
4664 (emit_debug_insn_after_setloc): Likewise.
4665 (emit_label_after): Likewise.
4666 (emit_insn): Likewise.
4667 (emit_debug_insn): Likewise.
4668 (emit_jump_insn): Likewise.
4669 (emit_call_insn): Likewise.
4670 (emit_label): Likewise.
4671 (gen_clobber): Likewise.
4672 (emit_clobber): Likewise.
4673 (gen_use): Likewise.
4674 (emit_use): Likewise.
4677 (emit_barrier_before): Strengthen return type from rtx to
4679 (emit_barrier_after): Likewise.
4680 (emit_barrier): Likewise.
4682 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
4683 from rtx to rtx_insn *. Add checked casts for now when converting
4684 "last" from rtx to rtx_insn *.
4685 (emit_insn_before_noloc): Likewise for return type.
4686 (emit_jump_insn_before_noloc): Likewise.
4687 (emit_call_insn_before_noloc): Likewise.
4688 (emit_debug_insn_before_noloc): Likewise.
4689 (emit_barrier_before): Strengthen return type and local "insn"
4690 from rtx to rtx_barrier *.
4691 (emit_label_before): Strengthen return type from rtx to
4692 rtx_insn *. Add checked cast for now when returning param
4693 (emit_pattern_after_noloc): Strengthen return type from rtx to
4694 rtx_insn *. Add checked casts for now when converting "last" from
4696 (emit_insn_after_noloc): Strengthen return type from rtx to
4698 (emit_jump_insn_after_noloc): Likewise.
4699 (emit_call_insn_after_noloc): Likewise.
4700 (emit_debug_insn_after_noloc): Likewise.
4701 (emit_barrier_after): Strengthen return type from rtx to
4703 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
4704 Add checked cast for now when converting "label" from rtx to
4706 (emit_pattern_after_setloc): Strengthen return type from rtx to
4707 rtx_insn *. Add checked casts for now when converting "last" from
4709 (emit_pattern_after): Strengthen return type from rtx to
4711 (emit_insn_after_setloc): Likewise.
4712 (emit_insn_after): Likewise.
4713 (emit_jump_insn_after_setloc): Likewise.
4714 (emit_jump_insn_after): Likewise.
4715 (emit_call_insn_after_setloc): Likewise.
4716 (emit_call_insn_after): Likewise.
4717 (emit_debug_insn_after_setloc): Likewise.
4718 (emit_debug_insn_after): Likewise.
4719 (emit_pattern_before_setloc): Likewise. Add checked casts for now
4720 when converting "last" from rtx to rtx_insn *.
4721 (emit_pattern_before): Strengthen return type from rtx to
4723 (emit_insn_before_setloc): Likewise.
4724 (emit_insn_before): Likewise.
4725 (emit_jump_insn_before_setloc): Likewise.
4726 (emit_jump_insn_before): Likewise.
4727 (emit_call_insn_before_setloc): Likewise.
4728 (emit_call_insn_before): Likewise.
4729 (emit_debug_insn_before_setloc): Likewise.
4730 (emit_debug_insn_before): Likewise.
4731 (emit_insn): Strengthen return type and locals "last", "insn",
4732 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
4733 within cases where we know we have an insn.
4734 (emit_debug_insn): Likewise.
4735 (emit_jump_insn): Likewise.
4736 (emit_call_insn): Strengthen return type and local "insn" from rtx
4738 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
4739 a checked cast to rtx_insn * for now on "label".
4740 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
4741 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
4742 (emit_use): Likewise.
4743 (gen_use): Likewise, also for local "seq".
4744 (emit): Likewise for return type and local "insn".
4745 (rtx_insn): Likewise for return type and local "new_rtx".
4747 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
4748 from rtx to rtx_barrier *.
4750 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
4751 changed return type from rtx to rtx_insn *, we must update
4752 "emit_fn" type, and this in turn means updating...
4753 (frame_insn): ...this. Strengthen return type from rtx to
4754 rtx_insn *. Introduce a new local "insn" of the appropriate type.
4756 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4758 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
4759 rtx to rtx_jump_table_data *. Also for local.
4760 * rtl.h (emit_jump_table_data): Likewise.
4762 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4764 * basic-block.h (create_basic_block_structure): Strengthen third
4765 param "bb_note" from rtx to rtx_note *.
4766 * rtl.h (emit_note_before): Strengthen return type from rtx to
4768 (emit_note_after): Likewise.
4769 (emit_note): Likewise.
4770 (emit_note_copy): Likewise. Also, strengthen param similarly.
4771 * function.h (struct rtl_data): Strengthen field
4772 "x_stack_check_probe_note" from rtx to rtx_note *.
4774 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
4775 from rtx to rtx_note *.
4776 * cfgrtl.c (create_basic_block_structure): Strengthen third param
4777 "bb_note" from rtx to rtx_note *.
4778 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
4779 when calling emit_note_copy.
4780 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
4782 (emit_note_after): Likewise.
4783 (emit_note_before): Likewise.
4784 (emit_note_copy): Likewise. Also, strengthen param similarly.
4785 (emit_note): Likewise.
4786 * except.c (emit_note_eh_region_end): Likewise for return type.
4787 Strengthen local "next" from rtx to rtx_insn *.
4788 (convert_to_eh_region_ranges): Strengthen local "note"
4789 from rtx to rtx_note *.
4790 * final.c (change_scope): Likewise.
4791 (reemit_insn_block_notes): Likewise, for both locals named "note".
4792 Also, strengthen local "insn" from rtx to rtx_insn *.
4793 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
4795 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
4796 strengthen local "seq" from rtx to rtx_insn *.
4797 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
4799 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
4801 (get_bb_note_from_pool): Strengthen return type from rtx to
4803 (sel_create_basic_block): Strengthen local "new_bb_note" from
4804 insn_t to rtx_note *.
4805 * var-tracking.c (emit_note_insn_var_location): Strengthen local
4806 "note" from rtx to rtx_note *.
4807 (emit_notes_in_bb): Likewise.
4809 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4811 * function.h (struct rtl_data): Strengthen field
4812 "x_parm_birth_insn" from rtx to rtx_insn *.
4813 * function.c (struct assign_parm_data_all): Strengthen fields
4814 "first_conversion_insn" and "last_conversion_insn" from rtx to
4817 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4819 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
4820 to rtx_insn *; also for local "var_end_seq".
4821 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
4822 (maybe_cleanup_end_of_block): Likewise for param "last" and local
4824 (expand_gimple_cond): Likewise for locals "last2" and "last".
4825 (mark_transaction_restart_calls): Likewise for local "insn".
4826 (expand_gimple_stmt): Likewise for return type and locals "last"
4828 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
4829 (avoid_complex_debug_insns): Likewise for param "insn".
4830 (expand_debug_locations): Likewise for locals "insn", "last",
4831 "prev_insn" and "insn2".
4832 (expand_gimple_basic_block): Likewise for local "last".
4833 (construct_exit_block): Likewise for locals "head", "end",
4835 (pass_expand::execute): Likewise for locals "var_seq",
4836 "var_ret_seq", "next".
4838 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4840 * asan.h (asan_emit_stack_protection): Strengthen return type from
4842 * asan.c (asan_emit_stack_protection): Likewise. Add local
4843 "insns" to hold the return value.
4845 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4847 * basic-block.h (bb_note): Strengthen return type from rtx to
4849 * sched-int.h (bb_note): Likewise.
4850 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
4852 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4854 * rtl.h (make_insn_raw): Strengthen return type from rtx to
4857 * emit-rtl.c (make_insn_raw): Strengthen return type and local
4858 "insn" from rtx to rtx_insn *.
4859 (make_debug_insn_raw): Strengthen return type from rtx to
4860 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
4861 (make_jump_insn_raw): Strengthen return type from rtx to
4862 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
4863 (make_call_insn_raw): Strengthen return type from rtx to
4864 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
4865 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
4866 callback from rtx to rtx_insn *; likewise for local "insn" and
4867 "next", adding a checked cast to rtx_insn in the relevant cases of
4868 the switch statement.
4869 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
4870 callback from rtx to rtx_insn *.
4871 (emit_pattern_after_setloc): Likewise.
4872 (emit_pattern_after): Likewise.
4873 (emit_pattern_before_setloc): Likewise.
4874 (emit_pattern_before): Likewise.
4876 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4878 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
4880 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
4881 accepting an rtx_insn *.
4882 (last_call_insn): Strengthen return type from rtx to
4885 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4887 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
4888 "insns" from rtx to rtx_insn *.
4889 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
4890 locals "insn" and "prev".
4892 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4894 * rtl.h (tablejump_p): Strengthen third param from rtx * to
4895 rtx_jump_table_data **.
4897 * cfgbuild.c (make_edges): Introduce local "table", using it in
4898 place of "tmp" for jump table data.
4899 (find_bb_boundaries): Strengthen local "table" from rtx to
4900 rtx_jump_table_data *.
4901 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
4902 (outgoing_edges_match): Likewise for locals "table1" and "table2".
4903 (try_crossjump_to_edge): Likewise.
4904 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
4906 (patch_jump_insn): Introduce local "table", using it in place of
4907 "tmp" for jump table data.
4908 (force_nonfallthru_and_redirect): Introduce local "table", so that
4909 call to tablejump_p can receive an rtx_jump_table_data **. Update
4910 logic around the call to overwrite "note" appropriately if
4911 tablejump_p returns non-zero.
4912 (get_last_bb_insn): Introduce local "table", using it in place of
4913 "tmp" for jump table data.
4914 * dwarf2cfi.c (create_trace_edges): Likewise.
4916 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
4917 from rtx to rtx_jump_table_data *.
4918 (create_fix_barrier): Strengthen local "tmp" from rtx to
4919 rtx_jump_table_data *.
4920 (arm_reorg): Likewise for local "table".
4922 * config/s390/s390.c (s390_chunkify_start): Likewise.
4924 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
4926 * jump.c (delete_related_insns): Strengthen local "lab_next" from
4927 rtx to rtx_jump_table_data *.
4929 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
4930 rtx_jump_table_data **. Add a checked cast when writing through
4931 the pointer: we know there that local "table" is non-NULL and that
4932 JUMP_TABLE_DATA_P (table) holds.
4933 (label_is_jump_target_p): Introduce local "table", using it in
4934 place of "tmp" for jump table data.
4936 2014-08-19 Marek Polacek <polacek@redhat.com>
4939 * doc/invoke.texi: Document -Wbool-compare.
4941 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4943 * rtl.h (entry_of_function): Strengthen return type from rtx to
4945 * cfgrtl.c (entry_of_function): Likewise.
4947 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4949 * emit-rtl.h (get_insns): Strengthen return type from rtx to
4950 rtx_insn *, adding a checked cast for now.
4951 (get_last_insn): Likewise.
4953 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4955 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
4958 * emit-rtl.c (gen_label_rtx): Likewise.
4960 2014-08-19 David Malcolm <dmalcolm@redhat.com>
4962 * rtl.h (previous_insn): Strengthen return type from rtx to
4964 (next_insn): Likewise.
4965 (prev_nonnote_insn): Likewise.
4966 (prev_nonnote_insn_bb): Likewise.
4967 (next_nonnote_insn): Likewise.
4968 (next_nonnote_insn_bb): Likewise.
4969 (prev_nondebug_insn): Likewise.
4970 (next_nondebug_insn): Likewise.
4971 (prev_nonnote_nondebug_insn): Likewise.
4972 (next_nonnote_nondebug_insn): Likewise.
4973 (prev_real_insn): Likewise.
4974 (next_real_insn): Likewise.
4975 (prev_active_insn): Likewise.
4976 (next_active_insn): Likewise.
4978 * emit-rtl.c (next_insn): Strengthen return type from rtx to
4979 rtx_insn *, adding a checked cast.
4980 (previous_insn): Likewise.
4981 (next_nonnote_insn): Likewise.
4982 (next_nonnote_insn_bb): Likewise.
4983 (prev_nonnote_insn): Likewise.
4984 (prev_nonnote_insn_bb): Likewise.
4985 (next_nondebug_insn): Likewise.
4986 (prev_nondebug_insn): Likewise.
4987 (next_nonnote_nondebug_insn): Likewise.
4988 (prev_nonnote_nondebug_insn): Likewise.
4989 (next_real_insn): Likewise.
4990 (prev_real_insn): Likewise.
4991 (next_active_insn): Likewise.
4992 (prev_active_insn): Likewise.
4994 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
4995 param "stepfunc" so that it returns an rtx_insn * rather than an
4996 rtx, to track the change to prev_nonnote_insn_bb, which is the
4997 only function this is called with.
4998 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5000 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5002 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5005 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5007 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5008 (class rtx_nonjump_insn): Likewise.
5009 (class rtx_jump_insn): Likewise.
5010 (class rtx_call_insn): Likewise.
5011 (class rtx_jump_table_data): Likewise.
5012 (class rtx_barrier): Likewise.
5013 (class rtx_code_label): Likewise.
5014 (class rtx_note): Likewise.
5016 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5017 adding the invariant DEBUG_INSN_P (X).
5018 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5019 the invariant NONJUMP_INSN_P (X).
5020 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5021 the invariant JUMP_P (X).
5022 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5023 the invariant CALL_P (X).
5024 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5025 invariant JUMP_TABLE_DATA_P (X).
5026 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5027 invariant BARRIER_P (X).
5028 (class rtx_code_label): New, a subclass of rtx_insn, adding
5029 the invariant LABEL_P (X).
5030 (class rtx_note): New, a subclass of rtx_insn, adding
5031 the invariant NOTE_P(X).
5032 (is_a_helper <rtx_debug_insn *>::test): New.
5033 (is_a_helper <rtx_nonjump_insn *>::test): New.
5034 (is_a_helper <rtx_jump_insn *>::test): New.
5035 (is_a_helper <rtx_call_insn *>::test): New.
5036 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5037 overloaded for both rtx and rtx_insn *.
5038 (is_a_helper <rtx_barrier *>::test): New.
5039 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5040 for both rtx and rtx_insn *.
5041 (is_a_helper <rtx_note *>::test): New.
5043 2014-08-19 Marek Polacek <polacek@redhat.com>
5045 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5046 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5047 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5048 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5050 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5052 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5053 rtx_insn *. To help with transition, for now, convert from an
5054 access macro into a pair of functions: BND_TO, returning an
5056 (SET_BND_TO): New function, for use where BND_TO is used as an
5059 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5061 (BND_TO): New function, adding a checked cast.
5062 (SET_BND_TO): New function.
5064 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5066 (compute_av_set_on_boundaries): Likewise.
5068 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5070 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5071 destination if it is used in source.
5072 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5073 (*popcount<mode>2_falsedep_1): Likewise.
5075 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5078 * configure.ac: Set install_gold_as_default to no first.
5079 * configure: Regenerated.
5081 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5083 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5084 "note_list" field will eventually be an rtx_insn *. To help with
5085 transition, for now, convert from an access macro into a pair of
5086 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5087 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5090 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5091 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5093 * sel-sched-ir.c (init_bb): Likewise.
5094 (sel_restore_notes): Likewise.
5095 (move_bb_info): Likewise.
5096 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5097 (SET_BB_NOTE_LIST): New function.
5099 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5101 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5102 field will eventually be an rtx_insn *. To help with transition,
5103 for now, convert from an access macro into a pair of functions:
5104 VINSN_INSN_RTX, returning an rtx_insn *, and...
5105 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5106 is used as an lvalue.
5108 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5109 SET_VINSN_INSN_RTX where it's used as an lvalue.
5110 (VINSN_INSN_RTX): New function.
5111 (SET_VINSN_INSN_RTX): New function.
5113 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5115 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5116 eventually be rtx_insn *, but to help with transition, for now,
5117 convert from an access macro into a pair of functions: DEP_PRO
5118 returning an rtx_insn * and...
5119 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5120 lvalue, returning an rtx&.
5121 (DEP_CON): Analogous changes to DEP_PRO above.
5122 (SET_DEP_CON): Likewise.
5124 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5125 an lvalue to SET_DEP_CON.
5126 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5127 (sd_copy_back_deps): Likewise for DEP_CON.
5128 (DEP_PRO): New function, adding a checked cast for now.
5129 (DEP_CON): Likewise.
5130 (SET_DEP_PRO): New function.
5131 (SET_DEP_CON): Likewise.
5133 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5135 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5136 (extra_options): Add i386/cygwin.opt.
5137 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5138 (CPP_SPEC): Accept -pthread.
5140 (GOMP_SELF_SPECS): Update comment.
5141 * config/i386/cygwin.opt: New file for -pthread flag.
5143 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5145 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5146 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5147 that we can return an rtx_insn *.
5149 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5151 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5152 when building executables, not DLLs. Add --large-address-aware
5153 under the same conditions.
5154 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5155 when building executables, not DLLs. Add --large-address-aware
5156 under the same conditions when using -m32.
5158 * config/i386/cygwin-stdint.h: Throughout, make type
5159 definitions dependent on target architecture, not host.
5161 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5163 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5164 the return type from rtx to rtx_insn *, which will enable various
5165 conversions in followup patches. For now this is is done by a
5167 (NEXT_INSN): Likewise.
5168 (SET_PREV_INSN): Convert to an inline function. This is intended
5169 for use as an lvalue, and so returns an rtx& to allow in-place
5171 (SET_NEXT_INSN): Likewise.
5173 2014-07-08 Mark Wielaard <mjw@redhat.com>
5176 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5178 2014-08-19 Marek Polacek <polacek@redhat.com>
5181 * cgraphunit.c (handle_alias_pairs): Fix condition.
5183 2014-08-19 Richard Biener <rguenther@suse.de>
5185 * gimple-fold.c (fold_gimple_assign): Properly build a
5186 null-pointer constant when devirtualizing addresses.
5188 2014-07-07 Mark Wielaard <mjw@redhat.com>
5190 * dwarf2out.c (decl_quals): New function.
5191 (modified_type_die): Take one cv_quals argument instead of two,
5192 one for const and one for volatile.
5193 (add_type_attribute): Likewise.
5194 (generic_parameter_die): Call add_type_attribute with one modifier
5196 (base_type_for_mode): Likewise.
5197 (add_bounds_info): Likewise.
5198 (add_subscript_info): Likewise.
5199 (gen_array_type_die): Likewise.
5200 (gen_descr_array_type_die): Likewise.
5201 (gen_entry_point_die): Likewise.
5202 (gen_enumeration_type_die): Likewise.
5203 (gen_formal_parameter_die): Likewise.
5204 (gen_subprogram_die): Likewise.
5205 (gen_variable_die): Likewise.
5206 (gen_const_die): Likewise.
5207 (gen_field_die): Likewise.
5208 (gen_pointer_type_die): Likewise.
5209 (gen_reference_type_die): Likewise.
5210 (gen_ptr_to_mbr_type_die): Likewise.
5211 (gen_inheritance_die): Likewise.
5212 (gen_subroutine_type_die): Likewise.
5213 (gen_typedef_die): Likewise.
5214 (force_type_die): Likewise.
5216 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5218 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5220 * configure: Regenerate.
5222 2014-08-19 Richard Biener <rguenther@suse.de>
5224 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5225 DECL_EXTERNALs in BLOCKs as non-references.
5226 * tree-streamer-out.c (streamer_write_chain): Likewise.
5228 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5229 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5230 Anna Tikhonova <anna.tikhonova@intel.com>
5231 Ilya Tocar <ilya.tocar@intel.com>
5232 Andrey Turetskiy <andrey.turetskiy@intel.com>
5233 Ilya Verbin <ilya.verbin@intel.com>
5234 Kirill Yukhin <kirill.yukhin@intel.com>
5235 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5237 * config/i386/sse.md
5238 (define_mode_iterator VI48_AVX512F): Delete.
5239 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5240 (define_mode_iterator VI2_AVX512VL): Ditto.
5241 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5244 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5246 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5247 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5248 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5249 with VI48_AVX512F_AVX512VL): New.
5250 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5251 with VI2_AVX512VL): Ditto.
5253 2014-08-19 Marek Polacek <polacek@redhat.com>
5255 * doc/invoke.texi: Document -Wc99-c11-compat.
5257 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5259 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5261 (SET_PREV_INSN): New macro, for use as an lvalue.
5262 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5264 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5265 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5266 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5267 (fixup_abnormal_edges): Likewise.
5268 (unlink_insn_chain): Likewise.
5269 (fixup_reorder_chain): Likewise.
5270 (cfg_layout_delete_block): Likewise.
5271 (cfg_layout_merge_blocks): Likewise.
5272 * combine.c (update_cfg_for_uncondjump): Likewise.
5273 * emit-rtl.c (link_insn_into_chain): Likewise.
5274 (remove_insn): Likewise.
5275 (delete_insns_since): Likewise.
5276 (reorder_insns_nobb): Likewise.
5277 (emit_insn_after_1): Likewise.
5278 * final.c (rest_of_clean_state): Likewise.
5279 (final_scan_insn): Likewise.
5280 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5281 * haifa-sched.c (concat_note_lists): Likewise.
5282 (remove_notes): Likewise.
5283 (restore_other_notes): Likewise.
5284 (move_insn): Likewise.
5285 (unlink_bb_notes): Likewise.
5286 (restore_bb_notes): Likewise.
5287 * jump.c (delete_for_peephole): Likewise.
5288 * optabs.c (emit_libcall_block_1): Likewise.
5289 * reorg.c (emit_delay_sequence): Likewise.
5290 (fill_simple_delay_slots): Likewise.
5291 * sel-sched-ir.c (sel_move_insn): Likewise.
5292 (sel_remove_insn): Likewise.
5293 (get_bb_note_from_pool): Likewise.
5294 * sel-sched.c (move_nop_to_previous_block): Likewise.
5296 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
5297 * config/c6x/c6x.c (gen_one_bundle): Likewise.
5298 (c6x_gen_bundles): Likewise.
5299 (hwloop_optimize): Likewise.
5300 * config/frv/frv.c (frv_function_prologue): Likewise.
5301 (frv_register_nop): Likewise.
5302 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
5303 (ia64_reorg): Likewise.
5304 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
5305 (mep_make_bundle): Likewise.
5306 (mep_bundle_insns): Likewise.
5307 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
5308 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
5309 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
5311 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5313 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
5314 return type from rtx to rtx_insn *.
5316 (BB_HEADER): Likewise.
5317 (BB_FOOTER): Likewise.
5318 (SET_BB_HEAD): Convert to a function.
5319 (SET_BB_END): Likewise.
5320 (SET_BB_HEADER): Likewise.
5321 (SET_BB_FOOTER): Likewise.
5323 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
5324 Strengthen the return type from rtx to rtx_insn *. For now, this
5325 is done by adding a checked cast, but this will eventually
5326 become a field lookup.
5328 (BB_HEADER): Likewise.
5329 (BB_FOOTER): Likewise.
5330 (SET_BB_HEAD): New function, from macro of same name. This is
5331 intended for use as an lvalue, and so returns an rtx& to allow
5332 in-place modification.
5333 (SET_BB_END): Likewise.
5334 (SET_BB_HEADER): Likewise.
5335 (SET_BB_FOOTER): Likewise.
5337 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5339 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
5341 (SET_BB_HEAD): New macro, for use as a lvalue.
5342 (BB_END, SET_BB_END): Likewise.
5343 (BB_HEADER, SET_BB_HEADER): Likewise.
5344 (BB_FOOTER, SET_BB_FOOTER): Likewise.
5346 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
5347 of BB_* macros into SET_BB_* macros.
5348 (fix_crossing_unconditional_branches): Likewise.
5349 * caller-save.c (save_call_clobbered_regs): Likewise.
5350 (insert_one_insn): Likewise.
5351 * cfgbuild.c (find_bb_boundaries): Likewise.
5352 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5353 (outgoing_edges_match): Likewise.
5354 (try_optimize_cfg): Likewise.
5355 * cfgexpand.c (expand_gimple_cond): Likewise.
5356 (expand_gimple_tailcall): Likewise.
5357 (expand_gimple_basic_block): Likewise.
5358 (construct_exit_block): Likewise.
5359 * cfgrtl.c (delete_insn): Likewise.
5360 (create_basic_block_structure): Likewise.
5361 (rtl_delete_block): Likewise.
5362 (rtl_split_block): Likewise.
5363 (emit_nop_for_unique_locus_between): Likewise.
5364 (rtl_merge_blocks): Likewise.
5365 (block_label): Likewise.
5366 (try_redirect_by_replacing_jump): Likewise.
5367 (emit_barrier_after_bb): Likewise.
5368 (fixup_abnormal_edges): Likewise.
5369 (record_effective_endpoints): Likewise.
5370 (relink_block_chain): Likewise.
5371 (fixup_reorder_chain): Likewise.
5372 (fixup_fallthru_exit_predecessor): Likewise.
5373 (cfg_layout_duplicate_bb): Likewise.
5374 (cfg_layout_split_block): Likewise.
5375 (cfg_layout_delete_block): Likewise.
5376 (cfg_layout_merge_blocks): Likewise.
5377 * combine.c (update_cfg_for_uncondjump): Likewise.
5378 * emit-rtl.c (add_insn_after): Likewise.
5379 (remove_insn): Likewise.
5380 (reorder_insns): Likewise.
5381 (emit_insn_after_1): Likewise.
5382 * haifa-sched.c (get_ebb_head_tail): Likewise.
5383 (restore_other_notes): Likewise.
5384 (move_insn): Likewise.
5385 (sched_extend_bb): Likewise.
5386 (fix_jump_move): Likewise.
5387 * ifcvt.c (noce_process_if_block): Likewise.
5388 (dead_or_predicable): Likewise.
5389 * ira.c (update_equiv_regs): Likewise.
5390 * reg-stack.c (change_stack): Likewise.
5391 * sel-sched-ir.c (sel_move_insn): Likewise.
5392 * sel-sched.c (move_nop_to_previous_block): Likewise.
5394 * config/c6x/c6x.c (hwloop_optimize): Likewise.
5395 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5397 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5399 * rtl.h (for_each_rtx_in_insn): New function.
5400 * rtlanal.c (for_each_rtx_in_insn): Likewise.
5402 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5404 * coretypes.h (class rtx_insn): Add forward declaration.
5406 * rtl.h: Include is-a.h.
5407 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
5408 workaround to ensure gengtype knows inheritance is occurring,
5409 whilst continuing to use the pre-existing special-casing for
5411 (class rtx_insn): New subclass of rtx_def, adding the
5412 invariant that we're dealing with something we can sanely use
5413 INSN_UID, NEXT_INSN, PREV_INSN on.
5414 (is_a_helper <rtx_insn *>::test): New.
5415 (is_a_helper <const rtx_insn *>::test): New.
5417 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5419 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
5421 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5423 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
5426 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5428 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
5429 to BUILT_IN_UNREACHABLE.
5431 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
5434 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
5436 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
5437 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
5438 (ffs<mode>2): Do not expand with tzcnt for
5439 TARGET_AVOID_FALSE_DEP_FOR_BMI.
5440 (ffssi2_no_cmove): Ditto.
5441 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
5442 (ctz<mode>2): New expander.
5443 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
5444 (*ctz<mode>2_falsedep): New insn.
5445 (*ctz<mode>2): Rename from ctz<mode>2.
5446 (clz<mode>2_lzcnt): New expander.
5447 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
5448 (*clz<mode>2_lzcnt_falsedep): New insn.
5449 (*clz<mode>2): Rename from ctz<mode>2.
5450 (popcount<mode>2): New expander.
5451 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
5452 (*popcount<mode>2_falsedep): New insn.
5453 (*popcount<mode>2): Rename from ctz<mode>2.
5454 (*popcount<mode>2_cmp): Remove.
5455 (*popcountsi2_cmp_zext): Ditto.
5457 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
5459 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
5460 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
5461 * config/microblaze/microblaze.h
5462 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
5464 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
5467 * configure.ac: Set install_gold_as_default to no for
5469 * configure: Regenerated.
5471 2014-08-18 Roman Gareev <gareevroman@gmail.com>
5473 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
5474 * config.in: Add undef of HAVE_isl.
5475 * configure: Regenerate.
5476 * configure.ac: Add definition of HAVE_isl.
5477 * graphite-blocking.c: Add checking of HAVE_isl.
5478 * graphite-dependences.c: Likewise.
5479 * graphite-interchange.c: Likewise.
5480 * graphite-isl-ast-to-gimple.c: Likewise.
5481 * graphite-optimize-isl.c: Likewise.
5482 * graphite-poly.c: Likewise.
5483 * graphite-scop-detection.c: Likewise.
5484 * graphite-sese-to-poly.c: Likewise.
5485 * graphite.c: Likewise.
5486 * toplev.c: Replace the checking of HAVE_cloog with the checking
5489 2014-08-18 Richard Biener <rguenther@suse.de>
5491 PR tree-optimization/62090
5492 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
5493 (fold_builtin_3): Do not fold snprintf.
5494 (fold_builtin_4): Likewise.
5495 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
5496 moved from builtins.c.
5497 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
5498 (gimple_fold_builtin): Do not fold sprintf here.
5500 2014-08-18 Richard Biener <rguenther@suse.de>
5502 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
5504 (maybe_canonicalize_mem_ref_addr): ... this function.
5505 (fold_stmt_1): Apply it here before all simplification.
5507 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
5510 * cgraph.h (cgraph_node::create_indirect_edge): Add
5511 compute_indirect_info param.
5512 * cgraph.c (cgraph_node::create_indirect_edge): Compute
5513 indirect_info only when it is required.
5514 * cgraphclones.c (cgraph_clone_edge): Do not recompute
5515 indirect_info fore cloned indirect edge.
5517 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5518 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5519 Anna Tikhonova <anna.tikhonova@intel.com>
5520 Ilya Tocar <ilya.tocar@intel.com>
5521 Andrey Turetskiy <andrey.turetskiy@intel.com>
5522 Ilya Verbin <ilya.verbin@intel.com>
5523 Kirill Yukhin <kirill.yukhin@intel.com>
5524 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5526 * config/i386/sse.md
5527 (define_mode_iterator VI8_AVX2_AVX512BW): New.
5528 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
5530 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5531 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5532 Anna Tikhonova <anna.tikhonova@intel.com>
5533 Ilya Tocar <ilya.tocar@intel.com>
5534 Andrey Turetskiy <andrey.turetskiy@intel.com>
5535 Ilya Verbin <ilya.verbin@intel.com>
5536 Kirill Yukhin <kirill.yukhin@intel.com>
5537 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5539 * config/i386/sse.md
5540 (define_mode_iterator VF1_AVX512VL): New.
5541 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
5542 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
5545 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5546 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5547 Anna Tikhonova <anna.tikhonova@intel.com>
5548 Ilya Tocar <ilya.tocar@intel.com>
5549 Andrey Turetskiy <andrey.turetskiy@intel.com>
5550 Ilya Verbin <ilya.verbin@intel.com>
5551 Kirill Yukhin <kirill.yukhin@intel.com>
5552 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5554 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
5555 * config/i386/i386.md
5556 (define_code_iterator any_float): New.
5557 (define_code_attr floatsuffix): New.
5558 * config/i386/sse.md
5559 (define_mode_iterator VF1_128_256VL): New.
5560 (define_mode_iterator VF2_512_256VL): New.
5561 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
5563 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
5564 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
5566 (define_mode_attr qq2pssuff): New.
5567 (define_mode_attr sselongvecmode): New.
5568 (define_mode_attr sselongvecmodelower): New.
5569 (define_mode_attr sseintvecmode3): New.
5570 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
5572 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
5573 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
5574 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
5575 (define_insn "ufloatv2siv2df2<mask_name>"): New.
5577 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5578 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5579 Anna Tikhonova <anna.tikhonova@intel.com>
5580 Ilya Tocar <ilya.tocar@intel.com>
5581 Andrey Turetskiy <andrey.turetskiy@intel.com>
5582 Ilya Verbin <ilya.verbin@intel.com>
5583 Kirill Yukhin <kirill.yukhin@intel.com>
5584 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5586 * config/i386/sse.md
5587 (define_mode_iterator VF2_AVX512VL): New.
5588 (define_mode_attr sseintvecmode2): New.
5589 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
5590 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
5591 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
5593 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
5595 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5597 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
5600 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5601 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5602 Anna Tikhonova <anna.tikhonova@intel.com>
5603 Ilya Tocar <ilya.tocar@intel.com>
5604 Andrey Turetskiy <andrey.turetskiy@intel.com>
5605 Ilya Verbin <ilya.verbin@intel.com>
5606 Kirill Yukhin <kirill.yukhin@intel.com>
5607 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5609 * config/i386/i386.md
5610 (define_insn "*movoi_internal_avx"): Add evex version.
5611 (define_insn "*movti_internal"): Ditto.
5613 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5614 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5615 Anna Tikhonova <anna.tikhonova@intel.com>
5616 Ilya Tocar <ilya.tocar@intel.com>
5617 Andrey Turetskiy <andrey.turetskiy@intel.com>
5618 Ilya Verbin <ilya.verbin@intel.com>
5619 Kirill Yukhin <kirill.yukhin@intel.com>
5620 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5622 * config/i386/i386.md
5623 (define_attr "isa"): Add avx512dq, noavx512dq.
5624 (define_attr "enabled"): Ditto.
5625 * config/i386/sse.md
5626 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
5628 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
5629 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5630 Anna Tikhonova <anna.tikhonova@intel.com>
5631 Ilya Tocar <ilya.tocar@intel.com>
5632 Andrey Turetskiy <andrey.turetskiy@intel.com>
5633 Ilya Verbin <ilya.verbin@intel.com>
5634 Kirill Yukhin <kirill.yukhin@intel.com>
5635 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5637 * config/i386/i386.c
5638 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
5639 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
5640 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
5641 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
5642 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
5643 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
5644 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
5645 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
5646 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
5647 * config/i386/sse.md
5648 (define_mode_iterator VMOVE): Allow V4TI mode.
5649 (define_mode_iterator V_AVX512VL): New.
5650 (define_mode_iterator V): New handling for AVX512VL.
5651 (define_insn "avx512f_load<mode>_mask"): Delete.
5652 (define_insn "<avx512>_load<mode>_mask"): New.
5653 (define_insn "avx512f_store<mode>_mask"): Delete.
5654 (define_insn "<avx512>_store<mode>_mask"): New.
5657 2014-08-18 Yury Gribov <y.gribov@samsung.com>
5660 * asan.c (instrument_derefs): Fix bitfield check.
5662 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5664 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
5665 * config/rs6000/htm.md (ttest): Remove clobber.
5666 * config/rs6000/predicates.md (any_mask_operand): New predicate.
5667 (and_operand): Reformat.
5668 (and_2rld_operand): New predicate.
5669 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
5671 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
5672 parameter. Handle AND directly.
5673 (rs6000_split_logical_di): Remove last parameter.
5674 (rs6000_split_logical): Remove last parameter. Remove obsolete
5676 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
5677 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
5678 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
5679 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
5680 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
5681 and 5 anonymous splitters): Delete.
5682 (and<mode>3): New expander.
5683 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
5684 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
5685 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
5686 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
5687 (floatdisf2_internal1): Remove clobbers.
5688 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
5689 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
5690 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
5691 (and<mode>3 for BOOL_128): Remove clobber.
5692 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
5693 rs6000_split_logical.
5694 (*bool<mode>3_internal for BOOL_128): Adjust call of
5695 rs6000_split_logical.
5696 (*boolc<mode>3_internal1 for BOOL_128,
5697 *boolc<mode>3_internal2 for BOOL_128,
5698 *boolcc<mode>3_internal1 for BOOL_128,
5699 *boolcc<mode>3_internal2 for BOOL_128,
5700 *eqv<mode>3_internal1 for BOOL_128,
5701 *eqv<mode>3_internal2 for BOOL_128,
5702 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
5703 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
5705 (*vec_reload_and_reg_<mptrsize>): Delete.
5707 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5709 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
5710 and split, *boolccsi3_internal3 and split): Delete.
5711 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
5712 *boolccdi3_internal3 and split): Delete.
5713 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
5714 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
5716 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5718 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
5719 and split, *boolcsi3_internal3 and split): Delete.
5720 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
5721 *boolcdi3_internal3 and split): Delete.
5722 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
5724 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
5726 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
5727 <'u'>: Also support printing the low-order 16 bits.
5728 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
5729 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
5730 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
5731 *booldi3_internal3 and split): Delete.
5732 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
5733 *bool<mode>3_dot2): New.
5734 (two anonymous define_splits for non_logical_cint_operand): Merge.
5736 2014-08-17 Marek Polacek <polacek@redhat.com>
5737 Manuel López-Ibáñez <manu@gcc.gnu.org>
5740 * diagnostic.c (adjust_line): Add gcc_checking_assert.
5741 (diagnostic_show_locus): Don't print caret diagnostic
5742 if a column is larger than the line_width.
5744 2014-08-17 Roman Gareev <gareevroman@gmail.com>
5746 * common.opt: Make the ISL AST generator to be the main code generator
5749 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
5751 * wide-int.h (generic_wide_int): Declare as class instead of struct.
5753 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
5756 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
5758 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
5759 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
5760 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
5762 * config/pa/pa.md (begin_brtab): Delete insn.
5763 (end_brtab): Likewise.
5765 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
5767 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
5769 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
5771 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
5772 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
5773 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
5774 (get_dynamic_type): Remove.
5775 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
5776 (clear_speculation): Bring to ipa-deivrt.h
5777 (get_class_context): Rename to ...
5778 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
5779 (contains_type_p): Update.
5780 (get_dynamic_type): Rename to ...
5781 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
5782 (possible_polymorphic_call_targets): UPdate.
5783 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
5784 * ipa-prop.c (ipa_analyze_call_uses): Update.
5786 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
5788 * doc/invoke.texi (SH options): Document missing processor variant
5789 options. Remove references to Hitachi. Undocument deprecated mspace
5792 2014-08-15 Jason Merrill <jason@redhat.com>
5794 * tree.c (type_hash_canon): Uncomment assert.
5796 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5798 * input.h (in_system_header_at): Add comment.
5800 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5803 * diagnostic.c (build_message_string): Make it extern.
5804 * diagnostic.h (build_message_string): Make it extern.
5806 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
5808 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
5809 load/store from/to non-floating class pseudo.
5811 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5813 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
5815 2014-08-15 Richard Biener <rguenther@suse.de>
5817 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
5818 (get_constraint_for_ssa_var): Remove dead code.
5819 (get_constraint_for_1): Adjust.
5820 (find_what_var_points_to): Likewise.
5821 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
5823 2014-08-15 Ilya Tocar <tocarip@gmail.com>
5826 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
5827 (_mm512_mask_cmpge_epu32_mask): Ditto.
5828 (_mm512_cmpge_epu32_mask): Ditto.
5829 (_mm512_mask_cmpge_epi64_mask): Ditto.
5830 (_mm512_cmpge_epi64_mask): Ditto.
5831 (_mm512_mask_cmpge_epu64_mask): Ditto.
5832 (_mm512_cmpge_epu64_mask): Ditto.
5833 (_mm512_mask_cmple_epi32_mask): Ditto.
5834 (_mm512_cmple_epi32_mask): Ditto.
5835 (_mm512_mask_cmple_epu32_mask): Ditto.
5836 (_mm512_cmple_epu32_mask): Ditto.
5837 (_mm512_mask_cmple_epi64_mask): Ditto.
5838 (_mm512_cmple_epi64_mask): Ditto.
5839 (_mm512_mask_cmple_epu64_mask): Ditto.
5840 (_mm512_cmple_epu64_mask): Ditto.
5841 (_mm512_mask_cmplt_epi32_mask): Ditto.
5842 (_mm512_cmplt_epi32_mask): Ditto.
5843 (_mm512_mask_cmplt_epu32_mask): Ditto.
5844 (_mm512_cmplt_epu32_mask): Ditto.
5845 (_mm512_mask_cmplt_epi64_mask): Ditto.
5846 (_mm512_cmplt_epi64_mask): Ditto.
5847 (_mm512_mask_cmplt_epu64_mask): Ditto.
5848 (_mm512_cmplt_epu64_mask): Ditto.
5849 (_mm512_mask_cmpneq_epi32_mask): Ditto.
5850 (_mm512_mask_cmpneq_epu32_mask): Ditto.
5851 (_mm512_cmpneq_epu32_mask): Ditto.
5852 (_mm512_mask_cmpneq_epi64_mask): Ditto.
5853 (_mm512_cmpneq_epi64_mask): Ditto.
5854 (_mm512_mask_cmpneq_epu64_mask): Ditto.
5855 (_mm512_cmpneq_epu64_mask): Ditto.
5856 (_mm512_castpd_ps): Ditto.
5857 (_mm512_castpd_si512): Ditto.
5858 (_mm512_castps_pd): Ditto.
5859 (_mm512_castps_si512): Ditto.
5860 (_mm512_castsi512_ps): Ditto.
5861 (_mm512_castsi512_pd): Ditto.
5862 (_mm512_castpd512_pd128): Ditto.
5863 (_mm512_castps512_ps128): Ditto.
5864 (_mm512_castsi512_si128): Ditto.
5865 (_mm512_castpd512_pd256): Ditto.
5866 (_mm512_castps512_ps256): Ditto.
5867 (_mm512_castsi512_si256): Ditto.
5868 (_mm512_castpd128_pd512): Ditto.
5869 (_mm512_castps128_ps512): Ditto.
5870 (_mm512_castsi128_si512): Ditto.
5871 (_mm512_castpd256_pd512): Ditto.
5872 (_mm512_castps256_ps512): Ditto.
5873 (_mm512_castsi256_si512): Ditto.
5874 (_mm512_cmpeq_epu32_mask): Ditto.
5875 (_mm512_mask_cmpeq_epu32_mask): Ditto.
5876 (_mm512_mask_cmpeq_epu64_mask): Ditto.
5877 (_mm512_cmpeq_epu64_mask): Ditto.
5878 (_mm512_cmpgt_epu32_mask): Ditto.
5879 (_mm512_mask_cmpgt_epu32_mask): Ditto.
5880 (_mm512_mask_cmpgt_epu64_mask): Ditto.
5881 (_mm512_cmpgt_epu64_mask): Ditto.
5882 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
5883 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
5884 * config/i386/i386.c (enum ix86_builtins): Add
5885 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
5886 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
5887 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
5888 (bdesc_args): Add __builtin_ia32_si512_256si,
5889 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
5890 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
5891 __builtin_ia32_pd512_pd.
5892 (ix86_expand_args_builtin): Handle new FTYPEs.
5893 * config/i386/sse.md (castmode): Add 512-bit modes.
5894 (AVX512MODE2P): New.
5895 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
5896 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
5898 2014-08-15 Richard Biener <rguenther@suse.de>
5900 * fold-const.c (tree_swap_operands_p): Put all constants
5901 last, also strip sign-changing NOPs when considering further
5902 canonicalization. Canonicalize also when optimizing for size.
5904 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5906 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
5907 one_match > zero_match case to just before simple_sequence.
5909 2014-08-15 Richard Biener <rguenther@suse.de>
5911 * data-streamer.h (streamer_string_index, string_for_index):
5913 * data-streamer-out.c (streamer_string_index): Make static.
5914 * data-streamer-in.c (string_for_index): Likewise.
5915 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
5916 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
5918 2014-08-15 Richard Biener <rguenther@suse.de>
5920 PR tree-optimization/62031
5921 * tree-data-ref.c (dr_analyze_indices): Do not set
5922 DR_UNCONSTRAINED_BASE.
5923 (dr_may_alias_p): All indirect accesses have to go the
5924 formerly DR_UNCONSTRAINED_BASE path.
5925 * tree-data-ref.h (struct indices): Remove
5926 unconstrained_base member.
5927 (DR_UNCONSTRAINED_BASE): Remove.
5929 2014-08-15 Jakub Jelinek <jakub@redhat.com>
5932 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
5933 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
5934 in OMP_CLAUSE_MAP in some outer target region.
5936 2014-08-15 Bin Cheng <bin.cheng@arm.com>
5938 * tree-ssa-loop-ivopts.c (ivopts_data): New field
5939 name_expansion_cache.
5940 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
5941 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
5942 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
5943 (difference_cannot_overflow_p): New parameter. Use affine
5944 expansion for equality check.
5945 (iv_elimination_compare_lt): Pass new argument.
5947 2014-08-14 DJ Delorie <dj@redhat.com>
5949 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
5950 variables to the accumulator.
5952 * config/rl78/predicates.md (rl78_near_mem_operand): New.
5953 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
5954 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
5957 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
5958 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
5959 (umulqihi3_virt): Likewise.
5960 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
5961 (umulqihi3_real): Likewise.
5963 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
5965 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
5967 PR tree-optimization/62091
5968 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
5969 function_entry_reached.
5970 (walk_aliased_vdefs): Clear it here.
5971 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
5973 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
5975 * ipa-utils.h (compare_virtual_tables): Declare.
5976 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
5978 2014-08-14 Marek Polacek <polacek@redhat.com>
5981 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
5982 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
5984 2014-08-14 Tom de Vries <tom@codesourcery.com>
5986 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
5988 2014-08-14 Tom de Vries <tom@codesourcery.com>
5990 PR rtl-optimization/62004
5991 PR rtl-optimization/62030
5992 * ifcvt.c (rtx_interchangeable_p): New function.
5993 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
5994 * emit-rtl.h (mem_attrs_eq_p): Declare.
5996 2014-08-14 Roman Gareev <gareevroman@gmail.com>
5998 * graphite-scop-detection.c:
5999 Add inclusion of cp-tree.h.
6000 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6001 in case they are pointers to object types
6003 2014-08-14 Richard Biener <rguenther@suse.de>
6005 * BASE-VER: Change to 5.0.0
6007 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6008 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6009 Anna Tikhonova <anna.tikhonova@intel.com>
6010 Ilya Tocar <ilya.tocar@intel.com>
6011 Andrey Turetskiy <andrey.turetskiy@intel.com>
6012 Ilya Verbin <ilya.verbin@intel.com>
6013 Kirill Yukhin <kirill.yukhin@intel.com>
6014 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6016 * config/i386/sse.md (define_mode_attr avx512): New.
6017 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6019 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6020 (define_mode_attr ssse3_avx2): Ditto.
6021 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6022 (define_mode_attr avx2_avx512bw): New.
6023 (define_mode_attr ssedoublemodelower): New.
6024 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6026 (define_mode_attr ssebytemode): Allow V8DI modes.
6027 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6028 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6029 (define_mode_attr ssePSmode2): New.
6030 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6032 (define_mode_attr dbpsadbwmode): New.
6033 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6034 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6035 (vi8_sse4_1_avx2_avx512): New.
6036 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6038 (define_mode_attr blendbits): Move before its immediate use.
6040 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6041 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6042 Anna Tikhonova <anna.tikhonova@intel.com>
6043 Ilya Tocar <ilya.tocar@intel.com>
6044 Andrey Turetskiy <andrey.turetskiy@intel.com>
6045 Ilya Verbin <ilya.verbin@intel.com>
6046 Kirill Yukhin <kirill.yukhin@intel.com>
6047 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6049 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6050 * config/i386/subst.md
6051 (define_mode_iterator SUBST_V): Update.
6052 (define_mode_iterator SUBST_A): Ditto.
6053 (define_subst_attr "mask_operand7"): New.
6054 (define_subst_attr "mask_operand10"): New.
6055 (define_subst_attr "mask_operand_arg34") : New.
6056 (define_subst_attr "mask_expand_op3"): New.
6057 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6058 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6059 (define_subst_attr "mask_avx512vl_condition"): New.
6060 (define_subst_attr "round_mask_operand4"): Ditto.
6061 (define_subst_attr "round_mask_scalar_op3"): Delete.
6062 (define_subst_attr "round_mask_op4"): New.
6063 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6065 (define_subst_attr "round_modev8sf_condition"): New.
6066 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6068 (define_subst_attr "round_saeonly_mask_operand4"): New.
6069 (define_subst_attr "round_saeonly_mask_op4"): New.
6070 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6071 V8DImode, V16SImode.
6072 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6073 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6074 (define_subst_attr "mask_expand4_args"): New.
6075 (define_subst "mask_expand4"): New.
6077 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6078 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6079 Anna Tikhonova <anna.tikhonova@intel.com>
6080 Ilya Tocar <ilya.tocar@intel.com>
6081 Andrey Turetskiy <andrey.turetskiy@intel.com>
6082 Ilya Verbin <ilya.verbin@intel.com>
6083 Kirill Yukhin <kirill.yukhin@intel.com>
6084 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6086 * config/i386/i386.md
6087 (define_attr "isa"): Add avx512bw,noavx512bw.
6088 (define_attr "enabled"): Ditto.
6089 (define_split): Add 32/64-bit mask logic.
6090 (define_insn "*k<logic>qi"): New.
6091 (define_insn "*k<logic>hi"): New.
6092 (define_insn "*anddi_1"): Add mask version.
6093 (define_insn "*andsi_1"): Ditto.
6094 (define_insn "*<code><mode>_1"): Ditto.
6095 (define_insn "*<code>hi_1"): Ditto.
6096 (define_insn "kxnor<mode>"): New.
6097 (define_insn "kunpcksi"): New.
6098 (define_insn "kunpckdi"): New.
6099 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6100 (define_insn "*one_cmplhi2_1"): Ditto.
6102 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6103 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6104 Anna Tikhonova <anna.tikhonova@intel.com>
6105 Ilya Tocar <ilya.tocar@intel.com>
6106 Andrey Turetskiy <andrey.turetskiy@intel.com>
6107 Ilya Verbin <ilya.verbin@intel.com>
6108 Kirill Yukhin <kirill.yukhin@intel.com>
6109 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6111 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6114 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6115 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6116 Anna Tikhonova <anna.tikhonova@intel.com>
6117 Ilya Tocar <ilya.tocar@intel.com>
6118 Andrey Turetskiy <andrey.turetskiy@intel.com>
6119 Ilya Verbin <ilya.verbin@intel.com>
6120 Kirill Yukhin <kirill.yukhin@intel.com>
6121 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6123 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6125 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6126 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6127 xmm/ymm16+ when availble.
6128 * config/i386/i386.h
6129 (HARD_REGNO_NREGS): Add mask regs.
6130 (VALID_AVX512F_REG_MODE): Ditto.
6131 (VALID_AVX512F_REG_MODE) : Define.
6132 (VALID_MASK_AVX512BW_MODE): Ditto.
6133 (reg_class) (MASK_REG_P(X)): Define.
6134 * config/i386/i386.md: Do not split long moves with mask register,
6135 use kmovb if avx512bw is availible.
6136 (movdi_internal): Handle mask registers.
6138 2014-08-14 Richard Biener <rguenther@suse.de>
6140 PR tree-optimization/62081
6141 * tree-ssa-loop.c (pass_fix_loops): New pass.
6142 (pass_tree_loop::gate): Do not fixup loops here.
6143 * tree-pass.h (make_pass_fix_loops): Declare.
6144 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6146 2014-08-14 Richard Biener <rguenther@suse.de>
6148 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6149 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6151 2014-08-14 Richard Biener <rguenther@suse.de>
6153 PR tree-optimization/62090
6154 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6155 (fold_builtin_2): Do not fold sprintf.
6156 (fold_builtin_3): Likewise.
6157 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6158 moved from builtins.c.
6159 (gimple_fold_builtin): Fold sprintf.
6161 2014-08-14 Richard Biener <rguenther@suse.de>
6163 PR rtl-optimization/62079
6164 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6167 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6169 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6170 current_function_decl.
6172 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6174 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6175 cgraph_function_node to cgraph_node::function_symbol
6178 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6180 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6181 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6183 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6185 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6188 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6190 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6193 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6196 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6197 any registers that are used in mem_insn.
6199 2014-08-12 Steve Ellcey <sellcey@mips.com>
6201 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6203 2014-08-12 Steve Ellcey <sellcey@mips.com>
6205 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6206 (MULTILIB_DIRNAMES): Ditto.
6207 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6208 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6209 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6210 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6211 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6212 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6214 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6217 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6218 of __ARM_SIZEOF_WCHAR_T.
6220 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6223 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6224 Remove unnecessary attributes.
6226 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6228 * internal-fn.c (init_internal_fns): Fix off-by-one.
6230 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6231 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6232 Anna Tikhonova <anna.tikhonova@intel.com>
6233 Ilya Tocar <ilya.tocar@intel.com>
6234 Andrey Turetskiy <andrey.turetskiy@intel.com>
6235 Ilya Verbin <ilya.verbin@intel.com>
6236 Kirill Yukhin <kirill.yukhin@intel.com>
6237 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6239 * config/i386/i386.c (standard_sse_constant_opcode): Use
6240 vpxord/vpternlog if avx512 is availible.
6242 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6245 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6246 bitfields, that is when size doesn't match the size of type or the
6247 size of the constructor.
6249 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6251 * config/rs6000/constraints.md (wh constraint): New constraint,
6252 for FP registers if direct move is available.
6253 (wi constraint): New constraint, for VSX/FP registers that can
6254 handle 64-bit integers.
6255 (wj constraint): New constraint for VSX/FP registers that can
6256 handle 64-bit integers for direct moves.
6257 (wk constraint): New constraint for VSX/FP registers that can
6258 handle 64-bit doubles for direct moves.
6259 (wy constraint): Make documentation match implementation.
6261 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6262 scalar_in_vmx_p field to simplify tests of whether SFmode or
6263 DFmode can go in the Altivec registers.
6264 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6265 (rs6000_setup_reg_addr_masks): Likewise.
6266 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6267 field, and wh/wi/wj/wk constraints.
6268 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6269 the wh/wi/wj/wk constraints.
6270 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6271 upper registers, prefer VSX registers unless the operation is a
6272 memory operation with REG+OFFSET addressing.
6274 * config/rs6000/vsx.md (VSr mode attribute): Add support for
6275 DImode. Change SFmode to use ww constraint instead of d to allow
6276 SF registers in the upper registers.
6279 (VSr5): Fix thinko in comment.
6280 (VSa): New mode attribute that is an alternative to wa, that
6281 returns the VSX register class that a mode can go in, but may not
6282 be the preferred register class.
6283 (VS_64dm): New mode attribute for appropriate register classes for
6284 referencing 64-bit elements of vectors for direct moves and normal
6286 (VS_64reg): Likewise.
6287 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6288 register allocator to only registers the data type can handle.
6289 (vsx_le_perm_load_<mode>): Likewise.
6290 (vsx_le_perm_store_<mode>): Likewise.
6291 (vsx_xxpermdi2_le_<mode>): Likewise.
6292 (vsx_xxpermdi4_le_<mode>): Likewise.
6293 (vsx_lxvd2x2_le_<mode>): Likewise.
6294 (vsx_lxvd2x4_le_<mode>): Likewise.
6295 (vsx_stxvd2x2_le_<mode>): Likewise.
6296 (vsx_add<mode>3): Likewise.
6297 (vsx_sub<mode>3): Likewise.
6298 (vsx_mul<mode>3): Likewise.
6299 (vsx_div<mode>3): Likewise.
6300 (vsx_tdiv<mode>3_internal): Likewise.
6301 (vsx_fre<mode>2): Likewise.
6302 (vsx_neg<mode>2): Likewise.
6303 (vsx_abs<mode>2): Likewise.
6304 (vsx_nabs<mode>2): Likewise.
6305 (vsx_smax<mode>3): Likewise.
6306 (vsx_smin<mode>3): Likewise.
6307 (vsx_sqrt<mode>2): Likewise.
6308 (vsx_rsqrte<mode>2): Likewise.
6309 (vsx_tsqrt<mode>2_internal): Likewise.
6310 (vsx_fms<mode>4): Likewise.
6311 (vsx_nfma<mode>4): Likewise.
6312 (vsx_eq<mode>): Likewise.
6313 (vsx_gt<mode>): Likewise.
6314 (vsx_ge<mode>): Likewise.
6315 (vsx_eq<mode>_p): Likewise.
6316 (vsx_gt<mode>_p): Likewise.
6317 (vsx_ge<mode>_p): Likewise.
6318 (vsx_xxsel<mode>): Likewise.
6319 (vsx_xxsel<mode>_uns): Likewise.
6320 (vsx_copysign<mode>3): Likewise.
6321 (vsx_float<VSi><mode>2): Likewise.
6322 (vsx_floatuns<VSi><mode>2): Likewise.
6323 (vsx_fix_trunc<mode><VSi>2): Likewise.
6324 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
6325 (vsx_x<VSv>r<VSs>i): Likewise.
6326 (vsx_x<VSv>r<VSs>ic): Likewise.
6327 (vsx_btrunc<mode>2): Likewise.
6328 (vsx_b2trunc<mode>2): Likewise.
6329 (vsx_floor<mode>2): Likewise.
6330 (vsx_ceil<mode>2): Likewise.
6331 (vsx_<VS_spdp_insn>): Likewise.
6332 (vsx_xscvspdp): Likewise.
6333 (vsx_xvcvspuxds): Likewise.
6334 (vsx_float_fix_<mode>2): Likewise.
6335 (vsx_set_<mode>): Likewise.
6336 (vsx_extract_<mode>_internal1): Likewise.
6337 (vsx_extract_<mode>_internal2): Likewise.
6338 (vsx_extract_<mode>_load): Likewise.
6339 (vsx_extract_<mode>_store): Likewise.
6340 (vsx_splat_<mode>): Likewise.
6341 (vsx_xxspltw_<mode>): Likewise.
6342 (vsx_xxspltw_<mode>_direct): Likewise.
6343 (vsx_xxmrghw_<mode>): Likewise.
6344 (vsx_xxmrglw_<mode>): Likewise.
6345 (vsx_xxsldwi_<mode>): Likewise.
6346 (vsx_xscvdpspn): Tighten constraints to only use register classes
6348 (vsx_xscvspdpn): Likewise.
6349 (vsx_xscvdpspn_scalar): Likewise.
6351 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
6352 wj, and wk constraints.
6353 (GPR_REG_CLASS_P): New helper macro for register classes targeting
6354 general purpose registers.
6356 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
6358 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
6359 DImode instead of wm. Use wk constraint for direct move of DFmode
6361 (extendsidi2_lfiwax): Likewise.
6364 (movdi_internal64): Likewise.
6366 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
6367 wk constraints. Make the wy constraint documentation match them
6370 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
6372 Replacement of isl_int by isl_val
6373 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
6374 (compute_bounds_for_param): use isl_val instead of isl_int
6375 (compute_bounds_for_loop): likewise
6376 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
6377 (build_linearized_memory_access): use isl_val instead of isl_int
6378 (pdr_stride_in_loop): likewise
6379 * graphite-optimize-isl.c:
6380 (getPrevectorMap): use isl_val instead of isl_int
6382 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
6383 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
6384 (extern the_isl_ctx): declare
6385 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
6386 (extract_affine_gmp): likewise
6388 (build_loop_iteration_domains): likewise
6389 (add_param_constraints): likewise
6391 2014-08-11 Richard Biener <rguenther@suse.de>
6393 PR tree-optimization/62075
6394 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
6395 handle uses in patterns.
6397 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6398 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6399 Anna Tikhonova <anna.tikhonova@intel.com>
6400 Ilya Tocar <ilya.tocar@intel.com>
6401 Andrey Turetskiy <andrey.turetskiy@intel.com>
6402 Ilya Verbin <ilya.verbin@intel.com>
6403 Kirill Yukhin <kirill.yukhin@intel.com>
6404 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6406 * common/config/i386/i386-common.c
6407 (OPTION_MASK_ISA_AVX512VL_SET): Define.
6408 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
6409 (ix86_handle_option): Handle OPT_mavx512vl.
6410 * config/i386/cpuid.h (bit_AVX512VL): Define.
6411 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
6412 set -mavx512vl accordingly.
6413 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6414 OPTION_MASK_ISA_AVX512VL.
6415 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
6416 (ix86_option_override_internal): Define PTA_AVX512VL, handle
6417 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
6418 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
6419 * config/i386/i386.h (TARGET_AVX512VL): Define.
6420 (TARGET_AVX512VL_P(x)): Ditto.
6421 * config/i386/i386.opt: Add mavx512vl.
6423 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
6425 PR tree-optimization/62073
6426 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
6429 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6430 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6431 Anna Tikhonova <anna.tikhonova@intel.com>
6432 Ilya Tocar <ilya.tocar@intel.com>
6433 Andrey Turetskiy <andrey.turetskiy@intel.com>
6434 Ilya Verbin <ilya.verbin@intel.com>
6435 Kirill Yukhin <kirill.yukhin@intel.com>
6436 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6438 * common/config/i386/i386-common.c
6439 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
6440 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
6441 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
6442 (ix86_handle_option): Handle OPT_mavx512bw.
6443 * config/i386/cpuid.h (bit_AVX512BW): Define.
6444 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
6445 set -mavx512bw accordingly.
6446 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6447 OPTION_MASK_ISA_AVX512BW.
6448 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
6449 (ix86_option_override_internal): Define PTA_AVX512BW, handle
6450 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
6451 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
6452 * config/i386/i386.h (TARGET_AVX512BW): Define.
6453 (TARGET_AVX512BW_P(x)): Ditto.
6454 * config/i386/i386.opt: Add mavx512bw.
6456 2014-08-11 Richard Biener <rguenther@suse.de>
6458 PR tree-optimization/62070
6459 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
6460 Remove SSA checking.
6462 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6464 * asan.c (asan_check_flags): New enum.
6465 (build_check_stmt_with_calls): Removed function.
6466 (build_check_stmt): Split inlining logic to
6467 asan_expand_check_ifn.
6468 (instrument_derefs): Rename parameter.
6469 (instrument_mem_region_access): Rename parameter.
6470 (instrument_strlen_call): Likewise.
6471 (asan_expand_check_ifn): New function.
6472 (asan_instrument): Remove old code.
6473 (pass_sanopt::execute): Change handling of
6474 asan-instrumentation-with-call-threshold.
6475 (asan_clear_shadow): Fix formatting.
6476 (asan_function_start): Likewise.
6477 (asan_emit_stack_protection): Likewise.
6478 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
6480 * internal-fn.c (expand_ASAN_CHECK): New function.
6481 * internal-fn.def (ASAN_CHECK): New internal function.
6482 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
6484 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
6485 * tree.c: Small comment fix.
6487 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6489 * gimple.c (gimple_call_fnspec): Support internal functions.
6490 (gimple_call_return_flags): Use const.
6491 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
6492 * internal-fn.def: Add fnspec information.
6493 * internal-fn.h (internal_fn_fnspec): New function.
6494 (init_internal_fns): Declare new function.
6495 * internal-fn.c (internal_fn_fnspec_array): New global variable.
6496 (init_internal_fns): New function.
6497 * tree-core.h: Update macro call.
6498 * tree.c (build_common_builtin_nodes): Initialize internal fns.
6500 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
6502 * lto-streamer.h (struct output_block::symbol): Change from
6503 struct symtab_node to plain symtab_node.
6504 (referenced_from_this_partition_p): Change first parameter
6505 from struct symtab_node to plain symtab_node.
6507 2014-08-10 Marek Polacek <polacek@redhat.com>
6510 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
6512 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
6514 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
6515 DECL correctly; do not give up on types in static storage.
6517 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
6519 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
6521 2014-08-09 Roman Gareev <gareevroman@gmail.com>
6523 * graphite-isl-ast-to-gimple.c:
6524 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
6526 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
6528 2014-08-08 Guozhi Wei <carrot@google.com>
6530 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
6532 2014-08-08 Cary Coutant <ccoutant@google.com>
6534 * dwarf2out.c (get_skeleton_type_unit): Remove.
6535 (output_skeleton_debug_sections): Remove skeleton type units.
6536 (output_comdat_type_unit): Likewise.
6537 (dwarf2out_finish): Likewise.
6539 2014-08-07 Yi Yang <ahyangyi@google.com>
6541 * predict.c (expr_expected_value_1): Remove the redundant assignment.
6543 2014-08-08 Richard Biener <rguenther@suse.de>
6545 * lto-streamer.h (struct lto_input_block): Make it a class
6547 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
6548 (struct lto_function_header, struct lto_simple_header,
6549 struct lto_simple_header_with_strings,
6550 struct lto_decl_header, struct lto_function_header): Make
6551 a simple inheritance hieararchy. Remove unused fields.
6552 (struct lto_asm_header): Remove.
6553 * lto-streamer-out.c (produce_asm): Adjust.
6554 (lto_output_toplevel_asms): Likewise.
6555 (produce_asm_for_decls): Likewise.
6556 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
6557 * data-streamer-in.c (string_for_index): Likewise.
6558 * ipa-inline-analysis.c (inline_read_section): Likewise.
6559 * ipa-prop.c (ipa_prop_read_section): Likewise.
6560 (read_replacements_section): Likewise.
6561 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
6562 * lto-section-in.c (lto_create_simple_input_block): Likewise.
6563 (lto_destroy_simple_input_block): Likewise.
6564 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
6565 (lto_input_toplevel_asms): Likewise.
6567 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
6568 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6569 Anna Tikhonova <anna.tikhonova@intel.com>
6570 Ilya Tocar <ilya.tocar@intel.com>
6571 Andrey Turetskiy <andrey.turetskiy@intel.com>
6572 Ilya Verbin <ilya.verbin@intel.com>
6573 Kirill Yukhin <kirill.yukhin@intel.com>
6574 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6576 * common/config/i386/i386-common.c
6577 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
6578 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
6579 (ix86_handle_option): Handle OPT_mavx512dq.
6580 * config/i386/cpuid.h (bit_AVX512DQ): Define.
6581 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
6582 set -mavx512dq accordingly.
6583 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6584 OPTION_MASK_ISA_AVX512DQ.
6585 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
6586 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
6587 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
6588 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
6589 * config/i386/i386.h (TARGET_AVX512DQ): Define.
6590 (TARGET_AVX512DQ_P(x)): Ditto.
6591 * config/i386/i386.opt: Add mavx512dq.
6593 2014-08-08 Richard Biener <rguenther@suse.de>
6595 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
6596 target_percent, target_percent_s): Export.
6597 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
6598 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
6599 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
6600 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
6601 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
6602 Move to gimple-fold.c.
6603 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
6605 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
6606 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
6607 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
6608 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
6609 (rewrite_call_expr_array): Remove.
6610 (fold_builtin_sprintf_chk): Likewise.
6611 (fold_builtin_snprintf_chk): Likewise.
6612 (fold_builtin_varargs): Remove handling of sprintf_chk,
6613 vsprintf_chk, snprintf_chk and vsnprintf_chk.
6614 (gimple_fold_builtin_sprintf_chk): Remove.
6615 (gimple_fold_builtin_snprintf_chk): Likewise.
6616 (gimple_fold_builtin_varargs): Likewise.
6617 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
6618 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
6619 * gimple.c (gimple_seq_add_seq_without_update): New function.
6620 * gimple.h (gimple_seq_add_seq_without_update): Declare.
6621 * gimple-fold.c: Include output.h.
6622 (gsi_replace_with_seq_vops): New function, split out from ...
6623 (gimplify_and_update_call_from_tree): ... here.
6624 (replace_call_with_value): New function.
6625 (replace_call_with_call_and_fold): Likewise.
6626 (var_decl_component_p): Moved from builtins.c.
6627 (gimple_fold_builtin_memory_op): Moved from builtins.c
6628 fold_builtin_memory_op and rewritten to GIMPLE.
6629 (gimple_fold_builtin_memset): Likewise.
6630 (gimple_fold_builtin_strcpy): Likewise.
6631 (gimple_fold_builtin_strncpy): Likewise.
6632 (gimple_fold_builtin_strcat): Likewise.
6633 (gimple_fold_builtin_fputs): Likewise.
6634 (gimple_fold_builtin_memory_chk): Likewise.
6635 (gimple_fold_builtin_stxcpy_chk): Likewise.
6636 (gimple_fold_builtin_stxncpy_chk): Likewise.
6637 (gimple_fold_builtin_snprintf_chk): Likewise.
6638 (gimple_fold_builtin_sprintf_chk): Likewise.
6639 (gimple_fold_builtin_strlen): New function.
6640 (gimple_fold_builtin_with_strlen): New function split out from
6641 gimple_fold_builtin.
6642 (gimple_fold_builtin): Change signature and handle
6643 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
6644 here. Call gimple_fold_builtin_with_strlen.
6645 (gimple_fold_call): Adjust.
6647 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
6649 * calls.c (precompute_arguments): Check
6650 promoted_for_signed_and_unsigned_p and set the promoted mode.
6651 (promoted_for_signed_and_unsigned_p): New function.
6652 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
6653 and set the promoted mode.
6654 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
6655 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
6656 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
6659 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
6661 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
6662 instead of SUBREG_PROMOTED_UNSIGNED_SET.
6663 (expand_call): Likewise.
6664 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
6665 to get promoted mode.
6666 * combine.c (record_promoted_value): Skip > 0 comparison with
6667 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
6668 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
6669 of SUBREG_PROMOTED_UNSIGNED_P.
6670 (convert_modes): Likewise.
6671 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
6672 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
6673 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
6674 SUBREG_PROMOTED_UNSIGNED_SET.
6675 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
6676 instead of SUBREG_PROMOTED_UNSIGNED_SET.
6677 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
6678 SUBREG_PROMOTED_SET.
6679 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
6680 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
6681 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
6682 of SUBREG_PROMOTED_UNSIGNED_P.
6683 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
6684 (SUBREG_PROMOTED_SET): New define.
6685 (SUBREG_PROMOTED_GET): Likewise.
6686 (SUBREG_PROMOTED_SIGN): Likewise.
6687 (SUBREG_PROMOTED_SIGNED_P): Likewise.
6688 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
6689 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
6690 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
6691 instead of SUBREG_PROMOTED_UNSIGNED_GET.
6692 (nonzero_bits1): Skip > 0 comparison with the results as
6693 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
6694 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
6695 of !SUBREG_PROMOTED_UNSIGNED_P.
6696 * simplify-rtx.c (simplify_unary_operation_1): Use new
6697 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
6698 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
6699 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
6700 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
6702 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
6704 * ipa-devirt.c: Include gimple-pretty-print.h
6705 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
6707 (decl_maybe_in_construction_p): Fix conditional on cdtor check
6708 (get_polymorphic_call_info): Fix return value
6709 (type_change_info): New sturcture based on ipa-prop
6711 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
6712 based on ipa-prop variant.
6713 (extr_type_from_vtbl_ptr_store): New function
6714 based on ipa-prop variant.
6715 (record_known_type): New function.
6716 (check_stmt_for_type_change): New function.
6717 (get_dynamic_type): New function.
6718 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
6719 * tree-ssa-pre.c: ipa-utils.h
6720 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
6721 machinery; sanity check with ipa-prop devirtualization.
6722 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
6725 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
6727 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
6728 * alias.c, cfgexpand.c, cgraphbuild.c,
6729 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
6730 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
6731 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
6732 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
6733 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
6734 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6735 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
6736 dse.c, except.c, gengtype.c, gimple-expr.c,
6737 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
6738 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
6739 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
6740 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
6741 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
6742 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
6744 * pointer-set.c: Remove file.
6745 * pointer-set.h: Remove file.
6747 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6749 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
6750 * config/arm/types.md (f_sels, f_seld): Delete.
6752 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6754 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
6755 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
6756 (aarch64_movdi_<mode>high): Likewise.
6757 (aarch64_mov<mode>high_di): Likewise.
6758 (aarch64_movdi_<mode>low): Likewise.
6759 (aarch64_mov<mode>low_di): Likewise.
6760 (aarch64_movtilow_tilow): Likewise.
6761 Add comment explaining usage of fp,simd attributes and of
6762 TARGET_FLOAT and TARGET_SIMD.
6764 2014-08-07 Ian Bolton <ian.bolton@arm.com>
6765 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6767 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
6768 Use MOVN when one of the half-words is 0xffff.
6770 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
6772 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
6774 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
6776 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
6777 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
6778 (rfs_str): String corresponding to RFS_* constants.
6779 (rank_for_schedule_stats_t): New typedef.
6780 (rank_for_schedule_stats): New static variable.
6781 (rfs_result): New static function.
6782 (rank_for_schedule): Track statistics for deciding heuristics.
6783 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
6785 (ready_sort): Use them for debug printouts.
6786 (schedule_block): Init statistics state. Print statistics on
6787 rank_for_schedule decisions.
6789 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
6791 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
6793 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
6795 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
6798 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
6800 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
6801 function to not conflict.
6802 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
6803 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
6804 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
6805 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
6806 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
6809 2014-08-07 Marek Polacek <polacek@redhat.com>
6811 * fold-const.c (fold_binary_loc): Add folding of
6812 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
6814 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
6816 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
6817 instead of type size.
6818 (ASM_FINISH_DECLARE_OBJECT): Likewise.
6820 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
6822 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
6823 (*thumb1_movqi_insn): Likewise.
6824 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
6826 2014-08-07 Tom de Vries <tom@codesourcery.com>
6828 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
6829 (glibc_2_11_or_earlier): Remove effective-target keywords.
6831 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
6833 * config/arm/arm.c (bdesc_2arg): Fix typo.
6834 (arm_atomic_assign_expand_fenv): Remove The default implementation.
6836 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
6838 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
6840 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
6843 * haifa-sched.c (advance_one_cycle): Fix dump.
6844 (schedule_block): Don't advance cycle if we are already at the
6845 beginning of the cycle.
6847 2014-08-06 Martin Jambor <mjambor@suse.cz>
6850 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
6852 2014-08-06 Richard Biener <rguenther@suse.de>
6855 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
6857 (lto_input_tree): Pop SCCs here.
6859 2014-08-06 Richard Biener <rguenther@suse.de>
6861 PR tree-optimization/61320
6862 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
6863 handle misaligned loads.
6865 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
6867 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
6868 (aarch64_expand_vec_perm_const): Check for dup before zip.
6870 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6872 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
6873 CONST_INT_P instead of GET_CODE and compare.
6874 (aarch64_select_cc_mode): Likewise.
6875 (aarch64_print_operand): Likewise.
6876 (aarch64_rtx_costs): Likewise.
6877 (aarch64_simd_valid_immediate): Likewise.
6878 (aarch64_simd_check_vect_par_cnst_half): Likewise.
6879 (aarch64_simd_emit_pair_result_insn): Likewise.
6881 2014-08-05 David Malcolm <dmalcolm@redhat.com>
6883 * gdbhooks.py (find_gcc_source_dir): New helper function.
6884 (class PassNames): New class, locating and parsing passes.def.
6885 (class BreakOnPass): New command "break-on-pass".
6887 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
6889 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
6892 2014-08-05 Richard Biener <rguenther@suse.de>
6894 PR rtl-optimization/61672
6895 * emit-rtl.h (mem_attrs_eq_p): Declare.
6896 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
6897 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
6898 * cfgcleanup.c (merge_memattrs): Likewise.
6901 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6903 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
6904 rather than singleton vectors.
6905 (vqdmlsls_lane_s32): Likewise.
6907 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6909 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
6910 Use VSDQ_HSI mode iterator.
6911 (aarch64_sqrdmulh_laneq<mode>): Likewise.
6912 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
6913 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
6914 Use BUILTIN_VDQHS macro.
6915 (sqrdmulh_laneq): Likewise.
6916 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
6917 (vqdmlals_laneq_s32): Likewise.
6918 (vqdmlslh_laneq_s16): Likewise.
6919 (vqdmlsls_laneq_s32): Likewise.
6920 (vqdmulhh_laneq_s16): Likewise.
6921 (vqdmulhs_laneq_s32): Likewise.
6922 (vqrdmulhh_laneq_s16): Likewise.
6923 (vqrdmulhs_laneq_s32): Likewise.
6925 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6927 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
6928 (vmuld_laneq_f64): Likewise.
6929 (vmuls_laneq_f32): Likewise.
6930 (vmul_n_f64): Likewise.
6931 (vmuld_lane_f64): Reimplement in C.
6932 (vmuls_lane_f32): Likewise.
6934 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6936 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
6938 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
6940 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6942 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
6943 (rbitsi2): Likewise.
6944 (*arm_rev): Set predicable and predicable_short_it attributes.
6946 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6948 * convert.c (convert_to_integer): Guard transformation to lrint by
6951 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
6953 * config/aarch64/aarch64-builtins.c
6954 (aarch64_simd_builtin_type_mode): Delete.
6955 (v8qi_UP): Remap to V8QImode.
6956 (v4hi_UP): Remap to V4HImode.
6957 (v2si_UP): Remap to V2SImode.
6958 (v2sf_UP): Remap to V2SFmode.
6959 (v1df_UP): Remap to V1DFmode.
6960 (di_UP): Remap to DImode.
6961 (df_UP): Remap to DFmode.
6962 (v16qi_UP):V16QImode.
6963 (v8hi_UP): Remap to V8HImode.
6964 (v4si_UP): Remap to V4SImode.
6965 (v4sf_UP): Remap to V4SFmode.
6966 (v2di_UP): Remap to V2DImode.
6967 (v2df_UP): Remap to V2DFmode.
6968 (ti_UP): Remap to TImode.
6969 (ei_UP): Remap to EImode.
6970 (oi_UP): Remap to OImode.
6971 (ci_UP): Map to CImode.
6972 (xi_UP): Remap to XImode.
6973 (si_UP): Remap to SImode.
6974 (sf_UP): Remap to SFmode.
6975 (hi_UP): Remap to HImode.
6976 (qi_UP): Remap to QImode.
6977 (aarch64_simd_builtin_datum): Make mode a machine_mode.
6978 (VAR1): Build builtin name.
6979 (aarch64_init_simd_builtins): Remove dead code.
6981 2014-08-05 Roman Gareev <gareevroman@gmail.com>
6983 * graphite-isl-ast-to-gimple.c:
6984 (set_options): New function.
6985 (scop_to_isl_ast): Add calling of set_options.
6987 2014-08-05 Jakub Jelinek <jakub@redhat.com>
6989 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
6990 (analyze_iv_to_split_insn): Don't initialize them.
6991 (get_ivts_expr): Removed.
6992 (allocate_basic_variable, insert_base_initialization): Use
6993 SET_SRC instead of *get_ivts_expr.
6994 (split_iv): Use &SET_SRC instead of get_ivts_expr.
6996 2014-08-05 Roman Gareev <gareevroman@gmail.com>
6998 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
6999 (translate_isl_ast_for_loop): Add checking of the
7000 flag_loop_parallelize_all.
7001 (ast_build_before_for): New function.
7002 (scop_to_isl_ast): Add checking of the
7003 flag_loop_parallelize_all.
7004 * graphite-dependences.c: Move the defenition of the
7005 scop_get_dependences from graphite-optimize-isl.c to this file.
7006 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7007 (carries_deps): Add checking of the x's value.
7008 * graphite-optimize-isl.c: Move the defenition of the
7009 scop_get_dependences to graphite-dependences.c.
7010 * graphite-poly.h: Add declarations of scop_get_dependences
7013 2014-08-04 Rohit <rohitarulraj@freescale.com>
7016 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7018 (alt_reg_names): Likewise.
7019 (rs6000_dwarf_register_span): For SPE high registers, replace
7020 dwarf register numbers with GCC hard register numbers.
7021 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7022 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7023 register number for the corresponding GCC hard register number.
7024 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7025 newly added GCC hard register numbers for SPE high registers.
7026 (DWARF_FRAME_REGISTERS): Likewise.
7027 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7028 (DWARF_FRAME_REGNUM): Likewise.
7029 (FIXED_REGISTERS): Likewise.
7030 (CALL_USED_REGISTERS): Likewise.
7031 (CALL_REALLY_USED_REGISTERS): Likewise.
7032 (REG_ALLOC_ORDER): Likewise.
7033 (enum reg_class): Likewise.
7034 (REG_CLASS_NAMES): Likewise.
7035 (REG_CLASS_CONTENTS): Likewise.
7036 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7038 2014-08-04 Richard Biener <rguenther@suse.de>
7040 * gimple-fold.h (gimple_fold_builtin): Remove.
7041 * gimple-fold.c (gimple_fold_builtin): Make static.
7042 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7043 fold_stmt, not gimple_fold_builtin.
7045 2014-08-04 Martin Liska <mliska@suse.cz>
7047 * cgraph.h (csi_end_p): Removed.
7048 (csi_next): Likewise.
7049 (csi_node): Likewise.
7050 (csi_start): Likewise.
7051 (cgraph_node_in_set_p): Likewise.
7052 (cgraph_node_set_size): Likewise.
7053 (vsi_end_p): Likewise.
7054 (vsi_next): Likewise.
7055 (vsi_node): Likewise.
7056 (vsi_start): Likewise.
7057 (varpool_node_set_size): Likewise.
7058 (cgraph_node_set_nonempty_p): Likewise.
7059 (varpool_node_set_nonempty_p): Likewise.
7060 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7062 * ipa-inline-transform.c: Likewise.
7063 * ipa-utils.c (cgraph_node_set_new): Removed.
7064 (cgraph_node_set_add): Likewise.
7065 (cgraph_node_set_remove): Likewise.
7066 (cgraph_node_set_find): Likewise.
7067 (dump_cgraph_node_set): Likewise.
7068 (debug_cgraph_node_set): Likewise.
7069 (free_cgraph_node_set): Likewise.
7070 (varpool_node_set_new): Likewise.
7071 (varpool_node_set_add): Likewise.
7072 (varpool_node_set_remove): Likewise.
7073 (varpool_node_set_find): Likewise.
7074 (dump_varpool_node_set): Likewise.
7075 (free_varpool_node_set): Likewise.
7076 (debug_varpool_node_set): Likewise.
7077 * tree-emutls.c (struct tls_var_data):
7078 (emutls_index): Removed.
7079 (emutls_decl): Likewise.
7080 (gen_emutls_addr): Function implementation uses newly added
7081 hash_map<varpool_node *, tls_var_data>.
7082 (clear_access_vars): Likewise.
7083 (create_emultls_var): Likewise.
7084 (ipa_lower_emutls): Likewise.
7085 (reset_access): New function.
7087 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7089 * config/i386/i386.c (ix86_option_override_internal): Add
7090 PTA_RDRND and PTA_MOVBE for bdver4.
7092 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7093 James Greenhalgh <james.greenhalgh@arm.com>
7095 * doc/md.texi (clrsb): Document.
7096 (clz): Change reference to x into operand 1.
7098 (popcount): Likewise.
7100 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7103 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7104 move to subtarget in serial version if result is ignored.
7106 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7107 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7109 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7110 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7111 (sched_analyze_insn): Update use of try_group_insn to
7112 sched_macro_fuse_insns.
7113 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7114 arguments that are not conditional jumps.
7116 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7118 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7119 family information. Handle BTVER2 cpu with cpuid family value.
7121 2014-08-04 Tom de Vries <tom@codesourcery.com>
7123 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7124 (glibc_2_11_or_earlier): Document effective-target keywords.
7126 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7128 * ipa-devirt.c (odr_type_warn_count): Add type.
7129 (possible_polymorphic_call_targets): Set it.
7130 (ipa_devirt): Use it.
7132 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7134 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7136 * ipa-devirt.c: Include hash-map.h
7137 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7138 (clear_speculation): Break out of ...
7139 (get_class_context): ... here; speed up handling obviously useless
7141 (odr_type_warn_count, decl_warn_count): New structures.
7142 (final_warning_record): New structure.
7143 (final_warning_records): New static variable.
7144 (possible_polymorphic_call_targets): Cleanup handling of
7145 speculative info; do not build speculation when user do not care;
7146 record info about warnings when asked for.
7147 (add_decl_warning): New function.
7148 (type_warning_cmp): New function.
7149 (decl_warning_cmp): New function.
7150 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7151 (gate): Enable pass when warnings are requested.
7152 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7155 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7157 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7159 (hash_map::remove): New method.
7160 (hash_map::traverse): New method.
7161 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7162 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7163 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7164 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7165 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7166 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7169 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7171 * hash-set.h: new File.
7172 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7173 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7174 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7175 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7176 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7177 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7178 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7179 varpool.c: Use hash_set instead of pointer_set.
7181 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7183 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7185 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7187 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7188 for frame access when strict_p is false.
7190 2014-08-01 Renlin Li <renlin.li@arm.com>
7191 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7193 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7194 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7195 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7197 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7199 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7200 aarch64_mem_pair_offset.
7202 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7204 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7206 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7207 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7209 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7211 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7213 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7216 * cgraphunit.c (analyze_functions): Use get_create rather than get
7217 for decls which are clones of abstract functions.
7219 2014-08-01 Martin Liska <mliska@suse.cz>
7221 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7222 * ipa-prop.h (count_formal_params): Global function created from static.
7223 * ipa-prop.c (count_formal_params): Likewise.
7224 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7225 profiles for semantically equivalent functions.
7226 * passes.c (do_per_function): If we load body of a function
7227 during WPA, this condition should behave same.
7228 * varpool.c (ctor_for_folding): More tolerant assert for variable
7229 aliases created during WPA.
7231 2014-08-01 Martin Liska <mliska@suse.cz>
7233 * doc/invoke.texi (Options That Control Optimization): Documentation
7234 for -foptimize-strlen introduced. Optimization levels default options
7237 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7239 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7240 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7241 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7243 * stor-layout.h (min_align_of_type): New prototype.
7244 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7245 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7247 * ubsan.c: Include builtins.h.
7248 (ubsan_expand_bounds_ifn): Change return type to bool,
7250 (ubsan_expand_null_ifn): Change return type to bool, change
7251 argument to gimple_stmt_iterator *. Handle both null and alignment
7252 sanitization, take type from ckind argument's type rather than
7254 (instrument_member_call): Removed.
7255 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7256 Handle both null and alignment sanitization, don't say whole
7257 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7258 call instead of 2 argument.
7259 (instrument_null): Adjust instrument_mem_ref caller. Don't
7260 instrument calls here.
7261 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7263 * stor-layout.c (min_align_of_type): New function.
7264 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7265 Or it into SANITIZE_UNDEFINED.
7266 * doc/invoke.texi (-fsanitize=alignment): Document.
7268 2014-07-31 Andi Kleen <ak@linux.intel.com>
7270 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7272 2014-07-31 Andi Kleen <ak@linux.intel.com>
7274 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7276 (vn_reference_compute_hash): Dito.
7277 (vn_nary_op_compute_hash): Dito.
7278 (vn_phi_compute_hash): Dito.
7279 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7281 2014-07-31 Andi Kleen <ak@linux.intel.com>
7283 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7284 Rename to inchash:add_expr_commutative. Convert to inchash.
7285 (iterative_hash_hashable_expr): Rename to
7286 inchash:add_hashable_expr. Convert to inchash.
7287 (avail_expr_hash): Dito.
7289 2014-07-31 Andi Kleen <ak@linux.intel.com>
7291 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
7294 2014-07-31 Andi Kleen <ak@linux.intel.com>
7296 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
7298 2014-07-31 Andi Kleen <ak@linux.intel.com>
7300 * Makefile.in (OBJS): Add rtlhash.o
7301 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
7302 (loc_checksum): Dito.
7303 (loc_checksum_ordered): Dito.
7304 (hash_loc_operands): Dito.
7306 (hash_loc_list): Dito.
7307 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
7308 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
7309 * rtlhash.c: New file.
7310 * rtlhash.h: New file.
7312 2014-07-31 Andi Kleen <ak@linux.intel.com>
7314 * inchash.h (inchash): Change inchash class to namespace.
7315 (class hash): ... Rename from inchash.
7316 (add_object): Move from macro to class template.
7317 * lto-streamer-out.c (hash_tree): Change inchash
7319 * tree.c (build_type_attribute_qual_variant): Dito.
7320 (type_hash_list): Dito.
7321 (attribute_hash_list): Dito.
7322 (iterative_hstate_expr): Rename to inchash::add_expr
7323 (build_range_type_1): Change inchash to inchash::hash
7324 and use hash::add_expr.
7325 (build_array_type_1): Dito.
7326 (build_function_type): Dito
7327 (build_method_type_directly): Dito.
7328 (build_offset_type): Dito.
7329 (build_complex_type): Dito.
7330 (make_vector_type): Dito.
7331 * tree.h (iterative_hash_expr): Dito.
7333 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
7335 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
7337 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7339 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
7340 correct alphabetical position.
7341 (vpaddd_f64): Rewrite using builtins.
7342 (vpaddd_s64): Move to correct alphabetical position.
7345 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
7348 * config/sh/sh.c (sh_legitimate_address_p,
7349 sh_legitimize_reload_address): Handle reg+reg address modes when
7350 ALLOW_INDEXED_ADDRESS is false.
7351 * config/sh/predicates.md (general_movsrc_operand,
7352 general_movdst_operand): Likewise.
7354 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7356 * config/aarch64/aarch64-builtins.c
7357 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
7360 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7362 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
7363 the generated mask based on BYTES_BIG_ENDIAN.
7364 (aarch64_simd_check_vect_par_cnst_half): New.
7365 * config/aarch64/aarch64-protos.h
7366 (aarch64_simd_check_vect_par_cnst_half): New.
7367 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
7368 the check out to aarch64_simd_check_vect_par_cnst_half.
7369 (vect_par_cnst_lo_half): Likewise.
7370 * config/aarch64/aarch64-simd.md
7371 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
7372 (move_hi_quad_<mode>): Always generate a low mask.
7374 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7376 * doc/invoke.texi (AVR Options): Add documentation about
7377 __AVR_DEVICE_NAME__ built-in macro.
7379 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
7382 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
7383 constraints are satisfied.
7384 (<shift>di3_neon): Likewise.
7386 2014-07-31 Richard Biener <rguenther@suse.de>
7388 PR tree-optimization/61964
7389 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
7390 by structural equality.
7392 2014-07-31 Yury Gribov <y.gribov@samsung.com>
7394 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
7395 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
7396 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
7398 * gcc.c (sanitize_spec_function): Support new option.
7399 (SANITIZER_SPEC): Remove now redundant check.
7400 * opts.c (common_handle_option): Support new option.
7401 (finish_options): Check for incompatibilities.
7402 * toplev.c (process_options): Split userspace-specific checks.
7404 2014-07-31 Richard Biener <rguenther@suse.de>
7406 * lto-streamer.h (struct output_block): Remove global.
7407 (struct data_in): Remove labels, num_named_labels and
7409 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
7410 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
7412 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
7415 * common.opt (-Wreturn-local-addr): Moved from c.opt.
7416 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
7417 (isolate_path): New argument to avoid inserting a trap.
7418 (find_implicit_erroneous_behaviour): Handle returning the address
7419 of a local variable.
7420 (find_explicit_erroneous_behaviour): Likewise.
7422 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
7425 * toplev.c (init_random_seed): Move piece of code never called to
7427 (set_random_seed): see above.
7429 2014-07-31 Tom de Vries <tom@codesourcery.com>
7431 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
7433 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
7435 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
7436 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
7438 2014-07-31 Richard Biener <rguenther@suse.de>
7440 * data-streamer.h (streamer_write_data_stream): Declare here,
7442 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
7443 * lto-cgraph.c (lto_output_node): Adjust.
7444 (lto_output_varpool_node): Likewise.
7445 * data-streamer-out.c (streamer_string_index): Likewise.
7446 (streamer_write_data_stream, lto_append_block): Move from ...
7447 * lto-section-out.c (lto_output_data_stream,
7448 lto_append_block): ... here.
7450 2014-07-30 Mike Stump <mikestump@comcast.net>
7452 * configure.ac: Also check for popen.
7453 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
7454 * configure: Regenerate.
7455 * config.in: Regenerate.
7457 2014-07-30 Martin Jambor <mjambor@suse.cz>
7459 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
7460 parameter to gimple.
7462 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7464 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
7465 address as second parameter to __tpf_eh_return routine.
7467 2014-07-30 Jiong Wang <jiong.wang@arm.com>
7469 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
7472 2014-07-30 Tom Tromey <tromey@redhat.com>
7475 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
7476 * doc/extend.texi (Type Attributes): Document designated_init
7479 2014-07-30 Roman Gareev <gareevroman@gmail.com>
7481 * graphite-isl-ast-to-gimple.c:
7482 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
7483 (gcc_expression_from_isl_expression): Pass type to
7484 gcc_expression_from_isl_ast_expr_id.
7486 2014-07-30 Richard Biener <rguenther@suse.de>
7488 * lto-streamer.h (lto_write_data): New function.
7489 * langhooks.c (lhd_append_data): Do not free block.
7490 * lto-section-out.c (lto_write_data): New function writing
7491 raw data to the current section.
7492 (lto_write_stream): Adjust for langhook semantic change.
7493 (lto_destroy_simple_output_block): Write header directly.
7494 * lto-opts.c (lto_write_options): Write options directly.
7495 * lto-streamer-out.c (produce_asm): Write heaeder directly.
7496 (lto_output_toplevel_asms): Likewise.
7497 (copy_function_or_variable): Copy data directly.
7498 (write_global_references): Output index table directly.
7499 (lto_output_decl_state_refs): Likewise.
7500 (write_symbol): Write data directly.
7501 (produce_symtab): Adjust.
7502 (produce_asm_for_decls): Output header and refs directly.
7504 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7506 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
7507 to speculative_targets
7508 (get_class_context): Fix handling of contextes without outer type;
7509 avoid matching non-polymorphic types in LTO.
7510 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
7511 parameter to speculative_targetsp; handle speculation.
7512 (dump_possible_polymorphic_call_targets): Update dumping.
7514 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7516 * common.opt (Wodr): Enable by default.
7518 2014-07-29 Olivier Hainque <hainque@adacore.com>
7520 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
7522 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
7525 * gengtype.c (strtoken): New function.
7526 (create_user_defined_type): Replace strtok with strtoken.
7528 2014-07-29 Nathan Sidwell <nathan@acm.org>
7530 * gcov-io.c (gcov_var): Make hidden.
7531 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
7532 (gcov_do_dump): Declare.
7533 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
7535 2014-07-29 Martin Jambor <mjambor@suse.cz>
7537 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
7538 parameter to gimple.
7539 (sra_modify_assign): Likewise.
7541 2014-07-29 Richard Biener <rguenther@suse.de>
7544 * expr.c (expand_expr_real_2): Revert last change.
7546 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7548 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
7549 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
7550 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
7552 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
7553 (contains_type_p): Forward declare.
7554 (polymorphic_call_target_hasher::hash): Hash speculative info.
7555 (polymorphic_call_target_hasher::equal): Compare speculative info.
7556 (get_class_context): Handle speuclation.
7557 (contains_type_p): Update.
7558 (get_polymorphic_call_info_for_decl): Update.
7559 (walk_ssa_copies): Break out from ...
7560 (get_polymorphic_call_info): ... here; set speculative context
7562 * ipa-prop.c (ipa_write_indirect_edge_info,
7563 ipa_read_indirect_edge_info): Stream speculative context.
7564 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
7565 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
7566 SPECULATIVE_MAYBE_DERIVED_TYPE).
7567 (possible_polymorphic_call_targets overriders): Update.
7568 (dump_possible_polymorphic_call_targets overriders): Update.
7569 (dump_possible_polymorphic_call_target_p overriders): Update.
7571 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
7573 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
7574 ipa-devirt path; fix thinko there.
7576 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
7578 * config/i386/i386.c (ix86_return_in_memory): Replace one
7579 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
7581 2014-07-28 Marek Polacek <polacek@redhat.com>
7583 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
7585 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
7587 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
7588 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
7589 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
7590 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7591 (USE_LD_AS_NEEDED): Likewise.
7592 (ASM_APP_ON): Likewise.
7593 (ASM_APP_OFF): Likewise.
7594 (TARGET_POSIX_IO): Likewise.
7595 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
7596 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7597 (USE_LD_AS_NEEDED): Likewise.
7598 (ASM_APP_ON): Likewise.
7599 (ASM_APP_OFF): Likewise.
7600 (TARGET_POSIX_IO): Likewise.
7602 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
7605 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
7606 operators other than the equality operators.
7608 2014-07-28 Richard Biener <rguenther@suse.de>
7611 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
7612 sure to register SImode ones, not only >= word_mode ones.
7613 * expr.c (expand_expr_real_2): When expanding -ftrapv
7614 binops do not use OPTAB_LIB_WIDEN.
7616 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
7619 * tree-outof-ssa.c (insert_partition_copy_on_edge)
7620 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
7621 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
7622 inserting them in the insn stream.
7624 2014-07-28 Marek Polacek <polacek@redhat.com>
7627 * common.opt (Wodr): Add Var.
7629 2014-07-28 Richard Biener <rguenther@suse.de>
7631 PR tree-optimization/61921
7632 * tree-ssa-structalias.c (create_variable_info_for_1): Check
7633 if there is a varpool node before dereferencing it.
7635 2014-07-28 Roman Gareev <gareevroman@gmail.com>
7637 * graphite-sese-to-poly.c:
7638 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
7639 id of the pbb), which contains pointer to the pbb1.
7641 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
7643 2014-07-28 Roman Gareev <gareevroman@gmail.com>
7645 * graphite-isl-ast-to-gimple.c:
7646 (graphite_create_new_guard): New function.
7647 (translate_isl_ast_node_if): New function.
7648 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
7650 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
7652 2014-07-27 Anthony Green <green@moxielogic.com>
7654 * config.gcc: Add moxie-*-moxiebox* configuration.
7655 * config/moxie/moxiebox.h: New file.
7657 2014-07-26 Andrew Pinski <apinski@cavium.com>
7659 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
7660 from the read only register.
7662 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
7664 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
7665 as the allocation class if it isn't likely to be spilled.
7667 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
7669 * rtl.h (tls_referenced_p): Declare.
7670 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
7671 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
7672 (mips_cannot_force_const_mem): Use tls_referenced_p.
7673 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
7674 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
7675 instead of pa_tls_referenced_p.
7676 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
7677 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
7678 (pa_legitimate_constant_p): Likewise.
7679 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
7680 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
7681 (rs6000_cannot_force_const_mem, rs6000_emit_move)
7682 (rs6000_address_for_altivec): Use tls_referenced_p instead of
7683 rs6000_tls_referenced_p.
7684 (rs6000_tls_symbol_ref_1): Delete.
7686 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
7689 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7690 Optimize inverse of a VEC_CONCAT.
7692 2014-07-25 Xinliang David Li <davidxl@google.com>
7694 * params.def: New parameter.
7695 * coverage.c (get_coverage_counts): Check new flag.
7696 (coverage_compute_profile_id): Check new flag.
7697 (coverage_begin_function): Check new flag.
7698 (coverage_end_function): Check new flag.
7699 * value-prof.c (coverage_node_map_initialized_p): New function.
7700 (init_node_map): Populate map with all functions.
7701 * doc/invoke.texi: Document new parameter.
7703 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
7704 Richard Biener <rguenther@suse.de>
7706 * lto-streamer-out.c (struct sccs): Turn to ...
7707 (class DFS): ... this one; refactor the DFS walk so it can
7708 be re-done on per-SCC basis.
7709 (DFS::DFS): New constructor.
7710 (DFS::~DFS): New destructor.
7711 (hash_tree): Add new MAP argument holding in-SCC hash values;
7712 remove POINTER_TYPE hashing hack.
7713 (scc_entry_compare): Rename to ...
7714 (DFS::scc_entry_compare): ... this one.
7715 (hash_scc): Rename to ...
7716 (DFS::hash_scc): ... this one; pass output_block instead
7717 of streamer_cache; work harder to get unique and stable SCC
7719 (DFS_write_tree): Rename to ...
7720 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
7721 (lto_output_tree): Update.
7723 2014-07-25 Andi Kleen <ak@linux.intel.com>
7725 * lto-streamer-out.c (hash_tree): Convert to inchash.
7727 2014-07-25 Andi Kleen <ak@linux.intel.com>
7729 * tree.c (build_type_attribute_qual_variant): Use inchash.
7730 (type_hash_list): Dito.
7731 (attribute_hash_list): Dito
7732 (iterative_hstate_expr): Dito.
7733 (iterative_hash_expr): Dito.
7734 (build_range_type_1): Dito.
7735 (build_array_type_1): Dito.
7736 (build_function_type): Dito.
7737 (build_method_type_directly): Dito.
7738 (build_offset_type): Dito.
7739 (build_complex_type): Dito.
7740 (make_vector_type): Dito.
7741 * tree.h (iterative_hash_expr): Add compat wrapper.
7742 (iterative_hstate_expr): Add.
7744 2014-07-25 Andi Kleen <ak@linux.intel.com>
7746 * Makefile.in (OBJS): Add inchash.o.
7747 (PLUGIN_HEADERS): Add inchash.h.
7748 * ipa-devirt.c: Include inchash.h.
7749 * lto-streamer-out.c: Dito.
7750 * tree-ssa-dom.c: Dito.
7751 * tree-ssa-pre.c: Dito.
7752 * tree-ssa-sccvn.c: Dito.
7753 * tree-ssa-tail-merge.c: Dito.
7755 * tree.c (iterative_hash_hashval_t): Move to ...
7756 (iterative_hash_host_wide_int): Move to ...
7757 * inchash.c: Here. New file.
7758 * tree.h (iterative_hash_hashval_t): Move to ...
7759 (iterative_hash_host_wide_int): Move to ...
7760 * inchash.h: Here. New file.
7762 2014-07-25 Richard Biener <rguenther@suse.de>
7766 * fold-const.c (native_encode_int): Add and handle offset
7767 parameter to do partial encodings of expr.
7768 (native_encode_fixed): Likewise.
7769 (native_encode_real): Likewise.
7770 (native_encode_complex): Likewise.
7771 (native_encode_vector): Likewise.
7772 (native_encode_string): Likewise.
7773 (native_encode_expr): Likewise.
7774 * fold-const.c (native_encode_expr): Add offset parameter
7776 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
7777 (fold_ctor_reference): Handle all reads from tcc_constant
7780 2014-07-25 Richard Biener <rguenther@suse.de>
7782 * tree-inline.c (estimate_move_cost): Mark speed_p argument
7785 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7787 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
7789 2014-07-24 Kyle McMartin <kyle@redhat.com>
7791 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
7793 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7795 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
7797 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
7799 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
7800 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
7801 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
7803 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7805 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
7806 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
7807 aggregate types. Instead, *all* aggregate types, except for single-
7808 element or homogeneous float/vector aggregates, are quadword-aligned
7809 if required by their type alignment. Issue -Wpsabi note when a type
7810 is now treated differently than before.
7812 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7814 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
7815 does not fit fully into floating-point registers, and there is still
7816 space in the register parameter area, use GPRs to pass those parts
7817 of the argument. Issue -Wpsabi note if any parameter is now treated
7818 differently than before.
7819 (rs6000_arg_partial_bytes): Update.
7821 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
7823 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
7825 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
7827 * rtl.h (target_rtl): Remove lang_dependent_initialized.
7828 * toplev.c (initialize_rtl): Don't use it. Move previously
7829 "language-dependent" calls to...
7830 (backend_init): ...here.
7831 (lang_dependent_init_target): Don't set lang_dependent_initialized.
7832 Assert that RTL initialization hasn't happend yet.
7834 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
7836 PR rtl-optimization/61629
7837 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
7838 they have already been initialized.
7840 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
7843 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
7844 DECL_INCOMING_RTL and entry_parm.
7845 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
7846 * calls.c (load_register_parameters): Likewise argument values.
7847 (emit_library_call_value_1, store_one_arg): Likewise argument
7849 * config/i386/i386.c (assign_386_stack_local): Likewise the local
7851 * explow.c (validize_mem): Modify the argument in-place.
7853 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7855 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
7856 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
7858 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7860 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
7861 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
7863 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7865 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
7866 (aarch64_save_callee_saves): New parameter "skip_wb".
7867 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
7869 2014-07-24 Jiong Wang <jiong.wang@arm.com>
7871 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
7873 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
7875 2014-07-24 Roman Gareev <gareevroman@gmail.com>
7877 * graphite-isl-ast-to-gimple.c:
7878 (graphite_create_new_loop): Add calling of isl_id_free to properly
7879 decrement reference counts.
7881 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
7883 2014-07-24 Martin Liska <mliska@suse.cz>
7884 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
7886 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
7887 (rs6000_code_end): Likewise.
7889 2014-07-24 Martin Liska <mliska@suse.cz>
7891 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
7892 symtab_node funtion used.
7893 (rs6000_xcoff_declare_object_name): Likewise.
7895 2014-07-24 Martin Liska <mliska@suse.cz>
7897 * cgraphunit.c (compile): Correct function used.
7899 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
7901 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
7904 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
7907 * varasm.c (bss_initializer_p): Handle offlined ctors.
7908 (align_variable, get_variable_align): Likewise.
7909 (make_decl_one_only): Likewise.
7910 (default_binds_local_p_1): Likewise.
7911 (decl_binds_to_current_def_p): Likewise.
7912 (get_variable_section): Get constructor if it is offlined.
7913 (assemble_variable_contents): Sanity check that the caller
7914 streamed in the ctor in LTO.
7916 2014-07-24 Roman Gareev <gareevroman@gmail.com>
7918 * graphite-isl-ast-to-gimple.c:
7919 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
7920 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
7921 isl_ast_op_pdiv_r to the different case.
7923 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
7925 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7928 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
7929 when flag_errno_math is on.
7931 2014-07-24 Martin Liska <mliska@suse.cz>
7933 * cgraph.h (varpool_node):
7934 (availability get_availability (void)):
7935 created from cgraph_variable_initializer_availability
7936 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
7937 created from: cgraph_variable_initializer_availability
7938 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
7939 (void finalize_named_section_flags (void)):
7940 created from varpool_finalize_named_section_flags
7941 (bool assemble_decl (void)): created from varpool_assemble_decl
7942 (void analyze (void)): created from varpool_analyze_node
7943 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
7944 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
7945 (void remove_initializer (void)): created from varpool_remove_initializer
7946 (tree get_constructor (void)): created from varpool_get_constructor
7947 (bool externally_visible_p (void)): created from varpool_externally_visible_p
7948 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
7949 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
7950 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
7951 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
7952 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
7953 (static bool output_variables (void)): created from varpool_output_variables
7954 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
7955 created from varpool_extra_name_alias
7956 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
7957 (static void dump_varpool (FILE *f)): created from dump_varpool
7958 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
7959 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
7960 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
7961 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
7962 (void assemble_aliases (void)): created from assemble_aliases
7964 2014-07-24 Martin Liska <mliska@suse.cz>
7966 * cgraph.h (symtab_node):
7967 (void register_symbol (void)): created from symtab_register_node
7968 (void remove (void)): created from symtab_remove_node
7969 (void dump (FILE *f)): created from dump_symtab_node
7970 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
7971 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
7972 (struct ipa_ref *add_reference (symtab_node *referred_node,
7973 enum ipa_ref_use use_type)): created from add_reference
7974 (struct ipa_ref *add_reference (symtab_node *referred_node,
7975 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
7976 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
7977 gimple stmt)): created from maybe_add_reference
7978 (bool semantically_equivalent_p (symtab_node *target)): created from
7979 symtab_semantically_equivalent_p
7980 (void remove_from_same_comdat_group (void)): created from
7981 remove_from_same_comdat_group
7982 (void add_to_same_comdat_group (symtab_node *old_node)): created from
7983 symtab_add_to_same_comdat_group
7984 (void dissolve_same_comdat_group_list (void)): created from
7985 symtab_dissolve_same_comdat_group_list
7986 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
7987 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
7988 created from symtab_alias_ultimate_target
7989 (inline symtab_node *next_defined_symbol (void)): created from
7990 symtab_next_defined_symbol
7991 (bool resolve_alias (symtab_node *target)): created from
7992 symtab_resolve_alias
7993 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
7994 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
7995 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
7996 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
7997 (void set_section (const char *section)): created from set_section_1
7998 (enum availability get_availability (void)): created from symtab_node_availability
7999 (void make_decl_local (void)): created from symtab_make_decl_local
8000 (bool real_symbol_p (void)): created from symtab_read_node
8001 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8002 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8003 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8004 symtab_in_same_comdat_p;
8005 (bool address_taken_from_non_vtable_p (void)): created from
8006 address_taken_from_non_vtable_p
8007 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8008 (static void dump_table (FILE *)): created from dump_symtab
8009 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8010 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8011 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8012 symtab_used_from_object_file_p
8013 (void dump_base (FILE *)): created from dump_symtab_base
8014 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8015 (void unregister (void)): created from symtab_unregister_node
8016 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8017 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8018 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8019 symtab_nonoverwritable_alias_1
8020 * cgraph.h (cgraph_node):
8021 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8022 created from cgraph_remove_node_and_inline_clones
8023 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8024 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8025 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8026 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8027 created from cgraph_function_node
8028 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8029 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8030 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8031 created from cgraph_create_clone
8032 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8033 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8034 created from cgraph_create_virtual_clone
8035 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8036 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8037 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8038 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8039 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8040 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8041 created from cgraph_function_version_info
8042 (struct cgraph_function_version_info *insert_new_function_version (void)):
8043 created from insert_new_cgraph_node_version
8044 (struct cgraph_function_version_info *function_version (void)): created from
8045 get_cgraph_node_version
8046 (void analyze (void)): created from analyze_function
8047 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8048 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8049 tree real_alias) cgraph_add_thunk
8050 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8051 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8052 created from cgraph_function_or_thunk_node
8053 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8054 created from expand_thunk
8055 (void reset (void)): created from cgraph_reset_node
8056 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8057 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8058 (void remove (void)): created from cgraph_remove_node
8059 (void dump (FILE *f)): created from dump_cgraph_node
8060 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8061 (bool get_body (void)): created from cgraph_get_body
8062 (void release_body (void)): created from cgraph_release_function_body
8063 (void unnest (void)): created from cgraph_unnest_node
8064 (void make_local (void)): created from cgraph_make_node_local
8065 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8066 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8067 gcov_type count, int freq)): created from cgraph_create_edge
8068 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8069 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8070 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8071 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8072 created from cgraph_create_edge_including_clones
8073 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8074 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8075 (void remove_callers (void)): created from cgraph_node_remove_callers
8076 (void remove_callees (void)): created from cgraph_node_remove_callees
8077 (enum availability get_availability (void)): created from cgraph_function_body_availability
8078 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8079 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8080 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8081 (void call_duplication_hooks (cgraph_node *node2)): created from
8082 cgraph_call_node_duplication_hooks
8083 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8084 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8085 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8086 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8087 (void call_function_insertion_hooks (void)):
8088 created from cgraph_call_function_insertion_hooks
8089 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8090 (bool local_p (void)): created from cgraph_local_node
8091 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8092 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8093 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8094 (inline bool only_called_directly_or_aliased_p (void)):
8095 created from cgraph_only_called_directly_or_aliased_p
8096 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8097 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8098 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8099 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8100 (bool can_remove_if_no_direct_calls_p (void)):
8101 created from cgraph_can_remove_if_no_direct_calls_p
8102 (inline bool has_gimple_body_p (void)):
8103 created from cgraph_function_with_gimple_body_p
8104 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8105 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8106 (static inline void debug_cgraph (void)): created from debug_cgraph
8107 (static void record_function_versions (tree decl1, tree decl2)):
8108 created from record_function_versions
8109 (static void delete_function_version (tree decl)):
8110 created from delete_function_version
8111 (static void add_new_function (tree fndecl, bool lowered)):
8112 created from cgraph_add_new_function
8113 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8114 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8115 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8116 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8117 (static cgraph_node *get_for_asmname (tree asmname)):
8118 created from cgraph_node_for_asm
8119 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8120 created from cgraph_same_body_alias
8121 (static bool used_from_object_file_p_worker (cgraph_node *node,
8122 void *): new function
8123 (static bool non_local_p (cgraph_node *node, void *)):
8124 created from cgraph_non_local_node_p_1
8125 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8126 created from verify_cgraph
8127 (static bool make_local (cgraph_node *node, void *)):
8128 created from cgraph_make_node_local
8129 (static cgraph_node *create_alias (tree alias, tree target)):
8130 created from cgraph_create_function_alias
8131 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8132 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8133 created from cgraph_create_edge_1
8134 * cgraph.h (varpool_node):
8135 (void remove (void)): created from varpool_remove_node
8136 (void dump (FILE *f)): created from dump_varpool_node
8138 2014-07-24 Richard Biener <rguenther@suse.de>
8141 * tree-ssa-structalias.c (create_variable_info_for_1):
8142 Use varpool_get_constructor.
8143 (create_variable_info_for): Likewise.
8145 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8147 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8148 subtract outgoing area size when restoring stack_pointer_rtx.
8150 2014-07-24 Nick Clifton <nickc@redhat.com>
8152 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8153 that operations are taking place in parallel.
8154 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8156 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8158 * omp-low.c (extract_omp_for_data): Add missing break statement.
8160 2014-07-24 Richard Biener <rguenther@suse.de>
8162 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8163 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8164 and adjust MOVE_RATIO query accordingly.
8165 (estimate_num_insns): Adjust callers.
8166 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8167 * ipa-cp.c (gather_context_independent_values,
8168 estimate_local_effects): Likewise.
8169 * ipa-split.c (consider_split): Likewise.
8171 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8173 * config/i386/driver-i386.c: Remove names of unused arguments and
8174 unnecessary unused attributes.
8175 * config/i386/host-mingw32.c: Likewise.
8176 * config/i386/i386.c: Likewise.
8177 * config/i386/winnt-stubs.c: Likewise.
8178 * config/i386/winnt.c: Likewise.
8180 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8182 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8183 (aarch64_gen_loadwb_pair): New helper function.
8184 (aarch64_expand_epilogue): Simplify code using new helper functions.
8185 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8187 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8189 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8190 (aarch64_gen_storewb_pair): New helper function.
8191 (aarch64_expand_prologue): Simplify code using new helper functions.
8192 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8194 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8196 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8197 Rename to aarch64_save_callee_saves, remove restore code.
8198 (aarch64_restore_callee_saves): New function.
8200 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8202 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8203 (aarch64_save_callee_saves): New function to handle reg save
8204 for both core and vectore regs.
8206 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8208 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8209 (aarch64_gen_store_pair): New helper function.
8210 (aarch64_save_or_restore_callee_save_registers)
8211 (aarch64_save_or_restore_fprs): Use new helper functions.
8213 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8215 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8216 (aarch64_save_or_restore_callee_save_registers)
8217 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8219 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8221 * config/aarch64/aarch64.c
8222 (aarch64_save_or_restore_callee_save_registers)
8223 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8225 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8227 * config/aarch64/aarch64.c
8228 (aarch64_save_or_restore_callee_save_registers)
8229 (aarch64_save_or_restore_fprs): Remove 'increment'.
8231 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8233 * config/aarch64/aarch64.c
8234 (aarch64_save_or_restore_callee_save_registers)
8235 (aarch64_save_or_restore_fprs): Use register offset in
8236 cfun->machine->frame.reg_offset.
8238 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8240 * config/aarch64/aarch64.c
8241 (aarch64_save_or_restore_callee_save_registers)
8242 (aarch64_save_or_restore_fprs): Remove base_rtx.
8244 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8246 * config/aarch64/aarch64.c
8247 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8248 to 'start_offset'. Remove local variable 'start_offset'.
8250 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8252 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8253 type to HOST_WIDE_INT.
8255 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8257 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8258 (aarch64_save_or_restore_fprs)
8259 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8261 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8263 * config/arm/t-rtems-eabi: Add
8264 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8265 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8266 mbig-endian/mthumb/march=armv7-r, and
8267 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8270 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8271 Chris Johns <chrisj@rtems.org>
8272 Joel Sherrill <joel.sherrill@oarcorp.com>
8274 * config.gcc: Add nios2-*-rtems*.
8275 * config/nios2/rtems.h: New file.
8276 * gcc/config/nios2/t-rtems: New file.
8278 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
8281 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8282 constant numbers, not general constants.
8283 (rs6000_expand_vector_init): Ditto.
8285 2014-07-23 Nathan Sidwell <nathan@acm.org>
8287 * gcov-tool.c (gcov_list): Declare here.
8288 (set_gcov_list): Remove.
8289 (gcov_output_files): Set gcov_list directly.
8291 2014-07-23 Host Schirmeier <horst@schirmeier.com>
8293 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
8295 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8297 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
8298 callee-saved registers are available for padding purpose
8299 and r3 is not mandatory, then prefer use those callee-saved
8302 2014-07-23 Richard Biener <rguenther@suse.de>
8304 * params.def (PARAM_MAX_COMBINE_INSNS): New.
8305 * combine.c: Include statistics.h and params.h.
8306 (combine_instructions): Guard three and four insn combines
8307 with max-combine-insns value. Record statistics for combines
8309 * doc/invoke.texi (max-combine-insns): Document new param.
8311 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8313 * graphite-isl-ast-to-gimple.c:
8314 (translate_isl_ast_node_block): New function.
8315 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
8317 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
8318 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
8320 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8322 * graphite-isl-ast-to-gimple.c:
8323 (get_max_schedule_dimensions): New function.
8324 (extend_schedule): Likewise.
8325 (generate_isl_schedule): Add calling of extend_schedule and
8326 get_max_schedule_dimensions.
8328 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8330 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
8331 (case UNSPEC): Handle UNSPEC_RBIT.
8333 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8335 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
8336 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
8338 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8340 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
8342 2014-07-22 Roman Gareev <gareevroman@gmail.com>
8344 * graphite-isl-ast-to-gimple.c:
8345 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
8347 (build_iv_mapping): New function.
8348 (translate_isl_ast_node_user): Likewise.
8349 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
8351 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
8352 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
8353 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
8355 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8358 * config/arm/arm.md (setmem): New pattern.
8359 * config/arm/arm-protos.h (struct tune_params): New fields.
8360 (arm_gen_setmem): New prototype.
8361 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
8362 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8363 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8364 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
8365 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
8366 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
8367 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
8368 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8369 (arm_const_inline_cost): New function.
8370 (arm_block_set_max_insns): New function.
8371 (arm_block_set_non_vect_profit_p): New function.
8372 (arm_block_set_vect_profit_p): New function.
8373 (arm_block_set_unaligned_vect): New function.
8374 (arm_block_set_aligned_vect): New function.
8375 (arm_block_set_unaligned_non_vect): New function.
8376 (arm_block_set_aligned_non_vect): New function.
8377 (arm_block_set_vect, arm_gen_setmem): New functions.
8379 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8381 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
8383 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
8386 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
8387 out of #ifdef __OPTIMIZE__.
8389 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8391 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
8392 different trapping status if -fnon-call-exceptions is enabled.
8394 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8396 * expr.c (store_field): Handle VOIDmode for calls that return values
8397 in multiple locations.
8399 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8401 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
8402 (altivec_vsldoi_<mode>): Likewise.
8404 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8406 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
8407 to the number of characters in the line.
8409 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8411 * graphite-isl-ast-to-gimple.c: Add using of
8412 build_nonstandard_integer_type instead of int128_integer_type_node.
8414 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
8416 * toplev.c (output_stack_usage): Adjust the location of the warning.
8418 2014-07-19 Daniel Cederman <cederman@gaisler.com>
8420 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
8421 (*membar_storeload): Disable for LEON3.
8423 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8425 PR rtl-optimization/61461
8426 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
8428 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
8431 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
8432 Fix instruction constraint.
8433 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8435 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
8437 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
8439 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
8441 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
8442 GNU coding standards.
8443 (nds32_register_move_cost): Likewise.
8444 (nds32_memory_move_cost): Likewise.
8445 (nds32_address_cost): Likewise.
8447 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8449 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
8451 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
8453 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
8454 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
8455 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
8456 (HAVE_sync_compare_and_swapqi): Define.
8457 (HAVE_sync_compare_and_swaphi): Likewise.
8458 (HAVE_sync_compare_and_swapsi): Likewise.
8460 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
8462 * config/mips/p5600.md: Add missing cpu tests.
8464 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8466 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
8467 (vmla_f64): Likewise.
8468 (vfms_f64): Likewise.
8469 (vmls_f64): Likewise.
8471 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8473 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
8474 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
8476 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8478 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
8479 (vmlal_high_lane_s32): Likewise.
8480 (vmlal_high_lane_u16): Likewise.
8481 (vmlal_high_lane_u32): Likewise.
8482 (vmlsl_high_lane_s16): Likewise.
8483 (vmlsl_high_lane_s32): Likewise.
8484 (vmlsl_high_lane_u16): Likewise.
8485 (vmlsl_high_lane_u32): Likewise.
8487 2014-07-17 Terry Guo <terry.guo@arm.com>
8489 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
8490 (alus_reg): Renamed to alus_sreg.
8491 * config/arm/arm-fixed.md: Change type of non-dsp instructions
8492 from alu_reg to alu_sreg. Change type of dsp instructions from
8493 alu_reg to alu_dsp_reg.
8494 * config/arm/thumb1.md: Likewise.
8495 * config/arm/thumb2.md: Likewise.
8496 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
8497 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
8498 with alu_sreg and alus_sreg.
8499 * config/arm/arm1026ejs.md (alu_op): Likewise.
8500 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
8501 * config/arm/arm926ejs.md (9_alu_op): Likewise.
8502 * config/arm/fa526.md (526_alu_op): Likewise.
8503 * config/arm/fa606te.md (606te_alu_op): Likewise.
8504 * config/arm/fa626te.md (626te_alu_op): Likewise.
8505 * config/arm/fa726te.md (726te_alu_op): Likewise.
8506 * config/arm/fmp626.md (mp626_alu_op): Likewise.
8507 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
8508 alu_sreg, alu_dsp_reg and alus_sreg.
8509 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
8510 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8511 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8512 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
8513 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
8514 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8515 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8516 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8517 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
8518 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
8519 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
8520 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
8521 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
8522 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
8523 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
8524 alus_reg to alus_sreg.
8526 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
8528 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
8531 2014-07-17 Richard Biener <rguenther@suse.de>
8533 PR rtl-optimization/61801
8534 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
8535 don't set reg_pending_barrier if it appears in a debug-insn.
8537 2014-07-16 DJ Delorie <dj@redhat.com>
8539 * config/rx/rx.c (rx_option_override): Fix alignment values.
8540 (rx_align_for_label): Likewise.
8542 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
8545 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
8546 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8547 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
8549 (cris_print_index, cris_print_operand, cris_constant_index_p)
8550 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
8551 (cris_address_cost): Ditto last CONSTANT_P.
8552 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
8553 callers changed. Yield cris_offsettable_symbol for non-PIC
8554 constant symbolic expressions including labels. Yield cris_unspec
8556 (cris_expand_pic_call_address): New parameter MARKERP. Set its
8557 target to pic_offset_table_rtx for calls that will likely go
8558 through PLT, const0_rtx when they can't. All callers changed.
8559 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
8560 symbolic expressions to be PICified. Remove second, redundant,
8561 assert on can_create_pseudo_p returning non-zero. Use
8562 replace_equiv_address_nv, not replace_equiv_address, for final
8564 * config/cris/cris.md ("movsi"): Move variable t to pattern
8565 toplevel. Adjust assert for new cris_symbol_type member. Use
8566 CONSTANT_P instead of CONSTANT_ADDRESS_P.
8567 ("*movsi_internal") <case 9>: Make check for valid unspec operands
8569 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
8570 ("call", "call_value"): Use second incoming operand as a marker
8571 for pic-offset-table-register being used.
8572 ("*expanded_call_non_v32", "*expanded_call_v32")
8573 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
8574 second incoming operand to CALL, match cris_call_type_marker.
8575 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
8576 ("*expanded_call_side"): Ditto. Fix typo in comment.
8577 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
8579 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
8580 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
8581 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
8582 users changed. Add members cris_offsettable_symbol and cris_unspec.
8583 (cris_symbol_type): Rename from cris_pic_symbol_type.
8584 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
8586 * config/cris/cris-protos.h (cris_symbol_type_of,
8587 cris_expand_pic_call_address): Adjust prototypes.
8588 (cris_legitimate_constant_p): New prototype.
8590 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
8591 an existing tmake_file. Don't add t-slibgcc and t-linux.
8593 2014-07-17 Jason Merrill <jason@redhat.com>
8596 * symtab.c (symtab_remove_from_same_comdat_group): Also
8597 set_comdat_group to NULL_TREE.
8598 (verify_symtab): Fix diagnostic.
8600 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
8603 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
8605 2014-07-16 Dodji Seketeli <dodji@redhat.com>
8607 Support location tracking for built-in macro tokens
8608 * input.h (is_location_from_builtin_token): New function declaration.
8609 * input.c (is_location_from_builtin_token): New function definition.
8610 * toplev.c (general_init): Tell libcpp what the pre-defined
8611 spelling location for built-in tokens is.
8613 2014-07-16 Jakub Jelinek <jakub@redhat.com>
8615 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
8616 on the FUNCTION_DECL.
8618 2014-07-16 Richard Biener <rguenther@suse.de>
8621 * doc/extend.texi (always_inline): Clarify.
8623 2014-07-15 Eric Christopher <echristo@gmail.com>
8625 * doc/invoke.texi (Link Options): Document -z option.
8627 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
8629 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
8630 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
8632 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
8634 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
8636 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
8638 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
8639 varpool_assemble_decl.
8640 * varpool.c (varpool_assemble_decl): Assert that node->definition is
8643 2014-07-15 Michael Matz <matz@suse.de>
8645 PR rtl-optimization/61772
8646 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
8648 2014-07-15 Richard Biener <rguenther@suse.de>
8650 * opts.c (default_options_table): Disable bit-ccp at -Og.
8652 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
8654 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
8656 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
8658 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
8659 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
8660 call langhook for unknown declaration.
8661 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
8662 * tree.h (DECL_ARGUMENTS): Update.
8663 * print-tree.c (print_node): Update.
8664 * tree-core.h (tree_decl_non_common): Remove arguments.
8665 (tree_function_decl): Add arguments.
8667 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
8669 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
8671 2014-07-14 Richard Biener <rguenther@suse.de>
8673 PR tree-optimization/61779
8674 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
8675 simplifying a condition.
8677 2014-07-14 Richard Biener <rguenther@suse.de>
8679 * builtins.c (c_strlen): Make only_value == 2 really only
8680 affect warning generation.
8682 2014-07-14 Richard Biener <rguenther@suse.de>
8684 PR tree-optimization/61757
8685 PR tree-optimization/61783
8686 PR tree-optimization/61787
8687 * tree-ssa-dom.c (record_equality): Revert canonicalization
8688 change and add comment.
8689 (propagate_rhs_into_lhs): Revert previous fix, removing
8690 loop depth restriction again.
8692 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8694 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
8695 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
8696 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
8697 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
8698 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
8699 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
8700 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
8702 2014-07-14 Richard Biener <rguenther@suse.de>
8704 * cgraph.h (decl_in_symtab_p): Make inline.
8706 2014-07-14 Jakub Jelinek <jakub@redhat.com>
8709 * doc/invoke.texi (-Wmemset-transposed-args): Document.
8712 * config/i386/i386.c (classify_argument): Don't merge classes above
8715 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
8717 * cgraph.h (symtab_node): Add nonzero_address.
8718 (decl_in_symtab_p): Break out from ...
8719 (symtab_get_node): ... here.
8720 * fold-const.c: Include cgraph.h
8721 (tree_single_nonzero_warnv_p): Use symtab to determine
8722 if symbol is non-zero.
8723 * symtab.c (symtab_node::nonzero_address): New method.
8725 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8727 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
8728 forgotten in previous commit.
8730 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8732 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
8734 * ipa-devirt.c: Include stor-layout.h and intl.h
8735 (odr_subtypes_equivalent_p): New function.
8736 (warn_odr): New function.
8737 (warn_type_mismatch): New function.
8738 (odr_types_equivalent_p): New function.
8739 (add_type_duplicate): Use it.
8740 * common.opt (Wodr): New flag.
8741 * doc/invoke.texi (Wodr): Document new warning.
8743 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
8745 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
8746 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
8747 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
8748 (varpool_get_constructor): Push CTORS_IN timevar.
8749 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
8751 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
8753 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
8754 Remove VOID_FTYPE_PUSHORT.
8755 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
8756 Change code to USHORT_FTYPE_VOID.
8757 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
8758 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
8759 (ix86_atomic_assign_expand_fenv): Update for
8760 __builtin_ia32_fnstsw changes.
8761 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
8762 (fnstsw): Change operand 0 to nonimmediate operand.
8764 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
8766 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
8767 (varpool_get_constructor): New function.
8768 (varpool_ctor_useable_for_folding_p): Break out from ...
8769 (ctor_for_folding): ... here; use varpool_get_constructor.
8770 (varpool_assemble_decl): Likewise.
8771 * lto-streamer.h (struct output_block): Turn cgraph_node
8773 (lto_input_variable_constructor): Declare.
8774 * ipa-visibility.c (function_and_variable_visibility): Use
8775 varpool_get_constructor.
8776 * cgraph.h (varpool_get_constructor): Declare.
8777 (varpool_ctor_useable_for_folding_p): New function.
8778 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
8779 parameter; return error_mark_node for non-trivial constructors.
8780 (lto_write_tree_1, DFS_write_tree): Update use of
8781 get_symbol_initial_value.
8782 (output_function): Update initialization of symbol.
8783 (output_constructor): New function.
8784 (copy_function): Rename to ..
8785 (copy_function_or_variable): ... this one; handle vars too.
8786 (lto_output): Output variable sections.
8787 * lto-streamer-in.c (input_constructor): New function.
8788 (lto_read_body): Rename from ...
8789 (lto_read_body_or_constructor): ... this one; handle vars too.
8790 (lto_input_variable_constructor): New function.
8791 * ipa-prop.c (ipa_prop_write_jump_functions,
8792 ipa_prop_write_all_agg_replacement): Update.
8793 * lto-cgraph.c (compute_ltrans_boundary): Use it.
8794 (output_cgraph_opt_summary): Set symbol to NULL.
8796 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
8798 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
8799 non-polymorphic types.
8800 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
8801 * ipa-devirt.c (types_same_for_odr): Do not explode when one
8802 of types is not polymorphic.
8804 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
8806 * lra-constraints.c (remove_inheritance_pseudos): Process
8807 destination pseudo too.
8809 2014-07-11 Rong Xu <xur@google.com>
8811 * gcov-tool.c (gcov_output_files): Fix build error introduced in
8814 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8816 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
8817 * config/avr/avr-devices.c (AVR_MCU): Same.
8818 (avr_mcu_types): add text start value to end of device list.
8819 * config/avr/avr-mcus.def: Add text section start for all devices.
8820 (ata5782): Add new avr5 device.
8822 * config/avr/avr-tables.opt: Regenerate.
8823 * config/avr/avr.h: Add declaration for text section start handler.
8824 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
8826 (LINK_SPEC): Include text section start handler to linker spec.
8827 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
8828 pass -Ttext option to linker if the text section start for the device
8830 * config/avr/t-multilib: Regenerate.
8831 * doc/avr-mmcu.texi: Regenerate.
8833 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
8835 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
8836 * config/rs6000/aix52.h (LINK_SPEC): Same.
8837 * config/rs6000/aix53.h (LINK_SPEC): Same.
8838 * config/rs6000/aix61.h (LINK_SPEC): Same.
8839 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
8841 2014-07-11 Roman Gareev <gareevroman@gmail.com>
8843 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
8844 (graphite_verify): New function.
8845 (ivs_params_clear): New function.
8846 (gcc_expression_from_isl_ast_expr_id): New function.
8847 (gcc_expression_from_isl_expr_int): New function.
8848 (binary_op_to_tree): New function.
8849 (ternary_op_to_tree): New function.
8850 (unary_op_to_tree): New function.
8851 (nary_op_to_tree): New function.
8852 (gcc_expression_from_isl_expr_op): New function.
8853 (gcc_expression_from_isl_expression): New function.
8854 (graphite_create_new_loop): New function.
8855 (translate_isl_ast_for_loop): New function.
8856 (get_upper_bound): New function.
8857 (graphite_create_new_loop_guard): New function.
8858 (translate_isl_ast_node_for): New function.
8859 (translate_isl_ast): New function.
8860 (add_parameters_to_ivs_params): New function.
8861 (scop_to_isl_ast): New parameter ip.
8862 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
8864 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
8866 * config/xtensa/predicates.md (call expander): Update for
8867 DECL_SECTION_NAME being string.
8869 2014-07-11 Richard Biener <rguenther@suse.de>
8872 * builtins.c (fold_builtin_memory_op): Inline memory moves that
8873 can be implemented with a single load followed by a single store.
8874 (c_strlen): Only warn when only_value is not 2.
8876 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
8878 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
8880 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
8883 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
8884 (*movhi_bytes): Likewise.
8885 (*arm_movqi_insn): Likewise.
8887 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
8890 * config/alpha/alpha.c: Include tree-pass.h, context.h
8892 (pass_data_handle_trap_shadows): New pass.
8893 (pass_handle_trap_shadows::gate): New pass gate function.
8894 (make_pass_handle_trap_shadows): New function.
8895 (rest_of_handle_trap_shadows): Ditto.
8897 (alpha_align_insns_1): Rename from alpha_align_insns.
8898 (pass_data_align_insns): New pass.
8899 (pass_align_insns::gate): New pass gate function.
8900 (make_pass_aling_insns): New function.
8901 (rest_of_align_insns): Ditto.
8902 (alpha_align_insns): Ditto.
8904 (alpha_option_override): Declare handle_trap_shadows info
8905 and align_insns_info. Register handle_trap_shadows and align_insns
8907 (alpha_reorg): Do not call alpha_trap_shadows and
8908 alpha_align_insn from here.
8910 (alpha_pad_function_end): Do not skip BARRIERs.
8912 2014-07-10 Rong Xu <xur@google.com>
8914 Add gcov-tool: an offline gcda profile processing tool support.
8915 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
8916 (gcov_is_error): Ditto.
8917 (gcov_read_string): Ditto.
8918 (gcov_read_sync): Ditto.
8919 * gcov-io.h: Move counter defines to gcov-counter.def.
8920 * gcov-dump.c (tag_counters): Use gcov-counter.def.
8921 * coverage.c: Ditto.
8922 * gcov-tool.c: Offline gcda profile processing tool.
8923 (unlink_gcda_file): Remove one gcda file.
8924 (unlink_profile_dir): Remove gcda files from the profile path.
8925 (gcov_output_files): Output gcda files to an output dir.
8926 (profile_merge): Merge two profiles in directory.
8927 (print_merge_usage_message): Print merge usage.
8928 (merge_usage): Print merge usage and exit.
8929 (do_merge): Driver for profile merge sub-command.
8930 (profile_rewrite): Rewrite profile.
8931 (print_rewrite_usage_message): Print rewrite usage.
8932 (rewrite_usage): Print rewrite usage and exit.
8933 (do_rewrite): Driver for profile rewrite sub-command.
8934 (print_usage): Print gcov-info usage and exit.
8935 (print_version): Print gcov-info version.
8936 (process_args): Process arguments.
8937 (main): Main routine for gcov-tool.
8938 * Makefile.in: Build and install gcov-tool.
8939 * gcov-counter.def: New file split from gcov-io.h.
8940 * doc/gcc.texi: Include gcov-tool.texi.
8941 * doc/gcov-tool.texi: Document for gcov-tool.
8943 2014-07-10 Richard Biener <rguenther@suse.de>
8945 PR tree-optimization/61757
8946 * tree-ssa-dom.c (loop_depth_of_name): Restore.
8947 (propagate_rhs_into_lhs): Revert part of last change.
8949 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
8951 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
8954 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
8957 * function.c (allocate_struct_function): Revert r188667 change.
8959 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
8961 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
8963 * doc/install.texi: Remove links to defunct package providers for
8966 2014-07-09 Tom de Vries <tom@codesourcery.com>
8968 * final.c (get_call_fndecl): Declare.
8969 (self_recursive_call_p): New function.
8970 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
8972 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8974 * ipa-devirt.c (record_node): Walk through aliases.
8976 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8978 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
8980 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8983 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
8985 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8987 * ipa-visibility.c (function_and_variable_visibility): Remove
8988 temporary hack disabling local aliases on AIX.
8990 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8992 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
8993 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
8995 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
8997 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
8998 * rs6000/rs6000.c: Inline output of .set instruction.
8999 (declare_alias_data): New struct.
9000 (rs6000_declare_alias): New function.
9001 (rs6000_xcoff_declare_function_name): Use it.
9002 (rs6000_xcoff_declare_object_name): New function.
9003 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9004 (ASM_OUTPUT_DEF): Turn to empty definition.
9006 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9009 * hash-table.h: use hash_table::value_type instead of
9010 Descriptor::value_type in the return types of several methods.
9012 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9014 * tree-pass.h (pass_data): Remove has_execute member.
9015 * passes.c (execute_one_pass): Don't check pass->has_execute.
9016 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9017 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9018 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9019 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9020 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9021 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9022 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9023 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9024 gimple-low.c, gimple-ssa-isolate-paths.c,
9025 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9026 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9027 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9028 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9029 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9030 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9031 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9032 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9033 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9034 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9035 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9036 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9037 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9038 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9039 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9040 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9041 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9042 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9043 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9044 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9045 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9046 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9047 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9048 web.c: Remove initializer for pass_data::has_execute.
9050 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9052 * graphite-htab.h: Use hash_map instead of hash_table.
9053 * graphite-clast-to-gimple.c: Adjust.
9054 * passes.c: Use hash_map instead of hash_table.
9056 * sese.h: Remove now unused code.
9058 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9061 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9064 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9066 PR rtl-optimization/61673
9067 * combine.c (simplify_comparison): Test just mode's sign bit
9068 in tmode rather than the sign bit and any bits above it.
9070 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9072 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9073 Add __isl_give to the declaration.
9074 (generate_isl_schedule): Likewise.
9075 (scop_to_isl_ast): Likewise.
9077 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9079 * config/arm/arm.c (cortexa5_extra_costs): New table.
9080 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9082 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9084 PR tree-optimization/61725
9085 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9086 range, use range_includes_zerop_p instead of integer_zerop on
9087 vr0->min, only use log2 of max if min is not negative.
9089 2014-07-08 Richard Biener <rguenther@suse.de>
9091 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9092 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9093 restriction on loop depth difference.
9094 (record_equality): Likewise.
9095 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9096 (loop_depth_of_name): Remove.
9097 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9098 restriction on loop depth difference.
9099 (init_copy_prop): Likewise.
9101 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9103 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9105 (walk_aliased_vdefs): Likewise.
9106 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9107 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9108 (detect_type_change_from_memory_writes): Check if entry was reached.
9110 2014-07-08 Richard Biener <rguenther@suse.de>
9112 PR tree-optimization/61681
9113 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9114 NONLOCAL inside ESCAPED.
9116 2014-07-08 Richard Biener <rguenther@suse.de>
9118 PR tree-optimization/61680
9119 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9120 Handle properly all read-write dependences with group accesses.
9122 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9124 PR tree-optimization/61576
9125 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9126 block containing reduction statement is predecessor of phi basi block.
9128 2014-07-08 Marek Polacek <polacek@redhat.com>
9131 * fold-const.c (round_up_loc): Change the parameter type.
9133 * fold-const.h (round_up_loc): Adjust declaration.
9134 * stor-layout.c (finalize_record_size): Check for too large types.
9136 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9138 * symtab.c: Include calls.h.
9139 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9141 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9143 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9144 little-endian code generation.
9145 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9146 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9147 (spe_evmergehilo): Rename to...
9148 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9149 (spe_evmergelo): Rename to...
9150 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9151 (spe_evmergelohi): Rename to...
9152 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9153 (spe_evmergehi, spe_evmergehilo): New expanders.
9154 (spe_evmergelo, spe_evmergelohi): Likewise.
9155 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9156 (*frob_tf_ti): Likewise.
9157 (*frob_<mode>_di_2): Likewise.
9158 (*frob_tf_di_8_2): Likewise.
9159 (*frob_di_<mode>): Likewise.
9160 (*frob_ti_tf): Likewise.
9161 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9162 (*frob_ti_<mode>_8_2): Likewise.
9163 (*frob_ti_tf_2): Likewise.
9164 (mov_si<mode>_e500_subreg0): Rename to...
9165 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9167 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9168 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9169 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9170 the big endianness only.
9171 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9172 (*mov_si<mode>_e500_subreg0_2): Rename to...
9173 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9174 big big endianness only.
9175 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9176 (*mov_si<mode>_e500_subreg4): Rename to...
9177 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9179 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9180 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9181 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9182 the big endianness only.
9183 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9185 (*mov_si<mode>_e500_subreg4_2): Rename to...
9186 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9188 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9189 (*mov_sitf_e500_subreg8): Rename to...
9190 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9192 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9193 (*mov_sitf_e500_subreg8_2): Rename to...
9194 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9196 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9197 (*mov_sitf_e500_subreg12): Rename to...
9198 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9200 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9201 (*mov_sitf_e500_subreg12_2): Rename to...
9202 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9204 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9206 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9208 * asan.c (instrument_strlen_call): Do not instrument first byte
9209 in strlen if already instrumented.
9211 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9213 * config/arm/arm.opt (mwords-little-endian): Delete.
9214 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9215 of TARGET_LITTLE_WORDS.
9216 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9217 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9219 * doc/invoke.texi: Remove references to -mwords-little-endian.
9221 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9223 * expmed.c (struct init_expmed_rtl): Change all fields but
9224 pow2 and cint from struct rtx_def to rtx.
9225 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9226 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9229 2014-07-06 Marek Polacek <polacek@redhat.com>
9232 * doc/invoke.texi: Document -Wsizeof-array-argument.
9234 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9236 * wide-int.h (wide_int_storage): Change declaration from struct
9239 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9241 * cgraph.c (cgraph_create_indirect_edge): Update call of
9242 get_polymorphic_call_info.
9243 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9244 (possible_polymorphic_call_targets): Add parameter call.
9245 (decl_maybe_in_construction_p): New predicate.
9246 (get_polymorphic_call_info): Add parameter call;
9247 use decl_maybe_in_construction_p.
9248 * gimple-fold.c (fold_gimple_assign): Update use of
9249 possible_polymorphic_call_targets.
9250 (gimple_fold_call): Likewise.
9251 * ipa-prop.c: Inlcude calls.h
9252 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9253 (param_type_may_change_p): New predicate.
9254 (detect_type_change_from_memory_writes): Break out from ...
9255 (detect_type_change): ... this one; use param_type_may_change_p.
9256 (detect_type_change_ssa): Use param_type_may_change_p.
9257 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9259 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9262 * config/arm/arm-protos.h (arm_legitimate_address_p,
9263 arm_is_constant_pool_ref): Add prototypes.
9264 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9265 (arm_is_constant_pool_ref) New function.
9266 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9267 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9268 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9269 operand. Remove pool_range and neg_pool_range attributes.
9270 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9271 pool_range and neg_pool_range attributes.
9272 * config/arm/constraints.md (Uh): New constraint.
9273 (Uq): Don't allow constant pool references.
9275 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
9277 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9278 (move_lo_quad_internal_be_<mode>): Likewise.
9279 (move_lo_quad_<mode>): Convert to define_expand.
9280 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9281 (aarch64_simd_move_hi_quad_be_<mode>): New.
9282 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9283 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9284 (aarch64_combinez_be<mode>): New.
9285 (aarch64_combine<mode>): Convert to define_expand.
9286 (aarch64_combine_internal<mode>): New.
9287 (aarch64_simd_combine<mode>): Remove bogus RTL description.
9289 2014-07-04 Tom de Vries <tom@codesourcery.com>
9291 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
9292 combination of earlyclobber and read/write modifiers.
9294 2014-07-04 Tom de Vries <tom@codesourcery.com>
9296 * config/aarch64/aarch64-simd.md
9297 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
9299 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
9302 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
9304 2014-07-04 Jakub Jelinek <jakub@redhat.com>
9307 * cgraphunit.c (expand_thunk): Call free_dominance_info.
9309 PR tree-optimization/61684
9310 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
9311 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
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_have_prologue_p): Move to ...
9318 (nds32_symbol_load_store_p): Move to ...
9319 (nds32_fp_as_gp_check_available): Move to ...
9320 * config/nds32/nds32-fp-as-gp.c: ... here.
9321 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
9324 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9325 Kito Cheng <kito@0xlab.org>
9326 Monk Chiang <sh.chiang04@gmail.com>
9328 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
9329 (nds32_expand_store_multiple): Move to ...
9330 (nds32_expand_movmemqi): Move to ...
9331 * config/nds32/nds32-memory-manipulation.c: ... here.
9333 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9334 Kito Cheng <kito@0xlab.org>
9335 Monk Chiang <sh.chiang04@gmail.com>
9337 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
9338 (nds32_output_casesi_pc_relative): Move to ...
9339 (nds32_output_casesi): Move to ...
9340 (nds32_mem_format): Move to ...
9341 (nds32_output_16bit_store): Move to ...
9342 (nds32_output_16bit_load): Move to ...
9343 (nds32_output_32bit_store): Move to ...
9344 (nds32_output_32bit_load): Move to ...
9345 (nds32_output_32bit_load_s): Move to ...
9346 (nds32_output_stack_push): Move to ...
9347 (nds32_output_stack_pop): Move to ...
9348 * config/nds32/nds32-md-auxiliary.c: ... here.
9350 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9351 Ling-Hua Tseng <uranus@tinlans.org>
9353 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
9354 the purpose of this file.
9356 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9357 Kito Cheng <kito@0xlab.org>
9358 Monk Chiang <sh.chiang04@gmail.com>
9360 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
9361 (nds32_address_cost): Move implementation to ...
9362 * config/nds32/nds32-cost.c: ... here.
9363 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
9364 (nds32_address_cost_impl): Declare.
9366 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9367 Kito Cheng <kito@0xlab.org>
9368 Monk Chiang <sh.chiang04@gmail.com>
9370 * config/nds32/nds32.c
9371 (nds32_consecutive_registers_load_store_p): Move to ...
9372 (nds32_valid_multiple_load_store): Move to ...
9373 (nds32_valid_stack_push_pop): Move to ...
9374 (nds32_can_use_bclr_p): Move to ...
9375 (nds32_can_use_bset_p): Move to ...
9376 (nds32_can_use_btgl_p): Move to ...
9377 (nds32_can_use_bitci_p): Move to ...
9378 * config/nds32/nds32-predicates.c: ... here.
9380 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9381 Kito Cheng <kito@0xlab.org>
9382 Monk Chiang <sh.chiang04@gmail.com>
9384 * config/nds32/nds32.c
9385 (nds32_expand_builtin_null_ftype_reg): Move to ...
9386 (nds32_expand_builtin_reg_ftype_imm): Move to ...
9387 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
9388 (nds32_init_builtins): Move implementation to ...
9389 (nds32_expand_builtin): Move implementation to ...
9390 * config/nds32/nds32-intrinsic.c: ... here.
9391 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
9392 (nds32_expand_builtin_impl): 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/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
9399 (nds32_emit_section_tail_template): Move to ...
9400 (nds32_emit_isr_jmptbl_section): Move to ...
9401 (nds32_emit_isr_vector_section): Move to ...
9402 (nds32_emit_isr_reset_conten): Move to ...
9403 (nds32_check_isr_attrs_conflict): Move to ...
9404 (nds32_construct_isr_vectors_information): Move to ...
9405 (nds32_asm_file_start): Move implementation to ...
9406 (nds32_asm_file_end): Move implementation to ...
9407 * config/nds32/nds32-isr.c: ... here.
9408 * config/nds32/nds32-protos.h
9409 (nds32_check_isr_attrs_conflict): Declare.
9410 (nds32_construct_isr_vectors_information): Declare.
9411 (nds32_asm_file_start_for_isr): Declare.
9412 (nds32_asm_file_end_for_isr): Declare.
9414 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9415 Kito Cheng <kito@0xlab.org>
9416 Monk Chiang <sh.chiang04@gmail.com>
9418 * config.gcc (nds32*): Add new modules to extra_objs.
9419 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
9420 (nds32be-*-*): Likewise.
9421 * config/nds32/nds32-cost.c: New file.
9422 * config/nds32/nds32-fp-as-gp.c: New file.
9423 * config/nds32/nds32-intrinsic.c: New file.
9424 * config/nds32/nds32-isr.c: New file.
9425 * config/nds32/nds32-md-auxiliary.c: New file.
9426 * config/nds32/nds32-memory-manipulation.c: New file.
9427 * config/nds32/nds32-pipelines-auxiliary.c: New file.
9428 * config/nds32/nds32-predicates.c: New file.
9429 * config/nds32/t-nds32: New file.
9431 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9433 PR tree-optimization/61682
9434 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
9435 using cases and when one of the operands is equal to 1.
9437 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
9439 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
9440 ashr<mode>3): Correct mode of operands[2].
9441 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
9442 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
9443 Correct mode of operands[2]. Fix split condition.
9445 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
9447 * arm.md (arch): Add armv6_or_vfpv3.
9448 (arch_enabled): Add test for the above.
9449 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
9451 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
9453 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9455 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
9456 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
9457 HWI 1 and negate the unsigned value.
9458 * expmed.c (expand_sdiv_pow2): For modes wider than word always
9459 use AND instead of shift.
9460 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
9462 2014-07-03 Marek Polacek <polacek@redhat.com>
9464 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
9465 (-fsanitize=float-divide-by-zero): Move to the table with
9466 -fsanitize=undefined suboptions.
9467 (-fsanitize=float-cast-overflow): Likewise.
9469 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
9471 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
9472 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
9475 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9477 * loop-invariant.c (struct invariant): Add a new member: eqno;
9478 (find_identical_invariants): Update eqno;
9479 (create_new_invariant): Init eqno;
9480 (get_inv_cost): Compute comp_cost with eqno;
9482 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
9484 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
9485 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
9486 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
9487 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
9488 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
9490 2014-07-02 Christian Bruel <christian.bruel@st.com>
9494 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
9495 (make_preds_opaque): Delete.
9496 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
9497 (commit_mode_sets): New function.
9498 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
9499 Process all modes at once.
9500 * basic-block.h (pre_edge_lcm_avs): Declare.
9501 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
9502 Call clear_aux_for_edges. Fix comments.
9503 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
9504 (pre_edge_rev_lcm): Idem.
9505 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
9507 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
9508 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
9510 * config/i386/i386.c (x96_emit_mode_set): Idem.
9511 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
9512 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
9513 (fpscr_toggle) Disallow from delay slot.
9514 * target.def (emit_mode_set): Add prev_mode parameter.
9515 * doc/tm.texi: Regenerate.
9517 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9519 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
9522 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9524 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
9525 vtable_pointer_value_to_vtable): Constify.
9526 (contains_polymorphic_type_p): Declare.
9527 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
9528 vtable_pointer_value_to_vtable): Constify.
9529 (contains_polymorphic_type_p): New predicate.
9530 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
9532 (ipa_set_ancestor_jf): Likewise.
9533 (detect_type_change): Return false in easy cases.
9534 (compute_complex_assign_jump_func): Require type to contain
9536 (compute_known_type_jump_func): Likewise.
9538 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
9540 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
9542 (type_in_anonymous_namespace_p): Constify argument.
9543 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
9544 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
9545 (main_odr_variant): New function.
9546 (hash_type_name): Make static; update assert; do not ICE on
9548 (types_same_for_odr): Bring here from tree.c; simplify and remove
9549 old structural comparing code that doesn't work for templates.
9550 (odr_hasher::equal): Update assert.
9551 (add_type_duplicate): Return true when bases should be computed;
9552 replace incomplete loader by complete; do not output duplicated
9553 warnings; do not ICE on non-records; set odr_violated flag.
9554 (get_odr_type): Be ready to replace incomplete type by complete
9555 one; work on ODR variants instead of main variants; reorder item
9556 in array so bases have still smaller indexes.
9557 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
9558 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
9560 2014-07-01 Cary Coutant <ccoutant@google.com>
9562 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
9564 (resolve_addr_in_expr): When replacing the rtx in a location list
9565 entry, get a new address table entry.
9566 (dwarf2out_finish): Call index_location_lists even if there are no
9567 addr_index_table entries yet.
9569 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9571 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
9572 change for not being obvious.
9574 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
9576 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
9579 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9581 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
9582 (vcagt_f64): Likewise.
9583 (vcale_f64): Likewise.
9584 (vcaled_f64): Likewise.
9585 (vcales_f32): Likewise.
9586 (vcalt_f64): Likewise.
9587 (vcaltd_f64): Likewise.
9588 (vcalts_f32): Likewise.
9590 2014-07-01 Marek Polacek <polacek@redhat.com>
9592 * doc/invoke.texi: Document -Wint-conversion.
9594 2014-07-01 Marek Polacek <polacek@redhat.com>
9597 * doc/invoke.texi: Document -Wincompatible-pointer-types.
9599 2014-07-01 Martin Liska <mliska@suse.cz>
9601 IPA REF alias refactoring
9602 * cgraph.h (iterate_direct_aliases): New function.
9603 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
9604 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
9605 FOR_EACH_ALIAS added.
9606 (cgraph_for_node_and_aliases): Likewise.
9607 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
9608 * ipa-inline.c (reset_edge_caches): Likewise.
9609 (update_caller_keys): Likewise.
9610 * trans-mem.c (ipa_tm_execute): Likewise.
9611 *varpool.c (varpool_analyze_node): Likewise.
9612 (varpool_for_node_and_aliases): Likewise.
9613 * ipa-ref.h (first_alias): New function.
9614 (last_alias): Likewise.
9615 (has_aliases_p): Likewise.
9616 * ipa-ref.c (ipa_ref::remove_reference): Removal function
9617 is sensitive to IPA_REF_ALIASes.
9618 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
9619 are put at the beginning of the list.
9620 (symtab_node::iterate_direct_aliases): New function.
9622 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9625 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
9627 (write_ts_type_common_tree_pointers): Do not stream fields not set
9628 for incomplete types; do not stream duplicated fields for variants;
9629 sanity check that variant and type match.
9630 (write_ts_type_non_common_tree_pointers): Likewise.
9631 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
9632 TYPE_SIZE whether type is complete.
9633 (lto_input_ts_type_common_tree_pointers): Do same changes as in
9634 write_ts_type_common_tree_pointers
9635 (lto_input_ts_type_non_common_tree_pointers): Likewise.
9637 2014-06-30 Joseph Myers <joseph@codesourcery.com>
9639 * var-tracking.c (add_stores): Return instead of asserting if old
9640 and new values for conditional store are the same.
9642 2014-06-30 Richard Henderson <rth@redhat.com>
9646 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
9647 the cfg if there were any changes.
9648 * passes.def: Revert move of peephole2 after reorder_blocks;
9649 move duplicate_computed_gotos before peephole2.
9651 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
9653 * except.c (emit_note_eh_region_end): New helper function.
9654 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
9655 emit EH_REGION_END note.
9656 * jump.c (cleanup_barriers): Do not split a call and its
9657 corresponding CALL_ARG_LOCATION note.
9659 2014-06-30 Jeff Law <law@redhat.com>
9661 PR tree-optimization/61607
9662 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
9663 deeper into the SSA_NAME_VALUE chain.
9665 2014-06-30 Marek Polacek <polacek@redhat.com>
9667 * convert.c (convert_to_integer): Don't instrument conversions if the
9668 function has no_sanitize_undefined attribute.
9669 * ubsan.c: Don't run the ubsan pass if the function has
9670 no_sanitize_undefined attribute.
9672 2014-06-30 Jakub Jelinek <jakub@redhat.com>
9674 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
9675 -fsanitize=undefined suboptions.
9677 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
9679 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
9680 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
9681 against bigendian and adjust indices.
9683 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
9685 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
9687 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
9690 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
9691 Add alternative; make early clobber. Adjust both split patterns
9692 to use operand 0 as the working register.
9694 2014-06-30 Jakub Jelinek <jakub@redhat.com>
9696 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
9697 as ira_object_id_map might be NULL, or 1.
9699 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9701 * loop-invariant.c (get_inv_cost): Handle register class.
9702 (gain_for_invariant): Check the register pressure of the inv
9703 and its overlapped register class, other than all.
9705 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
9707 * doc/invoke.texi (Optimize Options): Fix descriptions of
9708 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
9710 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
9712 * doc/extend.texi (Function Attributes): Update 'naked' attribute
9715 2014-06-29 Tobias Grosser <tobias@grosser.es>
9718 * graphite-isl-ast-to-gimple.c: Add missing guards.
9720 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9722 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
9723 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
9724 * flag-types.h: Add new enum fgraphite_generator.
9725 * graphite-isl-ast-to-gimple.c: New.
9726 * graphite-isl-ast-to-gimple.h: New.
9727 * graphite.c (graphite_transform_loops): Add choice of Graphite
9728 code generator, which depends on flag_graphite_code_gen.
9730 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9732 * graphite-dependences.c (subtract_commutative_associative_deps):
9733 Add NULL checking of the following variables: must_raw_no_source,
9734 may_raw_no_source, must_war_no_source, may_war_no_source,
9735 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
9736 must_war, may_war, must_waw, may_waw.
9738 2014-06-29 Roman Gareev <gareevroman@gmail.com>
9740 * graphite-clast-to-gimple.c: gloog is renamed to
9741 graphite_regenerate_ast_cloog. gloog_error is renamed to
9742 graphite_regenerate_error.
9743 * graphite-clast-to-gimple.h: The definition of the struct
9744 bb_pbb_def is moved to graphite-htab.h.
9745 Add inclusion of the hash-table.h.
9746 * graphite-htab.h: The declaration of the function gloog is moved
9747 to graphite-clast-to-gimple.h and renamed to
9748 graphite_regenerate_ast_cloog.
9749 * graphite.c (graphite_transform_loops): gloog is renamed
9750 to graphite_regenerate_ast_cloog.
9752 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9754 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
9756 (write_ts_type_common_tree_pointers): Do not stream fields not set
9757 for incomplete types; do not stream duplicated fields for variants;
9758 sanity check that variant and type match.
9759 (write_ts_type_non_common_tree_pointers): Likewise.
9760 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
9761 TYPE_SIZE whether type is complete.
9762 (lto_input_ts_type_common_tree_pointers): Do same changes as in
9763 write_ts_type_common_tree_pointers
9764 (lto_input_ts_type_non_common_tree_pointers): Likewise.
9766 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9768 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
9770 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9772 * tree-inline.c (remap_type_1): Do not duplicate fields
9773 that are shared in between type and its main variant.
9775 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9777 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
9779 (ipa_set_ancestor_jf) Likewise.
9780 (check_stmt_for_type_change): Check that we work on main variant.
9781 (detect_type_change): Look into main variant.
9782 (compute_known_type_jump_func): Check that main variant has BINFO.
9784 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9786 * ipa-devirt.c (set_type_binfo): New function.
9787 (add_type_duplicate): Use it.
9788 (get_odr_type): Sanity check that binfos points to main variants.
9789 (get_class_context): Be sure the context's outer_type is main variant.
9790 (contains_type_p): Walk main variant.
9791 (get_polymorphic_call_info_for_decl): Set outer_type to be
9793 (get_polymorphic_call_info): Likewise.
9794 (possible_polymorphic_call_targets): Sanity check that we operate
9797 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
9799 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9801 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9803 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
9804 accidental change due to wide-int branch merge.
9806 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9808 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
9809 compressed debug support.
9810 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
9811 * configure: Regenerate.
9812 * config.in: Regenerate.
9813 * common.opt (compressed_debug_sections): New enum.
9814 (gz, gz=): New options.
9815 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
9816 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
9817 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
9818 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
9819 LINK_COMPRESS_DEBUG_SPEC.
9820 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
9821 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
9822 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
9823 (Debugging Options): Document -gz[=type].
9825 2014-06-27 Martin Jambor <mjambor@suse.cz>
9828 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
9829 args_to_skip, use those from node instead. Copy args_to_skip and
9830 combined_args_to_skip from node to the new thunk.
9831 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
9832 (cgraph_create_virtual_clone): Moved computation of
9833 combined_args_to_skip...
9834 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
9836 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
9838 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
9839 redundant diagnostic machinary.
9841 2014-06-27 Richard Biener <rguenther@suse.de>
9843 * tree-ssa-math-opts.c (bswap_replace): Fix
9844 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
9846 2014-06-27 Martin Liska <mliska@suse.cz>
9848 * gimple.h (gimple_location_safe): New function introduced.
9849 * cgraphunit.c (walk_polymorphic_call_targets): Usage
9850 of gimple_location_safe replaces gimple_location.
9851 (gimple_fold_call): Likewise.
9852 * ipa-devirt.c (ipa_devirt): Likewise.
9853 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9854 * ipa.c (walk_polymorphic_call_targets): Likewise.
9855 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
9857 2014-06-27 Jakub Jelinek <jakub@redhat.com>
9859 PR tree-optimization/57233
9860 PR tree-optimization/61299
9861 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
9863 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
9864 would be lowered to scalar shifts, check if corresponding
9865 shifts and vector BIT_IOR_EXPR are supported and don't lower
9866 or lower just to narrower vector type in that case.
9867 * expmed.c (expand_shift_1): Fix up handling of vector
9870 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
9873 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
9875 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
9877 * doc/invoke.texi (-fsemantic-interposition): Document.
9878 * common.opt (fsemantic-interposition): New flag.
9879 * varasm.c (decl_replaceable_p): Use it.
9881 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9884 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
9885 extraction other than index 3.
9887 2014-06-26 Teresa Johnson <tejohnson@google.com>
9889 * doc/invoke.texi: Fix typo.
9890 * dumpfile.c: Add support for documented -fdump-* options
9891 optimized/missed/note/optall.
9893 2014-06-26 Martin Jambor <mjambor@suse.cz>
9895 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
9896 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
9897 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
9898 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
9899 * opts.c (default_options_optimization): Set
9900 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
9901 * doc/invoke.texi (allow-load-data-races)
9902 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
9903 (allow-store-data-races): Document the new default.
9905 2014-06-26 Martin Jambor <mjambor@suse.cz>
9907 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
9908 renamed to ipa_impossible_devirt_target. Fix typo.
9909 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
9910 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
9911 ipa_impossible_devirt_target.
9913 2014-06-26 Richard Biener <rguenther@suse.de>
9915 PR tree-optimization/61607
9916 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
9917 explaining why we restrict copies on loop depth.
9918 * tree-ssa-dom.c (cprop_operand): Remove restriction on
9920 (record_equivalences_from_phis): Instead add it here.
9922 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
9924 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
9925 (LTO_WRAPPER_OBJS): New variable.
9926 (lto-wrapper$(exeext)): Use it.
9927 * collect2.c: Include "collect-utils.h".
9928 (verbose, debug): Remove variables.
9929 (at_file_supplied): No longer static.
9930 (tool_name): New variable.
9931 (do_wait, fork_execute, maybe_unlink): Don't declare.
9932 (tool_cleanup): No longer static.
9933 (notice): Remove function.
9934 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
9936 (collect_wait, do_wait, collect_execute): Remove functions.
9937 (maybe_unlink): No longer static.
9938 * collect2.h (verbose, debug): Don't declare.
9939 (at_file_supplied): Declare.
9940 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
9942 (collect_execute): Replace with implementation from collect2, plus a
9943 new arg use_atfile. All callers changed.
9944 (collect_wait): Replace with implementation from collect2.
9945 (maybe_unlink_file): Remove function.
9946 (fork_execute): Replace with implementation from collect2, plus a
9947 new arg use_atfile. All callers changed.
9948 (do_wait): Add call to utils_cleanup to the error path.
9949 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
9950 (tool_cleanup): Adjust declarations.
9951 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
9952 * tlink.c: Include "collect-utils.h".
9953 (tlink_execute): New arg use_atfile. All callers changed.
9954 (tlink_init, tlink_execute): Remove declarations.
9956 * collect-utils.c (save_temps): New variable.
9957 (do_wait): Use it instead of debug. Use fatal_error.
9958 * collect-utils.h (save_temps): Declare.
9959 * collect2.c (verbose): Rename from vflag. All uses changed.
9960 (tool_cleanup): New function, copied from collect_atexit.
9961 (collect_atexit, handler): Just call it.
9962 * collect2.h (verbose): Declaration renamed from vflag.
9963 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
9966 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
9967 (lto-wrapper$(exeext)): Link with collect-utils.o.
9968 * collect-utils.c: New file.
9969 * collect-utils.h: New file.
9970 * lto-wrapper.c: Include "collect-utils.h".
9971 (args_name): Delete variable.
9972 (tool_name): New variable.
9973 (tool_cleanup): New function.
9974 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
9975 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
9976 (fork_execute): Remove functions.
9978 2014-06-26 Nick Clifton <nickc@redhat.com>
9980 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
9982 * doc/extend.texi (Function Attributes): Fix typo in description
9983 of RX vector attribute.
9985 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
9987 * config.gcc (supported_defaults): Error when passing either
9988 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
9990 2014-06-26 Richard Biener <rguenther@suse.de>
9992 * tree-ssa-dom.c (cprop_operand): Remove restriction on
9993 propagating volatile pointers.
9995 2014-06-26 Richard Biener <rguenther@suse.de>
9997 PR tree-optimization/61607
9998 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
9999 loop if we redirected its latch edge.
10000 (thread_block_1): Do not cancel loops prematurely.
10002 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10004 * toplev.c (backend_init_target): Move init_emit_regs and
10006 (backend_init) ... here; skip ira_init_once and backend_init_target.
10007 (target_reinit) ... and here; clear
10008 this_target_rtl->lang_dependent_initialized.
10009 (lang_dependent_init_target): Clear
10010 this_target_rtl->lang_dependent_initialized;
10011 break out rtl initialization to ...
10012 (initialize_rtl): ... here; call also backend_init_target
10014 * toplev.h (initialize_rtl): New function.
10015 * function.c: Include toplev.h
10016 (init_function_start): Call initialize_rtl.
10017 * rtl.h (target_rtl): Add target_specific_initialized,
10018 lang_dependent_initialized.
10020 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10021 Jakub Jelinek <jakub@redhat.com>
10023 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10025 2014-06-25 Tom de Vries <tom@codesourcery.com>
10027 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10029 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10031 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10032 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10033 Issue a strict overflow warning if appropriate.
10035 2014-06-25 Martin Liska <mliska@suse.cz>
10037 IPA REF refactoring
10038 * Makefile.in: Removed header file (ipa-ref-inline.h).
10039 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10041 (cgraph_speculative_call_info): Likewise.
10042 (cgraph_for_node_thunks_and_aliases): Likewise.
10043 (cgraph_for_node_and_aliases): Likewise.
10044 (verify_cgraph_node): Likewise.
10045 * cgraph.h: Batch of IPA REF functions become member functions of
10046 symtab_node: add_reference, maybe_add_reference, clone_references,
10047 clone_referring, clone_reference, find_reference,
10048 remove_stmt_references, remove_all_references,
10049 remove_all_referring, dump_references, dump_referring,
10050 has_alias_p, iterate_reference, iterate_referring.
10051 * cgraphbuild.c (record_reference): New IPA REF function used.
10052 (record_type_list): Likewise.
10053 (record_eh_tables): Likewise.
10054 (mark_address): Likewise.
10055 (mark_load): Likewise.
10056 (mark_store): Likewise.
10057 (pass_build_cgraph_edges): Likewise.
10058 (rebuild_cgraph_edge): Likewise.
10059 (cgraph_rebuild_references): Likewise.
10060 (pass_remove_cgraph_callee_edges): Likewise.
10061 * cgraphclones.c (cgraph_clone_node): Likewise.
10062 (cgraph_create_virtual_clone): Likewise.
10063 (cgraph_materialize_clone): Likewise.
10064 (cgraph_materialize_all_clones): Likewise.
10065 * cgraphunit.c (cgraph_reset_node): Likewise.
10066 (cgraph_reset_node): Likewise.
10067 (analyze_function): Likewise.
10068 (assemble_thunks_and_aliases): Likewise.
10069 (expand_function): Likewise.
10070 * ipa-comdats.c (propagate_comdat_group): Likewise.
10071 (enqueue_references): Likewise.
10072 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10073 (create_specialized_node): Likewise.
10074 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10075 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10076 * ipa-inline.c (reset_edge_caches): Likewise.
10077 (update_caller_keys): Likewise.
10078 (execute): Likewise.
10079 * ipa-prop.c (remove_described_reference): Likewise.
10080 (propagate_controlled_uses): Likewise.
10081 (ipa_edge_duplication_hook): Likewise.
10082 (ipa_modify_call_arguments): Likewise.
10083 * ipa-pure-const.c (propagate_pure_const): Likewise.
10084 * ipa-ref-inline.h: Header file removed, functions moved
10085 to symtab_node class.
10086 * ipa-ref.c (remove_reference): New class member function.
10087 (cannot_lead_to_return): New class member function.
10088 (referring_ref_list): Likewise.
10089 (referred_ref_list): Likewise.
10090 Rest of functions moved to symtab_node class.
10091 * ipa-ref.h: New member functions remove_reference,
10092 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10094 ipa_ref_list class has new member functions: first_reference,
10095 first_referring, clear, nreferences.
10096 * ipa-reference.c (analyze_function): New IPA REF function used.
10097 (write_node_summary_p): Likewise.
10098 (ipa_reference_write_optimization_summary): Likewise.
10099 * ipa-split.c (split_function): Likewise.
10100 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10101 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10102 (function_and_variable_visibility): Likewise.
10103 * ipa.c (has_addr_references_p): Likewise.
10104 (process_references): Argument type changed.
10105 (symtab_remove_unreachable_nodes): New IPA REF function used.
10106 (process_references): Likewise.
10107 (set_writeonly_bit): Likewise.
10108 * lto-cgraph.c: Implementation of new symtab_node member functions
10109 that uses new IPA REF functions.
10110 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10112 * lto-streamer-out.c (output_symbol_p): Likewise.
10113 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10115 * symtab.c: Implementation of new IPA REF API.
10116 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10117 (ipa_tm_create_version): Likewise.
10118 (ipa_tm_execute): Likewise.
10119 * tree-emutls.c (gen_emutls_addr): Likewise.
10120 * tree-inline.c (copy_bb): Likewise.
10121 (delete_unreachable_blocks_update_callgraph): Likewise.
10122 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10123 (varpool_for_node_and_aliases): Likewise.
10125 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10127 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10129 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10132 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10133 tree_node * instead of tree_node *.
10135 (print_fold_checksum): Likewise.
10136 (fold_check_failed): Likewise.
10137 (debug_fold_checksum): Likewise.
10138 (fold_build1_stat_loc): Likewise.
10139 (fold_build2_stat_loc): Likewise.
10140 (fold_build3_stat_loc): Likewise.
10141 (fold_build_call_array_loc): Likewise.
10143 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10145 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10146 implementation with call to...
10147 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10149 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10152 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10154 PR tree-optimization/57742
10155 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10156 after replacing the statement.
10158 2014-06-25 Nick Clifton <nickc@redhat.com>
10160 * config/v850/v850.c (GHS_default_section_names): Change to const
10162 (GHS_current_section_names): Likewise.
10163 (v850_insert_attributes): Do not build strings, just assign the
10164 names directly. Change the type of 'chosen_section' to const
10166 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10167 directly to the array entry.
10168 * config/v850/v850.h (GHS_default_section_names): Change to const
10170 (GHS_current_section_names): Likewise.
10172 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10174 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10175 (LANG_HOOKS_DECLS): Add it.
10176 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10178 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10179 * langhooks.h (struct lang_hooks_for_decls): Add
10180 omp_clause_linear_ctor hook.
10181 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10182 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10183 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10184 combined simd loop use omp_clause_linear_ctor hook.
10186 2014-06-24 Cong Hou <congh@google.com>
10188 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10189 pattern recognition.
10190 (type_conversion_p): PROMOTION is true if it's a type promotion
10191 conversion, and false otherwise. Return true if the given expression
10192 is a type conversion one.
10193 * tree-vectorizer.h: Adjust the number of patterns.
10194 * tree.def: Add SAD_EXPR.
10195 * optabs.def: Add sad_optab.
10196 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10197 * expr.c (expand_expr_real_2): Likewise.
10198 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10199 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10200 * optabs.c (optab_for_tree_code): Likewise.
10201 * tree-cfg.c (estimate_operator_cost): Likewise.
10202 * tree-ssa-operands.c (get_expr_operands): Likewise.
10203 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10204 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10205 * doc/generic.texi: Add document for SAD_EXPR.
10206 * doc/md.texi: Add document for ssad and usad.
10208 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10210 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10211 qualification in cast.
10213 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10215 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10216 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10217 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10218 (tree_function_decl): ... here.
10219 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10220 streaming of vindex to ...
10221 (write_ts_function_decl_tree_pointers): ... here.
10222 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10223 Do not stream DECL_VINDEX.
10224 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10226 2014-06-24 Catherine Moore <clm@codesourcery.com>
10227 Sandra Loosemore <sandra@codesourcery.com>
10229 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10230 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10231 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10233 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10235 * doc/invoke.texi (Warning Options): Remove duplicated
10236 -Wmaybe-uninitialized.
10238 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10240 PR tree-optimization/57742
10241 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10242 (handle_builtin_malloc, handle_builtin_memset): New functions.
10243 (strlen_optimize_stmt): Call them.
10244 * passes.def: Move strlen after loop+dom but before vrp.
10246 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10249 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10250 model family 6 CPU with has_longmode never use a CPU without
10253 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10256 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10259 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10261 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10262 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10264 * hash-map.h: New file.
10265 * ipa-comdats.c: Use hash_map instead of pointer_map.
10267 * lto-section-out.c: Adjust.
10268 * lto-streamer.h: Replace pointer_map with hash_map.
10269 * symtab.c (verify_symtab): Likewise.
10270 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10271 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10272 * tree-streamer.h: Likewise.
10273 * tree-streamer.c: Adjust.
10274 * pointer-set.h: Remove pointer_map.
10276 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10278 * hash-table.h: Add a template arg to choose between storing values
10279 and storing pointers to values, and then provide partial
10280 specializations for both.
10281 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10282 should store, not the type values should point to.
10283 * tree-into-ssa.c (var_info_hasher): Likewise.
10284 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10285 * tree-complex.c: Adjust.
10286 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10287 table instead of int_tree_map *.
10288 * tree-parloops.c: Adjust.
10289 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10290 type is being stored.
10291 * tree-vectorizer.c: Adjust.
10293 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10295 * hash-table.h: Remove a layer of indirection from hash_table so that
10296 it contains the hash table's data instead of a pointer to the data.
10297 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
10298 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
10299 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
10300 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
10301 fold-const.c, gcse.c, ggc-common.c,
10302 gimple-ssa-strength-reduction.c, gimplify.c,
10303 graphite-clast-to-gimple.c, graphite-dependences.c,
10304 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
10305 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10306 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
10307 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
10308 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
10309 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
10310 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
10311 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
10312 tree-ssa-live.c, tree-ssa-loop-im.c,
10313 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
10314 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
10315 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10316 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
10317 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
10318 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
10319 vtable-verify.c, vtable-verify.h: Adjust.
10321 2014-06-24 Richard Biener <rguenther@suse.de>
10323 PR tree-optimization/61572
10324 * tree-ssa-sink.c (statement_sink_location): Do not sink
10325 loads from hard registers.
10327 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10329 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
10330 not mentioned in clauses use private clause if the iterator is
10331 declared in #pragma omp for simd, and when adding lastprivate
10332 instead, add it to the outer #pragma omp for too. Diagnose
10333 if the variable is private in outer context. For simd collapse > 1
10334 loops, replace all iterators with temporaries.
10335 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
10336 same even in collapse > 1 loops.
10338 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
10339 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
10341 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
10342 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
10344 (gimplify_adjust_omp_clauses): Likewise.
10345 * omp-low.c (lower_rec_simd_input_clauses,
10346 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
10347 safelen the same as safelen(1).
10348 * tree-nested.c (convert_nonlocal_omp_clauses,
10349 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
10350 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
10351 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
10352 Fixup handling of GIMPLE_OMP_TARGET.
10353 (convert_tramp_reference_stmt, convert_gimple_call): Handle
10356 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
10358 PR tree-optimization/61554
10359 * tree-ssa-propagate.c: Include "bitmap.h".
10360 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
10361 properly update constructor/destructor.
10362 (substitute_and_fold_dom_walker::before_dom_children):
10363 Remove call to gimple_purge_dead_eh_edges, add bb->index to
10364 need_eh_cleaup instead.
10365 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
10368 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10370 * varpool.c (dump_varpool_node): Dump used_by_single_function.
10371 * tree-pass.h (make_pass_ipa_single_use): New pass.
10372 * cgraph.h (used_by_single_function): New flag.
10373 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
10375 * passes.def (pass_ipa_single_use): Scedule.
10376 * ipa.c (BOTTOM): New macro.
10377 (meet): New function
10378 (propagate_single_user): New function.
10379 (ipa_single_use): New function.
10380 (pass_data_ipa_single_use): New pass.
10381 (pass_ipa_single_use): New pass.
10382 (pass_ipa_single_use::gate): New gate.
10383 (make_pass_ipa_single_use): New function.
10385 2014-06-23 Kai Tietz <ktietz@redhat.com>
10388 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
10389 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
10391 2014-06-23 Richard Biener <rguenther@suse.de>
10393 * tree-ssa-loop.c (gate_loop): New function.
10394 (pass_tree_loop::gate): Call it.
10395 (pass_data_tree_no_loop, pass_tree_no_loop,
10396 make_pass_tree_no_loop): New.
10397 * tree-vectorizer.c: Include tree-scalar-evolution.c
10398 (pass_slp_vectorize::execute): Initialize loops and SCEV if
10400 (pass_slp_vectorize::clone): New method.
10401 * timevar.def (TV_TREE_NOLOOP): New.
10402 * tree-pass.h (make_pass_tree_no_loop): Declare.
10403 * passes.def (pass_tree_no_loop): New pass group with
10406 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
10409 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
10410 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
10412 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10414 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
10415 "yes" where needed.
10417 2014-06-23 Alan Modra <amodra@gmail.com>
10420 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
10421 to zero on debug statements.
10423 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10426 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
10427 Ignore third operand if present by marking qualifier_internal.
10429 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
10431 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
10433 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
10434 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
10435 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
10436 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
10437 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
10438 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
10439 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
10440 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
10441 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
10442 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
10443 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
10444 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
10445 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
10446 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
10447 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
10448 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
10449 logic in GCC vector extensions
10451 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
10452 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
10453 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
10454 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
10455 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
10456 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
10457 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
10458 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
10459 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
10460 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
10462 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
10464 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
10467 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
10468 (vget_low_s64): Use __GET_LOW macro.
10469 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
10470 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
10471 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
10472 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
10473 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
10475 (vcombine_s64): Use GCC vector extensions; remove cast.
10476 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
10477 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
10478 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
10479 Fix type signature; remove cast.
10481 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10484 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
10486 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
10488 (BUILTIN_VD1): New.
10489 (BUILTIN_VD_RE): Remove.
10490 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
10491 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
10492 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
10493 variant but not df.
10494 (vreinterpretv1df*, vreinterpret*v1df): New.
10495 (vreinterpretdf*, vreinterpret*df): Remove.
10496 * config/aarch64/aarch64-simd.md (aarch64_create,
10497 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
10498 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
10500 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
10501 (vcreate_f64): Remove cast, use v1df builtin.
10502 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
10503 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
10504 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
10505 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
10506 vmov_n_f64, vst1_f64): Use gcc vector extensions.
10507 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
10508 add range check using __builtin_aarch64_im_lane_boundsi.
10509 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
10510 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
10511 type signature, use gcc vector extensions.
10512 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
10513 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
10514 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
10515 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
10516 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
10517 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
10518 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
10519 vreinterpret_u64_f64): Use v1df builtin not df.
10521 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10523 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
10526 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10528 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
10531 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10533 * loop-invariant.c (pre_check_invariant_p): New function.
10534 (find_invariant_insn): Call pre_check_invariant_p.
10536 2014-06-22 Richard Henderson <rth@redhat.com>
10539 * compare-elim.c (struct comparison): Add eh_note.
10540 (find_comparison_dom_walker::before_dom_children): Don't eliminate
10541 a redundant comparison in a different EH region. Purge EH edges if
10544 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10546 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
10547 (var_shift): Use it.
10548 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
10549 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
10550 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
10551 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
10552 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
10553 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
10554 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
10555 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
10556 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
10557 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
10558 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
10559 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
10560 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
10561 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
10562 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
10563 *rotldi3_internal15be): Use the new attribute. Merge register and
10564 integer alternatives.
10566 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10568 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
10569 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
10570 split, *ashrdi3_internal3 and split): Delete, merge into...
10571 (ashr<mode>3): New expander.
10572 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
10573 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
10575 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10577 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
10578 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
10579 *rotldi3_internal3 and split): Delete, merge into...
10580 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
10581 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
10582 Use "rotlw" extended mnemonic.
10584 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10586 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
10587 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
10588 and split, *ashldi3_internal3 and split): Delete, merge into...
10589 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
10590 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
10592 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10594 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
10595 (lshrsi3, two anonymous define_insns and define_splits,
10596 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
10597 *lshrdi3_internal3 and split): Delete, merge into...
10598 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
10599 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
10601 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10603 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
10604 Remove "O" alternative.
10606 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
10608 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
10609 (mips_move_from_gpr_cost): Likewise.
10610 (mips_register_move_cost): Update accordingly.
10611 (mips_secondary_reload_class): Remove name of in_p.
10613 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
10616 * config/i386/i386.md (x86_64_shrd, x86_shrd,
10617 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
10619 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10621 * config/nios2/nios2.c: Include "builtins.h".
10623 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10625 * cgraph.h (tls_model_names): New variable.
10626 * print-tree.c (print_node): Simplify.
10627 * varpool.c (tls_model_names): New variable.
10628 (dump_varpool_node): Output tls model.
10630 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10632 * ipa-visibility.c (function_and_variable_visibility): Disable
10633 temporarily local aliases for some targets.
10635 2014-06-20 Marek Polacek <polacek@redhat.com>
10637 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
10638 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
10639 into SANITIZE_UNDEFINED.
10640 * doc/invoke.texi: Describe -fsanitize=bounds.
10641 * gimplify.c (gimplify_call_expr): Add gimplification of internal
10642 functions created in the FEs.
10643 * internal-fn.c: Move "internal-fn.h" after "tree.h".
10644 (expand_UBSAN_BOUNDS): New function.
10645 * internal-fn.def (UBSAN_BOUNDS): New internal function.
10646 * internal-fn.h: Don't define internal functions here.
10647 * opts.c (common_handle_option): Add -fsanitize=bounds.
10648 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
10649 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
10650 * tree-core.h: Define internal functions here.
10651 (struct tree_base): Add ifn field.
10652 * tree-pretty-print.c: Include "internal-fn.h".
10653 (dump_generic_node): Handle functions without CALL_EXPR_FN.
10654 * tree.c (get_callee_fndecl): Likewise.
10655 (build_call_expr_internal_loc): New function.
10656 * tree.def (CALL_EXPR): Update description.
10657 * tree.h (CALL_EXPR_IFN): Define.
10658 (build_call_expr_internal_loc): Declare.
10659 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
10661 (ubsan_type_descriptor): Change bool parameter to enum
10662 ubsan_print_style. Adjust the code. Add handling of
10664 (ubsan_expand_bounds_ifn): New function.
10665 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
10666 (ubsan_build_overflow_builtin): Likewise.
10667 (instrument_bool_enum_load): Likewise.
10668 (ubsan_instrument_float_cast): Likewise.
10669 * ubsan.h (enum ubsan_print_style): New enum.
10670 (ubsan_expand_bounds_ifn): Declare.
10671 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
10673 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
10675 * config/rs6000/rs6000.md: Append `DONE' to preparation
10676 statements of `bswap' pattern splitters.
10678 2014-06-20 Tom de Vries <tom@codesourcery.com>
10680 * target.def (call_fusage_contains_non_callee_clobbers): Update
10682 * doc/tm.texi: Regenerate.
10684 2014-06-20 Yury Gribov <y.gribov@samsung.com>
10685 Max Ostapenko <m.ostapenko@partner.samsung.com>
10688 * asan.c (instrument_strlen_call): Fixed instrumentation of
10691 2014-06-20 Martin Jambor <mjambor@suse.cz>
10694 * ipa-prop.c (impossible_devirt_target): New function.
10695 (try_make_edge_direct_virtual_call): Use it, also instead of
10698 2014-06-20 Yury Gribov <y.gribov@samsung.com>
10699 Max Ostapenko <m.ostapenko@partner.samsung.com>
10702 * asan.c (build_check_stmt): Add condition.
10704 2014-06-20 Martin Jambor <mjambor@suse.cz>
10707 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
10710 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10712 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
10714 (VCONQ): Make comment more helpful.
10716 * config/aarch64/aarch64-simd.md
10717 (aarch64_sqdmulh_lane<mode>):
10718 Use VCOND for operands 2. Update lane checking and flipping logic.
10719 (aarch64_sqrdmulh_lane<mode>): Likewise.
10720 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
10721 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
10722 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
10723 attribute of operand 3 to VCOND.
10724 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
10725 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10726 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
10727 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
10728 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10729 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
10731 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
10732 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
10733 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
10734 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
10735 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
10736 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
10737 operand to VCOND. Update lane flipping and bounds checking logic.
10738 (aarch64_sqdmlal2_lane<mode>): Likewise.
10739 (aarch64_sqdmlsl_lane<mode>): Likewise.
10740 (aarch64_sqdmull_lane<mode>): Likewise.
10741 (aarch64_sqdmull2_lane<mode>): Likewise.
10742 (aarch64_sqdmlal_laneq<mode>):
10743 Replace VCON usage with VCONQ.
10744 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
10745 (aarch64_sqdmlal2_laneq<mode>): Emit
10746 aarch64_sqdmlal2_laneq<mode>_internal insn.
10747 Replace VCON with VCONQ.
10748 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
10749 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
10750 (aarch64_sqdmull_laneq<mode>): Emit
10751 aarch64_sqdmull_laneq<mode>_internal insn.
10752 Replace VCON with VCONQ.
10753 (aarch64_sqdmull2_laneq<mode>): Emit
10754 aarch64_sqdmull2_laneq<mode>_internal insn.
10755 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
10756 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
10757 of 3rd argument to int16x4_t.
10758 (vqdmlalh_lane_s16): Likewise.
10759 (vqdmlslh_lane_s16): Likewise.
10760 (vqdmull_high_lane_s16): Likewise.
10761 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
10762 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
10763 (vqdmlsl_lane_s16): Likewise.
10764 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
10765 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
10766 (vqdmlals_lane_s32): Likewise.
10767 (vqdmlsls_lane_s32): Likewise.
10768 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
10769 (vqdmulls_lane_s32): Likewise.
10770 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
10771 (vqdmlsl_lane_s32): Likewise.
10772 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
10773 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
10774 (vqrdmulhh_lane_s16): Likewise.
10775 (vqdmlsl_high_lane_s16): Likewise.
10776 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
10777 (vqdmlsl_high_lane_s32): Likewise.
10778 (vqrdmulhs_lane_s32): Likewise.
10780 2014-06-20 Tom de Vries <tom@codesourcery.com>
10782 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
10783 get_call_reg_set_usage.
10785 2014-06-20 Tom de Vries <tom@codesourcery.com>
10787 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
10788 it contains all call_used_regs.
10790 2014-06-20 Tom de Vries <tom@codesourcery.com>
10792 * final.c (collect_fn_hard_reg_usage): Add and use variable
10793 function_used_regs.
10795 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
10797 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
10798 (set_init_priority, get_init_priority, set_fini_priority,
10799 get_fini_priority): New methods.
10800 * tree.c (init_priority_for_decl): Remove.
10801 (init_ttree): Do not initialize init priority.
10802 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
10803 (decl_priority_info): Remove.
10804 (decl_init_priority_insert): Rewrite.
10805 (decl_fini_priority_insert): Rewrite.
10806 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
10807 tree_priority_map_marked_p): Remove.
10808 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
10809 * lto-streamer-out.c (hash_tree): Do not hash priorities.
10810 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
10811 not output priorities.
10812 (pack_ts_function_decl_value_fields): Likewise.
10813 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
10814 not input priorities.
10815 (unpack_ts_function_decl_value_fields): Likewise.
10816 * symtab.c (symbol_priority_map): Declare.
10817 (init_priority_hash): Declare.
10818 (symtab_unregister_node): Unregister from priority hash, too.
10819 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
10821 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
10822 (symbol_priority_info): New function.
10823 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
10825 * tree-core.h (tree_priority_map): Remove.
10827 2014-06-20 Jakub Jelinek <jakub@redhat.com>
10829 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
10830 0xff to uint64_t before shifting it up.
10832 2014-06-20 Julian Brown <julian@codesourcery.com>
10833 Chung-Lin Tang <cltang@codesourcery.com>
10835 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
10836 TARGET_THUMB1_ONLY. Add comments.
10838 2014-06-19 Tom de Vries <tom@codesourcery.com>
10840 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
10841 return type to void.
10842 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
10844 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10846 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
10847 as "move", from depends_on.
10849 2014-06-19 Terry Guo <terry.guo@arm.com>
10851 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
10854 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
10856 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
10858 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
10860 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
10863 * config/sh/sh.c (prepare_move_operands): Don't process TLS
10864 addresses here if reload in progress or completed.
10866 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
10868 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
10869 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
10870 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
10871 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
10872 (mips_register_priority): New function that implements the target
10873 hook TARGET_REGISTER_PRIORITY.
10874 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
10875 (mips_lra_p): Likewise for TARGET_LRA_P.
10876 (TARGET_REGISTER_PRIORITY): Define macro.
10877 (TARGET_SPILL_CLASS): Likewise.
10878 (TARGET_LRA_P): Likewise.
10879 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
10881 (REG_CLASS_NAMES): Likewise.
10882 (REG_CLASS_CONTENTS): Likewise.
10883 (BASE_REG_CLASS): Use M16_SP_REGS.
10884 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
10885 New set attribute to enable alternatives depending on the register
10887 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
10888 (*lea64): Disable pattern for MIPS16.
10889 * config/mips/mips.opt (mlra): New option.
10891 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
10893 * lra-constraints.c (base_to_reg): New function.
10894 (process_address): Use new function.
10896 2014-06-18 Tom de Vries <tom@codesourcery.com>
10898 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
10899 * config/aarch64/aarch64.c
10900 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
10901 (aarch64_emit_call_insn): New function.
10902 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
10904 * config/aarch64/aarch64.md (define_expand "call_internal")
10905 (define_expand "call_value_internal", define_expand "sibcall_internal")
10906 (define_expand "sibcall_value_internal"): New.
10907 (define_expand "call", define_expand "call_value")
10908 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
10909 expand variant and aarch64_emit_call_insn.
10911 2014-06-18 Radovan Obradovic <robradovic@mips.com>
10912 Tom de Vries <tom@codesourcery.com>
10914 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
10915 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
10917 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
10918 clobbers to CALL_INSN_FUNCTION_USAGE.
10919 (define_expand "sibcall_internal")
10920 (define_expand "sibcall_value_internal"): New.
10921 (define_expand "call", define_expand "call_value"): Add argument to
10922 arm_emit_call_insn.
10923 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
10924 (define_expand "sibcall_value"): Use sibcall_value_internal and
10925 arm_emit_call_insn.
10927 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10929 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
10931 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10933 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
10936 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10938 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
10939 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
10940 annotations. Fix DWARF information.
10942 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10944 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
10945 __udivmoddi4, and fixups for negative operands.
10947 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10949 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
10951 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10953 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
10956 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10958 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
10961 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10963 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
10964 describing register usage on function entry and exit.
10966 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10968 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
10969 (__aeabi_ldivmod): Fix whitespace.
10971 2014-06-18 Andreas Schwab <schwab@suse.de>
10973 * doc/md.texi (Standard Names): Use @itemx for grouped items.
10974 Remove blank line after @item.
10976 2014-06-18 Richard Henderson <rth@redhat.com>
10979 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
10981 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
10983 * config/arm/arm.c (neon_vector_mem_operand): Allow register
10984 POST_MODIFY for neon loads and stores.
10985 (arm_print_operand): Output post-index register for neon loads and
10988 2014-06-18 Richard Biener <rguenther@suse.de>
10990 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
10992 2014-06-18 Richard Biener <rguenther@suse.de>
10994 * tree-pass.h (make_pass_dce_loop): Remove.
10995 * passes.def: Replace pass_dce_loop with pass_dce.
10996 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
10997 changed free niter estimates and reset the scev cache.
10998 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
10999 make_pass_dce_loop): Remove.
11000 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11001 (fini_copy_prop): Return whether something changed. Always
11002 let substitute_and_fold perform DCE and free niter estimates
11003 and reset the scev cache if so.
11004 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11005 (pass_data_copy_prop): Do not unconditionally schedule
11006 cleanup-cfg or update-ssa.
11008 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11010 PR tree-optimization/61518
11011 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11012 reduction var is used in reduction stmt or phi-function only.
11014 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11016 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11018 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11020 PR tree-optimization/61517
11021 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11022 whose rhs's first tree is the source expression instead of the
11024 (find_bswap_or_nop): Likewise.
11025 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11026 gimple stmt whose rhs's first tree is the source. In the memory source
11027 case, move the stmt to be replaced close to one of the original load to
11028 avoid the problem of a store between the load and the stmt's original
11030 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11033 2014-06-18 Andreas Schwab <schwab@suse.de>
11035 PR rtl-optimization/54555
11036 * postreload.c (move2add_use_add2_insn): Substitute
11037 STRICT_LOW_PART only if it is cheaper.
11039 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11041 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11042 Do not use unspec as call operand. Use memory_operand instead of
11043 memory_nox32_operand and add "m" operand constraint. Disable
11044 pattern for TARGET_X32.
11045 (*sibcall_pop_memory): Ditto.
11046 (*sibcall_value_memory): Ditto.
11047 (*sibcall_value_pop_memory): Ditto.
11048 (sibcall peepholes): Merge SImode and DImode patterns using
11049 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11050 Disable pattern for TARGET_X32. Check if eliminated register is
11051 really dead after call insn. Generate call RTX without unspec operand.
11052 (sibcall_value peepholes): Ditto.
11053 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11054 instead of memory_nox32_operand. Check if eliminated register is
11055 really dead after call insn. Generate call RTX without unspec operand.
11056 (sibcall_value_pop peepholes): Ditto.
11057 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11059 2014-06-18 Terry Guo <terry.guo@arm.com>
11062 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11065 2014-06-18 Olivier Hainque <hainque@adacore.com>
11067 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11068 memorization of the end of block source location.
11069 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11070 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11071 end source location info we have on the block entry/exit code we
11074 2014-06-18 Richard Biener <rguenther@suse.de>
11076 * common.opt (fssa-phiopt): New option.
11077 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11079 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11080 * doc/invoke.texi (-fssa-phiopt): Document.
11082 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11084 * genattrtab.c (n_bypassed): New variable.
11085 (process_bypasses): Initialise n_bypassed.
11086 Count number of bypassed reservations.
11087 (make_automaton_attrs): Allocate space for bypassed reservations
11088 rather than number of bypasses.
11090 2014-06-18 Richard Biener <rguenther@suse.de>
11092 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11093 we propagated anything.
11094 (substitute_and_fold_dom_walker::before_dom_children): Something
11095 changed if we propagated into PHI arguments.
11096 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11099 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11101 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11103 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11104 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11105 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11106 Introduces alternative way of loads group permutaions.
11107 (vect_transform_grouped_load): Try alternative way of permutations.
11109 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11111 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11112 changed in ORT_TARGET region, don't jump to do_outer.
11113 (struct gimplify_adjust_omp_clauses_data): New type.
11114 (gimplify_adjust_omp_clauses_1): Adjust for data being
11115 a struct gimplify_adjust_omp_clauses_data pointer instead
11116 of tree *. Pass pre_p as a new argument to
11117 lang_hooks.decls.omp_finish_clause hook.
11118 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11119 splay_tree_foreach to pass both list_p and pre_p.
11120 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11121 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11122 gimplify_adjust_omp_clauses callers.
11123 * langhooks.c (lhd_omp_finish_clause): New function.
11124 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11125 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11126 * langhooks.h (struct lang_hooks_for_decls): Add a new
11127 gimple_seq * argument to omp_finish_clause hook.
11128 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11129 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11130 (scan_omp_parallel, lower_omp_for): When adding
11131 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11132 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11133 * tree-nested.c (convert_nonlocal_omp_clauses,
11134 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11135 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11137 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11139 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11140 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11142 2014-06-17 Xinliang David Li <davidxl@google.com>
11144 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11145 * passes.c (pass_init_dump_file): Do not set initialize
11146 flag to false unconditionally.
11148 2014-06-17 Richard Biener <rguenther@suse.de>
11150 * genopinit.c (main): Use vec<>::qsort method.
11151 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11153 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11155 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11157 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11158 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11159 (mips_move_to_gpr_cost): Remove ST_REGS case.
11160 (mips_move_from_gpr_cost): Likewise.
11161 (mips_register_move_cost): Likewise.
11162 (mips_secondary_reload_class): Likewise.
11164 2014-06-17 Richard Biener <rguenther@suse.de>
11166 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11167 (pass_all_optimizations): Move 3rd copy-prop pass from after
11168 fre to before ifcombine/phiopt.
11170 2014-06-17 Richard Biener <rguenther@suse.de>
11172 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11173 and allow all blocks to be forwarders.
11175 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11178 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11179 variable 'size'; calculate 'size' right in the front; use
11180 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11181 pcum->aapcs_stack_words.
11183 2014-06-17 Nick Clifton <nickc@redhat.com>
11185 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11186 (umulhi3, mulsidi3, umulsidi3): Likewise.
11188 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11190 PR middle-end/61508
11191 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11192 check for section name.
11194 2014-06-17 Richard Biener <rguenther@suse.de>
11196 * tree-ssa-propagate.c: Include domwalk.h.
11197 (substitute_and_fold): Outline main worker into a domwalker ...
11198 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11199 Schedule stmts we can fully propagate for removal. Remove
11201 (substitute_and_fold): Apply a dominator walk to perform
11202 substitution. Process stmts scheduled for removal here.
11204 2014-06-17 Richard Biener <rguenther@suse.de>
11206 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11207 of PHI node moving.
11209 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11211 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11212 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11213 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11214 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11215 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11217 (get_fpscr) : Likewise.
11219 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11221 PR rtl-optimization/61325
11222 * lra-constraints.c (valid_address_p): Add forward declaration.
11223 (simplify_operand_subreg): Check address validity before and after
11224 alter_reg of memory subreg.
11226 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11228 * config/i386/i386.c (decide_alg): Correctly handle
11229 maximum size of stringop algorithm.
11231 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11233 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11235 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11237 PR rtl-optimization/61522
11238 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11240 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11243 * symtab.c (symtab_node::reset_section): New method.
11244 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11246 * cgraph.h (reset_section): Declare.
11247 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11248 do not consider comdat locals.
11249 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11251 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11252 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11253 reset sections of symbols dragged out of the comdats.
11254 (function_and_variable_visibility): Reset sections of
11257 2014-06-16 Richard Biener <rguenther@suse.de>
11259 PR tree-optimization/61482
11260 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11261 [-INF(OVF), +INF(OVF)] range.
11263 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11265 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11266 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11267 handling 32-bit multiplication.
11269 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
11271 PR middle-end/61430
11272 * lra-lives.c (process_bb_lives): Skip creating copy during
11273 insn scan when src/dest has constrained to same regno.
11275 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11277 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11278 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11280 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11282 * asan.c (check_func): New function.
11283 (maybe_create_ssa_name): Likewise.
11284 (build_check_stmt_with_calls): Likewise.
11285 (use_calls_p): Likewise.
11286 (report_error_func): Change interface.
11287 (build_check_stmt): Allow non-integer lengths; add support
11289 (asan_instrument): Likewise.
11290 (instrument_mem_region_access): Moved code to build_check_stmt.
11291 (instrument_derefs): Likewise.
11292 (instrument_strlen_call): Likewise.
11293 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
11294 * doc/invoke.texi: Describe new parameter.
11295 * params.def: Define new parameter.
11296 * params.h: Likewise.
11297 * sanitizer.def: Describe new builtins.
11299 2014-06-16 Richard Biener <rguenther@suse.de>
11301 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11302 Make all defs available at the end.
11303 (eliminate): If we remove a PHI node schedule cfg-cleanup.
11305 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11308 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
11310 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11313 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
11314 initialization. Replace remaining use of uid.
11316 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11318 * c-family/c-common.c (handle_tls_model_attribute): Use
11319 set_decl_tls_model.
11320 * c-family/c-common.c (handle_tls_model_attribute): Use
11321 set_decl_tls_model.
11322 * cgraph.h (struct varpool_node): Add tls_model.
11323 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
11324 * tree.h (DECL_TLS_MODEL): Update.
11325 (DECL_THREAD_LOCAL_P): Check that variable is static.
11326 (decl_tls_model): Declare.
11327 (set_decl_tls_model): Declare.
11328 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
11329 set symbol prorperties.
11330 (get_emutls_init_templ_addr): Cleanup.
11331 (new_emutls_decl): Update.
11332 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
11333 (lto_input_varpool_node): Likewise.
11334 * lto-streamer-out.c (hash_tree): Likewise.
11335 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11336 not stream DECL_TLS_MODEL.
11337 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
11338 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
11340 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11342 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
11344 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11346 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
11347 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
11349 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
11350 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
11351 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
11352 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
11353 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
11354 (df_get_artificial_defs, df_get_artificial_uses)
11355 (df_single_def, df_single_use): Update accordingly.
11356 (df_refs_chain_dump): Take the first element in a linked list as
11357 parameter, rather than a pointer to an array of pointers.
11358 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
11359 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
11360 (df_chain_create_bb_process_use): Likewise.
11361 (df_md_bb_local_compute_process_def): Likewise.
11362 * fwprop.c (process_defs, process_uses): Likewise.
11363 (register_active_defs, update_uses): Likewise.
11364 (forward_propagate_asm): Update for new df_ref linking.
11365 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
11366 (df_null_ref_rec, df_null_mw_rec): Likewise.
11367 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
11369 (df_scan_free_bb_info): Remove check for null artificial_defs.
11370 (df_install_ref_incremental): Adjust for new df_ref linking.
11371 Use a single-element insertion rather than a full sort.
11372 (df_ref_chain_delete_du_chain): Take the first element
11373 in a linked list as parameter, rather than a pointer to an array of
11375 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
11376 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
11377 (df_insn_info_delete): Remove check for null defs and call to
11378 df_scan_free_mws_vec.
11379 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
11380 null rather than df_null_*_rec.
11381 (df_insn_rescan_debug_internal): Likewise, and update null
11382 checks in the same way. Remove check for null defs.
11383 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
11384 Move a single element rather doing a full sort.
11385 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
11387 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
11388 Initialize df_ref and df_mw_hardreg lists to null rather than
11390 (df_ref_compare): Take df_refs as parameter, transferring the
11391 old interface to...
11392 (df_ref_ptr_compare): ...this new function.
11393 (df_sort_and_compress_refs): Update accordingly.
11394 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
11395 old interface to...
11396 (df_mw_ptr_compare): ...this new function.
11397 (df_sort_and_compress_mws): Update accordingly.
11398 (df_install_refs, df_install_mws): Return a linked list rather than
11399 an array of pointers.
11400 (df_refs_add_to_chains): Assert that old lists are empty rather
11402 (df_insn_refs_verify): Don't handle null defs speciailly.
11403 * web.c (union_match_dups): Update for new df_ref linking.
11405 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11407 * df.h (df_ref_create, df_ref_remove): Delete.
11408 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
11409 (df_ref_remove): Likewise.
11411 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11413 * df.h (df_single_def, df_single_use): New functions.
11414 * ira.c (find_moveable_pseudos): Use them.
11416 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11418 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
11419 * df-problems.c (df_note_bb_compute): Use it.
11420 * regstat.c (regstat_bb_compute_ri): Likewise.
11422 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11424 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
11425 * cse.c (cse_extended_basic_block): Use them.
11426 * dce.c (mark_artificial_use): Likewise.
11427 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
11428 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11429 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
11430 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
11431 (df_simulate_initialize_backwards): Likewise.
11432 (df_simulate_finalize_backwards): Likewise.
11433 (df_simulate_initialize_forwards): Likewise.
11434 (df_md_simulate_artificial_defs_at_top): Likewise.
11435 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11436 * regrename.c (init_rename_info): Likewise.
11437 * regstat.c (regstat_bb_compute_ri): Likewise.
11438 (regstat_bb_compute_calls_crossed): Likewise.
11440 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11442 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
11443 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
11444 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
11445 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
11446 * combine.c (create_log_links): Likewise.
11447 * compare-elim.c (find_flags_uses_in_insn): Likewise.
11448 (try_eliminate_compare): Likewise.
11449 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
11450 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
11451 (remove_reg_equal_equiv_notes_for_defs): Likewise.
11452 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
11453 (word_dce_process_block, dce_process_block): Likewise.
11454 * ddg.c (def_has_ccmode_p): Likewise.
11455 * df-core.c (df_bb_regno_first_def_find): Likewise.
11456 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
11457 * df-problems.c (df_rd_simulate_one_insn): Likewise.
11458 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11459 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
11460 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
11461 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
11462 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
11463 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
11464 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
11465 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
11466 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11467 * fwprop.c (local_ref_killed_between_p): Likewise.
11468 (all_uses_available_at, free_load_extend): Likewise.
11469 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
11470 * hw-doloop.c (scan_loop): Likewise.
11471 * ifcvt.c (dead_or_predicable): Likewise.
11472 * init-regs.c (initialize_uninitialized_regs): Likewise.
11473 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
11474 (process_bb_node_lives): Likewise.
11475 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
11476 (find_moveable_pseudos): Likewise.
11477 * loop-invariant.c (check_dependencies, record_uses): Likewise.
11478 * recog.c (peep2_find_free_register): Likewise.
11479 * ree.c (get_defs): Likewise.
11480 * regstat.c (regstat_bb_compute_ri): Likewise.
11481 (regstat_bb_compute_calls_crossed): Likewise.
11482 * sched-deps.c (find_inc, find_mem): Likewise.
11483 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
11484 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
11485 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11486 (prepare_shrink_wrap): Likewise.
11487 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
11488 * web.c (union_defs, pass_web::execute): Likewise.
11489 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
11490 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
11492 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
11494 * lra-assign.c (assign_by_spills): Add code to assign vector regs
11495 to inheritance pseudos.
11496 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
11498 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
11501 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
11502 (BU_MISC_2): Rename to ...
11503 (BU_LDBL128_2): ... this.
11504 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
11505 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
11506 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
11507 RS6000_BTM_LDBL128.
11508 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
11509 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
11510 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
11511 (unpacktf_1): Likewise.
11512 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
11513 (__builtin_longdouble_dw1): Likewise.
11514 * doc/sourcebuild.texi (longdouble128): Document.
11516 2014-06-13 Jeff Law <law@redhat.com>
11518 PR rtl-optimization/61094
11519 PR rtl-optimization/61446
11520 * ree.c (combine_reaching_defs): Get the mode for the copy from
11521 the extension insn rather than the defining insn.
11523 2014-06-13 Dehao Chen <dehao@google.com>
11525 * dwarf2out.c (add_linkage_name): Emit more linkage name.
11527 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
11529 * doc/install.texi (--enable-linker-plugin-configure-flags)
11530 (--enable-linker-plugin-flags): Document new flags.
11532 2014-06-13 Martin Jambor <mjambor@suse.cz>
11535 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
11536 cache_token if returning early.
11538 2014-06-13 Nick Clifton <nickc@redhat.com>
11540 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
11541 requested alignment is active.
11542 (LABEL_ALIGN): Likewise.
11543 (LOOP_ALIGN): Likewise.
11545 2014-06-13 Richard Biener <rguenther@suse.de>
11547 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11548 Rewrite to propagate the VN result into all uses where
11549 possible and to remove stmts becoming dead because of that.
11550 (eliminate): Generalize stmt removal handling, remove in
11551 reverse dominator order to support proper debug stmt
11552 generation. Update stmts before removing stmts.
11553 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
11555 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
11557 PR tree-optimization/61375
11558 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
11559 symbolic number cannot be represented in an uint64_t.
11560 (find_bswap_or_nop_1): Likewise.
11562 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11564 * symtab.c (symtab_node::reset_section): New method.
11565 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11567 * cgraph.h (reset_section): Declare.
11568 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11569 do not consider comdat locals.
11570 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11572 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11573 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11574 reset sections of symbols dragged out of the comdats.
11575 (function_and_variable_visibility): Reset sections of
11578 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
11580 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
11581 to use symtab and decl_binds_to_current_def_p
11582 * tree-vectorizer.c (increase_alignment): Increase alignment
11583 of alias target, too.
11585 2014-06-12 Jakub Jelinek <jakub@redhat.com>
11587 PR middle-end/61486
11588 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
11589 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
11590 if outer combined construct is distribute.
11591 (gimplify_omp_for): For OMP_DISTRIBUTE set
11592 gimplify_omp_ctxp->distribute.
11593 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
11594 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
11595 mapping into decl map.
11597 2014-06-12 Jason Merrill <jason@redhat.com>
11599 * common.opt (fabi-version): Change default to 0.
11601 2014-06-12 Jason Merrill <jason@redhat.com>
11603 * toplev.c (process_options): Reject -fabi-version=1.
11605 2014-06-12 Jeff Law <law@redhat.com>
11607 PR tree-optimization/61009
11608 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
11609 value when we stop processing a block due to problematic PHIs.
11611 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
11613 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
11614 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
11615 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
11616 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
11617 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
11618 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
11619 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
11620 are not in the spec.
11622 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
11625 * config/aarch64/aarch64-modes.def: Add V1DFmode.
11626 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
11629 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
11631 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
11633 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
11636 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
11637 loading from address spaces.
11639 2014-06-12 Martin Liska <mliska@suse.cz>
11642 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
11643 statement is reachable.
11645 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
11647 * symtab.c (section_hash): New hash.
11648 (symtab_unregister_node): Clear section before freeing.
11649 (hash_section_hash_entry): New haser.
11650 (eq_sections): New function.
11651 (symtab_node::set_section_for_node): New method.
11652 (set_section_1): Update.
11653 (symtab_node::set_section): Take string instead of tree as parameter.
11654 (symtab_resolve_alias): Update.
11655 * cgraph.h (section_hash_entry_d): New structure.
11656 (section_hash_entry): New typedef.
11657 (cgraph_node): Change comdat_group_ to x_comdat_group,
11658 change section_ to x_section and turn into section_hash_entry;
11659 update accestors; put set_section_for_node offline.
11660 * tree.c (decl_section_name): Turn into string.
11661 (set_decl_section_name): Change parameter to be string.
11662 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
11663 * sdbout.c (sdbout_one_type): Update.
11664 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
11665 * varasm.c (IN_NAMED_SECTION, get_named_section,
11666 resolve_unique_section, hot_function_section, get_named_text_section,
11667 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
11668 make_decl_rtl, default_unique_section): Update.
11669 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
11670 (c6x_elf_unique_section): Update.
11671 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
11672 * config/pa/pa.c (pa_function_section): Update.
11673 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
11674 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
11675 * config/arc/arc.c (arc_in_small_data_p): Update.
11676 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
11677 * config/mcore/mcore.c (mcore_unique_section): Update.
11678 * config/mips/mips.c (mips16_build_function_stub): Update.
11679 (mips16_build_call_stub): Update.
11680 (mips_function_rodata_section): Update.
11681 (mips_in_small_data_p): Update.
11682 * config/score/score.c (score_in_small_data_p): Update.
11683 * config/rx/rx.c (rx_in_small_data): Update.
11684 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
11685 (rs6000_xcoff_asm_named_section): Update.
11686 (rs6000_xcoff_unique_section): Update.
11687 * config/frv/frv.c (frv_string_begins_with): Update.
11688 (frv_in_small_data_p): Update.
11689 * config/v850/v850.c (v850_encode_data_area): Update.
11690 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
11691 (bfin_handle_l1_data_attribute): Update.
11692 (bfin_handle_l2_attribute): Update.
11693 * config/mep/mep.c (mep_unique_section): Update.
11694 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
11696 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
11697 (h8300_handle_tiny_data_attribute): Update.
11698 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
11699 (m32r_in_small_data_p): Update.
11700 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
11701 * config/i386/i386.c (ix86_in_large_data_p): Update.
11702 * config/i386/winnt.c (i386_pe_unique_section): Update.
11703 * config/darwin.c (darwin_function_section): Update.
11704 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
11705 * tree-emutls.c (get_emutls_init_templ_addr): Update.
11706 (new_emutls_decl): Update.
11707 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
11708 input_varpool_node): Update.
11709 (ead_string_cst): Turn to ...
11710 (read_string): ... this one.
11711 * dwarf2out.c (secname_for_decl): Update.
11712 * asan.c (asan_protect_global): Update.
11714 2014-06-11 DJ Delorie <dj@redhat.com>
11716 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
11718 * config/rx/rx.c (rx_option_override): Likewise.
11719 (rx_align_for_label): Likewise.
11721 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
11723 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
11725 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
11728 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11730 * common.md: New file.
11731 * doc/md.texi: Update description of generic, machine-independent
11733 * config/s390/constraints.md (e): Delete.
11734 * Makefile.in (md_file): Include common.md.
11735 * config/m32c/t-m32c (md_file): Likewise.
11736 * genpreds.c (general_mem): New array.
11737 (generic_constraint_letters): Remove constraints now defined by
11739 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
11740 Allow the first character to be '<' or '>' as well.
11741 * genoutput.c (general_mem): New array.
11742 (indep_constraints): Remove constraints now defined by common.md.
11743 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
11744 Remove special handling of 'm'.
11745 * ira-costs.c (record_reg_classes): Remove special handling of
11746 constraints now defined by common.md.
11747 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
11748 * ira-lives.c (single_reg_class): Likewise.
11749 (ira_implicitly_set_insn_hard_regs): Likewise.
11750 * lra-constraints.c (reg_class_from_constraints): Likewise.
11751 (process_alt_operands, process_address, curr_insn_transform): Likewise.
11752 * postreload.c (reload_cse_simplify_operands): Likewise.
11753 * reload.c (push_secondary_reload, scratch_reload_class)
11754 (find_reloads, alternative_allows_const_pool_ref): Likewise.
11755 * reload1.c (maybe_fix_stack_asms): Likewise.
11756 * targhooks.c (default_secondary_reload): Likewise.
11757 * stmt.c (parse_output_constraint): Likewise.
11758 * recog.c (preprocess_constraints): Likewise.
11759 (constrain_operands, peep2_find_free_register): Likewise.
11760 (asm_operand_ok): Likewise, but add a comment saying why 'o'
11761 must be handled specially.
11763 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11765 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
11766 * genpreds.c (have_const_dbl_constraints): Delete.
11767 (add_constraint): Don't set it.
11768 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
11769 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
11770 constraints using the lookup_constraint logic.
11771 * ira-lives.c (single_reg_class): Likewise.
11772 * ira.c (ira_setup_alts): Likewise.
11773 * lra-constraints.c (process_alt_operands): Likewise.
11774 * recog.c (asm_operand_ok, constrain_operands): Likewise.
11775 * reload.c (find_reloads): Likewise.
11777 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11779 * genpreds.c (const_int_start, const_int_end): New variables.
11780 (choose_enum_order): Output CONST_INT constraints before memory
11782 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
11784 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
11785 * ira.c (ira_setup_alts): Likewise.
11786 * lra-constraints.c (process_alt_operands): Likewise.
11787 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
11788 * reload.c (find_reloads): Likewise.
11790 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11792 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
11793 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
11794 * recog.c (preprocess_constraints): Update accordingly.
11796 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11798 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
11799 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
11800 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
11801 * genpreds.c (print_type_tree): New function.
11802 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
11803 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
11804 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
11805 Write out enum constraint_type and get_constraint_type.
11806 * lra-constraints.c (satisfies_memory_constraint_p): Take a
11807 constraint_num rather than a constraint string.
11808 (satisfies_address_constraint_p): Likewise.
11809 (reg_class_from_constraints): Avoid old constraint macros.
11810 (process_alt_operands, process_address_1): Likewise.
11811 (curr_insn_transform): Likewise.
11812 * ira-costs.c (record_reg_classes): Likewise.
11813 (record_operand_costs): Likewise.
11814 * ira-lives.c (single_reg_class): Likewise.
11815 (ira_implicitly_set_insn_hard_regs): Likewise.
11816 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
11817 * postreload.c (reload_cse_simplify_operands): Likewise.
11818 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
11819 (constrain_operands, peep2_find_free_register): Likewise.
11820 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
11821 (find_reloads, alternative_allows_const_pool_ref): Likewise.
11822 * reload1.c (maybe_fix_stack_asms): Likewise.
11823 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
11824 * targhooks.c (default_secondary_reload): Likewise.
11825 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
11826 to EXTRA_CONSTRAINT_STR.
11827 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
11829 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11831 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
11832 (write_constraint_satisfied_p_array): ...this new function.
11833 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
11835 (write_insn_preds_c): Update accordingly.
11837 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11839 * genpreds.c (write_lookup_constraint): Rename to...
11840 (write_lookup_constraint_1): ...this.
11841 (write_lookup_constraint_array): New function.
11842 (write_tm_preds_h): Define lookup_constraint as an inline function
11843 that uses write_lookup_constraint_array where possible.
11844 (write_insn_preds_c): Update for the changes above.
11846 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
11848 * doc/md.texi (regclass_for_constraint): Rename to...
11849 (reg_class_for_constraint): ...this.
11850 * genpreds.c (num_constraints, enum_order, register_start)
11851 (register_end, satisfied_start, memory_start, memory_end)
11852 (address_start, address_end): New variables.
11853 (add_constraint): Count the number of constraints.
11854 (choose_enum_order): New function.
11855 (write_enum_constraint_num): Iterate over enum_order.
11856 (write_regclass_for_constraint): Rename to...
11857 (write_reg_class_for_constraint_1): ...this and update output
11859 (write_constraint_satisfied_p): Rename to...
11860 (write_constraint_satisfied_p_1): ...this and update output
11861 accordingly. Do nothing if all extra constraints are register
11863 (write_insn_extra_memory_constraint): Delete.
11864 (write_insn_extra_address_constraint): Delete.
11865 (write_range_function): New function.
11866 (write_tm_preds_h): Define constraint_satisfied_p and
11867 reg_class_for_constraint as inline functions that do a range check
11868 before calling the out-of-line function. Use write_range_function
11869 to implement insn_extra_{register,memory,address}_constraint,
11870 the first of which is new.
11871 (write_insn_preds_c): Update after above changes to write_* functions.
11872 (main): Call choose_enum_order.
11874 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
11876 PR tree-optimization/61306
11877 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
11878 expression instead of its size.
11879 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
11880 false to prevent optimization when the result is unpredictable due to
11881 arithmetic right shift of signed type with highest byte is set.
11882 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
11883 (init_symbolic_number): Likewise.
11884 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
11885 when the result is unpredictable due to sign extension.
11887 2014-06-11 Terry Guo <terry.guo@arm.com>
11889 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
11890 (*thumb1_addsi3): Ditto.
11891 (*thumb_subdi3): Ditto.
11892 (thumb1_subsi3_insn): Ditto.
11893 (*thumb_mulsi3): Ditto.
11894 (*thumb_mulsi3_v6): Ditto.
11895 (*thumb1_andsi3_insn): Ditto.
11896 (thumb1_bicsi3): Ditto.
11897 (*thumb1_iorsi3_insn): Ditto.
11898 (*thumb1_xorsi3_insn): Ditto.
11899 (*thumb1_ashlsi3): Ditto.
11900 (*thumb1_ashrsi3): Ditto.
11901 (*thumb1_lshrsi3): Ditto.
11902 (*thumb1_rotrsi3): Ditto.
11903 (*thumb1_negdi2): Ditto.
11904 (*thumb1_negsi2): Ditto.
11905 (*thumb1_abssi2): Ditto.
11906 (*thumb1_neg_abssi2): Ditto.
11907 (*thumb1_one_cmplsi2): Ditto.
11908 (*thumb1_zero_extendhisi2): Ditto.
11909 (*thumb1_zero_extendqisi2): Ditto.
11910 (*thumb1_zero_extendqisi2_v6): Ditto.
11911 (thumb1_extendhisi2): Ditto.
11912 (thumb1_extendqisi2): Ditto.
11913 (*thumb1_movdi_insn): Ditto.
11914 (*thumb1_movsi_insn): Ditto.
11915 (*thumb1_movhi_insn): Ditto.
11916 (thumb_movhi_clobber): Ditto.
11917 (*thumb1_movqi_insn): Ditto.
11918 (*thumb1_movhf): Ditto.
11919 (*thumb1_movsf_insn): Ditto.
11920 (*thumb_movdf_insn): Ditto.
11921 (movmem12b): Ditto.
11923 (cbranchqi4): Ditto.
11924 (cbranchsi4_insn): Ditto.
11925 (cbranchsi4_scratch): Ditto.
11926 (*negated_cbranchsi4): Ditto.
11927 (*tbit_cbranch): Ditto.
11928 (*tlobits_cbranch): Ditto.
11929 (*tstsi3_cbranch): Ditto.
11930 (*cbranchne_decr1): Ditto.
11931 (*addsi3_cbranch): Ditto.
11932 (*addsi3_cbranch_scratch): Ditto.
11933 (*thumb_cmpdi_zero): Ditto.
11934 (cstoresi_eq0_thumb1): Ditto.
11935 (cstoresi_ne0_thumb1): Ditto.
11936 (*cstoresi_eq0_thumb1_insn): Ditto.
11937 (*cstoresi_ne0_thumb1_insn): Ditto.
11938 (cstoresi_nltu_thumb1): Ditto.
11939 (cstoresi_ltu_thumb1): Ditto.
11940 (thumb1_addsi3_addgeu): Ditto.
11941 (*thumb_jump): Ditto.
11942 (*call_reg_thumb1_v5): Ditto.
11943 (*call_reg_thumb1): Ditto.
11944 (*call_value_reg_thumb1_v5): Ditto.
11945 (*call_value_reg_thumb1): Ditto.
11946 (*call_insn): Ditto.
11947 (*call_value_insn): Ditto.
11948 (thumb1_casesi_internal_pic): Ditto.
11949 (thumb1_casesi_dispatch): Ditto.
11950 (*thumb1_indirect_jump): Ditto.
11951 (prologue_thumb1_interwork): Ditto.
11952 (*epilogue_insns): Ditto.
11953 (consttable_1): Ditto.
11954 (consttable_2): Ditto.
11955 (tablejump): Ditto.
11956 (*thumb1_tablejump): Ditto.
11957 (thumb_eh_return): Ditto.
11958 (define_peephole2): Two of them are thumb1 only and got moved into
11959 new file thumb1.md.
11960 (define_split): Six of them are thumb1 only and got moved into new
11962 * config/arm/thumb1.md: New file comprised of above thumb1 only
11965 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11967 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
11968 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
11970 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
11971 (aarch64_crc_builtin_datum): New struct.
11972 (aarch64_crc_builtin_data): New.
11973 (aarch64_init_crc32_builtins): New function.
11974 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
11975 (aarch64_crc32_expand_builtin): New.
11976 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
11977 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11978 __ARM_FEATURE_CRC32 when appropriate.
11979 (TARGET_CRC32): Define.
11980 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
11981 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
11982 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
11983 (aarch64_<crc_variant>): New pattern.
11984 * config/aarch64/arm_acle.h: New file.
11985 * config/aarch64/iterators.md (CRC): New int iterator.
11986 (crc_variant, crc_mode): New int attributes.
11987 * doc/aarch64-acle-intrinsics.texi: New file.
11988 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
11989 Include aarch64-acle-intrinsics.texi.
11991 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
11993 * tree-vect-data-refs.c (vect_grouped_store_supported): New
11994 check for stores group of length 3.
11995 (vect_permute_store_chain): New permutations for stores group of
11997 * tree-vect-stmts.c (vect_model_store_cost): Change cost
11998 of vec_perm_shuffle for the new permutations.
12000 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12002 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12003 table rewriting temporarily on targets not supporting ONE_ONLY.
12005 2014-06-11 Richard Biener <rguenther@suse.de>
12007 PR middle-end/61437
12009 2014-06-04 Richard Biener <rguenther@suse.de>
12011 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12012 TREE_PUBLIC and DECL_EXTERNAL decls.
12014 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12016 * varasm.c (set_implicit_section): New function.
12017 (resolve_unique_section): Use it to set implicit section
12019 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12020 (default_function_section): Likewise.
12021 (decl_binds_to_current_def_p): Constify argument.
12022 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12023 * asan.c (asan_protect_global): Use
12024 symtab_get_node (decl)->implicit_section.
12025 * symtab.c (dump_symtab_base): Dump implicit sections.
12026 (verify_symtab_base): Verify sanity of sectoins and comdats.
12027 (symtab_resolve_alias): Alias share the section of its target.
12028 (set_section_1): New function.
12029 (symtab_node::set_section): Move here, recurse to aliases.
12030 (verify_symtab): Check for duplicated symtab lists.
12031 * tree-core.h (implicit_section_name_p): Remove.
12032 * tree-vect-data-refs.c: Include varasm.h.
12033 (vect_can_force_dr_alignment_p): Fix conditional on when
12034 decl bints to current definition; use
12035 symtab_get_node (decl)->implicit_section.
12036 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12037 * cgraph.h (struct symtab_node): Add implicit_section.
12038 (set_section): Rename to ...
12039 (set_section_for_node): ... this one.
12040 (set_section): Declare.
12041 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12042 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12043 input_overwrite_node, input_varpool_node): Stream implicit_section.
12044 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12045 removal; it will fail in LTO.
12047 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12049 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12050 Change second alternative type to f_mcr.
12051 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12052 and 12th alternatives' types to f_mcr and f_mrc.
12053 (*movdi_aarch64): Same for 12th and 13th alternatives.
12054 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12055 (aarch64_movtilow_tilow): Change type to fmov.
12057 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12059 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12060 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12062 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12064 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12066 (aarch64_sqrdmulh_lane<mode>): Likewise.
12067 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12068 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12069 (aarch64_sqdmulh_laneq<mode>): New expander.
12070 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12071 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12072 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12073 (aarch64_sqdmulh_lane<mode>): New expander.
12074 (aarch64_sqrdmulh_lane<mode>): Likewise.
12075 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12076 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12077 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12078 (aarch64_sqdmlal_laneq<mode>): Likewise.
12079 (aarch64_sqdmlsl_lane<mode>): Likewise.
12080 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12081 (aarch64_sqdmlal2_lane<mode>): Likewise.
12082 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12083 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12084 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12085 (aarch64_sqdmull_lane<mode>): Likewise.
12086 (aarch64_sqdmull_laneq<mode>): Likewise.
12087 (aarch64_sqdmull2_lane<mode>): Likewise.
12088 (aarch64_sqdmull2_laneq<mode>): Likewise.
12090 2014-06-10 Richard Biener <rguenther@suse.de>
12092 PR tree-optimization/61438
12093 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12094 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12095 insertion of IVs if running PRE.
12096 (eliminate): Adjust.
12097 (pass_pre::execute): Likewise.
12098 (pass_fre::execute): Likewise.
12100 2014-06-10 Richard Biener <rguenther@suse.de>
12102 PR middle-end/61456
12103 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12104 Do not use the main variant for the type comparison.
12105 (ncr_compar): Likewise.
12106 (nonoverlapping_component_refs_p): Likewise.
12108 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12110 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12111 REG_CFA_RESTORE mode.
12113 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12115 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12116 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12117 expand_vec_perm_pblendv.
12119 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12121 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12123 Simplify description of __crc32d and __crc32cd intrinsics.
12124 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12127 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12130 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12131 * config.in: Regenerate.
12132 * configure: Likewise.
12134 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12136 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12138 (intersect_static_var_sets): Remove.
12139 (propagate): Do not prune local statics.
12141 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12144 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12145 Set lastprivate_firstprivate even if omp_private_outer_ref
12146 langhook returns true.
12147 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12148 langhook, call unshare_expr on new_var and call
12149 build_outer_var_ref to get the last argument.
12151 2014-06-10 Marek Polacek <polacek@redhat.com>
12154 * doc/extend.texi: Add cindex for transparent_union.
12156 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12158 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12159 init_symbolic_number ().
12161 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12163 PR middle-end/61141
12164 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12165 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12166 (verify_rtl_sharing): Likewise.
12168 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12171 * tree.c (build_qualified_type): Use a canonical type for
12174 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12176 * config/arm/arm-modes.def: Remove XFmode.
12178 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12181 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12182 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12183 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12184 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12185 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12186 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12187 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12188 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12189 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12191 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12193 * tree-core.h (tree_decl_with_vis): Remove section_name.
12195 2014-06-09 Kito Cheng <kito@0xlab.org>
12197 * ira.c (ira): Don't call init_caller_save if LRA enabled
12198 since LRA use its own infrastructure to handle that.
12200 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12202 * symtab.c (dump_symtab_base): Update dumping.
12203 (symtab_make_decl_local): Clear only DECL_COMDAT.
12204 * tree-vect-data-refs.c (Check that variable is static before
12205 tampering with sections.
12206 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12207 (cgraph_create_virtual_clone): Likewise.
12208 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12209 (decl_section_name, set_decl_section_name): New accessors.
12210 (find_decls_types_r): Do not walk section name
12211 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12212 (decl_comdat_group, decl_comdat_group_id): Constify.
12213 (decl_section_name, set_decl_section_name): Update.
12214 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12215 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12216 (cgraph_make_node_local_1): Clear section and comdat group.
12217 * cgraph.h (set_comdat_group): Sanity check.
12218 (get_section, set_section): New.
12219 * ipa-comdats.c (ipa_comdats): Use get_section.
12220 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12221 * lto-streamer-out.c: Do not follow section names.
12222 * c-family/c-common.c (handle_section_attribute): Update.
12223 * lto-cgraph.c (lto_output_node): Output section.
12224 (lto_output_varpool_node): Likewise.
12225 (read_comdat_group): Rename to ...
12226 (read_identifier): ... this one.
12227 (read_string_cst): New function.
12228 (input_node, input_varpool_node): Input section names.
12229 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12230 (new_emutls_decl): Update.
12231 (secname_for_decl): Check section names only of static vars.
12232 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12233 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12234 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12235 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12236 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12237 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12238 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12239 * config/v850/v850.c (v850_insert_attributes): Likewise.
12240 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12242 (h8300_handle_tiny_data_attribute): Likewise.
12243 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12244 (bfin_handle_l2_attribute): Likewise.
12246 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12248 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12249 remove static initializer.
12251 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12253 * varasm.c (use_blocks_for_decl_p): Check symbol table
12254 instead of alias attribute.
12255 (place_block_symbol): Recurse on aliases.
12257 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12259 * ipa-visibility.c: Include varasm.h
12260 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12262 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12264 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12265 outputting aliases.
12267 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
12269 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12270 from test_insn into GGC space escape via SET_SRC.
12272 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
12274 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12275 call statement, if any.
12276 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12277 statements, if any. Tidy up.
12279 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12282 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12283 iterators, VSX_D that handles 64-bit types, and VSX_LE that
12284 handles swapping the two 64-bit double words on little endian
12285 systems. Include V1TImode and optionally TImode in VSX_LE so that
12286 these types are properly swapped. Change all of the insns and
12287 splits that do the 64-bit swaps to use VSX_LE.
12288 (vsx_le_perm_load_<mode>): Likewise.
12289 (vsx_le_perm_store_<mode>): Likewise.
12290 (splitters for little endian memory operations): Likewise.
12291 (vsx_xxpermdi2_le_<mode>): Likewise.
12292 (vsx_lxvd2x2_le_<mode>): Likewise.
12293 (vsx_stxvd2x2_le_<mode>): Likewise.
12295 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
12298 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
12299 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
12300 and corresponding splitters. Zero extend general register
12301 or memory input operand to XMM temporary. Enable for
12302 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
12303 (floatunssi<mode>2): Update expander predicate.
12305 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
12307 PR rtl-optimization/61325
12308 * lra-constraints.c (process_address_1): Check scale equal to one
12309 to prevent transformation: base + scale * index => base + new_reg.
12311 2014-06-06 Richard Biener <rguenther@suse.de>
12313 PR tree-optimization/59299
12314 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
12316 (nearest_common_dominator_of_uses): Likewise.
12317 (statement_sink_location): Adjust. Support sinking loads.
12319 2014-06-06 Martin Jambor <mjambor@suse.cz>
12321 * ipa-prop.c (get_place_in_agg_contents_list): New function.
12322 (build_agg_jump_func_from_list): Likewise.
12323 (determine_known_aggregate_parts): Renamed to
12324 determine_locally_known_aggregate_parts. Moved some functionality
12325 to the two functions above, removed bound checks.
12327 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
12329 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
12330 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
12331 (aarch64_progress_pointer): Likewise.
12332 (aarch64_copy_one_part_and_move_pointers): Likewise.
12333 (aarch64_expand_movmen): Likewise.
12334 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
12335 * config/aarch64/aarch64.md (movmem<mode>): New.
12337 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
12339 * targhooks.c (default_add_stmt_cost): Call target specific
12340 hook instead of default one.
12342 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
12344 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
12345 endianness instead of host endianness.
12346 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
12349 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12352 * function.c (instantiate_decls): Process the saved static chain.
12353 (expand_function_start): If not optimizing, save the static chain
12355 * tree-nested.c (convert_all_function_calls): Always create the static
12356 chain for nested functions if not optimizing.
12358 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12360 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
12362 2014-06-06 Richard Biener <rguenther@suse.de>
12364 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
12365 (construct_init_block): Likewise.
12366 (construct_exit_block): Likewise.
12367 (pass_expand::execute): Likewise.
12368 * graphite.c (graphite_transforms): Replace check for current_loops
12369 with a check for > 1 loops.
12370 (pass_graphite_transforms::execute): Adjust.
12371 * ipa-split.c (split_function): Remove check for current_loops.
12372 * omp-low.c (expand_parallel_call): Likewise.
12373 (expand_omp_for_init_counts): Likewise.
12374 (extract_omp_for_update_vars): Likewise.
12375 (expand_omp_for_generic): Likewise.
12376 (expand_omp_sections): Likewise.
12377 (expand_omp_target): Likewise.
12378 * tracer.c (tail_duplicate): Likewise.
12379 (pass_tracer::execute): Likewise.
12380 * trans-mem.c (expand_transaction): Likewise.
12381 * tree-complex.c (expand_complex_div_wide): Likewise.
12382 * tree-eh.c (lower_resx): Likewise.
12383 (cleanup_empty_eh_merge_phis): Likewise.
12384 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
12385 current_loops with a check for > 1 loops.
12386 (pass_predcom::execute): Adjust.
12387 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
12388 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
12389 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
12390 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
12391 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12392 * tree-switch-conversion.c (process_switch): Likewise.
12393 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
12394 * tree-vrp.c (vrp_visit_phi_node): Likewise.
12395 (execute_vrp): Likewise.
12396 * ubsan.c (ubsan_expand_null_ifn): Likewise.
12398 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12400 * rtl.h (insn_location): Declare.
12401 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
12402 with UNKNOWN_LOCATION.
12403 * emit-rtl.c (insn_location): New function.
12404 * final.c (notice_source_line): Check that the instruction has a
12405 location before retrieving it and use insn_location.
12406 * modulo-sched.c (loop_single_full_bb_p): Likewise.
12407 * print-rtl.c (print_rtx): Likewise.
12409 2014-06-06 Richard Biener <rguenther@suse.de>
12411 * passes.def: Move 2nd VRP pass before phi-only-cprop.
12413 2014-06-06 Christian Bruel <christian.bruel@st.com>
12415 PR tree-optimization/43934
12416 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
12419 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
12421 * ira-lives.c (single_reg_class): Add missing break. Explicitly
12422 return NO_REGS for extra address and memory constraints. Handle
12423 operands that match (or are equivalent to something that matches)
12424 extra constant constraints. Ignore other non-register operands.
12426 2014-06-06 Alan Modra <amodra@gmail.com>
12429 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
12430 * doc/tm.texi: Regenerate.
12431 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
12432 Use throughout in place of REG_PARM_STACK_SPACE.
12433 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
12434 "incoming" param. Pass to rs6000_function_parms_need_stack.
12435 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
12436 prototype_p when incoming. Use function decl when incoming
12437 to handle K&R style functions.
12438 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
12439 (INCOMING_REG_PARM_STACK_SPACE): Define.
12441 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12444 * cfgexpand.c (expand_debug_expr): Use address space of nested
12445 TREE_TYPE for ADDR_EXPR and MEM_REF.
12447 2014-06-05 Jeff Law <law@redhat.com>
12449 PR tree-optimization/61289
12450 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
12451 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
12452 looking for those which match LHS. All callers changed.
12453 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
12454 parameters and code which manipulated them. All callers changed.
12455 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
12456 and DST_MAP parameters. Simplify invalidation code by just calling
12457 invalidate_equivalences. All callers changed.
12458 (thread_across_edge): Simplify now that we don't need to maintain
12459 the map of equivalences to invalidate.
12461 2014-06-05 Kai Tietz <ktietz@redhat.com>
12462 Richard Henderson <rth@redhat.com>
12465 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
12466 checking for !TARGET_X32.
12467 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
12468 (sibcall_intern): New define_insn, plus required peepholes.
12469 (sibcall_pop_intern): Likewise.
12470 (sibcall_value_intern): Likewise.
12471 (sibcall_value_pop_intern): Likewise.
12473 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
12475 * tree-inline.c (tree_function_versioning): Check DF info existence
12476 before accessing it.
12478 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12480 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
12482 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
12483 aarch64_frame hard_fp_offset and frame_size.
12484 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
12485 frame_size; remove original_frame_size.
12486 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
12487 (aarch64_initial_elimination_offset): Remove frame_size and
12488 offset. Use aarch64_frame frame_size.
12490 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12491 Jiong Wang <jiong.wang@arm.com>
12492 Renlin <renlin.li@arm.com>
12494 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
12495 initialization of R30 offset. Update offset. Iterate core
12496 regisers upto X30. Remove X29, X30 specific code.
12498 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12499 Jiong Wang <jiong.wang@arm.com>
12501 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
12502 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
12503 (aarch64_register_saved_on_entry): Adjust test.
12505 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12507 * config/aarch64/aarch64.h (machine_function): Move
12508 saved_varargs_size from here...
12509 (aarch64_frame): ... to here.
12511 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12512 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
12513 (aarch64_initial_elimination_offset)
12514 (aarch64_setup_incoming_varargs): Adjust location of
12515 saved_varargs_size.
12517 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12519 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
12522 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
12523 Prachi Godbole <Prachi.Godbole@imgtec.com>
12525 * config/mips/mips-cpus.def: Add definition for p5600. Updated
12526 mips32r5 entry to use PROCESSOR_P5600.
12527 * config/mips/mips-tables.opt: Regenerate.
12528 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
12529 * config/mips/mips.c (mips_fmadd_bypass): New function.
12530 (mips_rtx_cost_data): Add costs for p5600.
12531 (mips_issue_rate): Add support for p5600.
12532 (mips_multipass_dfa_lookahead): Likewise.
12533 * config/mips/mips.h (TUNE_P5600): New define.
12534 (TUNE_MACC_CHAINS): Add TUNE_P5600.
12535 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
12536 * config/mips/mips.md: Include p5600.md.
12537 (processor): Add p5600.
12538 * config/mips/p5600.md: New file.
12540 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
12542 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
12543 * config/i386/predicates.md (palignr_operand): New.
12544 Indicates if permutation is suitable for palignr instruction.
12546 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
12548 PR tree-optimization/61319
12549 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
12550 stmt belongs to loop.
12552 2014-06-05 Richard Biener <rguenther@suse.de>
12554 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
12555 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
12556 (lookup_tmp_var): Adjust.
12557 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
12559 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12561 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
12563 2014-06-05 Marek Polacek <polacek@redhat.com>
12566 * doc/invoke.texi: Document -Wlogical-not-parentheses.
12568 2014-06-04 Tom de Vries <tom@codesourcery.com>
12570 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
12573 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
12575 PR tree-optimization/61385
12576 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
12578 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
12580 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
12581 changed to use fatal_error.
12582 (main): Ensure lto_wrapper_cleanup is run atexit.
12584 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12586 * lra-constraints.c (valid_address_p): Move earlier in file.
12587 (address_eliminator): New structure.
12588 (satisfies_memory_constraint_p): New function.
12589 (satisfies_address_constraint_p): Likewise.
12590 (process_alt_operands, process_address, curr_insn_transform): Use them.
12592 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12594 * lra-int.h (lra_static_insn_data): Make operand_alternative a
12596 (target_lra_int, default_target_lra_int, this_target_lra_int)
12597 (op_alt_data): Delete.
12598 * lra.h (lra_init): Delete.
12599 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
12600 (init_insn_code_data_once): Remove op_alt_data handling.
12601 (finish_insn_code_data_once): Likewise.
12602 (init_op_alt_data): Delete.
12603 (get_static_insn_data): Initialize operand_alternative to null.
12604 (free_insn_recog_data): Cast operand_alternative before freeing it.
12605 (setup_operand_alternative): Take the operand_alternative as
12606 parameter and assume it isn't already cached in the static
12608 (lra_set_insn_recog_data): Update accordingly.
12609 (lra_init): Delete.
12610 * ira.c (ira_init): Don't call lra_init.
12611 * target-globals.h (this_target_lra_int): Declare.
12612 (target_globals): Remove lra_int.
12613 (restore_target_globals): Update accordingly.
12614 * target-globals.c: Don't include lra-int.h.
12615 (default_target_globals, save_target_globals): Remove lra_int.
12617 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12619 * recog.h (operand_alternative): Convert reg_class, reject,
12620 matched and matches into bitfields.
12621 (preprocess_constraints): New overload.
12622 (preprocess_insn_constraints): New function.
12623 (preprocess_constraints): Take the insn as parameter.
12624 (recog_op_alt): Change into a pointer.
12625 (target_recog): Add x_op_alt.
12626 * recog.c (asm_op_alt): New variable.
12627 (recog_op_alt): Change into a pointer.
12628 (preprocess_constraints): New overload, replacing the old function
12629 definition with one that doesn't use global state.
12630 (preprocess_insn_constraints): New function.
12631 (preprocess_constraints): Use them. Take the insn as parameter.
12632 Use asm_op_alt for asms.
12633 (recog_init): Free existing x_op_alt entries.
12634 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
12636 (make_early_clobber_and_input_conflicts): Likewise.
12637 (process_bb_node_lives): Pass the insn to process_constraints.
12638 * reg-stack.c (check_asm_stack_operands): Likewise.
12639 (subst_asm_stack_regs): Likewise.
12640 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
12641 * regrename.c (build_def_use): Likewise.
12642 * sched-deps.c (sched_analyze_insn): Likewise.
12643 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
12644 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
12645 (note_invalid_constants): Likewise.
12646 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12647 (ix86_legitimate_combined_insn): Make operand_alternative pointer
12650 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12652 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
12653 * ira-lives.c (check_and_make_def_conflict): Check for disabled
12655 (make_early_clobber_and_input_conflicts): Likewise.
12656 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12658 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12660 * recog.h (alternative_class): New function.
12661 (which_op_alt): Return a const recog_op_alt.
12662 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
12663 (subst_asm_stack_regs): Likewise.
12664 * config/arm/arm.c (note_invalid_constants): Likewise.
12665 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
12666 the operand_alternative; use alternative class instead.
12667 * sel-sched.c (get_reg_class): Likewise.
12668 * regrename.c (build_def_use): Likewise.
12669 (hide_operands, restore_operands, record_out_operands): Update type
12672 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
12674 * recog.h (recog_op_alt): Convert to a flat array.
12675 (which_op_alt): New function.
12676 * recog.c (recog_op_alt): Convert to a flat array.
12677 (preprocess_constraints): Update accordingly, grouping all
12678 operands of the same alternative together, rather than the
12680 * ira-lives.c (check_and_make_def_conflict): Likewise.
12681 (make_early_clobber_and_input_conflicts): Likewise.
12682 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12683 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
12684 (subst_asm_stack_regs): Likewise.
12685 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
12686 * regrename.c (hide_operands, record_out_operands): Likewise.
12687 (build_def_use): Likewise.
12688 * sel-sched.c (get_reg_class): Likewise.
12689 * config/arm/arm.c (note_invalid_constants): Likewise.
12691 2014-06-04 Jason Merrill <jason@redhat.com>
12695 * gimplify.c (gimplify_arg): Non-static.
12696 * gimplify.h: Declare it.
12698 2014-06-04 Richard Biener <rguenther@suse.de>
12700 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12701 TREE_PUBLIC and DECL_EXTERNAL decls.
12703 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
12705 * regcprop.c (copyprop_hardreg_forward_1): Account for
12706 HARD_REGNO_CALL_PART_CLOBBERED.
12708 2014-06-04 Richard Biener <rguenther@suse.de>
12710 * configure.ac: Check whether the underlying type of int64_t
12711 is long or long long.
12712 * configure: Regenerate.
12713 * config.in: Likewise.
12714 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
12715 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
12717 2014-06-04 Richard Biener <rguenther@suse.de>
12719 PR tree-optimization/60098
12720 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
12722 (dse_optimize_stmt): Simplify, now that we found a kill
12725 2014-06-04 Richard Biener <rguenther@suse.de>
12727 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
12728 of accesses with non-invariant address.
12730 2014-06-04 Martin Liska <mliska@suse.cz>
12732 * cgraph.h (cgraph_make_wrapper): New function introduced.
12733 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
12734 * ipa-inline.h (inline_analyze_function): The function is global.
12735 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
12737 2014-06-04 Martin Liska <mliska@suse.cz>
12739 * tree.h (private_lookup_attribute_starting): New function.
12740 (lookup_attribute_starting): Likewise.
12741 * tree.c (private_lookup_attribute_starting): Likewise.
12743 2014-06-04 Martin Liska <mliska@suse.cz>
12745 * cgraph.h (expand_thunk): New argument added.
12746 (address_taken_from_non_vtable_p): New global function.
12747 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
12748 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
12749 * cgraphunit.c (analyze_function): Likewise.
12750 (assemble_thunks_and_aliases): Argument added to call.
12751 (expand_thunk): New argument forces to produce GIMPLE thunk.
12753 2014-06-04 Martin Liska <mliska@suse.cz>
12755 * coverage.h (coverage_compute_cfg_checksum): Argument added.
12756 * coverage.c (coverage_compute_cfg_checksum): Likewise.
12757 * profile.c (branch_prob): Likewise.
12759 2014-06-04 Martin Jambor <mjambor@suse.cz>
12762 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
12763 handler for switch on an ipa_ref_use enum.
12764 * ipa-reference.c (analyze_function): Likewise.
12766 2014-06-04 Kai Tietz <ktietz@redhat.com>
12768 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
12769 from old call-instruction.
12771 2014-06-04 Bin Cheng <bin.cheng@arm.com>
12773 * config/aarch64/aarch64.c (aarch64_classify_address)
12774 (aarch64_legitimize_reload_address): Support full addressing modes
12776 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
12777 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
12779 2014-06-03 Andrew Pinski <apinski@cavium.com>
12781 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
12784 2014-06-03 Andrew Pinski <apinski@cavium.com>
12786 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
12787 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
12789 2014-06-03 Kai Tietz <ktietz@redhat.com>
12791 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
12794 2014-06-03 Dehao Chen <dehao@google.com>
12796 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
12799 2014-06-03 Marek Polacek <polacek@redhat.com>
12802 * doc/invoke.texi: Document -Wswitch-bool.
12803 * function.c (stack_protect_epilogue): Cast controlling expression of
12805 * gengtype.c (walk_type): Generate switch expression with its
12806 controlling expression cast to int.
12808 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
12810 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
12812 * config/avr/avr-tables.opt: Regenerate.
12813 * config/avr/t-multilib: Regenerate.
12814 * doc/avr-mmcu.texi: Regenerate.
12816 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
12817 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12819 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
12820 (ata6617c, ata664251): Add new avr35 devices.
12821 (ata6612c): Add new avr4 device.
12822 (ata6613c, ata6614q): Add new avr5 devices.
12823 * config/avr/avr-tables.opt: Regenerate.
12824 * config/avr/t-multilib: Regenerate.
12825 * doc/avr-mmcu.texi: Regenerate.
12827 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12829 * gcc/config/aarch64/aarch64-builtins.c
12830 (aarch64_types_binop_ssu_qualifiers): New static data.
12831 (TYPES_BINOP_SSU): Define.
12832 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
12833 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
12834 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
12835 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
12836 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
12837 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
12838 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
12839 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
12840 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
12841 suffix to builtin function name, remove cast.
12842 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
12843 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
12844 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
12846 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12848 * gcc/config/aarch64/aarch64-builtins.c
12849 (aarch64_types_binop_uus_qualifiers,
12850 aarch64_types_shift_to_unsigned_qualifiers,
12851 aarch64_types_unsigned_shiftacc_qualifiers): Define.
12852 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
12853 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
12854 sqshlu_n, uqshl_n): Update qualifiers.
12855 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
12856 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
12857 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
12858 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
12859 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
12860 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
12861 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
12862 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
12863 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
12864 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
12865 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
12866 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
12867 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
12868 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
12869 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
12870 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
12871 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
12872 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
12873 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
12874 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
12875 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
12876 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
12877 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
12878 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
12879 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
12880 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
12881 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
12883 2014-06-03 Teresa Johnson <tejohnson@google.com>
12885 * tree-sra.c (modify_function): Record caller nodes after rebuild.
12887 2014-06-02 Jason Merrill <jason@redhat.com>
12890 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
12892 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12894 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
12897 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
12899 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
12901 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
12902 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
12903 * config/aarch64/iterators.md (REVERSE): New iterator.
12904 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
12905 (rev_op): New int_attribute.
12906 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
12907 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
12908 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
12909 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
12910 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
12911 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
12912 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
12913 Replace temporary __asm__ with __builtin_shuffle.
12915 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
12917 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
12919 * config/mips/mips-tables.opt: Regenerate.
12920 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
12921 to use mips_isa_rev rather than ISA_MIPS32R2.
12922 * config/mips/mips.h (ISA_MIPS32R3): New define.
12923 (ISA_MIPS32R5): New define.
12924 (ISA_MIPS64R3): New define.
12925 (ISA_MIPS64R5): New define.
12926 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
12927 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
12928 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
12930 (MIPS_ISA_SYNCI_SPEC): Likewise.
12931 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
12932 (LINK_SPEC): Added mips32r3 and mips32r5.
12933 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
12934 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
12935 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
12936 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
12937 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
12938 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
12939 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
12941 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
12943 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
12945 * config/mips/mips.opt (mxpa): New option.
12946 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
12949 2014-06-03 Martin Jambor <mjambor@suse.cz>
12952 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
12955 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
12957 PR tree-optimization/61328
12958 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
12959 initialization from find_bswap_or_nop_1.
12960 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
12961 in source_expr2 before using the size value the function sets. Also
12962 make use of init_symbolic_number () in both the old place and
12963 find_bswap_or_nop_load () to avoid reading uninitialized memory when
12964 doing recursion in the GIMPLE_BINARY_RHS case.
12966 2014-06-03 Richard Biener <rguenther@suse.de>
12968 PR tree-optimization/61383
12969 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
12972 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
12974 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
12975 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
12976 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
12977 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
12979 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
12980 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
12981 * system.h: ...here and make it unconditional.
12982 * target.def (conditional_register_usage): Mention
12983 define_register_constraint instead of old-style constraint macros.
12984 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
12985 * doc/tm.texi: Regenerate.
12986 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
12987 protected by !USE_MD_CONSTRAINTS.
12988 * config/frv/frv.md: Remove quote from old version of documentation.
12989 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
12990 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
12991 CONST_DOUBLE_OK_FOR_LETTER.
12992 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
12994 2014-06-02 Andrew Pinski <apinski@cavium.com>
12996 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
12997 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
12998 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
12999 file whose name depends on -mabi= and -mbig-endian.
13000 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13001 Handle LP64 better and handle ilp32 too.
13002 (MULTILIB_OPTIONS): Delete.
13003 (MULTILIB_DIRNAMES): Delete.
13005 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13007 * expr.h: Remove prototypes of functions defined in builtins.c.
13008 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13009 Remove prototypes of functions defined in builtins.c.
13010 * builtins.h: Update prototype list to include all exported functions.
13011 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13012 no_c99_libc_has_function): Move to targhooks.c
13013 (build_string_literal, build_call_expr_loc_array,
13014 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13016 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13017 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13018 no_c99_libc_has_function): Relocate from builtins.c.
13019 * tree.c: Include builtins.h.
13020 (build_call_expr_loc_array, build_call_expr_loc_vec,
13021 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13023 * fold-const.h (fold_fma): Move prototype to builtins.h.
13024 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13025 * asan.c: Include builtins.h.
13026 * cfgexpand.c: Likewise.
13027 * convert.c: Likewise.
13028 * emit-rtl.c: Likewise.
13029 * except.c: Likewise.
13030 * expr.c: Likewise.
13031 * fold-const.c: Likewise.
13032 * gimple-fold.c: Likewise.
13033 * gimple-ssa-strength-reduction.c: Likewise.
13034 * gimplify.c: Likewise.
13035 * ipa-inline.c: Likewise.
13036 * ipa-prop.c: Likewise.
13037 * lto-streamer-out.c: Likewise.
13038 * stmt.c: Likewise.
13039 * tree-inline.c: Likewise.
13040 * tree-object-size.c: Likewise.
13041 * tree-sra.c: Likewise.
13042 * tree-ssa-ccp.c: Likewise.
13043 * tree-ssa-forwprop.c: Likewise.
13044 * tree-ssa-loop-ivcanon.c: Likewise.
13045 * tree-ssa-loop-ivopts.c: Likewise.
13046 * tree-ssa-math-opts.c: Likewise.
13047 * tree-ssa-reassoc.c: Likewise.
13048 * tree-ssa-threadedge.c: Likewise.
13049 * tree-streamer-in.c: Likewise.
13050 * tree-vect-data-refs.c: Likewise.
13051 * tree-vect-patterns.c: Likewise.
13052 * tree-vect-stmts.c: Likewise.
13053 * config/aarch64/aarch64.c: Likewise.
13054 * config/alpha/alpha.c: Likewise.
13055 * config/arc/arc.c: Likewise.
13056 * config/arm/arm.c: Likewise.
13057 * config/avr/avr.c: Likewise.
13058 * config/bfin/bfin.c: Likewise.
13059 * config/c6x/c6x.c: Likewise.
13060 * config/cr16/cr16.c: Likewise.
13061 * config/cris/cris.c: Likewise.
13062 * config/epiphany/epiphany.c: Likewise.
13063 * config/fr30/fr30.c: Likewise.
13064 * config/frv/frv.c: Likewise.
13065 * config/h8300/h8300.c: Likewise.
13066 * config/i386/i386.c: Likewise.
13067 * config/i386/winnt.c: Likewise.
13068 * config/ia64/ia64.c: Likewise.
13069 * config/iq2000/iq2000.c: Likewise.
13070 * config/lm32/lm32.c: Likewise.
13071 * config/m32c/m32c.c: Likewise.
13072 * config/m32r/m32r.c: Likewise.
13073 * config/m68k/m68k.c: Likewise.
13074 * config/mcore/mcore.c: Likewise.
13075 * config/mep/mep.c: Likewise.
13076 * config/microblaze/microblaze.c: Likewise.
13077 * config/mips/mips.c: Likewise.
13078 * config/mmix/mmix.c: Likewise.
13079 * config/mn10300/mn10300.c: Likewise.
13080 * config/moxie/moxie.c: Likewise.
13081 * config/msp430/msp430.c: Likewise.
13082 * config/nds32/nds32.c: Likewise.
13083 * config/pa/pa.c: Likewise.
13084 * config/pdp11/pdp11.c: Likewise.
13085 * config/picochip/picochip.c: Likewise.
13086 * config/rl78/rl78.c: Likewise.
13087 * config/rs6000/rs6000.c: Likewise.
13088 * config/rx/rx.c: Likewise.
13089 * config/s390/s390.c: Likewise.
13090 * config/score/score.c: Likewise.
13091 * config/sh/sh.c: Likewise.
13092 * config/sparc/sparc.c: Likewise.
13093 * config/spu/spu.c: Likewise.
13094 * config/stormy16/stormy16.c: Likewise.
13095 * config/tilegx/tilegx.c: Likewise.
13096 * config/tilepro/tilepro.c: Likewise.
13097 * config/v850/v850.c: Likewise.
13098 * config/vax/vax.c: Likewise.
13099 * config/xtensa/xtensa.c: Likewise.
13101 2014-06-02 Jeff Law <law@redhat.com>
13103 PR rtl-optimization/61094
13104 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13105 was marked as do_no_reextend. If a copy is needed to eliminate
13106 an extension, then mark it as do_not_reextend.
13108 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13110 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13112 2014-06-02 Richard Henderson <rth@redhat.com>
13115 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13116 addresses inside asms. Use output_operand_lossage instead of
13119 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13122 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13123 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13125 2014-06-02 Tom de Vries <tom@codesourcery.com>
13127 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13128 case that x has VOIDmode.
13130 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13132 * varasm.c (copy_constant): Delete function.
13133 (build_constant_desc): Don't call it.
13135 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13138 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13139 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13140 with immediate_operand.
13142 2014-06-02 Andreas Schwab <schwab@suse.de>
13144 * config/ia64/ia64.c
13145 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13146 pending_data_specs first.
13148 2014-06-02 Richard Biener <rguenther@suse.de>
13150 PR tree-optimization/61378
13151 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13152 valueized_anything.
13154 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13156 * config/i386/constraints.md (Bw): Rename from 'w'.
13157 (Bz): Rename from 'z'.
13158 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13160 2014-06-01 Kai Tietz <ktietz@redhat.com>
13163 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13164 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13165 instead of m constraint.
13167 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13169 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13170 a separate alternative where the scratch operand 2 is marked as
13173 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13175 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13176 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13177 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13178 and __builtins_arm_get_fpscr.
13179 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13180 __builtins_arm_get_fpscr.
13181 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13182 __builtins_arm_ldfpscr.
13183 (arm_atomic_assign_expand_fenv): New function.
13184 * config/arm/vfp.md (set_fpscr): New pattern.
13185 (get_fpscr) : Likewise.
13186 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13188 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13189 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13191 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13193 * asan.c (report_error_func): Add SLOW_P argument, use
13194 BUILT_IN_ASAN_*_N if set.
13195 (build_check_stmt): Likewise.
13196 (instrument_derefs): If T has insufficient alignment,
13197 force same handling as for odd sizes.
13199 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13200 BUILT_IN_ASAN_REPORT_STORE_N): New.
13201 * asan.c (struct asan_mem_ref): Change access_size type to
13203 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13204 update_mem_ref_hash_table): Likewise.
13205 (asan_mem_ref_hasher::hash): Hash in a HWI.
13206 (report_error_func): Change size_in_bytes argument to HWI.
13207 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13209 (build_shadow_mem_access): New function.
13210 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13211 Handle size_in_bytes not power of two or larger than 16.
13212 (instrument_derefs): Don't give up if size_in_bytes is not
13213 power of two or is larger than 16.
13215 2014-05-30 Kai Tietz <ktietz@redhat.com>
13218 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13219 for sibling-tail-calls.
13220 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13222 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13223 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13225 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13227 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13228 * config/avr/avr-tables.opt: Regenerate.
13229 * config/avr/t-multilib: Regenerate.
13230 * doc/avr-mmcu.texi: Regenerate.
13232 2014-05-30 Ian Lance Taylor <iant@google.com>
13234 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13237 2014-05-30 Tom de Vries <tom@codesourcery.com>
13239 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13242 2014-05-30 Tom de Vries <tom@codesourcery.com>
13244 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13245 * lra.c (initialize_lra_reg_info_element): Add init of
13246 actual_call_used_reg_set field.
13247 (lra): Call lra_create_live_ranges before lra_inheritance for
13249 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13251 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13252 instead of call_used_reg_set for -fuse-caller-save.
13253 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13255 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13257 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13259 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13261 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13263 * ira.c (ira_get_dup_out_num): Check for output operands at
13264 the start of the loop. Handle cases where an included alternative
13265 follows an excluded one.
13267 2014-05-29 Mike Stump <mikestump@comcast.net>
13270 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13271 post ld passes when lto is used.
13273 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
13275 PR rtl-optimization/61325
13276 * lra-constraints.c (process_address): Rename to process_address_1.
13277 (process_address): New function.
13279 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
13281 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13282 TYPES_BINOPV): New static data.
13283 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13285 * config/aarch64/aarch64-simd.md (aarch64_ext,
13286 aarch64_im_lane_boundsi): New patterns.
13287 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13289 (aarch64_evpc_ext): New function.
13291 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
13293 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
13294 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
13295 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
13296 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
13297 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
13299 2014-05-29 Tom de Vries <tom@codesourcery.com>
13301 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
13303 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
13304 Richard Sandiford <rdsandiford@googlemail.com>
13306 * arm/iterators.md (shiftable_ops): New code iterator.
13307 (t2_binop0, arith_shift_insn): New code attributes.
13308 * arm/predicates.md (shift_nomul_operator): New predicate.
13309 * arm/arm.md (insn_enabled): Delete.
13310 (enabled): Remove insn_enabled test.
13311 (*arith_shiftsi): Delete. Replace with ...
13312 (*<arith_shift_insn>_multsi): ... new pattern.
13313 (*<arith_shift_insn>_shiftsi): ... new pattern.
13314 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
13316 2014-05-29 Radovan Obradovic <robradovic@mips.com>
13317 Tom de Vries <tom@codesourcery.com>
13319 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
13320 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
13322 (mips_split_call): Use POST_CALL_TMP_REG.
13323 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
13325 2014-05-29 Tom de Vries <tom@codesourcery.com>
13327 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
13328 with #ifdef STACK_REGS.
13330 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
13332 * varasm.c (get_variable_section): Walk aliases.
13333 (place_block_symbol): Walk aliases.
13335 2014-05-28 Tom de Vries <tom@codesourcery.com>
13338 2014-05-28 Tom de Vries <tom@codesourcery.com>
13340 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13341 * lra.c (initialize_lra_reg_info_element): Add init of
13342 actual_call_used_reg_set field.
13343 (lra): Call lra_create_live_ranges before lra_inheritance for
13345 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13347 * lra-constraints.c (need_for_call_save_p): Use
13348 actual_call_used_reg_set instead of call_used_reg_set for
13350 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13352 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13354 * doc/md.texi: Document that the % constraint character must
13355 be at the beginning of the string.
13356 * genoutput.c (validate_insn_alternatives): Check that '=',
13357 '+' and '%' only appear at the beginning of a constraint.
13358 * ira.c (commutative_constraint_p): Delete.
13359 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
13360 at the start of the string.
13361 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
13363 * config/arm/neon.md (bicdi3_neon): Likewise.
13364 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
13365 (slt_si, sltu_si): Likewise.
13366 * config/vax/vax.md (sbcdi3): Likewise.
13367 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
13368 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
13369 (mul64): Move '%' to beginning of constraint.
13370 * config/arm/arm.md (*xordi3_insn): Likewise.
13371 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
13372 (xorsi3): Likewise.
13374 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13376 * doc/md.texi: Document the restrictions on the "enabled" attribute.
13378 2014-05-28 Jason Merrill <jason@redhat.com>
13381 * cgraph.h (symtab_node::get_comdat_group_id): New.
13382 * cgraphunit.c (analyze_functions): Call it.
13383 * symtab.c (dump_symtab_node): Likewise.
13384 * tree.c (decl_comdat_group_id): New.
13385 * tree.h: Declare it.
13386 * lto-streamer-out.c (write_symbol): Use it.
13387 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
13389 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13391 PR bootstrap/PR61146
13392 * wide-int.cc: Do not include longlong.h when compiling with clang.
13394 2014-05-28 Richard Biener <rguenther@suse.de>
13396 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
13397 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
13398 (vrp_visit_assignment_or_call): Print less vertical space.
13399 (vrp_visit_stmt): Likewise.
13400 (vrp_visit_phi_node): Likewise. For a PHI argument with
13401 VR_VARYING range consider recording it as copy.
13403 2014-05-28 Richard Biener <rguenther@suse.de>
13406 2014-05-28 Richard Biener <rguenther@suse.de>
13408 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13410 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13412 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
13413 sufficiently aligned and an offset is used at the same time.
13414 (expand_expr_real_1): Likewise.
13416 2014-05-28 Richard Biener <rguenther@suse.de>
13418 PR middle-end/61045
13419 * fold-const.c (fold_comparison): When folding
13420 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
13421 the sign of the remaining constant operand stays the same.
13423 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
13425 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13426 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
13427 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
13429 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
13430 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
13431 (m32bit-doubles) Likewise.
13432 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
13433 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
13436 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13438 * configure.ac ($gcc_cv_ld_clearcap): New test.
13439 * configure: Regenerate.
13440 * config.in: Regenerate.
13441 * config/sol2.opt (mclear-hwcap): New option.
13442 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
13443 * config/sol2-clearcap.map: Moved here from
13444 testsuite/gcc.target/i386/clearcap.map.
13445 * config/sol2-clearcapv2.map: Move here from
13446 gcc.target/i386/clearcapv2.map.
13447 * config/t-sol2 (install): Depend on install-clearcap-map.
13448 (install-clearcap-map): New target.
13449 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
13452 2014-05-28 Richard Biener <rguenther@suse.de>
13454 * hwint.h (*_HALF_WIDE_INT*): Move to ...
13455 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
13456 ... here and remove the rest.
13457 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13459 2014-05-28 Richard Biener <rguenther@suse.de>
13461 PR tree-optimization/61335
13462 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
13463 new range fails, drop to varying.
13465 2014-05-28 Olivier Hainque <hainque@adacore.com>
13467 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
13468 (CPP_SPEC): Add entry for -mcpu=8548.
13469 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
13470 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
13472 2014-05-28 Tom de Vries <tom@codesourcery.com>
13474 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13475 * lra.c (initialize_lra_reg_info_element): Add init of
13476 actual_call_used_reg_set field.
13477 (lra): Call lra_create_live_ranges before lra_inheritance for
13479 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13481 * lra-constraints.c (need_for_call_save_p): Use
13482 actual_call_used_reg_set instead of call_used_reg_set for
13484 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13486 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13487 Tom de Vries <tom@codesourcery.com>
13489 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
13491 (@item -fuse-caller-save): New item.
13493 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13494 Tom de Vries <tom@codesourcery.com>
13496 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
13497 OPT_fuse_caller_save.
13499 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13500 Tom de Vries <tom@codesourcery.com>
13502 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
13503 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
13504 get_call_reg_set_usage.
13505 * resource.c (mark_set_resources, mark_target_live_regs): Use
13506 get_call_reg_set_usage.
13507 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
13509 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
13510 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
13511 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13512 * ira-build.c (ira_create_allocno): Init
13513 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13514 (create_cap_allocno, propagate_allocno_info)
13515 (propagate_some_info_from_allocno)
13516 (copy_info_to_removed_store_destinations): Handle
13517 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
13518 * ira-costs.c (ira_tune_allocno_costs): Use
13519 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
13521 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13522 Tom de Vries <tom@codesourcery.com>
13524 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
13525 and function_used_regs_valid fields.
13526 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
13527 find_all_hard_reg_sets.
13528 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
13529 (get_call_reg_set_usage): New function.
13530 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
13531 * regs.h (get_call_reg_set_usage): Declare.
13533 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13536 * config/dbx.h (License): Add Runtime Library Exception.
13537 * config/newlib-stdint.h (License): Same.
13538 * config/rtems.h (License): Same
13539 * config/initfini-array.h (License): Same
13540 * config/v850/v850.h (License): Same.
13541 * config/v850/v850-opts.h (License): Same
13542 * config/v850/rtems.h (License): Same.
13544 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
13547 * doc/extend.texi (Local Labels): Note that label differences are
13548 not supported for AVR.
13550 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13551 Olivier Hainque <hainque@adacore.com>
13553 * rtl.h (set_for_reg_notes): Declare.
13554 * emit-rtl.c (set_for_reg_notes): New function.
13555 (set_unique_reg_note): Use it.
13556 * optabs.c (add_equal_note): Likewise
13558 2014-05-27 Andrew Pinski <apinski@cavium.com>
13560 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
13561 Use <w> for the register in assembly template.
13562 (stack_protect_test): Use the mode of operands[0] for the result.
13563 (stack_protect_test_<mode>): Use <w> for the register
13564 in assembly template.
13566 2014-05-27 DJ Delorie <dj@redhat.com>
13568 * config/rx/rx.c (add_vector_labels): New.
13569 (rx_output_function_prologue): Call it.
13570 (rx_handle_func_attribute): Don't require empty arguments.
13571 (rx_handle_vector_attribute): New.
13572 (rx_attribute_table): Add "vector" attribute.
13573 * doc/extend.texi (interrupt, vector): Document new/changed
13574 RX-specific attributes.
13576 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
13578 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13580 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
13581 predicate to detect a negative quotient.
13583 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
13585 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
13586 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
13587 Add X - Y CMP 0 to X CMP Y transformation.
13588 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
13590 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
13592 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
13595 2014-05-27 Steve Ellcey <sellcey@mips.com>
13597 * config/mips/mips.c: Add include of cgraph.h.
13599 2014-05-27 Richard Biener <rguenther@suse.de>
13601 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
13603 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
13606 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
13607 * config/arm/arm-cores.def (License): Same.
13608 * config/arm/arm-opts.h (License): Same.
13609 * config/arm/aout.h (License): Same.
13610 * config/arm/bpabi.h (License): Same.
13611 * config/arm/elf.h (License): Same.
13612 * config/arm/linux-elf.h (License): Same.
13613 * config/arm/linux-gas.h (License): Same.
13614 * config/arm/netbsd-elf.h (License): Same.
13615 * config/arm/uclinux-eabi.h (License): Same.
13616 * config/arm/uclinux-elf.h (License): Same.
13617 * config/arm/vxworks.h (License): Same.
13619 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13621 * config/arm/neon.md (neon_bswap<mode>): New pattern.
13622 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
13623 (arm_init_neon_builtins): Handle NEON_BSWAP.
13624 Define required type nodes.
13625 (arm_expand_neon_builtin): Handle NEON_BSWAP.
13626 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
13627 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
13628 * config/arm/iterators.md (VDQHSD): New mode iterator.
13630 2014-05-27 Richard Biener <rguenther@suse.de>
13632 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
13633 Try using literal operands when comparing value-ranges failed.
13635 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13637 * ira.c (commutative_operand): Adjust for change to recog_data.
13638 [Missing from previous commit.]
13640 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13642 * system.h (TEST_BIT): New macro.
13643 * recog.h (alternative_mask): New type.
13644 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
13645 (recog_data_d): Replace alternative_enabled_p array with
13646 enabled_alternatives.
13647 (target_recog): New structure.
13648 (default_target_recog, this_target_recog): Declare.
13649 (get_enabled_alternatives, recog_init): Likewise.
13650 * recog.c (default_target_recog, this_target_recog): New variables.
13651 (get_enabled_alternatives): New function.
13652 (extract_insn): Use it.
13653 (recog_init): New function.
13654 (preprocess_constraints, constrain_operands): Adjust for change to
13656 * postreload.c (reload_cse_simplify_operands): Likewise.
13657 * reload.c (find_reloads): Likewise.
13658 * ira-costs.c (record_reg_classes): Likewise.
13659 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
13660 all alternatives after a disabled one would be skipped.
13661 (ira_implicitly_set_insn_hard_regs): Likewise.
13662 * ira.c (ira_setup_alts): Adjust for change to recog_data.
13663 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
13664 with enabled_alternatives.
13665 * lra.c (free_insn_recog_data): Update accordingly.
13666 (lra_update_insn_recog_data): Likewise.
13667 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
13668 * lra-constraints.c (process_alt_operands): Likewise. Handle
13669 only_alternative as part of the enabled mask.
13670 * target-globals.h (this_target_recog): Declare.
13671 (target_globals): Add a recog field.
13672 (restore_target_globals): Restore this_target_recog.
13673 * target-globals.c: Include recog.h.
13674 (default_target_globals): Initialize recog field.
13675 (save_target_globals): Likewise.
13676 * reginfo.c (reinit_regs): Call recog_init.
13677 * toplev.c (backend_init_target): Likewise.
13679 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
13681 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
13682 rather than any named insn's code.
13684 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
13687 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
13688 * config/arm/arm-cores.def (License): Same.
13690 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
13692 * tree.h (decl_comdat_group): Declare.
13693 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
13694 * tree.c (decl_comdat_group): Here.
13696 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
13698 PR rtl-optimization/61222
13699 * combine.c (simplify_shift_const_1): When moving a PLUS outside
13700 the shift, truncate the PLUS operand to the result mode.
13702 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
13705 * config/i386/i386.c (ix86_rtx_costs)
13706 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
13709 2014-05-26 Martin Jambor <mjambor@suse.cz>
13711 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
13714 2014-05-26 Richard Biener <rguenther@suse.de>
13716 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
13717 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
13718 Provide specializations.
13719 (wi::int_traits <HOST_WIDE_INT>,
13720 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
13722 2014-05-26 Alan Modra <amodra@gmail.com>
13725 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
13726 params and return a bool. Remove dead code. Update comment.
13727 Assert we have a const_int source. Remove bogus code from
13728 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
13729 handling of constants > 2G and reg_equal note, from..
13730 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
13731 return value. Update comment. If we can, use a new pseudo
13732 for intermediate calculations.
13733 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
13735 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
13736 call to rs6000_emit_set_const in splitter.
13737 (movdi_internal64+2, +3): Likewise.
13739 2014-05-26 Richard Biener <rguenther@suse.de>
13741 * system.h: Define __STDC_FORMAT_MACROS before
13742 including inttypes.h.
13743 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
13744 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
13745 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
13746 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
13747 HOST_WIDEST_INT_C): Remove.
13748 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
13749 if C99 inttypes.h is not available.
13750 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
13751 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
13752 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
13753 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
13754 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
13755 (struct output_info): Likewise.
13756 (print_statistics): Adjust.
13757 (dump_bitmap_statistics): Likewise.
13758 * bt-load.c (migrate_btr_defs): Print with PRId64.
13759 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
13760 (MAX_SAFE_MULTIPLIER): Adjust.
13761 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
13762 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
13763 dump_cgraph_node): Likewise.
13764 * final.c (dump_basic_block_info): Likewise.
13765 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
13766 * gcov.c (format_gcov): Likewise.
13767 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
13769 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
13770 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
13771 (inline_small_functions, dump_overall_stats, dump_inline_stats):
13772 Use PRId64 for dumping.
13773 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
13774 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
13775 (add_allocno_hard_regs): Adjust.
13776 * loop-doloop.c (doloop_modify): Print using PRId64.
13777 * loop-iv.c (inverse): Compute in uint64_t.
13778 (determine_max_iter, iv_number_of_iterations): Likewise.
13779 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
13780 Print using PRId64.
13781 * lto-streamer-out.c (write_symbol): Use uint64_t.
13782 * mcf.c (CAP_INFINITY): Use int64_t maximum.
13783 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
13784 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
13785 * modulo-sched.c (const_iteration_count): Use int64_t.
13786 (sms_schedule): Dump using PRId64.
13787 * predict.c (dump_prediction): Likewise.
13788 * pretty-print.h (pp_widest_integer): Remove.
13789 * profile.c (get_working_sets, is_edge_inconsistent,
13790 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
13791 * tree-pretty-print.c (pp_double_int): Remove case handling
13792 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
13793 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
13795 (pass_optimize_bswap::execute): Remove restriction on hosts.
13796 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
13797 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
13798 * tree.c (widest_int_cst_value): Remove.
13799 * tree.h (widest_int_cst_value): Likewise.
13800 * value-prof.c (dump_histogram_value): Print using PRId64.
13801 * gengtype.c (main): Also inject int64_t.
13802 * ggc-page.c (struct max_alignment): Use int64_t.
13803 * alloc-pool.c (struct allocation_object_def): Likewise.
13804 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
13806 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
13807 * doc/tm.texi: Regenerated.
13808 * gengtype-lex.l (IWORD): Handle [u]int64_t.
13809 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
13810 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
13811 mmix_output_register_setting): Use [u]int64_t in prototypes.
13812 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
13813 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
13814 mmix_output_octa, mmix_output_shifted_value): Adjust.
13815 (mmix_intval): Adjust. Remove unreachable case.
13816 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
13818 2014-05-26 Richard Biener <rguenther@suse.de>
13820 * configure.ac: Drop __int64 type check. Insist that we
13821 found uint64_t and int64_t.
13822 * hwint.h (HOST_BITS_PER___INT64): Remove.
13823 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
13824 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
13825 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
13826 (HOST_WIDEST_FAST_INT): Remove __int64 case.
13827 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
13828 for dst_q_src_df_rms_cdt.
13829 * configure: Regenerate.
13830 * config.in: Likewise.
13832 2014-05-26 Michael Tautschnig <mt@debian.org>
13835 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
13836 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
13838 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13840 PR rtl-optimization/61278
13841 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
13843 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13845 PR rtl-optimization/61220
13846 Part of PR rtl-optimization/61225
13847 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
13848 insn; skip split_edge for a block with only one successor.
13850 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13852 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
13855 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13857 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
13858 (update_vtable_references): New function.
13859 (function_and_variable_visibility): Rewrite also vtable initializers.
13860 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
13862 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13864 * ggc.h (ggc_grow): New function.
13865 * ggc-none.c (ggc_grow): New function.
13866 * ggc-page.c (ggc_grow): Likewise.
13868 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13870 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
13871 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
13872 comdat_can_be_unshared_p, cgraph_externally_visible_p,
13873 varpool_externally_visible_p, can_replace_by_local_alias,
13874 update_visibility_by_resolution_info, function_and_variable_visibility,
13875 pass_data_ipa_function_and_variable_visibility,
13876 make_pass_ipa_function_and_variable_visibility,
13877 whole_program_function_and_variable_visibility,
13878 pass_data_ipa_whole_program_visibility,
13879 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
13880 * cgraph.h (cgraph_local_node_p): Declare.
13881 * ipa-visibility.c: New file.
13882 * Makefile.in (OBJS): Add ipa-visiblity.o
13884 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13886 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
13887 that var decl is available.
13889 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13891 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
13892 symtab_node pointer.
13893 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
13894 (find_decls_types_r): Do not walk COMDAT_GROUP.
13895 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
13896 * varasm.c (make_decl_one_only): Use set_comdat_group;
13897 create node if needed.
13898 * ipa-inline-transform.c (save_inline_function_body): Update
13899 way we decl->symtab mapping.
13900 * symtab.c (symtab_hash, hash_node, eq_node
13901 symtab_insert_node_to_hashtable): Remove.
13902 (symtab_register_node): Update.
13903 (symtab_unregister_node): Update.
13904 (symtab_get_node): Reimplement as inline function.
13905 (symtab_add_to_same_comdat_group): Update.
13906 (symtab_dissolve_same_comdat_group_list): Update.
13907 (dump_symtab_base): Update.
13908 (verify_symtab_base): Update.
13909 (symtab_make_decl_local): Update.
13910 (fixup_same_cpp_alias_visibility): Update.
13911 (symtab_nonoverwritable_alias): Update.
13912 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
13913 * ipa.c (update_visibility_by_resolution_info): UPdate.
13914 * bb-reorder.c: Include cgraph.h
13915 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
13916 with comdat groups.
13917 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
13918 * cgraph.c (cgraph_get_create_node): Update.
13919 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
13921 (symtab_get_node): Make inline.
13922 (symtab_insert_node_to_hashtable): Remove.
13923 (symtab_can_be_discarded): Update.
13924 (decl_comdat_group): New function.
13925 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
13927 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
13929 (read_comdat_group): New function.
13930 (input_node, input_varpool_node): Use it.
13931 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
13933 * mips.c (mips_start_unique_function): Likewise.
13934 (ix86_code_end): Likewise.
13935 (rs6000_code_end): Likweise.
13936 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
13938 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13940 * gengtype-state.c (fatal_reading_state): Bring offline.
13941 * optabs.c (widening_optab_handler): Bring offline.
13942 * optabs.h (widening_optab_handler): Likewise.
13943 * final.c (get_attr_length_1): Likewise.
13945 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
13947 * sched-int.h (sd_iterator_cond): Manually tail recurse.
13949 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13951 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
13952 (ppc440-compare): Include shift with dot.
13953 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
13954 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
13956 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
13958 (e6500_sfx2): Include it.
13959 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
13960 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
13961 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
13962 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
13963 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
13964 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
13965 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
13966 *lshiftrt_internal1le, *lshiftrt_internal1be,
13967 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
13968 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
13969 *rotldi3_internal10le, *rotldi3_internal10be,
13970 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
13971 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
13972 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
13973 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
13974 define_insns): Use type "shift" in the appropriate alternatives.
13976 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
13978 * config/rs6000/rs6000.md (type): Add "logical". Delete
13980 (dot): Adjust comment.
13981 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
13982 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
13983 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
13984 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
13985 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
13986 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
13987 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
13988 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
13990 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
13991 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
13992 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
13993 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
13994 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
13995 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
13996 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
13997 * config/rs6000/8540.md (ppc8540_su): Adjust.
13998 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
13999 cell-cmp-microcoded): Adjust.
14000 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14001 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14002 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14003 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14004 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14005 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14006 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14007 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14008 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14010 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14011 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14012 Adjust. Adjust comment.
14013 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14014 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14016 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14018 * config/rs6000/rs6000.md (type): Add "add".
14019 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14020 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14021 define_insns): Use it.
14022 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14024 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14025 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14026 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14027 * config/rs6000/601.md (ppc601-integer): Adjust.
14028 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14029 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14030 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14031 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14032 * config/rs6000/8540.md (ppc8540_su): Adjust.
14033 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14034 cell-cmp-microcoded): Adjust.
14035 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14036 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14037 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14038 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14039 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14040 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14041 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14042 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14043 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14045 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14046 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14047 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14048 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14050 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14052 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14053 "delayed_compare", "var_delayed_compare".
14054 (var_shift): New attribute.
14055 (cell_micro): Adjust.
14056 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14057 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14058 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14059 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14060 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14061 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14062 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14063 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14064 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14065 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14066 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14067 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14068 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14069 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14070 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14071 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14072 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14073 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14074 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14075 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14076 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14077 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14078 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14079 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14080 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14082 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14083 * config/rs6000/440.md (ppc440-integer): Adjust.
14084 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14085 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14086 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14087 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14088 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14089 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14090 * config/rs6000/8540.md (ppc8540_su): Adjust.
14091 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14092 cell-cmp-microcoded): Adjust.
14093 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14094 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14095 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14096 e500mc64_delayed): Adjust.
14097 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14098 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14099 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14100 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14101 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14102 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14103 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14104 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14105 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14107 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14108 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14110 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14112 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14113 (bits): New mode_attr.
14114 (idiv_ldiv): Delete mode_attr.
14115 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14116 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14117 rs6000_adjust_priority, is_nonpipeline_insn,
14118 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14120 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14121 * config/rs6000/440.md (ppc440-idiv): Adjust.
14122 * config/rs6000/476.md (ppc476-idiv): Adjust.
14123 * config/rs6000/601.md (ppc601-idiv): Adjust.
14124 * config/rs6000/603.md (ppc603-idiv): Adjust.
14125 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14126 ppc620-ldiv): Adjust.
14127 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14128 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14129 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14130 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14131 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14132 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14133 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14134 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14135 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14136 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14137 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14138 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14139 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14140 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14141 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14142 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14143 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14144 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14146 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14148 * config/rs6000/rs6000.md (type): Delete "insert_word",
14149 "insert_dword". Add "insert".
14150 (size): Update comment.
14151 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14152 insn_must_be_first_in_group): Adjust.
14153 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14154 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14155 *insvsi_internal6, insvdi_internal): Adjust.
14157 * config/rs6000/40x.md (ppc403-integer): Adjust.
14158 * config/rs6000/440.md (ppc440-integer): Adjust.
14159 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14160 * config/rs6000/601.md (ppc601-integer): Adjust.
14161 * config/rs6000/603.md (ppc603-integer): Adjust.
14162 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14163 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14164 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14165 * config/rs6000/8540.md (ppc8540_su): Adjust.
14166 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14167 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14168 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14169 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14170 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14171 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14172 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14173 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14174 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14175 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14176 * config/rs6000/power7.md (power7-integer): Adjust.
14177 * config/rs6000/power8.md (power8-1cyc): Adjust.
14178 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14179 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14181 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14183 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14184 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14185 (size): New attribute.
14186 (dot): New attribute.
14187 (cell_micro): Adjust.
14188 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14189 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14190 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14191 umuldi3_highpart): Adjust.
14192 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14193 rs6000_adjust_priority, is_nonpipeline_insn,
14194 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14196 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14197 ppc405-imul3): Adjust.
14198 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14199 * config/rs6000/476.md (ppc476-imul): Adjust.
14200 * config/rs6000/601.md (ppc601-imul): Adjust.
14201 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14202 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14203 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14204 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14205 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14207 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14208 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14209 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14210 cell-imul): Adjust.
14211 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14212 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14213 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14214 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14215 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14216 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14217 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14218 power4-lmul, power4-imul, power4-imul3): Adjust.
14219 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14220 power5-lmul, power5-imul, power5-imul3): Adjust.
14221 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14222 power6-lmul, power6-imul, power6-imul3): Adjust.
14223 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14224 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14226 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14227 rs64a-lmul): Adjust.
14228 * config/rs6000/titan.md (titan_imul): Adjust.
14230 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14232 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14233 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14234 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14235 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14236 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14237 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14238 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14239 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14240 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14241 * config/rs6000/titan.md: Delete nonsensical comment.
14242 (titan_imul): Add type imul3.
14243 (titan_mulhw): Remove type imul3; add type halfmul.
14245 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14247 * config/rs6000/rs6000.md (type): Reorder, reformat.
14249 2014-05-23 Martin Jambor <mjambor@suse.cz>
14251 PR tree-optimization/53787
14252 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14253 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14254 analysis_done, update all uses.
14255 * ipa-prop.c: Include domwalk.h
14256 (param_analysis_info): Removed.
14257 (param_aa_status): New type.
14258 (ipa_bb_info): Likewise.
14259 (func_body_info): Likewise.
14260 (ipa_get_bb_info): New function.
14261 (aa_overwalked): Likewise.
14262 (find_dominating_aa_status): Likewise.
14263 (parm_bb_aa_status_for_bb): Likewise.
14264 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14265 (load_from_unmodified_param): Accept func_body_info as a parameter
14266 instead of parms_ainfo.
14267 (parm_ref_data_preserved_p): Changed to use new param AA info.
14268 (parm_ref_data_pass_through_p): Likewise.
14269 (ipa_load_from_parm_agg_1): Likewise. Update callers.
14270 (compute_complex_assign_jump_func): Changed to use new param AA info.
14271 (compute_complex_ancestor_jump_func): Likewise.
14272 (ipa_compute_jump_functions_for_edge): Likewise.
14273 (ipa_compute_jump_functions): Removed.
14274 (ipa_compute_jump_functions_for_bb): New function.
14275 (ipa_analyze_indirect_call_uses): Likewise, moved variable
14277 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14278 and info, moved variable declarations down.
14279 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14281 (ipa_analyze_stmt_uses): Likewise.
14282 (ipa_analyze_params_uses): Removed.
14283 (ipa_analyze_params_uses_in_bb): New function.
14284 (ipa_analyze_controlled_uses): Likewise.
14285 (free_ipa_bb_info): Likewise.
14286 (analysis_dom_walker): New class.
14287 (ipa_analyze_node): Handle node-specific forbidden analysis,
14288 initialize and free func_body_info, use dominator walker.
14289 (ipcp_modif_dom_walker): New class.
14290 (ipcp_transform_function): Create and free func_body_info, use
14291 ipcp_modif_dom_walker, moved a lot of functionality there.
14293 2014-05-23 Marek Polacek <polacek@redhat.com>
14294 Jakub Jelinek <jakub@redhat.com>
14296 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
14297 * gcc.c (sanitize_spec_function): Likewise.
14298 * convert.c (convert_to_integer): Include "ubsan.h". Add
14299 floating-point to integer instrumentation.
14300 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
14301 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
14302 SANITIZE_NONDEFAULT.
14303 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
14304 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
14305 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
14306 * ubsan.c: Include "realmpfr.h" and "dfp.h".
14307 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
14308 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
14309 float/double/long double.
14310 (ubsan_instrument_float_cast): New function.
14311 * ubsan.h (ubsan_instrument_float_cast): Declare.
14313 2014-05-23 Jiong Wang <jiong.wang@arm.com>
14315 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
14317 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
14318 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
14319 Adjust for tailcalling through registers.
14320 * config/aarch64/aarch64.h (enum reg_class): New caller save
14322 (REG_CLASS_NAMES): Likewise.
14323 (REG_CLASS_CONTENTS): Likewise.
14324 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
14325 Allow tailcalling without decls.
14327 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14329 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14330 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
14332 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
14333 gsi, and variables v_* to v*.
14335 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
14337 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
14339 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14341 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
14342 * omp-low.c: Update accordingly.
14344 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
14345 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
14346 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
14347 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
14348 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
14349 GF_OMP_TARGET_KIND_UPDATE.
14351 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14352 Explicitly enumerate the expected region types.
14354 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
14357 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
14358 documentation; the old documentation didn't clearly state the
14359 constraints on the contents of the pointed-to storage.
14361 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14363 Fix bootstrap error on ia64
14364 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
14365 Return default value.
14367 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
14369 PR tree-optimization/54733
14370 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
14372 (find_bswap_or_nop_load): New.
14373 (find_bswap_1): Renamed to ...
14374 (find_bswap_or_nop_1): This. Also add support for memory source.
14375 (find_bswap): Renamed to ...
14376 (find_bswap_or_nop): This. Also add support for memory source and
14377 detection of bitwise operations equivalent to load in target
14379 (execute_optimize_bswap): Likewise. Also move its leading comment back
14380 in place and split statement transformation into ...
14381 (bswap_replace): This.
14383 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14385 PR rtl-optimization/61215
14386 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
14387 simplify_gen_subreg until final substitution.
14389 2014-05-23 Alan Modra <amodra@gmail.com>
14392 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
14393 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
14394 Use "Y" constraint rather than "m".
14396 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14398 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
14400 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
14401 New function declaration.
14402 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
14403 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
14404 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
14405 (aarch64_init_builtins) : Initialize builtins
14406 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14407 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14408 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
14409 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
14410 and __builtins_aarch64_set_fpsr.
14411 (aarch64_atomic_assign_expand_fenv): New function.
14412 * config/aarch64/aarch64.md (set_fpcr): New pattern.
14413 (get_fpcr) : Likewise.
14414 (set_fpsr) : Likewise.
14415 (get_fpsr) : Likewise.
14416 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
14417 and UNSPECV_SET_FPSR.
14418 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14419 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14420 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14422 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14424 PR rtl-optimization/60969
14425 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
14426 constraints. Set up mem cost for NO_REGS case.
14428 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
14430 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
14432 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
14434 * config/darwin.c: Include "lto-section-names.h".
14435 (LTO_SEGMENT_NAME): Don't define.
14436 * config/i386/winnt.c: Include "lto-section-names.h".
14437 * lto-streamer.c: Include "lto-section-names.h".
14438 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
14439 * lto-wrapper.c: Include "lto-section-names.h".
14440 (LTO_SECTION_NAME_PREFIX): Don't define.
14441 * lto-section-names.h: New file.
14442 * cgraphunit.c: Include "lto-section-names.h".
14444 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
14446 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
14448 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
14451 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
14453 2014-05-22 Nick Clifton <nickc@redhat.com>
14455 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
14457 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
14459 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
14460 -> (T)A transformation to integer types.
14462 2014-05-22 Teresa Johnson <tejohnson@google.com>
14464 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
14465 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
14466 (gcov_rewrite): Use gcov_nonruntime_assert.
14467 (gcov_open): Ditto.
14468 (gcov_write_words): Ditto.
14469 (gcov_write_length): Ditto.
14470 (gcov_read_words): Use gcov_nonruntime_assert, and remove
14471 gcc_assert from IN_LIBGCOV code.
14472 (gcov_read_summary): Use gcov_error to flag profile corruption.
14473 (gcov_sync): Use gcov_nonruntime_assert.
14474 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
14475 (gcov_histo_index): Use gcov_nonruntime_assert.
14476 (static void gcov_histogram_merge): Ditto.
14477 (compute_working_sets): Ditto.
14478 * gcov-io.h (gcov_nonruntime_assert): Define.
14479 (gcov_error): Define for !IN_LIBGCOV
14481 2014-05-22 Richard Biener <rguenther@suse.de>
14483 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14484 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
14485 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
14486 and deallocation site.
14487 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14488 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
14489 passing through the incoming points-to set.
14490 (handle_lhs_call): Use flags argument instead of recomputing it.
14491 (find_func_aliases_for_call): Call handle_lhs_call with proper
14494 2014-05-22 Jakub Jelinek <jakub@redhat.com>
14496 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
14497 all padding bits in REAL_VALUE_TYPE are cleared.
14499 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14501 Cleanup and improve multipass_dfa_lookahead_guard
14502 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
14503 (core2i7_first_cycle_multipass_begin,)
14504 (core2i7_first_cycle_multipass_issue,)
14505 (core2i7_first_cycle_multipass_backtrack): Update signature.
14506 * config/ia64/ia64.c
14507 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
14508 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
14509 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
14511 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
14512 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
14514 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
14516 * doc/tm.texi: Regenerate.
14518 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
14519 * haifa-sched.c (ready_try): Make signed to allow negative values.
14520 (rebug_ready_list_1): Update.
14521 (choose_ready): Simplify.
14522 (sched_extend_ready_list): Update.
14524 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14526 Remove IA64 speculation tweaking flags
14527 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
14528 speculation tuning flags.
14529 (msched-prefer-non-data-spec-insns,)
14530 (msched-prefer-non-control-spec-insns): Obsolete options.
14531 * haifa-sched.c (choose_ready): Remove handling of
14532 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14533 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
14534 and PREFER_NON_DATA_SPEC.
14535 * sel-sched.c (process_spec_exprs): Remove handling of
14536 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
14538 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14540 Improve scheduling debug output
14541 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
14542 (advance_one_cycle): Update.
14543 (schedule_insn, queue_to_ready): Add debug printouts.
14544 (debug_ready_list_1): New static function.
14545 (debug_ready_list): Update.
14546 (max_issue): Add debug printouts.
14547 (dump_insn_stream): New static function.
14548 (schedule_block): Use it. Also better indent printouts.
14550 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14552 Fix sched_insn debug counter
14553 * haifa-sched.c (schedule_insn): Update.
14554 (struct haifa_saved_data): Add nonscheduled_insns_begin.
14555 (save_backtrack_point, restore_backtrack_point): Update.
14556 (first_nonscheduled_insn): New static function.
14557 (queue_to_ready, choose_ready): Use it.
14558 (schedule_block): Init nonscheduled_insns_begin.
14559 (sched_emit_insn): Update.
14562 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
14564 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
14566 (aarch64_secondary_reload) : LikeWise.
14567 (aarch64_class_max_nregs) : Remove CORE_REGS.
14568 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
14569 (REG_CLASS_NAMES) : Likewise.
14570 (REG_CLASS_CONTENTS) : LikeWise.
14571 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
14573 2014-05-21 Guozhi Wei <carrot@google.com>
14576 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
14578 (vqdmulhq_n_s16): Likewise.
14580 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
14582 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
14584 2014-05-21 Marek Polacek <polacek@redhat.com>
14587 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
14589 2014-05-21 Martin Jambor <mjambor@suse.cz>
14591 * doc/invoke.texi (Optimize Options): Document parameters
14592 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
14593 ipa-cp-array-index-hint-bonus.
14595 2014-05-21 Mark Wielaard <mjw@redhat.com>
14598 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
14599 version >= 3 or not strict DWARF.
14600 * langhooks.h (struct lang_hooks_for_types): Add
14601 enum_underlying_base_type.
14602 * langhooks.c (lhd_enum_underlying_base_type): New function.
14603 * gcc/langhooks.h (struct lang_hooks_for_types): Add
14604 enum_underlying_base_type.
14605 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
14606 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
14607 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
14609 2014-05-21 Richard Biener <rguenther@suse.de>
14611 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
14613 2014-05-21 John Marino <gnugcc@marino.st>
14615 * config.gcc (*-*-dragonfly*): New target.
14616 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
14617 * configure: Regenerate.
14618 * config/dragonfly-stdint.h: New.
14619 * config/dragonfly.h: New.
14620 * config/dragonfly.opt: New.
14621 * config/i386/dragonfly.h: New.
14622 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
14624 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
14626 * tree.def (VOID_CST): New.
14627 * tree-core.h (TI_VOID): New.
14628 * tree.h (void_node): New.
14629 * tree.c (tree_node_structure_for_code, tree_code_size)
14630 (iterative_hash_expr): Handle VOID_CST.
14631 (build_common_tree_nodes): Initialize void_node.
14633 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
14635 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
14637 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
14639 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
14642 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
14643 flag_reorder_blocks_and_partition.
14644 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
14646 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
14649 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
14651 (*addc_r_t): Add new insn_and_split.
14653 2014-05-21 Jakub Jelinek <jakub@redhat.com>
14655 PR middle-end/61252
14656 * omp-low.c (handle_simd_reference): New function.
14657 (lower_rec_input_clauses): Use it. Defer adding reference
14658 initialization even for reduction without placeholder if in simd,
14659 handle it properly later on.
14661 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14663 PR tree-optimization/60899
14664 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
14665 assume all static symbols will have definition wile parsing and
14666 check the do have definition later in compilation; check that
14667 variable referring symbol will be output before concluding that
14668 reference is safe; be conservative for referring local statics;
14669 be more precise about when comdat is output in other partition.
14671 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14674 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
14676 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
14677 (ipa_inline): Loop inline_to_all_callers until no more aliases
14680 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14682 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
14683 set writeonly flag only for vars actually written to.
14685 2014-05-20 Dehao Chen <dehao@google.com>
14687 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
14688 and callee count to get clone count.
14689 * tree-inline.c (expand_call_inline): Use callee count instead of bb
14690 count in copy_body.
14692 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
14694 PR rtl-optimization/61243
14695 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
14697 2014-05-20 Xinliang David Li <davidxl@google.com>
14699 * cgraphunit.c (walk_polymorphic_call_targets): Add
14700 dbgcnt and fopt-info support.
14701 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
14702 * ipa-devirt.c (ipa_devirt): Ditto.
14703 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
14704 * ipa.c (walk_polymorphic_call_targets): Ditto.
14705 * gimple-fold.c (fold_gimple_assign): Ditto.
14706 (gimple_fold_call): Ditto.
14707 * dbgcnt.def: New counter.
14709 2014-05-20 DJ Delorie <dj@redhat.com>
14711 * config/msp430/msp430.md (split): Don't allow subregs when
14712 splitting SImode adds.
14713 (andneghi): Fix subtraction logic.
14714 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
14716 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
14718 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
14720 * except.c (switch_to_exception_section, resolve_unique_section,
14721 get_named_text_section, default_function_rodata_section,
14722 align_variable, get_block_for_decl, default_section_type_flags):
14723 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
14724 * symtab.c (symtab_add_to_same_comdat_group,
14725 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
14726 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
14728 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
14729 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
14730 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
14731 (c6x_function_in_section_p): Likewise.
14732 * config/darwin.c (machopic_select_section): Likewise.
14733 * config/arm/arm.c (arm_function_in_section_p): Likewise.
14734 * config/mips/mips.c (mips_function_rodata_section): Likewise.
14735 * config/mep/mep.c (mep_select_section): LIkewise.
14736 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
14738 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
14740 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
14741 EH region of calls to pure functions that can throw an exception.
14742 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
14743 (copy_reference_ops_from_call): Also copy the EH region of the call if
14744 it can throw an exception.
14746 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14748 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
14749 nested VEC_SELECTs that are inverses of each other.
14751 2014-05-20 Richard Biener <rguenther@suse.de>
14753 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
14754 (extract_and_process_scc_for_name): not here.
14755 (cond_dom_walker::before_dom_children): Only process
14756 stmts that end the BB in interesting ways.
14757 (run_scc_vn): Mark param uses as visited.
14759 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14761 * config/arm/arm.md (arith_shiftsi): Do not predicate for
14764 2014-05-20 Nick Clifton <nickc@redhat.com>
14766 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
14767 (msp430_gimplify_va_arg_expr): New function.
14768 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
14770 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
14771 operand 0 in order to prevent confusion about the number of
14772 registers involved.
14774 2014-05-20 Richard Biener <rguenther@suse.de>
14776 PR tree-optimization/61221
14777 * tree-ssa-pre.c (el_to_update): Remove.
14778 (eliminate_dom_walker::before_dom_children): Handle released
14779 VDEFs by value-numbering them to the associated VUSE. Update
14780 stmt immediately for substituted call address.
14781 (eliminate): Remove delayed stmt updating code.
14782 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
14783 possibly late re-numbered vuses.
14784 (vn_reference_lookup_2): Adjust.
14785 (vn_reference_lookup_pieces): Likewise.
14786 (vn_reference_lookup): Likewise.
14788 2014-05-20 Richard Biener <rguenther@suse.de>
14790 * config.gcc: Remove need_64bit_hwint.
14791 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
14792 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
14794 * config.in: Regenerate.
14795 * configure: Likewise.
14797 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
14799 * doc/extend.texi: Create Label Attributes section,
14800 move all label attributes into it and reference it.
14802 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
14804 * arm.c (thumb1_reorg): When scanning backwards skip anything
14805 that's not a proper insn.
14807 2014-05-19 Richard Biener <rguenther@suse.de>
14809 PR tree-optimization/61221
14810 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14811 Do nothing for unreachable blocks.
14812 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
14813 Improve unreachability detection.
14815 2014-05-19 Richard Biener <rguenther@suse.de>
14817 PR tree-optimization/61209
14818 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
14820 2014-05-19 Nick Clifton <nickc@redhat.com>
14822 * except.c (init_eh): Fix computation of builtin setjmp buffer
14823 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
14825 2014-05-19 Richard Biener <rguenther@suse.de>
14827 PR tree-optimization/61184
14828 * tree-vrp.c (is_negative_overflow_infinity): Use
14829 TREE_OVERFLOW_P and do that check first.
14830 (is_positive_overflow_infinity): Likewise.
14831 (is_overflow_infinity): Likewise.
14832 (vrp_operand_equal_p): Properly treat operands with
14833 differing overflow as not equal.
14835 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
14837 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
14838 shift simplification where it was intended.
14840 2014-05-19 Christian Bruel <christian.bruel@st.com>
14843 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
14845 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
14848 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
14851 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
14853 * reg-notes.def (CROSSING_JUMP): Likewise.
14854 * rtl.h (rtx_def): Update comment for jump flag.
14855 (CROSSING_JUMP_P): Define.
14856 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
14857 of a REG_CROSSING_JUMP note.
14858 * cfghooks.c (tidy_fallthru_edges): Likewise.
14859 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
14860 * emit-rtl.c (try_split): Likewise.
14861 * haifa-sched.c (sched_create_recovery_edges): Likewise.
14862 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
14863 * jump.c (redirect_jump_2): Likewise.
14864 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
14865 (relax_delay_slots): Likewise.
14866 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
14867 (bbit_di): Likewise.
14868 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
14869 * config/sh/sh.md (jump_compact): Likewise.
14870 * bb-reorder.c (rotate_loop): Likewise.
14871 (pass_duplicate_computed_gotos::execute): Likewise.
14872 (add_reg_crossing_jump_notes): Rename to...
14873 (update_crossing_jump_flags): ...this.
14874 (pass_partition_blocks::execute): Update accordingly.
14876 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
14878 * tree.h: Remove extraneous template <>.
14880 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14882 * ipa.c (symtab_remove_unreachable_nodes): Remove
14883 symbol from comdat group if its body was eliminated.
14884 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
14885 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
14886 (symtab_unregister_node): ... this one.
14887 (verify_symtab_base): More strict checking of comdats.
14888 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
14890 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14892 * tree-pass.h (make_pass_ipa_comdats): New pass.
14893 * timevar.def (TV_IPA_COMDATS): New timevar.
14894 * passes.def (pass_ipa_comdats): Add.
14895 * Makefile.in (OBJS): Add ipa-comdats.o
14896 * ipa-comdats.c: New file.
14898 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14900 * ipa.c (update_visibility_by_resolution_info): New function.
14901 (function_and_variable_visibility): Use it.
14903 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
14905 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
14907 (FOR_EACH_DEFINED_SYMBOL): New macro.
14908 (varpool_first_static_initializer, varpool_next_static_initializer,
14909 varpool_first_defined_variable, varpool_next_defined_variable):
14911 (symtab_in_same_comdat_p): Correctly deal with inline functions.
14913 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14915 * ggc-page.c (ggc_handle_finalizers): Add comment.
14917 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14919 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
14920 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
14921 (ggc_internal_cleared_alloc): Likewise.
14922 * ggc-page.c (finalizer): New class.
14923 (vec_finalizer): Likewise.
14924 (globals::finalizers): New member.
14925 (globals::vec_finalizers): Likewise.
14926 (ggc_internal_alloc): Record the finalizer if any for the block being
14928 (ggc_handle_finalizers): New function.
14929 (ggc_collect): Call ggc_handle_finalizers.
14930 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
14932 (ggc_internal_cleared_alloc): Likewise.
14933 (finalize): New function.
14934 (need_finalization_p): Likewise.
14935 (ggc_alloc): Install the type's destructor as the finalizer if it
14936 might do something.
14937 (ggc_cleared_alloc): Likewise.
14938 (ggc_vec_alloc): Likewise.
14939 (ggc_cleared_vec_alloc): Likewise.
14941 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14943 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
14945 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
14947 * alias.c (record_alias_subset): Adjust.
14948 * bitmap.c (bitmap_element_allocate): Likewise.
14949 (bitmap_gc_alloc_stat): Likewise.
14950 * cfg.c (init_flow): Likewise.
14951 (alloc_block): Likewise.
14952 (unchecked_make_edge): Likewise.
14953 * cfgloop.c (alloc_loop): Likewise.
14954 (flow_loops_find): Likewise.
14955 (rescan_loop_exit): Likewise.
14956 * cfgrtl.c (init_rtl_bb_info): Likewise.
14957 * cgraph.c (insert_new_cgraph_node_version): Likewise.
14958 (cgraph_allocate_node): Likewise.
14959 (cgraph_create_edge_1): Likewise.
14960 (cgraph_allocate_init_indirect_info): Likewise.
14961 * cgraphclones.c (cgraph_clone_edge): Likewise.
14962 * cgraphunit.c (add_asm_node): Likewise.
14963 (init_lowered_empty_function): Likewise.
14964 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
14965 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
14966 (alpha_use_linkage): Likewise.
14967 * config/arc/arc.c (arc_init_machine_status): Likewise.
14968 * config/arm/arm.c (arm_init_machine_status): Likewise.
14969 * config/avr/avr.c (avr_init_machine_status): Likewise.
14970 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
14971 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
14972 * config/cris/cris.c (cris_init_machine_status): Likewise.
14973 * config/darwin.c (machopic_indirection_name): Likewise.
14974 (darwin_build_constant_cfstring): Likewise.
14975 (darwin_enter_string_into_cfstring_table): Likewise.
14976 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
14977 * config/frv/frv.c (frv_init_machine_status): Likewise.
14978 * config/i386/i386.c (get_dllimport_decl): Likewise.
14979 (ix86_init_machine_status): Likewise.
14980 (assign_386_stack_local): Likewise.
14981 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
14982 (i386_pe_maybe_record_exported_symbol): Likewise.
14983 (i386_pe_record_stub): Likewise.
14984 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
14985 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
14986 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
14987 (m32c_note_pragma_address): Likewise.
14988 * config/mep/mep.c (mep_init_machine_status): Likewise.
14989 (mep_note_pragma_flag): Likewise.
14990 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
14991 (mips16_local_alias): Likewise.
14992 (mips_init_machine_status): Likewise.
14993 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
14994 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
14995 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
14996 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
14997 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
14998 * config/pa/pa.c (pa_init_machine_status): Likewise.
14999 (pa_get_deferred_plabel): Likewise.
15000 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15001 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15002 (rs6000_init_machine_status): Likewise.
15003 (output_toc): Likewise.
15004 * config/s390/s390.c (s390_init_machine_status): Likewise.
15005 * config/score/score.c (score_output_external): Likewise.
15006 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15007 * config/spu/spu.c (spu_init_machine_status): Likewise.
15008 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15009 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15010 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15011 * coverage.c (coverage_end_function): Likewise.
15012 * dbxout.c (dbxout_init): Likewise.
15013 * doc/gty.texi: Don't mention variable_size attribute.
15014 * dwarf2cfi.c (new_cfi): Adjust.
15015 (new_cfi_row): Likewise.
15016 (copy_cfi_row): Likewise.
15017 (create_cie_data): Likewise.
15018 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15019 (new_loc_descr): Likewise.
15020 (find_AT_string_in_table): Likewise.
15021 (add_addr_table_entry): Likewise.
15022 (new_die): Likewise.
15023 (add_var_loc_to_decl): Likewise.
15024 (clone_die): Likewise.
15025 (clone_as_declaration): Likewise.
15026 (break_out_comdat_types): Likewise.
15027 (new_loc_list): Likewise.
15028 (add_loc_descr_to_each): Likewise.
15029 (add_location_or_const_value_attribute): Likewise.
15030 (add_linkage_name): Likewise.
15031 (lookup_filename): Likewise.
15032 (dwarf2out_var_location): Likewise.
15033 (new_line_info_table): Likewise.
15034 (dwarf2out_init): Likewise.
15035 (mem_loc_descriptor): Likewise.
15036 (loc_descriptor): Likewise.
15037 (add_const_value_attribute): Likewise.
15038 (tree_add_const_value_attribute): Likewise.
15039 (comp_dir_string): Likewise.
15040 (dwarf2out_vms_debug_main_pointer): Likewise.
15041 (string_cst_pool_decl): Likewise.
15042 * emit-rtl.c (set_mem_attrs): Likewise.
15043 (get_reg_attrs): Likewise.
15044 (start_sequence): Likewise.
15045 (init_emit): Likewise.
15046 (init_emit_regs): Likewise.
15047 * except.c (init_eh_for_function): Likewise.
15048 (gen_eh_region): Likewise.
15049 (gen_eh_region_catch): Likewise.
15050 (gen_eh_landing_pad): Likewise.
15051 (add_call_site): Likewise.
15052 * function.c (add_frame_space): Likewise.
15053 (insert_temp_slot_address): Likewise.
15054 (assign_stack_temp_for_type): Likewise.
15055 (get_hard_reg_initial_val): Likewise.
15056 (allocate_struct_function): Likewise.
15057 (prepare_function_start): Likewise.
15058 (types_used_by_var_decl_insert): Likewise.
15059 * gengtype.c (variable_size_p): Remove function.
15060 (enum alloc_quantity): Remove enum.
15061 (write_typed_alloc_def): Remove function.
15062 (write_typed_struct_alloc_def): Likewise.
15063 (write_typed_typedef_alloc_def): Likewise.
15064 (write_typed_alloc_defns): Likewise.
15066 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15067 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15068 * ggc.h (ggc_alloc): new function.
15069 (ggc_cleared_alloc): Likewise.
15070 (ggc_vec_alloc): Template on type of vector element, and remove
15071 element size argument.
15072 (ggc_cleared_vec_alloc): Likewise.
15073 * gimple.c (gimple_build_omp_for): Adjust.
15074 (gimple_copy): Likewise.
15075 * ipa-cp.c (get_replacement_map): Likewise.
15076 (find_aggregate_values_for_callers_subset): Likewise.
15077 (known_aggs_to_agg_replacement_list): Likewise.
15078 * ipa-devirt.c (get_odr_type): Likewise.
15079 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15080 (read_agg_replacement_chain): Likewise.
15081 * loop-iv.c (get_simple_loop_desc): Likewise.
15082 * lto-cgraph.c (input_node_opt_summary): Likewise.
15083 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15084 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15085 (input_eh_region): Likewise.
15086 (input_eh_lp): Likewise.
15087 (input_cfg): Likewise.
15088 * optabs.c (set_optab_libfunc): Likewise.
15089 (init_tree_optimization_optabs): Likewise.
15090 (set_conv_libfunc): Likewise.
15091 * passes.c (do_per_function_toporder): Likewise.
15092 * rtl.h: Don't use variable_size gty attribute.
15093 * sese.c (if_region_set_false_region): Adjust.
15094 * stringpool.c (gt_pch_save_stringpool): Likewise.
15095 * target-globals.c (save_target_globals): Likewise.
15096 * toplev.c (general_init): Likewise.
15097 * trans-mem.c (record_tm_replacement): Likewise.
15098 (split_bb_make_tm_edge): Likewise.
15099 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15100 * tree-data-ref.h (lambda_vector_new): Likewise.
15101 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15102 * tree-iterator.c (tsi_link_before): Likewise.
15103 (tsi_link_after): Likewise.
15104 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15105 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15106 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15107 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15108 * tree-ssa.c (init_tree_ssa): Adjust.
15109 * tree-ssanames.c (set_range_info): Likewise.
15110 (get_ptr_info): Likewise.
15111 (duplicate_ssa_name_ptr_info): Likewise.
15112 (duplicate_ssa_name_range_info): Likewise.
15113 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15114 (unpack_ts_fixed_cst_value_fields): Likewise.
15115 * tree.c (build_fixed): Likewise.
15116 (build_real): Likewise.
15117 (build_string): Likewise.
15118 (decl_priority_info): Likewise.
15119 (decl_debug_expr_insert): Likewise.
15120 (decl_value_expr_insert): Likewise.
15121 (decl_debug_args_insert): Likewise.
15122 (type_hash_add): Likewise.
15123 (build_omp_clause): Likewise.
15124 * ubsan.c (decl_for_type_insert): Likewise.
15125 * varasm.c (get_unnamed_section): Likewise.
15126 (get_noswitch_section): Likewise.
15127 (get_section): Likewise.
15128 (get_block_for_section): Likewise.
15129 (create_block_symbol): Likewise.
15130 (build_constant_desc): Likewise.
15131 (create_constant_pool): Likewise.
15132 (force_const_mem): Likewise.
15133 (record_tm_clone_pair): Likewise.
15134 * varpool.c (varpool_create_empty_node): Likewise.
15136 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15138 * dwarf2out.c (tree_add_const_value_attribute): Call
15139 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15140 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15141 instead of ggc_internal_<x>alloc_stat.
15142 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15143 (ggc_realloc): Likewise.
15144 * ggc-none.c (ggc_internal_alloc): Likewise.
15145 (ggc_internal_cleared_alloc): Likewise.
15146 * ggc-page.c: Likewise.
15147 * ggc.h (ggc_internal_alloc_stat): Likewise.
15148 (ggc_internal_alloc): Remove macro.
15149 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15150 (ggc_internal_cleared_alloc): Remove macro.
15151 (GGC_RESIZEVEC): Adjust.
15152 (ggc_resizevar): Remove macro.
15153 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15154 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15155 (ggc_internal_vec_cleared_alloc): Remove macro.
15156 (ggc_alloc_atomic_stat): Drop _stat suffix.
15157 (ggc_alloc_atomic): Remove macro.
15158 (ggc_alloc_cleared_atomic): Remove macro.
15159 (ggc_alloc_string_stat): Drop _stat suffix.
15160 (ggc_alloc_string): Remove macro.
15161 (ggc_alloc_rtx_def_stat): Adjust.
15162 (ggc_alloc_tree_node_stat): Likewise.
15163 (ggc_alloc_cleared_tree_node_stat): Likewise.
15164 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15165 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15166 * gimple.c (gimple_build_omp_for): Likewise.
15167 (gimple_copy): Likewise.
15168 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15169 * toplev.c (realloc_for_line_map): Adjust.
15170 * tree-data-ref.h (lambda_vector_new): Likewise.
15171 * tree-phinodes.c (allocate_phi_node): Likewise.
15172 * tree.c (grow_tree_vec_stat): Likewise.
15173 * vec.h (va_gc::reserve): Adjust.
15175 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15177 * config/microblaze/microblaze.c (break_handler): New Declaration.
15178 (microblaze_break_function_p,microblaze_is_break_handler): New.
15179 (compute_frame_size): Use microblaze_break_function_p.
15180 Add the test of break_handler.
15181 (microblaze_function_prologue) : Add the test of variable
15182 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15183 (microblaze_function_epilogue) : Add the test of break_handler.
15184 (microblaze_globalize_label) : Add the test of break_handler.
15185 Check the name by BREAK_HANDLER_NAME.
15187 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15189 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15190 microblaze_is_break_handler test.
15191 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15192 Use SYMBOL_REF_DECL.
15194 * config/microblaze/microblaze-protos.h
15195 (microblaze_break_function_p,microblaze_is_break_handler):
15198 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15199 new MicroBlaze break_handler functions.
15201 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15203 * doc/extend.texi (Size of an asm): Move node text according
15204 to its @menu entry position.
15206 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15208 PR tree-optimization/61140
15209 PR tree-optimization/61150
15210 PR tree-optimization/61197
15211 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15213 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15215 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15217 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15219 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15220 __SIZEOF_INT128__ is defined.
15222 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15224 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15225 (rs6000_delegitimize_address): Use it.
15227 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15229 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15230 inplace argument. Store the new address in the original MEM when true.
15231 * emit-rtl.c (change_address_1): Likewise.
15232 (adjust_address_1, adjust_automodify_address_1, offset_address):
15233 Update accordingly.
15234 * rtl.h (plus_constant): Add an inplace argument.
15235 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15236 when true. Avoid generating (plus X (const_int 0)).
15237 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15238 in-place. Pass true to plus_constant.
15239 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15241 2014-05-16 Dehao Chen <dehao@google.com>
15243 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15245 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15248 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15250 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15252 2014-05-16 Dehao Chen <dehao@google.com>
15254 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15255 optimize_function_for_size_p.
15256 * regs.h (REG_FREQ_FROM_BB): Likewise.
15258 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15261 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15262 negt_reg_operand cases.
15263 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15265 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15267 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15269 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15272 2014-05-16 David Malcolm <dmalcolm@redhat.com>
15275 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15277 * tree-cfg.c (dump_function_to_file): Dump the return type of
15278 functions, in a line to itself before the function body, mimicking
15279 the layout of a C function.
15281 2014-05-16 Dehao Chen <dehao@google.com>
15283 * cfghooks.c (make_forwarder_block): Use direct computation to
15284 get fall-through edge's count and frequency.
15286 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
15288 * config/arc/arc.c (arc_init): Fix typo in error message.
15289 * config/i386/i386.c (ix86_expand_builtin): Likewise.
15290 (split_stack_prologue_scratch_regno): Likewise.
15291 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
15292 word from error message.
15294 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15296 * ira-costs.c: Fix typo in comment.
15298 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
15300 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
15302 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
15304 * varpool.c (dump_varpool_node): Dump write-only flag.
15305 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
15307 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
15308 write-only variables.
15309 * ipa.c (process_references): New function.
15310 (set_readonly_bit): New function.
15311 (set_writeonly_bit): New function.
15312 (clear_addressable_bit): New function.
15313 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
15314 fix handling of aliases.
15315 * cgraph.h (struct varpool_node): Add writeonly flag.
15317 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
15319 PR rtl-optimization/60969
15320 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
15321 Calculate costs for this case.
15323 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
15325 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
15326 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
15328 2014-05-16 Richard Biener <rguenther@suse.de>
15330 PR tree-optimization/61194
15331 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
15332 bool patterns ending in a COND_EXPR.
15334 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15336 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
15338 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15340 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
15341 where we were unable to cost an RTX.
15343 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15345 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
15348 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15349 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15351 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
15353 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15354 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15356 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
15357 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
15359 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15360 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15362 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
15365 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15366 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15368 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15371 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15372 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15374 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
15375 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
15377 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15378 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15380 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15381 rotates and shifts.
15383 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15384 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15386 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
15387 ZERO_EXTEND and SIGN_EXTEND better.
15389 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15390 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15392 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
15393 logical operations.
15395 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15396 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15398 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
15399 costs when costing loads and stores to memory.
15401 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15402 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
15404 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
15407 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15409 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
15411 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15412 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15414 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
15416 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
15418 (aarch64_rtx_mult_cost): New.
15419 (aarch64_rtx_costs): Use it, refactor as appropriate.
15421 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15422 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15424 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
15425 emit instructions, return number of instructions which would
15427 (aarch64_add_constant): Update call to aarch64_build_constant.
15428 (aarch64_output_mi_thunk): Likewise.
15429 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
15432 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15434 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
15435 (TARGET_RTX_COSTS): Call it.
15437 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15439 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
15440 (cortexa57_vector_cost): Likewise.
15441 (cortexa57_tunings): Use them.
15443 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15445 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
15446 (cpu_addrcost_table): Use it.
15447 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
15448 (aarch64_address_cost): Rewrite using aarch64_classify_address,
15451 2014-05-16 Richard Biener <rguenther@suse.de>
15453 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
15454 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
15455 (visit_phi): Ignore edges marked as not executable.
15456 (class cond_dom_walker): New.
15457 (cond_dom_walker::before_dom_children): Value-number
15458 control statements and mark successor edges as not
15459 executable if possible.
15460 (run_scc_vn): First walk all control statements in
15461 dominator order, marking edges as not executable.
15462 * tree-inline.c (copy_edges_for_bb): Be not confused
15463 about random edge flags.
15465 2014-05-16 Richard Biener <rguenther@suse.de>
15467 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
15469 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
15472 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
15473 (__TM_simple_begin): Use it.
15474 (__TM_begin): Likewise.
15476 2014-05-15 Martin Jambor <mjambor@suse.cz>
15479 * ipa-prop.c (update_indirect_edges_after_inlining): Check
15480 type_preserved flag when the indirect edge is polymorphic.
15482 2014-05-15 Martin Jambor <mjambor@suse.cz>
15484 PR tree-optimization/61090
15485 * tree-sra.c (sra_modify_expr): Pass the current gsi to
15486 build_ref_for_model.
15488 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15490 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
15491 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
15493 2014-05-15 Jakub Jelinek <jakub@redhat.com>
15495 PR tree-optimization/61158
15496 * fold-const.c (fold_binary_loc): If X is zero-extended and
15497 shiftc >= prec, make sure zerobits is all ones instead of
15498 invoking undefined behavior.
15500 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15502 * regcprop.h: New file.
15503 * regcprop.c (skip_debug_insn_p): New decl.
15504 (replace_oldest_value_reg): Check skip_debug_insn_p.
15505 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
15506 * shrink-wrap.c: Include regcprop.h.
15507 (prepare_shrink_wrap): Call
15508 copyprop_hardreg_forward_bb_without_debug_insn.
15510 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15512 * shrink-wrap.h: Update comment.
15513 * shrink-wrap.c: Update comment.
15514 (next_block_for_reg): Rename to live_edge_for_reg.
15515 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
15516 (move_insn_for_shrink_wrap): Split live_edge.
15517 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
15519 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
15521 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
15523 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
15524 * config/sparc/sparc.md (fptype_ut699): New attribute.
15525 (in_branch_delay): Return false if -mfix-ut699 is specified and
15526 fptype_ut699 is set to single.
15527 (truncdfsf2): Add fptype_ut699 attribute.
15528 (fix_truncdfsi2): Likewise.
15529 (floatsisf2): Change fptype attribute.
15530 (fix_truncsfsi2): Likewise.
15531 (negtf2_notv9): Delete.
15532 (negtf2_v9): Likewise.
15533 (negtf2_hq): New instruction.
15534 (negtf2): New instruction and splitter.
15535 (negdf2_notv9): Rewrite.
15536 (abstf2_notv9): Delete.
15537 (abstf2_hq_v9): Likewise.
15538 (abstf2_v9): Likewise.
15539 (abstf2_hq): New instruction.
15540 (abstf2): New instruction and splitter.
15541 (absdf2_notv9): Rewrite.
15543 2014-05-14 Cary Coutant <ccoutant@google.com>
15546 * opts.c (common_handle_option): Don't special-case "-g".
15547 (set_debug_level): Default to at least level 2 with "-g".
15549 2014-05-14 DJ Delorie <dj@redhat.com>
15551 * config/msp430/msp430.c (msp430_builtin): Add
15552 MSP430_BUILTIN_DELAY_CYCLES.
15553 (msp430_init_builtins): Register void __delay_cycles(long long).
15554 (msp430_builtin_decl): Add it.
15555 (cg_magic_constant): New.
15556 (msp430_expand_delay_cycles): New.
15557 (msp430_expand_builtin): Call it.
15558 (msp430_print_operand_raw): Change integer printing from "int" to
15560 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
15561 (delay_cycles_start): New.
15562 (delay_cycles_end): New.
15563 (delay_cycles_32): New.
15564 (delay_cycles_32x): New.
15565 (delay_cycles_16): New.
15566 (delay_cycles_16x): New.
15567 (delay_cycles_2): New.
15568 (delay_cycles_1): New.
15569 * doc/extend.texi: Document __delay_cycles().
15571 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
15573 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
15574 length attribute computation.
15576 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
15579 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
15581 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
15584 * config/sparc/sparc.md: Fix types of low and high in DI constant
15585 splitter. Use gen_int_mode in some other splitters.
15587 2014-05-14 Martin Jambor <mjambor@suse.cz>
15590 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
15592 2014-05-14 James Norris <jnorris@codesourcery.com>
15594 * omp-low.c (expand_parallel_call): Remove shadow variable.
15595 (expand_omp_taskreg): Likewise.
15597 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
15599 * common/config/i386/i386-common.c
15600 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
15601 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
15602 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
15603 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
15604 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
15605 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
15606 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
15607 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
15608 xsavecintrin.h, xsavesintrin.h.
15609 (x86_64-*-*): Ditto.
15610 * config/i386/clflushoptintrin.h: New.
15611 * config/i386/xsavecintrin.h: Ditto.
15612 * config/i386/xsavesintrin.h: Ditto.
15613 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
15614 (bit_XSAVES): Ditto.
15615 (bit_XSAVES): Ditto.
15616 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
15617 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
15619 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15620 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
15621 OPTION_MASK_ISA_XSAVES.
15622 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
15623 -mxsavec, -mxsaves.
15624 (PTA_CLFLUSHOPT) Define.
15625 (PTA_XSAVEC): Ditto.
15626 (PTA_XSAVES): Ditto.
15627 (ix86_option_override_internal): Handle new options.
15628 (ix86_valid_target_attribute_inner_p): Ditto.
15629 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
15630 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
15631 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
15632 (bdesc_special_args): Add __builtin_ia32_xsaves,
15633 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
15634 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
15635 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
15636 (ix86_expand_builtin): Handle new builtins.
15637 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
15638 (TARGET_CLFLUSHOPT_P): Ditto.
15639 (TARGET_XSAVEC): Ditto.
15640 (TARGET_XSAVEC_P): Ditto.
15641 (TARGET_XSAVES): Ditto.
15642 (TARGET_XSAVES_P): Ditto.
15643 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
15644 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
15645 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
15647 (ANY_XRSTOR64): Ditto.
15649 (xrstor): Change into <xrstor>.
15650 (xrstor_rex64): Change into <xrstor>_rex64.
15651 (xrstor64): Change into <xrstor>64
15653 * config/i386/i386.opt (mclflushopt): New.
15656 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
15658 * doc/invoke.texi: Document new options.
15660 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
15662 PR rtl-optimization/60866
15663 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
15664 Default it to -1. Pass it down to init_simplejump_data.
15665 (init_simplejump_data): New parameter old_seqno. Pass it down
15666 to get_seqno_for_a_jump.
15667 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
15668 initializing new jump seqno as a last resort. Add comment.
15669 (sel_redirect_edge_and_branch): Save old seqno of the conditional
15670 jump and pass it down to sel_init_new_insn.
15671 (sel_redirect_edge_and_branch_force): Likewise.
15673 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
15675 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
15676 shifted values to avoid build warning.
15678 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
15680 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
15681 * cfgrtl.c (rtl_merge_blocks): Fix comment.
15682 (cfg_layout_merge_blocks): Likewise.
15683 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
15685 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
15687 PR rtl-optimization/60901
15688 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
15689 bb predecessor belongs to the same scheduling region. Adjust comment.
15691 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
15693 * doc/sourcebuild.texi: (dfp_hw): Document.
15694 (p8vector_hw): Likewise.
15695 (powerpc_eabi_ok): Likewise.
15696 (powerpc_elfv2): Likewise.
15697 (powerpc_htm_ok): Likewise.
15698 (ppc_recip_hw): Likewise.
15699 (vsx_hw): Likewise.
15701 2014-05-13 Cary Coutant <ccoutant@google.com>
15703 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
15705 2014-05-13 David Malcolm <dmalcolm@redhat.com>
15707 * gengtype-parse.c (require3): Eliminate in favor of...
15709 (require_template_declaration): Update to support optional single *
15712 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
15713 (create_user_defined_type): Handle a single level of explicit
15714 pointerness within template arguments.
15715 (struct write_types_data): Add field "kind".
15716 (filter_type_name): Handle "*" character.
15717 (write_user_func_for_structure_ptr): Require a write_types_data
15718 rather than just a prefix string, so that we can look up the kind
15719 of the wtd and use it as an index into wrote_user_func_for_ptr,
15720 ensuring that such functions are written at most once. Support
15721 subclasses by invoking the marking function of the ultimate base class.
15722 (write_user_func_for_structure_body): Require a write_types_data
15723 rather than just a prefix string, so that we can pass this to
15724 write_user_func_for_structure_ptr.
15725 (write_func_for_structure): Likewise.
15726 (ggc_wtd): Add initializer of new "kind" field.
15727 (pch_wtd): Likewise.
15729 * gengtype.h (enum write_types_kinds): New.
15730 (struct type): Add field wrote_user_func_for_ptr to the "s"
15733 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
15735 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
15736 instead of const_binop.
15737 (fold_binary_loc): Likewise.
15739 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
15741 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
15742 calculation to match get_ref_base_and_extent.
15744 2014-05-13 Catherine Moore <clm@codesourcery.com>
15745 Sandra Loosemore <sandra@codesourcery.com>
15747 * configure.ac: Fix assembly for explicit JALR relocation check.
15748 * configure: Regenerate.
15750 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15752 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
15753 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
15754 Remove associated type declarations and initialisations.
15755 (arm_expand_neon_builtin): Likewise.
15756 (neon_emit_pair_result_insn): Delete.
15757 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
15758 * config/arm/neon.md (neon_vtrn<mode>): Delete.
15759 (neon_vzip<mode>): Likewise.
15760 (neon_vuzp<mode>): Likewise.
15762 2014-05-13 Richard Biener <rguenther@suse.de>
15765 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
15766 it needs revisiting whether the call still may be tail-called.
15768 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15770 * rtl.def (SYMBOL_REF): Remove middle "0" field.
15771 * rtl.h (block_symbol): Reduce number of fields to 2.
15772 (rtx_def): Add u2.symbol_ref_flags.
15773 (SYMBOL_REF_FLAGS): Use it.
15774 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
15775 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
15776 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
15777 Lower index of SYMBOL_REF_DATA.
15778 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
15779 Print SYMBOL_REF_FLAGS at the same time.
15780 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
15782 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15784 * rtl.def (VAR_LOCATION): Remove "i" field.
15785 * rtl.h (rtx_def): Add u2.var_location_status.
15786 (PAT_VAR_LOCATION_STATUS): Use it.
15787 (gen_rtx_VAR_LOCATION): Declare.
15788 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
15789 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
15790 * var-tracking.c (emit_note_insn_var_location): Remove casts.
15792 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15794 * rtl.def (scratch): Fix outdated comment and remove "0" field.
15795 * gengtype.c (adjust_field_rtx_def): Update accordingly.
15797 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15799 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
15800 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
15801 * rtl.h (rtx_def): Add insn_uid to u2 field.
15802 (RTX_FLAG_CHECK8): Delete in favor of...
15803 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
15804 (INSN_DELETED_P): Update accordingly.
15805 (INSN_UID): Use u2.insn_uid.
15806 (INSN_CHAIN_CODE_P): Define.
15807 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
15808 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
15809 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
15810 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
15811 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
15812 indices accordingly.
15813 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
15814 Update indices for insn-chain rtxes.
15815 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
15816 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
15817 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
15818 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
15819 * combine.c (try_combine): Likewise.
15820 * ira.c (setup_prohibited_mode_move_regs): Likewise.
15822 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15824 * rtl.def (REG): Remove middle field.
15825 * rtl.h (rtx_def): Add orignal_regno to u2.
15826 (ORIGINAL_REGNO): Use it instead of field 1.
15827 (REG_ATTRS): Lower field index accordingly.
15828 * gengtype.c (adjust_field_rtx_def): Remove handling of
15829 ORIGINAL_REGNO. Move REG_ATTRS index down.
15830 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
15831 code that prints the REGNO.
15833 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15835 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
15838 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
15840 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
15842 2014-05-13 Bin Cheng <bin.cheng@arm.com>
15844 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
15845 (alloc_iv): Lower base expressions containing ADDR_EXPR.
15847 2014-05-13 Ian Bolton <ian.bolton@arm.com>
15849 * config/aarch64/aarch64-protos.h
15850 (aarch64_hard_regno_caller_save_mode): New prototype.
15851 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
15853 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
15855 2014-05-13 Christian Bruel <christian.bruel@st.com>
15857 * target.def (mode_switching): New hook vector.
15858 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
15859 (mode_exit, modepriority_to_mode): Likewise.
15860 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
15861 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15862 * target.h: Include tm.h and hard-reg-set.h.
15863 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
15864 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
15865 * doc/tm.texi Regenerate.
15866 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
15867 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15868 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
15869 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
15870 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
15871 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15872 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
15873 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
15874 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
15875 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
15876 (ix86_emit_mode_set): Hookify.
15877 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
15879 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
15880 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
15881 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
15882 (epiphany_mode_priority_to_mode): Remove declaration.
15883 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
15884 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
15885 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
15887 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
15888 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
15889 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
15891 2014-05-13 Jakub Jelinek <jakub@redhat.com>
15894 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
15895 is const0_rtx, return immediately. Don't test count == 0 when
15898 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15900 * Makefile.in: add shrink-wrap.o.
15901 * config/i386/i386.c: include "shrink-wrap.h"
15902 * function.c: Likewise.
15903 (requires_stack_frame_p, next_block_for_reg,
15904 move_insn_for_shrink_wrap, prepare_shrink_wrap,
15905 dup_block_and_redirect): Move to shrink-wrap.c
15906 (thread_prologue_and_epilogue_insns): Extract three code segments
15907 as functions in shrink-wrap.c
15908 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
15910 * shrink-wrap.c: New file.
15911 * shrink-wrap.h: New file.
15913 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
15915 * doc/extend.texi: Reflect current numbers of pragmas. Remove
15916 reference to Solaris.
15918 2014-05-12 Mike Stump <mikestump@comcast.net>
15921 * genattrtab.c (filename): Add.
15922 (convert_set_attr_alternative): Improve error message.
15923 (check_defs): Restore read_md_filename for error messages.
15924 (gen_insn): Save filename.
15926 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
15928 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
15929 -fno-local-ivars and -fivar-visibility.
15930 * c-family/c.opt: Make -Wshadow also implicitly enable
15933 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
15935 * doc/tm.texi: Remove reference to deleted macro.
15936 * doc/tm.texi.in: Likewise.
15938 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15941 * config/avr/avr.c (avr_out_store_psi): Use correct constant
15944 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
15947 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
15948 * config/arm/aout.h (License): Same.
15949 * config/arm/bpabi.h (License): Same.
15950 * config/arm/elf.h (License): Same.
15951 * config/arm/linux-elf.h (License): Same.
15952 * config/arm/linux-gas.h (License): Same.
15953 * config/arm/netbsd-elf.h (License): Same.
15954 * config/arm/uclinux-eabi.h (License): Same.
15955 * config/arm/uclinux-elf.h (License): Same.
15956 * config/arm/vxworks.h (License): Same.
15958 2014-05-11 Jakub Jelinek <jakub@redhat.com>
15960 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
15961 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
15962 number of operands to 3.
15963 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
15964 * tree-nested.c (convert_nonlocal_omp_clauses,
15965 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
15966 * gimplify.c (gimplify_scan_omp_clauses): Handle
15967 OMP_CLAUSE_LINEAR_STMT.
15968 * omp-low.c (lower_rec_input_clauses): Fix typo.
15969 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
15970 cast between Fortran boolean_type_node and C _Bool if
15973 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
15975 PR tree-optimization/61136
15976 * wide-int.h (multiple_of_p): Define a version that doesn't return
15978 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
15979 integer_zerop/const_binop pair.
15980 (multiple_of_p): Likewise, converting both operands to widest_int
15983 2014-05-09 Teresa Johnson <tejohnson@google.com>
15985 * cgraphunit.c (analyze_functions): Use correct dump file.
15987 2014-05-09 Florian Weimer <fweimer@redhat.com>
15989 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
15991 (stack_protect_return_slot_p): New function.
15992 (expand_used_vars): Call stack_protect_decl_p and
15993 stack_protect_return_slot_p for -fstack-protector-strong.
15995 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
15996 Andrew Haley <aph@redhat.com>
15997 Richard Sandiford <rdsandiford@googlemail.com>
15999 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16002 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16004 PR middle-end/61111
16005 * fold-const.c (fold_binary_loc): Changed width of mask.
16007 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16009 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16010 unsigned int initializers for regno_in, regno_out.
16012 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16015 * config/avr/avr.md (cc): Add new attribute set_vzn.
16016 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16017 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16018 with INC, DEC or NEG.
16019 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16020 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16021 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16023 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16026 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16028 * wide-int.cc (UTItype): Define.
16029 (UDWtype): Define for appropriate W_TYPE_SIZE.
16031 2014-05-09 Richard Biener <rguenther@suse.de>
16033 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16034 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16035 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16036 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16037 ssa_propagate): Adjust.
16039 2014-05-08 Jeff Law <law@redhat.com>
16041 PR tree-optimization/61009
16042 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16043 tri-state rather than a boolean. When a block is too big to
16044 thread through, inform caller via negative return value.
16045 (thread_across_edge): If a block was too big for normal threading,
16046 then it's too big for a joiner too, so remove temporary equivalences
16047 and return immediately.
16049 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16050 Matthias Klose <doko@ubuntu.com>
16053 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16055 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16058 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16060 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16063 * config/alpha/alpha.c: Include gimple-iterator.h.
16064 (alpha_gimple_fold_builtin): New function. Move
16065 ALPHA_BUILTIN_UMULH folding from ...
16066 (alpha_fold_builtin): ... here.
16067 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16069 2014-05-08 Wei Mi <wmi@google.com>
16072 * config/i386/i386.c (ix86_compute_frame_layout): Update
16073 preferred_stack_boundary for call, expanded from tls descriptor.
16074 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16075 to depend on SP register.
16076 (*tls_local_dynamic_base_32_gnu): Ditto.
16077 (*tls_local_dynamic_32_once): Ditto.
16078 (tls_global_dynamic_64_<mode>): Set
16079 ix86_tls_descriptor_calls_expanded_in_cfun.
16080 (tls_local_dynamic_base_64_<mode>): Ditto.
16081 (tls_global_dynamic_32): Set
16082 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16083 to depend on SP register.
16084 (tls_local_dynamic_base_32): Ditto.
16086 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16088 * config/arm/arm_neon.h: Update comment.
16089 * config/arm/neon-docgen.ml: Delete.
16090 * config/arm/neon-gen.ml: Delete.
16091 * doc/arm-neon-intrinsics.texi: Update comment.
16093 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16095 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16097 (vand, vorr, veor, vorn, vbic): Remove.
16098 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16100 (neon_vsub_unspec): Likewise.
16101 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16103 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16105 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16106 (vadd_s16): Likewise.
16107 (vadd_s32): Likewise.
16108 (vadd_f32): Likewise.
16109 (vadd_u8): Likewise.
16110 (vadd_u16): Likewise.
16111 (vadd_u32): Likewise.
16112 (vadd_s64): Likewise.
16113 (vadd_u64): Likewise.
16114 (vaddq_s8): Likewise.
16115 (vaddq_s16): Likewise.
16116 (vaddq_s32): Likewise.
16117 (vaddq_s64): Likewise.
16118 (vaddq_f32): Likewise.
16119 (vaddq_u8): Likewise.
16120 (vaddq_u16): Likewise.
16121 (vaddq_u32): Likewise.
16122 (vaddq_u64): Likewise.
16123 (vmul_s8): Likewise.
16124 (vmul_s16): Likewise.
16125 (vmul_s32): Likewise.
16126 (vmul_f32): Likewise.
16127 (vmul_u8): Likewise.
16128 (vmul_u16): Likewise.
16129 (vmul_u32): Likewise.
16130 (vmul_p8): Likewise.
16131 (vmulq_s8): Likewise.
16132 (vmulq_s16): Likewise.
16133 (vmulq_s32): Likewise.
16134 (vmulq_f32): Likewise.
16135 (vmulq_u8): Likewise.
16136 (vmulq_u16): Likewise.
16137 (vmulq_u32): Likewise.
16138 (vsub_s8): Likewise.
16139 (vsub_s16): Likewise.
16140 (vsub_s32): Likewise.
16141 (vsub_f32): Likewise.
16142 (vsub_u8): Likewise.
16143 (vsub_u16): Likewise.
16144 (vsub_u32): Likewise.
16145 (vsub_s64): Likewise.
16146 (vsub_u64): Likewise.
16147 (vsubq_s8): Likewise.
16148 (vsubq_s16): Likewise.
16149 (vsubq_s32): Likewise.
16150 (vsubq_s64): Likewise.
16151 (vsubq_f32): Likewise.
16152 (vsubq_u8): Likewise.
16153 (vsubq_u16): Likewise.
16154 (vsubq_u32): Likewise.
16155 (vsubq_u64): Likewise.
16156 (vand_s8): Likewise.
16157 (vand_s16): Likewise.
16158 (vand_s32): Likewise.
16159 (vand_u8): Likewise.
16160 (vand_u16): Likewise.
16161 (vand_u32): Likewise.
16162 (vand_s64): Likewise.
16163 (vand_u64): Likewise.
16164 (vandq_s8): Likewise.
16165 (vandq_s16): Likewise.
16166 (vandq_s32): Likewise.
16167 (vandq_s64): Likewise.
16168 (vandq_u8): Likewise.
16169 (vandq_u16): Likewise.
16170 (vandq_u32): Likewise.
16171 (vandq_u64): Likewise.
16172 (vorr_s8): Likewise.
16173 (vorr_s16): Likewise.
16174 (vorr_s32): Likewise.
16175 (vorr_u8): Likewise.
16176 (vorr_u16): Likewise.
16177 (vorr_u32): Likewise.
16178 (vorr_s64): Likewise.
16179 (vorr_u64): Likewise.
16180 (vorrq_s8): Likewise.
16181 (vorrq_s16): Likewise.
16182 (vorrq_s32): Likewise.
16183 (vorrq_s64): Likewise.
16184 (vorrq_u8): Likewise.
16185 (vorrq_u16): Likewise.
16186 (vorrq_u32): Likewise.
16187 (vorrq_u64): Likewise.
16188 (veor_s8): Likewise.
16189 (veor_s16): Likewise.
16190 (veor_s32): Likewise.
16191 (veor_u8): Likewise.
16192 (veor_u16): Likewise.
16193 (veor_u32): Likewise.
16194 (veor_s64): Likewise.
16195 (veor_u64): Likewise.
16196 (veorq_s8): Likewise.
16197 (veorq_s16): Likewise.
16198 (veorq_s32): Likewise.
16199 (veorq_s64): Likewise.
16200 (veorq_u8): Likewise.
16201 (veorq_u16): Likewise.
16202 (veorq_u32): Likewise.
16203 (veorq_u64): Likewise.
16204 (vbic_s8): Likewise.
16205 (vbic_s16): Likewise.
16206 (vbic_s32): Likewise.
16207 (vbic_u8): Likewise.
16208 (vbic_u16): Likewise.
16209 (vbic_u32): Likewise.
16210 (vbic_s64): Likewise.
16211 (vbic_u64): Likewise.
16212 (vbicq_s8): Likewise.
16213 (vbicq_s16): Likewise.
16214 (vbicq_s32): Likewise.
16215 (vbicq_s64): Likewise.
16216 (vbicq_u8): Likewise.
16217 (vbicq_u16): Likewise.
16218 (vbicq_u32): Likewise.
16219 (vbicq_u64): Likewise.
16220 (vorn_s8): Likewise.
16221 (vorn_s16): Likewise.
16222 (vorn_s32): Likewise.
16223 (vorn_u8): Likewise.
16224 (vorn_u16): Likewise.
16225 (vorn_u32): Likewise.
16226 (vorn_s64): Likewise.
16227 (vorn_u64): Likewise.
16228 (vornq_s8): Likewise.
16229 (vornq_s16): Likewise.
16230 (vornq_s32): Likewise.
16231 (vornq_s64): Likewise.
16232 (vornq_u8): Likewise.
16233 (vornq_u16): Likewise.
16234 (vornq_u32): Likewise.
16235 (vornq_u64): Likewise.
16237 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16239 * wide-int.cc (UTItype): Define.
16240 (UDWtype): Define for appropriate W_TYPE_SIZE.
16242 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16244 PR tree-optimization/59100
16245 * tree-ssa-phiopt.c: Include tree-inline.h.
16246 (neutral_element_p, absorbing_element_p): New functions.
16247 (value_replacement): Handle conditional binary operations with a
16248 neutral or absorbing element.
16250 2014-05-08 Richard Biener <rguenther@suse.de>
16252 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16253 folding the expression.
16254 (valueize_expr): Remove.
16255 (visit_reference_op_load): Do not valueize the result of
16257 (simplify_binary_expression): Likewise.
16258 (simplify_unary_expression): Likewise.
16260 2014-05-08 Richard Biener <rguenther@suse.de>
16262 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16263 looking at TYPE_ARG_TYPES.
16265 2014-05-08 Richard Biener <rguenther@suse.de>
16267 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16268 pointer propagation special-case.
16270 2014-05-08 Bin Cheng <bin.cheng@arm.com>
16272 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16273 core part of address expressions.
16275 2014-05-08 Alan Modra <amodra@gmail.com>
16278 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16279 loads and stores when -mno-strict-align at any alignment.
16280 (expand_block_clear): Similarly. Also correct calculation of
16283 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16285 PR middle-end/39246
16286 * tree-complex.c (expand_complex_move): Keep line info when expanding
16288 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16289 of complex expression. Use new argument to display correct location
16290 for values coming from phi statement.
16291 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
16292 (warn_uninitialized_phi): Pass location of phi argument to
16294 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
16295 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
16297 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16299 * config/rs6000/predicates.md (indexed_address_mem): New.
16300 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
16301 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
16302 fpstore_ux, fpstore_u.
16303 (sign_extend, indexed, update): New.
16304 (cell_micro): Adjust.
16305 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
16306 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
16307 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
16308 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
16309 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
16310 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
16311 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
16312 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
16313 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
16314 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
16315 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
16316 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
16317 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
16318 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
16319 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
16321 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
16322 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
16323 *vsx_extract_<mode>_store): Adjust.
16324 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
16325 is_cracked_insn, insn_must_be_first_in_group,
16326 insn_must_be_last_in_group): Adjust.
16328 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
16330 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
16331 ppc440-fpstore): Adjust.
16332 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
16333 ppc476-fpstore): Adjust.
16334 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
16335 ppc601-fpstore): Adjust.
16336 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
16338 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
16340 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
16341 ppc7450-fpstore): Adjust.
16342 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
16343 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
16344 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
16346 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
16347 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
16348 cell-fpstore, cell-fpstore-update): Adjust.
16349 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
16350 ppce300c3_store, ppce300c3_fpstore): Adjust.
16351 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
16352 e500mc_fpstore): Adjust.
16353 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
16354 e500mc64_store, e500mc64_fpstore): Adjust.
16355 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
16356 e5500_fpstore): Adjust.
16357 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
16358 e6500_fpstore): Adjust.
16359 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
16361 * config/rs6000/power4.md (power4-load, power4-load-ext,
16362 power4-load-ext-update, power4-load-ext-update-indexed,
16363 power4-load-update-indexed, power4-load-update, power4-fpload,
16364 power4-fpload-update, power4-store, power4-store-update,
16365 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
16367 * config/rs6000/power5.md (power5-load, power5-load-ext,
16368 power5-load-ext-update, power5-load-ext-update-indexed,
16369 power5-load-update-indexed, power5-load-update, power5-fpload,
16370 power5-fpload-update, power5-store, power5-store-update,
16371 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
16373 * config/rs6000/power6.md (power6-load, power6-load-ext,
16374 power6-load-update, power6-load-update-indexed,
16375 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
16376 power6-fpload-update, power6-store, power6-store-update,
16377 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
16379 * config/rs6000/power7.md (power7-load, power7-load-ext,
16380 power7-load-update, power7-load-update-indexed,
16381 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
16382 power7-fpload-update, power7-store, power7-store-update,
16383 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
16385 * config/rs6000/power8.md (power8-load, power8-load-update,
16386 power8-load-ext, power8-load-ext-update, power8-fpload,
16387 power8-fpload-update, power8-store, power8-store-update-indexed,
16388 power8-fpstore, power8-fpstore-update): Adjust.
16389 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
16391 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
16392 titan_lsu_store, titan_lsu_fpstore): Adjust.
16393 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
16395 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16398 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
16399 unrolled byte insns. Emit address increments after move insns.
16401 2014-05-07 David Malcolm <dmalcolm@redhat.com>
16403 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
16404 const_gimple, rather than a gimple.
16405 (gimple_call_builtin_p): Likewise, for the three variants.
16407 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
16408 (gimple_call_builtin_p): Likewise, for the three variants.
16410 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16412 PR tree-optimization/61095
16413 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
16415 2014-05-07 Richard Biener <rguenther@suse.de>
16417 PR tree-optimization/61034
16418 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
16419 (maybe_skip_until): Use translate to take into account
16420 lattices when trying to do disambiguations.
16421 (get_continuation_for_phi_1): Likewise.
16422 (get_continuation_for_phi): Adjust for added translate arguments.
16423 (walk_non_aliased_vuses): Likewise.
16424 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
16425 (walk_non_aliased_vuses): Likewise.
16426 (call_may_clobber_ref_p_1): Declare.
16427 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
16428 calls. Stop early if we are only supposed to disambiguate.
16429 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
16431 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
16433 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
16434 Emit an error when the function has arguments.
16436 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16438 * cfgloop.h (unswitch_loops): Remove.
16439 * doc/passes.texi: Remove references to loop-unswitch.c
16440 * timevar.def (TV_LOOP_UNSWITCH): Remove.
16442 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
16444 * tree-vect-data-refs.c (vect_grouped_load_supported): New
16445 check for loads group of length 3.
16446 (vect_permute_load_chain): New permutations for loads group of
16448 * tree-vect-stmts.c (vect_model_load_cost): Change cost
16449 of vec_perm_shuffle for the new permutations.
16451 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
16453 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
16454 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
16455 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
16456 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
16457 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
16458 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
16459 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
16460 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
16462 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16464 * loop-unswitch.c: Delete.
16466 2014-05-07 Richard Biener <rguenther@suse.de>
16468 * config.gcc: Always set need_64bit_hwint to yes.
16470 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
16472 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
16473 of using optimize_size.
16475 2014-05-06 Mike Stump <mikestump@comcast.net>
16477 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
16479 2014-05-06 Joseph Myers <joseph@codesourcery.com>
16481 * config/i386/sse.md (*mov<mode>_internal)
16482 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
16483 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
16484 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
16485 (*<code><mode>3, *andnot<mode>3<mask_name>)
16486 (<mask_codefor><code><mode>3<mask_name>): Only consider
16487 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
16489 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16492 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
16494 * lra-constraints.c (valid_address_p): Move earlier in file.
16495 Add a constraint argument to the address_info version.
16496 (satisfies_memory_constraint_p): New function.
16497 (satisfies_address_constraint_p): Likewise.
16498 (process_alt_operands, curr_insn_transform): Use them.
16499 (process_address): Pass the constraint to valid_address_p when
16500 checking address operands.
16502 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
16504 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
16505 to their respective blocks. Fix inadvertent use of "node".
16507 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16509 * emit-rtl.c (init_derived_machine_modes): New functionm, split
16511 (init_emit_once): ...here.
16512 * rtl.h (init_derived_machine_modes): Declare.
16513 * toplev.c (do_compile): Call it even if no_backend.
16515 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
16516 Mike Stump <mikestump@comcast.net>
16517 Richard Sandiford <rdsandiford@googlemail.com>
16518 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16520 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
16521 (rtx_equal_for_memref_p): Update comment.
16522 (adjust_offset_for_component_ref): Use wide-int interfaces.
16523 * builtins.c (get_object_alignment_2): Likewise.
16524 (c_readstr): Likewise.
16525 (target_char_cast): Add comment.
16526 (determine_block_size): Use wide-int interfaces.
16527 (expand_builtin_signbit): Likewise.
16528 (fold_builtin_int_roundingfn): Likewise.
16529 (fold_builtin_bitop): Likewise.
16530 (fold_builtin_bswap): Likewise.
16531 (fold_builtin_logarithm): Use signop.
16532 (fold_builtin_pow): Likewise.
16533 (fold_builtin_memory_op): Use wide-int interfaces.
16534 (fold_builtin_object_size): Likewise.
16535 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
16536 nb_iterations_estimate.
16537 (record_niter_bound): Use wide-int interfaces.
16538 (get_estimated_loop_iterations_int): Likewise.
16539 (get_estimated_loop_iterations): Likewise.
16540 (get_max_loop_iterations): Likewise.
16541 * cfgloop.h: Include wide-int.h.
16542 (struct nb_iter_bound): Change bound to widest_int.
16543 (struct loop): Change nb_iterations_upper_bound and
16544 nb_iterations_estimate to widest_int.
16545 (record_niter_bound): Switch to use widest_int.
16546 (get_estimated_loop_iterations): Likewise.
16547 (get_max_loop_iterations): Likewise.
16548 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
16549 update for wide-int.
16550 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
16551 * combine.c (try_combine): Likewise.
16552 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
16553 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
16555 (aarch64_float_const_representable_p): Likewise.
16556 * config/arc/arc.c: Include wide-int.h.
16557 (arc_can_use_doloop_p): Use wide-int interfaces.
16558 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
16559 (vfp3_const_double_index): Likewise.
16560 * config/avr/avr.c (avr_out_round): Likewise.
16561 (avr_fold_builtin): Likewise.
16562 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
16563 (bfin_can_use_doloop_p): Likewise.
16564 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
16565 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
16566 * config/i386/i386.c: Include wide-int.h.
16567 (ix86_data_alignment): Use wide-int interfaces.
16568 (ix86_local_alignment): Likewise.
16569 (ix86_emit_swsqrtsf): Update real_from_integer.
16570 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
16571 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
16572 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
16573 (zero_constant): Likewise.
16574 (input_operand): Likewise.
16575 (splat_input_operand): Likewise.
16576 (non_logical_cint_operand): Change const_double to const_wide_int.
16577 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
16578 (easy_altivec_constant): Remove comment.
16579 (paired_expand_vector_init): Use CONSTANT_P.
16580 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
16581 (rs6000_emit_move): Update checks.
16582 (rs6000_aggregate_candidate): Use wide-int interfaces.
16583 (rs6000_expand_ternop_builtin): Likewise.
16584 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
16585 (rs6000_assemble_integer): Likewise.
16586 (rs6000_hash_constant): Likewise.
16587 (output_toc): Likewise.
16588 (rs6000_rtx_costs): Likewise.
16589 (rs6000_emit_swrsqrt); Update call to real_from_integer.
16590 * config/rs6000/rs6000-c.c: Include wide-int.h.
16591 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
16592 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
16593 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
16594 Handle CONST_WIDE_INT.
16595 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
16596 Use tree_fits_uhwi_p.
16597 * config/sparc/sparc.c: Include wide-int.h.
16598 (sparc_fold_builtin): Use wide-int interfaces.
16599 * config/vax/vax.c: Include wide-int.h.
16600 (vax_float_literal): Use real_from_integer.
16601 * coretypes.h (struct hwivec_def): New.
16603 (const_hwivec): New.
16604 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
16605 (equiv_constant): Handle CONST_WIDE_INT.
16606 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
16607 (cselib_hash_rtx): Handle CONST_WIDE_INT.
16608 * dbxout.c (stabstr_U): Use wide-int interfaces.
16609 (dbxout_type): Update to use cst_fits_shwi_p.
16610 * defaults.h (LOG2_BITS_PER_UNIT): Define.
16611 (TARGET_SUPPORTS_WIDE_INT): Add default.
16612 * dfp.c: Include wide-int.h.
16613 (decimal_real_to_integer2): Use wide-int interfaces and rename to
16614 decimal_real_to_integer.
16615 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
16616 decimal_real_to_integer.
16617 * doc/generic.texi (Constant expressions): Update for wide_int.
16618 * doc/rtl.texi (const_double): Likewise.
16619 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
16620 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
16621 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
16622 (REAL_VALUE_FROM_INT): Remove.
16623 (TARGET_SUPPORTS_WIDE_INT): New.
16624 * doc/tm.texi: Regenerate.
16625 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
16626 * double-int.h: Include wide-int.h.
16627 (struct wi::int_traits): New.
16628 * dwarf2out.c (get_full_len): New.
16629 (dw_val_equal_p): Add case dw_val_class_wide_int.
16630 (size_of_loc_descr): Likewise.
16631 (output_loc_operands): Likewise.
16632 (insert_double): Remove.
16633 (insert_wide_int): New.
16634 (add_AT_wide): New.
16635 (print_die): Add case dw_val_class_wide_int.
16636 (attr_checksum): Likewise.
16637 (attr_checksum_ordered): Likewise.
16638 (same_dw_val_p): Likewise.
16639 (size_of_die): Likewise.
16640 (value_format): Likewise.
16641 (output_die): Likewise.
16642 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
16644 (clz_loc_descriptor): Use wide-int interfaces.
16645 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
16646 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
16647 (round_up_to_align): Use wide-int interfaces.
16648 (field_byte_offset): Likewise.
16649 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
16650 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
16651 CONST_DOUBLE handling. Use wide-int interfaces.
16652 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
16653 (gen_enumeration_type_die): Use add_AT_wide.
16654 (hash_loc_operands): Add case dw_val_class_wide_int.
16655 (compare_loc_operands): Likewise.
16656 * dwarf2out.h: Include wide-int.h.
16657 (wide_int_ptr): New.
16658 (enum dw_val_class): Add dw_val_class_wide_int.
16659 (struct dw_val_struct): Add val_wide.
16660 * emit-rtl.c (const_wide_int_htab): New.
16661 (const_wide_int_htab_hash): New.
16662 (const_wide_int_htab_eq): New.
16663 (lookup_const_wide_int): New.
16664 (const_double_htab_hash): Use wide-int interfaces.
16665 (const_double_htab_eq): Likewise.
16666 (rtx_to_double_int): Conditionally compile for wide-int.
16667 (immed_double_int_const): Rename to immed_wide_int_const and
16668 update for wide-int.
16669 (immed_double_const): Conditionally compile for wide-int.
16670 (init_emit_once): Use wide-int interfaces.
16671 * explow.c (plus_constant): Likewise.
16672 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
16673 (lshift_value): Use wide-int interfaces.
16674 (expand_mult): Likewise.
16675 (choose_multiplier): Likewise.
16676 (expand_smod_pow2): Likewise.
16677 (make_tree): Likewise.
16678 * expr.c (convert_modes): Consolidate handling of constants.
16679 Use wide-int interfaces.
16680 (emit_group_load_1): Add note.
16681 (store_expr): Update comment.
16682 (get_inner_reference): Use wide-int interfaces.
16683 (expand_constructor): Update comment.
16684 (expand_expr_real_2): Use wide-int interfaces.
16685 (expand_expr_real_1): Likewise.
16686 (reduce_to_bit_field_precision): Likewise.
16687 (const_vector_from_tree): Likewise.
16688 * final.c: Include wide-int-print.h.
16689 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
16690 * fixed-value.c: Include wide-int.h.
16691 (fixed_from_string): Use wide-int interfaces.
16692 (fixed_to_decimal): Likewise.
16693 (fixed_convert_from_real): Likewise.
16694 (real_convert_from_fixed): Likewise.
16695 * fold-const.h (mem_ref_offset): Return an offset_int.
16696 (div_if_zero_remainder): Remove code parameter.
16697 * fold-const.c (div_if_zero_remainder): Remove code parameter.
16698 Use wide-int interfaces.
16699 (may_negate_without_overflow_p): Use wide-int interfaces.
16700 (negate_expr_p): Likewise.
16701 (fold_negate_expr): Likewise.
16702 (int_const_binop_1): Likewise.
16703 (const_binop): Likewise.
16704 (fold_convert_const_int_from_int): Likewise.
16705 (fold_convert_const_int_from_real): Likewise.
16706 (fold_convert_const_int_from_fixed): Likewise.
16707 (fold_convert_const_fixed_from_int): Likewise.
16708 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
16709 (sign_bit_p): Use wide-int interfaces.
16710 (make_range_step): Likewise.
16711 (build_range_check): Likewise. Pass an integer of the correct type
16712 instead of using integer_one_node.
16713 (range_predecessor): Pass an integer of the correct type instead
16714 of using integer_one_node.
16715 (range_successor): Likewise.
16716 (merge_ranges): Likewise.
16717 (unextend): Use wide-int interfaces.
16718 (extract_muldiv_1): Likewise.
16719 (fold_div_compare): Likewise.
16720 (fold_single_bit_test): Likewise.
16721 (fold_sign_changed_comparison): Likewise.
16722 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
16723 (fold_plusminus_mult_expr): Use wide-int interfaces.
16724 (native_encode_int): Likewise.
16725 (native_interpret_int): Likewise.
16726 (fold_unary_loc): Likewise.
16727 (pointer_may_wrap_p): Likewise.
16728 (size_low_cst): Likewise.
16729 (mask_with_tz): Likewise.
16730 (fold_binary_loc): Likewise.
16731 (fold_ternary_loc): Likewise.
16732 (multiple_of_p): Likewise.
16733 (tree_call_nonnegative_warnv_p): Update calls to
16734 tree_int_cst_min_precision and real_from_integer.
16735 (fold_negate_const): Use wide-int interfaces.
16736 (fold_abs_const): Likewise.
16737 (fold_relational_const): Use tree_int_cst_lt.
16738 (round_up_loc): Use wide-int interfaces.
16739 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
16740 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
16741 * gengtype.c: Remove include of double-int.h.
16742 (do_typedef): Use wide-int interfaces.
16743 (open_base_files): Add wide-int.h.
16744 (main): Add offset_int and widest_int typedefs.
16745 * gengtype-lex.l: Handle "^".
16746 (CXX_KEYWORD): Add "static".
16747 * gengtype-parse.c (require3): New.
16748 (require_template_declaration): Handle constant template arguments
16749 and nested templates.
16750 * gengtype-state.c: Don't include "double-int.h".
16751 * genpreds.c (write_one_predicate_function): Update comment.
16752 (write_tm_constrs_h): Add check for hval and lval use in
16754 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
16755 (add_to_sequence): Likewise.
16756 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
16757 and const_double_operand.
16758 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
16760 * gimple-fold.c (get_base_constructor): Likewise.
16761 (fold_array_ctor_reference): Likewise.
16762 (fold_nonarray_ctor_reference): Likewise.
16763 (fold_const_aggregate_ref_1): Likewise.
16764 (gimple_val_nonnegative_real_p): Likewise.
16765 (gimple_fold_indirect_ref): Likewise.
16766 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
16767 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
16768 (struct slsr_cand_d): Change index to be widest_int.
16769 (struct incr_info_d): Change incr to be widest_int.
16770 (alloc_cand_and_find_basis): Use wide-int interfaces.
16771 (slsr_process_phi): Likewise.
16772 (backtrace_base_for_ref): Likewise. Return a widest_int.
16773 (restructure_reference): Take a widest_int instead of a double_int.
16774 (slsr_process_ref): Use wide-int interfaces.
16775 (create_mul_ssa_cand): Likewise.
16776 (create_mul_imm_cand): Likewise.
16777 (create_add_ssa_cand): Likewise.
16778 (create_add_imm_cand): Take a widest_int instead of a double_int.
16779 (slsr_process_add): Use wide-int interfaces.
16780 (slsr_process_cast): Likewise.
16781 (slsr_process_copy): Likewise.
16782 (dump_candidate): Likewise.
16783 (dump_incr_vec): Likewise.
16784 (replace_ref): Likewise.
16785 (cand_increment): Likewise. Return a widest_int.
16786 (cand_abs_increment): Likewise.
16787 (replace_mult_candidate): Take a widest_int instead of a double_int.
16788 (replace_unconditional_candidate): Use wide-int interfaces.
16789 (incr_vec_index): Take a widest_int instead of a double_int.
16790 (create_add_on_incoming_edge): Likewise.
16791 (create_phi_basis): Use wide-int interfaces.
16792 (replace_conditional_candidate): Likewise.
16793 (record_increment): Take a widest_int instead of a double_int.
16794 (record_phi_increments): Use wide-int interfaces.
16795 (phi_incr_cost): Take a widest_int instead of a double_int.
16796 (lowest_cost_path): Likewise.
16797 (total_savings): Likewise.
16798 (analyze_increments): Use wide-int interfaces.
16799 (ncd_with_phi): Take a widest_int instead of a double_int.
16800 (ncd_of_cand_and_phis): Likewise.
16801 (nearest_common_dominator_for_cands): Likewise.
16802 (insert_initializers): Use wide-int interfaces.
16803 (all_phi_incrs_profitable): Likewise.
16804 (replace_one_candidate): Likewise.
16805 (replace_profitable_candidates): Likewise.
16806 * godump.c: Include wide-int-print.h.
16807 (go_output_typedef): Use wide-int interfaces.
16808 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
16809 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
16810 (build_loop_iteration_domains): Likewise.
16811 * hooks.h: Include wide-int.h rather than double-int.h.
16812 (hook_bool_dint_dint_uint_bool_true): Delete.
16813 (hook_bool_wint_wint_uint_bool_true): Declare.
16814 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
16815 (hook_bool_wint_wint_uint_bool_true): New.
16816 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
16818 (ubsan_expand_si_overflow_mul_check): Likewise.
16819 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
16820 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
16821 (get_ancestor_addr_info): Likewise.
16822 (ipa_modify_call_arguments): Likewise.
16823 * loop-doloop.c (doloop_modify): Likewise.
16824 (doloop_optimize): Likewise.
16825 * loop-iv.c (iv_number_of_iterations): Likewise.
16826 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
16827 (unroll_loop_constant_iterations): Likewise.
16828 (decide_unroll_runtime_iterations): Likewise.
16829 (unroll_loop_runtime_iterations): Likewise.
16830 (decide_peel_simple): Likewise.
16831 (decide_unroll_stupid): Likewise.
16832 * lto-streamer-in.c (streamer_read_wi): Add.
16833 (input_cfg): Use wide-int interfaces.
16834 (lto_input_tree_1): Likewise.
16835 * lto-streamer-out.c (streamer_write_wi): Add.
16836 (hash_tree): Use wide-int interfaces.
16837 (output_cfg): Likewise.
16838 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
16839 (GTFILES): Add wide-int.h and signop.h.
16840 (TAGS): Look for .cc files too.
16841 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
16842 * optabs.c (expand_subword_shift): Likewise.
16843 (expand_doubleword_shift): Likewise.
16844 (expand_absneg_bit): Likewise.
16845 (expand_copysign_absneg): Likewise.
16846 (expand_copysign_bit): Likewise.
16847 * postreload.c (reload_cse_simplify_set): Likewise.
16848 * predict.c (predict_iv_comparison): Likewise.
16849 * pretty-print.h: Include wide-int-print.h.
16851 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
16852 * print-tree.c: Include wide-int-print.h.
16853 (print_node_brief): Use wide-int interfaces.
16854 (print_node): Likewise.
16855 * read-rtl.c (validate_const_wide_int): New.
16856 (read_rtx_code): Add CONST_WIDE_INT case.
16857 * real.c: Include wide-int.h.
16858 (real_to_integer2): Delete.
16859 (real_to_integer): New function, returning a wide_int.
16860 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
16861 (ten_to_ptwo): Update call to real_from_integer.
16862 (real_digit): Likewise.
16863 * real.h: Include signop.h, wide-int.h and insn-modes.h.
16864 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
16865 (REAL_VALUE_TO_INT): Delete.
16866 (real_to_integer): Declare a wide-int form.
16867 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
16868 * recog.c (const_int_operand): Improve comment.
16869 (const_scalar_int_operand): New.
16870 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
16871 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
16872 (split_double): Likewise.
16873 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
16874 (rtx_size): Likewise.
16875 (rtx_alloc_stat_v): New.
16876 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
16877 (cwi_output_hex): New.
16878 (iterative_hash_rtx): Handle CONST_WIDE_INT.
16879 (cwi_check_failed_bounds): New.
16880 * rtl.def (CONST_WIDE_INT): New.
16881 * rtl.h: Include <utility> and wide-int.h.
16882 (struct hwivec_def): New.
16883 (CWI_GET_NUM_ELEM): New.
16884 (CWI_PUT_NUM_ELEM): New.
16885 (struct rtx_def): Add num_elem and hwiv.
16886 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
16887 (CASE_CONST_UNIQUE): Likewise.
16888 (CASE_CONST_ANY): Likewise.
16889 (CONST_SCALAR_INT_P): Likewise.
16890 (CONST_WIDE_INT_P): New.
16892 (HWIVEC_CHECK): New.
16893 (cwi_check_failed_bounds): New.
16895 (HWIVEC_CHECK): New.
16896 (CONST_WIDE_INT_VEC) New.
16897 (CONST_WIDE_INT_NUNITS) New.
16898 (CONST_WIDE_INT_ELT) New.
16899 (rtx_mode_t): New type.
16900 (wi::int_traits <rtx_mode_t>): New.
16902 (wi::min_value): New.
16903 (wi::max_value): New.
16905 (const_wide_int_alloc): New.
16906 (immed_wide_int_const): New.
16907 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
16908 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
16909 * signop.h: New file.
16910 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
16911 (simplify_const_unary_operation): Use wide-int interfaces.
16912 (simplify_binary_operation_1): Likewise.
16913 (simplify_const_binary_operation): Likewise.
16914 (simplify_const_relational_operation): Likewise.
16915 (simplify_immed_subreg): Likewise.
16916 * stmt.c (expand_case): Likewise.
16917 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
16918 signop rather than a bool.
16919 * stor-layout.c (layout_type): Use wide-int interfaces.
16920 (initialize_sizetypes): Update calls to
16921 set_min_and_max_values_for_integral_type.
16922 (set_min_and_max_values_for_integral_type): Take a signop rather
16923 than a bool. Use wide-int interfaces.
16924 (fixup_signed_type): Update accordingly. Remove
16925 HOST_BITS_PER_DOUBLE_INT limit.
16926 (fixup_unsigned_type): Likewise.
16927 * system.h (STATIC_CONSTANT_P): New.
16928 (STATIC_ASSERT): New.
16929 * target.def (can_use_doloop_p): Take widest_ints rather than
16931 * target.h: Include wide-int.h rather than double-int.h.
16932 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
16934 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
16935 rather than INT_CST_LT_UNSIGNED.
16936 (can_use_doloop_if_innermost): Take widest_ints rather than
16938 * tree-affine.c: Include wide-int-print.h.
16939 (double_int_ext_for_comb): Delete.
16940 (wide_int_ext_for_comb): New.
16941 (aff_combination_zero): Use wide-int interfaces.
16942 (aff_combination_const): Take a widest_int instead of a double_int.
16943 (aff_combination_elt): Use wide-int interfaces.
16944 (aff_combination_scale): Take a widest_int instead of a double_int.
16945 (aff_combination_add_elt): Likewise.
16946 (aff_combination_add_cst): Likewise.
16947 (aff_combination_add): Use wide-int interfaces.
16948 (aff_combination_convert): Likewise.
16949 (tree_to_aff_combination): Likewise.
16950 (add_elt_to_tree): Take a widest_int instead of a double_int.
16951 (aff_combination_to_tree): Use wide-int interfaces.
16952 (aff_combination_remove_elt): Likewise.
16953 (aff_combination_add_product): Take a widest_int instead of
16955 (aff_combination_mult): Use wide-int interfaces.
16956 (aff_combination_expand): Likewise.
16957 (double_int_constant_multiple_p): Delete.
16958 (wide_int_constant_multiple_p): New.
16959 (aff_combination_constant_multiple_p): Take a widest_int pointer
16960 instead of a double_int pointer.
16961 (print_aff): Use wide-int interfaces.
16962 (get_inner_reference_aff): Take a widest_int pointer
16963 instead of a double_int pointer.
16964 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
16965 * tree-affine.h: Include wide-int.h.
16966 (struct aff_comb_elt): Change type of coef to widest_int.
16967 (struct affine_tree_combination): Change type of offset to widest_int.
16968 (double_int_ext_for_comb): Delete.
16969 (wide_int_ext_for_comb): New.
16970 (aff_combination_const): Use widest_int instead of double_int.
16971 (aff_combination_scale): Likewise.
16972 (aff_combination_add_elt): Likewise.
16973 (aff_combination_constant_multiple_p): Likewise.
16974 (get_inner_reference_aff): Likewise.
16975 (aff_comb_cannot_overlap_p): Likewise.
16976 (aff_combination_zero_p): Use wide-int interfaces.
16977 * tree.c: Include tree.h.
16978 (init_ttree): Use make_int_cst.
16979 (tree_code_size): Removed code for INTEGER_CST case.
16980 (tree_size): Add INTEGER_CST case.
16981 (make_node_stat): Update comment.
16982 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
16983 (build_int_cst_type): Use wide-int interfaces.
16984 (double_int_to_tree): Likewise.
16985 (double_int_fits_to_tree_p): Delete.
16986 (force_fit_type_double): Delete.
16987 (force_fit_type): New.
16988 (int_cst_hash_hash): Use wide-int interfaces.
16989 (int_cst_hash_eq): Likewise.
16990 (build_int_cst_wide): Delete.
16991 (wide_int_to_tree): New.
16992 (cache_integer_cst): Use wide-int interfaces.
16993 (build_low_bits_mask): Likewise.
16994 (cst_and_fits_in_hwi): Likewise.
16995 (real_value_from_int_cst): Likewise.
16996 (make_int_cst_stat): New.
16997 (integer_zerop): Use wide_int interfaces.
16998 (integer_onep): Likewise.
16999 (integer_all_onesp): Likewise.
17000 (integer_pow2p): Likewise.
17001 (integer_nonzerop): Likewise.
17002 (tree_log2): Likewise.
17003 (tree_floor_log2): Likewise.
17004 (tree_ctz): Likewise.
17005 (int_size_in_bytes): Likewise.
17006 (mem_ref_offset): Return an offset_int rather than a double_int.
17007 (build_type_attribute_qual_variant): Use wide_int interfaces.
17008 (type_hash_eq): Likewise
17009 (tree_int_cst_equal): Likewise.
17010 (tree_int_cst_lt): Delete.
17011 (tree_int_cst_compare): Likewise.
17012 (tree_fits_shwi_p): Use wide_int interfaces.
17013 (tree_fits_uhwi_p): Likewise.
17014 (tree_int_cst_sign_bit): Likewise.
17015 (tree_int_cst_sgn): Likewise.
17016 (tree_int_cst_min_precision): Take a signop rather than a bool.
17017 (simple_cst_equal): Use wide_int interfaces.
17018 (compare_tree_int): Likewise.
17019 (iterative_hash_expr): Likewise.
17020 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17022 (get_type_static_bounds): Use wide_int interfaces.
17023 (tree_int_cst_elt_check_failed): New.
17024 (build_common_tree_nodes): Reordered to set prec before filling in
17026 (int_cst_value): Check cst_and_fits_in_hwi.
17027 (widest_int_cst_value): Use wide_int interfaces.
17028 (upper_bound_in_type): Likewise.
17029 (lower_bound_in_type): Likewise.
17030 (num_ending_zeros): Likewise.
17031 (drop_tree_overflow): Likewise.
17032 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17033 (gen_conditions_for_pow_cst_base): Likewise.
17034 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17035 (group_case_labels_stmt): Use wide-int interfaces.
17036 (verify_gimple_assign_binary): Likewise.
17037 (print_loop): Likewise.
17038 * tree-chrec.c (tree_fold_binomial): Likewise.
17039 * tree-core.h (struct tree_base): Add int_length.
17040 (struct tree_int_cst): Change rep of value.
17041 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17042 (dr_may_alias_p): Likewise.
17043 (max_stmt_executions_tree): Likewise.
17044 * tree.def (INTEGER_CST): Update comment.
17045 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17046 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17047 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17048 (dequeue_and_dump): Use wide-int interfaces.
17049 * tree.h: Include wide-int.h.
17050 (NULL_TREE): Moved to earlier loc in file.
17051 (TREE_INT_CST_ELT_CHECK): New.
17052 (tree_int_cst_elt_check_failed): New.
17054 (TREE_INT_CST): Delete.
17055 (TREE_INT_CST_LOW): Use wide-int interfaces.
17056 (TREE_INT_CST_HIGH): Delete.
17057 (TREE_INT_CST_NUNITS): New.
17058 (TREE_INT_CST_EXT_NUNITS): Likewise.
17059 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17060 (TREE_INT_CST_ELT): Likewise.
17061 (INT_CST_LT): Delete.
17062 (tree_int_cst_elt_check): New (two forms).
17063 (type_code_size): Update comment.
17064 (make_int_cst_stat, make_int_cst): New.
17065 (tree_to_double_int): Delete.
17066 (double_int_fits_to_tree_p): Delete.
17067 (force_fit_type_double): Delete.
17068 (build_int_cstu): Replace with out-of-line function.
17069 (build_int_cst_wide): Delete.
17070 (tree_int_cst_lt): Define inline.
17071 (tree_int_cst_le): New.
17072 (tree_int_cst_compare): Define inline.
17073 (tree_int_cst_min_precision): Take a signop rather than a bool.
17074 (wi::int_traits <const_tree>): New.
17075 (wi::int_traits <tree>): New.
17076 (wi::extended_tree): New.
17077 (wi::int_traits <wi::extended_tree>): New.
17078 (wi::to_widest): New.
17079 (wi::to_offset): New.
17080 (wi::fits_to_tree_p): New.
17081 (wi::min_value): New.
17082 (wi::max_value): New.
17083 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17084 (copy_tree_body_r): Likewise.
17085 * tree-object-size.c (compute_object_offset): Likewise.
17086 (addr_object_size): Likewise.
17087 * tree-predcom.c: Include wide-int-print.h.
17088 (struct dref_d): Change type of offset to widest_int.
17089 (dump_dref): Call wide-int printer.
17090 (aff_combination_dr_offset): Use wide-int interfaces.
17091 (determine_offset): Take a widest_int pointer rather than a
17092 double_int pointer.
17093 (split_data_refs_to_components): Use wide-int interfaces.
17094 (suitable_component_p): Likewise.
17095 (order_drefs): Likewise.
17096 (add_ref_to_chain): Likewise.
17097 (valid_initializer_p): Likewise.
17098 (determine_roots_comp): Likewise.
17099 * tree-pretty-print.c: Include wide-int-print.h.
17100 (dump_generic_node): Use wide-int interfaces.
17101 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17102 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17103 (move_fixed_address_to_symbol): Likewise.
17104 (move_hint_to_base): Likewise.
17105 (move_pointer_to_base): Likewise.
17106 (move_variant_to_index): Likewise.
17107 (most_expensive_mult_to_index): Likewise.
17108 (addr_to_parts): Likewise.
17109 (copy_ref_info): Likewise.
17110 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17111 (indirect_refs_may_alias_p): Likewise.
17112 (stmt_kills_ref_p_1): Likewise.
17113 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17114 * tree-ssa-ccp.c: Update comment at top of file. Include
17116 (struct prop_value_d): Change type of mask to widest_int.
17117 (extend_mask): New function.
17118 (dump_lattice_value): Use wide-int interfaces.
17119 (get_default_value): Likewise.
17120 (set_constant_value): Likewise.
17121 (set_value_varying): Likewise.
17122 (valid_lattice_transition): Likewise.
17123 (set_lattice_value): Likewise.
17124 (value_to_double_int): Delete.
17125 (value_to_wide_int): New.
17126 (get_value_from_alignment): Use wide-int interfaces.
17127 (get_value_for_expr): Likewise.
17128 (do_dbg_cnt): Likewise.
17129 (ccp_finalize): Likewise.
17130 (ccp_lattice_meet): Likewise.
17131 (bit_value_unop_1): Use widest_ints rather than double_ints.
17132 (bit_value_binop_1): Likewise.
17133 (bit_value_unop): Use wide-int interfaces.
17134 (bit_value_binop): Likewise.
17135 (bit_value_assume_aligned): Likewise.
17136 (evaluate_stmt): Likewise.
17137 (ccp_fold_stmt): Likewise.
17138 (visit_cond_stmt): Likewise.
17139 (ccp_visit_stmt): Likewise.
17140 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17141 (constant_pointer_difference): Likewise.
17142 (associate_pointerplus): Likewise.
17143 (combine_conversions): Likewise.
17144 * tree-ssa-loop.h: Include wide-int.h.
17145 (struct tree_niter_desc): Change type of max to widest_int.
17146 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17147 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17148 (remove_redundant_iv_tests): Likewise.
17149 (canonicalize_loop_induction_variables): Likewise.
17150 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17151 (constant_multiple_of): Take a widest_int pointer instead of
17152 a double_int pointer.
17153 (get_computation_aff): Use wide-int interfaces.
17154 (ptr_difference_cost): Likewise.
17155 (difference_cost): Likewise.
17156 (get_loop_invariant_expr_id): Likewise.
17157 (get_computation_cost_at): Likewise.
17158 (iv_elimination_compare_lt): Likewise.
17159 (may_eliminate_iv): Likewise.
17160 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17161 instead of double_int.
17162 (max_loop_iterations): Likewise.
17163 (max_stmt_executions): Likewise.
17164 (estimated_stmt_executions): Likewise.
17165 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17166 (split_to_var_and_offset): Use wide-int interfaces.
17167 (determine_value_range): Likewise.
17168 (bound_difference_of_offsetted_base): Likewise.
17169 (bounds_add): Take a widest_int instead of a double_int.
17170 (number_of_iterations_ne_max): Use wide-int interfaces.
17171 (number_of_iterations_ne): Likewise.
17172 (number_of_iterations_lt_to_ne): Likewise.
17173 (assert_loop_rolls_lt): Likewise.
17174 (number_of_iterations_lt): Likewise.
17175 (number_of_iterations_le): Likewise.
17176 (number_of_iterations_cond): Likewise.
17177 (number_of_iterations_exit): Likewise.
17178 (finite_loop_p): Likewise.
17179 (derive_constant_upper_bound_assign): Likewise.
17180 (derive_constant_upper_bound): Return a widest_int.
17181 (derive_constant_upper_bound_ops): Likewise.
17182 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17183 (record_estimate): Take a widest_int rather than a double_int.
17184 (record_nonwrapping_iv): Use wide-int interfaces.
17185 (double_int_cmp): Delete.
17186 (wide_int_cmp): New.
17187 (bound_index): Take a widest_int rather than a double_int.
17188 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17189 (maybe_lower_iteration_bound): Likewise.
17190 (estimate_numbers_of_iterations_loop): Likewise.
17191 (estimated_loop_iterations): Take a widest_int pointer than than
17192 a double_int pointer.
17193 (estimated_loop_iterations_int): Use wide-int interfaces.
17194 (max_loop_iterations): Take a widest_int pointer than than
17195 a double_int pointer.
17196 (max_loop_iterations_int): Use wide-int interfaces.
17197 (max_stmt_executions): Take a widest_int pointer than than
17198 a double_int pointer.
17199 (estimated_stmt_executions): Likewise.
17200 (n_of_executions_at_most): Use wide-int interfaces.
17201 (scev_probably_wraps_p): Likewise.
17202 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17203 to real_to_integer.
17204 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17206 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17207 double_ints. Adjust for trailing_wide_ints <3> representation.
17208 (set_nonzero_bits): Likewise.
17209 (get_range_info): Return wide_ints rather than double_ints.
17210 Adjust for trailing_wide_ints <3> representation.
17211 (get_nonzero_bits): Likewise.
17212 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17214 * tree-ssanames.h (struct range_info_def): Replace min, max and
17215 nonzero_bits with a trailing_wide_ints <3>.
17216 (set_range_info): Use wide_int_refs rather than double_ints.
17217 (set_nonzero_bits): Likewise.
17218 (get_range_info): Return wide_ints rather than double_ints.
17219 (get_nonzero_bits): Likewise.
17220 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17221 * tree-ssa-pre.c (phi_translate_1): Likewise.
17222 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17223 (acceptable_pow_call): Likewise.
17224 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17226 (vn_reference_fold_indirect): Likewise.
17227 (vn_reference_maybe_forwprop_address): Likewise.
17228 (valueize_refs_1): Likewise.
17229 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17230 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17231 tree_int_cst_lt and tree_int_cst_le.
17232 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17234 (streamer_alloc_tree): Likewise.
17235 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17236 (streamer_write_tree_header): Likewise.
17237 (streamer_write_integer_cst): Likewise.
17238 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17239 (build_constructors): Likewise.
17240 (array_value_type): Likewise.
17241 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17242 (vect_check_gather): Likewise.
17243 * tree-vect-generic.c (build_replicated_const): Likewise.
17244 (expand_vector_divmod): Likewise.
17245 * tree-vect-loop.c (vect_transform_loop): Likewise.
17246 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17247 (vect_do_peeling_for_alignment): Likewise.
17248 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17249 * tree-vrp.c: Include wide-int.h.
17250 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17251 (extract_range_from_assert): Use wide-int interfaces.
17252 (vrp_int_const_binop): Likewise.
17253 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17254 double_int pointers.
17255 (ranges_from_anti_range): Use wide-int interfaces.
17256 (quad_int_cmp): Delete.
17257 (quad_int_pair_sort): Likewise.
17258 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17259 (extract_range_from_unary_expr_1): Likewise.
17260 (adjust_range_with_scev): Likewise.
17261 (masked_increment): Take and return wide_ints rather than double_ints.
17262 (register_edge_assert_for_2): Use wide-int interfaces.
17263 (check_array_ref): Likewise.
17264 (search_for_addr_array): Likewise.
17265 (maybe_set_nonzero_bits): Likewise.
17266 (union_ranges): Pass an integer of the correct type instead of
17267 using integer_one_node.
17268 (intersect_ranges): Likewise.
17269 (simplify_truth_ops_using_ranges): Likewise.
17270 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17271 (range_fits_type_p): Likewise.
17272 (simplify_cond_using_ranges): Likewise. Take a signop rather than
17274 (simplify_conversion_using_ranges): Use wide-int interfaces.
17275 (simplify_float_conversion_using_ranges): Likewise.
17276 (vrp_finalize): Likewise.
17277 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17278 (gimple_stringops_transform): Likewise.
17279 * varasm.c (decode_addr_const): Likewise.
17280 (const_hash_1): Likewise.
17281 (const_rtx_hash_1): Likewise
17282 (output_constant): Likewise.
17283 (array_size_for_constructor): Likewise.
17284 (output_constructor_regular_field): Likewise.
17285 (output_constructor_bitfield): Likewise.
17286 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17287 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17289 * gencheck.c: Define BITS_PER_UNIT.
17290 * wide-int.cc: New.
17292 * wide-int-print.cc: New.
17293 * wide-int-print.h: New.
17295 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17297 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
17299 2014-05-06 Richard Biener <rguenther@suse.de>
17301 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
17302 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
17303 (TODO_verify_all): Adjust.
17304 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
17305 TODO_verify_stmts and TODO_verify_rtl_sharing.
17306 * bb-reorder.c: Likewise.
17307 * cfgexpand.c: Likewise.
17308 * cprop.c: Likewise.
17310 * function.c: Likewise.
17311 * fwprop.c: Likewise.
17312 * gcse.c: Likewise.
17313 * gimple-ssa-isolate-paths.c: Likewise.
17314 * gimple-ssa-strength-reduction.c: Likewise.
17315 * ipa-split.c: Likewise.
17316 * loop-init.c: Likewise.
17317 * loop-unroll.c: Likewise.
17318 * lower-subreg.c: Likewise.
17319 * modulo-sched.c: Likewise.
17320 * postreload-gcse.c: Likewise.
17321 * predict.c: Likewise.
17322 * recog.c: Likewise.
17323 * sched-rgn.c: Likewise.
17324 * store-motion.c: Likewise.
17325 * tracer.c: Likewise.
17326 * trans-mem.c: Likewise.
17327 * tree-call-cdce.c: Likewise.
17328 * tree-cfg.c: Likewise.
17329 * tree-cfgcleanup.c: Likewise.
17330 * tree-complex.c: Likewise.
17331 * tree-eh.c: Likewise.
17332 * tree-emutls.c: Likewise.
17333 * tree-if-conv.c: Likewise.
17334 * tree-into-ssa.c: Likewise.
17335 * tree-loop-distribution.c: Likewise.
17336 * tree-object-size.c: Likewise.
17337 * tree-parloops.c: Likewise.
17338 * tree-pass.h: Likewise.
17339 * tree-sra.c: Likewise.
17340 * tree-ssa-ccp.c: Likewise.
17341 * tree-ssa-copy.c: Likewise.
17342 * tree-ssa-copyrename.c: Likewise.
17343 * tree-ssa-dce.c: Likewise.
17344 * tree-ssa-dom.c: Likewise.
17345 * tree-ssa-dse.c: Likewise.
17346 * tree-ssa-forwprop.c: Likewise.
17347 * tree-ssa-ifcombine.c: Likewise.
17348 * tree-ssa-loop-ch.c: Likewise.
17349 * tree-ssa-loop-ivcanon.c: Likewise.
17350 * tree-ssa-loop.c: Likewise.
17351 * tree-ssa-math-opts.c: Likewise.
17352 * tree-ssa-phiopt.c: Likewise.
17353 * tree-ssa-phiprop.c: Likewise.
17354 * tree-ssa-pre.c: Likewise.
17355 * tree-ssa-reassoc.c: Likewise.
17356 * tree-ssa-sink.c: Likewise.
17357 * tree-ssa-strlen.c: Likewise.
17358 * tree-ssa-tail-merge.c: Likewise.
17359 * tree-ssa-uncprop.c: Likewise.
17360 * tree-switch-conversion.c: Likewise.
17361 * tree-tailcall.c: Likewise.
17362 * tree-vect-generic.c: Likewise.
17363 * tree-vectorizer.c: Likewise.
17364 * tree-vrp.c: Likewise.
17365 * tsan.c: Likewise.
17366 * var-tracking.c: Likewise.
17367 * bt-load.c: Likewise.
17368 * cfgcleanup.c: Likewise.
17369 * combine-stack-adj.c: Likewise.
17370 * combine.c: Likewise.
17371 * compare-elim.c: Likewise.
17372 * config/epiphany/resolve-sw-modes.c: Likewise.
17373 * config/i386/i386.c: Likewise.
17374 * config/mips/mips.c: Likewise.
17375 * config/s390/s390.c: Likewise.
17376 * config/sh/sh_treg_combine.cc: Likewise.
17377 * config/sparc/sparc.c: Likewise.
17380 * final.c: Likewise.
17381 * ifcvt.c: Likewise.
17382 * mode-switching.c: Likewise.
17383 * passes.c: Likewise.
17384 * postreload.c: Likewise.
17386 * reg-stack.c: Likewise.
17387 * regcprop.c: Likewise.
17388 * regrename.c: Likewise.
17391 2014-05-06 Richard Biener <rguenther@suse.de>
17393 PR middle-end/61070
17394 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
17395 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
17397 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
17400 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
17402 2014-05-05 Radovan Obradovic <robradovic@mips.com>
17403 Tom de Vries <tom@codesourcery.com>
17405 * target.def (call_fusage_contains_non_callee_clobbers): New
17407 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
17409 (@node Miscellaneous Register Hooks): New node.
17410 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
17411 * doc/tm.texi: Regenerate.
17413 2014-05-05 Marek Polacek <polacek@redhat.com>
17416 * opts.c (common_handle_option): Call error_at instead of warning_at.
17418 2014-05-05 Richard Biener <rguenther@suse.de>
17420 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
17421 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
17422 under the TODO_verify_il umbrella.
17424 2014-05-05 Richard Biener <rguenther@suse.de>
17426 * passes.c (execute_function_todo): Move TODO_verify_flow under
17427 the TODO_verify_ul umbrella.
17429 2014-05-05 Richard Biener <rguenther@suse.de>
17431 PR middle-end/61010
17432 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
17433 X & CST away from a CST that is the mask of a mode.
17435 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17437 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
17438 int argument to enum machine_mode.
17439 (picochip_class_max_nregs): Ditto.
17440 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
17441 (picochip_class_max_nregs): Ditto.
17443 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17445 * target.def: Add new target hook.
17446 * doc/tm.texi: Regenerate.
17447 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
17448 * targhooks.c (default_keep_leaf_when_profiled): New function.
17450 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
17451 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
17453 2014-05-05 Bin Cheng <bin.cheng@arm.com>
17455 PR tree-optimization/60363
17456 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
17457 (copy_phi_args): New parameters. Call get_value_locus_in_path.
17458 (update_destination_phis): New parameter.
17459 (create_edge_and_update_destination_phis): Ditto.
17460 (ssa_fix_duplicate_block_edges): Pass new arguments.
17461 (thread_single_edge): Ditto.
17463 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
17465 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
17466 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
17467 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
17468 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
17469 Use RS6000_BTM_HARD_FLOAT.
17470 (BU_MISC_2): Likewise.
17471 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
17472 RS6000_BTM_HARD_FLOAT.
17473 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
17474 is explicitly used.
17475 (rs6000_invalid_builtin): Add hard floating builtin support.
17476 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
17477 hard float builtins.
17478 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
17480 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17482 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
17483 Add missing function* argument.
17485 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17487 * lra-constraints.c (valid_address_p): Move earlier in file.
17488 Add a constraint argument to the address_info version.
17489 (satisfies_memory_constraint_p): New function.
17490 (satisfies_address_constraint_p): Likewise.
17491 (process_alt_operands, curr_insn_transform): Use them.
17492 (process_address): Pass the constraint to valid_address_p when
17493 checking address operands.
17495 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17497 * config/mips/mips.c (mips_isa_rev): New variable.
17498 (mips_set_architecture): Set it.
17499 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
17501 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
17502 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
17503 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
17504 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
17505 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
17506 conditions in terms of mips_isa_rev.
17507 (mips_isa_rev): Declare.
17509 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17511 * config/sh/sh-mem.cc: Use tabs instead of spaces.
17512 (prob_unlikely, prob_likely): Make variables const.
17514 2014-05-03 Denis Chertykov <chertykov@gmail.com>
17516 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
17518 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17520 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
17522 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17524 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
17525 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
17526 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
17528 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
17529 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
17531 Replace usage of ROUND_REG with sh_round_reg.
17532 Use CEIL instead of ROUND_ADVANCE.
17534 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17537 * config/sh/sh.c: Include stdlib headers before everything else.
17539 2014-05-02 Jakub Jelinek <jakub@redhat.com>
17541 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
17542 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
17543 (gimplify_adjust_omp_clauses): Simd region is never
17544 directly nested in combined parallel. Instead, for linear
17545 with copyin/copyout, if in combined for simd loop, make decl
17546 firstprivate/lastprivate on OMP_FOR.
17547 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
17548 expand_omp_for_static_chunk): When setting endvar, also set
17549 fd->loop.v to the same value.
17551 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17553 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
17555 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
17557 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
17560 2014-05-02 Marek Polacek <polacek@redhat.com>
17562 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
17564 2014-05-02 Kito Cheng <kito@0xlab.org>
17566 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
17567 to a C expression marco.
17568 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
17569 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
17570 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
17571 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
17572 HONOR_REG_ALLOC_ORDER.
17573 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
17575 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17577 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
17579 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17581 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
17583 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
17585 * tree-if-conv.c (is_cond_scalar_reduction): New function.
17586 (convert_scalar_cond_reduction): Likewise.
17587 (predicate_scalar_phi): Add recognition and transformation
17588 of simple conditioanl reduction to be vectorizable.
17590 2014-05-01 Marek Polacek <polacek@redhat.com>
17593 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
17595 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
17597 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
17598 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
17599 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
17600 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
17601 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
17602 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
17603 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
17604 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
17606 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
17608 * config/arc/arc.opt (mlra): Move comment above option name
17609 to avoid mis-parsing as language options.
17611 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17613 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
17614 * config/sol2.h: ... here.
17615 * config/sol2-10.h: Remove.
17617 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
17618 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
17619 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
17620 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
17621 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
17622 * config/sol2.h: ... here.
17623 (SECTION_NAME_FORMAT): Don't redefine.
17624 (STARTFILE_ARCH32_SPEC): Rename to ...
17625 (STARTFILE_ARCH_SPEC): ... this.
17626 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
17627 * config/sparc/sol2.h: ... here.
17628 (SECTION_NAME_FORMAT): Don't undef.
17629 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
17630 (SUBTARGET_EXTRA_SPECS): Remove.
17631 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
17633 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
17634 (MD_STARTFILE_PREFIX): Remove.
17635 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
17636 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
17637 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
17638 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
17639 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
17640 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
17641 * config/i386/sol2.h: ... here.
17642 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
17643 * config/i386/sol2-bi.h: Remove.
17644 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
17645 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
17647 * config/i386/t-sol2-64: Rename to ...
17648 * config/i386/t-sol2: ... this.
17649 * config/sparc/t-sol2-64: Rename to ...
17650 * config/sparc/t-sol2: ... this.
17652 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
17653 sol2_tm_file_head, sol2_tm_file_tail.
17654 Include ${cpu_type}/sol2.h before sol2.h.
17656 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
17657 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
17658 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
17659 Reflect i386/t-sol2-64 renaming.
17660 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
17661 Reflect sparc/t-sol2-64 renaming.
17663 2014-04-30 Richard Biener <rguenther@suse.de>
17665 * passes.c (execute_function_todo): Move TODO_verify_stmts
17666 and TODO_verify_ssa under the TODO_verify_il umbrella.
17667 * tree-ssa.h (verify_ssa): Adjust prototype.
17668 * tree-ssa.c (verify_ssa): Add parameter to tell whether
17669 we should verify SSA operands.
17670 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
17671 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
17672 whether we should verify whether not throwing stmts have EH info.
17673 * graphite-scop-detection.c (create_sese_edges): Adjust.
17674 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
17675 * tree-eh.c (lower_try_finally_switch): Do not add the
17676 default case label twice.
17678 2014-04-30 Marek Polacek <polacek@redhat.com>
17680 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
17681 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
17682 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
17683 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
17685 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
17687 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
17688 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
17689 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
17690 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
17691 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
17692 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
17693 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
17694 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
17696 2014-04-29 David Malcolm <dmalcolm@redhat.com>
17698 * tree-cfg.c (dump_function_to_file): Dump the return type of
17699 functions, in a line to itself before the function body, mimicking
17700 the layout of a C function.
17702 2014-04-29 Jakub Jelinek <jakub@redhat.com>
17704 PR tree-optimization/60971
17705 * tree-tailcall.c (process_assignment): Reject conversions which
17708 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
17710 * calls.c (initialize_argument_information): Always treat
17711 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
17712 (expand_call): Likewise.
17713 (emit_library_call_calue_1): Likewise.
17714 * expr.c (PUSH_ARGS_REVERSED): Do not define.
17715 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
17718 2014-04-29 Nick Clifton <nickc@redhat.com>
17720 * config/msp430/msp430.md (umulsidi): Fix typo.
17721 (mulhisi3): Enable even inside interrupt handlers.
17722 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
17723 bigger return address pushed in large mode.
17725 2014-04-29 Nick Clifton <nickc@redhat.com>
17727 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
17728 (arc_init_reg_tables): Use a machine_mode enum to iterate over
17730 * config/m32r/m32r.c (init_reg_tables): Likewise.
17731 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
17732 enum to hold the modes.
17734 2014-04-29 Richard Biener <rguenther@suse.de>
17736 * dominance.c (free_dominance_info): Add overload with
17737 function parameter.
17738 (dom_info_state): Likewise.
17739 (dom_info_available_p): Likewise.
17740 * basic-block.h (free_dominance_info, dom_info_state,
17741 dom_info_available_p): Declare overloads.
17742 * passes.c (execute_function_todo): Verify that verifiers
17743 don't change dominator info state. Drop dominator info
17744 for IPA pass invocations.
17745 * cgraph.c (release_function_body): Restore asserts that
17746 dominator information is released.
17748 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
17750 * doc/invoke.texi: Fix typo.
17751 * tree-vrp.c: Fix typos.
17752 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
17754 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17756 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
17758 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
17760 * config/aarch64/aarch64-builtins.c
17761 (aarch64_types_storestruct_lane_qualifiers): New.
17762 (TYPES_STORESTRUCT_LANE): Likewise.
17763 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
17764 (st3_lane): Likewise.
17765 (st4_lane): Likewise.
17766 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
17767 (vec_store_lanesci_lane<mode>): Likewise.
17768 (vec_store_lanesxi_lane<mode>): Likewise.
17769 (aarch64_st2_lane<VQ:mode>): Likewise.
17770 (aarch64_st3_lane<VQ:mode>): Likewise.
17771 (aarch64_st4_lane<VQ:mode>): Likewise.
17772 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
17773 * config/aarch64/arm_neon.h
17774 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
17775 use new macro arguments.
17776 (__ST3_LANE_FUNC): Likewise.
17777 (__ST4_LANE_FUNC): Likewise.
17778 * config/aarch64/iterators.md (V_TWO_ELEM): New.
17779 (V_THREE_ELEM): Likewise.
17780 (V_FOUR_ELEM): Likewise.
17782 2014-04-28 David Malcolm <dmalcolm@redhat.com>
17784 * doc/gimple.texi: Replace the description of the now-defunct
17785 union gimple_statement_d with a diagram showing the
17786 gimple_statement_base class hierarchy and its relationships to
17787 the GSS_ and GIMPLE_ enums.
17789 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
17791 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
17792 * config/aarch64/aarch64.c
17793 (aarch64_cannot_change_mode_class): Weaken conditions.
17794 (aarch64_modes_tieable_p): New.
17795 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
17797 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
17799 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
17800 (loadsync_<mode>): Change mode.
17801 (load_quadpti, store_quadpti): New.
17802 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
17803 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
17805 2014-04-28 Martin Jambor <mjambor@suse.cz>
17807 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
17808 same alias type as the original statement.
17809 (subreplacement_assignment_data): New type.
17810 (handle_unscalarized_data_in_subtree): New type of parameter,
17811 generate new memory accesses with same alias type as the original
17813 (load_assign_lhs_subreplacements): Likewise.
17814 (sra_modify_constructor_assign): Generate new memory accesses with
17815 same alias type as the original statement.
17817 2014-04-28 Richard Biener <rguenther@suse.de>
17819 * tree-pass.h (TODO_verify_il): Define.
17820 (TODO_verify_all): Complete properly.
17821 * passes.c (execute_function_todo): Move existing loop-closed
17822 SSA verification under TODO_verify_il.
17823 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
17824 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
17825 Fix tree sharing issue.
17827 2014-04-28 Richard Biener <rguenther@suse.de>
17829 PR middle-end/60092
17830 * builtins.def (DEF_C11_BUILTIN): Add.
17831 (BUILT_IN_ALIGNED_ALLOC): Likewise.
17832 * coretypes.h (enum function_class): Add function_c11_misc.
17833 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17834 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
17835 (call_may_clobber_ref_p_1): Likewise.
17836 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
17837 (mark_all_reaching_defs_necessary_1): Likewise.
17838 (propagate_necessity): Likewise.
17839 (eliminate_unnecessary_stmts): Likewise.
17840 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
17842 2014-04-28 Richard Biener <rguenther@suse.de>
17844 * tree-vrp.c (vrp_var_may_overflow): Remove.
17845 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
17846 with overflow immediately bump to one before that value and
17847 let iteration figure out overflow status.
17849 2014-04-28 Richard Biener <rguenther@suse.de>
17851 * configure.ac: Do valgrind header checks unconditionally.
17852 Add --enable-valgrind-annotations.
17853 * system.h: Guard valgrind header inclusion with
17854 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
17855 * alloc-pool.c (pool_alloc, pool_free): Use
17856 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
17857 to guard possibly dead code.
17858 * config.in: Regenerated.
17859 * configure: Likewise.
17861 2014-04-28 Jeff Law <law@redhat.com>
17863 PR tree-optimization/60902
17864 * tree-ssa-threadedge.c
17865 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
17866 over real defs when invalidating outputs from statements that do not
17867 produce useful outputs for threading.
17869 2014-04-28 Richard Biener <rguenther@suse.de>
17871 PR tree-optimization/60979
17872 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
17873 SCOPs that end in a block with a successor with abnormal
17876 2014-04-28 Richard Biener <rguenther@suse.de>
17878 * tree-pass.h (execute_pass_list): Adjust prototype.
17879 * passes.c (pass_manager::execute_early_local_passes): Adjust.
17880 (do_per_function): Change callback signature, push all actual
17881 work to the callbals.
17882 (do_per_function_toporder): Likewise.
17883 (execute_function_dump): Adjust.
17884 (execute_function_todo): Likewise.
17885 (clear_last_verified): Likewise.
17886 (verify_curr_properties): Likewise.
17887 (update_properties_after_pass): Likewise.
17888 (execute_pass_list_1): Split out from ...
17889 (execute_pass_list): ... here. Adjust.
17890 (execute_ipa_pass_list): Likewise.
17891 * cgraphunit.c (cgraph_add_new_function): Adjust.
17892 (analyze_function): Likewise.
17893 (expand_function): Likewise.
17894 * cgraph.c (release_function_body): Free dominance info
17895 here instead of asserting it was magically freed elsewhere.
17897 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
17899 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
17900 * configure: Regenerate.
17901 * config/sparc/sparc.opt (muser-mode): New option.
17902 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
17904 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
17905 * doc/invoke.texi (SPARC options): Document -muser-mode.
17907 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
17909 * cselib.c (find_slot_memmode): Delete.
17910 (cselib_hasher): Change compare_type to a struct.
17911 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
17913 (preserve_constants_and_equivs): Adjust for new compare_type.
17914 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
17915 (wrap_constant): Delete.
17916 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
17918 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
17920 * doc/install.texi (Building with profile feedback): Remove
17923 2014-04-26 Tom de Vries <tom@codesourcery.com>
17925 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
17928 2014-04-25 Cary Coutant <ccoutant@google.com>
17931 * dwarf2out.c (should_move_die_to_comdat): A type definition
17932 can contain a subprogram definition, but don't move it to a
17934 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
17935 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
17937 (clone_tree_hash): Rename to...
17938 (clone_tree_partial): ...this; change callers. Copy
17939 DW_TAG_subprogram DIEs as declarations.
17940 (copy_decls_walk): Don't copy children of a declaration into a
17943 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
17946 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
17949 2014-04-25 Jiong Wang <jiong.wang@arm.com>
17951 * config/arm/predicates.md (call_insn_operand): Add long_call check.
17952 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
17954 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
17957 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17959 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
17961 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17963 PR tree-optimization/60930
17964 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
17965 creating a multiply candidate by folding two constant
17966 multiplicands when the result overflows.
17968 2014-04-25 Jakub Jelinek <jakub@redhat.com>
17970 PR tree-optimization/60960
17971 * tree-vect-generic.c (expand_vector_operation): Only call
17972 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
17974 2014-04-25 Tom de Vries <tom@codesourcery.com>
17976 * expr.c (clobber_reg_mode): New function.
17977 * expr.h (clobber_reg): New function.
17979 2014-04-25 Tom de Vries <tom@codesourcery.com>
17981 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
17984 2014-04-25 Radovan Obradovic <robradovic@mips.com>
17985 Tom de Vries <tom@codesourcery.com>
17987 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
17989 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
17990 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
17991 new argument to find_all_hard_reg_sets call.
17993 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17995 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
17996 Use HOST_WIDE_INT_C for mask literal.
17997 (aarch_rev16_shleft_mask_imm_p): Likewise.
17999 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18002 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18004 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18006 PR preprocessor/56540
18007 * config/i386/i386-c.c (ix86_target_macros): Define
18008 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18010 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18012 * configure.ac (tga_func): Remove.
18013 (LIB_TLS_SPEC): Remove.
18014 * configure: Regenerate.
18015 * config.in: Regenerate.
18016 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18018 2014-04-25 Richard Biener <rguenther@suse.de>
18021 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18022 call stmt use/clobber sets during stmt walk instead of
18023 walking the possibly incomplete set of caller edges.
18025 2014-04-25 Richard Biener <rguenther@suse.de>
18028 * passes.c (apply_ipa_transforms): Inline into only caller ...
18029 (execute_one_pass): ... here. Properly bring in function
18030 bodies for nodes we want to apply IPA transforms to.
18032 2014-04-24 Cong Hou <congh@google.com>
18034 PR tree-optimization/60896
18035 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18036 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18037 (vect_mark_pattern_stmts): Set the def type of all statements in
18038 PATTERN_DEF_SEQ as vect_internal_def.
18040 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18042 * doc/extend.texi (PowerPC Built-in Functions): Document new
18043 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18044 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18046 * config/rs6000/predicates.md (const_0_to_3_operand): New
18047 predicate to match 0..3 integer constants.
18049 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18050 to support adding miscellaneous builtin functions.
18051 (BU_DFP_MISC_2): Likewise.
18052 (BU_P7_MISC_1): Likewise.
18053 (BU_P7_MISC_2): Likewise.
18054 (BU_P8V_MISC_3): Likewise.
18055 (BU_MISC_1): Likewise.
18056 (BU_MISC_2): Likewise.
18057 (DIVWE): Add extended divide builtin functions.
18058 (DIVWEO): Likewise.
18059 (DIVWEU): Likewise.
18060 (DIVWEUO): Likewise.
18062 (DIVDEO): Likewise.
18063 (DIVDEU): Likewise.
18064 (DIVDEUO): Likewise.
18065 (DXEX): Add decimal floating-point builtin functions.
18067 (DDEDPD): Likewise.
18068 (DDEDPDQ): Likewise.
18069 (DENBCD): Likewise.
18070 (DENBCDQ): Likewise.
18074 (DSCLIQ): Likewise.
18076 (DSCRIQ): Likewise.
18077 (CDTBCD): Add new BCD builtin functions.
18078 (CBCDTD): Likewise.
18079 (ADDG6S): Likewise.
18080 (BCDADD): Likewise.
18081 (BCDADD_LT): Likewise.
18082 (BCDADD_EQ): Likewise.
18083 (BCDADD_GT): Likewise.
18084 (BCDADD_OV): Likewise.
18085 (BCDSUB): Likewise.
18086 (BCDSUB_LT): Likewise.
18087 (BCDSUB_EQ): Likewise.
18088 (BCDSUB_GT): Likewise.
18089 (BCDSUB_OV): Likewise.
18090 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18091 (UNPACK_TD): Likewise.
18092 (PACK_TF): Likewise.
18093 (UNPACK_TF): Likewise.
18094 (UNPACK_TF_0): Likewise.
18095 (UNPACK_TF_1): Likewise.
18096 (PACK_V1TI): Likewise.
18097 (UNPACK_V1TI): Likewise.
18099 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18100 support for decimal floating point builtin functions.
18101 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18102 functions that take constant arguments.
18103 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18104 (rs6000_init_builtins): Setup long double, _Decimal64, and
18105 _Decimal128 types for new builtin functions.
18106 (builtin_function_type): Set the unsigned flags appropriately for
18107 the new builtin functions.
18108 (rs6000_opt_masks): Add support for decimal floating point builtin
18111 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18112 floating point builtin functions.
18113 (RS6000_BTM_COMMON): Likewise.
18114 (RS6000_BTI_long_double): Likewise.
18115 (RS6000_BTI_dfloat64): Likewise.
18116 (RS6000_BTI_dfloat128): Likewise.
18117 (long_double_type_internal_node): Likewise.
18118 (dfloat64_type_internal_node): Likewise.
18119 (dfloat128_type_internal_node): Likewise.
18121 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18122 2.07 bcd arithmetic instructions.
18123 (UNSPEC_BCDSUB): Likewise.
18124 (UNSPEC_BCD_OVERFLOW): Likewise.
18125 (UNSPEC_BCD_ADD_SUB): Likewise.
18126 (bcd_add_sub): Likewise.
18127 (BCD_TEST): Likewise.
18128 (bcd<bcd_add_sub>): Likewise.
18129 (bcd<bcd_add_sub>_test): Likewise.
18130 (bcd<bcd_add_sub>_test2): Likewise.
18131 (bcd<bcd_add_sub>_<code>): Likewise.
18132 (peephole2 for combined bcd ops): Likewise.
18134 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18135 decimal floating point builtin functions.
18136 (UNSPEC_DENBCD): Likewise.
18137 (UNSPEC_DXEX): Likewise.
18138 (UNSPEC_DIEX): Likewise.
18139 (UNSPEC_DSCLI): Likewise.
18140 (UNSPEC_DSCRI): Likewise.
18141 (D64_D128): Likewise.
18142 (dfp_suffix): Likewise.
18143 (dfp_ddedpd_<mode>): Likewise.
18144 (dfp_denbcd_<mode>): Likewise.
18145 (dfp_dxex_<mode>): Likewise.
18146 (dfp_diex_<mode>): Likewise.
18147 (dfp_dscli_<mode>): Likewise.
18148 (dfp_dscri_<mode>): Likewise.
18150 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18152 (UNSPEC_CDTBCD): Likewise.
18153 (UNSPEC_CBCDTD): Likewise.
18154 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18155 (UNSPEC_DIVEO): Likewise.
18156 (UNSPEC_DIVEU): Likewise.
18157 (UNSPEC_DIVEUO): Likewise.
18158 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18159 pack/unpack 128-bit types.
18160 (UNSPEC_PACK_128BIT): Likewise.
18161 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18162 (udiv<mode>3): Use idiv_ldiv mode attribute.
18163 (div<mode>3): Likewise.
18164 (addg6s): Add new BCD builtin functions.
18165 (cdtbcd): Likewise.
18166 (cbcdtd): Likewise.
18167 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18168 (div_extend): Likewise.
18169 (div<div_extend>_<mode>"): Likewise.
18170 (FP128_64): Add support for new builtin functions to pack/unpack
18172 (unpack<mode>): Likewise.
18173 (unpacktf_0): Likewise.
18174 (unpacktf_1): Likewise.
18175 (unpack<mode>_dm): Likewise.
18176 (unpack<mode>_nodm): Likewise.
18177 (pack<mode>): Likewise.
18178 (unpackv1ti): Likewise.
18179 (packv1ti): Likewise.
18181 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18183 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18186 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18188 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18189 * gimplify.c (omp_is_private): Change last argument's type to int.
18190 Only diagnose lastprivate if the simd argument is 1, only diagnose
18191 linear if the simd argument is 2.
18192 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18193 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18194 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18195 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18196 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18197 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18198 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18199 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18200 * tree-nested.c (convert_nonlocal_omp_clauses,
18201 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18203 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18206 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18209 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18211 * flag-types.h (enum ivar_visibility): Add.
18213 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18215 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18216 function * argument.
18218 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18220 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18222 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18223 Tom de Vries <tom@codesourcery.com>
18225 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18226 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18228 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18229 * emit-rtl.c (try_split): Same.
18231 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18232 Tom de Vries <tom@codesourcery.com>
18234 * common.opt (fuse-caller-save): New option.
18236 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18238 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18239 elements for big-endian.
18241 2014-04-24 Richard Biener <rguenther@suse.de>
18243 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18244 during TER and instead use the sepops interface for expanding
18245 non-GIMPLE_SINGLE_RHS.
18247 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18249 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18250 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18252 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18254 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18255 assembler 64-bit option.
18256 * configure: Regenerate.
18258 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18260 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18261 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18262 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18263 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18264 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18266 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18268 * config/aarch64/aarch64-builtins.c
18269 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18270 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18271 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18272 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18274 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18275 (Vrevsuff): New mode attribute.
18277 2014-04-24 Terry Guo <terry.guo@arm.com>
18279 * config/arm/arm.h (machine_function): Define variable
18280 after_arm_reorg here.
18281 * config/arm/arm.c (after_arm_reorg): Remove the definition.
18282 (arm_split_constant): Update the way to access variable
18284 (arm_reorg): Ditto.
18285 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18287 2014-04-23 Tom de Vries <tom@codesourcery.com>
18289 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18291 2014-04-23 David Malcolm <dmalcolm@redhat.com>
18293 * is-a.h: Update comments to reflect the following changes to the
18294 "pointerness" of the API, making the template parameter match the
18295 return type, allowing use of is-a.h with typedefs of pointers.
18296 (is_a_helper::cast): Return a T rather then a pointer to a T, so
18297 that the return type matches the parameter to the is_a_helper.
18299 (dyn_cast): Likewise.
18301 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
18302 pointer from the is-a.h API.
18304 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
18305 (is_a_helper <cgraph_node *>::test): ...this, matching change to
18307 (is_a_helper <varpool_node>::test): Likewise, convert to...
18308 (is_a_helper <varpool_node *>::test): ...this.
18310 (varpool_first_variable): Update for removal of implicit pointer
18311 from the is-a.h API.
18312 (varpool_next_variable): Likewise.
18313 (varpool_first_static_initializer): Likewise.
18314 (varpool_next_static_initializer): Likewise.
18315 (varpool_first_defined_variable): Likewise.
18316 (varpool_next_defined_variable): Likewise.
18317 (cgraph_first_defined_function): Likewise.
18318 (cgraph_next_defined_function): Likewise.
18319 (cgraph_first_function): Likewise.
18320 (cgraph_next_function): Likewise.
18321 (cgraph_first_function_with_gimple_body): Likewise.
18322 (cgraph_next_function_with_gimple_body): Likewise.
18323 (cgraph_alias_target): Likewise.
18324 (varpool_alias_target): Likewise.
18325 (cgraph_function_or_thunk_node): Likewise.
18326 (varpool_variable_node): Likewise.
18327 (symtab_real_symbol_p): Likewise.
18328 * cgraphunit.c (referred_to_p): Likewise.
18329 (analyze_functions): Likewise.
18330 (handle_alias_pairs): Likewise.
18331 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
18332 * gimple-ssa.h (gimple_vuse_op): Likewise.
18333 (gimple_vdef_op): Likewise.
18334 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
18335 * gimple.c (gimple_build_asm_1): Likewise.
18336 (gimple_build_try): Likewise.
18337 (gimple_build_resx): Likewise.
18338 (gimple_build_eh_dispatch): Likewise.
18339 (gimple_build_omp_for): Likewise.
18340 (gimple_omp_for_set_clauses): Likewise.
18342 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
18343 (is_a_helper <gimple_statement_asm *>::test): ...this.
18344 (is_a_helper <gimple_statement_bind>::test): Convert to...
18345 (is_a_helper <gimple_statement_bind *>::test): ...this.
18346 (is_a_helper <gimple_statement_call>::test): Convert to...
18347 (is_a_helper <gimple_statement_call *>::test): ...this.
18348 (is_a_helper <gimple_statement_catch>::test): Convert to...
18349 (is_a_helper <gimple_statement_catch *>::test): ...this.
18350 (is_a_helper <gimple_statement_resx>::test): Convert to...
18351 (is_a_helper <gimple_statement_resx *>::test): ...this.
18352 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
18353 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
18354 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
18355 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
18356 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
18357 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
18358 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
18359 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
18360 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
18361 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
18362 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
18363 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
18364 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
18365 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
18366 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
18367 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
18368 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
18369 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
18370 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
18371 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
18372 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
18373 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
18374 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
18375 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
18376 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
18377 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
18378 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
18379 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
18380 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
18381 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
18382 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
18383 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
18384 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
18385 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
18386 (is_a_helper <gimple_statement_phi>::test): Convert to...
18387 (is_a_helper <gimple_statement_phi *>::test): ...this.
18388 (is_a_helper <gimple_statement_transaction>::test): Convert to...
18389 (is_a_helper <gimple_statement_transaction *>::test): ...this.
18390 (is_a_helper <gimple_statement_try>::test): Convert to...
18391 (is_a_helper <gimple_statement_try *>::test): ...this.
18392 (is_a_helper <gimple_statement_wce>::test): Convert to...
18393 (is_a_helper <gimple_statement_wce *>::test): ...this.
18394 (is_a_helper <const gimple_statement_asm>::test): Convert to...
18395 (is_a_helper <const gimple_statement_asm *>::test): ...this.
18396 (is_a_helper <const gimple_statement_bind>::test): Convert to...
18397 (is_a_helper <const gimple_statement_bind *>::test): ...this.
18398 (is_a_helper <const gimple_statement_call>::test): Convert to...
18399 (is_a_helper <const gimple_statement_call *>::test): ...this.
18400 (is_a_helper <const gimple_statement_catch>::test): Convert to...
18401 (is_a_helper <const gimple_statement_catch *>::test): ...this.
18402 (is_a_helper <const gimple_statement_resx>::test): Convert to...
18403 (is_a_helper <const gimple_statement_resx *>::test): ...this.
18404 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
18405 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
18406 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
18407 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
18408 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
18410 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
18412 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
18414 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
18416 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
18417 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
18418 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
18420 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
18421 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
18423 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
18424 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
18425 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
18426 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
18427 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
18428 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
18430 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
18431 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
18432 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
18433 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
18435 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
18436 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
18437 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
18438 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
18439 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
18440 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
18441 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
18442 (is_a_helper <const gimple_statement_phi>::test): Convert to...
18443 (is_a_helper <const gimple_statement_phi *>::test): ...this.
18444 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
18445 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
18446 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
18447 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
18448 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
18449 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
18450 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
18452 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
18454 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
18455 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
18457 (gimple_use_ops): Update for removal of implicit pointer from the
18459 (gimple_set_use_ops): Likewise.
18460 (gimple_vuse): Likewise.
18461 (gimple_vdef): Likewise.
18462 (gimple_vuse_ptr): Likewise.
18463 (gimple_vdef_ptr): Likewise.
18464 (gimple_set_vuse): Likewise.
18465 (gimple_set_vdef): Likewise.
18466 (gimple_omp_return_set_lhs): Likewise.
18467 (gimple_omp_return_lhs): Likewise.
18468 (gimple_omp_return_lhs_ptr): Likewise.
18469 (gimple_call_fntype): Likewise.
18470 (gimple_call_set_fntype): Likewise.
18471 (gimple_call_set_internal_fn): Likewise.
18472 (gimple_call_use_set): Likewise.
18473 (gimple_call_clobber_set): Likewise.
18474 (gimple_bind_vars): Likewise.
18475 (gimple_bind_set_vars): Likewise.
18476 (gimple_bind_body_ptr): Likewise.
18477 (gimple_bind_set_body): Likewise.
18478 (gimple_bind_add_stmt): Likewise.
18479 (gimple_bind_block): Likewise.
18480 (gimple_bind_set_block): Likewise.
18481 (gimple_asm_ninputs): Likewise.
18482 (gimple_asm_noutputs): Likewise.
18483 (gimple_asm_nclobbers): Likewise.
18484 (gimple_asm_nlabels): Likewise.
18485 (gimple_asm_input_op): Likewise.
18486 (gimple_asm_input_op_ptr): Likewise.
18487 (gimple_asm_output_op): Likewise.
18488 (gimple_asm_output_op_ptr): Likewise.
18489 (gimple_asm_set_output_op): Likewise.
18490 (gimple_asm_clobber_op): Likewise.
18491 (gimple_asm_set_clobber_op): Likewise.
18492 (gimple_asm_label_op): Likewise.
18493 (gimple_asm_set_label_op): Likewise.
18494 (gimple_asm_string): Likewise.
18495 (gimple_catch_types): Likewise.
18496 (gimple_catch_types_ptr): Likewise.
18497 (gimple_catch_handler_ptr): Likewise.
18498 (gimple_catch_set_types): Likewise.
18499 (gimple_catch_set_handler): Likewise.
18500 (gimple_eh_filter_types): Likewise.
18501 (gimple_eh_filter_types_ptr): Likewise.
18502 (gimple_eh_filter_failure_ptr): Likewise.
18503 (gimple_eh_filter_set_types): Likewise.
18504 (gimple_eh_filter_set_failure): Likewise.
18505 (gimple_eh_must_not_throw_fndecl): Likewise.
18506 (gimple_eh_must_not_throw_set_fndecl): Likewise.
18507 (gimple_eh_else_n_body_ptr): Likewise.
18508 (gimple_eh_else_e_body_ptr): Likewise.
18509 (gimple_eh_else_set_n_body): Likewise.
18510 (gimple_eh_else_set_e_body): Likewise.
18511 (gimple_try_eval_ptr): Likewise.
18512 (gimple_try_cleanup_ptr): Likewise.
18513 (gimple_try_set_eval): Likewise.
18514 (gimple_try_set_cleanup): Likewise.
18515 (gimple_wce_cleanup_ptr): Likewise.
18516 (gimple_wce_set_cleanup): Likewise.
18517 (gimple_phi_capacity): Likewise.
18518 (gimple_phi_num_args): Likewise.
18519 (gimple_phi_result): Likewise.
18520 (gimple_phi_result_ptr): Likewise.
18521 (gimple_phi_set_result): Likewise.
18522 (gimple_phi_arg): Likewise.
18523 (gimple_phi_set_arg): Likewise.
18524 (gimple_resx_region): Likewise.
18525 (gimple_resx_set_region): Likewise.
18526 (gimple_eh_dispatch_region): Likewise.
18527 (gimple_eh_dispatch_set_region): Likewise.
18528 (gimple_omp_critical_name): Likewise.
18529 (gimple_omp_critical_name_ptr): Likewise.
18530 (gimple_omp_critical_set_name): Likewise.
18531 (gimple_omp_for_clauses): Likewise.
18532 (gimple_omp_for_clauses_ptr): Likewise.
18533 (gimple_omp_for_set_clauses): Likewise.
18534 (gimple_omp_for_collapse): Likewise.
18535 (gimple_omp_for_index): Likewise.
18536 (gimple_omp_for_index_ptr): Likewise.
18537 (gimple_omp_for_set_index): Likewise.
18538 (gimple_omp_for_initial): Likewise.
18539 (gimple_omp_for_initial_ptr): Likewise.
18540 (gimple_omp_for_set_initial): Likewise.
18541 (gimple_omp_for_final): Likewise.
18542 (gimple_omp_for_final_ptr): Likewise.
18543 (gimple_omp_for_set_final): Likewise.
18544 (gimple_omp_for_incr): Likewise.
18545 (gimple_omp_for_incr_ptr): Likewise.
18546 (gimple_omp_for_set_incr): Likewise.
18547 (gimple_omp_for_pre_body_ptr): Likewise.
18548 (gimple_omp_for_set_pre_body): Likewise.
18549 (gimple_omp_parallel_clauses): Likewise.
18550 (gimple_omp_parallel_clauses_ptr): Likewise.
18551 (gimple_omp_parallel_set_clauses): Likewise.
18552 (gimple_omp_parallel_child_fn): Likewise.
18553 (gimple_omp_parallel_child_fn_ptr): Likewise.
18554 (gimple_omp_parallel_set_child_fn): Likewise.
18555 (gimple_omp_parallel_data_arg): Likewise.
18556 (gimple_omp_parallel_data_arg_ptr): Likewise.
18557 (gimple_omp_parallel_set_data_arg): Likewise.
18558 (gimple_omp_task_clauses): Likewise.
18559 (gimple_omp_task_clauses_ptr): Likewise.
18560 (gimple_omp_task_set_clauses): Likewise.
18561 (gimple_omp_task_child_fn): Likewise.
18562 (gimple_omp_task_child_fn_ptr): Likewise.
18563 (gimple_omp_task_set_child_fn): Likewise.
18564 (gimple_omp_task_data_arg): Likewise.
18565 (gimple_omp_task_data_arg_ptr): Likewise.
18566 (gimple_omp_task_set_data_arg): Likewise.
18567 (gimple_omp_taskreg_clauses): Likewise.
18568 (gimple_omp_taskreg_clauses_ptr): Likewise.
18569 (gimple_omp_taskreg_set_clauses): Likewise.
18570 (gimple_omp_taskreg_child_fn): Likewise.
18571 (gimple_omp_taskreg_child_fn_ptr): Likewise.
18572 (gimple_omp_taskreg_set_child_fn): Likewise.
18573 (gimple_omp_taskreg_data_arg): Likewise.
18574 (gimple_omp_taskreg_data_arg_ptr): Likewise.
18575 (gimple_omp_taskreg_set_data_arg): Likewise.
18576 (gimple_omp_task_copy_fn): Likewise.
18577 (gimple_omp_task_copy_fn_ptr): Likewise.
18578 (gimple_omp_task_set_copy_fn): Likewise.
18579 (gimple_omp_task_arg_size): Likewise.
18580 (gimple_omp_task_arg_size_ptr): Likewise.
18581 (gimple_omp_task_set_arg_size): Likewise.
18582 (gimple_omp_task_arg_align): Likewise.
18583 (gimple_omp_task_arg_align_ptr): Likewise.
18584 (gimple_omp_task_set_arg_align): Likewise.
18585 (gimple_omp_single_clauses): Likewise.
18586 (gimple_omp_single_clauses_ptr): Likewise.
18587 (gimple_omp_single_set_clauses): Likewise.
18588 (gimple_omp_target_clauses): Likewise.
18589 (gimple_omp_target_clauses_ptr): Likewise.
18590 (gimple_omp_target_set_clauses): Likewise.
18591 (gimple_omp_target_child_fn): Likewise.
18592 (gimple_omp_target_child_fn_ptr): Likewise.
18593 (gimple_omp_target_set_child_fn): Likewise.
18594 (gimple_omp_target_data_arg): Likewise.
18595 (gimple_omp_target_data_arg_ptr): Likewise.
18596 (gimple_omp_target_set_data_arg): Likewise.
18597 (gimple_omp_teams_clauses): Likewise.
18598 (gimple_omp_teams_clauses_ptr): Likewise.
18599 (gimple_omp_teams_set_clauses): Likewise.
18600 (gimple_omp_sections_clauses): Likewise.
18601 (gimple_omp_sections_clauses_ptr): Likewise.
18602 (gimple_omp_sections_set_clauses): Likewise.
18603 (gimple_omp_sections_control): Likewise.
18604 (gimple_omp_sections_control_ptr): Likewise.
18605 (gimple_omp_sections_set_control): Likewise.
18606 (gimple_omp_for_set_cond): Likewise.
18607 (gimple_omp_for_cond): Likewise.
18608 (gimple_omp_atomic_store_set_val): Likewise.
18609 (gimple_omp_atomic_store_val): Likewise.
18610 (gimple_omp_atomic_store_val_ptr): Likewise.
18611 (gimple_omp_atomic_load_set_lhs): Likewise.
18612 (gimple_omp_atomic_load_lhs): Likewise.
18613 (gimple_omp_atomic_load_lhs_ptr): Likewise.
18614 (gimple_omp_atomic_load_set_rhs): Likewise.
18615 (gimple_omp_atomic_load_rhs): Likewise.
18616 (gimple_omp_atomic_load_rhs_ptr): Likewise.
18617 (gimple_omp_continue_control_def): Likewise.
18618 (gimple_omp_continue_control_def_ptr): Likewise.
18619 (gimple_omp_continue_set_control_def): Likewise.
18620 (gimple_omp_continue_control_use): Likewise.
18621 (gimple_omp_continue_control_use_ptr): Likewise.
18622 (gimple_omp_continue_set_control_use): Likewise.
18623 (gimple_transaction_body_ptr): Likewise.
18624 (gimple_transaction_label): Likewise.
18625 (gimple_transaction_label_ptr): Likewise.
18626 (gimple_transaction_set_body): Likewise.
18627 (gimple_transaction_set_label): Likewise.
18629 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
18630 * ipa-inline-analysis.c (inline_write_summary): Likewise.
18631 * ipa-ref.c (ipa_record_reference): Likewise.
18632 * ipa-reference.c (analyze_function): Likewise.
18633 (ipa_reference_write_optimization_summary): Likewise.
18634 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
18635 (address_taken_from_non_vtable_p): Likewise.
18636 (comdat_can_be_unshared_p_1): Likewise.
18637 * lto-cgraph.c (lto_output_ref): Likewise.
18638 (add_references): Likewise.
18639 (compute_ltrans_boundary): Likewise.
18640 (output_symtab): Likewise.
18641 (input_ref): Likewise.
18642 (input_cgraph_1): Likewise.
18643 (output_cgraph_opt_summary): Likewise.
18644 * lto-streamer-out.c (lto_output): Likewise.
18645 (output_symbol_p): Likewise.
18646 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
18647 (lsei_start_function_in_partition): Likewise.
18648 (lsei_next_variable_in_partition): Likewise.
18649 (lsei_start_variable_in_partition): Likewise.
18650 * symtab.c (insert_to_assembler_name_hash): Likewise.
18651 (unlink_from_assembler_name_hash): Likewise.
18652 (symtab_unregister_node): Likewise.
18653 (symtab_remove_node): Likewise.
18654 (dump_symtab_node): Likewise.
18655 (verify_symtab_base): Likewise.
18656 (verify_symtab_node): Likewise.
18657 (symtab_make_decl_local): Likewise.
18658 (symtab_alias_ultimate_target): Likewise.
18659 (symtab_resolve_alias): Likewise.
18660 (symtab_get_symbol_partitioning_class): Likewise.
18661 * tree-phinodes.c (allocate_phi_node): Likewise.
18662 (reserve_phi_args_for_new_edge): Likewise.
18663 (remove_phi_args): Likewise.
18664 * varpool.c (varpool_node_for_asm): Likewise.
18665 (varpool_remove_unreferenced_decls): Likewise.
18667 2014-04-23 Jeff Law <law@redhat.com>
18669 PR tree-optimization/60902
18670 * tree-ssa-threadedge.c
18671 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
18672 invalidate outputs from statements that do not produce useful
18673 outputs for threading.
18675 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
18677 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
18678 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
18679 machine descriptions for Stack Smashing Protector.
18681 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
18683 * aarch64.md (<optab>_rol<mode>3): New pattern.
18684 (<optab>_rolsi3_uxtw): Likewise.
18685 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
18687 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
18689 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
18690 (arm_cortex_a12_tune): Likewise.
18692 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18694 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
18696 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18698 * config/arm/arm.md (arm_rev16si2): New pattern.
18699 (arm_rev16si2_alt): Likewise.
18700 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
18702 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18704 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
18705 (rev16<mode>2_alt): Likewise.
18706 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
18707 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
18708 (aarch_rev16_shleft_mask_imm_p): Likewise.
18709 (aarch_rev16_p_1): Likewise.
18710 (aarch_rev16_p): Likewise.
18711 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
18712 (aarch_rev16_shright_mask_imm_p): Likewise.
18713 (aarch_rev16_shleft_mask_imm_p): Likewise.
18715 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18717 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
18718 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
18720 (cortex_a53_extra_costs): Likewise.
18721 (cortex_a57_extra_costs): Likewise.
18722 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
18723 (cortexa7_extra_costs): Likewise.
18724 (cortexa8_extra_costs): Likewise.
18725 (cortexa12_extra_costs): Likewise.
18726 (cortexa15_extra_costs): Likewise.
18727 (v7m_extra_costs): Likewise.
18728 (arm_new_rtx_costs): Handle BSWAP.
18730 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18732 * config/arm/arm.c (cortexa8_extra_costs): New table.
18733 (arm_cortex_a8_tune): New tuning struct.
18734 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
18736 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18738 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
18740 2014-04-23 Richard Biener <rguenther@suse.de>
18742 * Makefile.in (OBJS): Remove loop-unswitch.o.
18743 * tree-pass.h (make_pass_rtl_unswitch): Remove.
18744 * passes.def (pass_rtl_unswitch): Likewise.
18745 * loop-init.c (gate_rtl_unswitch): Likewise.
18746 (rtl_unswitch): Likewise.
18747 (pass_data_rtl_unswitch): Likewise.
18748 (pass_rtl_unswitch): Likewise.
18749 (make_pass_rtl_unswitch): Likewise.
18750 * rtl.h (reversed_condition): Likewise.
18751 (compare_and_jump_seq): Likewise.
18752 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
18754 * loop-unroll.c (compare_and_jump_seq): Likewise.
18756 2014-04-23 Richard Biener <rguenther@suse.de>
18758 PR tree-optimization/60903
18759 * tree-ssa-loop-im.c (analyze_memory_references): Remove
18760 commented code block.
18761 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
18762 loop flags to newly created BBs and edges.
18764 2014-04-23 Nick Clifton <nickc@redhat.com>
18766 * config/msp430/msp430.c (msp430_handle_option): Move function
18768 (msp430_option_override): Simplify mcu and mcpu option handling.
18769 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
18770 support for -mhwmult command line option.
18771 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
18772 -mhwmult command line option.
18773 (msp430_hwmult_enabled): Delete.
18774 (msp43o_output_labelref): Add support for -mhwmult command line option.
18775 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
18776 (umulsidi3): Likewise.
18777 * config/msp430/msp430.opt (mmcu): Add Report attribute.
18778 (mcpu, mlarge, msmall): Likewise.
18779 (mhwmult): New option.
18780 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
18782 (msp430_is_f5_mcu): Remove prototype.
18783 (msp430_use_f5_series_hwmult): Add prototype.
18784 * config/msp430/msp430-opts.h: New file.
18785 * common/config/msp430: New directory.
18786 * common/config/msp430/msp430-common.c: New file.
18787 * config.gcc (msp430): Remove target_has_targetm_common.
18788 * doc/invoke.texi: Document -mhwmult command line option.
18790 2014-04-23 Nick Clifton <nickc@redhat.com>
18792 * config/i386/cygwin.h (ENDFILE_SPEC): Include
18793 default-manifest.o if it can be found in the search path.
18794 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
18796 2014-04-23 Terry Guo <terry.guo@arm.com>
18798 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
18800 2014-04-23 Richard Biener <rguenther@suse.de>
18802 PR middle-end/60895
18803 * tree-inline.c (declare_return_variable): Use mark_addressable.
18805 2014-04-23 Richard Biener <rguenther@suse.de>
18807 PR middle-end/60891
18808 * loop-init.c (loop_optimizer_init): Make sure to apply
18809 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
18811 2014-04-22 Jakub Jelinek <jakub@redhat.com>
18814 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
18816 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
18817 if flag_sanitize_undefined_trap_on_error.
18818 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
18819 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
18820 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
18821 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
18822 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
18823 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
18824 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
18825 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
18826 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
18827 * ubsan.c (ubsan_instrument_unreachable): Return
18828 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
18829 (ubsan_expand_null_ifn): Emit __builtin_trap ()
18830 if flag_sanitize_undefined_trap_on_error and
18831 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
18832 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
18833 instrument_bool_enum_load): Emit __builtin_trap () if
18834 flag_sanitize_undefined_trap_on_error and
18835 __builtin_handle_*_abort () if !flag_sanitize_recover.
18836 * doc/invoke.texi (-fsanitize-recover,
18837 -fsanitize-undefined-trap-on-error): Document.
18839 2014-04-22 Christian Bruel <christian.bruel@st.com>
18841 * config/sh/sh.md (mov<mode>): Replace movQIHI.
18842 Force immediates to SImode.
18844 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
18846 * config/nios2/nios2.md (UNSPEC_ROUND): New.
18847 (lroundsfsi2): New.
18848 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
18849 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
18850 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
18851 (nios2_fpu_insn): Add entry for round.
18852 (N2FPU_NO_ERRNO_P): Define.
18853 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
18855 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
18857 2014-04-22 Richard Henderson <rth@redhat.com>
18859 * config/aarch64/aarch64 (addti3, subti3): New expanders.
18860 (add<GPI>3_compare0): Remove leading * from name.
18861 (add<GPI>3_carryin): Likewise.
18862 (sub<GPI>3_compare0): Likewise.
18863 (sub<GPI>3_carryin): Likewise.
18864 (<su_optab>mulditi3): New expander.
18865 (multi3): New expander.
18866 (madd<GPI>): Remove leading * from name.
18868 2014-04-22 Martin Jambor <mjambor@suse.cz>
18870 * cgraphclones.c (cgraph_function_versioning): Copy
18871 ipa_transforms_to_apply instead of asserting it is empty.
18873 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
18876 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
18877 on count_exp to get mode.
18879 2014-04-22 Andrew Pinski <apinski@cavium.com>
18881 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
18882 Handle TLS for ILP32.
18883 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
18884 (tlsie_small_<mode>): this and handle PTR.
18885 (tlsie_small_sidi): New pattern.
18886 (tlsle_small): Change to an expand to handle ILP32.
18887 (tlsle_small_<mode>): New pattern.
18888 (tlsdesc_small): Rename to ...
18889 (tlsdesc_small_<mode>): this and handle PTR.
18891 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18893 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
18895 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
18897 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
18898 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
18899 (aarch64_types_signed_poly_qualifiers): Likewise.
18900 (aarch64_types_unsigned_signed_qualifiers): Likewise.
18901 (aarch64_types_poly_signed_qualifiers): Likewise.
18902 (TYPES_REINTERP_SS): Type macro added.
18903 (TYPES_REINTERP_SU): Likewise.
18904 (TYPES_REINTERP_SP): Likewise.
18905 (TYPES_REINTERP_US): Likewise.
18906 (TYPES_REINTERP_PS): Likewise.
18907 (aarch64_fold_builtin): New expression folding added.
18908 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
18909 Declarations removed.
18910 (REINTERP_SS): Declarations added.
18911 (REINTERP_US): Likewise.
18912 (REINTERP_PS): Likewise.
18913 (REINTERP_SU): Likewise.
18914 (REINTERP_SP): Likewise.
18915 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
18916 (vreinterpretq_p8_f64): Likewise.
18917 (vreinterpret_p16_f64): Likewise.
18918 (vreinterpretq_p16_f64): Likewise.
18919 (vreinterpret_f32_f64): Likewise.
18920 (vreinterpretq_f32_f64): Likewise.
18921 (vreinterpret_f64_f32): Likewise.
18922 (vreinterpret_f64_p8): Likewise.
18923 (vreinterpret_f64_p16): Likewise.
18924 (vreinterpret_f64_s8): Likewise.
18925 (vreinterpret_f64_s16): Likewise.
18926 (vreinterpret_f64_s32): Likewise.
18927 (vreinterpret_f64_s64): Likewise.
18928 (vreinterpret_f64_u8): Likewise.
18929 (vreinterpret_f64_u16): Likewise.
18930 (vreinterpret_f64_u32): Likewise.
18931 (vreinterpret_f64_u64): Likewise.
18932 (vreinterpretq_f64_f32): Likewise.
18933 (vreinterpretq_f64_p8): Likewise.
18934 (vreinterpretq_f64_p16): Likewise.
18935 (vreinterpretq_f64_s8): Likewise.
18936 (vreinterpretq_f64_s16): Likewise.
18937 (vreinterpretq_f64_s32): Likewise.
18938 (vreinterpretq_f64_s64): Likewise.
18939 (vreinterpretq_f64_u8): Likewise.
18940 (vreinterpretq_f64_u16): Likewise.
18941 (vreinterpretq_f64_u32): Likewise.
18942 (vreinterpretq_f64_u64): Likewise.
18943 (vreinterpret_s64_f64): Likewise.
18944 (vreinterpretq_s64_f64): Likewise.
18945 (vreinterpret_u64_f64): Likewise.
18946 (vreinterpretq_u64_f64): Likewise.
18947 (vreinterpret_s8_f64): Likewise.
18948 (vreinterpretq_s8_f64): Likewise.
18949 (vreinterpret_s16_f64): Likewise.
18950 (vreinterpretq_s16_f64): Likewise.
18951 (vreinterpret_s32_f64): Likewise.
18952 (vreinterpretq_s32_f64): Likewise.
18953 (vreinterpret_u8_f64): Likewise.
18954 (vreinterpretq_u8_f64): Likewise.
18955 (vreinterpret_u16_f64): Likewise.
18956 (vreinterpretq_u16_f64): Likewise.
18957 (vreinterpret_u32_f64): Likewise.
18958 (vreinterpretq_u32_f64): Likewise.
18960 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
18962 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
18963 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
18964 (vreinterpret_p8_s8): Likewise.
18965 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
18966 (vreinterpret_p8_s16): Likewise.
18967 (vreinterpret_p8_s32): Likewise.
18968 (vreinterpret_p8_s64): Likewise.
18969 (vreinterpret_p8_f32): Likewise.
18970 (vreinterpret_p8_u8): Likewise.
18971 (vreinterpret_p8_u16): Likewise.
18972 (vreinterpret_p8_u32): Likewise.
18973 (vreinterpret_p8_u64): Likewise.
18974 (vreinterpret_p8_p16): Likewise.
18975 (vreinterpretq_p8_s8): Likewise.
18976 (vreinterpretq_p8_s16): Likewise.
18977 (vreinterpretq_p8_s32): Likewise.
18978 (vreinterpretq_p8_s64): Likewise.
18979 (vreinterpretq_p8_f32): Likewise.
18980 (vreinterpretq_p8_u8): Likewise.
18981 (vreinterpretq_p8_u16): Likewise.
18982 (vreinterpretq_p8_u32): Likewise.
18983 (vreinterpretq_p8_u64): Likewise.
18984 (vreinterpretq_p8_p16): Likewise.
18985 (vreinterpret_p16_s8): Likewise.
18986 (vreinterpret_p16_s16): Likewise.
18987 (vreinterpret_p16_s32): Likewise.
18988 (vreinterpret_p16_s64): Likewise.
18989 (vreinterpret_p16_f32): Likewise.
18990 (vreinterpret_p16_u8): Likewise.
18991 (vreinterpret_p16_u16): Likewise.
18992 (vreinterpret_p16_u32): Likewise.
18993 (vreinterpret_p16_u64): Likewise.
18994 (vreinterpret_p16_p8): Likewise.
18995 (vreinterpretq_p16_s8): Likewise.
18996 (vreinterpretq_p16_s16): Likewise.
18997 (vreinterpretq_p16_s32): Likewise.
18998 (vreinterpretq_p16_s64): Likewise.
18999 (vreinterpretq_p16_f32): Likewise.
19000 (vreinterpretq_p16_u8): Likewise.
19001 (vreinterpretq_p16_u16): Likewise.
19002 (vreinterpretq_p16_u32): Likewise.
19003 (vreinterpretq_p16_u64): Likewise.
19004 (vreinterpretq_p16_p8): Likewise.
19005 (vreinterpret_f32_s8): Likewise.
19006 (vreinterpret_f32_s16): Likewise.
19007 (vreinterpret_f32_s32): Likewise.
19008 (vreinterpret_f32_s64): Likewise.
19009 (vreinterpret_f32_u8): Likewise.
19010 (vreinterpret_f32_u16): Likewise.
19011 (vreinterpret_f32_u32): Likewise.
19012 (vreinterpret_f32_u64): Likewise.
19013 (vreinterpret_f32_p8): Likewise.
19014 (vreinterpret_f32_p16): Likewise.
19015 (vreinterpretq_f32_s8): Likewise.
19016 (vreinterpretq_f32_s16): Likewise.
19017 (vreinterpretq_f32_s32): Likewise.
19018 (vreinterpretq_f32_s64): Likewise.
19019 (vreinterpretq_f32_u8): Likewise.
19020 (vreinterpretq_f32_u16): Likewise.
19021 (vreinterpretq_f32_u32): Likewise.
19022 (vreinterpretq_f32_u64): Likewise.
19023 (vreinterpretq_f32_p8): Likewise.
19024 (vreinterpretq_f32_p16): Likewise.
19025 (vreinterpret_s64_s8): Likewise.
19026 (vreinterpret_s64_s16): Likewise.
19027 (vreinterpret_s64_s32): Likewise.
19028 (vreinterpret_s64_f32): Likewise.
19029 (vreinterpret_s64_u8): Likewise.
19030 (vreinterpret_s64_u16): Likewise.
19031 (vreinterpret_s64_u32): Likewise.
19032 (vreinterpret_s64_u64): Likewise.
19033 (vreinterpret_s64_p8): Likewise.
19034 (vreinterpret_s64_p16): Likewise.
19035 (vreinterpretq_s64_s8): Likewise.
19036 (vreinterpretq_s64_s16): Likewise.
19037 (vreinterpretq_s64_s32): Likewise.
19038 (vreinterpretq_s64_f32): Likewise.
19039 (vreinterpretq_s64_u8): Likewise.
19040 (vreinterpretq_s64_u16): Likewise.
19041 (vreinterpretq_s64_u32): Likewise.
19042 (vreinterpretq_s64_u64): Likewise.
19043 (vreinterpretq_s64_p8): Likewise.
19044 (vreinterpretq_s64_p16): Likewise.
19045 (vreinterpret_u64_s8): Likewise.
19046 (vreinterpret_u64_s16): Likewise.
19047 (vreinterpret_u64_s32): Likewise.
19048 (vreinterpret_u64_s64): Likewise.
19049 (vreinterpret_u64_f32): Likewise.
19050 (vreinterpret_u64_u8): Likewise.
19051 (vreinterpret_u64_u16): Likewise.
19052 (vreinterpret_u64_u32): Likewise.
19053 (vreinterpret_u64_p8): Likewise.
19054 (vreinterpret_u64_p16): Likewise.
19055 (vreinterpretq_u64_s8): Likewise.
19056 (vreinterpretq_u64_s16): Likewise.
19057 (vreinterpretq_u64_s32): Likewise.
19058 (vreinterpretq_u64_s64): Likewise.
19059 (vreinterpretq_u64_f32): Likewise.
19060 (vreinterpretq_u64_u8): Likewise.
19061 (vreinterpretq_u64_u16): Likewise.
19062 (vreinterpretq_u64_u32): Likewise.
19063 (vreinterpretq_u64_p8): Likewise.
19064 (vreinterpretq_u64_p16): Likewise.
19065 (vreinterpret_s8_s16): Likewise.
19066 (vreinterpret_s8_s32): Likewise.
19067 (vreinterpret_s8_s64): Likewise.
19068 (vreinterpret_s8_f32): Likewise.
19069 (vreinterpret_s8_u8): Likewise.
19070 (vreinterpret_s8_u16): Likewise.
19071 (vreinterpret_s8_u32): Likewise.
19072 (vreinterpret_s8_u64): Likewise.
19073 (vreinterpret_s8_p8): Likewise.
19074 (vreinterpret_s8_p16): Likewise.
19075 (vreinterpretq_s8_s16): Likewise.
19076 (vreinterpretq_s8_s32): Likewise.
19077 (vreinterpretq_s8_s64): Likewise.
19078 (vreinterpretq_s8_f32): Likewise.
19079 (vreinterpretq_s8_u8): Likewise.
19080 (vreinterpretq_s8_u16): Likewise.
19081 (vreinterpretq_s8_u32): Likewise.
19082 (vreinterpretq_s8_u64): Likewise.
19083 (vreinterpretq_s8_p8): Likewise.
19084 (vreinterpretq_s8_p16): Likewise.
19085 (vreinterpret_s16_s8): Likewise.
19086 (vreinterpret_s16_s32): Likewise.
19087 (vreinterpret_s16_s64): Likewise.
19088 (vreinterpret_s16_f32): Likewise.
19089 (vreinterpret_s16_u8): Likewise.
19090 (vreinterpret_s16_u16): Likewise.
19091 (vreinterpret_s16_u32): Likewise.
19092 (vreinterpret_s16_u64): Likewise.
19093 (vreinterpret_s16_p8): Likewise.
19094 (vreinterpret_s16_p16): Likewise.
19095 (vreinterpretq_s16_s8): Likewise.
19096 (vreinterpretq_s16_s32): Likewise.
19097 (vreinterpretq_s16_s64): Likewise.
19098 (vreinterpretq_s16_f32): Likewise.
19099 (vreinterpretq_s16_u8): Likewise.
19100 (vreinterpretq_s16_u16): Likewise.
19101 (vreinterpretq_s16_u32): Likewise.
19102 (vreinterpretq_s16_u64): Likewise.
19103 (vreinterpretq_s16_p8): Likewise.
19104 (vreinterpretq_s16_p16): Likewise.
19105 (vreinterpret_s32_s8): Likewise.
19106 (vreinterpret_s32_s16): Likewise.
19107 (vreinterpret_s32_s64): Likewise.
19108 (vreinterpret_s32_f32): Likewise.
19109 (vreinterpret_s32_u8): Likewise.
19110 (vreinterpret_s32_u16): Likewise.
19111 (vreinterpret_s32_u32): Likewise.
19112 (vreinterpret_s32_u64): Likewise.
19113 (vreinterpret_s32_p8): Likewise.
19114 (vreinterpret_s32_p16): Likewise.
19115 (vreinterpretq_s32_s8): Likewise.
19116 (vreinterpretq_s32_s16): Likewise.
19117 (vreinterpretq_s32_s64): Likewise.
19118 (vreinterpretq_s32_f32): Likewise.
19119 (vreinterpretq_s32_u8): Likewise.
19120 (vreinterpretq_s32_u16): Likewise.
19121 (vreinterpretq_s32_u32): Likewise.
19122 (vreinterpretq_s32_u64): Likewise.
19123 (vreinterpretq_s32_p8): Likewise.
19124 (vreinterpretq_s32_p16): Likewise.
19125 (vreinterpret_u8_s8): Likewise.
19126 (vreinterpret_u8_s16): Likewise.
19127 (vreinterpret_u8_s32): Likewise.
19128 (vreinterpret_u8_s64): Likewise.
19129 (vreinterpret_u8_f32): Likewise.
19130 (vreinterpret_u8_u16): Likewise.
19131 (vreinterpret_u8_u32): Likewise.
19132 (vreinterpret_u8_u64): Likewise.
19133 (vreinterpret_u8_p8): Likewise.
19134 (vreinterpret_u8_p16): Likewise.
19135 (vreinterpretq_u8_s8): Likewise.
19136 (vreinterpretq_u8_s16): Likewise.
19137 (vreinterpretq_u8_s32): Likewise.
19138 (vreinterpretq_u8_s64): Likewise.
19139 (vreinterpretq_u8_f32): Likewise.
19140 (vreinterpretq_u8_u16): Likewise.
19141 (vreinterpretq_u8_u32): Likewise.
19142 (vreinterpretq_u8_u64): Likewise.
19143 (vreinterpretq_u8_p8): Likewise.
19144 (vreinterpretq_u8_p16): Likewise.
19145 (vreinterpret_u16_s8): Likewise.
19146 (vreinterpret_u16_s16): Likewise.
19147 (vreinterpret_u16_s32): Likewise.
19148 (vreinterpret_u16_s64): Likewise.
19149 (vreinterpret_u16_f32): Likewise.
19150 (vreinterpret_u16_u8): Likewise.
19151 (vreinterpret_u16_u32): Likewise.
19152 (vreinterpret_u16_u64): Likewise.
19153 (vreinterpret_u16_p8): Likewise.
19154 (vreinterpret_u16_p16): Likewise.
19155 (vreinterpretq_u16_s8): Likewise.
19156 (vreinterpretq_u16_s16): Likewise.
19157 (vreinterpretq_u16_s32): Likewise.
19158 (vreinterpretq_u16_s64): Likewise.
19159 (vreinterpretq_u16_f32): Likewise.
19160 (vreinterpretq_u16_u8): Likewise.
19161 (vreinterpretq_u16_u32): Likewise.
19162 (vreinterpretq_u16_u64): Likewise.
19163 (vreinterpretq_u16_p8): Likewise.
19164 (vreinterpretq_u16_p16): Likewise.
19165 (vreinterpret_u32_s8): Likewise.
19166 (vreinterpret_u32_s16): Likewise.
19167 (vreinterpret_u32_s32): Likewise.
19168 (vreinterpret_u32_s64): Likewise.
19169 (vreinterpret_u32_f32): Likewise.
19170 (vreinterpret_u32_u8): Likewise.
19171 (vreinterpret_u32_u16): Likewise.
19172 (vreinterpret_u32_u64): Likewise.
19173 (vreinterpret_u32_p8): Likewise.
19174 (vreinterpret_u32_p16): Likewise.
19175 (vreinterpretq_u32_s8): Likewise.
19176 (vreinterpretq_u32_s16): Likewise.
19177 (vreinterpretq_u32_s32): Likewise.
19178 (vreinterpretq_u32_s64): Likewise.
19179 (vreinterpretq_u32_f32): Likewise.
19180 (vreinterpretq_u32_u8): Likewise.
19181 (vreinterpretq_u32_u16): Likewise.
19182 (vreinterpretq_u32_u64): Likewise.
19183 (vreinterpretq_u32_p8): Likewise.
19184 (vreinterpretq_u32_p16): Likewise.
19186 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19188 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19190 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19192 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19193 (vqnegd_s64): Likewise.
19194 (vqabs_s64): Likewise.
19195 (vqabsd_s64): Likewise.
19197 2014-04-22 Richard Henderson <rth@redhat.com>
19199 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19200 computation to the top of the loop.
19202 2014-04-22 Renlin <renlin.li@arm.com>
19203 Jiong Wang <jiong.wang@arm.com>
19205 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19206 * config/aarch64/aarch64.c (aarch64_layout_frame)
19207 (aarch64_initial_elimination_offset): Likewise.
19209 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19211 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19214 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19216 * machmode.h (bitwise_mode_for_mode): Declare.
19217 * stor-layout.h (bitwise_type_for_mode): Likewise.
19218 * stor-layout.c (bitwise_mode_for_mode): New function.
19219 (bitwise_type_for_mode): Likewise.
19220 * builtins.c (fold_builtin_memory_op): Use it instead of
19221 int_mode_for_mode and build_nonstandard_integer_type.
19223 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19225 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19226 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19227 (*-*-solaris2*): Simplify.
19228 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19229 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19230 *-*-solaris2.9* handling.
19232 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19234 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19235 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19236 handling, simplify.
19237 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19238 * configure: Regenerate.
19240 * config/i386/sol2-9.h: Remove.
19242 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19243 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19244 Remove Solaris 9 references.
19246 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19248 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19249 (floatuns<GPI:mode><GPF:mode>2): Remove.
19250 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19251 and floatuns conversions.
19252 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19253 and floatuns conversions.
19254 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19255 (w1,w2): New mode attributes for inequal width conversions.
19257 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19259 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19260 the output asm format.
19262 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19264 * config/aarch64/aarch64-simd.md
19265 (aarch64_cm<optab>di): Always split.
19266 (*aarch64_cm<optab>di): New.
19267 (aarch64_cmtstdi): Always split.
19268 (*aarch64_cmtstdi): New.
19270 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19272 PR tree-optimization/60823
19273 * omp-low.c (ipa_simd_modify_function_body): Go through
19274 all SSA_NAMEs and for those refering to vector arguments
19275 which are going to be replaced adjust SSA_NAME_VAR and,
19276 if it is a default definition, change it into a non-default
19277 definition assigned at the beginning of function from new_decl.
19278 (ipa_simd_modify_stmt_ops): Rewritten.
19279 * tree-dfa.c (set_ssa_default_def): When removing default def,
19280 check for NULL loc instead of NULL *loc.
19282 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19284 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19285 restrictions on core registers for DImode values in Thumb2.
19287 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19289 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19290 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19292 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19294 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
19295 (*iordi_notzesidi_di): Likewise.
19296 (*iordi_notsesidi_di): Likewise.
19298 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19300 * config/arm/arm-protos.h (tune_params): New struct members.
19301 * config/arm/arm.c: Initialise tune_params per processor.
19302 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
19303 for speed, based on new tune_params.
19305 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19307 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
19308 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
19309 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
19310 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
19311 * config/aarch64/arm_neon.h (vrnd_f64): Added.
19312 (vrnda_f64): Likewise.
19313 (vrndi_f64): Likewise.
19314 (vrndm_f64): Likewise.
19315 (vrndn_f64): Likewise.
19316 (vrndp_f64): Likewise.
19317 (vrndx_f64): Likewise.
19319 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19321 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
19322 GET_MODE_SIZE argument is enum machine_mode.
19324 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19327 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
19328 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
19330 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
19332 PR middle-end/60281
19333 * asan.c (asan_emit_stack_protection): Force the base to align to
19334 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
19335 appropriate bits if STRICT_ALIGNMENT.
19336 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
19338 (expand_used_vars): Leave a space in the stack frame for alignment
19339 if STRICT_ALIGNMENT.
19341 2014-04-21 David Malcolm <dmalcolm@redhat.com>
19343 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
19345 (gimple_store_p): Likewise.
19346 (gimple_assign_load_p): Likewise.
19347 (gimple_assign_cast_p): Likewise.
19348 (gimple_clobber_p): Likewise.
19350 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
19351 rather than a gimple.
19352 (gimple_assign_cast_p): Likewise.
19354 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19357 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
19358 If mode is DDmode and TARGET_E500_DOUBLE allow move.
19360 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
19361 more debug information for E500 if -mdebug=reg.
19363 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
19366 * config/i386/i386.c (ix86_expand_builtin)
19367 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
19368 register for target RTX.
19369 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
19371 2014-04-18 Cong Hou <congh@google.com>
19373 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
19374 the widen-mult pattern by handling two operands with different sizes,
19375 and operands whose size is smaller than half of the result type.
19377 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19379 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
19380 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
19381 (do_estimate_edge_time): Compute it.
19382 * ipa-inline.c (want_inline_small_function_p): Bypass
19383 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
19385 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19387 * ipa-inline.c (spec_rem): New static variable.
19388 (dump_overall_stats): New function.
19389 (dump_inline_stats): New function.
19391 2014-04-18 Richard Henderson <rth@redhat.com>
19393 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
19394 to GET_MODE_SIZE, not a reg_class_t.
19396 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19398 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
19399 (vsx_xxmrglw_<mode>): Likewise.
19401 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
19404 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
19405 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
19406 (rs6000_init_hard_regno_mode_ok): Likewise.
19408 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
19410 * ipa-inline.c (inline_small_functions): Account only non-cold
19412 * doc/invoke.texi (inline-unit-growth): Update documentation.
19414 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
19416 * config/rs6000/rs6000.md (addti3, subti3): New.
19418 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
19421 * config/i386/i386.c (ix86_expand_clear): Remove outdated
19422 comment. Check optimize_insn_for_size_p instead of
19423 optimize_insn_for_speed_p.
19425 2014-04-17 Martin Jambor <mjambor@suse.cz>
19427 * gimple-iterator.c (gsi_start_edge): New function.
19428 * gimple-iterator.h (gsi_start_edge): Declare.
19429 * tree-sra.c (single_non_eh_succ): New function.
19430 (disqualify_ops_if_throwing_stmt): Renamed to
19431 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
19432 having one non-EH successor BB.
19433 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
19434 generate loads into replacements.
19435 (sra_modify_assign): Likewise and and also use the simple path for
19437 (sra_modify_function_body): Commit statements on edges.
19439 2014-04-17 Richard Biener <rguenther@suse.de>
19441 PR middle-end/60849
19442 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
19443 comparison results and add clarifying comment.
19445 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19447 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
19448 (blank_mode): Initialize it.
19449 (emit_mode_size_inline, emit_mode_nunits_inline,
19450 emit_mode_inner_inline): New functions.
19451 (emit_insn_modes_h): Call them and surround their output with
19452 #if GCC_VERSION >= 4001 ... #endif.
19453 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
19454 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
19455 mode_* arrays if the argument is __builtin_constant_p.
19456 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
19457 is enum machine_mode.
19459 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19461 * passes.c (opt_pass::execute): Adjust.
19462 (pass_manager::execute_pass_mode_switching): Likewise.
19463 (early_local_passes::execute): Likewise.
19464 (execute_one_pass): Pass cfun to the pass's execute method.
19465 * tree-pass.h (opt_pass::execute): Add function * argument.
19466 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19467 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19468 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19469 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19470 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19471 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
19472 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
19473 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19474 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19475 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
19476 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
19477 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
19478 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
19479 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
19480 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19481 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19482 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19483 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
19484 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19485 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19486 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19487 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19488 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19489 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19490 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19491 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19492 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19493 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19494 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19497 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19499 * passes.c (opt_pass::gate): Take function * argument.
19500 (gate_all_early_local_passes): Merge into
19501 (early_local_passes::gate): this.
19502 (gate_all_early_optimizations): Merge into
19503 (all_early_optimizations::gate): this.
19504 (gate_all_optimizations): Mege into
19505 (all_optimizations::gate): this.
19506 (gate_all_optimizations_g): Merge into
19507 (all_optimizations_g::gate): this.
19508 (gate_rest_of_compilation): Mege into
19509 (rest_of_compilation::gate): this.
19510 (gate_postreload): Merge into
19511 (postreload::gate): this.
19512 (dump_one_pass): Pass cfun to the pass's gate method.
19513 (execute_ipa_summary_passes): Likewise.
19514 (execute_one_pass): Likewise.
19515 (ipa_write_summaries_2): Likewise.
19516 (ipa_write_optimization_summaries_1): Likewise.
19517 (ipa_read_summaries_1): Likewise.
19518 (ipa_read_optimization_summaries_1): Likewise.
19519 (execute_ipa_stmt_fixups): Likewise.
19520 * tree-pass.h (opt_pass::gate): Add function * argument.
19521 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
19522 combine-stack-adj.c, combine.c, compare-elim.c,
19523 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19524 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
19525 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
19526 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
19527 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19528 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19529 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19530 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
19531 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
19532 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
19533 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19534 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19535 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
19536 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19537 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19538 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19539 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19540 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19541 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19542 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19543 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19544 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19545 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
19546 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
19547 var-tracking.c, vtable-verify.c, web.c: Adjust.
19549 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19551 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
19552 * configure: Regenerate.
19554 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19556 * passes.c (dump_one_pass): don't check pass->has_gate.
19557 (execute_ipa_summary_passes): Likewise.
19558 (execute_one_pass): Likewise.
19559 (ipa_write_summaries_2): Likewise.
19560 (ipa_write_optimization_summaries_1): Likewise.
19561 (ipa_read_optimization_summaries_1): Likewise.
19562 (execute_ipa_stmt_fixups): Likewise.
19563 * tree-pass.h (pass_data::has_gate): Remove.
19564 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19565 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19566 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19567 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19568 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19569 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
19570 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
19571 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
19572 gimple-low.c, gimple-ssa-isolate-paths.c,
19573 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
19574 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
19575 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
19576 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
19577 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
19578 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
19579 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
19580 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
19581 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
19582 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19583 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
19584 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19585 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19586 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19587 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19588 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19589 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19590 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19591 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19592 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19593 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19594 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19597 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19599 * pass_manager.h (pass_manager::register_dump_files_1): Remove
19601 * passes.c (pass_manager::register_dump_files_1): Merge into
19602 (pass_manager::register_dump_files): this, and remove its handling of
19603 properties since the pass always has the properties anyway.
19604 (pass_manager::pass_manager): Adjust.
19606 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19608 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
19609 * passes.c (pass_manager::register_dump_files_1): Remove dead code
19610 dealing with properties.
19611 (pass_manager::register_dump_files): Adjust.
19613 2014-03-20 Mark Wielaard <mjw@redhat.com>
19615 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
19616 then represent the bound as normal constant value.
19618 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19621 Forward port from 4.8 branch
19622 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
19624 * config/i386/bmiintrin.h (_blsi_u32): New.
19625 (_blsi_u64): Ditto.
19626 (_blsr_u32): Ditto.
19627 (_blsr_u64): Ditto.
19628 (_blsmsk_u32): Ditto.
19629 (_blsmsk_u64): Ditto.
19630 (_tzcnt_u32): Ditto.
19631 (_tzcnt_u64): Ditto.
19633 2014-04-17 Kito Cheng <kito@0xlab.org>
19635 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
19637 2014-04-17 Richard Biener <rguenther@suse.de>
19639 PR middle-end/60849
19640 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
19641 boolean results for comparisons.
19643 2014-04-17 Richard Biener <rguenther@suse.de>
19645 PR tree-optimization/60836
19646 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
19647 initial PHI args to be gimple values.
19649 2014-04-17 Richard Biener <rguenther@suse.de>
19651 PR tree-optimization/60841
19652 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
19653 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
19654 of stmts to SLP build.
19655 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
19656 (vect_analyze_slp): Likewise.
19657 (vect_analyze_slp_instance): Likewise.
19658 (vect_build_slp_tree): Limit overall SLP tree growth.
19659 * tree-vectorizer.h (vect_analyze_data_refs,
19660 vect_analyze_slp): Adjust prototypes.
19662 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19664 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
19667 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19669 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
19670 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
19671 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
19672 for TARGET_SLOW_PSHUFB
19674 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
19676 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
19677 * config/i386/i386.c (intel_cost): Ditto.
19679 2014-04-17 Joey Ye <joey.ye@arm.com>
19681 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
19683 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19685 * opts.c (common_handle_option): Disable -fipa-reference coorectly
19686 with -fuse-profile.
19688 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19690 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
19691 (type_all_derivations_known_p): New predicate.
19692 (type_all_ctors_visible_p): New predicate.
19693 (type_possibly_instantiated_p): New predicate.
19694 (get_odr_type): Compute all_derivations_known.
19695 (dump_odr_type): Dump the flag.
19696 (maybe_record_type): Cleanup.
19697 (record_target_from_binfo): Add bases_to_consider array;
19698 record bases for types w/o instances and skip CXX destructor.
19699 (possible_polymorphic_call_targets_1): Add bases_to_consider
19700 and consider_construction parameters; check if type may have instance.
19701 (get_polymorphic_call_info): Set maybe_in_construction to true
19702 when we know nothing.
19703 (record_targets_from_bases): Skip CXX destructors; they are
19704 never called for types in construction.
19705 (possible_polymorphic_call_targets): Do not record target when
19706 type may not have instance.
19708 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
19711 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
19712 external aliases alive, too.
19714 2014-04-16 Andrew Pinski <apinski@cavium.com>
19716 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
19719 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
19721 * final.c (compute_alignments): Do not apply loop alignment to a block
19722 falling through to the exit.
19724 2014-04-16 Catherine Moore <clm@codesourcery.com>
19726 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
19727 Adjust constraints for microMIPS store patterns.
19729 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
19731 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
19733 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
19735 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
19736 (append_use): Run at -O0.
19737 (append_vdef): Likewise.
19738 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
19739 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
19741 2014-04-16 Jakub Jelinek <jakub@redhat.com>
19743 PR tree-optimization/60844
19744 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
19745 (propagate_op_to_single_use, remove_visited_stmt_chain,
19746 linearize_expr, repropagate_negates, reassociate_bb): Use it
19747 instead of gsi_remove.
19749 2014-04-16 Martin Jambor <mjambor@suse.cz>
19751 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
19752 ipa_transforms_to_apply.
19753 (cgraph_function_versioning): Assert that old_node has empty
19754 ipa_transforms_to_apply.
19755 * trans-mem.c (ipa_tm_create_version): Likewise.
19756 * tree-inline.c (tree_function_versioning): Do not duplicate
19757 ipa_transforms_to_apply.
19759 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19762 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
19764 Pass necessary as flags on 64-bit Solaris/x86.
19765 Use lowercase relocs for x86_64-*-*.
19766 * configure: Regenerate.
19768 2014-04-15 Jan Hubicka <jh@suse.cz>
19770 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
19771 (maybe_record_node, likely_target_p): Use it.
19773 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19776 Revert following patch
19778 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19781 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
19782 software floating point or no floating point registers, do not
19783 allow any type in the FPRs. Eliminate a test for SPE SIMD types
19784 in GPRs that occurs after we tested for GPRs that would never be
19787 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
19788 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
19789 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
19790 specifically allow DDmode, since that does not use the SPE SIMD
19793 2014-03-21 Mark Wielaard <mjw@redhat.com>
19795 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
19796 as unsigned or int depending on type and value used.
19798 2014-04-15 Richard Biener <rguenther@suse.de>
19800 PR rtl-optimization/56965
19801 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
19802 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
19804 * alias.c (true_dependence_1): Do not call
19805 nonoverlapping_component_refs_p.
19806 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
19807 nonoverlapping_component_refs_p.
19808 (indirect_refs_may_alias_p): Likewise.
19810 2014-04-15 Teresa Johnson <tejohnson@google.com>
19812 * cfg.c (dump_bb_info): Fix flags check.
19813 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
19815 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19817 PR rtl-optimization/60663
19818 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
19821 2014-04-15 Richard Biener <rguenther@suse.de>
19823 * lto-streamer.h (LTO_major_version): Bump to 4.
19825 2014-04-15 Richard Biener <rguenther@suse.de>
19827 * common.opt (lto_partition_model): New enum.
19828 (flto-partition=): Merge separate options with a single with argument,
19829 add -flto-partition=one support.
19830 * flag-types.h (enum lto_partition_model): Declare.
19831 * opts.c (finish_options): Remove duplicate -flto-partition=
19833 * lto-wrapper.c (run_gcc): Adjust.
19835 2014-04-15 Richard Biener <rguenther@suse.de>
19837 * alias.c (ncr_compar): New function.
19838 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
19840 2014-04-15 Richard Biener <rguenther@suse.de>
19842 * alias.c (record_component_aliases): Do not walk BINFOs.
19844 2014-04-15 Richard Biener <rguenther@suse.de>
19846 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19847 Add struct function argument and adjust.
19848 (find_func_aliases_for_call): Likewise.
19849 (find_func_aliases): Likewise.
19850 (find_func_clobbers): Likewise.
19851 (intra_create_variable_infos): Likewise.
19852 (compute_points_to_sets): Likewise.
19853 (ipa_pta_execute): Adjust. Do not push/pop cfun.
19855 2014-04-15 Richard Biener <rguenther@suse.de>
19857 * tree.c (iterative_hash_expr): Use enum tree_code_class
19858 to store TREE_CODE_CLASS.
19859 (tree_block): Likewise.
19860 (tree_set_block): Likewise.
19861 * tree.h (fold_build_pointer_plus_loc): Use
19862 convert_to_ptrofftype_loc.
19864 2014-04-15 Jakub Jelinek <jakub@redhat.com>
19867 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
19870 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
19872 * cfgloop.h (struct loop): Move force_vectorize down.
19873 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
19874 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
19875 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
19876 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
19877 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
19878 * tree-core.h (enum annot_expr_kind): Add new kind values.
19879 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
19880 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
19882 * tree.def (ANNOTATE_EXPR): Tweak comment.
19884 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
19886 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
19889 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
19891 * tree.h (TYPE_IDENTIFIER): Declare.
19892 * tree.c (subrange_type_for_debug_p): Use it.
19893 * godump.c (go_format_type): Likewise.
19894 * dwarf2out.c (is_cxx_auto, modified_type_die,
19895 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
19896 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
19898 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
19901 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
19903 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
19905 * config/i386/i386.c (examine_argument): Return bool. Return true if
19906 parameter should be passed in memory.
19907 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
19908 (construct_container): Update calls to examine_argument.
19909 (function_arg_advance_64): Ditto.
19910 (return_in_memory_32): Merge with ix86_return_in_memory.
19911 (return_in_memory_64): Ditto.
19912 (return_in_memory_ms_64): Ditto.
19914 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
19916 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
19917 * coverage.c (coverage_compute_profile_id): Handle externally visible
19920 2014-04-14 Martin Jambor <mjambor@suse.cz>
19922 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
19923 DECL_DISREGARD_INLINE_LIMITS functions.
19925 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
19928 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
19930 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
19933 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
19934 optimize_insn_for_speed_p instead of
19935 optimize_function_for_speed_p.
19937 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
19939 * doc/invoke.texi (free): Document AArch64.
19941 2014-04-14 Richard Biener <rguenther@suse.de>
19943 PR tree-optimization/60042
19944 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
19945 (insert_into_preds_of_block): Do not prevent PHI insertion
19946 for REFERENCE exprs here ...
19947 (eliminate_dom_walker::before_dom_children): ... but prevent
19948 their use here under similar conditions when applied to the
19949 IL after PRE optimizations.
19951 2014-04-14 Richard Biener <rguenther@suse.de>
19953 * passes.def: Move early points-to after early SRA.
19955 2014-04-14 Richard Biener <rguenther@suse.de>
19957 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
19958 check for which sign-changes we allow when forwarding
19959 a converted value into a switch.
19961 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
19963 * stor-layout.c (place_field): Finalize non-constant offset for the
19966 2014-04-14 Richard Biener <rguenther@suse.de>
19968 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
19970 (expand_switch_using_bit_tests_p): Likewise.
19971 (process_switch): Compute and pass on speed_p based on the
19973 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
19974 optimize_bb_for_speed_p.
19976 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
19978 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
19979 * function.h (struct function): Rename has_force_vect_loops into
19980 has_force_vectorize_loops.
19981 * lto-streamer-in.c (input_cfg): Adjust for renaming.
19982 (input_struct_function_base): Likewise.
19983 * lto-streamer-out.c (output_cfg): Likewise.
19984 (output_struct_function_base): Likewise.
19985 * omp-low.c (expand_omp_simd): Likewise.
19986 * tree-cfg.c (move_sese_region_to_fn): Likewise.
19987 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
19988 (version_loop_for_if_conversion): Likewise.
19989 (tree_if_conversion): Likewise.
19990 (main_tree_if_conversion): Likewise.
19991 (gate_tree_if_conversion): Likewise.
19992 * tree-inline.c (copy_loops): Likewise.
19993 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
19994 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
19995 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
19996 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
19997 * tree-vectorizer.c (vectorize_loops): Likewise.
19998 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20000 2014-04-14 Richard Biener <rguenther@suse.de>
20003 * lto-streamer-out.c (wrap_refs): New function.
20004 (lto_output): Wrap symbol references in global initializes in
20005 type-preserving MEM_REFs.
20007 2014-04-14 Christian Bruel <christian.bruel@st.com>
20009 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20011 2014-04-14 Christian Bruel <christian.bruel@st.com>
20013 * config/sh/sh.md (setmemqi): New expand pattern.
20014 * config/sh/sh.h (CLEAR_RATIO): Define.
20015 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20016 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20018 2014-04-14 Richard Biener <rguenther@suse.de>
20020 PR middle-end/55022
20021 * fold-const.c (negate_expr_p): Don't negate directional rounding
20023 (fold_negate_expr): Likewise.
20025 2014-04-14 Richard Biener <rguenther@suse.de>
20027 PR tree-optimization/59817
20028 PR tree-optimization/60453
20029 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20030 recursion to catch all CHRECs in the scalar evolution and restrict
20031 the predicate for the remains appropriately.
20033 2014-04-12 Catherine Moore <clm@codesourcery.com>
20035 * config/mips/constraints.md: Add new register constraint "kb".
20036 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20037 (*movhi_internal): Likewise.
20038 (*movqi_internal): Likewise.
20039 * config/mips/mips.h (M16_STORE_REGS): New register class.
20040 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20041 (REG_CLASS_CONTENTS): Likewise.
20042 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20044 2014-04-11 Tobias Burnus <burnus@net-b.de>
20047 * doc/invoke.texi (-Wformat-signedness): Document it.
20048 (Wformat=2): Mention that this enables -Wformat-signedness.
20050 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20052 * common/config/epiphany/epiphany-common.c
20053 (epiphany_option_optimization_table): Enable section anchors by
20054 default at -O1 or higher.
20055 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20056 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20057 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20058 carries no extra cost.
20059 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20060 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20061 * config/epiphany/predicates.md (memclob_operand): New predicate.
20062 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20063 Use memclob_operand predicate and X constraint for operand 3.
20065 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20067 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20068 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20071 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20073 PR rtl-optimization/60651
20074 * mode-switching.c (optimize_mode_switching): Make sure to emit
20075 sets of a lower numbered entity before sets of a higher numbered
20076 entity to a mode of the same or lower priority.
20077 When creating a seginfo for a basic block that starts with a code
20078 label, move the insertion point past the code label.
20079 (new_seginfo): Document and enforce requirement that
20080 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20081 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20082 * doc/tm.texi: Regenerate.
20084 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20087 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20089 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20091 * BASE-VER: Set to 4.10.0.
20093 2014-04-11 Tobias Burnus <burnus@net-b.de>
20096 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20097 * doc/gcc.texi (Service): Update description in the @menu
20098 * doc/invoke.texi (Option Summary): Remove misplaced and
20101 2014-04-11 Steve Ellcey <sellcey@mips.com>
20102 Jakub Jelinek <jakub@redhat.com>
20104 PR middle-end/60556
20105 * expr.c (convert_move): Use emit_store_flag_force instead of
20106 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20109 2014-04-11 Richard Biener <rguenther@suse.de>
20111 PR middle-end/60797
20112 * varasm.c (assemble_alias): Avoid endless error reporting
20113 recursion by setting TREE_ASM_WRITTEN.
20115 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20117 * config/s390/s390.md: Add a splitter for NOT rtx.
20119 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20121 PR rtl-optimization/60663
20122 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20124 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20125 Jakub Jelinek <jakub@redhat.com>
20128 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20129 flag from decl_node to node.
20131 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20134 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20135 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20136 ameliorating the cases where it can be.
20138 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20141 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20143 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20144 (loadsync_<mode>): Change mode.
20145 (load_quadpti, store_quadpti): New.
20146 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20147 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20148 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20150 2014-04-09 Cong Hou <congh@google.com>
20153 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20156 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20158 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20159 instead of vnor to exploit possible fusion opportunity in the
20161 (altivec_expand_vec_perm_const_le): Likewise.
20163 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20165 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20166 (loadsync_<mode>): Change mode.
20167 (load_quadpti, store_quadpti): New.
20168 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20169 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20171 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20174 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20175 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20176 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20178 2014-04-08 Richard Biener <rguenther@suse.de>
20180 PR middle-end/60706
20181 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20182 a 64bit widest int print double-int similar to on HWI64 hosts.
20184 2014-04-08 Richard Biener <rguenther@suse.de>
20186 PR tree-optimization/60785
20187 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20188 default defs properly.
20190 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20192 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20193 (Weffc++): Likewise.
20195 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20197 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20198 set completep to false rather than true.
20200 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20203 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20204 ARM_TARGET2_DWARF_FORMAT.
20206 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20209 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20210 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20213 2014-04-07 Richard Biener <rguenther@suse.de>
20215 PR tree-optimization/60766
20216 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20217 (may_eliminate_iv): Convert cand_value_at result to desired type.
20219 2014-04-07 Jason Merrill <jason@redhat.com>
20222 * common.opt (-fno-gnu-unique): Add.
20223 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20225 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20227 * haifa-sched.c: Fix outdated function reference and minor
20228 grammar errors in introductory comment.
20230 2014-04-07 Richard Biener <rguenther@suse.de>
20232 PR middle-end/60750
20233 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20234 for noreturn calls.
20235 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20237 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20240 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20241 size accounting for thunks.
20242 (pa_asm_output_mi_thunk): Use final_start_function() and
20243 final_end_function() to output function start and end directives.
20245 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20247 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20248 device specific ISA/ feature information. Remove short_sp and
20249 errata_skip ds. Add avr_device_specific_features enum to have device
20251 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20252 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20253 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20254 updated device specific info.
20255 * config/avr/avr-mcus.def: Merge device specific details to
20256 dev_attribute field.
20257 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20259 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20260 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20261 assembler if RMW isa supported by current device.
20262 * config/avr/genmultilib.awk: Update as device info structure changed.
20263 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20265 2014-04-04 Cong Hou <congh@google.com>
20267 PR tree-optimization/60656
20268 * tree-vect-stmts.c (supportable_widening_operation):
20269 Fix a bug that elements in a vector with vect_used_by_reduction
20270 property are incorrectly reordered when the operation on it is not
20271 consistant with the one in reduction operation.
20273 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
20275 PR rtl-optimization/60155
20276 * gcse.c (record_set_data): New function.
20277 (single_set_gcse): New function.
20278 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20279 (hoist_code): Likewise.
20280 (get_pressure_class_and_nregs): Likewise.
20282 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
20284 * explow.c (probe_stack_range): Emit a final optimization blockage.
20286 2014-04-04 Anthony Green <green@moxielogic.com>
20288 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20291 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
20294 * lto-cgraph.c (input_overwrite_node): Check that partitioning
20295 flags are set only during streaming.
20296 * ipa.c (process_references, walk_polymorphic_call_targets,
20297 symtab_remove_unreachable_nodes): Drop bodies of always inline
20298 after early inlining.
20299 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
20301 2014-04-04 Jakub Jelinek <jakub@redhat.com>
20302 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20305 * dwarf2out.c (const_ok_for_output_1): Reject expressions
20308 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20311 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
20313 (cortex_a53_fdivd): Likewise.
20315 2014-04-04 Martin Jambor <mjambor@suse.cz>
20318 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
20319 Adjust all callers.
20320 * cgraph.c (clone_of_p): Also return true if thunks match.
20321 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
20322 cgraph_function_or_thunk_node and an obsolete comment.
20323 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
20325 (build_function_decl_skip_args): Likewise.
20326 (set_new_clone_decl_and_node_flags): New function.
20327 (duplicate_thunk_for_node): Likewise.
20328 (redirect_edge_duplicating_thunks): Likewise.
20329 (cgraph_clone_node): New parameter args_to_skip, pass it to
20330 redirect_edge_duplicating_thunks which is called instead of
20331 cgraph_redirect_edge_callee.
20332 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
20333 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
20335 2014-04-04 Jeff Law <law@redhat.com>
20338 * config/arm/predicates.md (const_int_I_operand): New predicate.
20339 (const_int_M_operand): Similarly.
20340 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
20342 (insv_t2, extv_reg, extzv_t2): Likewise.
20343 (load_multiple_with_writeback): Similarly for const_int_I_operand.
20344 (pop_multiple_with_writeback_and_return): Likewise.
20345 (vfp_pop_multiple_with_writeback): Likewise
20347 2014-04-04 Richard Biener <rguenther@suse.de>
20350 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
20351 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
20353 * gimplify.h (gimple_add_tmp_var_fn): Declare.
20354 * gimplify.c (gimple_add_tmp_var_fn): New function.
20355 * gimple-expr.h (create_tmp_reg_fn): Declare.
20356 * gimple-expr.c (create_tmp_reg_fn): New function.
20357 * gimple-low.c (record_vars_into): Don't change cfun.
20358 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
20359 code generation without cfun.
20361 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
20364 * Makefile.in (install-driver): Fix shell scripting.
20366 2014-04-03 Cong Hou <congh@google.com>
20368 PR tree-optimization/60505
20369 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
20370 threshold of number of iterations below which no vectorization
20372 * tree-vect-loop.c (new_loop_vec_info):
20373 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
20374 * tree-vect-loop.c (vect_analyze_loop_operations):
20375 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
20376 * tree-vect-loop.c (vect_transform_loop):
20377 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
20378 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
20379 of iterations of the loop and see if we should build the epilogue.
20381 2014-04-03 Richard Biener <rguenther@suse.de>
20383 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
20384 (streamer_tree_cache_create): Adjust.
20385 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
20386 to allow optional nodes array.
20387 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
20388 (streamer_tree_cache_append): Likewise.
20389 (streamer_tree_cache_create): Create nodes array optionally
20390 as specified by parameter.
20391 * lto-streamer-out.c (create_output_block): Avoid maintaining
20392 the node array in the writer cache.
20393 (DFS_write_tree): Remove assertion.
20394 (produce_asm_for_decls): Free the out decl state hash table early.
20395 * lto-streamer-in.c (lto_data_in_create): Adjust for
20396 streamer_tree_cache_create prototype change.
20398 2014-04-03 Richard Biener <rguenther@suse.de>
20400 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
20401 set TREE_CHAIN to NULL_TREE.
20403 2014-04-03 Richard Biener <rguenther@suse.de>
20405 PR tree-optimization/60740
20406 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
20407 over all GIMPLE_COND operands.
20409 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
20411 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
20412 (Weffc++): Remove Scott's numbering, merge lists and reference
20415 2014-04-03 Nick Clifton <nickc@redhat.com>
20417 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
20420 2014-04-03 Martin Jambor <mjambor@suse.cz>
20422 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
20423 mention gcc_unreachable before failing.
20424 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
20427 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
20430 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
20431 inconsistent code and instead mark the context inconsistent.
20432 (possible_polymorphic_call_targets): For inconsistent contexts
20433 return empty complete list.
20435 2014-04-02 Anthony Green <green@moxielogic.com>
20437 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
20438 (extendqisi2, extendhisi2): Define.
20439 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
20440 (WCHAR_TYPE): Change to unsigned int.
20442 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20444 PR tree-optimization/60733
20445 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
20446 insertion point for PHI candidates to be the end of the feeding
20447 block for the PHI argument.
20449 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
20451 PR rtl-optimization/60650
20452 * lra-constraints.c (process_alt_operands): Decrease reject for
20453 earlyclobber matching.
20455 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20457 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
20459 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20461 * config/spu/spu.c (pad_bb): Do not crash when the last
20462 insn is CODE_FOR_blockage.
20464 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20466 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
20467 lies outside the target mode.
20469 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20472 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20473 software floating point or no floating point registers, do not
20474 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20475 in GPRs that occurs after we tested for GPRs that would never be
20478 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20479 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20480 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20481 specifically allow DDmode, since that does not use the SPE SIMD
20484 2014-04-02 Richard Biener <rguenther@suse.de>
20486 PR middle-end/60729
20487 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
20488 MODE_INTs. Properly use negv_optab.
20489 (expand_abs): Likewise.
20491 2014-04-02 Richard Biener <rguenther@suse.de>
20494 * Makefile.in (install-driver): Guard extra installs with special
20497 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
20499 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20500 Document vec_vgbbd.
20502 2014-04-01 Richard Henderson <rth@redhat.com>
20505 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
20506 alternative enabled before register allocation.
20508 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
20510 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
20511 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
20513 (nios2_large_got_address): Remove unneeded 'sym' parameter.
20514 (nios2_got_address): Update nios2_large_got_address call site.
20515 (nios2_delegitimize_address): New function.
20516 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
20517 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
20518 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
20520 2014-04-01 Martin Husemann <martin@duskware.de>
20522 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
20525 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
20527 PR rtl-optimization/60604
20528 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
20529 check from register_operand.
20530 (register_operand): Redefine in terms of general_operand.
20531 (nonmemory_operand): Use register_operand for the non-constant cases.
20533 2014-04-01 Richard Biener <rguenther@suse.de>
20535 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
20537 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
20539 * doc/invoke.texi (mapp-regs): Clarify.
20541 2014-03-31 Ulrich Drepper <drepper@gmail.com>
20543 * config/i386/avx512fintrin.h (__v32hi): Define type.
20544 (__v64qi): Likewise.
20545 (_mm512_set1_epi8): Define.
20546 (_mm512_set1_epi16): Define.
20547 (_mm512_set4_epi32): Define.
20548 (_mm512_set4_epi64): Define.
20549 (_mm512_set4_pd): Define.
20550 (_mm512_set4_ps): Define.
20551 (_mm512_setr4_epi64): Define.
20552 (_mm512_setr4_epi32): Define.
20553 (_mm512_setr4_pd): Define.
20554 (_mm512_setr4_ps): Define.
20555 (_mm512_setzero_epi32): Define.
20557 2014-03-31 Martin Jambor <mjambor@suse.cz>
20559 PR middle-end/60647
20560 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
20561 callsite_arguments_match_p. Updated all callers. Also check types of
20562 corresponding formal parameters and actual arguments.
20563 (not_all_callers_have_enough_arguments_p) Renamed to
20564 some_callers_have_mismatched_arguments_p.
20566 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
20568 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
20570 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
20573 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
20576 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
20578 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
20579 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
20581 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
20582 Use FMAMODE_NOVF512 mode iterator.
20583 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
20584 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
20585 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
20586 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
20588 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
20589 Use VF_128_256 mode iterator.
20590 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
20593 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20595 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
20596 static chain if needed.
20598 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
20601 * lra-constraints.c (index_part_to_reg): New.
20602 (process_address): Use it.
20604 2014-03-27 Jeff Law <law@redhat.com>
20605 Jakub Jelinek <jakub@redhat.com>
20608 * expr.c (do_tablejump): Use simplify_gen_binary rather than
20609 gen_rtx_{PLUS,MULT} to build up the address expression.
20611 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
20612 creating non-canonical RTL.
20614 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20617 * ipa-inline.c (want_inline_small_function_p): Short circuit large
20618 functions; reorganize to make cheap checks first.
20619 (inline_small_functions): Do not estimate growth when dumping;
20621 * ipa-inline.h (inline_summary): Add min_size.
20622 (growth_likely_positive): New function.
20623 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
20624 (set_cond_stmt_execution_predicate): Cleanup.
20625 (estimate_edge_size_and_time): Compute min_size.
20626 (estimate_calls_size_and_time): Likewise.
20627 (estimate_node_size_and_time): Likewise.
20628 (inline_update_overall_summary): Update min_size.
20629 (do_estimate_edge_time): Likewise.
20630 (do_estimate_edge_size): Update.
20631 (do_estimate_edge_hints): Update.
20632 (growth_likely_positive): New function.
20634 2014-03-28 Jakub Jelinek <jakub@redhat.com>
20637 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
20638 also if addr has VOIDmode.
20640 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20642 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
20643 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
20645 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
20646 instructions as well as AdvancedSIMD loads.
20648 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20650 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
20651 Use crypto_aese type.
20652 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
20653 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
20654 crypto_aese, crypto_aesmc. Move to types.md.
20655 * config/arm/types.md (crypto_aes): Split into crypto_aese,
20657 * config/arm/iterators.md (crypto_type): Likewise.
20659 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
20661 * cgraph.c: Include expr.h and tree-dfa.h.
20662 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
20665 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
20668 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
20669 regs from checking multi-reg pseudos.
20671 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20673 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
20675 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20677 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
20678 if it would clobber the stack pointer, even temporarily.
20680 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
20682 * mode-switching.c: Make small adjustments to the top comment.
20684 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
20686 * config/rs6000/constraints.md (wD constraint): New constraint to
20687 match the constant integer to get the top DImode/DFmode out of a
20688 vector in a VSX register.
20690 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
20691 match the constant integer to get the top DImode/DFmode out of a
20692 vector in a VSX register.
20694 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
20697 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20700 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
20701 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
20703 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
20704 Optimize vec_extract of 64-bit values, where the value being
20705 extracted is in the top word, where we can use scalar
20706 instructions. Add direct move and store support. Combine the big
20707 endian/little endian vector select load support into a single insn.
20708 (vsx_extract_<mode>_internal1): Likewise.
20709 (vsx_extract_<mode>_internal2): Likewise.
20710 (vsx_extract_<mode>_load): Likewise.
20711 (vsx_extract_<mode>_store): Likewise.
20712 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
20713 combined into vsx_extract_<mode>_load.
20714 (vsx_extract_<mode>_one_le): Likewise.
20716 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
20717 define the top 64-bit vector element.
20719 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
20722 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20723 Document vec_vbpermq builtin.
20726 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
20727 enable use of xxsldwi and xxpermdi builtin functions.
20728 (vec_xxpermdi): Likewise.
20730 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20731 Document use of vec_xxsldwi and vec_xxpermdi builtins.
20733 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
20735 PR rtl-optimization/60650
20736 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
20738 (find_spills_for): New.
20739 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
20740 Spill all pseudos on the second iteration.
20742 2014-03-27 Marek Polacek <polacek@redhat.com>
20745 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
20748 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20750 * config/s390/s390.c (s390_can_use_return_insn): Check for
20751 call-saved FPRs on 31 bit.
20753 2014-03-27 Jakub Jelinek <jakub@redhat.com>
20755 PR middle-end/60682
20756 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
20757 if they need regimplification, just drop them instead of
20758 calling gimple_regimplify_operands on them.
20760 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
20763 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
20764 (aarch64_frame_pointer_required): Adjust logic.
20765 (aarch64_can_eliminate): Adjust logic.
20766 (aarch64_override_options_after_change): Adjust logic.
20768 2014-03-27 Dehao Chen <dehao@google.com>
20770 * ipa-inline.c (early_inliner): Update node's inline info.
20772 2014-03-26 Dehao Chen <dehao@google.com>
20774 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
20775 compiler inserted conditional jumps for NAN float check.
20777 2014-03-26 Jakub Jelinek <jakub@redhat.com>
20779 * ubsan.h (ubsan_create_data): Change second argument's type
20780 to const location_t *.
20781 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
20783 (ubsan_create_data): Change second argument to const location_t *PLOC.
20784 Create Loc field whenever PLOC is non-NULL.
20785 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
20786 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
20790 * real.c (real_to_integer2): Change type of low to UHWI.
20792 2014-03-26 Tobias Burnus <burnus@net-b.de>
20794 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
20795 (CILK_SELF_SPECS): New define.
20796 (driver_self_specs): Use it.
20798 2014-03-26 Richard Biener <rguenther@suse.de>
20800 * tree-pretty-print.c (percent_K_format): Implement special
20801 case for LTO and its stripped down BLOCK tree.
20803 2014-03-26 Jakub Jelinek <jakub@redhat.com>
20806 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
20808 * tree-vrp.c (simplify_internal_call_using_ranges): If only
20809 one range is range_int_cst_p, but not both, at least optimize
20810 addition/subtraction of 0 and multiplication by 0 or 1.
20811 * gimple-fold.c (gimple_fold_call): Fold
20812 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
20813 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
20814 INTEGER_CSTs, try to fold at least x * 0 and y - y.
20816 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
20818 PR rtl-optimization/60452
20819 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
20820 <case REG>: Return 1 for invalid offsets from the frame pointer.
20822 2014-03-26 Marek Polacek <polacek@redhat.com>
20825 * doc/extend.texi (C Extensions): Mention variable-length arrays in
20828 2014-03-26 Marek Polacek <polacek@redhat.com>
20831 * doc/extend.texi (Designated Inits): Describe what happens to omitted
20834 2014-03-26 Marek Polacek <polacek@redhat.com>
20837 * ira-color.c (update_conflict_hard_regno_costs): Perform the
20838 multiplication in unsigned type.
20840 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
20842 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
20844 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
20846 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
20848 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
20851 * cif-code.def (UNREACHABLE) New code.
20852 * ipa-inline.c (inline_small_functions): Skip edges to
20853 __builtlin_unreachable.
20854 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
20855 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
20856 predicate to __bulitin_unreachable.
20857 (set_cond_stmt_execution_predicate): Fix issue when
20858 invert_tree_comparison returns ERROR_MARK.
20859 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
20860 propagate to inline clones.
20861 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
20863 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
20864 * cgraphclones.c (cgraph_clone_node): If call destination is already
20865 ureachable, do not redirect it back.
20866 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
20869 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
20871 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
20872 Do not modify inline clones.
20874 2014-03-25 Jakub Jelinek <jakub@redhat.com>
20876 * config/i386/i386.md (general_sext_operand): New mode attr.
20877 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
20878 don't generate (sign_extend (const_int)).
20879 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
20880 operands[2]. Use We constraint instead of <i> and
20881 <general_sext_operand> predicate instead of <general_operand>.
20882 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
20883 * config/i386/constraints.md (We): New constraint.
20884 * config/i386/predicates.md (x86_64_sext_operand,
20885 sext_operand): New predicates.
20887 2014-03-25 Martin Jambor <mjambor@suse.cz>
20890 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
20891 inconsistent devirtualizations to __builtin_unreachable.
20893 2014-03-25 Marek Polacek <polacek@redhat.com>
20896 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
20898 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
20900 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
20901 order of elements for big-endian.
20903 2014-03-25 Richard Biener <rguenther@suse.de>
20905 PR middle-end/60635
20906 * gimplify-me.c (gimple_regimplify_operands): Update the
20909 2014-03-25 Martin Jambor <mjambor@suse.cz>
20912 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
20913 (lto_output_varpool_node): Likewise.
20914 (input_overwrite_node): Likewise.
20915 (input_varpool_node): Likewise.
20917 2014-03-25 Richard Biener <rguenther@suse.de>
20919 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
20920 (run_gcc): Likewise.
20922 2014-03-25 Jakub Jelinek <jakub@redhat.com>
20924 * combine.c (simplify_compare_const): Add MODE argument.
20925 Handle mode_width 0 as very large mode_width.
20926 (try_combine, simplify_comparison): Adjust callers.
20928 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
20929 type to avoid signed integer overflow.
20930 * explow.c (plus_constant): Likewise.
20932 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
20934 * doc/generic.texi: Correct typos.
20936 2014-03-24 Tobias Burnus <burnus@net-b.de>
20938 * doc/invoke.texi (-flto): Expand section about
20939 using static libraries with LTO.
20941 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20943 PR rtl-optimization/60501
20944 * optabs.def (addptr3_optab): New optab.
20945 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
20946 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
20947 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
20949 * lra.c (emit_add3_insn): Use the addptr pattern if available.
20951 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
20953 2014-03-24 Ulrich Drepper <drepper@gmail.com>
20955 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
20958 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
20959 (_mm256_undefined_ps): Define.
20960 (_mm256_undefined_pd): Define.
20961 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
20962 (_mm_undefined_pd): Define.
20963 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
20964 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
20965 (_mm512_undefined_ps): Define.
20966 (_mm512_undefined_pd): Define.
20967 Use _mm*_undefined_*.
20968 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
20970 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
20972 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
20973 (lshr_simd): DI mode added.
20974 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
20975 (aarch64_ushr_simddi): Likewise.
20976 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
20977 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
20978 (vshrd_n_u64): Likewise.
20980 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20982 * Makefile.in (s-macro_list): Depend on cc1.
20984 2014-03-23 Teresa Johnson <tejohnson@google.com>
20986 * ipa-utils.c (ipa_print_order): Use specified dump file.
20988 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
20990 PR rtl-optimization/60601
20991 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
20993 * gcc.c (eval_spec_function): Initialize save_growing_value.
20995 2014-03-22 Jakub Jelinek <jakub@redhat.com>
20998 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
20999 code == MINUS_EXPR, never swap op0 with op1.
21001 * toplev.c (init_local_tick): Avoid signed integer multiplication
21003 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21004 shift by first operand's bitsize.
21006 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21009 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21010 redefine to 1 or 0.
21011 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21012 TARGET_ISA_64BIT_P(x).
21014 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21016 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21017 pattern for vector nor instead of subtract from splat(-1).
21018 (altivec_expand_vec_perm_const_le): Likewise.
21020 2014-03-21 Richard Henderson <rth@twiddle.net>
21023 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21024 related insns after epilogue_completed.
21026 2014-03-21 Martin Jambor <mjambor@suse.cz>
21029 * cgraph.h (symtab_node): New flag body_removed.
21030 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21031 when removing bodies.
21032 * symtab.c (dump_symtab_base): Dump body_removed flag.
21033 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21034 had their bodies removed.
21036 2014-03-21 Martin Jambor <mjambor@suse.cz>
21039 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21042 2014-03-21 Richard Biener <rguenther@suse.de>
21044 PR tree-optimization/60577
21045 * tree-core.h (struct tree_base): Document nothrow_flag use
21046 in DECL_NONALIASED.
21047 * tree.h (DECL_NONALIASED): New.
21048 (may_be_aliased): Adjust.
21049 * coverage.c (build_var): Set DECL_NONALIASED.
21051 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21053 * expr.c (expand_expr_real_1): Remove outdated comment.
21055 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21057 PR middle-end/60597
21058 * ira.c (adjust_cleared_regs): Call copy_rtx on
21059 *reg_equiv[REGNO (loc)].src_p before passing it to
21060 simplify_replace_fn_rtx.
21063 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21064 into CONST, put pic register as first operand of PLUS. Use
21065 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21067 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21069 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21071 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21073 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21074 around for store forwarding issue in the FPU on the UT699.
21075 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21076 loads and operations if -mfix-ut699 is specified.
21077 (divtf3_hq): Tweak attribute.
21078 (sqrttf2_hq): Likewise.
21080 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21082 * calls.c (store_one_arg): Remove incorrect const qualification on the
21083 type of the temporary.
21084 * cfgexpand.c (expand_return): Likewise.
21085 * expr.c (expand_constructor): Likewise.
21086 (expand_expr_real_1): Likewise.
21088 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21090 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21093 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21096 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21098 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21100 * config/arm/aarch-common-protos.h
21101 (alu_cost_table): Fix spelling of "extend".
21102 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21104 2014-03-19 Richard Biener <rguenther@suse.de>
21106 PR middle-end/60553
21107 * tree-core.h (tree_type_common): Re-order pointer members
21108 to reduce recursion depth during GC walks.
21110 2014-03-19 Marek Polacek <polacek@redhat.com>
21113 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21114 before accessing it.
21116 2014-03-19 Richard Biener <rguenther@suse.de>
21119 * lto-streamer-in.c (input_function): In WPA stage do not drop
21122 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21124 PR tree-optimization/60559
21125 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21126 with build_zero_cst assignment.
21128 2014-03-18 Kai Tietz <ktietz@redhat.com>
21130 PR rtl-optimization/56356
21131 * sdbout.c (sdbout_parms): Verify that parms'
21132 incoming argument is valid.
21133 (sdbout_reg_parms): Likewise.
21135 2014-03-18 Richard Henderson <rth@redhat.com>
21138 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21139 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21140 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21142 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21144 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21145 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21146 Italicize plugin event names in description. Explain that
21147 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21148 Remind that no GCC functions should be called after PLUGIN_FINISH.
21149 Explain what pragmas with expansion are.
21151 2014-03-18 Martin Liska <mliska@suse.cz>
21153 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21154 gimple call statement is update.
21155 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21156 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21158 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21161 * ubsan.c (ubsan_instrument_unreachable): Call
21162 initialize_sanitizer_builtins.
21163 (ubsan_pass): Likewise.
21166 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21167 varpool_finalize_decl instead of rest_of_decl_compilation.
21169 2014-03-18 Richard Biener <rguenther@suse.de>
21171 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21172 by using bitmap_and_compl instead of bitmap_and_compl_into.
21173 (df_rd_transfer_function): Likewise.
21175 2014-03-18 Richard Biener <rguenther@suse.de>
21177 * doc/lto.texi (fresolution): Fix typo.
21179 2014-03-18 Richard Biener <rguenther@suse.de>
21181 * doc/invoke.texi (flto): Update for changes in 4.9.
21183 2014-03-18 Richard Biener <rguenther@suse.de>
21185 * doc/loop.texi: Remove section on the removed lambda framework.
21186 Update loop docs with recent changes in preserving loop structure.
21188 2014-03-18 Richard Biener <rguenther@suse.de>
21190 * doc/lto.texi (-fresolution): Document.
21192 2014-03-18 Richard Biener <rguenther@suse.de>
21194 * doc/contrib.texi: Adjust my name.
21196 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21199 * internal-fn.c: Include diagnostic-core.h.
21200 (expand_BUILTIN_EXPECT): New function.
21201 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21202 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21203 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21204 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21205 IFN_BUILTIN_EXPECT.
21206 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21207 Revert 3 argument __builtin_expect code.
21208 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21209 * gimple-fold.c (gimple_fold_call): Likewise.
21210 * tree.h (fold_builtin_expect): New prototype.
21211 * builtins.c (build_builtin_expect_predicate): Add predictor
21212 argument, if non-NULL, create 3 argument __builtin_expect.
21213 (fold_builtin_expect): No longer static. Add ARG2 argument,
21214 pass it through to build_builtin_expect_predicate.
21215 (fold_builtin_2): Adjust caller.
21216 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21217 * internal-fn.def (BUILTIN_EXPECT): New.
21219 2014-03-18 Tobias Burnus <burnus@net-b.de>
21222 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21223 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21224 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21226 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21229 * predict.c (combine_predictions_for_bb): Fix up formatting.
21230 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21231 fill what it points to if non-NULL.
21232 (tree_predict_by_opcode): Adjust caller, use the predictor.
21233 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21235 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21237 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21238 proper constant for the store mode.
21240 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21242 * symtab.c (change_decl_assembler_name): Fix transparent alias
21243 chain construction.
21245 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21247 * config/aarch64/aarch64.c: Correct the comments about the
21248 aarch64 stack layout.
21250 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21252 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21253 check for GF_OMP_FOR_KIND_FOR.
21255 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21257 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21258 ymm and zmm register names.
21260 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21263 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21264 note creation for the 2010-08-31 changes.
21266 2014-03-17 Marek Polacek <polacek@redhat.com>
21268 PR middle-end/60534
21269 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21270 as -fno-tree-loop-vectorize.
21271 (expand_omp_simd): Likewise.
21273 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
21275 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21276 (eligible_for_call_delay): New prototype.
21277 * config/sparc/sparc.c (tls_call_delay): Rename into...
21278 (eligible_for_call_delay): ...this. Return false if the instruction
21279 cannot be put in the delay slot of a branch.
21280 (eligible_for_restore_insn): Simplify.
21281 (eligible_for_return_delay): Return false if the instruction cannot be
21282 put in the delay slot of a branch and simplify.
21283 (eligible_for_sibcall_delay): Return false if the instruction cannot be
21284 put in the delay slot of a branch.
21285 * config/sparc/sparc.md (fix_ut699): New attribute.
21286 (tls_call_delay): Delete.
21287 (in_call_delay): Reimplement.
21288 (eligible_for_sibcall_delay): Rename into...
21289 (in_sibcall_delay): ...this.
21290 (eligible_for_return_delay): Rename into...
21291 (in_return_delay): ...this.
21292 (in_branch_delay): Reimplement.
21293 (in_uncond_branch_delay): Delete.
21294 (in_annul_branch_delay): Delete.
21296 2014-03-14 Richard Henderson <rth@redhat.com>
21299 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
21300 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
21301 (*floathi<X87MODEF>2_i387_with_temp): Remove.
21302 (floathi splitters): Remove.
21303 (float<SWI48x>xf2): New pattern.
21304 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
21305 code that tried to handle DImode for 32-bit, but which was excluded
21306 by the pattern's condition. Drop allocation of stack temporary.
21307 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
21308 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
21309 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
21310 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
21311 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
21312 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
21313 (*float<SWI48><MODEF>2_sse_interunit): Remove.
21314 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
21315 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
21316 (*float<SWI48x><X87MODEF>2_i387): Remove.
21317 (all float _with_temp splitters): Remove.
21318 (*float<SWI48x><MODEF>2_i387): New pattern.
21319 (*float<SWI48><MODEF>2_sse): New pattern.
21320 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
21321 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
21323 2014-03-14 Jakub Jelinek <jakub@redhat.com>
21324 Marek Polacek <polacek@redhat.com>
21326 PR middle-end/60484
21327 * common.opt (dump_base_name_prefixed): New Variable.
21328 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
21329 if x_dump_base_name_prefixed is already set, set it at the end.
21331 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
21333 PR rtl-optimization/60508
21334 * lra-constraints.c (get_reload_reg): Add new parameter
21336 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
21337 Pass the new parameter values.
21339 2014-03-14 Richard Biener <rguenther@suse.de>
21341 * common.opt: Revert unintented changes from r205065.
21342 * opts.c: Likewise.
21344 2014-03-14 Richard Biener <rguenther@suse.de>
21346 PR middle-end/60518
21347 * cfghooks.c (split_block): Properly adjust all loops the
21348 block was a latch of.
21350 2014-03-14 Martin Jambor <mjambor@suse.cz>
21353 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
21356 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
21359 * config/avr/avr.c (avr_set_current_function): Pass function name
21360 through default_strip_name_encoding before sanity checking instead
21361 of skipping the first char of the assembler name.
21363 2014-03-13 Richard Henderson <rth@redhat.com>
21366 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
21367 (ix86_force_to_memory, ix86_free_from_memory): Remove.
21368 * config/i386/i386-protos.h: Likewise.
21369 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
21370 in the expander instead of a splitter.
21371 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
21372 any possibility of requiring a memory.
21373 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
21374 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
21375 (fp branch splitters): Update for ix86_split_fp_branch.
21376 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
21377 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
21378 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
21379 (*fop_<MODEF>_2_i387): Remove f/r alternative.
21380 (*fop_<MODEF>_3_i387): Likewise.
21381 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
21382 (splitters for the fop_* register patterns): Remove.
21383 (fscalexf4_i387): Rename from *fscalexf4_i387.
21384 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
21386 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21388 PR tree-optimization/59779
21389 * tree-dfa.c (get_ref_base_and_extent): Use double_int
21390 type for bitsize and maxsize instead of HOST_WIDE_INT.
21392 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
21394 PR rtl-optimization/57320
21395 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
21396 the CFG after thread_prologue_and_epilogue_insns.
21398 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
21400 PR rtl-optimization/57189
21401 * lra-constraints.c (process_alt_operands): Disfavor spilling
21404 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
21406 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
21408 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21410 PR tree-optimization/59025
21411 PR middle-end/60418
21412 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
21413 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
21415 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
21418 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
21419 calls of avr_out_plus_1.
21421 2014-03-13 Bin Cheng <bin.cheng@arm.com>
21423 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
21424 BB's single pred and update the father loop's latch info later.
21426 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21428 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
21432 (VEC_base): Likewise.
21433 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
21434 registers, we need to swap double words in little endian mode.
21436 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
21437 to be a container mode for 128-bit integer operations added in ISA
21438 2.07. Unlike TImode and PTImode, the preferred register set is
21439 the Altivec/VMX registers for the 128-bit operations.
21441 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
21443 (rs6000_split_128bit_ok_p): Likewise.
21445 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
21446 macros for creating ISA 2.07 normal and overloaded builtin
21447 functions with 3 arguments.
21448 (BU_P8V_OVERLOAD_3): Likewise.
21449 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
21450 for use as overloaded functions.
21451 (VPERM_1TI_UNS): Likewise.
21452 (VSEL_1TI): Likewise.
21453 (VSEL_1TI_UNS): Likewise.
21454 (ST_INTERNAL_1ti): Likewise.
21455 (LD_INTERNAL_1ti): Likewise.
21456 (XXSEL_1TI): Likewise.
21457 (XXSEL_1TI_UNS): Likewise.
21458 (VPERM_1TI): Likewise.
21459 (VPERM_1TI_UNS): Likewise.
21460 (XXPERMDI_1TI): Likewise.
21461 (SET_1TI): Likewise.
21462 (LXVD2X_V1TI): Likewise.
21463 (STXVD2X_V1TI): Likewise.
21464 (VEC_INIT_V1TI): Likewise.
21465 (VEC_SET_V1TI): Likewise.
21466 (VEC_EXT_V1TI): Likewise.
21467 (EQV_V1TI): Likewise.
21468 (NAND_V1TI): Likewise.
21469 (ORC_V1TI): Likewise.
21470 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
21471 added in ISA 2.07. Add both normal 'altivec' builtins, and the
21472 overloaded builtin.
21473 (VADDUQM): Likewise.
21474 (VSUBCUQ): Likewise.
21475 (VADDEUQM): Likewise.
21476 (VADDECUQ): Likewise.
21477 (VSUBEUQM): Likewise.
21478 (VSUBECUQ): Likewise.
21480 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
21481 __int128_t and __uint128_t types.
21482 (__uint128_type): Likewise.
21483 (altivec_categorize_keyword): Add support for vector __int128_t,
21484 vector __uint128_t, vector __int128, and vector unsigned __int128
21485 as a container type for TImode operations that need to be done in
21486 VSX/Altivec registers.
21487 (rs6000_macro_to_expand): Likewise.
21488 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
21489 to support 128-bit integer instructions vaddcuq, vadduqm,
21490 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
21491 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
21493 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
21494 for V1TImode, and set up preferences to use VSX/Altivec registers.
21495 Setup VSX reload handlers.
21496 (rs6000_debug_reg_global): Likewise.
21497 (rs6000_init_hard_regno_mode_ok): Likewise.
21498 (rs6000_preferred_simd_mode): Likewise.
21499 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
21500 (easy_altivec_constant): Likewise.
21501 (output_vec_const_move): Likewise.
21502 (rs6000_expand_vector_set): Convert V1TImode set and extract to
21504 (rs6000_expand_vector_extract): Likewise.
21505 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
21507 (rs6000_const_vec): Add support for V1TImode.
21508 (rs6000_emit_le_vsx_load): Swap double words when loading or
21509 storing TImode/V1TImode.
21510 (rs6000_emit_le_vsx_store): Likewise.
21511 (rs6000_emit_le_vsx_move): Likewise.
21512 (rs6000_emit_move): Add support for V1TImode.
21513 (altivec_expand_ld_builtin): Likewise.
21514 (altivec_expand_st_builtin): Likewise.
21515 (altivec_expand_vec_init_builtin): Likewise.
21516 (altivec_expand_builtin): Likewise.
21517 (rs6000_init_builtins): Add support for V1TImode type. Add
21518 support for ISA 2.07 128-bit integer builtins. Define type names
21519 for the VSX/Altivec vector types.
21520 (altivec_init_builtins): Add support for overloaded vector
21521 functions with V1TImode type.
21522 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
21523 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
21525 (rs6000_split_128bit_ok_p): Likewise.
21526 (rs6000_handle_altivec_attribute): Create V1TImode from vector
21527 __int128_t and vector __uint128_t.
21529 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
21530 and mode attributes.
21532 (VSX_M2): Likewise.
21537 (VS_scalar): Likewise.
21538 (VS_double): Likewise.
21539 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
21541 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
21542 we support the ISA 2.07 128-bit integer arithmetic instructions.
21543 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
21544 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
21545 and TImode types for use with the builtin functions.
21546 (V1TI_type_node): Likewise.
21547 (unsigned_V1TI_type_node): Likewise.
21548 (intTI_type_internal_node): Likewise.
21549 (uintTI_type_internal_node): Likewise.
21551 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
21552 128-bit builtin functions.
21553 (UNSPEC_VADDEUQM): Likewise.
21554 (UNSPEC_VADDECUQ): Likewise.
21555 (UNSPEC_VSUBCUQ): Likewise.
21556 (UNSPEC_VSUBEUQM): Likewise.
21557 (UNSPEC_VSUBECUQ): Likewise.
21558 (VM): Add V1TImode to vector mode iterators.
21560 (VI_unit): Likewise.
21561 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
21562 (altivec_vaddcuq): Likewise.
21563 (altivec_vsubuqm): Likewise.
21564 (altivec_vsubcuq): Likewise.
21565 (altivec_vaddeuqm): Likewise.
21566 (altivec_vaddecuq): Likewise.
21567 (altivec_vsubeuqm): Likewise.
21568 (altivec_vsubecuq): Likewise.
21570 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
21572 (BOOL_128): Likewise.
21573 (BOOL_REGS_OUTPUT): Likewise.
21574 (BOOL_REGS_OP1): Likewise.
21575 (BOOL_REGS_OP2): Likewise.
21576 (BOOL_REGS_UNARY): Likewise.
21577 (BOOL_REGS_AND_CR0): Likewise.
21579 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
21580 128-bit integer builtin support.
21581 (vec_vadduqm): Likewise.
21582 (vec_vaddecuq): Likewise.
21583 (vec_vaddeuqm): Likewise.
21584 (vec_vsubecuq): Likewise.
21585 (vec_vsubeuqm): Likewise.
21586 (vec_vsubcuq): Likewise.
21587 (vec_vsubuqm): Likewise.
21589 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21590 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
21591 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
21592 128-bit integer add/subtract to ISA 2.07.
21594 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
21596 * config/arc/arc.c (arc_predicate_delay_insns):
21597 Fix third argument passed to conditionalize_nonjump.
21599 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
21601 * config/aarch64/aarch64-builtins.c
21602 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
21603 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
21604 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
21605 instead of __builtin_lfloor.
21606 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
21608 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21610 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
21611 (tree_ssa_ifcombine_bb_1): New function.
21612 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
21613 is an empty forwarder block to then_bb or vice versa and then_bb
21614 and else_bb are effectively swapped.
21616 2014-03-12 Christian Bruel <christian.bruel@st.com>
21619 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
21620 REG_CFA_DEF_CFA note.
21621 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
21622 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
21624 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
21626 PR tree-optimization/60454
21627 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
21629 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21631 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
21632 Do not define target_cpu_default2 to generic.
21633 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
21634 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
21635 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
21637 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21638 Marc Glisse <marc.glisse@inria.fr>
21640 PR tree-optimization/60502
21641 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
21642 instead of build_low_bits_mask.
21644 2014-03-12 Jakub Jelinek <jakub@redhat.com>
21646 PR middle-end/60482
21647 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
21648 if there are multiple uses, but op doesn't live on E edge.
21649 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
21650 clobber stmts before __builtin_unreachable.
21652 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
21654 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
21655 hard_frame_pointer_rtx.
21656 * cse.c (cse_insn): Remove volatile check.
21657 * cselib.c (cselib_process_insn): Likewise.
21658 * dse.c (scan_insn): Likewise.
21660 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
21662 * config/arc/arc.c (conditionalize_nonjump): New function,
21664 (arc_ifcvt): ... this.
21665 (arc_predicate_delay_insns): Use it.
21667 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
21669 * config/arc/predicates.md (extend_operand): During/after reload,
21670 allow const_int_operand.
21671 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
21672 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
21673 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
21675 (umulsi3_highpart_i): Likewise.
21677 2014-03-11 Richard Biener <rguenther@suse.de>
21679 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
21680 Add asserts to guard possible wrong-code bugs.
21682 2014-03-11 Richard Biener <rguenther@suse.de>
21684 PR tree-optimization/60429
21685 PR tree-optimization/60485
21686 * tree-ssa-structalias.c (set_union_with_increment): Properly
21687 take into account all fields that overlap the shifted vars.
21688 (do_sd_constraint): Likewise.
21689 (do_ds_constraint): Likewise.
21690 (get_constraint_for_ptr_offset): Likewise.
21692 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
21694 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
21695 (nios2_compute_frame_layout):
21696 Add calculation of cfun->machine->fp_save_offset.
21697 (nios2_expand_prologue): Correct setting of frame pointer register
21699 (nios2_expand_epilogue): Update recovery of stack pointer from
21700 frame pointer accordingly.
21701 (nios2_initial_elimination_offset): Update calculation of offset
21702 for eliminating to HARD_FRAME_POINTER_REGNUM.
21704 2014-03-10 Jakub Jelinek <jakub@redhat.com>
21707 * ipa.c (symtab_remove_unreachable_nodes): Don't call
21708 cgraph_get_create_node on VAR_DECLs.
21710 2014-03-10 Richard Biener <rguenther@suse.de>
21712 PR middle-end/60474
21713 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
21715 2014-03-08 Douglas B Rupp <rupp@gnat.com>
21717 * config/vms/vms.opt (vms_float_format): New variable.
21719 2014-03-08 Tobias Burnus <burnus@net-b.de>
21721 * doc/invoke.texi (-fcilkplus): Update implementation status.
21723 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
21724 Richard Biener <rguenther@suse.de>
21726 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
21727 consistently accross all TUs.
21728 (run_gcc): Enable -fshort-double automatically at link at link-time
21729 and disallow override.
21731 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
21734 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
21735 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
21736 if they can't be used.
21738 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21740 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
21741 for Solaris 11/x86 ld.
21742 * configure: Regenerate.
21744 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21746 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
21747 (LIB_TLS_SPEC): Save as ld_tls_libs.
21748 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
21749 (HAVE_AS_IX86_TLSLDM): New test.
21750 * configure, config.in: Regenerate.
21751 * config/i386/i386.c (legitimize_tls_address): Fall back to
21752 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
21753 cannot support TLS_MODEL_LOCAL_DYNAMIC.
21754 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
21755 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
21757 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
21759 * common.opt (fira-loop-pressure): Mark as optimization.
21761 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
21763 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
21764 an OpenMP mappable type.
21766 2014-03-06 Matthias Klose <doko@ubuntu.com>
21768 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
21769 MULTILIB_OSDIRNAMES is not defined.
21771 2014-03-06 Jakub Jelinek <jakub@redhat.com>
21772 Meador Inge <meadori@codesourcery.com>
21775 * config/arm/arm.c (arm_tls_symbol_p): Remove.
21776 (arm_legitimize_address): Call legitimize_tls_address for any
21777 arm_tls_referenced_p expression, handle constant addend. Call it
21778 before testing for !TARGET_ARM.
21779 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
21781 2014-03-06 Richard Biener <rguenther@suse.de>
21783 PR middle-end/60445
21787 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
21789 * tree-streamer.c (record_common_node): Assert we don't record
21790 nodes with type double.
21791 (preload_common_node): Skip type double, complex double and double
21792 pointer since it is now frontend dependent due to fshort-double option.
21794 2014-03-06 Richard Biener <rguenther@suse.de>
21796 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
21797 or -fno-lto is specified and the linker has full plugin support.
21798 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
21799 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
21800 * lto-wrapper.c (merge_and_complain): Merge compile-time
21801 optimization levels.
21802 (run_gcc): And pass it through to the link options.
21804 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
21808 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
21810 * cselib.c (remove_useless_values): Skip to avoid quadratic
21811 behavior if the condition moved from...
21812 (cselib_process_insn): ... here holds.
21814 2014-03-05 Jakub Jelinek <jakub@redhat.com>
21817 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
21818 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
21821 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
21822 (TM_H): Add x86-tune.def.
21824 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21826 * config/aarch64/aarch64.c (generic_tunings):
21827 Use cortexa57_extra_costs.
21829 2014-03-05 Jakub Jelinek <jakub@redhat.com>
21832 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
21833 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
21834 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
21837 2014-03-04 Heiher <r@hev.cc>
21839 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
21840 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
21842 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
21844 * config/i386/predicates.md (const2356_operand): Change to ...
21845 (const2367_operand): ... this.
21846 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
21848 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
21849 (*avx512pf_scatterpf<mode>sf): Ditto.
21850 (avx512pf_scatterpf<mode>df): Ditto.
21851 (*avx512pf_scatterpf<mode>df_mask): Ditto.
21852 (*avx512pf_scatterpf<mode>df): Ditto.
21853 * config/i386/i386.c (ix86_expand_builtin): Update
21854 incorrect hint operand error message.
21856 2014-03-04 Richard Biener <rguenther@suse.de>
21858 * lto-section-in.c (lto_get_section_data): Fix const cast.
21860 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
21862 * tree-streamer.c (record_common_node): Assert we don't record
21863 nodes with type double.
21864 (preload_common_node): Skip type double, complex double and double
21865 pointer since it is now frontend dependent due to fshort-double option.
21867 2014-03-04 Richard Biener <rguenther@suse.de>
21870 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
21871 (lto_input_toplevel_asms): Likewise.
21872 * lto-section-in.c (lto_get_section_data): Instead do it here
21875 2014-03-04 Richard Biener <rguenther@suse.de>
21877 PR tree-optimization/60382
21878 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
21879 dead PHIs a reduction.
21881 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
21883 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
21885 (_mm_prefetch): Move out of GCC target("sse") pragma.
21886 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
21887 GCC target("prfchw") pragma.
21888 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
21890 * config/i386/i386.c (ix86_option_override_internal): Enable
21891 -mprfchw with -mprefetchwt1.
21893 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
21895 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
21898 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
21900 * opts.h (CL_PCH_IGNORE): Define.
21901 * targhooks.c (option_affects_pch_p):
21902 Return false for options that have CL_PCH_IGNORE set.
21903 * opt-functions.awk: Process PchIgnore.
21904 * doc/options.texi: Document PchIgnore.
21906 * config/arc/arc.opt (misize): Add PchIgnore property.
21908 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21910 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
21911 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
21912 constraint on constants to permit them being loaded into
21913 GENERAL_REGS or BASE_REGS.
21915 2014-03-03 Nick Clifton <nickc@redhat.com>
21917 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
21918 anti-cacnonical alternatives.
21919 (negandhi3_real): New pattern.
21920 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
21922 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21924 * config/avr/avr-mcus.def: Remove atxmega16x1.
21925 * config/avr/avr-tables.opt: Regenerate.
21926 * config/avr/t-multilib: Regenerate.
21927 * doc/avr-mmcu.texi: Regenerate.
21929 2014-03-03 Tobias Grosser <tobias@grosser.es>
21930 Mircea Namolaru <mircea.namolaru@inria.fr>
21932 PR tree-optimization/58028
21933 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
21936 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21938 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
21939 not handled by recognizers.
21941 2014-03-03 Jakub Jelinek <jakub@redhat.com>
21943 PR middle-end/60175
21944 * function.c (expand_function_end): Don't emit
21945 clobber_return_register sequence if clobber_after is a BARRIER.
21946 * cfgexpand.c (construct_exit_block): Append instructions before
21947 return_label to prev_bb.
21949 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21951 * config/rs6000/constraints.md: Document reserved use of "wc".
21953 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
21956 * ipa.c (function_and_variable_visibility): When dissolving comdat
21957 group, also set all symbols to local.
21959 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
21964 2013-12-14 Jan Hubicka <jh@suse.cz>
21965 PR middle-end/58477
21966 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
21968 2014-03-02 Jon Beniston <jon@beniston.com>
21974 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
21975 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
21976 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
21977 (simple_return, *simple_return): New patterns
21978 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
21979 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
21981 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
21983 * dwarf2out.c (gen_subprogram_die): Tidy.
21985 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
21988 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
21989 (*mov_t_msb_neg_negc): ... this new insn.
21991 2014-02-28 Jason Merrill <jason@redhat.com>
21994 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
21997 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22000 * dwarf2out.c (decltype_auto_die): New static.
22001 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22002 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22003 (is_cxx_auto): Likewise.
22005 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22007 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22008 we are not using general regs only.
22010 2014-02-28 Richard Biener <rguenther@suse.de>
22013 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22014 previous fix and only allow to remove trivial pre-headers
22015 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22016 (remove_forwarder_block): Properly update the latch of a loop.
22018 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22021 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22022 (cselib_preserved_hash_table): New.
22023 (preserve_constants_and_equivs): Move preserved vals to it.
22024 (cselib_find_slot): Look it up first.
22025 (cselib_init): Initialize it.
22026 (cselib_finish): Release it.
22027 (dump_cselib_table): Dump it.
22029 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22032 * cselib.c (remove_useless_values): Skip to avoid quadratic
22033 behavior if the condition moved from...
22034 (cselib_process_insn): ... here holds.
22036 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22039 * var-tracking.c (vt_initialize): Apply the same condition to
22040 preserve the CFA base value.
22042 2014-02-28 Joey Ye <joey.ye@arm.com>
22045 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22046 if reload in progress or completed.
22048 2014-02-28 Tobias Burnus <burnus@net-b.de>
22050 PR middle-end/60147
22051 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22054 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22056 * doc/tm.texi.in (Condition Code Status): Update documention for
22057 relative locations of cc0-setter and cc0-user.
22059 2014-02-27 Jeff Law <law@redhat.com>
22061 PR rtl-optimization/52714
22062 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22063 into two independent simple sets, if I3 is a jump, ensure the
22064 pattern we place into I3 is a (set (pc) ...).
22066 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22067 Jeff Law <law@redhat.com>
22069 PR rtl-optimization/49847
22070 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22071 are in different blocks.
22072 * doc/tm.texi (Condition Code Status): Update documention for
22073 relative locations of cc0-setter and cc0-user.
22075 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22078 * lra.c (lra_emit_add): Check SUBREG too.
22080 2014-02-27 Andreas Schwab <schwab@suse.de>
22082 * config/m68k/m68k.c (m68k_option_override): Disable
22083 -flive-range-shrinkage for classic m68k.
22084 (m68k_override_options_after_change): Likewise.
22086 2014-02-27 Marek Polacek <polacek@redhat.com>
22088 PR middle-end/59223
22089 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22090 -Wmaybe-uninitialized.
22092 2014-02-27 Alan Modra <amodra@gmail.com>
22095 * reload1.c (emit_input_reload_insns): When reload_override_in,
22096 set old to rl->in_reg when rl->in_reg is a subreg.
22098 2014-02-26 Richard Biener <rguenther@suse.de>
22101 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22103 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22105 * common/config/i386/predicates.md (const1256_operand): Remove.
22106 (const2356_operand): New.
22107 (const_1_to_2_operand): Remove.
22108 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22109 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22110 (*avx512pf_gatherpf<mode>sf): Ditto.
22111 (avx512pf_gatherpf<mode>df): Ditto.
22112 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22113 (*avx512pf_gatherpf<mode>df): Ditto.
22114 (avx512pf_scatterpf<mode>sf): Ditto.
22115 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22116 (*avx512pf_scatterpf<mode>sf): Ditto.
22117 (avx512pf_scatterpf<mode>df): Ditto.
22118 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22119 (*avx512pf_scatterpf<mode>df): Ditto.
22120 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22122 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22124 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22125 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22126 (_mm512_mask_testn_epi64_mask): Move to ...
22127 * config/i386/avx512cdintrin.h: Here.
22128 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22129 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22130 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22131 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22132 TARGET_AVX512F from TARGET_AVX512CD.
22134 2014-02-26 Richard Biener <rguenther@suse.de>
22137 * ipa.c (walk_polymorphic_call_targets): Properly guard
22138 call to inline_update_overall_summary.
22140 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22143 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22144 and latches only if requested. Fix latch if it is removed.
22145 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22146 LOOPS_HAVE_PREHEADERS.
22148 2014-02-25 Andrew Pinski <apinski@cavium.com>
22150 * builtins.c (expand_builtin_thread_pointer): Create a new target
22151 when the target is NULL.
22153 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22155 PR rtl-optimization/60317
22156 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22157 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22158 * lra-assigns.c: Include params.h.
22159 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22160 other reload pseudos considerations.
22162 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22164 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22165 to use canonical form for nor<mode>3.
22167 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22170 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22173 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22175 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22176 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22177 (ix86_handle_option): Handle OPT_mprefetchwt1.
22178 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22179 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22181 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22182 OPTION_MASK_ISA_PREFETCHWT1.
22183 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22184 (PTA_PREFETCHWT1): New.
22185 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22186 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22187 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22188 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22189 (*prefetch_avx512pf_<mode>_: Change into ...
22190 (*prefetch_prefetchwt1_<mode>: This.
22191 * config/i386/i386.opt (mprefetchwt1): New.
22192 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22193 (_mm_prefetch): Handle intent to write.
22194 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22196 2014-02-25 Richard Biener <rguenther@suse.de>
22198 PR middle-end/60291
22199 * emit-rtl.c (mem_attrs_htab): Remove.
22200 (mem_attrs_htab_hash): Likewise.
22201 (mem_attrs_htab_eq): Likewise.
22202 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22203 (init_emit_once): Do not allocate mem_attrs_htab.
22205 2014-02-25 Richard Biener <rguenther@suse.de>
22208 * lto-opts.c (lto_write_options): Output non-explicit conservative
22209 -fwrapv, -fno-trapv and -fno-strict-overflow.
22210 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22211 (run_gcc): And pass them through.
22213 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22215 * sel-sched.c (calculate_new_fences): New parameter ptime.
22216 Calculate it as a maximum over all fence cycles.
22217 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22218 Print the final schedule timing when sched_verbose.
22220 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22222 PR rtl-optimization/60292
22223 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22224 bit fot the fence instruction.
22226 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22228 * calls.h: Fix typo in comment.
22230 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22232 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22233 adjusting offsetable addresses.
22235 2014-02-24 Guozhi Wei <carrot@google.com>
22237 * sparseset.h (sparseset_pop): Fix the wrong index.
22239 2014-02-24 Walter Lee <walt@tilera.com>
22241 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22242 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22244 * common/config/tilegx/tilegx-common.c
22245 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22246 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22247 (LINK_SPEC): Ditto.
22248 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22249 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22250 (tilegx_gimplify_va_arg_expr): Handle big endian.
22251 (tilegx_expand_unaligned_load): Ditto.
22252 (tilegx_expand_unaligned_store): Ditto.
22253 (TARGET_RETURN_IN_MSB): New.
22254 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22255 (TARGET_ENDIAN_DEFAULT): New.
22256 (TARGET_BIG_ENDIAN): Handle big endian.
22257 (BYTES_BIG_ENDIAN): Ditto.
22258 (WORDS_BIG_ENDIAN): Ditto.
22259 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22260 (ENDIAN_SPEC): New.
22261 (EXTRA_SPECS): New.
22262 * config/tilegx/tilegx.md (extv): Handle big endian.
22264 (insn_st<n>): Ditto.
22265 (insn_st<n>_add<bitsuffix>): Ditto.
22266 (insn_stnt<n>): Ditto.
22267 (insn_stnt<n>_add<bitsuffix>):Ditto.
22268 (vec_interleave_highv8qi): Handle big endian.
22269 (vec_interleave_highv8qi_be): New.
22270 (vec_interleave_highv8qi_le): New.
22271 (insn_v1int_h): Handle big endian.
22272 (vec_interleave_lowv8qi): Handle big endian.
22273 (vec_interleave_lowv8qi_be): New.
22274 (vec_interleave_lowv8qi_le): New.
22275 (insn_v1int_l): Handle big endian.
22276 (vec_interleave_highv4hi): Handle big endian.
22277 (vec_interleave_highv4hi_be): New.
22278 (vec_interleave_highv4hi_le): New.
22279 (insn_v2int_h): Handle big endian.
22280 (vec_interleave_lowv4hi): Handle big endian.
22281 (vec_interleave_lowv4hi_be): New.
22282 (vec_interleave_lowv4hi_le): New.
22283 (insn_v2int_l): Handle big endian.
22284 (vec_interleave_highv2si): Handle big endian.
22285 (vec_interleave_highv2si_be): New.
22286 (vec_interleave_highv2si_le): New.
22287 (insn_v4int_h): Handle big endian.
22288 (vec_interleave_lowv2si): Handle big endian.
22289 (vec_interleave_lowv2si_be): New.
22290 (vec_interleave_lowv2si_le): New.
22291 (insn_v4int_l): Handle big endian.
22292 * config/tilegx/tilegx.opt (mbig-endian): New option.
22293 (mlittle-endian): New option.
22294 * doc/install.texi: Document tilegxbe-linux.
22295 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
22297 2014-02-24 Martin Jambor <mjambor@suse.cz>
22300 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
22301 there are no parameter descriptors.
22303 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
22305 PR rtl-optimization/60268
22306 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
22307 initialization to ...
22308 (sched_rgn_init): ... here.
22309 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
22311 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22313 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
22316 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
22318 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
22321 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22323 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
22324 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
22326 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22328 * config/microblaze/predicates.md: Add cmp_op predicate.
22329 * config/microblaze/microblaze.md: Add branch_compare instruction
22330 which uses cmp_op predicate and emits cmp insn before branch.
22331 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
22332 to microblaze_expand_conditional_branch and consolidate logic.
22333 (microblaze_expand_conditional_branch): emit branch_compare
22334 insn instead of handling cmp op separate from branch insn.
22336 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22338 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
22341 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22343 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
22344 define_insn with define_expand and new define_insn
22345 *altivec_lve<VI_char>x_internal.
22346 (altivec_stve<VI_char>x): Replace define_insn with define_expand
22347 and new define_insn *altivec_stve<VI_char>x_internal.
22348 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
22350 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
22352 (altivec_expand_stvex_be): New function.
22354 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
22356 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
22357 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
22358 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
22359 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
22361 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
22364 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
22365 instead of emit_move_insn.
22367 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22369 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
22370 vspltw with vsldoi.
22371 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
22372 gen_altivec_vsumsws.
22374 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22376 * config/rs6000/altivec.md (altivec_lvxl): Rename as
22377 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
22378 (altivec_lvxl_<mode>): New define_expand incorporating
22379 -maltivec=be semantics where needed.
22380 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
22381 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
22382 semantics where needed.
22383 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
22384 (altivec_stvx_<mode>): New define_expand incorporating
22385 -maltivec=be semantics where needed.
22386 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
22387 VM2 iterator instead of V4SI.
22388 (altivec_stvxl_<mode>): New define_expand incorporating
22389 -maltivec=be semantics where needed.
22390 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
22391 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
22392 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
22393 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
22394 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
22395 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
22396 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
22397 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
22398 ALTIVEC_BUILTIN_STVXL.
22399 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
22400 (altivec_expand_stvx_be): Likewise.
22401 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
22402 (altivec_expand_lvx_be): Likewise.
22403 (altivec_expand_stvx_be): Likewise.
22404 (altivec_expand_builtin): Add cases for
22405 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
22406 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
22407 (altivec_init_builtins): Add definitions for
22408 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
22409 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
22411 2014-02-21 Catherine Moore <clm@codesourcery.com>
22413 * doc/invoke.texi (mvirt, mno-virt): Document.
22414 * config/mips/mips.opt (mvirt): New option.
22415 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
22417 2014-02-21 Richard Biener <rguenther@suse.de>
22419 PR tree-optimization/60276
22420 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
22421 (STMT_VINFO_MIN_NEG_DIST): New macro.
22422 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
22423 STMT_VINFO_MIN_NEG_DIST.
22424 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
22425 made for negative dependence distances still hold.
22427 2014-02-21 Richard Biener <rguenther@suse.de>
22429 PR middle-end/60291
22430 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
22431 DECL_INITIAL for globals not in the current function context.
22433 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22435 PR tree-optimization/56490
22436 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
22437 * tree-ssa-uninit.c: Include params.h.
22438 (compute_control_dep_chain): Add num_calls argument, return false
22439 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
22440 num_calls to recursive call.
22441 (find_predicates): Change dep_chain into normal array,
22442 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
22443 variable and adjust compute_control_dep_chain caller.
22444 (find_def_preds): Likewise.
22446 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
22448 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
22449 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
22451 2014-02-21 Nick Clifton <nickc@redhat.com>
22453 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
22454 (pushhi1): Likewise.
22455 (popqi1): Add mode to pre_dec.
22456 (pophi1): Likewise.
22458 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22460 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
22461 mode for mask of V8SFmode permutation.
22463 2014-02-20 Richard Henderson <rth@redhat.com>
22466 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
22467 a new pseudo for OLDVAL.
22469 2014-02-20 Jakub Jelinek <jakub@redhat.com>
22472 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
22473 gen_reg_rtx if d->testing_p.
22474 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
22475 if d->testing_p and we will certainly return true.
22476 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
22479 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
22481 * emit-rtl.c (gen_reg_rtx): Assert that
22482 crtl->emit.regno_pointer_align_length is non-zero.
22484 2014-02-20 Richard Henderson <rth@redhat.com>
22487 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
22488 on failure the store back into EXPECT.
22490 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
22491 Sandra Loosemore <sandra@codesourcery.com>
22493 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
22494 * config/nios2/nios2.c (nios2_function_profiler): Add
22495 -fPIC (flag_pic == 2) support.
22496 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
22497 (nios2_large_offset_p): New function.
22498 (nios2_unspec_reloc_p): Move up position, update to use
22499 nios2_large_offset_p.
22500 (nios2_unspec_address): Remove function.
22501 (nios2_unspec_offset): New function.
22502 (nios2_large_got_address): New function.
22503 (nios2_got_address): Add large offset support.
22504 (nios2_legitimize_tls_address): Update usage of removed and new
22506 (nios2_symbol_binds_local_p): New function.
22507 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
22508 (nios2_legitimize_address): Update to use nios2_large_offset_p.
22509 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
22510 (nios2_print_operand): Merge H/L processing, add hiadj/lo
22511 processing for (const (unspec ...)).
22512 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
22514 2014-02-20 Richard Biener <rguenther@suse.de>
22516 * tree-cfg.c (replace_uses_by): Mark altered BBs before
22517 doing the substitution.
22518 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
22520 2014-02-20 Martin Jambor <mjambor@suse.cz>
22523 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
22524 info when checking whether lattices are bottom.
22526 2014-02-20 Richard Biener <rguenther@suse.de>
22528 PR middle-end/60221
22529 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
22532 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
22535 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
22536 parameter specifying the scaling.
22537 (inline_call): Update.
22538 (want_inline_recursively): Guard division by zero.
22539 (recursive_inlining): Update.
22540 * ipa-inline.h (clone_inlined_nodes): Update.
22542 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22545 * config/i386/i386.c (classify_argument): Pass structures of size
22546 64 bytes or less in register.
22548 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
22549 Kirill Yukhin <kirill.yukhin@intel.com>
22551 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
22552 (_mm_rcp28_round_ss): Ditto.
22553 (_mm_rsqrt28_round_sd): Ditto.
22554 (_mm_rsqrt28_round_ss): Ditto.
22555 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
22556 (_mm_rcp14_round_ss): Ditto.
22557 (_mm_rsqrt14_round_sd): Ditto.
22558 (_mm_rsqrt14_round_ss): Ditto.
22559 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
22560 the first input operand, get rid of match_dup.
22561 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
22563 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
22565 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
22566 operand as the first input operand, set type attribute.
22567 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
22568 Set type attribute.
22569 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
22570 operand as the first input operand, set type attribute.
22572 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22574 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
22577 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
22580 * config/i386/i386.c (construct_container): Remove TFmode check
22581 for X86_64_INTEGER_CLASS.
22583 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
22586 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
22587 only when -Wpsabi is enabled.
22589 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
22592 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
22593 passing arrays in registers are the same as for structs, so remove the
22594 special case for them.
22596 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
22598 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
22599 destination type, extract only the valid bits if the source type is not
22600 integral and has a different mode.
22602 2014-02-19 Richard Biener <rguenther@suse.de>
22605 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
22608 2014-02-19 Richard Biener <rguenther@suse.de>
22611 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
22612 (ipa_modify_call_arguments): Emit an argument load explicitely and
22613 preserve virtual SSA form there and for the replacement call.
22614 Do not update SSA form nor free dominance info.
22616 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22618 * ipa.c (function_and_variable_visibility): Also clear WEAK
22619 flag when disolving COMDAT_GROUP.
22621 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22623 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
22624 * ipa-prop.c (ipa_set_jf_known_type): Return early when
22625 not devirtualizing.
22626 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
22627 do more sanity checks.
22628 (detect_type_change): Return true when giving up early.
22629 (compute_complex_assign_jump_func): Fix type parameter of
22630 ipa_set_ancestor_jf.
22631 (compute_complex_ancestor_jump_func): Likewise.
22632 (update_jump_functions_after_inlining): Fix updating of
22634 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
22636 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
22638 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
22639 inline clones when edge disappears.
22641 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
22644 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
22645 Split 64-bit moves into 2 patterns. Do not allow the use of
22646 direct move for TDmode in little endian, since the decimal value
22647 has little endian bytes within a word, but the 64-bit pieces are
22648 ordered in a big endian fashion, and normal subreg's of TDmode are
22650 (mov<mode>_64bit_dm): Likewise.
22651 (movtd_64bit_nodm): Likewise.
22653 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
22655 PR tree-optimization/60174
22656 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
22657 statement of an SSA_NAME that occurs in an abnormal PHI node.
22659 2014-02-18 Jakub Jelinek <jakub@redhat.com>
22662 * final.c (SEEN_BB): Remove.
22663 (SEEN_NOTE, SEEN_EMITTED): Renumber.
22664 (final_scan_insn): Don't force_source_line on second
22665 NOTE_INSN_BASIC_BLOCK.
22667 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
22670 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
22671 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
22672 (type_natural_mode): Warn ABI change when %zmm register is not
22673 available for AVX512F vector value passing.
22675 2014-02-18 Kai Tietz <ktietz@redhat.com>
22678 * config/i386/i386.c (ix86_expand_prologue): Use value in
22679 rax register as displacement when restoring %r10 or %rax.
22680 Fix wrong offset when restoring both registers.
22682 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
22684 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
22685 assertion with conditional return.
22687 2014-02-18 Jakub Jelinek <jakub@redhat.com>
22688 Uros Bizjak <ubizjak@gmail.com>
22691 * config/i386/driver-i386.c (host_detect_local_cpu): If
22692 YMM state is not saved by the OS, also clear has_f16c. Move
22693 CPUID 0x80000001 handling before YMM state saving checking.
22695 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
22697 PR rtl-optimization/58960
22698 * haifa-sched.c (alloc_global_sched_pressure_data): New,
22699 factored out from ...
22700 (sched_init): ... here.
22701 (free_global_sched_pressure_data): New, factored out from ...
22702 (sched_finish): ... here.
22703 * sched-int.h (free_global_sched_pressure_data): Declare.
22704 * sched-rgn.c (nr_regions_initial): New static global.
22705 (haifa_find_rgns): Initialize it.
22706 (schedule_region): Disable sched-pressure for the newly
22709 2014-02-17 Richard Biener <rguenther@suse.de>
22711 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
22712 release SSA defs of pattern stmts.
22714 2014-02-17 Richard Biener <rguenther@suse.de>
22716 * tree-inline.c (expand_call_inline): Release the virtual
22717 operand defined by the call we are about to inline.
22719 2014-02-17 Richard Biener <rguenther@suse.de>
22721 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
22723 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
22724 Ilya Tocar <ilya.tocar@intel.com>
22726 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
22727 arguments order in builtin.
22728 (_mm512_permutexvar_epi64): Ditto.
22729 (_mm512_mask_permutexvar_epi64): Ditto
22730 (_mm512_maskz_permutexvar_epi32): Ditto
22731 (_mm512_permutexvar_epi32): Ditto
22732 (_mm512_mask_permutexvar_epi32): Ditto
22734 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22736 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
22737 (p8_vmrgow): Likewise.
22739 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22741 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
22744 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
22747 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
22748 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
22749 into 64-bit and 32-bit moves. On 64-bit moves, add support for
22750 using direct move instructions on ISA 2.07. Also adjust
22751 instruction length for 64-bit.
22752 (mov<mode>_64bit, TFmode/TDmode): Likewise.
22753 (mov<mode>_32bit, TFmode/TDmode): Likewise.
22755 2014-02-15 Alan Modra <amodra@gmail.com>
22759 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
22760 find_replacement on parts of insn rtl that might be reloaded.
22762 2014-02-15 Richard Biener <rguenther@suse.de>
22764 PR tree-optimization/60183
22765 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
22766 (tree_ssa_phiprop): Calculate and free post-dominators.
22768 2014-02-14 Jeff Law <law@redhat.com>
22770 PR rtl-optimization/60131
22771 * ree.c (get_extended_src_reg): New function.
22772 (combine_reaching_defs): Use it rather than assuming location of REG.
22773 (find_and_remove_re): Verify first operand of extension is
22774 a REG before adding the insns to the copy list.
22776 2014-02-14 Roland McGrath <mcgrathr@google.com>
22778 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
22779 * configure: Regenerated.
22780 * config.in: Regenerated.
22781 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
22782 instead of ASM_SHORT.
22784 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
22785 Richard Earnshaw <rearnsha@arm.com>
22787 PR rtl-optimization/59535
22788 * lra-constraints.c (process_alt_operands): Encourage alternative
22789 when unassigned pseudo class is superset of the alternative class.
22790 (inherit_reload_reg): Don't inherit when optimizing for code size.
22791 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
22792 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
22793 modes not less than 4 for Thumb1.
22795 2014-02-14 Kyle McMartin <kyle@redhat.com>
22798 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
22800 2014-02-14 Richard Biener <rguenther@suse.de>
22802 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
22803 (get_frame_arg): Drop the assert with langhook types_compatible_p.
22804 Do not strip INDIRECT_REFs.
22806 2014-02-14 Richard Biener <rguenther@suse.de>
22809 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
22810 DECL_FUNCTION_SPECIFIC_TARGET.
22811 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
22812 * tree-streamer-out.c (pack_ts_target_option): Remove.
22813 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
22814 (write_ts_function_decl_tree_pointers): Do not stream
22815 DECL_FUNCTION_SPECIFIC_TARGET.
22816 * tree-streamer-in.c (unpack_ts_target_option): Remove.
22817 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
22818 (lto_input_ts_function_decl_tree_pointers): Do not stream
22819 DECL_FUNCTION_SPECIFIC_TARGET.
22821 2014-02-14 Jakub Jelinek <jakub@redhat.com>
22823 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
22824 (get_initial_def_for_induction, vectorizable_induction): Ignore
22825 debug stmts when looking for exit_phi.
22826 (vectorizable_live_operation): Fix up condition.
22828 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
22830 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
22831 nreverse() because it changes the content of original tree list.
22833 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
22835 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
22836 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
22838 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
22840 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
22841 GNU coding standards.
22843 2014-02-13 Jakub Jelinek <jakub@redhat.com>
22846 * dwarf2out.c (gen_subprogram_die): Don't call
22847 add_calling_convention_attribute if subr_die is old_die.
22849 2014-02-13 Sharad Singhai <singhai@google.com>
22851 * doc/optinfo.texi: Fix order of nodes.
22853 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
22855 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
22856 operands[2], not operands[3].
22858 2014-02-13 Richard Biener <rguenther@suse.de>
22861 * doc/install.texi (ISL): Update recommended version to 0.12.2,
22862 mention the possibility of an in-tree build.
22863 (CLooG): Update recommended version to 0.18.1, mention the
22864 possibility of an in-tree build and clarify that the ISL
22865 bundled with CLooG does not work.
22867 2014-02-13 Jakub Jelinek <jakub@redhat.com>
22870 * expr.c (compress_float_constant): If x is a hard register,
22871 extend into a pseudo and then move to x.
22873 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
22875 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
22876 caused by bad second argument to warning_at() with -mhotpatch and
22877 nested functions (e.g. with gfortran).
22879 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
22881 * opts.c (option_name): Remove "enabled by default" rider.
22883 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
22885 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
22887 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
22888 Uros Bizjak <ubizjak@gmail.com>
22891 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
22892 * configure: Regenerated.
22894 2014-02-12 Richard Biener <rguenther@suse.de>
22896 * vec.c (vec_prefix::calculate_allocation): Move as
22897 inline variant to vec.h.
22898 (vec_prefix::calculate_allocation_1): New out-of-line version.
22899 * vec.h (vec_prefix::calculate_allocation_1): Declare.
22900 (vec_prefix::m_has_auto_buf): Rename to ...
22901 (vec_prefix::m_using_auto_storage): ... this.
22902 (vec_prefix::calculate_allocation): Inline the easy cases
22903 and dispatch to calculate_allocation_1 which doesn't need the
22905 (va_heap::reserve): Use gcc_checking_assert.
22906 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
22907 m_using_auto_storage.
22908 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
22910 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
22911 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
22912 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
22914 2014-02-12 Richard Biener <rguenther@suse.de>
22916 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
22917 when we found a dependence.
22919 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
22921 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
22923 (maybe_fold_stmt): ... into this new function.
22924 * omp-low.c (lower_omp): Update comment.
22926 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
22929 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
22932 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
22934 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
22935 identifiers in comments.
22936 (cortexa53_extra_costs): Likewise.
22937 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
22938 (cortexa7_extra_costs): Likewise.
22939 (cortexa12_extra_costs): Likewise.
22940 (cortexa15_extra_costs): Likewise.
22941 (v7m_extra_costs): Likewise.
22943 2014-02-12 Richard Biener <rguenther@suse.de>
22945 PR middle-end/60092
22946 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
22947 of posix_memalign being successful.
22948 (lower_stmt): Restrict lowering of posix_memalign to when
22949 -ftree-bit-ccp is enabled.
22951 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22953 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
22955 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
22957 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
22959 PR rtl-optimization/60116
22960 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
22961 other_insn once the combination has been validated.
22963 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
22966 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
22968 * ipa-devirt.c: Include demangle.h
22969 (odr_violation_reported): New static variable.
22970 (add_type_duplicate): Update odr_violations.
22971 (maybe_record_node): Add completep parameter; update it.
22972 (record_target_from_binfo): Add COMPLETEP parameter;
22973 update it as needed.
22974 (possible_polymorphic_call_targets_1): Likewise.
22975 (struct polymorphic_call_target_d): Add nonconstruction_targets;
22976 rename FINAL to COMPLETE.
22977 (record_targets_from_bases): Sanity check we found the binfo;
22978 fix COMPLETEP updating.
22979 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
22980 parameter, fix computing of COMPLETEP.
22981 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
22982 at LTO time do demangling.
22983 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
22984 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
22986 (gimple_get_virt_method_for_binfo): Likewise.
22987 * gimple-fold.h (gimple_get_virt_method_for_binfo,
22988 gimple_get_virt_method_for_vtable): Update prototypes.
22990 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
22993 * genautomata.c (add_presence_absence): Fix typo with
22994 {final_}presence_list.
22996 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
22999 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23000 for VSX/Altivec vectors that land in GPR registers.
23002 2014-02-11 Richard Henderson <rth@redhat.com>
23003 Jakub Jelinek <jakub@redhat.com>
23006 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23007 around drhs if type conversion to lacc->type is not useless.
23009 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23011 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23013 (cortex-a57.cortex-a53): Likewise.
23014 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23016 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23018 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23021 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23023 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23024 add_options_for_arm_vfp3.
23026 2014-02-11 Jeff Law <law@redhat.com>
23028 PR middle-end/54041
23029 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23030 object with an undesirable mode.
23032 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23035 * config/i386/sol2-9.h: New file.
23036 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23037 *-*-solaris2.9*): Use it.
23039 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23041 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23042 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23044 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23046 * config/microblaze/microblaze.c: Extend mcpu version format
23048 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23050 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23052 2014-02-10 Richard Henderson <rth@redhat.com>
23055 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23056 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23057 ms-abi vs -mno-accumulate-outgoing-args.
23058 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23059 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23062 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23064 PR middle-end/60080
23065 * cfgexpand.c (expand_asm_operands): Attach source location to
23066 ASM_INPUT rtx objects.
23067 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23069 2014-02-10 Nick Clifton <nickc@redhat.com>
23071 * config/mn10300/mn10300.c (popcount): New function.
23072 (mn10300_expand_prologue): Include saved registers in stack usage
23075 2014-02-10 Jeff Law <law@redhat.com>
23077 PR middle-end/52306
23078 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23079 when changing the SET_DEST of a prior insn to avoid an input reload.
23081 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23083 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23084 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23085 -mcall-openbsd, or -mcall-linux.
23086 (CC1_ENDIAN_BIG_SPEC): Remove.
23087 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23088 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23089 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23090 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23091 and %cc1_endian_default.
23092 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23094 2014-02-10 Richard Biener <rguenther@suse.de>
23096 PR tree-optimization/60115
23097 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23098 MEM_REF handling. Properly verify that the accesses are not
23099 out of the objects bound.
23101 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23103 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23106 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23108 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23109 proper constants and fix formatting.
23110 (possible_polymorphic_call_targets): Fix formatting.
23112 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23113 Ilya Tocar <ilya.tocar@intel.com>
23115 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23116 (_mm512_loadu_epi32): Renamed into...
23117 (_mm512_loadu_si512): This.
23118 (_mm512_storeu_epi32): Renamed into...
23119 (_mm512_storeu_si512): This.
23120 (_mm512_maskz_ceil_ps): Removed.
23121 (_mm512_maskz_ceil_pd): Ditto.
23122 (_mm512_maskz_floor_ps): Ditto.
23123 (_mm512_maskz_floor_pd): Ditto.
23124 (_mm512_floor_round_ps): Ditto.
23125 (_mm512_floor_round_pd): Ditto.
23126 (_mm512_ceil_round_ps): Ditto.
23127 (_mm512_ceil_round_pd): Ditto.
23128 (_mm512_mask_floor_round_ps): Ditto.
23129 (_mm512_mask_floor_round_pd): Ditto.
23130 (_mm512_mask_ceil_round_ps): Ditto.
23131 (_mm512_mask_ceil_round_pd): Ditto.
23132 (_mm512_maskz_floor_round_ps): Ditto.
23133 (_mm512_maskz_floor_round_pd): Ditto.
23134 (_mm512_maskz_ceil_round_ps): Ditto.
23135 (_mm512_maskz_ceil_round_pd): Ditto.
23136 (_mm512_expand_pd): Ditto.
23137 (_mm512_expand_ps): Ditto.
23138 * config/i386/i386.c (ix86_builtins): Remove
23139 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23140 (bdesc_args): Ditto.
23141 * config/i386/predicates.md (const1256_operand): New.
23142 (const_1_to_2_operand): Ditto.
23143 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23144 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23145 (*avx512pf_gatherpf<mode>sf): Ditto.
23146 (avx512pf_gatherpf<mode>df): Ditto.
23147 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23148 (*avx512pf_gatherpf<mode>df): Ditto.
23149 (avx512pf_scatterpf<mode>sf): Ditto.
23150 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23151 (*avx512pf_scatterpf<mode>sf): Ditto.
23152 (avx512pf_scatterpf<mode>df): Ditto.
23153 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23154 (*avx512pf_scatterpf<mode>df): Ditto.
23155 (avx512f_expand<mode>): Removed.
23156 (<shift_insn><mode>3<mask_name>): Change predicate type.
23158 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23160 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23161 not at the end of datarefs vector use ordered_remove to avoid
23162 reordering datarefs vector.
23165 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23166 mark local addressable non-static vars as GOVD_PRIVATE
23167 instead of GOVD_LOCAL.
23168 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23169 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23172 PR middle-end/60092
23173 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23174 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23175 assume_aligned or alloc_align attributes.
23176 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23177 arguments. Handle also assume_aligned and alloc_align attributes.
23178 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23179 calls to functions with assume_aligned or alloc_align attributes.
23180 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23182 2014-02-08 Terry Guo <terry.guo@arm.com>
23184 * doc/invoke.texi: Document ARM -march=armv7e-m.
23186 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23188 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23189 flag on __cilkrts_rethrow builtin.
23192 * ipa-cp.c (determine_versionability): Fail at -O0
23193 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23194 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23197 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23200 * tree-inline.c (copy_forbidden): Fail for
23201 __attribute__((optimize (0))) functions.
23203 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23205 * varpool.c: Include pointer-set.h.
23206 (varpool_remove_unreferenced_decls): Variables in other partitions
23207 will not be output; be however careful to not lose information
23208 about partitioning.
23210 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23212 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23213 lookup in the vtable constructor.
23215 2014-02-07 Jeff Law <law@redhat.com>
23218 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23219 define_insn_and_split.
23221 * ipa-inline.c (inline_small_functions): Fix typos.
23223 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23225 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23226 (s390_can_use_return_insn): Declare.
23227 * config/s390/s390.h (EPILOGUE_USES): Define.
23228 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23230 (s390_chunkify_start): Handle return JUMP_LABELs.
23231 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23232 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23233 (s390_can_use_return_insn): New functions.
23234 (s390_fix_long_loop_prediction): Handle conditional returns.
23235 (TARGET_SET_UP_BY_PROLOGUE): Define.
23236 * config/s390/s390.md (ANY_RETURN): New code iterator.
23237 (*creturn, *csimple_return, return, simple_return): New patterns.
23239 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23241 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23242 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23243 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23244 REG_CFA_RESTORE list when deciding not to restore a register.
23246 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23248 * config/s390/s390.c: Include tree-pass.h and context.h.
23249 (s390_early_mach): New function, split out from...
23250 (s390_emit_prologue): ...here.
23251 (pass_data_s390_early_mach): New pass structure.
23252 (pass_s390_early_mach): New class.
23253 (s390_option_override): Create and register early_mach pass.
23254 Move to end of file.
23256 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23258 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23259 to match for the exit block.
23261 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23263 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23264 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23265 Reject misaligned operands.
23267 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23269 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23271 2014-02-07 Richard Biener <rguenther@suse.de>
23273 PR middle-end/60092
23274 * gimple-low.c (lower_builtin_posix_memalign): New function.
23275 (lower_stmt): Call it to lower posix_memalign in a way
23276 to make alignment info accessible.
23278 2014-02-07 Jakub Jelinek <jakub@redhat.com>
23281 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23282 __builtin_setjmp_receiver.
23284 2014-02-07 Richard Biener <rguenther@suse.de>
23286 PR middle-end/60092
23287 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23288 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23289 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23290 Handle BUILT_IN_POSIX_MEMALIGN.
23291 (find_func_clobbers): Likewise.
23292 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23293 (call_may_clobber_ref_p_1): Likewise.
23295 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23298 * ipa-devirt.c (record_target_from_binfo): Remove overactive
23301 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23304 * lto-cgraph.c (lto_output_node): Use
23305 symtab_get_symbol_partitioning_class.
23306 (lto_output_varpool_node): likewise.
23307 (symtab_get_symbol_partitioning_class): Move here from
23308 lto/lto-partition.c
23309 * cgraph.h (symbol_partitioning_class): Likewise.
23310 (symtab_get_symbol_partitioning_class): Declare.
23312 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23314 * ggc.h (ggc_internal_cleared_alloc): New macro.
23315 * vec.h (vec_safe_copy): Handle memory stats.
23316 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
23317 * target-globals.c (save_target_globals): Likewise.
23319 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23322 * expr.c (emit_move_resolve_push): Export; be bit more selective
23323 on when to clear alias set.
23324 * expr.h (emit_move_resolve_push): Declare.
23325 * function.h (struct function): Add tail_call_marked.
23326 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
23327 * config/i386/i386-protos.h (ix86_expand_push): Remove.
23328 * config/i386/i386.md (TImode move expander): De not call
23330 (FP push expanders): Preserve memory attributes.
23331 * config/i386/sse.md (push<mode>1): Remove.
23332 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
23333 (ix86_expand_push): Remove.
23334 * config/i386/mmx.md (push<mode>1): Remove.
23336 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23338 PR rtl-optimization/60030
23339 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
23340 lopart with paradoxical subreg before shifting it up by hprec.
23342 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23344 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
23345 Remove extra newline at end of file.
23346 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
23347 (arm_issue_rate): Handle cortexa57.
23348 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
23349 (cortex-a57.cortex-a53): Likewise.
23351 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23354 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
23355 don't record in REG_FRAME_RELATED_EXPR registers not set in that
23357 (arm_expand_prologue): Adjust all callers.
23358 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
23359 info, registers also at the lowest numbered registers side. Use
23360 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
23364 * var-tracking.c (adjust_mems): Before adding a SET to
23365 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
23367 2014-02-06 Alan Modra <amodra@gmail.com>
23370 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
23371 change SDmode to DDmode when lra_in_progress.
23373 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23375 PR middle-end/59150
23376 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
23377 free_data_ref on the dr first, and before goto again also set dr
23378 to the next dr. For simd_lane_access, free old datarefs[i] before
23379 overwriting it. For get_vectype_for_scalar_type failure, don't
23380 free_data_ref if simd_lane_access.
23382 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
23385 * tree.h (opts_for_fn): New inline function.
23386 (opt_for_fn): Define.
23387 * config/i386/i386.c (ix86_function_regparm): Use
23388 opt_for_fn (decl, optimize) instead of optimize.
23390 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
23392 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
23393 for SYMBOL_REF in large memory model.
23395 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23397 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
23398 and crypto support.
23399 (cortex-a57): Likewise.
23400 (cortex-a57.cortex-a53): Likewise.
23402 2014-02-06 Yury Gribov <y.gribov@samsung.com>
23403 Kugan Vivekanandarajah <kuganv@linaro.org>
23405 * config/arm/arm.c (arm_vector_alignment_reachable): Check
23407 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
23409 2014-02-06 Richard Biener <rguenther@suse.de>
23411 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
23412 set_loop_copy and initialize_original_copy_tables.
23414 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
23416 * config/aarch64/aarch64-simd.md
23417 (aarch64_ashr_simddi): Change QI to SI.
23419 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23420 Jakub Jelinek <jakub@redhat.com>
23422 PR middle-end/60013
23423 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
23426 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23428 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
23429 CODE_FOR_altivec_vpku[hw]um to
23430 CODE_FOR_altivec_vpku[hw]um_direct.
23431 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
23432 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
23433 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
23434 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
23436 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23438 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
23439 generation for -maltivec=be.
23440 (altivec_vsumsws): Simplify redundant test.
23442 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23444 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
23445 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
23446 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
23447 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
23448 gen_altivec_vpkuwum.
23449 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
23451 (altivec_vpks<VI_char>ss): Likewise.
23452 (altivec_vpks<VI_char>us): Likewise.
23453 (altivec_vpku<VI_char>us): Likewise.
23454 (altivec_vpku<VI_char>um): Likewise.
23455 (altivec_vpku<VI_char>um_direct): New (copy of
23456 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
23458 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
23459 target is little endian and -maltivec=be is not specified.
23460 (*altivec_vupkhs<VU_char>_direct): New (copy of
23461 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
23462 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
23463 target is little endian and -maltivec=be is not specified.
23464 (*altivec_vupkls<VU_char>_direct): New (copy of
23465 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
23466 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
23467 little endian and -maltivec=be is not specified.
23468 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
23469 little endian and -maltivec=be is not specified.
23471 2014-02-05 Richard Henderson <rth@redhat.com>
23474 * combine-stack-adj.c: Revert r206943.
23475 * sched-int.h (struct deps_desc): Add last_args_size.
23476 * sched-deps.c (init_deps): Initialize it.
23477 (sched_analyze_insn): Add OUTPUT dependencies between insns that
23478 contain REG_ARGS_SIZE notes.
23480 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23482 * lto-cgraph.c (asm_nodes_output): Make global.
23483 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
23484 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
23485 (driver_handle_option): Handle OPT_fwpa.
23487 2014-02-05 Jakub Jelinek <jakub@redhat.com>
23490 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
23491 a comment typo and formatting issue. If odr_hash hasn't been
23492 created, return vNULL and set *completep to false.
23494 PR middle-end/57499
23495 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
23496 bb with no successors.
23498 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
23501 * doc/invoke.texi (-march): Clarify documentation for ARM.
23502 (-mtune): Likewise.
23505 2014-02-05 Richard Biener <rguenther@suse.de>
23507 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
23508 when not vectorizing because of too many alias checks.
23509 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23510 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
23512 2014-02-05 Nick Clifton <nickc@redhat.com>
23514 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
23515 accept extended registers in any mode when compiling for the MN10300.
23517 2014-02-05 Yury Gribov <y.gribov@samsung.com>
23519 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
23520 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
23521 sanitization attributes.
23522 (can_inline_edge_p): Likewise.
23523 (sanitize_attrs_match_for_inline_p): New function.
23525 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23527 * ipa-prop.c (detect_type_change): Shor circuit testing of
23528 type changes on THIS pointer.
23530 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
23533 * config/pa/pa.c (legitimize_tls_address): Return original address
23534 if not passed a SYMBOL_REF rtx.
23535 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
23537 (pa_emit_move_sequence): Simplify TLS source operands.
23538 (pa_legitimate_constant_p): Reject all TLS constants.
23539 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
23540 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
23542 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23544 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
23545 groups when we know they are controlled by LTO.
23546 * varasm.c (default_binds_local_p_1): If object is in other partition,
23547 it will be resolved locally.
23549 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23551 * config/host-linux.c (linux_gt_pch_use_address): Don't
23552 use SSIZE_MAX because it is not always defined.
23554 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
23557 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
23558 threshold for pseudo splitting.
23559 (update_ebb_live_info): Process call argument hard registers and
23560 hard registers from insn definition too.
23561 (max_small_class_regs_num): New constant.
23562 (inherit_in_ebb): Update live hard regs through EBBs. Update
23563 reloads_num only for small register classes. Don't split for
23566 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
23569 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
23572 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
23574 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
23575 visibility is safe.
23577 2014-02-04 Marek Polacek <polacek@redhat.com>
23579 * gdbinit.in (pel): Define.
23581 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23583 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
23586 2014-02-04 Richard Biener <rguenther@suse.de>
23589 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
23590 in function context local.
23591 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
23592 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
23593 similar to LTO_imported_decl_ref.
23595 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23597 PR tree-optimization/60002
23598 * cgraphclones.c (build_function_decl_skip_args): Clear
23599 DECL_LANG_SPECIFIC.
23601 PR tree-optimization/60023
23602 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
23603 false to gsi_replace.
23604 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
23605 has been in some EH region and vec_stmt could throw, add
23606 vec_stmt into the same EH region.
23607 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
23608 has no lhs, ignore it.
23609 * internal-fn.c (expand_MASK_LOAD): Likewise.
23612 * tree-inline.c (copy_forbidden): Fail for
23613 __attribute__((optimize (0))) functions.
23616 * omp-low.c (simd_clone_struct_copy): If from->inbranch
23617 is set, copy one less argument.
23618 (expand_simd_clones): Don't subtract clone_info->inbranch
23619 from simd_clone_struct_alloc argument.
23621 PR rtl-optimization/57915
23622 * recog.c (simplify_while_replacing): If all unary/binary/relational
23623 operation arguments are constant, attempt to simplify those.
23625 PR middle-end/59261
23626 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
23627 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
23629 2014-02-04 Richard Biener <rguenther@suse.de>
23631 PR tree-optimization/60012
23632 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
23633 TBAA disambiguation to all DDRs.
23635 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23638 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
23639 (LINK_SPEC): Use it for -shared, -shared-libgcc.
23641 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23644 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
23646 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23648 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
23649 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
23651 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23654 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
23655 to figure out targets of polymorphic calls with known decl.
23656 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23657 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
23658 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
23659 (get_polymorphic_call_info): ... here.
23660 (get_polymorphic_call_info_from_invariant): New function.
23662 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23664 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
23665 lookup via vtable pointer; check for type consistency
23666 and turn inconsitent facts into UNREACHABLE.
23667 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23668 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
23669 type inconsistent querries; return UNREACHABLE instead.
23671 2014-02-03 Richard Henderson <rth@twiddle.net>
23674 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
23675 already processed this node.
23676 (normalize_one_pred_1): Pass along mark_set.
23677 (normalize_one_pred): Create and destroy a pointer_set_t.
23678 (normalize_one_pred_chain): Likewise.
23680 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
23682 PR gcov-profile/58602
23683 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
23685 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
23688 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
23689 -fno-devirtualize; try to devirtualize by the knowledge of
23690 virtual table pointer given by aggregate propagation.
23691 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
23692 (ipa_print_node_jump_functions): Dump also offset that
23693 is relevant for polymorphic calls.
23694 (determine_known_aggregate_parts): Add arg_type parameter; use it
23695 instead of determining the type from pointer type.
23696 (ipa_compute_jump_functions_for_edge): Update call of
23697 determine_known_aggregate_parts.
23698 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
23699 (gimple_get_virt_method_for_binfo): ... here; simplify using
23700 vtable_pointer_value_to_vtable.
23701 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
23702 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
23703 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
23704 (vtable_pointer_value_to_vtable): Break out from ...; handle also
23706 (vtable_pointer_value_to_binfo): ... here.
23707 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
23709 2014-02-03 Teresa Johnson <tejohnson@google.com>
23711 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
23712 redef of outer loop index variable.
23714 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
23718 * doc/extend.texi (Function Attributes): Typo.
23720 2014-02-03 Cong Hou <congh@google.com>
23722 PR tree-optimization/60000
23723 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
23724 if the vectorized statement is a store. A store statement can only
23725 appear at the end of pattern statements.
23727 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
23729 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
23730 (ix86_option_override_internal): Default long double to 64-bit for
23731 32-bit Bionic and to 128-bit for 64-bit Bionic.
23733 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
23734 TARGET_LONG_DOUBLE_128 is true.
23735 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
23737 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
23738 (mlong-double-64): Negate -mlong-double-128.
23739 (mlong-double-128): New option.
23741 * config/i386/i386-c.c (ix86_target_macros): Define
23742 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
23744 * doc/invoke.texi: Document -mlong-double-128.
23746 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
23748 PR rtl-optimization/60024
23749 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
23751 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
23753 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
23755 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
23757 PR rtl-optimization/57662
23758 * sel-sched.c (code_motion_path_driver): Do not mark already not
23759 existing blocks in the visiting bitmap.
23761 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
23763 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
23764 on the insn being emitted.
23766 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
23767 Will Deacon <will.deacon@arm.com>
23769 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
23771 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23773 * config/arm/arm-tables.opt: Regenerate.
23775 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23777 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
23778 for vector types other than V16QImode.
23779 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
23780 define_expand, and call altivec_expand_vec_perm_le when producing
23781 code with little endian element order.
23782 (*altivec_vperm_<mode>_internal): New insn having previous
23783 behavior of altivec_vperm_<mode>.
23784 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
23785 altivec_expand_vec_perm_le when producing code with little endian
23787 (*altivec_vperm_<mode>_uns_internal): New insn having previous
23788 behavior of altivec_vperm_<mode>_uns.
23790 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23792 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
23793 (altivec_vsumsws): Add handling for -maltivec=be with a little
23795 (altivec_vsumsws_direct): New.
23796 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
23797 gen_altivec_vsumsws.
23799 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
23801 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
23802 vtable_pointer_value_to_binfo): New functions.
23803 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
23804 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
23806 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
23808 * config/nios2/nios2.md (load_got_register): Initialize GOT
23809 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
23810 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
23812 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
23814 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
23815 preserverd by passthrough, do not propagate the type.
23817 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
23819 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
23820 (mips_atomic_assign_expand_fenv): New function.
23821 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
23823 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
23825 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
23826 (__builtin_mips_set_fcsr): Likewise.
23827 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
23828 MIPS_USI_FTYPE_VOID.
23829 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
23830 (mips16_expand_set_fcsr): Likewise.
23831 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
23832 (mips16_set_fcsr_stub): Likewise.
23833 (mips16_get_fcsr_one_only_stub): New class.
23834 (mips16_set_fcsr_one_only_stub): Likewise.
23835 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
23836 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
23837 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
23838 (hard_float): New availability predicate.
23839 (mips_builtins): Add get_fcsr and set_fcsr.
23840 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
23841 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
23842 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
23843 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
23844 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
23847 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
23849 * config/mips/mips.c (mips_one_only_stub): New class.
23850 (mips_need_mips16_rdhwr_p): Replace with...
23851 (mips16_rdhwr_stub): ...this new variable.
23852 (mips16_stub_call_address): New function.
23853 (mips16_rdhwr_one_only_stub): New class.
23854 (mips_expand_thread_pointer): Use mips16_stub_call_address.
23855 (mips_output_mips16_rdhwr): Delete.
23856 (mips_finish_stub): New function.
23857 (mips_code_end): Use it to handle rdhwr stubs.
23859 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
23862 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
23863 when calculating size of integer atomic types.
23865 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
23867 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
23869 2014-02-01 Jakub Jelinek <jakub@redhat.com>
23871 PR tree-optimization/60003
23872 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
23873 * profile.c (branch_prob): Use gimple_call_builtin_p
23874 to check for BUILT_IN_SETJMP_RECEIVER.
23875 * tree-inline.c (copy_bb): Call notice_special_calls.
23877 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
23880 * lra-constraints.c (process_alt_operands): Update reload_sum only
23883 2014-01-31 Richard Henderson <rth@redhat.com>
23885 PR middle-end/60004
23886 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
23887 until after else_eh is processed.
23889 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
23891 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
23892 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
23893 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
23894 in smmintrin.h, remove them.
23895 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
23896 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
23897 * config/i386/i386.md (ROUND_SAE): Fix value.
23898 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
23899 (const48_operand): New.
23900 * config/i386/subst.md (round), (round_expand): Use
23901 const_4_or_8_to_11_operand.
23902 (round_saeonly), (round_saeonly_expand): Use const48_operand.
23904 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
23906 * config/i386/constraints.md (Yk): Swap meaning with k.
23907 * config/i386/i386.md (movhi_internal): Change Yk to k.
23908 (movqi_internal): Ditto.
23909 (*k<logic><mode>): Ditto.
23912 (kandn<mode>): Ditto.
23913 (*<code>hi_1): Ditto.
23914 (*<code>qi_1): Ditto.
23915 (kxnor<mode>): Ditto.
23916 (kortestzhi): Ditto.
23917 (kortestchi): Ditto.
23919 (*one_cmplhi2_1): Ditto.
23920 (*one_cmplqi2_1): Ditto.
23921 * config/i386/sse.md (): Change k to Yk.
23922 (avx512f_load<mode>_mask): Ditto.
23923 (avx512f_blendm<mode>): Ditto.
23924 (avx512f_store<mode>_mask): Ditto.
23925 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
23926 (avx512f_storedqu<mode>_mask): Ditto.
23927 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
23929 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
23930 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
23931 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
23932 (avx512f_maskcmp<mode>3): Ditto.
23933 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
23934 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
23935 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
23936 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
23937 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
23938 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
23939 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
23940 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
23941 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
23942 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
23943 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
23944 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
23945 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
23946 (vec_extract_lo_<mode>_maskm): Ditto.
23947 (vec_extract_hi_<mode>_maskm): Ditto.
23948 (avx512f_vternlog<mode>_mask): Ditto.
23949 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
23950 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
23951 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
23952 (avx512f_<code>v8div16qi2_mask): Ditto.
23953 (avx512f_<code>v8div16qi2_mask_store): Ditto.
23954 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
23955 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
23956 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
23957 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
23958 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23959 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23960 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23961 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23962 (avx512cd_maskb_vec_dupv8di): Ditto.
23963 (avx512cd_maskw_vec_dupv16si): Ditto.
23964 (avx512f_vpermi2var<mode>3_maskz): Ditto.
23965 (avx512f_vpermi2var<mode>3_mask): Ditto.
23966 (avx512f_vpermi2var<mode>3_mask): Ditto.
23967 (avx512f_vpermt2var<mode>3_maskz): Ditto.
23968 (*avx512f_gathersi<mode>): Ditto.
23969 (*avx512f_gathersi<mode>_2): Ditto.
23970 (*avx512f_gatherdi<mode>): Ditto.
23971 (*avx512f_gatherdi<mode>_2): Ditto.
23972 (*avx512f_scattersi<mode>): Ditto.
23973 (*avx512f_scatterdi<mode>): Ditto.
23974 (avx512f_compress<mode>_mask): Ditto.
23975 (avx512f_compressstore<mode>_mask): Ditto.
23976 (avx512f_expand<mode>_mask): Ditto.
23977 * config/i386/subst.md (mask): Change k to Yk.
23978 (mask_scalar_merge): Ditto.
23981 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
23983 * doc/extend.texi (Vector Extensions): Document ?: in C++.
23985 2014-01-31 Richard Biener <rguenther@suse.de>
23987 PR middle-end/59990
23988 * builtins.c (fold_builtin_memory_op): Make sure to not
23989 use a floating-point mode or a boolean or enumeral type for
23990 the copy operation.
23992 2014-01-30 DJ Delorie <dj@redhat.com>
23994 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
23995 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
23996 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
23997 whenever main() has an epilogue.
23999 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24001 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24002 unused variable "field".
24003 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24004 (vsx_mergeh_<mode>): Likewise.
24005 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24006 (altivec_vmrghh): Likewise.
24007 (altivec_vmrghw): Likewise.
24008 (altivec_vmrglb): Likewise.
24009 (altivec_vmrglh): Likewise.
24010 (altivec_vmrglw): Likewise.
24011 (altivec_vspltb): Add missing uses.
24012 (altivec_vsplth): Likewise.
24013 (altivec_vspltw): Likewise.
24014 (altivec_vspltsf): Likewise.
24016 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24019 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24020 frame related instructions.
24022 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24024 PR rtl-optimization/59959
24025 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24026 any reload of register whose subreg is invalid.
24028 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24030 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24031 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24032 Add missing return type - void.
24034 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24036 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24037 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24038 remove element index adjustment for endian (now handled in vsx.md
24040 (altivec_expand_vec_perm_const): Use
24041 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24042 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24043 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24044 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24045 define_expand and a new define_insn *altivec_vspltb_internal;
24046 adjust for -maltivec=be on a little endian target.
24047 (altivec_vspltb_direct): New.
24048 (altivec_vsplth): Divide into a define_expand and a new
24049 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24050 little endian target.
24051 (altivec_vsplth_direct): New.
24052 (altivec_vspltw): Divide into a define_expand and a new
24053 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24054 little endian target.
24055 (altivec_vspltw_direct): New.
24056 (altivec_vspltsf): Divide into a define_expand and a new
24057 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24058 a little endian target.
24060 2014-01-30 Richard Biener <rguenther@suse.de>
24062 PR tree-optimization/59993
24063 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24064 can propagate form the earlier stmt and avoid the transform
24065 when the intermediate result is needed.
24067 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24069 * README.Portability: Fix typo.
24071 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24073 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24074 comparison_operator with ordered_comparison_operator.
24076 2014-01-30 Nick Clifton <nickc@redhat.com>
24078 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24079 Rename to mn10300_store_multiple_regs.
24080 * config/mn10300/mn10300.c: Likewise.
24081 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24082 store_multiple_regs.
24083 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24084 Call mn10300_store_multiple_regs.
24086 2014-01-30 Nick Clifton <nickc@redhat.com>
24087 DJ Delorie <dj@redhat.com>
24089 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24090 %fp 2 to keep registers after it properly word-aligned.
24091 (rl78_alloc_physical_registers_umul): Handle the case where both
24092 input operands are the same.
24094 2014-01-30 Richard Biener <rguenther@suse.de>
24096 PR tree-optimization/59903
24097 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24100 2014-01-30 Jason Merrill <jason@redhat.com>
24103 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24106 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24108 2014-01-30 Richard Biener <rguenther@suse.de>
24110 PR tree-optimization/59951
24111 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24113 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24116 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24117 SFmode to DFmode case.
24119 2014-01-29 DJ Delorie <dj@redhat.com>
24121 * config/msp430/msp430.opt (-minrt): New.
24122 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24124 (ENDFILE_SPEC): Likewise.
24126 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24128 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24129 (estimate_function_body_sizes): Use it.
24131 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24134 * dwarf2out.c (is_cxx_auto): New.
24135 (is_base_type): Use it.
24136 (gen_type_die_with_usage): Likewise.
24138 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24140 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24141 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24142 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24143 -maltivec=be with LE targets.
24144 (vsx_mergeh_<mode>): Likewise.
24145 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24146 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24147 (altivec_vmrghb): Replace with define_expand and new
24148 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24149 (altivec_vmrghb_direct): New define_insn.
24150 (altivec_vmrghh): Replace with define_expand and new
24151 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24152 (altivec_vmrghh_direct): New define_insn.
24153 (altivec_vmrghw): Replace with define_expand and new
24154 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24155 (altivec_vmrghw_direct): New define_insn.
24156 (*altivec_vmrghsf): Adjust for endianness.
24157 (altivec_vmrglb): Replace with define_expand and new
24158 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24159 (altivec_vmrglb_direct): New define_insn.
24160 (altivec_vmrglh): Replace with define_expand and new
24161 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24162 (altivec_vmrglh_direct): New define_insn.
24163 (altivec_vmrglw): Replace with define_expand and new
24164 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24165 (altivec_vmrglw_direct): New define_insn.
24166 (*altivec_vmrglsf): Adjust for endianness.
24167 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24168 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24169 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24170 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24171 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24172 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24173 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24174 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24176 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24178 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24179 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24182 2014-01-29 Richard Biener <rguenther@suse.de>
24184 PR tree-optimization/58742
24185 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24186 associate_pointerplus_align.
24187 (associate_pointerplus_diff): New function.
24188 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24189 and associate_pointerplus_diff.
24191 2014-01-29 Richard Biener <rguenther@suse.de>
24193 * lto-streamer.h (LTO_major_version): Bump to 3.
24194 (LTO_minor_version): Reset to 0.
24196 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24198 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24199 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24200 (arm_file_start): Generate correct asm header for armv7ve.
24201 * config/arm/bpabi.h: Add multilib support for armv7ve.
24202 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24203 and cortex-a15 to armv7ve.
24204 * config/arm/t-aprofile: Add multilib support for armv7ve.
24205 * doc/invoke.texi: Document -march=armv7ve.
24207 2014-01-29 Richard Biener <rguenther@suse.de>
24209 PR tree-optimization/58742
24210 * tree-ssa-forwprop.c (associate_plusminus): Return true
24211 if we changed sth, defer EH cleanup to ...
24212 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24213 (simplify_mult): New function.
24215 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24217 PR middle-end/59917
24218 PR tree-optimization/59920
24219 * tree.c (build_common_builtin_nodes): Remove
24220 __builtin_setjmp_dispatcher initialization.
24221 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24222 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24223 instead of gsi_after_labels + manually skipping debug stmts.
24224 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24225 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24226 * tree-inline.c (copy_edges_for_bb): Remove
24227 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24228 argument. Ignore computed_goto_p stmts. Don't call
24229 make_abnormal_goto_edges. If a call might need abnormal edges
24230 for non-local gotos, see if it already has an edge to
24231 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24232 with true argument, don't do anything then, otherwise add
24233 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24234 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24236 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24237 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24238 (lower_stmt): Don't set data->calls_builtin_setjmp.
24239 (lower_builtin_setjmp): Adjust comment.
24240 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24241 * tree-cfg.c (found_computed_goto): Remove.
24242 (factor_computed_gotos): Remove.
24243 (make_goto_expr_edges): Return bool, true for computed gotos.
24244 Don't call make_abnormal_goto_edges.
24245 (build_gimple_cfg): Don't set found_computed_goto, don't call
24246 factor_computed_gotos.
24247 (computed_goto_p): No longer static.
24248 (make_blocks): Don't set found_computed_goto.
24249 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24250 (make_edges): If make_goto_expr_edges returns true, push bb
24251 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24252 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24253 vector. Record mapping between bbs and OpenMP regions if there
24254 are any, adjust make_gimple_omp_edges caller. Call
24255 handle_abnormal_edges.
24256 (make_abnormal_goto_edges): Remove.
24257 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24258 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24259 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24260 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24261 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24262 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24263 filling *region also set *region_idx to (*region)->entry->index.
24266 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24267 For REGs set ORIGINAL_REGNO.
24269 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
24271 * doc/md.texi: Mention that a target shouldn't implement
24272 vec_widen_(s|u)mul_even/odd pair if it is less efficient
24275 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24277 PR tree-optimization/59594
24278 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24279 a copy of the datarefs vector rather than the vector itself.
24281 2014-01-28 Jason Merrill <jason@redhat.com>
24284 * dwarf2out.c (auto_die): New static.
24285 (gen_type_die_with_usage): Handle C++1y 'auto'.
24286 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24289 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
24292 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
24293 (SPEC_X32): Likewise.
24294 (SPEC_64): Likewise.
24295 * config/i386/i386.c (ix86_option_override_internal): Turn off
24296 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
24298 (x86_file_start): Output .code16gcc for TARGET_16BIT.
24299 * config/i386/i386.h (TARGET_16BIT): New macro.
24300 (TARGET_16BIT_P): Likewise.
24301 * config/i386/i386.opt: Add m16.
24302 * doc/invoke.texi: Document -m16.
24304 2014-01-28 Jakub Jelinek <jakub@redhat.com>
24306 PR preprocessor/59935
24307 * input.c (location_get_source_line): Bail out on when line number
24308 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
24310 2014-01-28 Richard Biener <rguenther@suse.de>
24312 PR tree-optimization/58742
24313 * tree-ssa-forwprop.c (associate_plusminus): Handle
24314 pointer subtraction of the form (T)(P + A) - (T)P.
24316 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24318 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
24321 2014-01-28 Richard Biener <rguenther@suse.de>
24324 2014-01-28 Richard Biener <rguenther@suse.de>
24326 PR rtl-optimization/45364
24327 PR rtl-optimization/59890
24328 * var-tracking.c (local_get_addr_clear_given_value): Handle
24329 already cleared slot.
24330 (val_reset): Handle not allocated local_get_addr_cache.
24331 (vt_find_locations): Use post-order on the inverted CFG.
24333 2014-01-28 Richard Biener <rguenther@suse.de>
24335 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
24337 2014-01-28 Richard Biener <rguenther@suse.de>
24339 PR rtl-optimization/45364
24340 PR rtl-optimization/59890
24341 * var-tracking.c (local_get_addr_clear_given_value): Handle
24342 already cleared slot.
24343 (val_reset): Handle not allocated local_get_addr_cache.
24344 (vt_find_locations): Use post-order on the inverted CFG.
24346 2014-01-28 Alan Modra <amodra@gmail.com>
24348 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
24349 * configure.ac <recursive call for build != host>: Define
24350 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
24351 and LD_FOR_BUILD too.
24352 * configure: Regenerate.
24354 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
24356 * config/i386/i386.c (get_builtin_code_for_version): Separate
24357 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
24358 Broadwell from Haswell.
24360 2014-01-27 Steve Ellcey <sellcey@mips.com>
24362 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24363 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
24364 * config/mips/mips.c (mips_option_override): Change setting
24366 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
24367 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
24368 Change from Mask to Var.
24370 2014-01-27 Jeff Law <law@redhat.com>
24372 * ipa-inline.c (inline_small_functions): Fix typo.
24374 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
24376 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
24377 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
24378 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
24379 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
24380 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
24381 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
24382 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
24383 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
24384 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
24385 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
24386 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
24387 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
24388 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
24389 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
24390 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
24391 (_mm512_storeu_epi64): Ditto.
24392 (_mm512_cmpge_epi32_mask): Ditto.
24393 (_mm512_cmpge_epu32_mask): Ditto.
24394 (_mm512_cmpge_epi64_mask): Ditto.
24395 (_mm512_cmpge_epu64_mask): Ditto.
24396 (_mm512_cmple_epi32_mask): Ditto.
24397 (_mm512_cmple_epu32_mask): Ditto.
24398 (_mm512_cmple_epi64_mask): Ditto.
24399 (_mm512_cmple_epu64_mask): Ditto.
24400 (_mm512_cmplt_epi32_mask): Ditto.
24401 (_mm512_cmplt_epu32_mask): Ditto.
24402 (_mm512_cmplt_epi64_mask): Ditto.
24403 (_mm512_cmplt_epu64_mask): Ditto.
24404 (_mm512_cmpneq_epi32_mask): Ditto.
24405 (_mm512_cmpneq_epu32_mask): Ditto.
24406 (_mm512_cmpneq_epi64_mask): Ditto.
24407 (_mm512_cmpneq_epu64_mask): Ditto.
24408 (_mm512_expand_pd): Ditto.
24409 (_mm512_expand_ps): Ditto.
24410 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
24411 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
24412 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
24413 * config/i386/i386.c (ix86_builtins): Add
24414 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
24415 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
24416 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
24417 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
24418 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
24419 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
24420 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
24421 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
24422 IX86_BUILTIN_PMOVUSQW512_MEM.
24423 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
24424 __builtin_ia32_pmovsqd512mem_mask,
24425 __builtin_ia32_pmovqd512mem_mask,
24426 __builtin_ia32_pmovusqw512mem_mask,
24427 __builtin_ia32_pmovsqw512mem_mask,
24428 __builtin_ia32_pmovqw512mem_mask,
24429 __builtin_ia32_pmovusdw512mem_mask,
24430 __builtin_ia32_pmovsdw512mem_mask,
24431 __builtin_ia32_pmovdw512mem_mask,
24432 __builtin_ia32_pmovqb512mem_mask,
24433 __builtin_ia32_pmovusqb512mem_mask,
24434 __builtin_ia32_pmovsqb512mem_mask,
24435 __builtin_ia32_pmovusdb512mem_mask,
24436 __builtin_ia32_pmovsdb512mem_mask,
24437 __builtin_ia32_pmovdb512mem_mask.
24438 (bdesc_args): Add __builtin_ia32_expanddf512,
24439 __builtin_ia32_expandsf512.
24440 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
24441 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
24442 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
24443 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
24444 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
24445 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
24446 (avx512f_<code>v8div16qi2_mask_store): This.
24447 (avx512f_expand<mode>): New.
24449 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
24451 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
24453 (_mm512_mask_prefetch_i64gather_pd): Ditto.
24454 (_mm512_prefetch_i32scatter_pd): Ditto.
24455 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
24456 (_mm512_prefetch_i64scatter_pd): Ditto.
24457 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
24458 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
24459 (_mm512_mask_prefetch_i64gather_ps): Ditto.
24460 (_mm512_prefetch_i32scatter_ps): Ditto.
24461 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
24462 (_mm512_prefetch_i64scatter_ps): Ditto.
24463 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
24464 * config/i386/i386-builtin-types.def: Define
24465 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
24466 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
24467 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
24468 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
24469 IX86_BUILTIN_SCATTERPFQPD.
24470 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
24471 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
24472 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
24473 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
24474 __builtin_ia32_scatterpfqps.
24475 (ix86_expand_builtin): Expand new built-ins.
24476 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
24477 fix memory access data type.
24478 (*avx512pf_gatherpf<mode>_mask): Ditto.
24479 (*avx512pf_gatherpf<mode>): Ditto.
24480 (avx512pf_scatterpf<mode>): Ditto.
24481 (*avx512pf_scatterpf<mode>_mask): Ditto.
24482 (*avx512pf_scatterpf<mode>): Ditto.
24483 (GATHER_SCATTER_SF_MEM_MODE): New.
24484 (avx512pf_gatherpf<mode>df): Ditto.
24485 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24486 (*avx512pf_scatterpf<mode>df): Ditto.
24488 2014-01-27 Jakub Jelinek <jakub@redhat.com>
24491 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
24492 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
24495 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24497 * common/config/arm/arm-common.c
24498 (arm_rewrite_mcpu): Handle multiple names.
24500 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24502 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24504 * gimple-builder.h (create_gimple_tmp): Delete.
24506 2014-01-27 Christian Bruel <christian.bruel@st.com>
24508 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
24511 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
24513 * config/pa/pa.md (call): Generate indirect long calls to non-local
24514 functions when outputing 32-bit code.
24515 (call_value): Likewise except for special call to buggy powf function.
24517 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
24518 portable runtime and PIC indirect calls.
24519 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
24520 and PIC call sequences. Use ldo instead of blr to set return register
24521 in PIC call sequence.
24523 2014-01-25 Walter Lee <walt@tilera.com>
24525 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
24526 avoid clobbering a live register.
24528 2014-01-25 Walter Lee <walt@tilera.com>
24530 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
24531 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
24532 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
24533 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
24535 2014-01-25 Walter Lee <walt@tilera.com>
24537 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
24538 arguments on even registers.
24539 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
24541 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
24542 (BIGGEST_ALIGNMENT): Ditto.
24543 (BIGGEST_FIELD_ALIGNMENT): Ditto.
24545 2014-01-25 Walter Lee <walt@tilera.com>
24547 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
24548 insns before bundling.
24549 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
24551 2014-01-25 Walter Lee <walt@tilera.com>
24553 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
24554 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
24555 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
24557 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24559 * config/mips/constraints.md (kl): Delete.
24560 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
24561 define expands, using...
24562 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
24563 instructions for MIPS16.
24564 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
24565 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
24567 2014-01-25 Walter Lee <walt@tilera.com>
24569 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
24573 2014-01-25 Walter Lee <walt@tilera.com>
24575 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
24576 (TARGET_EXPAND_TO_RTL_HOOK): Define.
24578 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
24580 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
24583 2014-01-25 Jakub Jelinek <jakub@redhat.com>
24585 * print-rtl.c (in_call_function_usage): New var.
24586 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
24587 EXPR_LIST mode as mode and not as reg note name.
24589 PR middle-end/59561
24590 * cfgloopmanip.c (copy_loop_info): If
24591 loop->warned_aggressive_loop_optimizations, make sure
24592 the flag is set in target loop too.
24594 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
24596 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
24598 * builtins.def: Likewise.
24599 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
24600 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
24601 * ira.c (ira_setup_eliminable_regset): Likewise.
24602 * omp-low.c (gate_expand_omp): Likewise.
24603 (execute_lower_omp): Likewise.
24604 (diagnose_sb_0): Likewise.
24605 (gate_diagnose_omp_blocks): Likewise.
24606 (simd_clone_clauses_extract): Likewise.
24609 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24611 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
24612 correction for little endian...
24613 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
24616 2014-01-24 Jeff Law <law@redhat.com>
24618 PR tree-optimization/59919
24619 * tree-vrp.c (find_assert_locations_1): Do not register asserts
24620 for non-returning calls.
24622 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
24624 * common/config/aarch64/aarch64-common.c
24625 (aarch64_rewrite_mcpu): Handle multiple names.
24626 * config/aarch64/aarch64.h
24627 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24629 2014-01-24 Dodji Seketeli <dodji@redhat.com>
24631 * input.c (add_file_to_cache_tab): Handle the case where fopen
24634 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
24637 * config/i386/i386.md (pushsf splitter): Get stack adjustment
24638 from push operand if code of push isn't PRE_DEC.
24640 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
24643 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
24644 -mquad-memory-atomic. Update -mquad-memory documentation to say
24645 it is only used for non-atomic loads/stores.
24647 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
24648 -mquad-memory or -mquad-memory-atomic switches.
24650 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
24651 -mquad-memory-atomic to ISA 2.07 support.
24653 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
24654 to separate support of normal quad word memory operations (ldq, stq)
24655 from the atomic quad word memory operations.
24657 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
24658 support to separate non-atomic quad word operations from atomic
24659 quad word operations. Disable non-atomic quad word operations in
24660 little endian mode so that we don't have to swap words after the
24661 load and before the store.
24662 (quad_load_store_p): Add comment about atomic quad word support.
24663 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
24664 options printed with -mdebug=reg.
24666 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
24667 -mquad-memory-atomic as the test for whether we have quad word
24668 atomic instructions.
24669 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
24670 or -mp8-vector are used, allow byte/half-word atomic operations.
24672 * config/rs6000/sync.md (load_lockedti): Insure that the address
24673 is a proper indexed or indirect address for the lqarx instruction.
24674 On little endian systems, swap the hi/lo registers after the lqarx
24676 (load_lockedpti): Use indexed_or_indirect_operand predicate to
24677 insure the address is valid for the lqarx instruction.
24678 (store_conditionalti): Insure that the address is a proper indexed
24679 or indirect address for the stqcrx. instruction. On little endian
24680 systems, swap the hi/lo registers before doing the stqcrx.
24682 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
24683 insure the address is valid for the stqcrx. instruction.
24685 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
24686 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
24687 type of quad memory support is available.
24689 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
24691 PR regression/59915
24692 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
24693 there is a danger of looping.
24695 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
24697 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24698 force flag_ira_loop_pressure if set via command line.
24700 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
24702 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
24703 (ashr_simd): New builtin handling DI mode.
24704 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
24705 (aarch64_sshr_simddi): New match pattern.
24706 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
24707 (vshrd_n_s64): Likewise.
24708 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
24710 2014-01-23 Nick Clifton <nickc@redhat.com>
24712 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
24713 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
24714 favour of mcu specific scripts.
24715 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
24718 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
24719 Alex Velenko <Alex.Velenko@arm.com>
24721 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
24722 (vaddv_s16): Likewise.
24723 (vaddv_s32): Likewise.
24724 (vaddv_u8): Likewise.
24725 (vaddv_u16): Likewise.
24726 (vaddv_u32): Likewise.
24727 (vaddvq_s8): Likewise.
24728 (vaddvq_s16): Likewise.
24729 (vaddvq_s32): Likewise.
24730 (vaddvq_s64): Likewise.
24731 (vaddvq_u8): Likewise.
24732 (vaddvq_u16): Likewise.
24733 (vaddvq_u32): Likewise.
24734 (vaddvq_u64): Likewise.
24735 (vaddv_f32): Likewise.
24736 (vaddvq_f32): Likewise.
24737 (vaddvq_f64): Likewise.
24738 (vmaxv_f32): Likewise.
24739 (vmaxv_s8): Likewise.
24740 (vmaxv_s16): Likewise.
24741 (vmaxv_s32): Likewise.
24742 (vmaxv_u8): Likewise.
24743 (vmaxv_u16): Likewise.
24744 (vmaxv_u32): Likewise.
24745 (vmaxvq_f32): Likewise.
24746 (vmaxvq_f64): Likewise.
24747 (vmaxvq_s8): Likewise.
24748 (vmaxvq_s16): Likewise.
24749 (vmaxvq_s32): Likewise.
24750 (vmaxvq_u8): Likewise.
24751 (vmaxvq_u16): Likewise.
24752 (vmaxvq_u32): Likewise.
24753 (vmaxnmv_f32): Likewise.
24754 (vmaxnmvq_f32): Likewise.
24755 (vmaxnmvq_f64): Likewise.
24756 (vminv_f32): Likewise.
24757 (vminv_s8): Likewise.
24758 (vminv_s16): Likewise.
24759 (vminv_s32): Likewise.
24760 (vminv_u8): Likewise.
24761 (vminv_u16): Likewise.
24762 (vminv_u32): Likewise.
24763 (vminvq_f32): Likewise.
24764 (vminvq_f64): Likewise.
24765 (vminvq_s8): Likewise.
24766 (vminvq_s16): Likewise.
24767 (vminvq_s32): Likewise.
24768 (vminvq_u8): Likewise.
24769 (vminvq_u16): Likewise.
24770 (vminvq_u32): Likewise.
24771 (vminnmv_f32): Likewise.
24772 (vminnmvq_f32): Likewise.
24773 (vminnmvq_f64): Likewise.
24775 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
24777 * config/aarch64/aarch64-simd.md
24778 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
24779 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
24780 (*aarch64_mul3_elt<mode>): Likewise.
24781 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
24782 (*aarch64_mul3_elt_to_64v2df): Likewise.
24783 (*aarch64_mla_elt<mode>): Likewise.
24784 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
24785 (*aarch64_mls_elt<mode>): Likewise.
24786 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
24787 (*aarch64_fma4_elt<mode>): Likewise.
24788 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
24789 (*aarch64_fma4_elt_to_64v2df): Likewise.
24790 (*aarch64_fnma4_elt<mode>): Likewise.
24791 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
24792 (*aarch64_fnma4_elt_to_64v2df): Likewise.
24793 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
24794 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
24795 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
24796 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
24797 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
24798 (aarch64_sqdmull_lane<mode>_internal): Likewise.
24799 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
24801 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
24803 * config/aarch64/aarch64-simd.md
24804 (aarch64_be_checked_get_lane<mode>): New define_expand.
24805 * config/aarch64/aarch64-simd-builtins.def
24806 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
24807 New builtin definition.
24808 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
24809 Use new safe be builtin.
24811 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
24813 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
24815 (aarch64_be_st1<mode>): Likewise.
24816 (aarch_ld1<VALL:mode>): Define_expand modified.
24817 (aarch_st1<VALL:mode>): Likewise.
24818 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
24819 (UNSPEC_ST1): Likewise.
24821 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
24823 * config/microblaze/microblaze.md: Add trap insn and attribute
24825 2014-01-23 Dodji Seketeli <dodji@redhat.com>
24827 PR preprocessor/58580
24828 * input.h (location_get_source_line): Take an additional line_size
24830 (void diagnostics_file_cache_fini): Declare new function.
24831 * input.c (struct fcache): New type.
24832 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
24833 New static constants.
24834 (diagnostic_file_cache_init, total_lines_num)
24835 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
24836 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
24837 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
24838 (get_next_line, read_next_line, goto_next_line, read_line_num):
24839 New static function definitions.
24840 (diagnostic_file_cache_fini): New function.
24841 (location_get_source_line): Take an additional output line_len
24842 parameter. Re-write using lookup_or_add_file_to_cache_tab and
24844 * diagnostic.c (diagnostic_finish): Call
24845 diagnostic_file_cache_fini.
24846 (adjust_line): Take an additional input parameter for the length
24847 of the line, rather than calculating it with strlen.
24848 (diagnostic_show_locus): Adjust the use of
24849 location_get_source_line and adjust_line with respect to their new
24850 signature. While displaying a line now, do not stop at the first
24851 null byte. Rather, display the zero byte as a space and keep
24852 going until we reach the size of the line.
24853 * Makefile.in: Add vec.o to OBJS-libcommon
24855 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
24856 Ilya Tocar <ilya.tocar@intel.com>
24858 * config/i386/avx512fintrin.h (_mm512_kmov): New.
24859 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
24860 (__builtin_ia32_kmov16): Ditto.
24861 * config/i386/i386.md (UNSPEC_KMOV): New.
24864 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
24866 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
24867 (_mm512_storeu_si512): Ditto.
24869 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
24872 * rtl.h (get_referenced_operands): Declare.
24873 * recog.c (get_referenced_operands): New function.
24874 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
24875 operands have been referenced when recording LO_SUM references.
24877 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
24879 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
24881 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
24883 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
24884 Enable for generic and recent AMD targets.
24886 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
24888 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
24889 ARG_SIZE note when adjustment was eliminated.
24891 2014-01-22 Jeff Law <law@redhat.com>
24893 PR tree-optimization/59597
24894 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
24895 in file. Accept new argument REGISTERING and use it to modify
24896 dump output appropriately.
24897 (register_jump_thread): Corresponding changes.
24898 (mark_threaded_blocks): Reinstate code to cancel unprofitable
24899 thread paths involving joiner blocks. Add code to dump cancelled
24900 jump threading paths.
24902 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
24904 PR rtl-optimization/59477
24905 * lra-constraints.c (inherit_in_ebb): Process call for living hard
24906 regs. Update reloads_num and potential_reload_hard_regs for all insns.
24908 2014-01-22 Tom Tromey <tromey@redhat.com>
24910 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
24912 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
24914 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
24916 PR rtl-optimization/59896
24917 * lra-constraints.c (process_alt_operands): Check unused note for
24918 matched operands of insn with no output reloads.
24920 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
24922 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
24923 (mips_move_from_gpr_cost): Likewise.
24925 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
24927 PR rtl-optimization/59858
24928 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
24929 ira_class_hard_regs_num.
24930 (process_alt_operands): Increase reject for dying matched operand.
24932 2014-01-21 Jakub Jelinek <jakub@redhat.com>
24935 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
24936 smaller than size, perform several stores or loads and stores
24937 at dst + count - size to store or copy all of size bytes, rather
24938 than just last modesize bytes.
24940 2014-01-20 DJ Delorie <dj@redhat.com>
24942 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
24943 that CLOBBERs are REGs before propogating their values.
24945 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
24947 PR middle-end/59789
24948 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
24949 (cgraph_inline_failed_type): New function.
24950 * cgraph.h (DEFCIFCODE): Add type.
24951 (cgraph_inline_failed_type_t): New enum.
24952 (cgraph_inline_failed_type): New prototype.
24953 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
24954 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
24955 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
24956 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
24957 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
24958 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
24959 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
24960 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
24961 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
24962 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
24963 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
24964 OPTIMIZATION_MISMATCH.
24965 * tree-inline.c (expand_call_inline): Emit errors during
24966 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
24968 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
24971 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
24972 mode attribute in insn output.
24974 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
24976 * output.h (output_constant): Delete.
24977 * varasm.c (output_constant): Make private.
24979 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
24981 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
24983 2014-01-20 Jakub Jelinek <jakub@redhat.com>
24985 PR middle-end/59860
24986 * tree.h (fold_builtin_strcat): New prototype.
24987 * builtins.c (fold_builtin_strcat): No longer static. Add len
24988 argument, if non-NULL, don't call c_strlen. Optimize
24989 directly into __builtin_memcpy instead of __builtin_strcpy.
24990 (fold_builtin_2): Adjust fold_builtin_strcat caller.
24991 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
24993 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
24995 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
24996 for SImode_address_operand operands, having only a REG argument.
24998 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25000 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25001 loader name using mbig-endian.
25002 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25004 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25006 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25007 (-mtune): Likewise.
25010 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25012 * config/aarch64/aarch64-protos.h
25013 (aarch64_cannot_change_mode_class_ptr): Declare.
25014 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25015 aarch64_cannot_change_mode_class_ptr): New.
25016 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25017 backend hook aarch64_cannot_change_mode_class.
25019 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25021 * common/config/aarch64/aarch64-common.c
25022 (aarch64_handle_option): Don't handle any option order logic here.
25023 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25024 selected_cpu, warn on architecture version mismatch.
25025 (aarch64_override_options): Fix parsing order for option strings.
25027 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25028 Iain Sandoe <iain@codesourcery.com>
25031 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25032 warning. Amend comment to reflect current functionality.
25034 2014-01-20 Richard Biener <rguenther@suse.de>
25036 PR middle-end/59860
25037 * builtins.c (fold_builtin_strcat): Remove case better handled
25038 by tree-ssa-strlen.c.
25040 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25042 * config/aarch64/aarch64.opt
25043 (mcpu, march, mtune): Make case-insensitive.
25045 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25048 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25049 if operands[1] is a REG or ZERO_EXTEND of a REG.
25051 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25053 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25055 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25057 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25058 long non-pic millicode calls.
25060 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25062 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25064 2014-01-19 Kito Cheng <kito@0xlab.org>
25066 * builtins.c (expand_movstr): Check movstr expand done or fail.
25068 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25069 H.J. Lu <hongjiu.lu@intel.com>
25072 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25073 to DImode for zero-extended addresses.
25075 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25077 PR rtl-optimization/57763
25078 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25079 on the new indirect jump_insn and increment LABEL_NUSES (label).
25081 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25085 * config.gcc (x86_archs): New variable.
25086 (x86_64_archs): Likewise.
25087 (x86_cpus): Likewise.
25088 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25089 --with-arch/--with-cpu= options.
25090 Support --with-arch=/--with-cpu={nehalem,westmere,
25091 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25093 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25095 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25096 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25098 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25100 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25102 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25105 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25106 clear cpp_get_options (parse_in)->warn_unused_macros for
25107 ix86_target_macros_internal with cpp_define.
25109 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25111 * jump.c (delete_related_insns): Keep (use (insn))s.
25112 * reorg.c (redundant_insn): Check for barriers too.
25114 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25116 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25118 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25120 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25121 call to $$dyncall when TARGET_LONG_CALLS is true.
25123 2014-01-17 Jeff Law <law@redhat.com>
25125 * ree.c (combine_set_extension): Temporarily disable test for
25126 changing number of hard registers.
25128 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25130 PR middle-end/58125
25131 * ipa-inline-analysis.c (inline_free_summary):
25132 Do not free summary of aliases.
25134 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25136 PR middle-end/59706
25137 * gimplify.c (gimplify_expr): Use create_tmp_var
25138 instead of create_tmp_var_raw. If cond doesn't have
25139 integral type, don't add the IFN_ANNOTATE builtin at all.
25141 2014-01-17 Martin Jambor <mjambor@suse.cz>
25144 * ipa-cp.c (prev_edge_clone): New variable.
25145 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25146 Also resize prev_edge_clone vector.
25147 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25148 (ipcp_edge_removal_hook): New function.
25149 (ipcp_driver): Register ipcp_edge_removal_hook.
25151 2014-01-17 Andrew Pinski <apinski@cavium.com>
25152 Steve Ellcey <sellcey@mips.com>
25155 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25158 2014-01-17 Jeff Law <law@redhat.com>
25160 PR middle-end/57904
25161 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25162 so that pass_ccp runs first.
25164 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25166 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25167 (ix86_adjust_cost): Use !TARGET_XXX.
25168 (do_reorder_for_imul): Likewise.
25169 (swap_top_of_ready_list): Likewise.
25170 (ix86_sched_reorder): Likewise.
25172 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25174 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25175 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25176 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25177 (intel_memset): New. Duplicate slm_memset.
25178 (intel_cost): New. Duplicate slm_cost.
25179 (m_INTEL): New macro.
25180 (processor_target_table): Add "intel".
25181 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25182 with PROCESSOR_INTEL for "intel".
25183 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25184 PROCESSOR_SILVERMONT.
25185 (ix86_issue_rate): Likewise.
25186 (ix86_adjust_cost): Likewise.
25187 (ia32_multipass_dfa_lookahead): Likewise.
25188 (swap_top_of_ready_list): Likewise.
25189 (ix86_sched_reorder): Likewise.
25190 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25191 instead of TARGET_OPT_AGU.
25192 * config/i386/i386.h (TARGET_INTEL): New.
25193 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25194 (processor_type): Add PROCESSOR_INTEL.
25195 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25196 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25198 2014-01-17 Marek Polacek <polacek@redhat.com>
25201 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25204 2014-01-17 Richard Biener <rguenther@suse.de>
25206 PR tree-optimization/46590
25207 * opts.c (default_options_table): Add entries for
25208 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25209 all enabled at -O1 but not for -Og.
25210 * common.opt (fbranch-count-reg): Remove Init(1).
25211 (fmove-loop-invariants): Likewise.
25212 (ftree-pta): Likewise.
25214 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25216 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25217 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25218 decls to at least the GCC 4.8 used alignments.
25221 * tree-nested.c (convert_nonlocal_reference_stmt,
25222 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25223 of GIMPLE_BIND stmts, adjust associated decls.
25225 2014-01-17 Richard Biener <rguenther@suse.de>
25227 PR tree-optimization/46590
25228 * vec.h (vec<>::bseach): New member function implementing
25229 binary search according to C89 bsearch.
25230 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25231 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25232 bitmap pointer again. Make accesses_in_loop a flat array.
25233 (mem_ref_obstack): New global.
25234 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25235 (mark_ref_stored): Likewise.
25236 (ref_indep_loop_p_2): Likewise.
25237 (set_ref_stored_in_loop): New helper function.
25238 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25239 (memref_free): Adjust.
25240 (record_mem_ref_loc): Simplify.
25241 (gather_mem_refs_stmt): Adjust.
25242 (sort_locs_in_loop_postorder_cmp): New function.
25243 (analyze_memory_references): Sort accesses_in_loop after
25244 loop postorder number.
25245 (find_ref_loc_in_loop_cmp): New function.
25246 (for_all_locs_in_loop): Find relevant cluster of locs in
25247 accesses_in_loop and iterate without recursion.
25248 (execute_sm): Avoid uninit warning.
25249 (struct ref_always_accessed): Simplify.
25250 (ref_always_accessed::operator ()): Likewise.
25251 (ref_always_accessed_p): Likewise.
25252 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25253 loop postorder numbers here.
25254 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25257 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25260 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25261 on decls for which assemble_alias has been called.
25263 2014-01-17 Nick Clifton <nickc@redhat.com>
25265 * config/msp430/msp430.opt: (mcpu): New option.
25266 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25267 (msp430_option_override): Parse target_cpu. If the MCU name
25268 matches a generic string, clear target_mcu.
25269 (msp430_attr): Allow numeric interrupt values up to 63.
25270 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25271 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25273 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25275 * config/msp430/msp430.md (popm): Use %J rather than %I.
25276 (addsi3): Use msp430_nonimmediate_operand for operand 2.
25277 (addhi_cy_i): Use immediate_operand for operand 2.
25278 * doc/invoke.texi: Document -mcpu option.
25280 2014-01-17 Richard Biener <rguenther@suse.de>
25282 PR rtl-optimization/38518
25283 * df.h (df_analyze_loop): Declare.
25284 * df-core.c: Include cfgloop.h.
25285 (df_analyze_1): Split out main part of df_analyze.
25286 (df_analyze): Adjust.
25287 (loop_inverted_post_order_compute): New function.
25288 (loop_post_order_compute): Likewise.
25289 (df_analyze_loop): New function avoiding whole-function
25290 postorder computes.
25291 * loop-invariant.c (find_defs): Use df_analyze_loop.
25292 (find_invariants): Adjust.
25293 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
25295 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
25297 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
25298 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
25300 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25302 * ipa-ref.c (ipa_remove_stmt_references): Fix references
25303 traversal when removing references.
25305 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
25308 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
25310 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
25312 PR middle-end/56791
25313 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
25314 pushing a reload for an autoinc when we had previously reloaded an
25315 inner part of the address.
25317 2014-01-16 Jakub Jelinek <jakub@redhat.com>
25319 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
25321 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
25322 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
25323 when not giving up or versioning for alias only because of
25325 (vect_analyze_data_ref_dependences): Set to true.
25326 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
25328 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
25329 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
25332 PR middle-end/58344
25333 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
25336 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
25337 operand 0 predicate for gathers, use a new pseudo as subtarget.
25339 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25341 PR middle-end/59609
25342 * lra-constraints.c (process_alt_operands): Add printing debug info.
25343 Check absence of input/output reloads for matched operands too.
25345 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25347 PR rtl-optimization/59835
25348 * ira.c (ira_init_register_move_cost): Increase cost for
25351 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
25353 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
25355 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
25358 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
25359 non-register objects. Use gen_(high/low)part more consistently.
25362 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
25365 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
25366 endian support, remove tests for WORDS_BIG_ENDIAN.
25367 (p8_mfvsrd_3_<mode>): Likewise.
25368 (reload_gpr_from_vsx<mode>): Likewise.
25369 (reload_gpr_from_vsxsf): Likewise.
25370 (p8_mfvsrd_4_disf): Likewise.
25372 2014-01-16 Richard Biener <rguenther@suse.de>
25374 PR rtl-optimization/46590
25375 * lcm.c (compute_antinout_edge): Use postorder iteration.
25376 (compute_laterin): Use inverted postorder iteration.
25378 2014-01-16 Nick Clifton <nickc@redhat.com>
25380 PR middle-end/28865
25381 * varasm.c (output_constant): Return the number of bytes actually
25383 (output_constructor_array_range): Update the field size with the
25384 number of bytes emitted by output_constant.
25385 (output_constructor_regular_field): Likewise. Also do not
25386 complain if the total number of bytes emitted is now greater
25387 than the expected fieldpos.
25388 * output.h (output_constant): Update prototype and descriptive comment.
25390 2014-01-16 Marek Polacek <polacek@redhat.com>
25392 PR middle-end/59827
25393 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
25394 it is error_mark_node.
25396 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
25398 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
25399 VALID_AVX256_REG_OR_OI_MODE.
25401 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
25403 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
25404 current procedure should be profiled.
25406 2014-01-15 Andrew Pinski <apinski@cavium.com>
25408 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
25409 of moving from/to the STACK_REG register class.
25411 2014-01-15 Richard Henderson <rth@redhat.com>
25414 * reginfo.c (global_regs_decl): Globalize.
25415 * rtl.h (global_regs_decl): Declare.
25416 * ira.c (do_reload): Diagnose frame_pointer_needed and it
25417 reserved via global_regs.
25419 2014-01-15 Teresa Johnson <tejohnson@google.com>
25421 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
25423 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
25425 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
25426 and vmulosh rather than call gen_vec_widen_smult_*.
25427 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
25428 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
25429 (vec_widen_smult_even_v16qi): Likewise.
25430 (vec_widen_umult_even_v8hi): Likewise.
25431 (vec_widen_smult_even_v8hi): Likewise.
25432 (vec_widen_umult_odd_v16qi): Likewise.
25433 (vec_widen_smult_odd_v16qi): Likewise.
25434 (vec_widen_umult_odd_v8hi): Likewise.
25435 (vec_widen_smult_odd_v8hi): Likewise.
25436 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
25437 vmuloub rather than call gen_vec_widen_umult_*.
25438 (vec_widen_umult_lo_v16qi): Likewise.
25439 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
25440 vmulosb rather than call gen_vec_widen_smult_*.
25441 (vec_widen_smult_lo_v16qi): Likewise.
25442 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
25443 rather than call gen_vec_widen_umult_*.
25444 (vec_widen_umult_lo_v8hi): Likewise.
25445 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
25446 rather than call gen_vec_widen_smult_*.
25447 (vec_widen_smult_lo_v8hi): Likewise.
25449 2014-01-15 Jeff Law <law@redhat.com>
25451 PR tree-optimization/59747
25452 * ree.c (find_and_remove_re): Properly handle case where a second
25453 eliminated extension requires widening a copy created for elimination
25454 of a prior extension.
25455 (combine_set_extension): Ensure that the number of hard regs needed
25456 for a destination register does not change when we widen it.
25458 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
25460 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
25461 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
25462 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
25463 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
25464 (avr-*-rtems*): Likewise.
25465 (bfin*-rtems*): Likewise.
25466 (moxie-*-rtems*): Likewise.
25467 (h8300-*-rtems*): Likewise.
25468 (i[34567]86-*-rtems*): Likewise.
25469 (lm32-*-rtems*): Likewise.
25470 (m32r-*-rtems*): Likewise.
25471 (m68k-*-rtems*): Likewise.
25472 (microblaze*-*-rtems*): Likewise.
25473 (mips*-*-rtems*): Likewise.
25474 (powerpc-*-rtems*): Likewise.
25475 (sh-*-rtems*): Likewise.
25476 (sparc-*-rtems*): Likewise.
25477 (sparc64-*-rtems*): Likewise.
25478 (v850-*-rtems*): Likewise.
25479 (m32c-*-rtems*): Likewise.
25481 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
25483 PR rtl-optimization/59511
25484 * ira.c (ira_init_register_move_cost): Use memory costs for some
25485 cases of register move cost calculations.
25486 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
25487 instead of BB frequency.
25488 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
25489 * lra-assigns.c (find_hard_regno_for): Ditto.
25491 2014-01-15 Richard Biener <rguenther@suse.de>
25493 PR tree-optimization/59822
25494 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
25495 (vectorizable_load): Use it to hoist defs of uses of invariant
25496 loads out of the loop.
25498 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
25499 Kugan Vivekanandarajah <kuganv@linaro.org>
25502 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
25505 2014-01-15 Richard Biener <rguenther@suse.de>
25507 PR rtl-optimization/59802
25508 * lcm.c (compute_available): Use inverted postorder to seed
25509 the initial worklist.
25511 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25514 * config/s390/s390.c (s390_preferred_reload_class): Don't return
25515 ADDR_REGS for invalid symrefs in non-PIC code.
25517 2014-01-15 Jakub Jelinek <jakub@redhat.com>
25520 * builtins.c (determine_block_size): Initialize *probable_max_size
25521 even if len_rtx is CONST_INT.
25523 2014-01-14 Andrew Pinski <apinski@cavium.com>
25525 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
25526 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
25527 (cortexa53_tunings): Likewise.
25528 (aarch64_sched_issue_rate): New function.
25529 (TARGET_SCHED_ISSUE_RATE): Define.
25531 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25533 * ira-costs.c (find_costs_and_classes): Add missed
25534 ira_init_register_move_cost_if_necessary.
25536 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
25539 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
25541 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
25544 * config/i386/i386.c (type_natural_mode): Add a bool parameter
25545 to indicate if type is used for function return value. Warn ABI
25546 change if the vector mode isn't available for function return value.
25547 (ix86_function_arg_advance): Pass false to type_natural_mode.
25548 (ix86_function_arg): Likewise.
25549 (ix86_gimplify_va_arg): Likewise.
25550 (function_arg_32): Don't warn ABI change.
25551 (ix86_function_value): Pass true to type_natural_mode.
25552 (ix86_return_in_memory): Likewise.
25553 (ix86_struct_value_rtx): Removed.
25554 (TARGET_STRUCT_VALUE_RTX): Likewise.
25556 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25558 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
25559 converting a conditional jump into a conditional return.
25561 2014-01-14 Richard Biener <rguenther@suse.de>
25563 PR tree-optimization/58921
25564 PR tree-optimization/59006
25565 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
25566 hoisting invariant stmts.
25567 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
25568 invariant loads on the preheader edge if possible.
25570 2014-01-14 Joey Ye <joey.ye@arm.com>
25572 * doc/plugin.texi (Building GCC plugins): Update to C++.
25574 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
25576 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
25577 (_mm_rcp28_round_ss): Ditto.
25578 (_mm_rsqrt28_round_sd): Ditto.
25579 (_mm_rsqrt28_round_ss): Ditto.
25580 (_mm_rcp28_sd): Ditto.
25581 (_mm_rcp28_ss): Ditto.
25582 (_mm_rsqrt28_sd): Ditto.
25583 (_mm_rsqrt28_ss): Ditto.
25584 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
25585 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
25586 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
25587 (IX86_BUILTIN_RCP28SD): Ditto.
25588 (IX86_BUILTIN_RCP28SS): Ditto.
25589 (IX86_BUILTIN_RSQRT28SD): Ditto.
25590 (IX86_BUILTIN_RSQRT28SS): Ditto.
25591 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
25592 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
25593 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
25594 (ix86_expand_special_args_builtin): Expand new FTYPE.
25595 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
25596 (srcp14<mode>): Make insn unary.
25597 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
25598 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
25599 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
25600 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
25601 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
25602 Fix rounding: make it SAE only.
25603 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
25605 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
25607 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
25608 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
25609 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
25610 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
25611 (round_saeonly_mask_scalar_operand4): Ditto.
25612 (round_saeonly_mask_scalar_op3): Ditto.
25613 (round_saeonly_mask_scalar_op4): Ditto.
25615 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25617 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25618 Implement -maltivec=be for vec_insert and vec_extract.
25620 2014-01-10 DJ Delorie <dj@redhat.com>
25622 * config/msp430/msp430.md (call_internal): Don't allow memory
25623 references with SP as the base register.
25624 (call_value_internal): Likewise.
25625 * config/msp430/constraints.md (Yc): New. For memory references
25626 that don't use SP as a base register.
25628 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
25629 "an integer without a # prefix"
25630 * config/msp430/msp430.md (epilogue_helper): Use it.
25632 2014-01-13 Jakub Jelinek <jakub@redhat.com>
25635 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
25636 AVX512F gather builtins.
25637 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
25638 on gather decls with INTEGER_TYPE masktype.
25639 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
25640 directly into the builtin rather than hoisting it before loop.
25642 PR tree-optimization/59387
25643 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
25644 (scev_const_prop): If folded_casts and type has undefined overflow,
25645 use force_gimple_operand instead of force_gimple_operand_gsi and
25646 for each added stmt if it is assign with
25647 arith_code_with_undefined_signed_overflow, call
25648 rewrite_to_defined_overflow.
25649 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
25650 gimple-fold.h instead.
25651 (arith_code_with_undefined_signed_overflow,
25652 rewrite_to_defined_overflow): Moved to ...
25653 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
25654 rewrite_to_defined_overflow): ... here. No longer static.
25655 Include gimplify-me.h.
25656 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
25657 rewrite_to_defined_overflow): New prototypes.
25659 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25661 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
25663 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
25665 * builtins.c (get_object_alignment_2): Minor tweak.
25666 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
25668 2014-01-13 Christian Bruel <christian.bruel@st.com>
25670 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
25671 optimized non constant lengths.
25673 2014-01-13 Jakub Jelinek <jakub@redhat.com>
25676 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
25677 load as __atomic_load_N if possible.
25679 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
25681 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
25683 (rs6000_expand_builtin): Adjust call.
25685 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
25688 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
25689 * config/rs6000/rs6000.c: Include target-globals.h.
25690 (rs6000_set_current_function): Instead of doing target_reinit
25691 unconditionally, use save_target_globals_default_opts and
25692 restore_target_globals.
25694 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
25696 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
25697 (rs6000_expand_builtin): Handle mffs and mtfsf.
25698 (rs6000_init_builtins): Define mffs and mtfsf.
25699 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
25700 (rs6000_mffs): New pattern.
25701 (rs6000_mtfsf): New pattern.
25703 2014-01-11 Bin Cheng <bin.cheng@arm.com>
25705 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
25706 Start narrowing with START. Apply candidate-use pair
25707 and check overall cost in narrowing.
25708 (iv_ca_prune): Pass new argument.
25710 2014-01-10 Jeff Law <law@redhat.com>
25712 PR middle-end/59743
25713 * ree.c (combine_reaching_defs): Ensure the defining statement
25714 occurs before the extension when optimizing extensions with
25715 different source and destination hard registers.
25717 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
25720 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
25721 vtables into the type inheritance graph.
25723 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25725 PR rtl-optimization/59754
25726 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
25727 modes in the REGNO != REGNO case.
25729 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25731 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
25733 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25735 PR tree-optimization/59745
25736 * tree-predcom.c (tree_predictive_commoning_loop): Call
25737 free_affine_expand_cache if giving up because components is NULL.
25739 * target-globals.c (save_target_globals): Allocate < 4KB structs using
25740 GC in payload of target_globals struct instead of allocating them on
25741 the heap and the larger structs separately using GC.
25742 * target-globals.h (struct target_globals): Make regs, hard_regs,
25743 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
25744 of GTY((skip)) and change type to void *.
25745 (reset_target_globals): Cast loads from those fields to corresponding
25748 2014-01-10 Steve Ellcey <sellcey@mips.com>
25751 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
25752 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
25753 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
25755 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
25758 * aarch64-modes.def (CC_Zmode): New flags mode.
25759 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
25760 represents an equality.
25761 (aarch64_get_condition_code): Handle CC_Zmode.
25762 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
25764 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25766 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
25767 extraction in good case.
25769 2014-01-10 Richard Biener <rguenther@suse.de>
25771 PR tree-optimization/59374
25772 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
25773 checking after SLP discovery. Mark stmts not participating
25774 in any SLP instance properly.
25776 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25778 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
25779 when handling a SET rtx.
25781 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25783 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
25784 (cortex-a57): Likewise.
25785 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
25787 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25789 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
25790 non-iwmmxt builtins.
25792 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
25796 * ipa-devirt.c record_target_from_binfo): Take as argument
25797 stack of binfos and lookup matching one for virtual inheritance.
25798 (possible_polymorphic_call_targets_1): Update.
25800 2014-01-10 Huacai Chen <chenhc@lemote.com>
25802 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
25803 kernel strings for Loongson-2E/2F/3A.
25805 2014-01-10 Jakub Jelinek <jakub@redhat.com>
25807 PR middle-end/59670
25808 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
25809 is_gimple_call before calling gimple_call_internal_p.
25811 2014-01-09 Steve Ellcey <sellcey@mips.com>
25813 * Makefile.in (TREE_FLOW_H): Remove.
25814 (TREE_SSA_H): Add file names from tree-flow.h.
25815 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
25816 * tree.h: Remove tree-flow.h reference.
25817 * hash-table.h: Remove tree-flow.h reference.
25818 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
25819 reference with tree-ssa-loop.h.
25821 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25823 * doc/invoke.texi: Add -maltivec={be,le} options, and document
25824 default element-order behavior for -maltivec.
25825 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
25826 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
25827 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
25828 when targeting big endian, at least for now.
25829 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
25831 2014-01-09 Jakub Jelinek <jakub@redhat.com>
25833 PR middle-end/47735
25834 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
25835 var satisfies use_register_for_decl, just take into account type
25836 alignment, rather than decl alignment.
25838 PR tree-optimization/59622
25839 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
25840 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
25841 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
25842 Don't devirtualize for inplace at all. For targets.length () == 1,
25843 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
25845 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
25847 * config/i386/i386.md (cpu): Remove the unused btver1.
25849 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
25851 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
25853 2014-01-09 Jakub Jelinek <jakub@redhat.com>
25856 * tree-core.h (struct target_globals): New forward declaration.
25857 (struct tree_target_option): Add globals field.
25858 * tree.h (TREE_TARGET_GLOBALS): Define.
25859 (prepare_target_option_nodes_for_pch): New prototype.
25860 * target-globals.h (struct target_globals): Define even if
25861 !SWITCHABLE_TARGET.
25862 * tree.c (prepare_target_option_node_for_pch,
25863 prepare_target_option_nodes_for_pch): New functions.
25864 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
25865 * config/i386/i386.c: Include target-globals.h.
25866 (ix86_set_current_function): Instead of doing target_reinit
25867 unconditionally, use save_target_globals_default_opts and
25868 restore_target_globals.
25870 2014-01-09 Richard Biener <rguenther@suse.de>
25872 PR tree-optimization/59715
25873 * tree-cfg.h (split_critical_edges): Declare.
25874 * tree-cfg.c (split_critical_edges): Export.
25875 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
25877 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
25879 * cfgexpand.c (expand_stack_vars): Optionally disable
25880 asan stack protection.
25881 (expand_used_vars): Likewise.
25882 (partition_stack_vars): Likewise.
25883 * asan.c (asan_emit_stack_protection): Optionally disable
25884 after return stack usage.
25885 (instrument_derefs): Optionally disable memory access instrumentation.
25886 (instrument_builtin_call): Likewise.
25887 (instrument_strlen_call): Likewise.
25888 (asan_protect_global): Optionally disable global variables protection.
25889 * doc/invoke.texi: Added doc for new options.
25890 * params.def: Added new options.
25891 * params.h: Likewise.
25893 2014-01-09 Jakub Jelinek <jakub@redhat.com>
25895 PR rtl-optimization/59724
25896 * ifcvt.c (cond_exec_process_if_block): Don't call
25897 flow_find_head_matching_sequence with 0 longest_match.
25898 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
25899 non-active insns if !stop_after.
25900 (try_head_merge_bb): Revert 2014-01-07 changes.
25902 2014-01-08 Jeff Law <law@redhat.com>
25904 * ree.c (get_sub_rtx): New function, extracted from...
25905 (merge_def_and_ext): Here.
25906 (combine_reaching_defs): Use get_sub_rtx.
25908 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
25910 * cgraph.h (varpool_variable_node): Do not choke on null node.
25912 2014-01-08 Catherine Moore <clm@codesourcery.com>
25914 * config/mips/mips.md (simple_return): Attempt to use JRC
25916 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
25918 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
25920 PR rtl-optimization/59137
25921 * reorg.c (steal_delay_list_from_target): Call update_block for
25923 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
25925 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25927 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
25928 two duplicate entries.
25930 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
25933 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
25935 * config/mips/mips.c (mips_truncated_op_cost): New function.
25936 (mips_rtx_costs): Adjust test for BADDU.
25937 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
25939 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
25941 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
25942 (*baddu_si): ...this new pattern.
25944 2014-01-08 Jakub Jelinek <jakub@redhat.com>
25947 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
25949 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
25951 PR middle-end/57748
25952 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
25954 (expand_expr, expand_normal): Adjust.
25955 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
25956 inner_reference_p. Use inner_reference_p to expand inner references.
25957 (store_expr): Adjust.
25958 * cfgexpand.c (expand_call_stmt): Adjust.
25960 2014-01-08 Rong Xu <xur@google.com>
25962 * gcov-io.c (gcov_var): Move from gcov-io.h.
25963 (gcov_position): Ditto.
25964 (gcov_is_error): Ditto.
25965 (gcov_rewrite): Ditto.
25966 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
25967 only part to libgcc/libgcov.h.
25969 2014-01-08 Marek Polacek <polacek@redhat.com>
25971 PR middle-end/59669
25972 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
25974 2014-01-08 Marek Polacek <polacek@redhat.com>
25977 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
25979 2014-01-08 Jakub Jelinek <jakub@redhat.com>
25981 PR rtl-optimization/59649
25982 * stor-layout.c (get_mode_bounds): For BImode return
25983 0 and STORE_FLAG_VALUE.
25985 2014-01-08 Richard Biener <rguenther@suse.de>
25987 PR middle-end/59630
25988 * gimple.h (is_gimple_builtin_call): Remove.
25989 (gimple_builtin_call_types_compatible_p): New.
25990 (gimple_call_builtin_p): New overload.
25991 * gimple.c (is_gimple_builtin_call): Remove.
25992 (validate_call): Rename to ...
25993 (gimple_builtin_call_types_compatible_p): ... this and export. Also
25994 check return types.
25995 (validate_type): New static function.
25996 (gimple_call_builtin_p): New overload and adjust.
25997 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
25998 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
25999 (gimple_fold_stmt_to_constant_1): Likewise.
26000 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26002 2014-01-08 Richard Biener <rguenther@suse.de>
26004 PR middle-end/59471
26005 * gimplify.c (gimplify_expr): Gimplify register-register type
26006 VIEW_CONVERT_EXPRs to separate stmts.
26008 2014-01-07 Jeff Law <law@redhat.com>
26010 PR middle-end/53623
26011 * ree.c (combine_set_extension): Handle case where source
26012 and destination registers in an extension insn are different.
26013 (combine_reaching_defs): Allow source and destination registers
26014 in extension to be different under limited circumstances.
26015 (add_removable_extension): Remove restriction that the
26016 source and destination registers in the extension are the same.
26017 (find_and_remove_re): Emit a copy from the extension's
26018 destination to its source after the defining insn if
26019 the source and destination registers are different.
26021 PR middle-end/59285
26022 * ifcvt.c (merge_if_block): If we are merging a block with more than
26023 one successor with a block with no successors, remove any BARRIER
26024 after the second block.
26026 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26028 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26030 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26033 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26034 for 14-bit register offsets when INT14_OK_STRICT is false.
26036 2014-01-07 Roland Stigge <stigge@antcom.de>
26037 Michael Meissner <meissner@linux.vnet.ibm.com>
26040 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26041 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26043 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26045 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26048 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26050 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26051 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26052 rtx is const0_rtx or not.
26054 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26057 * target-globals.c (save_target_globals): Remove this_fn_optab
26059 * toplev.c: Include optabs.h.
26060 (target_reinit): Temporarily restore the global options if another
26061 set of options are in force.
26063 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26065 PR rtl-optimization/58668
26066 * cfgcleanup.c (flow_find_cross_jump): Don't count
26067 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26068 to determine what is counted.
26069 (flow_find_head_matching_sequence): Use active_insn_p to determine
26071 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26073 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26074 determine what is counted.
26076 PR tree-optimization/59643
26077 * tree-predcom.c (split_data_refs_to_components): If one dr is
26078 read and one write, determine_offset fails and the write isn't
26079 in the bad component, just put the read into the bad component.
26081 2014-01-07 Mike Stump <mikestump@comcast.net>
26082 Jakub Jelinek <jakub@redhat.com>
26085 * tree-core.h (struct tree_optimization_option): Change optabs
26086 type from unsigned char * to void *.
26087 * optabs.c (init_tree_optimization_optabs): Adjust
26088 TREE_OPTIMIZATION_OPTABS initialization.
26090 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26093 * config/i386/i386.h (struct machine_function): Add
26094 no_drap_save_restore field.
26095 * config/i386/i386.c (ix86_save_reg): Use
26096 !cfun->machine->no_drap_save_restore instead of
26097 crtl->stack_realign_needed.
26098 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26099 this function clears frame_pointer_needed. Set
26100 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26101 and DRAP reg is needed.
26103 2014-01-06 Marek Polacek <polacek@redhat.com>
26106 * doc/implement-c.texi: Mention that other integer types are
26107 permitted as bit-field types in strictly conforming mode.
26109 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26111 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26112 is newly allocated.
26114 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26116 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26118 2014-01-06 Martin Jambor <mjambor@suse.cz>
26121 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26123 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26125 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26129 * var-tracking.c (add_stores): Preserve the value of the source even if
26130 we don't record the store.
26132 2014-01-06 Terry Guo <terry.guo@arm.com>
26134 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26136 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26139 * config/darwin.c (darwin_function_section): Adjust return values to
26140 correspond to optimisation changes made in r206070.
26142 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26144 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26145 from prefetch_block tune setting.
26146 (nocona_cost): Correct size of prefetch block to 64.
26148 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26150 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26151 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26152 used to save the static chain register in the computation of the offset
26153 from which the FP registers need to be restored.
26155 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26157 PR tree-optimization/59519
26158 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26159 ICE if get_current_def (current_new_name) is already non-NULL, as long
26160 as it is a phi result of some other phi in *new_exit_bb that has
26163 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26164 or vmovdqu* for misaligned_operand.
26165 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26166 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26167 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26168 aligned_mem for AVX512F masked aligned load and store builtins and for
26169 non-temporal moves.
26171 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26173 PR tree-optimization/59651
26174 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26175 Address range for negative step should be added by TYPE_SIZE_UNIT.
26177 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26179 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26180 overlapping registers also for registers other than the stack pointer.
26182 2014-01-03 Marek Polacek <polacek@redhat.com>
26185 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26188 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26191 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26194 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26195 (push splitter): Use <P:MODE_SIZE> instead of
26196 GET_MODE_SIZE (<P:MODE>mode).
26197 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26198 (mov -1, reg peephole2): Likewise.
26199 * config/i386/sse.md (*mov<mode>_internal,
26200 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26201 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26202 *<code><mode>3, *andnot<mode>3<mask_name>,
26203 <mask_codefor><code><mode>3<mask_name>): Likewise.
26204 * config/i386/subst.md (mask_mode512bit_condition,
26205 sd_mask_mode512bit_condition): Likewise.
26207 2014-01-02 Xinliang David Li <davidxl@google.com>
26209 PR tree-optimization/59303
26210 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26211 (dump_predicates): Better output format.
26212 (pred_equal_p): New function.
26213 (is_neq_relop_p): Ditto.
26214 (is_neq_zero_form_p): Ditto.
26215 (pred_expr_equal_p): Ditto.
26216 (pred_neg_p): Ditto.
26217 (simplify_pred): Ditto.
26218 (simplify_preds_2): Ditto.
26219 (simplify_preds_3): Ditto.
26220 (simplify_preds_4): Ditto.
26221 (simplify_preds): Ditto.
26222 (push_pred): Ditto.
26223 (push_to_worklist): Ditto.
26224 (get_pred_info_from_cmp): Ditto.
26225 (is_degenerated_phi): Ditto.
26226 (normalize_one_pred_1): Ditto.
26227 (normalize_one_pred): Ditto.
26228 (normalize_one_pred_chain): Ditto.
26229 (normalize_preds): Ditto.
26230 (normalize_cond_1): Remove function.
26231 (normalize_cond): Ditto.
26232 (is_gcond_subset_of): Ditto.
26233 (is_subset_of_any): Ditto.
26234 (is_or_set_subset_of): Ditto.
26235 (is_and_set_subset_of): Ditto.
26236 (is_norm_cond_subset_of): Ditto.
26237 (pred_chain_length_cmp): Ditto.
26238 (convert_control_dep_chain_into_preds): Type change.
26239 (find_predicates): Ditto.
26240 (find_def_preds): Ditto.
26241 (destroy_predicates_vecs): Ditto.
26242 (find_matching_predicates_in_rest_chains): Ditto.
26243 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26244 (is_pred_expr_subset): Ditto.
26245 (is_pred_chain_subset_of): Ditto.
26246 (is_included_in): Ditto.
26247 (is_superset_of): Ditto.
26249 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26251 Update copyright years.
26253 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26255 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26256 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26257 config/arc/arc.md, config/arc/arc.opt,
26258 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26259 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26260 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26261 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26262 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26263 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26264 vtable-verify.c, vtable-verify.h: Use the standard form for the
26267 2014-01-02 Tobias Burnus <burnus@net-b.de>
26269 * gcc.c (process_command): Update copyright notice dates.
26270 * gcov-dump.c: Ditto.
26272 * doc/cpp.texi: Bump @copying's copyright year.
26273 * doc/cppinternals.texi: Ditto.
26274 * doc/gcc.texi: Ditto.
26275 * doc/gccint.texi: Ditto.
26276 * doc/gcov.texi: Ditto.
26277 * doc/install.texi: Ditto.
26278 * doc/invoke.texi: Ditto.
26280 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26282 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26284 2014-01-01 Jakub Jelinek <jakub@redhat.com>
26286 * config/i386/sse.md (*mov<mode>_internal): Guard
26287 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26289 PR rtl-optimization/59647
26290 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26291 new_rtx into UNSIGNED_FLOAT rtxes.
26293 Copyright (C) 2014 Free Software Foundation, Inc.
26295 Copying and distribution of this file, with or without modification,
26296 are permitted in any medium without royalty provided the copyright
26297 notice and this notice are preserved.